@clikvn/showroom-visualizer 0.0.2-dev → 0.0.4-dev

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.
Files changed (97) hide show
  1. package/dist/commons/SkinLayer/components/Button/index.d.ts +2 -2
  2. package/dist/commons/SkinLayer/components/Button/index.d.ts.map +1 -1
  3. package/dist/components/SkinLayer/ActionsChangeScene/index.d.ts +4 -0
  4. package/dist/components/SkinLayer/ActionsChangeScene/index.d.ts.map +1 -0
  5. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapMarker.d.ts +14 -0
  6. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapMarker.d.ts.map +1 -0
  7. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapPolygons/Area.d.ts +11 -0
  8. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapPolygons/Area.d.ts.map +1 -0
  9. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapPolygons/MapAreas.d.ts +11 -0
  10. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapPolygons/MapAreas.d.ts.map +1 -0
  11. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapPolygons/PolygonRenderer.d.ts +14 -0
  12. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapPolygons/PolygonRenderer.d.ts.map +1 -0
  13. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapPolygons/index.d.ts +18 -0
  14. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapPolygons/index.d.ts.map +1 -0
  15. package/dist/components/SkinLayer/Floorplan/Minimap/index.d.ts +15 -0
  16. package/dist/components/SkinLayer/Floorplan/Minimap/index.d.ts.map +1 -0
  17. package/dist/components/SkinLayer/Floorplan/index.d.ts +7 -0
  18. package/dist/components/SkinLayer/Floorplan/index.d.ts.map +1 -0
  19. package/dist/components/SkinLayer/Layout/index.d.ts.map +1 -1
  20. package/dist/components/SkinLayer/LoadingScreen/index.d.ts +11 -0
  21. package/dist/components/SkinLayer/LoadingScreen/index.d.ts.map +1 -0
  22. package/dist/components/SkinLayer/LogoAndTitle/index.d.ts.map +1 -1
  23. package/dist/components/SkinLayer/PinActionButtons/index.d.ts.map +1 -1
  24. package/dist/components/SkinLayer/PlayBar/PlayList/PlayListItem.d.ts +9 -0
  25. package/dist/components/SkinLayer/PlayBar/PlayList/PlayListItem.d.ts.map +1 -0
  26. package/dist/components/SkinLayer/PlayBar/PlayList/index.d.ts +8 -0
  27. package/dist/components/SkinLayer/PlayBar/PlayList/index.d.ts.map +1 -0
  28. package/dist/components/SkinLayer/PlayBar/index.d.ts +4 -0
  29. package/dist/components/SkinLayer/PlayBar/index.d.ts.map +1 -0
  30. package/dist/components/SkinLayer/PlayBar/variables.d.ts +17 -0
  31. package/dist/components/SkinLayer/PlayBar/variables.d.ts.map +1 -0
  32. package/dist/components/SkinLayer/PoiMovingPreview/index.d.ts +4 -0
  33. package/dist/components/SkinLayer/PoiMovingPreview/index.d.ts.map +1 -0
  34. package/dist/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.d.ts +13 -0
  35. package/dist/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.d.ts.map +1 -0
  36. package/dist/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.d.ts +13 -0
  37. package/dist/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.d.ts.map +1 -0
  38. package/dist/components/SkinLayer/PoiTextureOptions/TextureMenuItem/index.d.ts +15 -0
  39. package/dist/components/SkinLayer/PoiTextureOptions/TextureMenuItem/index.d.ts.map +1 -0
  40. package/dist/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.d.ts +13 -0
  41. package/dist/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.d.ts.map +1 -0
  42. package/dist/components/SkinLayer/PoiTextureOptions/index.d.ts +11 -0
  43. package/dist/components/SkinLayer/PoiTextureOptions/index.d.ts.map +1 -0
  44. package/dist/components/SkinLayer/ScenarioList/index.d.ts +5 -0
  45. package/dist/components/SkinLayer/ScenarioList/index.d.ts.map +1 -0
  46. package/dist/components/SkinLayer/TourScenarios/index.d.ts +4 -0
  47. package/dist/components/SkinLayer/TourScenarios/index.d.ts.map +1 -0
  48. package/dist/components/SkinLayer/UnmuteButton/index.d.ts +4 -0
  49. package/dist/components/SkinLayer/UnmuteButton/index.d.ts.map +1 -0
  50. package/dist/components/SkinLayer/index.d.ts +1 -0
  51. package/dist/components/SkinLayer/index.d.ts.map +1 -1
  52. package/dist/constants/SkinLayer/actionButtons.d.ts +31 -0
  53. package/dist/constants/SkinLayer/actionButtons.d.ts.map +1 -1
  54. package/dist/constants/SkinLayer/index.d.ts +43 -0
  55. package/dist/constants/SkinLayer/index.d.ts.map +1 -1
  56. package/dist/constants/Visualizer/scenario.d.ts +16 -0
  57. package/dist/constants/Visualizer/scenario.d.ts.map +1 -1
  58. package/dist/features/ShowroomVisualizer/index.d.ts.map +1 -1
  59. package/dist/hooks/SkinLayer/useMiniMapRadar.d.ts +5 -0
  60. package/dist/hooks/SkinLayer/useMiniMapRadar.d.ts.map +1 -0
  61. package/dist/hooks/SkinLayer/useResizeObserver.d.ts +14 -0
  62. package/dist/hooks/SkinLayer/useResizeObserver.d.ts.map +1 -0
  63. package/dist/hooks/SkinLayer/useWindowSize.d.ts +13 -0
  64. package/dist/hooks/SkinLayer/useWindowSize.d.ts.map +1 -0
  65. package/dist/hooks/Visualizer/reducer.d.ts +116 -0
  66. package/dist/hooks/Visualizer/reducer.d.ts.map +1 -0
  67. package/dist/hooks/Visualizer/useTourDetails.d.ts.map +1 -1
  68. package/dist/hooks/Visualizer/useTourVisualizer.d.ts.map +1 -1
  69. package/dist/hooks/useConfiguration.d.ts +25 -0
  70. package/dist/hooks/useConfiguration.d.ts.map +1 -0
  71. package/dist/hooks/useStore.d.ts +150 -0
  72. package/dist/hooks/useStore.d.ts.map +1 -0
  73. package/dist/index.html +1 -1
  74. package/dist/models/Visualizer/Scene.d.ts +5 -3
  75. package/dist/models/Visualizer/Scene.d.ts.map +1 -1
  76. package/dist/models/Visualizer/Tour.d.ts +6 -5
  77. package/dist/models/Visualizer/Tour.d.ts.map +1 -1
  78. package/dist/types/SkinLayer/common.type.d.ts +5 -0
  79. package/dist/types/SkinLayer/common.type.d.ts.map +1 -1
  80. package/dist/types/Visualizer/categoryData.type.d.ts +10 -0
  81. package/dist/types/Visualizer/categoryData.type.d.ts.map +1 -0
  82. package/dist/types/Visualizer/index.d.ts +1 -0
  83. package/dist/types/Visualizer/index.d.ts.map +1 -1
  84. package/dist/types/Visualizer/scene.type.d.ts +6 -0
  85. package/dist/types/Visualizer/scene.type.d.ts.map +1 -1
  86. package/dist/types/Visualizer/sceneGroup.type.d.ts +12 -0
  87. package/dist/types/Visualizer/sceneGroup.type.d.ts.map +1 -0
  88. package/dist/types/Visualizer/tourScenario/index.d.ts +1 -0
  89. package/dist/types/Visualizer/tourScenario/index.d.ts.map +1 -1
  90. package/dist/types/Visualizer/tourScenario/tourScenarioCurrentStep.type.d.ts +14 -0
  91. package/dist/types/Visualizer/tourScenario/tourScenarioCurrentStep.type.d.ts.map +1 -0
  92. package/dist/utils/Visualizer/scenario.utils.d.ts +1 -1
  93. package/dist/utils/Visualizer/scenario.utils.d.ts.map +1 -1
  94. package/dist/utils/Visualizer/tour.utils.d.ts +2 -0
  95. package/dist/utils/Visualizer/tour.utils.d.ts.map +1 -1
  96. package/dist/web.js +1 -1
  97. package/package.json +5 -2
package/dist/web.js CHANGED
@@ -1 +1 @@
1
- let e="showroom-visualizer";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o,i,r,s,a={exports:{}},l={},c={exports:{}},u={};function h(){var e,t,n,i,r,s,a,l,c,h,d,p,f,g,m,v,_,b,y,w,x,k,S;return o||(o=1,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={},O.prototype.isReactComponent={},O.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=O.prototype,(S=T.prototype=new E).constructor=T,g(S,O.prototype),S.isPureReactComponent=!0,v=Array.isArray,_=Object.prototype.hasOwnProperty,y={key:!0,ref:!0,__self:!0,__source:!0},w=/\/+/g,S={ReactCurrentDispatcher:x={current:null},ReactCurrentBatchConfig:k={transition:null},ReactCurrentOwner:b={current:null}},u.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(C(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},u.Component=O,u.Fragment=n,u.Profiler=r,u.PureComponent=T,u.StrictMode=i,u.Suspense=c,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,u.act=L,u.cloneElement=function(t,n,o){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=g({},t.props),r=t.key,s=t.ref,a=t._owner;if(null!=n)for(l in void 0!==n.ref&&(s=n.ref,a=b.current),void 0!==n.key&&(r=""+n.key),t.type&&t.type.defaultProps&&(c=t.type.defaultProps),n)_.call(n,l)&&!y.hasOwnProperty(l)&&(i[l]=(void 0===n[l]&&void 0!==c?c:n)[l]);var l=arguments.length-2;if(1===l)i.children=o;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:e,type:t.type,key:r,ref:s,props:i,_owner:a}},u.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},u.createElement=P,u.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:l,render:e}},u.isValidElement=C,u.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},u.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=k.transition;k.transition={};try{e()}finally{k.transition=t}},u.unstable_act=L,u.useCallback=function(e,t){return x.current.useCallback(e,t)},u.useContext=function(e){return x.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return x.current.useDeferredValue(e)},u.useEffect=function(e,t){return x.current.useEffect(e,t)},u.useId=function(){return x.current.useId()},u.useImperativeHandle=function(e,t,n){return x.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return x.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return x.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return x.current.useMemo(e,t)},u.useReducer=function(e,t,n){return x.current.useReducer(e,t,n)},u.useRef=function(e){return x.current.useRef(e)},u.useState=function(e){return x.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return x.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return x.current.useTransition()},u.version="18.3.1"),u;function O(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function E(){}function T(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function P(t,n,o){var i,r={},s=null,a=null;if(null!=n)for(i in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)_.call(n,i)&&!y.hasOwnProperty(i)&&(r[i]=n[i]);var l=arguments.length-2;if(1===l)r.children=o;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];r.children=c}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===r[i]&&(r[i]=l[i]);return{$$typeof:e,type:t,key:s,ref:a,props:r,_owner:b.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,n={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function $(n,o,i,r,s){var a,l,c=!1;if(null===(n="undefined"!=(h=typeof n)&&"boolean"!==h?n:null))c=!0;else switch(h){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case e:case t:c=!0}}if(c)return s=s(c=n),n=""===r?"."+N(c,0):r,v(s)?(i="",$(s,o,i=null!=n?n.replace(w,"$&/")+"/":i,"",function(e){return e})):null!=s&&(C(s)&&(l=i+(!(a=s).key||c&&c.key===s.key?"":(""+s.key).replace(w,"$&/")+"/")+n,s={$$typeof:e,type:a.type,key:l,ref:a.ref,props:a.props,_owner:a._owner}),o.push(s)),1;if(c=0,r=""===r?".":r+":",v(n))for(var u=0;u<n.length;u++){var h,d=r+N(h=n[u],u);c+=$(h,o,i,d,s)}else if("function"==typeof(d=null!==(l=n)&&"object"==typeof l&&"function"==typeof(l=p&&l[p]||l["@@iterator"])?l:null))for(n=d.call(n),u=0;!(h=n.next()).done;)c+=$(h=h.value,o,i,d=r+N(h,u++),s);else if("object"===h)throw o=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===o?"object with keys {"+Object.keys(n).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return c}function A(e,t,n){var o;return null==e||(o=0,$(e,e=[],"","",function(e){return t.call(n,e,o++)})),e}function M(e){var t;if(-1===e._status&&((t=(t=e._result)()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status)&&(e._status=0,e._result=t),1===e._status)return e._result.default;throw e._result}function L(){throw Error("act(...) is not supported in production builds of React.")}}function d(){return i||(i=1,c.exports=h()),c.exports}var p,f,g,m,v=(s||(s=1,a.exports=function(){var e,t,n,o,i,s;return r||(r=1,e=d(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0},l.Fragment=n,l.jsx=a,l.jsxs=a),l;function a(e,n,r){var a,l={},c=null,u=null;for(a in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)o.call(n,a)&&!s.hasOwnProperty(a)&&(l[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===l[a]&&(l[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}}()),a.exports),_={exports:{}},b={},y={exports:{}},w={};function x(){return f||(f=1,y.exports=function(){var e,t,n,o,i,r,s,a,l,c,u,h,d,f,g,m,v,_,b,y,x,k,S;return p||(p=1,e=w,"object"==typeof performance&&"function"==typeof performance.now?(t=performance,e.unstable_now=function(){return t.now()}):(n=Date,o=n.now(),e.unstable_now=function(){return n.now()-o}),i=[],r=[],s=1,a=null,h=u=c=!(l=3),d="function"==typeof setTimeout?setTimeout:null,f="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null,"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling),b=!1,y=null,k=5,S=x=-1,m="function"==typeof g?function(){g(M)}:"undefined"!=typeof MessageChannel?(v=new MessageChannel,_=v.port2,v.port1.onmessage=M,function(){_.postMessage(null)}):function(){d(M,0)},e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){u||c||(u=!0,L($))},e.unstable_forceFrameRate=function(e){e<0||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return l},e.unstable_getFirstCallbackNode=function(){return E(i)},e.unstable_next=function(e){switch(l){case 1:case 2:case 3:var t=3;break;default:t=l}var n=l;l=t;try{return e()}finally{l=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=l;l=e;try{return t()}finally{l=n}},e.unstable_scheduleCallback=function(t,n,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,t){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return t={id:s++,callback:n,priorityLevel:t,startTime:o,expirationTime:l=o+l,sortIndex:-1},a<o?(t.sortIndex=o,O(r,t),null===E(i)&&t===E(r)&&(h?(f(x),x=-1):h=!0,D(N,o-a))):(t.sortIndex=l,O(i,t),u||c||(u=!0,L($))),t},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=l;return function(){var n=l;l=t;try{return e.apply(this,arguments)}finally{l=n}}}),w;function O(e,t){var n=e.length;for(e.push(t);0<n;){var o=n-1>>>1,i=e[o];if(!(0<P(i,t)))break;e[o]=t,e[n]=i,n=o}}function E(e){return 0===e.length?null:e[0]}function T(e){if(0!==e.length){var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var o=0,i=e.length,r=i>>>1;o<r;){var s=2*(o+1)-1,a=e[s],l=1+s,c=e[l];if(P(a,n)<0)o=l<i&&P(c,a)<0?(e[o]=c,e[l]=n,l):(e[o]=a,e[s]=n,s);else{if(!(l<i&&P(c,n)<0))break;e[o]=c,e[l]=n,o=l}}}}}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!=n?n:e.id-t.id}function C(e){for(var t=E(r);null!==t;){if(null===t.callback)T(r);else{if(!(t.startTime<=e))break;T(r),t.sortIndex=t.expirationTime,O(i,t)}t=E(r)}}function N(e){var t;h=!1,C(e),u||(null!==E(i)?(u=!0,L($)):null!==(t=E(r))&&D(N,t.startTime-e))}function $(t,n){u=!1,h&&(h=!1,f(x),x=-1),c=!0;var o=l;try{for(C(n),a=E(i);null!==a&&(!(a.expirationTime>n)||t&&!A());){var s,d=a.callback;"function"==typeof d?(a.callback=null,l=a.priorityLevel,s=d(a.expirationTime<=n),n=e.unstable_now(),"function"==typeof s?a.callback=s:a===E(i)&&T(i),C(n)):T(i),a=E(i)}var p;return null!==a||(null!==(p=E(r))&&D(N,p.startTime-n),!1)}finally{a=null,l=o,c=!1}}function A(){return!(e.unstable_now()-S<k)}function M(){if(null!==y){var t=e.unstable_now(),n=(S=t,!0);try{n=y(!0,t)}finally{n?m():(b=!1,y=null)}}else b=!1}function L(e){y=e,b||(b=!0,m())}function D(t,n){x=d(function(){t(e.unstable_now())},n)}}()),y.exports}function k(){if(!g){g=1;var e,t,n,o=d(),i=x(),r=new Set,s={},a=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},h={},p={},f=("children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){p[e]=new Bo(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];p[t]=new Bo(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new Bo(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new Bo(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){p[e]=new Bo(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new Bo(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new Bo(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new Bo(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new Bo(e,5,!1,e.toLowerCase(),null,!1,!1)}),/[\-:]([a-z])/g),m=(o=("accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(f,Yo);p[t]=new Bo(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(f,Yo);p[t]=new Bo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(f,Yo);p[t]=new Bo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new Bo(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new Bo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new Bo(e,1,!1,e.toLowerCase(),null,!0,!0)}),o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED),Symbol.for("react.element")),v=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),S=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),$=Symbol.iterator,A=Object.assign,M=!1,L=Array.isArray,D=(n=function(e,n){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=n;else{for((t=t||document.createElement("div")).innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=t.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,o,i){MSApp.execUnsafeLocalFunction(function(){return n(e,t)})}:n),I={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},R=["Webkit","ms","Moz","O"],F=(Object.keys(I).forEach(function(e){R.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),I[t]=I[e]})}),A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0})),H=null,V=null,j=null,z=null,U=!1,B=!1;if(a)try{var Y={};Object.defineProperty(Y,"passive",{get:function(){B=!0}}),window.addEventListener("test",Y,Y),window.removeEventListener("test",Y,Y)}catch(Y){B=!1}for(var W,G,q,X,Q,Z,K,J,ee=!1,te=null,ne=!1,oe=null,ie={onError:function(e){ee=!0,te=e}},re=i.unstable_scheduleCallback,se=i.unstable_cancelCallback,ae=i.unstable_shouldYield,le=i.unstable_requestPaint,ce=i.unstable_now,ue=i.unstable_getCurrentPriorityLevel,he=i.unstable_ImmediatePriority,de=i.unstable_UserBlockingPriority,pe=i.unstable_NormalPriority,fe=i.unstable_LowPriority,ge=i.unstable_IdlePriority,me=null,ve=null,_e=Math.clz32||function(e){return 0==(e>>>=0)?32:31-(be(e)/ye|0)|0},be=Math.log,ye=Math.LN2,we=64,xe=4194304,ke=0,Se=!1,Oe=[],Ee=null,Te=null,Pe=null,Ce=new Map,Ne=new Map,$e=[],Ae="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),Me=o.ReactCurrentBatchConfig,Le=!0,De=null,Ie=null,Re=null,Fe=null,He=ir(Y={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0}),Ve=ir(it=A({},Y,{view:0,detail:0})),je=A({},it,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==J&&(K=J&&"mousemove"===e.type?(Z=e.screenX-J.screenX,e.screenY-J.screenY):Z=0,J=e),Z)},movementY:function(e){return"movementY"in e?e.movementY:K}}),ze=ir(je),Ue=ir(A({},je,{dataTransfer:0})),Be=ir(A({},it,{relatedTarget:0})),Ye=ir(A({},Y,{animationName:0,elapsedTime:0,pseudoElement:0})),We=ir(A({},Y,{clipboardData:function(e){return("clipboardData"in e?e:window).clipboardData}})),Ge=ir(A({},Y,{data:0})),qe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xe={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Qe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ze=ir(A({},it,{key:function(e){if(e.key){var t=qe[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Xe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Ke=ir(A({},je,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Je=ir(A({},it,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sr})),et=ir(A({},Y,{propertyName:0,elapsedTime:0,pseudoElement:0})),tt=ir(A({},je,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),nt=[9,13,27,32],ot=(a&&"CompositionEvent"in window),it=null,rt=(a&&"documentMode"in document&&(it=document.documentMode),a&&"TextEvent"in window&&!it),st=a&&(!ot||it&&8<it&&it<=11),at=String.fromCharCode(32),lt=!1,ct=!1,ut={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},ht=null,dt=null,pt=!1,ft=(a&&(it=a&&((Y="oninput"in document)||((je=document.createElement("div")).setAttribute("oninput","return;"),Y="function"==typeof je.oninput),Y),pt=it&&(!document.documentMode||9<document.documentMode)),"function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}),gt=(a&&"documentMode"in document&&document.documentMode<=11),mt=null,vt=null,_t=null,bt=!1,yt={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},wt={},xt={},kt=(a&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete yt.animationend.animation,delete yt.animationiteration.animation,delete yt.animationstart.animation),"TransitionEvent"in window||delete yt.transitionend.transition),Tr("animationend")),St=Tr("animationiteration"),Ot=Tr("animationstart"),Et=Tr("transitionend"),Tt=new Map,Pt="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "),Ct=0;Ct<Pt.length;Ct++){var Nt=Pt[Ct];Pr(Nt.toLowerCase(),"on"+(Nt[0].toUpperCase()+Nt.slice(1)))}Pr(kt,"onAnimationEnd"),Pr(St,"onAnimationIteration"),Pr(Ot,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Et,"onTransitionEnd"),Uo("onMouseEnter",["mouseout","mouseover"]),Uo("onMouseLeave",["mouseout","mouseover"]),Uo("onPointerEnter",["pointerout","pointerover"]),Uo("onPointerLeave",["pointerout","pointerover"]),zo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zo("onBeforeInput",["compositionend","keypress","textInput","paste"]),zo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $t="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),At=new Set("cancel close invalid load scroll toggle".split(" ").concat($t)),Mt="_reactListening"+Math.random().toString(36).slice(2),Lt=/\r\n?/g,Dt=/\u0000|\uFFFD/g,It=null,Rt=null,Ft="function"==typeof setTimeout?setTimeout:void 0,Ht="function"==typeof clearTimeout?clearTimeout:void 0,Vt="function"==typeof Promise?Promise:void 0,jt="function"==typeof queueMicrotask?queueMicrotask:void 0!==Vt?function(e){return Vt.resolve(null).then(e).catch(Br)}:Ft,zt="__reactFiber$"+(je=Math.random().toString(36).slice(2)),Ut="__reactProps$"+je,Bt="__reactContainer$"+je,Yt="__reactEvents$"+je,Wt="__reactListeners$"+je,Gt="__reactHandles$"+je,qt=[],Xt=-1,Qt={},Zt=Kr(Qt),Kt=Kr(!1),Jt=Qt,en=null,tn=!1,nn=!1,on=[],rn=0,sn=null,an=0,ln=[],cn=0,un=null,hn=1,dn="",pn=null,fn=null,gn=!1,mn=null,vn=o.ReactCurrentBatchConfig,_n=Es(!0),bn=Es(!1),yn=Kr(null),wn=null,xn=null,kn=null,Sn=null,On=!1,En={},Tn=Kr(En),Pn=Kr(En),Cn=Kr(En),Nn=Kr(0),$n=[],An=o.ReactCurrentDispatcher,Mn=o.ReactCurrentBatchConfig,Ln=0,Dn=null,In=null,Rn=null,Fn=!1,Hn=!1,Vn=0,jn=0,zn={readContext:$s,useCallback:Qs,useContext:Qs,useEffect:Qs,useImperativeHandle:Qs,useInsertionEffect:Qs,useLayoutEffect:Qs,useMemo:Qs,useReducer:Qs,useRef:Qs,useState:Qs,useDebugValue:Qs,useDeferredValue:Qs,useTransition:Qs,useMutableSource:Qs,useSyncExternalStore:Qs,useId:Qs,unstable_isNewReconciler:!1},Un={readContext:$s,useCallback:function(e,t){return ea().memoizedState=[e,void 0===t?null:t],e},useContext:$s,useEffect:va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ga(4194308,4,wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ga(4194308,4,e,t)},useInsertionEffect:function(e,t){return ga(4,2,e,t)},useMemo:function(e,t){var n=ea();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=ea();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(o.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=function(e,t,n){var o=Nl(e);n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Pa(e)?Ca(t,n):null!==(n=Ms(e,t,n,o))&&($l(n,e,o,Cl()),Na(n,t,o))}.bind(null,Dn,e),[o.memoizedState,e]},useRef:function(e){return ea().memoizedState={current:e}},useState:da,useDebugValue:ka,useDeferredValue:function(e){return ea().memoizedState=e},useTransition:function(){var e=(t=da(!1))[0],t=function(e,t){var n=ke,o=(ke=0!==n&&n<4?n:4,e(!0),Mn.transition);Mn.transition={};try{e(!1),t()}finally{ke=n,Mn.transition=o}}.bind(null,t[1]);return[e,ea().memoizedState=t]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Dn,i=ea();if(gn){if(void 0===n)throw Error(jo(407));n=n()}else{if(n=t(),null===fo)throw Error(jo(349));!(30&Ln)&&aa(o,t,n)}var r={value:i.memoizedState=n,getSnapshot:t};return va(ca.bind(null,o,i.queue=r,e),[e]),o.flags|=2048,pa(9,la.bind(null,o,r,n,t),void 0,null),n},useId:function(){var e,t=ea(),n=fo.identifierPrefix;return gn?(e=dn,n=":"+n+"R"+(e=(hn&~(1<<32-_e(hn)-1)).toString(32)+e),0<(e=Vn++)&&(n+="H"+e.toString(32)),n+=":"):n=":"+n+"r"+(e=jn++).toString(32)+":",t.memoizedState=n},unstable_isNewReconciler:!1},Bn={readContext:$s,useCallback:Sa,useContext:$s,useEffect:_a,useImperativeHandle:xa,useInsertionEffect:ba,useLayoutEffect:ya,useMemo:Oa,useReducer:oa,useRef:fa,useState:function(){return oa(na)},useDebugValue:ka,useDeferredValue:function(e){return Ea(ta(),In.memoizedState,e)},useTransition:function(){return[oa(na)[0],ta().memoizedState]},useMutableSource:ra,useSyncExternalStore:sa,useId:Ta,unstable_isNewReconciler:!1},Yn={readContext:$s,useCallback:Sa,useContext:$s,useEffect:_a,useImperativeHandle:xa,useInsertionEffect:ba,useLayoutEffect:ya,useMemo:Oa,useReducer:ia,useRef:fa,useState:function(){return ia(na)},useDebugValue:ka,useDeferredValue:function(e){var t=ta();return null===In?t.memoizedState=e:Ea(t,In.memoizedState,e)},useTransition:function(){return[ia(na)[0],ta().memoizedState]},useMutableSource:ra,useSyncExternalStore:sa,useId:Ta,unstable_isNewReconciler:!1},Wn={isMounted:function(e){return!!(e=e._reactInternals)&&Ci(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=Cl(),i=Nl(e),r=Rs(o,i);r.payload=t,null!=n&&(r.callback=n),null!==(t=Fs(e,r,i))&&($l(t,e,i,o),Hs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=Cl(),i=Nl(e),r=Rs(o,i);r.tag=1,r.payload=t,null!=n&&(r.callback=n),null!==(t=Fs(e,r,i))&&($l(t,e,i,o),Hs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cl(),o=Nl(e),i=Rs(n,o);i.tag=2,null!=t&&(i.callback=t),null!==(t=Fs(e,i,o))&&($l(t,e,o,n),Hs(t,e,o))}},Gn="function"==typeof WeakMap?WeakMap:Map,qn=o.ReactCurrentOwner,Xn=!1,Qn={dehydrated:null,treeContext:null,retryLane:0},Zn=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n=(n.child.return=n).child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Kn=function(){},Jn=function(e,t,n,o){var i=e.memoizedProps;if(i!==o){e=t.stateNode,Us(Tn.current);var r,a=null;switch(n){case"input":i=ni(e,i),o=ni(e,o),a=[];break;case"select":i=A({},i,{value:void 0}),o=A({},o,{value:void 0}),a=[];break;case"textarea":i=ci(e,i),o=ci(e,o),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof o.onClick&&(e.onclick=zr)}for(u in _i(n,o),n=null,i)if(!o.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(r in l)l.hasOwnProperty(r)&&((n=n||{})[r]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a=a||[]:(a=a||[]).push(u,null));for(u in o){var c=o[u];l=null!=i?i[u]:void 0;if(o.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||((n=n||{})[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&((n=n||{})[r]=c[r])}else n||(a=a||[]).push(u,n),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&$r("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},eo=function(e,t,n,o){n!==o&&(t.flags|=4)},to=!1,no=!1,oo="function"==typeof WeakSet?WeakSet:Set,io=null,ro=!1,so=null,ao=!1,lo=Math.ceil,co=o.ReactCurrentDispatcher,uo=o.ReactCurrentOwner,ho=o.ReactCurrentBatchConfig,po=0,fo=null,go=null,mo=0,vo=0,_o=Kr(0),bo=0,yo=null,wo=0,xo=0,ko=0,So=null,Oo=null,Eo=0,To=1/0,Po=null,Co=!1,No=null,$o=null,Ao=!1,Mo=null,Lo=0,Do=0,Io=null,Ro=-1,Fo=0,Ho=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Kt.current)Xn=!0;else{if(0==(e.lanes&n)&&!(128&t.flags)){Xn=!1;var o=e,i=t,r=n;switch(i.tag){case 3:el(i),ws();break;case 5:Ws(i);break;case 1:ns(i.type)&&ss(i);break;case 4:Bs(i,i.stateNode.containerInfo);break;case 10:var s=i.type._context,a=i.memoizedProps.value;es(yn,s._currentValue),s._currentValue=a;break;case 13:if(null!==(s=i.memoizedState))return null!==s.dehydrated?(es(Nn,1&Nn.current),i.flags|=128,null):0!=(r&i.child.childLanes)?ol(o,i,r):(es(Nn,1&Nn.current),null!==(o=ul(o,i,r))?o.sibling:null);es(Nn,1&Nn.current);break;case 19:if(s=0!=(r&i.childLanes),128&o.flags){if(s)return ll(o,i,r);i.flags|=128}if(null!==(a=i.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),es(Nn,Nn.current),s)break;return null;case 22:case 23:return i.lanes=0,Xa(o,i,r)}return ul(o,i,r)}Xn=!!(131072&e.flags)}else Xn=!1,gn&&1048576&t.flags&&hs(t,an,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type,c=(cl(e,t),e=t.pendingProps,ts(t,Zt.current)),u=(Ns(t,n),c=Ks(null,t,l,e,c,n),Js());return t.flags|=1,"object"==typeof c&&null!==c&&"function"==typeof c.render&&void 0===c.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ns(l)?(u=!0,ss(t)):u=!1,t.memoizedState=null!=c.state?c.state:null,Ds(t),c.updater=Wn,Ia((t.stateNode=c)._reactInternals=t,l,e,n),Ja(null,t,l,!0,u,n)):(t.tag=0,gn&&u&&ds(t),Ya(null,t,c,n),t.child);case 16:l=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,l=(c=l._init)(l._payload),t.type=l,c=t.tag=(e=>{if("function"==typeof e)return nc(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===P)return 14}return 2})(l),e=$a(l,e),c){case 0:t=Za(null,t,l,e,n);break e;case 1:t=Ka(null,t,l,e,n);break e;case 11:t=Wa(null,t,l,e,n);break e;case 14:t=Ga(null,t,l,$a(l.type,e),n);break e}throw Error(jo(306,l,""))}return t;case 0:return l=t.type,c=t.pendingProps,Za(e,t,l,c=t.elementType===l?c:$a(l,c),n);case 1:return l=t.type,c=t.pendingProps,Ka(e,t,l,c=t.elementType===l?c:$a(l,c),n);case 3:e:{if(el(t),null===e)throw Error(jo(387));l=t.pendingProps,c=(u=t.memoizedState).element,Is(e,t),js(t,l,null,n);l=(f=t.memoizedState).element;if(u.isDehydrated){if(u={element:l,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,256&t.flags){t=tl(e,t,l,n,c=Ra(Error(jo(423)),t));break e}if(l!==c){t=tl(e,t,l,n,c=Ra(Error(jo(424)),t));break e}for(fn=Wr(t.stateNode.containerInfo.firstChild),gn=!0,n=bn(pn=t,mn=null,l,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ws(),l===c){t=ul(e,t,n);break e}Ya(e,t,l,n)}t=t.child}return t;case 5:return Ws(t),null===e&&vs(t),l=t.type,c=t.pendingProps,u=null!==e?e.memoizedProps:null,f=c.children,Ur(l,c)?f=null:null!==u&&Ur(l,u)&&(t.flags|=32),Qa(e,t),Ya(e,t,f,n),t.child;case 6:return null===e&&vs(t),null;case 13:return ol(e,t,n);case 4:return Bs(t,t.stateNode.containerInfo),l=t.pendingProps,null===e?t.child=_n(t,null,l,n):Ya(e,t,l,n),t.child;case 11:return l=t.type,c=t.pendingProps,Wa(e,t,l,c=t.elementType===l?c:$a(l,c),n);case 7:return Ya(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ya(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(l=t.type._context,c=t.pendingProps,u=t.memoizedProps,f=c.value,es(yn,l._currentValue),l._currentValue=f,null!==u)if(ft(u.value,f)){if(u.children===c.children&&!Kt.current){t=ul(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var h=u.dependencies;if(null!==h)for(var d,p,f=u.child,g=h.firstContext;null!==g;){if(g.context===l){1===u.tag&&((g=Rs(-1,n&-n)).tag=2,null!==(d=u.updateQueue))&&(null===(p=(d=d.shared).pending)?g.next=g:(g.next=p.next,p.next=g),d.pending=g),u.lanes|=n,null!==(g=u.alternate)&&(g.lanes|=n),Cs(u.return,n,t),h.lanes|=n;break}g=g.next}else if(10===u.tag)f=u.type===t.type?null:u.child;else if(18===u.tag){if(null===(f=u.return))throw Error(jo(341));f.lanes|=n,null!==(h=f.alternate)&&(h.lanes|=n),Cs(f,n,t),f=u.sibling}else f=u.child;if(null!==f)f.return=u;else for(f=u;null!==f;){if(f===t){f=null;break}if(null!==(u=f.sibling)){u.return=f.return,f=u;break}f=f.return}u=f}Ya(e,t,c.children,n),t=t.child}return t;case 9:return c=t.type,l=t.pendingProps.children,Ns(t,n),l=l(c=$s(c)),t.flags|=1,Ya(e,t,l,n),t.child;case 14:return c=$a(l=t.type,t.pendingProps),Ga(e,t,l,c=$a(l.type,c),n);case 15:return qa(e,t,t.type,t.pendingProps,n);case 17:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:$a(l,c),cl(e,t),t.tag=1,ns(l)?(e=!0,ss(t)):e=!1,Ns(t,n),La(t,l,c),Ia(t,l,c,n),Ja(null,t,l,!0,e,n);case 19:return ll(e,t,n);case 22:return Xa(e,t,n)}throw Error(jo(156,t.tag))},Vo="function"==typeof reportError?reportError:function(e){console.error(e)};Y=(_c.prototype.render=vc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(jo(409));pc(e,t,null,null)},_c.prototype.unmount=vc.prototype.unmount=function(){var e,t=this._internalRoot;null!==t&&(this._internalRoot=null,e=t.containerInfo,Hl(function(){pc(null,t,null,null)}),e[Bt]=null)},_c.prototype.unstable_scheduleHydration=function(e){if(e){var t=X();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$e.length&&0!==t&&t<$e[n].priority;n++);$e.splice(n,0,e),0===n&&Ui(e)}},W=function(e){switch(e.tag){case 3:var t,n=e.stateNode;n.current.memoizedState.isDehydrated&&0!==(t=Mi(n.pendingLanes))&&(Hi(n,1|t),Al(n,ce()),!(6&po))&&(To=ce()+500,cs());break;case 13:Hl(function(){var t,n=Ls(e,1);null!==n&&(t=Cl(),$l(n,e,1,t))}),mc(e,1)}},G=function(e){var t;13===e.tag&&(null!==(t=Ls(e,134217728))&&$l(t,e,134217728,Cl()),mc(e,134217728))},q=function(e){var t,n;13===e.tag&&(null!==(n=Ls(e,t=Nl(e)))&&$l(n,e,t,Cl()),mc(e,t))},X=function(){return ke},Q=function(e,t){var n=ke;try{return ke=e,t()}finally{ke=n}},Oi=Hl,{usingClientEntryPoint:!(V=function(e,t,n){switch(t){case"input":if(ri(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=Zr(o);if(!i)throw Error(jo(90));ei(o),ri(o,i)}}}break;case"textarea":hi(e,n);break;case"select":null!=(t=n.value)&&li(e,!!n.multiple,t,!1)}}),Events:[Xr,Qr,Zr,xi,ki,Si=Fl]}),a={bundleType:(it={findFiberByHostInstance:qr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"}).bundleType,version:it.version,rendererPackageName:it.rendererPackageName,rendererConfig:it.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:o.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ai(e))?null:e.stateNode},findFiberByHostInstance:it.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&!(je=__REACT_DEVTOOLS_GLOBAL_HOOK__).isDisabled&&je.supportsFiber)try{me=je.inject(a),ve=je}catch(Y){}b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,b.createPortal=function(e,t){if(bc(t))return function(e,t,n,o){return{$$typeof:v,key:null==(o=3<arguments.length&&void 0!==o?o:null)?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null);throw Error(jo(200))},b.createRoot=function(e,t){var n,o,i;if(bc(e))return n=!1,o="",i=Vo,null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError)&&(i=t.onRecoverableError),t=uc(e,1,!1,null,0,n,0,o,i),e[Bt]=t.current,Mr(8===e.nodeType?e.parentNode:e),new vc(t);throw Error(jo(299))},b.findDOMNode=function(e){if(null==e)return null;if(1!==e.nodeType){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(jo(188));throw e=Object.keys(e).join(","),Error(jo(268,e))}e=null===(e=Ai(t))?null:e.stateNode}return e},b.flushSync=Hl,b.hydrate=function(e,t,n){if(yc(t))return xc(null,e,t,!0,n);throw Error(jo(200))},b.hydrateRoot=function(e,t,n){if(!bc(e))throw Error(jo(405));var o=null!=n&&n.hydratedSources||null,i=!1,r="",s=Vo;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError)&&(s=n.onRecoverableError),t=dc(t,null,e,1,null!=n?n:null,i,0,r,s),e[Bt]=t.current,Mr(e),o)for(e=0;e<o.length;e++)i=(i=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new _c(t)},b.render=function(e,t,n){if(yc(t))return xc(null,e,t,!1,n);throw Error(jo(200))},b.unmountComponentAtNode=function(e){if(yc(e))return!!e._reactRootContainer&&(Hl(function(){xc(null,null,e,!1,function(){e._reactRootContainer=null,e[Bt]=null})}),!0);throw Error(jo(40))},b.unstable_batchedUpdates=Fl,b.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!yc(n))throw Error(jo(200));if(null==e||void 0===e._reactInternals)throw Error(jo(38));return xc(e,t,n,!1,o)},b.version="18.3.1-next-f1338f8080-20240426"}return b;function jo(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function zo(e,t){Uo(e,t),Uo(e+"Capture",t)}function Uo(e,t){for(s[e]=t,e=0;e<t.length;e++)r.add(t[e])}function Bo(e,t,n,o,i,r,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=s}function Yo(e){return e[1].toUpperCase()}function Wo(e,t,n,o){var i,r=p.hasOwnProperty(t)?p[t]:null;(null!==r?0!==r.type:o||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,o){if(null==t||((e,t,n,o)=>{if(null===n||0!==n.type)switch(typeof t){case"function":case"symbol":return 1;case"boolean":return o?void 0:null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return}})(e,t,n,o))return 1;if(!o&&null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}}(t,n,r,o)&&(n=null),o||null===r?(i=t,(l.call(h,i)||!l.call(u,i)&&(c.test(i)?h[i]=!0:void(u[i]=!0)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}function Go(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=$&&e[$]||e["@@iterator"])?e:null}function qo(t){if(void 0===e)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);e=n&&n[1]||""}return"\n"+e+t}function Xo(e,t){if(!e||M)return"";M=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(t){var o=t}Reflect.construct(e,[],t)}else{try{t.call()}catch(t){o=t}e.call(t.prototype)}else{try{throw Error()}catch(t){o=t}e()}}catch(t){if(t&&o&&"string"==typeof t.stack){for(var i,r=t.stack.split("\n"),s=o.stack.split("\n"),a=r.length-1,l=s.length-1;1<=a&&0<=l&&r[a]!==s[l];)l--;for(;1<=a&&0<=l;a--,l--)if(r[a]!==s[l]){if(1!==a||1!==l)do{if(a--,--l<0||r[a]!==s[l])return i="\n"+r[a].replace(" at new "," at "),i=e.displayName&&i.includes("<anonymous>")?i.replace("<anonymous>",e.displayName):i}while(1<=a&&0<=l);break}}}finally{M=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qo(e):""}function Qo(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null!=t){if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case _:return"Fragment";case v:return"Portal";case w:return"Profiler";case y:return"StrictMode";case E:return"Suspense";case T:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case S:return(t.displayName||"Context")+".Consumer";case k:return(t._context.displayName||"Context")+".Provider";case O:var n=t.render;return(t=t.displayName)||(""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef");case P:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case C:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}}return null}(t);case 8:return t===y?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Zo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Ko(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Jo(e){e._valueTracker||(e._valueTracker=(e=>{var t,n,o=Ko(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,o),r=""+e[o];if(!e.hasOwnProperty(o)&&void 0!==i&&"function"==typeof i.get&&"function"==typeof i.set)return t=i.get,n=i.set,Object.defineProperty(e,o,{configurable:!0,get:function(){return t.call(this)},set:function(e){r=""+e,n.call(this,e)}}),Object.defineProperty(e,o,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[o]}}})(e))}function ei(e){var t,n,o;if(e)return(t=e._valueTracker)?(n=t.getValue(),o="",(e=o=e?Ko(e)?e.checked?"true":"false":e.value:o)!==n&&(t.setValue(e),1)):1}function ti(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ni(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function oi(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=Zo(null!=t.value?t.value:n);e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ii(e,t){null!=(t=t.checked)&&Wo(e,"checked",t,!1)}function ri(e,t){ii(e,t);var n=Zo(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?ai(e,t.type,n):t.hasOwnProperty("defaultValue")&&ai(e,t.type,Zo(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function si(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(("submit"===o||"reset"===o)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ai(e,t,n){"number"===t&&ti(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function li(e,t,n,o){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Zo(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(o&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ci(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(jo(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ui(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(jo(92));if(L(n)){if(1<n.length)throw Error(jo(93));n=n[0]}t=n}n=t=null==t?"":t}e._wrapperState={initialValue:Zo(n)}}function hi(e,t){var n=Zo(t.value),o=Zo(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue)&&e.defaultValue!==n&&(e.defaultValue=n),null!=o&&(e.defaultValue=""+o)}function di(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function pi(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fi(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pi(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function gi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function mi(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||I.hasOwnProperty(e)&&I[e]?(""+t).trim():t+"px"}function vi(e,t){for(var n in e=e.style,t){var o,i;t.hasOwnProperty(n)&&(o=0===n.indexOf("--"),i=mi(n,t[n],o),"float"===n&&(n="cssFloat"),o?e.setProperty(n,i):e[n]=i)}}function _i(e,t){if(t){if(F[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(jo(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(jo(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(jo(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(jo(62))}}function bi(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function yi(e){return 3===(e=(e=e.target||e.srcElement||window).correspondingUseElement?e.correspondingUseElement:e).nodeType?e.parentNode:e}function wi(e){if(e=Xr(e)){if("function"!=typeof V)throw Error(jo(280));var t=e.stateNode;t&&(t=Zr(t),V(e.stateNode,e.type,t))}}function xi(e){j?z?z.push(e):z=[e]:j=e}function ki(){if(j){var e=j,t=z;if(z=j=null,wi(e),t)for(e=0;e<t.length;e++)wi(t[e])}}function Si(e,t){return e(t)}function Oi(){}function Ei(e,t,n){if(U)return e(t,n);U=!0;try{Si(e,t,n)}finally{U=!1,null===j&&null===z||(Oi(),ki())}}function Ti(e,t){var n=e.stateNode;if(null===n)return null;var o=Zr(n);if(null===o)return null;switch(n=o[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":e=!(o=(o=!o.disabled)?o:!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e));break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(jo(231,t,typeof n));return n}function Pi(e,t,n,o,i,r,s,a,l){ee=!1,te=null,function(e,t,n,o,i,r,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}.apply(ie,arguments)}function Ci(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else for(e=t;!!(4098&(t=e).flags)&&(n=t.return),e=t.return;);return 3===t.tag?n:null}function Ni(e){if(13===e.tag){var t=e.memoizedState;if(null!==(t=null===t&&null!==(e=e.alternate)?e.memoizedState:t))return t.dehydrated}return null}function $i(e){if(Ci(e)!==e)throw Error(jo(188))}function Ai(e){return null!==(e=(e=>{var t=e.alternate;if(!t){if(null===(t=Ci(e)))throw Error(jo(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var r=i.alternate;if(null===r){if(null===(o=i.return))break;n=o}else{if(i.child===r.child){for(r=i.child;r;){if(r===n)return $i(i),e;if(r===o)return $i(i),t;r=r.sibling}throw Error(jo(188))}if(n.return!==o.return)n=i,o=r;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,o=r;break}if(a===o){s=!0,o=i,n=r;break}a=a.sibling}if(!s){for(a=r.child;a;){if(a===n){s=!0,n=r,o=i;break}if(a===o){s=!0,o=r,n=i;break}a=a.sibling}if(!s)throw Error(jo(189))}}if(n.alternate!==o)throw Error(jo(190))}}if(3!==n.tag)throw Error(jo(188));return n.stateNode.current===n?e:t})(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var n=e(t);if(null!==n)return n;t=t.sibling}return null}(e):null}function Mi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Li(e,t){var n=e.pendingLanes;if(0===n)return 0;var o,i=0,r=e.suspendedLanes,s=e.pingedLanes,a=268435455&n;if(0!=a?0!=(o=a&~r)?i=Mi(o):0!==(s&=a)&&(i=Mi(s)):0!=(a=n&~r)?i=Mi(a):0!==s&&(i=Mi(s)),0===i)return 0;if(0!==t&&t!==i&&0==(t&r)&&((s=t&-t)<=(r=i&-i)||16===r&&4194240&s))return t;if(!!(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)i|=e[n=31-_e(t)],t&=~(r=1<<n);return i}function Di(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ii(){var e=we;return!(4194240&(we<<=1))&&(we=64),e}function Ri(e){for(var t=[],n=0;n<31;n++)t.push(e);return t}function Fi(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-_e(t)]=n}function Hi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-_e(n),i=1<<o;i&t|e[o]&t&&(e[o]|=t),n&=~i}}function Vi(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}function ji(e,t){switch(e){case"focusin":case"focusout":Ee=null;break;case"dragenter":case"dragleave":Te=null;break;case"mouseover":case"mouseout":Pe=null;break;case"pointerover":case"pointerout":Ce.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ne.delete(t.pointerId)}}function zi(e,t,n,o,i,r){return null===e||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:r,targetContainers:[i]},null!==t&&null!==(t=Xr(t))&&G(t)):(e.eventSystemFlags|=o,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function Ui(e){var t=qr(e.target);if(null!==t){var n=Ci(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ni(n)))return e.blockedOn=t,void Q(e.priority,function(){q(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bi(e){if(null===e.blockedOn){for(var t=e.targetContainers;0<t.length;){var n=Ki(e.domEventName,0,t[0],e.nativeEvent);if(null!==n)return null!==(t=Xr(n))&&G(t),e.blockedOn=n,0;var o=new(n=e.nativeEvent).constructor(n.type,n);H=o,n.target.dispatchEvent(o),H=null,t.shift()}return 1}}function Yi(e,t,n){Bi(e)&&n.delete(t)}function Wi(){Se=!1,null!==Ee&&Bi(Ee)&&(Ee=null),null!==Te&&Bi(Te)&&(Te=null),null!==Pe&&Bi(Pe)&&(Pe=null),Ce.forEach(Yi),Ne.forEach(Yi)}function Gi(e,t){e.blockedOn===t&&(e.blockedOn=null,Se||(Se=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Wi)))}function qi(e){function t(t){return Gi(t,e)}if(0<Oe.length){Gi(Oe[0],e);for(var n=1;n<Oe.length;n++){var o=Oe[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Ee&&Gi(Ee,e),null!==Te&&Gi(Te,e),null!==Pe&&Gi(Pe,e),Ce.forEach(t),Ne.forEach(t),n=0;n<$e.length;n++)(o=$e[n]).blockedOn===e&&(o.blockedOn=null);for(;0<$e.length&&null===(n=$e[0]).blockedOn;)Ui(n),null===n.blockedOn&&$e.shift()}function Xi(e,t,n,o){var i=ke,r=Me.transition;Me.transition=null;try{ke=1,Zi(e,t,n,o)}finally{ke=i,Me.transition=r}}function Qi(e,t,n,o){var i=ke,r=Me.transition;Me.transition=null;try{ke=4,Zi(e,t,n,o)}finally{ke=i,Me.transition=r}}function Zi(e,t,n,o){if(Le){var i=Ki(e,0,0,o);if(null===i)Dr(e,t,o,De,n),ji(e,o);else if(((e,t,n,o,i)=>{switch(t){case"focusin":return Ee=zi(Ee,e,t,n,o,i),1;case"dragenter":return Te=zi(Te,e,t,n,o,i),1;case"mouseover":return Pe=zi(Pe,e,t,n,o,i),1;case"pointerover":var r=i.pointerId;return Ce.set(r,zi(Ce.get(r)||null,e,t,n,o,i)),1;case"gotpointercapture":return r=i.pointerId,Ne.set(r,zi(Ne.get(r)||null,e,t,n,o,i)),1}})(i,e,t,n,o))o.stopPropagation();else if(ji(e,o),4&t&&-1<Ae.indexOf(e)){for(;null!==i;){var r=Xr(i);if(null!==r&&W(r),null===(r=Ki(e,0,0,o))&&Dr(e,t,o,De,n),r===i)break;i=r}null!==i&&o.stopPropagation()}else Dr(e,t,o,null,n)}}function Ki(e,t,n,o){if((De=null)!==(e=qr(e=yi(o))))if(null===(t=Ci(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ni(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return De=e,null}function Ji(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ue()){case he:return 1;case de:return 4;case pe:case fe:return 16;case ge:return 536870912;default:return 16}default:return 16}}function er(){if(Fe)return Fe;for(var e=Re,t=e.length,n=("value"in Ie?Ie.value:Ie.textContent),o=n.length,i=0;i<t&&e[i]===n[i];i++);for(var r=t-i,s=1;s<=r&&e[t-s]===n[o-s];s++);return Fe=n.slice(i,1<s?1-s:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=(e=10===e?13:e)||13===e?e:0}function nr(){return!0}function or(){return!1}function ir(e){function t(t,n,o,i,r){for(var s in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=r,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nr:or,this.isPropagationStopped=or,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){},isPersistent:nr}),t}function rr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Qe[e])&&!!t[e]}function sr(){return rr}function ar(e,t){switch(e){case"keyup":return-1!==nt.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return 1;default:return}}function lr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?ut[e.type]:"textarea"===t}function ur(e,t,n,o){xi(o),0<(t=Rr(t,"onChange")).length&&(n=new He("onChange","change",null,n,o),e.push({event:n,listeners:t}))}function hr(e){Nr(e,0)}function dr(e){if(ei(Qr(e)))return e}function pr(e,t){if("change"===e)return t}function fr(){ht&&(ht.detachEvent("onpropertychange",gr),dt=ht=null)}function gr(e){var t;"value"===e.propertyName&&dr(dt)&&(ur(t=[],dt,e,yi(e)),Ei(hr,t))}function mr(e,t,n){"focusin"===e?(fr(),dt=n,(ht=t).attachEvent("onpropertychange",gr)):"focusout"===e&&fr()}function vr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return dr(dt)}function _r(e,t){if("click"===e)return dr(t)}function br(e,t){if("input"===e||"change"===e)return dr(t)}function yr(e,t){if(!ft(e,t)){if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var i=n[o];if(!l.call(t,i)||!ft(e[i],t[i]))return!1}}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xr(e,t){var n,o=wr(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&t<=n)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=wr(o)}}function kr(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ti((e=t.contentWindow).document)}return t}function Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Or(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;bt||null==mt||mt!==ti(o)||(o="selectionStart"in(o=mt)&&Sr(o)?{start:o.selectionStart,end:o.selectionEnd}:{anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},_t&&yr(_t,o))||(_t=o,0<(o=Rr(vt,"onSelect")).length&&(t=new He("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=mt))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function Tr(e){if(wt[e])return wt[e];if(yt[e]){var t,n=yt[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return wt[e]=n[t]}return e}function Pr(e,t){Tt.set(e,t),zo(t,[e])}function Cr(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(){var e;Pi.apply(this,arguments),ee&&(e=te,ee=!1,te=null,ne||(ne=!0,oe=e))}(o,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var o=(i=e[n]).event,i=i.listeners;e:{var r=void 0;if(t)for(var s=i.length-1;0<=s;s--){var a=(c=i[s]).instance,l=c.currentTarget,c=c.listener;if(a!==r&&o.isPropagationStopped())break e;Cr(o,c,l),r=a}else for(s=0;s<i.length;s++){if(a=(c=i[s]).instance,l=c.currentTarget,c=c.listener,a!==r&&o.isPropagationStopped())break e;Cr(o,c,l),r=a}}}if(ne)throw e=oe,ne=!1,oe=null,e}function $r(e,t){var n=t[Yt],o=e+"__bubble";(n=void 0===n?t[Yt]=new Set:n).has(o)||(Lr(t,e,2,!1),n.add(o))}function Ar(e,t,n){var o=0;t&&(o|=4),Lr(n,e,o,t)}function Mr(e){var t;e[Mt]||(e[Mt]=!0,r.forEach(function(t){"selectionchange"!==t&&(At.has(t)||Ar(t,!1,e),Ar(t,!0,e))}),null===(t=9===e.nodeType?e:e.ownerDocument))||t[Mt]||Ar("selectionchange",!(t[Mt]=!0),t)}function Lr(e,t,n,o){switch(Ji(t)){case 1:var i=Xi;break;case 4:i=Qi;break;default:i=Zi}n=i.bind(null,t,n,e),i=!(!B||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t)||void 0,o?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Dr(e,t,n,o,i){var r=o;if(!(1&t||2&t||null===o))e:for(;;){if(null===o)return;var s=o.tag;if(3===s||4===s){var a=o.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=o.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=qr(a)))return;if(5===(l=s.tag)||6===l){o=r=s;continue e}a=a.parentNode}}o=o.return}Ei(function(){var o,i,s,a=r,l=yi(n),c=[];e:{var u=Tt.get(e);if(void 0!==u){var h=He,d=e;switch(e){case"keypress":if(0===tr(n))break e;case"keydown":case"keyup":h=Ze;break;case"focusin":d="focus",h=Be;break;case"focusout":d="blur",h=Be;break;case"beforeblur":case"afterblur":h=Be;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=ze;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Ue;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Je;break;case kt:case St:case Ot:h=Ye;break;case Et:h=et;break;case"scroll":h=Ve;break;case"wheel":h=tt;break;case"copy":case"cut":case"paste":h=We;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ke}for(var p=!(g=!!(4&t))&&"scroll"===e,f=g?null!==u?u+"Capture":null:u,g=[],m=a;null!==m;){var v,_=(v=m).stateNode;if(5===v.tag&&null!==_&&(v=_,null!==f)&&null!=(_=Ti(m,f))&&g.push(Ir(m,_,v)),p)break;m=m.return}0<g.length&&(u=new h(u,d,null,n,l),c.push({event:u,listeners:g}))}}if(!(7&t)){if(h="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===H||!(d=n.relatedTarget||n.fromElement)||!qr(d)&&!d[Bt])&&(h||u)&&(u=l.window===l?l:(u=l.ownerDocument)?u.defaultView||u.parentWindow:window,h?(h=a,null!==(d=(d=n.relatedTarget||n.toElement)?qr(d):null)&&(d!==(p=Ci(d))||5!==d.tag&&6!==d.tag)&&(d=null)):(h=null,d=a),h!==d)){if(g=ze,_="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(g=Ke,_="onPointerLeave",f="onPointerEnter",m="pointer"),p=null==h?u:Qr(h),v=null==d?u:Qr(d),(u=new g(_,m+"leave",h,n,l)).target=p,u.relatedTarget=v,_=null,qr(l)===a&&((g=new g(f,m+"enter",d,n,l)).target=v,g.relatedTarget=p,_=g),p=_,h&&d)e:{for(f=d,m=0,v=g=h;v;v=Fr(v))m++;for(v=0,_=f;_;_=Fr(_))v++;for(;0<m-v;)g=Fr(g),m--;for(;0<v-m;)f=Fr(f),v--;for(;m--;){if(g===f||null!==f&&g===f.alternate)break e;g=Fr(g),f=Fr(f)}g=null}else g=null;null!==h&&Hr(c,u,h,g,!1),null!==d&&null!==p&&Hr(c,p,d,g,!0)}switch("select"===(h=(u=a?Qr(a):window).nodeName&&u.nodeName.toLowerCase())||"input"===h&&"file"===u.type?o=pr:cr(u)?pt?o=br:(o=vr,i=mr):!(h=u.nodeName)||"input"!==h.toLowerCase()||"checkbox"!==u.type&&"radio"!==u.type||(o=_r),(o=o&&o(e,a))?ur(c,o,n,l):(i&&i(e,u,a),"focusout"===e&&(i=u._wrapperState)&&i.controlled&&"number"===u.type&&ai(u,"number",u.value)),i=a?Qr(a):window,e){case"focusin":!cr(i)&&"true"!==i.contentEditable||(mt=i,vt=a,_t=null);break;case"focusout":_t=vt=mt=null;break;case"mousedown":bt=!0;break;case"contextmenu":case"mouseup":case"dragend":bt=!1,Or(c,n,l);break;case"selectionchange":if(gt)break;case"keydown":case"keyup":Or(c,n,l)}if(ot)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else ct?ar(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(st&&"ko"!==n.locale&&(ct||"onCompositionStart"!==b?"onCompositionEnd"===b&&ct&&(s=er()):(Re="value"in(Ie=l)?Ie.value:Ie.textContent,ct=!0)),0<(i=Rr(a,b)).length)&&(b=new Ge(b,e,null,n,l),c.push({event:b,listeners:i}),s||null!==(s=lr(n)))&&(b.data=s),(s=(rt?(e,t)=>{switch(e){case"compositionend":return lr(t);case"keypress":return 32!==t.which?null:(lt=!0,at);case"textInput":return(e=t.data)===at&&lt?null:e;default:return null}}:(e,t)=>{if(ct)return"compositionend"===e||!ot&&ar(e,t)?(e=er(),Fe=Re=Ie=null,ct=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return st&&"ko"!==t.locale?null:t.data}})(e,n))&&0<(a=Rr(a,"onBeforeInput")).length&&(l=new Ge("onBeforeInput","beforeinput",null,n,l),c.push({event:l,listeners:a}),l.data=s)}Nr(c,t)})}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rr(e,t){for(var n=t+"Capture",o=[];null!==e;){var i=e,r=i.stateNode;5===i.tag&&null!==r&&(i=r,null!=(r=Ti(e,n))&&o.unshift(Ir(e,r,i)),null!=(r=Ti(e,t)))&&o.push(Ir(e,r,i)),e=e.return}return o}function Fr(e){if(null===e)return null;for(;(e=e.return)&&5!==e.tag;);return e||null}function Hr(e,t,n,o,i){for(var r=t._reactName,s=[];null!==n&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===o)break;5===a.tag&&null!==c&&(a=c,i?null!=(l=Ti(n,r))&&s.unshift(Ir(n,l,a)):null!=(l=Ti(n,r))&&s.push(Ir(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}function Vr(e){return("string"==typeof e?e:""+e).replace(Lt,"\n").replace(Dt,"")}function jr(e,t,n){if(t=Vr(t),Vr(e)!==t&&n)throw Error(jo(425))}function zr(){}function Ur(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function Br(e){setTimeout(function(){throw e})}function Yr(e,t){var n=t,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===o)return e.removeChild(i),void qi(t);o--}else"$"!==n&&"$?"!==n&&"$!"!==n||o++}while(n=i);qi(t)}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function qr(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bt]||n[zt]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[zt])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function Xr(e){return!(e=e[zt]||e[Bt])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Qr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(jo(33))}function Zr(e){return e[Ut]||null}function Kr(e){return{current:e}}function Jr(e){Xt<0||(e.current=qt[Xt],qt[Xt]=null,Xt--)}function es(e,t){qt[++Xt]=e.current,e.current=t}function ts(e,t){var n=e.type.contextTypes;if(!n)return Qt;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i,r={};for(i in n)r[i]=t[i];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function ns(e){return null!=e.childContextTypes}function os(){Jr(Kt),Jr(Zt)}function is(e,t,n){if(Zt.current!==Qt)throw Error(jo(168));es(Zt,t),es(Kt,n)}function rs(e,t,n){var o,i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(o in i=i.getChildContext())if(!(o in t))throw Error(jo(108,Qo(e)||"Unknown",o));return A({},n,i)}function ss(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,Jt=Zt.current,es(Zt,e),es(Kt,Kt.current)}function as(e,t,n){var o=e.stateNode;if(!o)throw Error(jo(169));n?(e=rs(e,t,Jt),o.__reactInternalMemoizedMergedChildContext=e,Jr(Kt),Jr(Zt),es(Zt,e)):Jr(Kt),es(Kt,n)}function ls(e){null===en?en=[e]:en.push(e)}function cs(){if(!nn&&null!==en){nn=!0;var e=0,t=ke;try{var n=en;for(ke=1;e<n.length;e++)for(var o=n[e];null!==(o=o(!0)););en=null,tn=!1}catch(t){throw null!==en&&(en=en.slice(e+1)),re(he,cs),t}finally{ke=t,nn=!1}}return null}function us(e,t){on[rn++]=an,on[rn++]=sn,sn=e,an=t}function hs(e,t,n){ln[cn++]=hn,ln[cn++]=dn,ln[cn++]=un,un=e;var o,i=hn,r=(e=dn,32-_e(i)-1),s=(i&=~(1<<r),n+=1,32-_e(t)+r);dn=30<s?(s=(i&(1<<(o=r-r%5))-1).toString(32),i>>=o,r-=o,hn=1<<32-_e(t)+r|n<<r|i,s+e):(hn=1<<s|n<<r|i,e)}function ds(e){null!==e.return&&(us(e,1),hs(e,1,0))}function ps(e){for(;e===sn;)sn=on[--rn],on[rn]=null,an=on[--rn],on[rn]=null;for(;e===un;)un=ln[--cn],ln[cn]=null,dn=ln[--cn],ln[cn]=null,hn=ln[--cn],ln[cn]=null}function fs(e,t){var n=tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,null===(t=(n.return=e).deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function gs(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,pn=e,fn=Wr(t.firstChild),1);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,pn=e,fn=null,1);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==un?{id:hn,overflow:dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=tc(18,null,null,0)).stateNode=t,(n.return=e).child=n,pn=e,fn=null,1);default:return}}function ms(e){return!(!(1&e.mode)||128&e.flags)}function vs(e){if(gn)if(fn){var t=fn;if(!gs(e,fn)){if(ms(e))throw Error(jo(418));var n=Wr(t.nextSibling),o=pn;n&&gs(e,n)?fs(o,t):(e.flags=-4097&e.flags|2,gn=!1,pn=e)}}else{if(ms(e))throw Error(jo(418));e.flags=-4097&e.flags|2,gn=!1,pn=e}}function _s(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;pn=e}function bs(e){if(e!==pn)return!1;if(!gn)return _s(e),!(gn=!0);var t;if(t=(t=(t=3!==e.tag)&&!(t=5!==e.tag)?"head"!==(t=e.type)&&"body"!==t&&!Ur(e.type,e.memoizedProps):t)&&fn){if(ms(e))throw ys(),Error(jo(418));for(;t;)fs(e,t),t=Wr(t.nextSibling)}if(_s(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(jo(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){fn=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}fn=null}}else fn=pn?Wr(e.stateNode.nextSibling):null;return!0}function ys(){for(var e=fn;e;)e=Wr(e.nextSibling)}function ws(){fn=pn=null,gn=!1}function xs(e){null===mn?mn=[e]:mn.push(e)}function ks(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(jo(309));var o=n.stateNode}var i,r;if(o)return i=o,r=""+e,null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=i.refs;null===e?delete t[r]:t[r]=e})._stringRef=r,t);throw Error(jo(147,e))}if("string"!=typeof e)throw Error(jo(284));if(!n._owner)throw Error(jo(290,e))}return e}function Ss(e,t){throw e=Object.prototype.toString.call(t),Error(jo(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Os(e){return(0,e._init)(e._payload)}function Es(e){function t(t,n){var o;e&&(null===(o=t.deletions)?(t.deletions=[n],t.flags|=16):o.push(n))}function n(n,o){if(e)for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=oc(e,t)).index=0,e.sibling=null,e}function r(t,n,o){if(t.index=o,e){if(null!==(o=t.alternate))return(o=o.index)<n?(t.flags|=2,n):o;t.flags|=2}else t.flags|=1048576;return n}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function a(e,t,n,o){return null===t||6!==t.tag?(t=ac(n,e.mode,o)).return=e:(t=i(t,n)).return=e,t}function l(e,t,n,o){var r=n.type;return r===_?u(e,t,n.props.children,o,n.key):(null!==t&&(t.elementType===r||"object"==typeof r&&null!==r&&r.$$typeof===C&&Os(r)===t.type)?(o=i(t,n.props)).ref=ks(0,t,n):(o=ic(n.type,n.key,n.props,null,e.mode,o)).ref=ks(0,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=lc(n,e.mode,o)).return=e:(t=i(t,n.children||[])).return=e,t}function u(e,t,n,o,r){return null===t||7!==t.tag?(t=rc(n,e.mode,o,r)).return=e:(t=i(t,n)).return=e,t}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ac(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case m:return(n=ic(t.type,t.key,t.props,null,e.mode,n)).ref=ks(0,null,t),n.return=e,n;case v:return(t=lc(t,e.mode,n)).return=e,t;case C:return h(e,(0,t._init)(t._payload),n)}if(L(t)||Go(t))return(t=rc(t,e.mode,n,null)).return=e,t;Ss(0,t)}return null}function d(e,t,n,o){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:a(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,o):null;case v:return n.key===i?c(e,t,n,o):null;case C:return d(e,t,(i=n._init)(n._payload),o)}if(L(n)||Go(n))return null!==i?null:u(e,t,n,o,null);Ss(0,n)}return null}function p(e,t,n,o,i){if("string"==typeof o&&""!==o||"number"==typeof o)return a(t,e=e.get(n)||null,""+o,i);if("object"==typeof o&&null!==o){switch(o.$$typeof){case m:return l(t,e=e.get(null===o.key?n:o.key)||null,o,i);case v:return c(t,e=e.get(null===o.key?n:o.key)||null,o,i);case C:return p(e,t,n,(0,o._init)(o._payload),i)}if(L(o)||Go(o))return u(t,e=e.get(n)||null,o,i,null);Ss(0,o)}return null}return function a(l,c,u,f){if("object"==typeof(u="object"==typeof u&&null!==u&&u.type===_&&null===u.key?u.props.children:u)&&null!==u){switch(u.$$typeof){case m:e:{for(var g=u.key,b=c;null!==b;){if(b.key===g){if((g=u.type)===_){if(7===b.tag){n(l,b.sibling),(c=i(b,u.props.children)).return=l,l=c;break e}}else if(b.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===C&&Os(g)===b.type){n(l,b.sibling),(c=i(b,u.props)).ref=ks(0,b,u),c.return=l,l=c;break e}n(l,b);break}t(l,b),b=b.sibling}l=u.type===_?((c=rc(u.props.children,l.mode,f,u.key)).return=l,c):((f=ic(u.type,u.key,u.props,null,l.mode,f)).ref=ks(0,c,u),f.return=l,f)}return s(l);case v:e:{for(b=u.key;null!==c;){if(c.key===b){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(c=i(c,u.children||[])).return=l,l=c;break e}n(l,c);break}t(l,c),c=c.sibling}(c=lc(u,l.mode,f)).return=l,l=c}return s(l);case C:return a(l,c,(b=u._init)(u._payload),f)}if(L(u)){for(var y=l,w=c,x=u,k=f,S=null,O=null,E=w,T=w=0,P=null;null!==E&&T<x.length;T++){E.index>T?(P=E,E=null):P=E.sibling;var N=d(y,E,x[T],k);if(null===N){null===E&&(E=P);break}e&&E&&null===N.alternate&&t(y,E),w=r(N,w,T),null===O?S=N:O.sibling=N,O=N,E=P}if(T===x.length)n(y,E);else if(null===E)for(;T<x.length;T++)null!==(E=h(y,x[T],k))&&(w=r(E,w,T),null===O?S=E:O.sibling=E,O=E);else{for(E=o(y,E);T<x.length;T++)null!==(P=p(E,y,T,x[T],k))&&(e&&null!==P.alternate&&E.delete(null===P.key?T:P.key),w=r(P,w,T),null===O?S=P:O.sibling=P,O=P);e&&E.forEach(function(e){return t(y,e)})}return gn&&us(y,T),S}if(Go(u)){var $=l,A=c,M=u,D=f,I=Go(M);if("function"!=typeof I)throw Error(jo(150));if(null==(M=I.call(M)))throw Error(jo(151));for(var R=I=null,F=A,H=A=0,V=null,j=M.next();null!==F&&!j.done;H++,j=M.next()){F.index>H?(V=F,F=null):V=F.sibling;var z=d($,F,j.value,D);if(null===z){null===F&&(F=V);break}e&&F&&null===z.alternate&&t($,F),A=r(z,A,H),null===R?I=z:R.sibling=z,R=z,F=V}if(j.done)n($,F);else if(null===F)for(;!j.done;H++,j=M.next())null!==(j=h($,j.value,D))&&(A=r(j,A,H),null===R?I=j:R.sibling=j,R=j);else{for(F=o($,F);!j.done;H++,j=M.next())null!==(j=p(F,$,H,j.value,D))&&(e&&null!==j.alternate&&F.delete(null===j.key?H:j.key),A=r(j,A,H),null===R?I=j:R.sibling=j,R=j);e&&F.forEach(function(e){return t($,e)})}return gn&&us($,H),I}Ss(0,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,(c=null!==c&&6===c.tag?(n(l,c.sibling),i(c,u)):(n(l,c),ac(u,l.mode,f))).return=l,s(l=c)):n(l,c)}}function Ts(){kn=xn=wn=null}function Ps(e){var t=yn.current;Jr(yn),e._currentValue=t}function Cs(e,t,n){for(;null!==e;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==o&&(o.childLanes|=t)):null!==o&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ns(e,t){(kn=xn=null)!==(e=(wn=e).dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Xn=!0),e.firstContext=null)}function $s(e){var t=e._currentValue;if(kn!==e)if(e={context:e,memoizedValue:t,next:null},null===xn){if(null===wn)throw Error(jo(308));xn=e,wn.dependencies={lanes:0,firstContext:e}}else xn=xn.next=e;return t}function As(e){null===Sn?Sn=[e]:Sn.push(e)}function Ms(e,t,n,o){var i=t.interleaved;return null===i?(n.next=n,As(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ls(e,o)}function Ls(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),e=(n=e).return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),e=(n=e).return;return 3===n.tag?n.stateNode:null}function Ds(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Is(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fs(e,t,n){var o,i=e.updateQueue;return null===i?null:(i=i.shared,2&po?(null===(o=i.pending)?t.next=t:(t.next=o.next,o.next=t),i.pending=t):(null===(o=i.interleaved)?(t.next=t,As(i)):(t.next=o.next,o.next=t),i.interleaved=t),Ls(e,n))}function Hs(e,t,n){var o;null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)&&(o=t.lanes,o&=e.pendingLanes,Hi(e,t.lanes=n|=o))}function Vs(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var i=null,r=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null}}while(null===r?i=r=s:r=r.next=s,null!==(n=n.next));null===r?i=r=t:r=r.next=t}else i=r=t;n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:o.shared,effects:o.effects},e.updateQueue=n}else null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function js(e,t,n,o){var i,r,s=e.updateQueue,a=(On=!1,s.firstBaseUpdate),l=s.lastBaseUpdate;if(null!==(h=s.shared.pending)&&(s.shared.pending=null,r=(i=h).next,(i.next=null)===l?a=r:l.next=r,l=i,null!==(u=e.alternate))&&(h=(u=u.updateQueue).lastBaseUpdate)!==l&&(null===h?u.firstBaseUpdate=r:h.next=r,u.lastBaseUpdate=i),null!==a){for(var c=s.baseState,u=(l=0,r=i=null),h=a;;){var d=h.lane,p=h.eventTime;if((o&d)===d){null!==u&&(u=u.next={eventTime:p,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var f=e,g=h;d=t,p=n;switch(g.tag){case 1:if("function"==typeof(f=g.payload)){c=f.call(p,c,d);break e}c=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=g.payload)?f.call(p,c,d):f))break e;c=A({},c,d);break e;case 2:On=!0}}null!==h.callback&&0!==h.lane&&(e.flags|=64,null===(d=s.effects)?s.effects=[h]:d.push(h))}else p={eventTime:p,lane:d,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===u?(r=u=p,i=c):u=u.next=p,l|=d;if(null===(h=h.next)){if(null===(h=s.shared.pending))break;h=(d=h).next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}if(null===u&&(i=c),s.baseState=i,s.firstBaseUpdate=r,s.lastBaseUpdate=u,null!==(t=s.shared.interleaved))for(s=t;l|=s.lane,(s=s.next)!==t;);else null===a&&(s.shared.lanes=0);wo|=l,e.lanes=l,e.memoizedState=c}}function zs(e,t,n){if(e=t.effects,(t.effects=null)!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=n,"function"!=typeof i)throw Error(jo(191,i));i.call(o)}}}function Us(e){if(e===En)throw Error(jo(174));return e}function Bs(e,t){switch(es(Cn,t),es(Pn,e),es(Tn,En),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fi(null,"");break;default:t=fi(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Jr(Tn),es(Tn,t)}function Ys(){Jr(Tn),Jr(Pn),Jr(Cn)}function Ws(e){Us(Cn.current);var t=Us(Tn.current),n=fi(t,e.type);t!==n&&(es(Pn,e),es(Tn,n))}function Gs(e){Pn.current===e&&(Jr(Tn),Jr(Pn))}function qs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t=(t.child.return=t).child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Xs(){for(var e=0;e<$n.length;e++)$n[e]._workInProgressVersionPrimary=null;$n.length=0}function Qs(){throw Error(jo(321))}function Zs(e,t){if(null!==t){for(var n=0;n<t.length&&n<e.length;n++)if(!ft(e[n],t[n]))return;return 1}}function Ks(e,t,n,o,i,r){if(Ln=r,(Dn=t).memoizedState=null,t.updateQueue=null,t.lanes=0,An.current=null===e||null===e.memoizedState?Un:Bn,e=n(o,i),Hn){r=0;do{if(Hn=!1,Vn=0,25<=r)throw Error(jo(301))}while(r+=1,Rn=In=null,t.updateQueue=null,An.current=Yn,e=n(o,i),Hn)}if(An.current=zn,t=null!==In&&null!==In.next,Ln=0,Rn=In=Dn=null,Fn=!1,t)throw Error(jo(300));return e}function Js(){var e=0!==Vn;return Vn=0,e}function ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Rn?Dn.memoizedState=Rn=e:Rn=Rn.next=e,Rn}function ta(){e=null===In?null!==(e=Dn.alternate)?e.memoizedState:null:In.next;var e,t=null===Rn?Dn.memoizedState:Rn.next;if(null!==t)Rn=t,In=e;else{if(null===e)throw Error(jo(310));e={memoizedState:(In=e).memoizedState,baseState:In.baseState,baseQueue:In.baseQueue,queue:In.queue,next:null},null===Rn?Dn.memoizedState=Rn=e:Rn=Rn.next=e}return Rn}function na(e,t){return"function"==typeof t?t(e):t}function oa(e){var t=ta(),n=t.queue;if(null===n)throw Error(jo(311));n.lastRenderedReducer=e;var o,i=(s=In).baseQueue;if(null!==(r=n.pending)&&(null!==i&&(o=i.next,i.next=r.next,r.next=o),s.baseQueue=i=r,n.pending=null),null!==i){var r=i.next,s=s.baseState,a=o=null,l=null,c=r;do{var u,h=c.lane}while((Ln&h)===h?(null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),s=c.hasEagerState?c.eagerState:e(s,c.action)):(u={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===l?(a=l=u,o=s):l=l.next=u,Dn.lanes|=h,wo|=h),null!==(c=c.next)&&c!==r);null===l?o=s:l.next=a,ft(s,t.memoizedState)||(Xn=!0),t.memoizedState=s,t.baseState=o,t.baseQueue=l,n.lastRenderedState=s}if(null!==(e=n.interleaved))for(i=e;r=i.lane,Dn.lanes|=r,wo|=r,(i=i.next)!==e;);else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ia(e){var t=ta(),n=t.queue;if(null===n)throw Error(jo(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,r=t.memoizedState;if(null!==i){n.pending=null;for(var s=i=i.next;r=e(r,s.action),(s=s.next)!==i;);ft(r,t.memoizedState)||(Xn=!0),t.memoizedState=r,null===t.baseQueue&&(t.baseState=r),n.lastRenderedState=r}return[r,o]}function ra(){}function sa(e,t){var n=Dn,o=ta(),i=t(),r=!ft(o.memoizedState,i);if(r&&(o.memoizedState=i,Xn=!0),o=o.queue,_a(ca.bind(null,n,o,e),[e]),o.getSnapshot!==t||r||null!==Rn&&1&Rn.memoizedState.tag){if(n.flags|=2048,pa(9,la.bind(null,n,o,i,t),void 0,null),null===fo)throw Error(jo(349));!(30&Ln)&&aa(n,t,i)}return i}function aa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Dn.updateQueue)?(Dn.updateQueue=t={lastEffect:null,stores:null}).stores=[e]:null===(n=t.stores)?t.stores=[e]:n.push(e)}function la(e,t,n,o){t.value=n,t.getSnapshot=o,ua(t)&&ha(e)}function ca(e,t,n){return n(function(){ua(t)&&ha(e)})}function ua(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ft(e,n)}catch(e){return 1}}function ha(e){var t=Ls(e,1);null!==t&&$l(t,e,1,-1)}function da(e){var t=ea();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(t.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:e}).dispatch=function(e,t,n){var o=Nl(e),i={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pa(e))Ca(t,i);else{var r=e.alternate;if(0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{var s,a=t.lastRenderedState,l=r(a,n);if(i.hasEagerState=!0,i.eagerState=l,ft(l,a))return null===(s=t.interleaved)?(i.next=i,As(t)):(i.next=s.next,s.next=i),void(t.interleaved=i)}catch(e){}null!==(n=Ms(e,t,i,o))&&($l(n,e,o,i=Cl()),Na(n,t,o))}}.bind(null,Dn,e),[t.memoizedState,e]}function pa(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=Dn.updateQueue)?(Dn.updateQueue=t={lastEffect:null,stores:null}).lastEffect=e.next=e:null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,(n.next=e).next=o,t.lastEffect=e),e}function fa(){return ta().memoizedState}function ga(e,t,n,o){var i=ea();Dn.flags|=e,i.memoizedState=pa(1|t,n,void 0,void 0===o?null:o)}function ma(e,t,n,o){var i=ta(),r=void(o=void 0===o?null:o);if(null!==In){var s=In.memoizedState;r=s.destroy;if(null!==o&&Zs(o,s.deps))return void(i.memoizedState=pa(t,n,r,o))}Dn.flags|=e,i.memoizedState=pa(1|t,n,r,o)}function va(e,t){return ga(8390656,8,e,t)}function _a(e,t){return ma(2048,8,e,t)}function ba(e,t){return ma(4,2,e,t)}function ya(e,t){return ma(4,4,e,t)}function wa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xa(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,4,wa.bind(null,t,e),n)}function ka(){}function Sa(e,t){var n=ta(),o=(t=void 0===t?null:t,n.memoizedState);return null!==o&&null!==t&&Zs(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=ta(),o=(t=void 0===t?null:t,n.memoizedState);return null!==o&&null!==t&&Zs(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Ea(e,t,n){return 21&Ln?(ft(n,t)||(n=Ii(),Dn.lanes|=n,wo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Xn=!0),e.memoizedState=n)}function Ta(){return ta().memoizedState}function Pa(e){var t=e.alternate;return e===Dn||null!==t&&t===Dn}function Ca(e,t){Hn=Fn=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Na(e,t,n){var o;4194240&n&&(o=t.lanes,o&=e.pendingLanes,Hi(e,t.lanes=n|=o))}function $a(e,t){if(e&&e.defaultProps)for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function Aa(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}function Ma(e,t,n,o,i,r,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,r,s):!(t.prototype&&t.prototype.isPureReactComponent&&yr(n,o)&&yr(i,r))}function La(e,t,n){var o=!1,i=Qt,r=t.contextType;t=new t(n,r="object"==typeof r&&null!==r?$s(r):(i=ns(t)?Jt:Zt.current,(o=null!=(o=t.contextTypes))?ts(e,i):Qt)),e.memoizedState=null!=t.state?t.state:null,t.updater=Wn,(e.stateNode=t)._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=r)}function Da(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Wn.enqueueReplaceState(t,t.state,null)}function Ia(e,t,n,o){var i=e.stateNode,r=(i.props=n,i.state=e.memoizedState,i.refs={},Ds(e),t.contextType);"object"==typeof r&&null!==r?i.context=$s(r):(r=ns(t)?Jt:Zt.current,i.context=ts(e,r)),i.state=e.memoizedState,"function"==typeof(r=t.getDerivedStateFromProps)&&(Aa(e,0,r,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Wn.enqueueReplaceState(i,i.state,null),js(e,n,i,o),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Ra(e,t){try{for(var n="",o=t;n+=(e=>{switch(e.tag){case 5:return qo(e.type);case 16:return qo("Lazy");case 13:return qo("Suspense");case 19:return qo("SuspenseList");case 0:case 2:case 15:return Xo(e.type,!1);case 11:return Xo(e.type.render,!1);case 1:return Xo(e.type,!0);default:return""}})(o),o=o.return;);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function Fa(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Ha(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function Va(e,t,n){(n=Rs(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Co||(Co=!0,No=o),Ha(0,t)},n}function ja(e,t,n){(n=Rs(-1,n)).tag=3;var o,i=e.type.getDerivedStateFromError;return null!==(e=("function"==typeof i&&(o=t.value,n.payload=function(){return i(o)},n.callback=function(){Ha(0,t)}),e.stateNode))&&"function"==typeof e.componentDidCatch&&(n.callback=function(){Ha(0,t),"function"!=typeof i&&(null===$o?$o=new Set([this]):$o.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function za(e,t,n){var o,i=e.pingCache;null===i?(i=e.pingCache=new Gn,o=new Set,i.set(t,o)):void 0===(o=i.get(t))&&(o=new Set,i.set(t,o)),o.has(n)||(o.add(n),e=function(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=Cl(),e.pingedLanes|=e.suspendedLanes&n,fo===e&&(mo&n)===n&&(4===bo||3===bo&&(130023424&mo)===mo&&ce()-Eo<500?jl(e,0):ko|=n),Al(e,t)}.bind(null,e,t,n),t.then(e,e))}function Ua(e){do{var t;if(t=(t=13===e.tag)?null===(t=e.memoizedState)||null!==t.dehydrated:t)return e}while(null!==(e=e.return));return null}function Ba(e,t,n,o,i){if(!(1&e.mode))return e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Rs(-1,1)).tag=2,Fs(n,t,1))),n.lanes|=1);e.flags|=65536,e.lanes=i}function Ya(e,t,n,o){t.child=null===e?bn(t,null,n,o):_n(t,e.child,n,o)}function Wa(e,t,n,o,i){n=n.render;var r=t.ref;return Ns(t,i),o=Ks(e,t,n,o,r,i),n=Js(),null===e||Xn?(gn&&n&&ds(t),t.flags|=1,Ya(e,t,o,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ul(e,t,i))}function Ga(e,t,n,o,i){var r;if(null===e)return"function"!=typeof(r=n.type)||nc(r)||void 0!==r.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ic(n.type,null,o,t,t.mode,i)).ref=t.ref,(e.return=t).child=e):(t.tag=15,t.type=r,qa(e,t,r,o,i));if(r=e.child,0==(e.lanes&i)){var s=r.memoizedProps;if((n=null!==(n=n.compare)?n:yr)(s,o)&&e.ref===t.ref)return ul(e,t,i)}return t.flags|=1,(e=oc(r,o)).ref=t.ref,(e.return=t).child=e}function qa(e,t,n,o,i){if(null!==e){var r=e.memoizedProps;if(yr(r,o)&&e.ref===t.ref){if(Xn=!1,t.pendingProps=o=r,0==(e.lanes&i))return t.lanes=e.lanes,ul(e,t,i);131072&e.flags&&(Xn=!0)}}return Za(e,t,n,o,i)}function Xa(e,t,n){var o=t.pendingProps,i=o.children,r=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==r?r.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,es(_o,vo),vo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==r?r.baseLanes:n,es(_o,vo),vo|=o}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},es(_o,vo),vo|=n;else null!==r?(o=r.baseLanes|n,t.memoizedState=null):o=n,es(_o,vo),vo|=o;return Ya(e,t,i,n),t.child}function Qa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Za(e,t,n,o,i){var r=ts(t,ns(n)?Jt:Zt.current);return Ns(t,i),n=Ks(e,t,n,o,r,i),o=Js(),null===e||Xn?(gn&&o&&ds(t),t.flags|=1,Ya(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ul(e,t,i))}function Ka(e,t,n,o,i){var r,s,a,l,c,u,h,d,p,f;return ns(n)?(r=!0,ss(t)):r=!1,Ns(t,i),o=null===t.stateNode?(cl(e,t),La(t,n,o),Ia(t,n,o,i),!0):null===e?((s=t.stateNode).props=a=t.memoizedProps,d=s.context,l="object"==typeof(l=n.contextType)&&null!==l?$s(l):ts(t,l=ns(n)?Jt:Zt.current),(u="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||a===o&&d===l||Da(0,s,o,l),On=!1,s.state=h=t.memoizedState,js(t,o,s,i),d=t.memoizedState,a!==o||h!==d||Kt.current||On?("function"==typeof c&&(Aa(t,0,c,o),d=t.memoizedState),(a=On||Ma(t,n,a,o,h,d,l))?(u||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=d),s.props=o,s.state=d,s.context=l,a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),!1)):(s=t.stateNode,Is(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:$a(t.type,a),s.props=l,u=t.pendingProps,h=s.context,d="object"==typeof(d=n.contextType)&&null!==d?$s(d):ts(t,d=ns(n)?Jt:Zt.current),(c="function"==typeof(p=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||a===u&&h===d||Da(0,s,o,d),On=!1,s.state=h=t.memoizedState,js(t,o,s,i),f=t.memoizedState,a!==u||h!==f||Kt.current||On?("function"==typeof p&&(Aa(t,0,p,o),f=t.memoizedState),(l=On||Ma(t,n,l,o,h,f,d)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(o,f,d),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,f,d)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),s.props=o,s.state=f,s.context=d,l):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),!1)),Ja(e,t,n,o,r,i)}function Ja(e,t,n,o,i,r){Qa(e,t);var s=!!(128&t.flags);if(!o&&!s)return i&&as(t,n,!1),ul(e,t,r);o=t.stateNode,qn.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&s?(t.child=_n(t,e.child,null,r),t.child=_n(t,null,a,r)):Ya(e,t,a,r),t.memoizedState=o.state,i&&as(t,n,!0),t.child}function el(e){var t=e.stateNode;t.pendingContext?is(0,t.pendingContext,t.pendingContext!==t.context):t.context&&is(0,t.context,!1),Bs(e,t.containerInfo)}function tl(e,t,n,o,i){return ws(),xs(i),t.flags|=256,Ya(e,t,n,o),t.child}function nl(e){return{baseLanes:e,cachePool:null,transitions:null}}function ol(e,t,n){var o,i,r=t.pendingProps,s=Nn.current,a=!1,l=!!(128&t.flags);if((i=(i=l)||(null===e||null!==e.memoizedState)&&!!(2&s))?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),es(Nn,1&s),null===e)return vs(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,a?(r=t.mode,a=t.child,l={mode:"hidden",children:l},1&r||null===a?a=sc(l,r,0,null):(a.childLanes=0,a.pendingProps=l),e=rc(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=nl(n),t.memoizedState=Qn,e):il(t,l));if(null===(s=e.memoizedState)||null===(i=s.dehydrated))return a?(a=r.fallback,l=t.mode,i=(s=e.child).sibling,c={mode:"hidden",children:r.children},1&l||t.child===s?(r=oc(s,c)).subtreeFlags=14680064&s.subtreeFlags:((r=t.child).childLanes=0,r.pendingProps=c,t.deletions=null),null!==i?a=oc(i,a):(a=rc(a,l,n,null)).flags|=2,a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,l=null===(l=e.child.memoizedState)?nl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},(a=t.child).memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Qn):(e=(a=e.child).sibling,r=oc(a,{mode:"visible",children:r.children}),!(1&t.mode)&&(r.lanes=n),r.return=t,(r.sibling=null)!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null),r;var c=e,u=(a=t,e=r,i);t=s,r=n;if(l)return 256&a.flags?(a.flags&=-257,rl(c,a,r,e=Fa(Error(jo(422))))):null!==a.memoizedState?(a.child=c.child,a.flags|=128,null):(t=e.fallback,u=a.mode,e=sc({mode:"visible",children:e.children},u,0,null),(t=rc(t,u,r,null)).flags|=2,e.return=a,t.return=a,e.sibling=t,a.child=e,!!(1&a.mode)&&_n(a,c.child,null,r),a.child.memoizedState=nl(r),a.memoizedState=Qn,t);if(!(1&a.mode))return rl(c,a,r,null);if("$!"===u.data)return e=o=(e=u.nextSibling&&u.nextSibling.dataset)?e.dgst:o,rl(c,a,r,e=Fa(t=Error(jo(419)),e,void 0));if(o=0!=(r&c.childLanes),Xn||o){if(null!==(e=fo)){switch(r&-r){case 4:u=2;break;case 16:u=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:u=32;break;case 536870912:u=268435456;break;default:u=0}0!==(u=0!=(u&(e.suspendedLanes|r))?0:u)&&u!==t.retryLane&&(t.retryLane=u,Ls(c,u),$l(e,c,u,-1))}return Bl(),rl(c,a,r,e=Fa(Error(jo(421))))}return"$?"===u.data?(a.flags|=128,a.child=c.child,a=function(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Kl(e,n)}.bind(null,c),u._reactRetry=a,null):(c=t.treeContext,fn=Wr(u.nextSibling),pn=a,gn=!0,(mn=null)!==c&&(ln[cn++]=hn,ln[cn++]=dn,ln[cn++]=un,hn=c.id,dn=c.overflow,un=a),(a=il(a,e.children)).flags|=4096,a)}function il(e,t){return((t=sc({mode:"visible",children:t},e.mode,0,null)).return=e).child=t}function rl(e,t,n,o){return null!==o&&xs(o),_n(t,e.child,null,n),(e=il(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function sl(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),Cs(e.return,t,n)}function al(e,t,n,o,i){var r=e.memoizedState;null===r?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=o,r.tail=n,r.tailMode=i)}function ll(e,t,n){var o=t.pendingProps,i=o.revealOrder,r=o.tail;if(Ya(e,t,o.children,n),2&(o=Nn.current))o=1&o|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&sl(e,n,t);else if(19===e.tag)sl(e,n,t);else if(null!==e.child){e=(e.child.return=e).child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(es(Nn,o),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===qs(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),al(t,!1,i,n,r);break;case"backwards":for(i=t.child,t.child=n=null;null!==i;){if(null!==(e=i.alternate)&&null===qs(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}al(t,!0,n,null,r);break;case"together":al(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function cl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ul(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),wo|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(jo(153));if(null!==t.child){for(n=oc(e=t.child,e.pendingProps),(t.child=n).return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function hl(e,t){if(!gn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function dl(e){var t=0,n=0;if(null!==e.alternate&&e.alternate.child===e.child)for(var o=e.child;null!==o;)t|=o.lanes|o.childLanes,n=(n|=14680064&o.subtreeFlags)|14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)t|=o.lanes|o.childLanes,n=(n|=o.subtreeFlags)|o.flags,o.return=e,o=o.sibling;e.subtreeFlags|=n,e.childLanes=t}function pl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Zl(e,t,n)}else n.current=null}function fl(e,t,n){try{n()}catch(n){Zl(e,t,n)}}function gl(e,t,n){var o=t.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var i,r=o=o.next;do{}while((r.tag&e)===e&&(i=r.destroy,(r.destroy=void 0)!==i)&&fl(t,n,i),(r=r.next)!==o)}}function ml(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n,o=t=t.next;do{}while((o.tag&e)===e&&(n=o.create,o.destroy=n()),(o=o.next)!==t)}}function vl(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function _l(e){return 5===e.tag||3===e.tag||4===e.tag}function bl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_l(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e=(e.child.return=e).child}if(!(2&e.flags))return e.stateNode}}function yl(e,t,n){for(n=n.child;null!==n;)wl(e,t,n),n=n.sibling}function wl(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(me,n)}catch(e){}switch(n.tag){case 5:no||pl(n,t);case 6:var o=so,i=ao;so=null,yl(e,t,n),ao=i,null!==(so=o)&&(ao?(e=so,n=n.stateNode,(8===e.nodeType?e.parentNode:e).removeChild(n)):so.removeChild(n.stateNode));break;case 18:null!==so&&(ao?(e=so,n=n.stateNode,8===e.nodeType?Yr(e.parentNode,n):1===e.nodeType&&Yr(e,n),qi(e)):Yr(so,n.stateNode));break;case 4:o=so,i=ao,so=n.stateNode.containerInfo,ao=!0,yl(e,t,n),so=o,ao=i;break;case 0:case 11:case 14:case 15:if(!no&&null!==(o=n.updateQueue)&&null!==(o=o.lastEffect)){i=o=o.next;do{var r=i.destroy,s=i.tag}while(void 0===r||!(2&s)&&!(4&s)||fl(n,t,r),(i=i.next)!==o)}yl(e,t,n);break;case 1:if(!no&&(pl(n,t),"function"==typeof(o=n.stateNode).componentWillUnmount))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(e){Zl(n,t,e)}yl(e,t,n);break;case 21:yl(e,t,n);break;case 22:1&n.mode?(no=(o=no)||null!==n.memoizedState,yl(e,t,n),no=o):yl(e,t,n);break;default:yl(e,t,n)}}function xl(e){var t,n=e.updateQueue;null!==n&&((e.updateQueue=null)===(t=e.stateNode)&&(t=e.stateNode=new oo),n.forEach(function(n){var o=function(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(jo(314))}null!==o&&o.delete(t),Kl(e,n)}.bind(null,e,n);t.has(n)||(t.add(n),n.then(o,o))}))}function kl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o];try{var r=e,s=t,a=s;e:for(;null!==a;){switch(a.tag){case 5:so=a.stateNode,ao=!1;break e;case 3:case 4:so=a.stateNode.containerInfo,ao=!0;break e}a=a.return}if(null===so)throw Error(jo(160));wl(r,s,i),so=null,ao=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){Zl(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Sl(t,e),t=t.sibling}function Sl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kl(t,e),Ol(e),4&o){try{gl(3,e,e.return),ml(3,e)}catch(t){Zl(e,e.return,t)}try{gl(5,e,e.return)}catch(t){Zl(e,e.return,t)}}break;case 1:kl(t,e),Ol(e),512&o&&null!==n&&pl(n,n.return);break;case 5:if(kl(t,e),Ol(e),512&o&&null!==n&&pl(n,n.return),32&e.flags){var i=e.stateNode;try{gi(i,"")}catch(t){Zl(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var r=e.memoizedProps,s=null!==n?n.memoizedProps:r,a=e.type,l=e.updateQueue;if((e.updateQueue=null)!==l)try{"input"===a&&"radio"===r.type&&null!=r.name&&ii(i,r),bi(a,s);var c=bi(a,r);for(s=0;s<l.length;s+=2){var u=l[s],h=l[s+1];"style"===u?vi(i,h):"dangerouslySetInnerHTML"===u?D(i,h):"children"===u?gi(i,h):Wo(i,u,h,c)}switch(a){case"input":ri(i,r);break;case"textarea":hi(i,r);break;case"select":var d=i._wrapperState.wasMultiple,p=(i._wrapperState.wasMultiple=!!r.multiple,r.value);null!=p?li(i,!!r.multiple,p,!1):d!==!!r.multiple&&(null!=r.defaultValue?li(i,!!r.multiple,r.defaultValue,!0):li(i,!!r.multiple,r.multiple?[]:"",!1))}i[Ut]=r}catch(t){Zl(e,e.return,t)}}break;case 6:if(kl(t,e),Ol(e),4&o){if(null===e.stateNode)throw Error(jo(162));i=e.stateNode,r=e.memoizedProps;try{i.nodeValue=r}catch(t){Zl(e,e.return,t)}}break;case 3:if(kl(t,e),Ol(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{qi(t.containerInfo)}catch(t){Zl(e,e.return,t)}break;case 4:default:kl(t,e),Ol(e);break;case 13:kl(t,e),Ol(e),8192&(i=e.child).flags&&(r=null!==i.memoizedState,!(i.stateNode.isHidden=r)||null!==i.alternate&&null!==i.alternate.memoizedState||(Eo=ce())),4&o&&xl(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(no=(c=no)||u,kl(t,e),no=c):kl(t,e),Ol(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(u=(io=e).child;null!==u;){for(h=io=u;null!==io;){switch(p=(d=io).child,d.tag){case 0:case 11:case 14:case 15:gl(4,d,d.return);break;case 1:pl(d,d.return);var f=d.stateNode;if("function"==typeof f.componentWillUnmount){n=(o=d).return;try{t=o,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(t){Zl(o,n,t)}}break;case 5:pl(d,d.return);break;case 22:if(null!==d.memoizedState){Tl(h);continue}}null!==p?(p.return=d,io=p):Tl(h)}u=u.sibling}e:for(u=null,h=e;;){if(5===h.tag){if(null===u){u=h;try{i=h.stateNode,c?"function"==typeof(r=i.style).setProperty?r.setProperty("display","none","important"):r.display="none":(a=h.stateNode,s=null!=(l=h.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,a.style.display=mi("display",s))}catch(t){Zl(e,e.return,t)}}}else if(6===h.tag){if(null===u)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){Zl(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h=(h.child.return=h).child;continue}if(h===e)break;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:kl(t,e),Ol(e),4&o&&xl(e);case 21:}}function Ol(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(_l(n)){var o=n;break e}n=n.return}throw Error(jo(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(gi(i,""),o.flags&=-33),function e(t,n,o){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?o.insertBefore(t,n):o.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,bl(e),i);break;case 3:case 4:var r=o.stateNode.containerInfo;!function e(t,n,o){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?(8===o.nodeType?o.parentNode:o).insertBefore(t,n):(8===o.nodeType?(n=o.parentNode).insertBefore(t,o):(n=o).appendChild(t),null==(o=o._reactRootContainer)&&null===n.onclick&&(n.onclick=zr));else if(4!==i&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,bl(e),r);break;default:throw Error(jo(161))}}catch(t){Zl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function El(e){for(;null!==io;){var t=io;if(8772&t.flags){var n,o,i,r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:no||ml(5,t);break;case 1:var s,a=t.stateNode,l=(4&t.flags&&!no&&(null===r?a.componentDidMount():(s=t.elementType===t.type?r.memoizedProps:$a(t.type,r.memoizedProps),a.componentDidUpdate(s,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate))),t.updateQueue);null!==l&&zs(0,l,a);break;case 3:var c=t.updateQueue;if(null!==c){if((r=null)!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}zs(0,c,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&r.focus();break;case"img":h.src&&(r.src=h.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:null===t.memoizedState&&null!==(n=t.alternate)&&null!==(o=n.memoizedState)&&null!==(i=o.dehydrated)&&qi(i);break;default:throw Error(jo(163))}no||512&t.flags&&vl(t)}catch(e){Zl(t,t.return,e)}}if(t===e){io=null;break}if(null!==(r=t.sibling)){r.return=t.return,io=r;break}io=t.return}}function Tl(e){for(;null!==io;){var t=io;if(t===e){io=null;break}var n=t.sibling;if(null!==n){n.return=t.return,io=n;break}io=t.return}}function Pl(e){for(;null!==io;){var t=io;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ml(4,t)}catch(e){Zl(t,n,e)}break;case 1:var o=t.stateNode;if("function"==typeof o.componentDidMount){var i=t.return;try{o.componentDidMount()}catch(e){Zl(t,i,e)}}var r=t.return;try{vl(t)}catch(e){Zl(t,r,e)}break;case 5:var s=t.return;try{vl(t)}catch(e){Zl(t,s,e)}}}catch(e){Zl(t,t.return,e)}if(t===e){io=null;break}var a=t.sibling;if(null!==a){a.return=t.return,io=a;break}io=t.return}}function Cl(){return 6&po?ce():-1!==Ro?Ro:Ro=ce()}function Nl(e){return 1&e.mode?2&po&&0!==mo?mo&-mo:null!==vn.transition?Fo=0===Fo?Ii():Fo:0===(e=ke)?void 0===(e=window.event)?16:Ji(e.type):e:1}function $l(e,t,n,o){if(50<Do)throw Do=0,Io=null,Error(jo(185));Fi(e,n,o),2&po&&e===fo||(e===fo&&(!(2&po)&&(xo|=n),4===bo)&&Il(e,mo),Al(e,o),1===n&&0===po&&!(1&t.mode)&&(To=ce()+500,tn)&&cs())}function Al(e,t){var n,o=e.callbackNode,i=(function(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes;0<r;){var s=31-_e(r),a=1<<s,l=i[s];-1===l?0!=(a&n)&&0==(a&o)||(i[s]=((e,t)=>{switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}})(a,t)):l<=t&&(e.expiredLanes|=a),r&=~a}}(e,t),Li(e,e===fo?mo:0));if(0===i)null!==o&&se(o),e.callbackNode=null,e.callbackPriority=0;else if(e.callbackPriority!==(t=i&-i)){if(null!=o&&se(o),1===t)0===e.tag?(n=Rl.bind(null,e),tn=!0,ls(n)):ls(Rl.bind(null,e)),jt(function(){!(6&po)&&cs()}),o=null;else{switch(Vi(i)){case 1:o=he;break;case 4:o=de;break;case 16:default:o=pe;break;case 536870912:o=ge}o=Jl(o,Ml.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function Ml(e,t){if(Ro=-1,(Fo=0)!=(6&po))throw Error(jo(327));var n=e.callbackNode;if(Xl()&&e.callbackNode!==n)return null;var o=Li(e,e===fo?mo:0);if(0===o)return null;if(30&o||0!=(o&e.expiredLanes)||t)t=Yl(e,o);else{t=o;var i=po,r=(po|=2,Ul());for(fo===e&&mo===t||(Po=null,To=ce()+500,jl(e,t));;)try{for(;null!==go&&!ae();)Wl(go);break}catch(t){zl(e,t)}Ts(),co.current=r,po=i,t=null!==go?0:(fo=null,mo=0,bo)}if(0!==t){if(1===(t=2===t&&0!==(i=Di(e))?Ll(e,o=i):t))throw n=yo,jl(e,0),Il(e,o),Al(e,ce()),n;if(6===t)Il(e,o);else{if(i=e.current.alternate,!(30&o||(e=>{for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var o=0;o<n.length;o++){var i=n[o],r=i.getSnapshot;i=i.value;try{if(!ft(r(),i))return}catch(e){return}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return 1;t=t.return}t.sibling.return=t.return,t=t.sibling}}return 1})(i)||1!==(t=2===(t=Yl(e,o))&&0!==(r=Di(e))?Ll(e,o=r):t)))throw n=yo,jl(e,0),Il(e,o),Al(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(jo(345));case 2:case 5:ql(e,Oo,Po);break;case 3:if(Il(e,o),(130023424&o)===o&&10<(t=Eo+500-ce())){if(0!==Li(e,0))break;if(((i=e.suspendedLanes)&o)!==o){Cl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ft(ql.bind(null,e,Oo,Po),t)}else ql(e,Oo,Po);break;case 4:if(Il(e,o),(4194240&o)!==o){for(t=e.eventTimes,i=-1;0<o;){var s=31-_e(o);r=1<<s;i<(s=t[s])&&(i=s),o&=~r}o=i,10<(o=((o=ce()-o)<120?120:o<480?480:o<1080?1080:o<1920?1920:o<3e3?3e3:o<4320?4320:1960*lo(o/1960))-o)?e.timeoutHandle=Ft(ql.bind(null,e,Oo,Po),o):ql(e,Oo,Po)}break;default:throw Error(jo(329))}}}return Al(e,ce()),e.callbackNode===n?Ml.bind(null,e):null}function Ll(e,t){var n=So;return e.current.memoizedState.isDehydrated&&(jl(e,t).flags|=256),2!==(e=Yl(e,t))&&(t=Oo,Oo=n,null!==t)&&Dl(t),e}function Dl(e){null===Oo?Oo=e:Oo.push.apply(Oo,e)}function Il(e,t){for(t=t&~ko&~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_e(t),o=1<<n;e[n]=-1,t&=~o}}function Rl(e){if(6&po)throw Error(jo(327));Xl();var t=Li(e,0);if(1&t){var n,o=Yl(e,t);if(1===(o=0!==e.tag&&2===o&&0!==(n=Di(e))?Ll(e,t=n):o))throw o=yo,jl(e,0),Il(e,t),Al(e,ce()),o;if(6===o)throw Error(jo(345));e.finishedWork=e.current.alternate,e.finishedLanes=t,ql(e,Oo,Po)}return Al(e,ce()),null}function Fl(e,t){var n=po;po|=1;try{return e(t)}finally{0===(po=n)&&(To=ce()+500,tn)&&cs()}}function Hl(e){null!==Mo&&0===Mo.tag&&!(6&po)&&Xl();var t=po,n=(po|=1,ho.transition),o=ke;try{if(ho.transition=null,ke=1,e)return e()}finally{ke=o,ho.transition=n,!(6&(po=t))&&cs()}}function Vl(){vo=_o.current,Jr(_o)}function jl(e,t){e.finishedWork=null,e.finishedLanes=0;var n,o,i,r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Ht(r)),null!==go)for(r=go.return;null!==r;){var s=r;switch(ps(s),s.tag){case 1:null!=(s=s.type.childContextTypes)&&os();break;case 3:Ys(),Jr(Kt),Jr(Zt),Xs();break;case 5:Gs(s);break;case 4:Ys();break;case 13:case 19:Jr(Nn);break;case 10:Ps(s.type._context);break;case 22:case 23:Vl()}r=r.return}if(go=e=oc((fo=e).current,null),mo=vo=t,ko=xo=wo=bo=0,(Oo=So=yo=null)!==Sn){for(t=0;t<Sn.length;t++)null!==(s=(r=Sn[t]).interleaved)&&(r.interleaved=null,n=s.next,null!==(o=r.pending)&&(i=o.next,o.next=n,s.next=i),r.pending=s);Sn=null}return e}function zl(e,t){for(;;){var n=go;try{if(Ts(),An.current=zn,Fn){for(var o=Dn.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}Fn=!1}if(Rn=In=Dn=null,Hn=!1,Vn=Ln=0,(uo.current=null)===n||null===n.return){bo=1,yo=t,go=null;break}e:{var r=e,s=n.return,a=t;if(t=mo,(m=n).flags|=32768,null!==a&&"object"==typeof a&&"function"==typeof a.then){var l,c=a,u=m,h=u.tag,d=(!!(1&u.mode)||0!==h&&11!==h&&15!==h||((l=u.alternate)?(u.updateQueue=l.updateQueue,u.memoizedState=l.memoizedState,u.lanes=l.lanes):(u.updateQueue=null,u.memoizedState=null)),Ua(s));if(null!==d){d.flags&=-257,Ba(d,s,m,0,t),1&d.mode&&za(r,c,t);a=c;var p,f=(t=d).updateQueue;null===f?((p=new Set).add(a),t.updateQueue=p):f.add(a);break e}if(!(1&t)){za(r,c,t),Bl();break e}a=Error(jo(426))}else if(gn&&1&m.mode){var g=Ua(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),Ba(g,s,m,0,t),xs(Ra(a,m));break e}}r=a=Ra(a,m),4!==bo&&(bo=2),null===So?So=[r]:So.push(r),r=s;do{switch(r.tag){case 3:r.flags|=65536,t&=-t,r.lanes|=t,Vs(r,Va(0,a,t));break e;case 1:var m=a,v=r.type,_=r.stateNode;if(!(128&r.flags||"function"!=typeof v.getDerivedStateFromError&&(null===_||"function"!=typeof _.componentDidCatch||null!==$o&&$o.has(_)))){r.flags|=65536,t&=-t,r.lanes|=t,Vs(r,ja(r,m,t));break e}}}while(null!==(r=r.return))}Gl(n)}catch(e){t=e,go===n&&null!==n&&(go=n.return);continue}break}}function Ul(){var e=co.current;return co.current=zn,null===e?zn:e}function Bl(){0!==bo&&3!==bo&&2!==bo||(bo=4),null===fo||!(268435455&wo)&&!(268435455&xo)||Il(fo,mo)}function Yl(e,t){var n=po,o=(po|=2,Ul());for(fo===e&&mo===t||(Po=null,jl(e,t));;)try{for(;null!==go;)Wl(go);break}catch(t){zl(e,t)}if(Ts(),po=n,co.current=o,null!==go)throw Error(jo(261));return fo=null,mo=0,bo}function Wl(e){var t=Ho(e.alternate,e,vo);e.memoizedProps=e.pendingProps,null===t?Gl(e):go=t,uo.current=null}function Gl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=((e,t)=>{switch(ps(t),t.tag){case 1:return ns(t.type)&&os(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ys(),Jr(Kt),Jr(Zt),Xs(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Gs(t),null;case 13:if(Jr(Nn),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(jo(340));ws()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Jr(Nn),null;case 4:return Ys(),null;case 10:return Ps(t.type._context),null;case 22:case 23:return Vl(),null;default:return null}})(n,t)))return n.flags&=32767,void(go=n);if(null===e)return bo=6,void(go=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=((e,t,n)=>{var o=t.pendingProps;switch(ps(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dl(t),null;case 1:case 17:return ns(t.type)&&os(),dl(t),null;case 3:return o=t.stateNode,Ys(),Jr(Kt),Jr(Zt),Xs(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(bs(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==mn&&(Dl(mn),mn=null))),Kn(e,t),dl(t),null;case 5:Gs(t);var i,r=Us(Cn.current);if(n=t.type,null!==e&&null!=t.stateNode)Jn(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(jo(166));return dl(t),null}if(e=Us(Tn.current),bs(t)){o=t.stateNode,n=t.type;var a,l,c=t.memoizedProps;switch(o[zt]=t,o[Ut]=c,e=!!(1&t.mode),n){case"dialog":$r("cancel",o),$r("close",o);break;case"iframe":case"object":case"embed":$r("load",o);break;case"video":case"audio":for(r=0;r<$t.length;r++)$r($t[r],o);break;case"source":$r("error",o);break;case"img":case"image":case"link":$r("error",o),$r("load",o);break;case"details":$r("toggle",o);break;case"input":oi(o,c),$r("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},$r("invalid",o);break;case"textarea":ui(o,c),$r("invalid",o)}for(a in _i(n,c),r=null,c)c.hasOwnProperty(a)&&(l=c[a],"children"===a?"string"==typeof l?o.textContent!==l&&(!0!==c.suppressHydrationWarning&&jr(o.textContent,l,e),r=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(!0!==c.suppressHydrationWarning&&jr(o.textContent,l,e),r=["children",""+l]):s.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&$r("scroll",o));switch(n){case"input":Jo(o),si(o,c,!0);break;case"textarea":Jo(o),di(o);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(o.onclick=zr)}o=r,null!==(t.updateQueue=o)&&(t.flags|=4)}else{a=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===(e="http://www.w3.org/1999/xhtml"===e?pi(n):e)?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=a.createElement(n,{is:o.is}):(e=a.createElement(n),"select"===n&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,n),e[zt]=t,e[Ut]=o,Zn(e,t,!1,!1),t.stateNode=e;e:{switch(a=bi(n,o),n){case"dialog":$r("cancel",e),$r("close",e),r=o;break;case"iframe":case"object":case"embed":$r("load",e),r=o;break;case"video":case"audio":for(r=0;r<$t.length;r++)$r($t[r],e);r=o;break;case"source":$r("error",e),r=o;break;case"img":case"image":case"link":$r("error",e),$r("load",e),r=o;break;case"details":$r("toggle",e),r=o;break;case"input":oi(e,o),r=ni(e,o),$r("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=A({},o,{value:void 0}),$r("invalid",e);break;case"textarea":ui(e,o),r=ci(e,o),$r("invalid",e)}for(c in _i(n,r),l=r)l.hasOwnProperty(c)&&(i=l[c],"style"===c?vi(e,i):"dangerouslySetInnerHTML"===c?null!=(i=i?i.__html:void 0)&&D(e,i):"children"===c?"string"==typeof i?"textarea"===n&&""===i||gi(e,i):"number"==typeof i&&gi(e,""+i):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?null!=i&&"onScroll"===c&&$r("scroll",e):null!=i&&Wo(e,c,i,a)));switch(n){case"input":Jo(e),si(e,o,!1);break;case"textarea":Jo(e),di(e);break;case"option":null!=o.value&&e.setAttribute("value",""+Zo(o.value));break;case"select":e.multiple=!!o.multiple,null!=(c=o.value)?li(e,!!o.multiple,c,!1):null!=o.defaultValue&&li(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=zr)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return dl(t),null;case 6:if(e&&null!=t.stateNode)eo(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(jo(166));if(n=Us(Cn.current),Us(Tn.current),bs(t)){if(o=t.stateNode,n=t.memoizedProps,o[zt]=t,(c=o.nodeValue!==n)&&null!==(e=pn))switch(e.tag){case 3:jr(o.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&jr(o.nodeValue,n,!!(1&e.mode))}c&&(t.flags|=4)}else((o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[zt]=t).stateNode=o}return dl(t),null;case 13:if(Jr(Nn),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(gn&&null!==fn&&1&t.mode&&!(128&t.flags))ys(),ws(),t.flags|=98560,c=!1;else if(c=bs(t),null!==o&&null!==o.dehydrated){if(null===e){if(!c)throw Error(jo(318));if(!(c=null!==(c=t.memoizedState)?c.dehydrated:null))throw Error(jo(317));c[zt]=t}else ws(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;dl(t),c=!1}else null!==mn&&(Dl(mn),mn=null),c=!0;if(!c)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((o=null!==o)!=(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,!!(1&t.mode))&&(null===e||1&Nn.current?0===bo&&(bo=3):Bl()),null!==t.updateQueue&&(t.flags|=4),dl(t),null);case 4:return Ys(),Kn(e,t),null===e&&Mr(t.stateNode.containerInfo),dl(t),null;case 10:return Ps(t.type._context),dl(t),null;case 19:if(Jr(Nn),null===(c=t.memoizedState));else{if(o=!!(128&t.flags),null===(a=c.rendering))if(o)hl(c,!1);else{if(0!==bo||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=qs(e))){for(t.flags|=128,hl(c,!1),null!==(o=a.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(c=n).flags&=14680066,null===(a=c.alternate)?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,c.type=a.type,e=a.dependencies,c.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return es(Nn,1&Nn.current|2),t.child}e=e.sibling}null!==c.tail&&ce()>To&&(t.flags|=128,hl(c,!(o=!0)),t.lanes=4194304)}else{if(!o)if(null!==(e=qs(a))){if(t.flags|=128,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),hl(c,!0),null===c.tail&&"hidden"===c.tailMode&&!a.alternate&&!gn)return dl(t),null}else 2*ce()-c.renderingStartTime>To&&1073741824!==n&&(t.flags|=128,hl(c,!(o=!0)),t.lanes=4194304);c.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=c.last)?n.sibling=a:t.child=a,c.last=a)}if(null!==c.tail)return t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=ce(),t.sibling=null,n=Nn.current,es(Nn,o?1&n|2:1&n),t}return dl(t),null;case 22:case 23:return Vl(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&vo)&&(dl(t),6&t.subtreeFlags)&&(t.flags|=8192):dl(t),null;case 24:case 25:return null}throw Error(jo(156,t.tag))})(n,t,vo)))return void(go=n);if(null!==(t=t.sibling))return void(go=t)}while(go=t=e,null!==t);0===bo&&(bo=5)}function ql(e,t,n){var o=ke,i=ho.transition;try{ho.transition=null,ke=1;for(var r=e,s=t,a=n,l=o;Xl(),null!==Mo;);if(6&po)throw Error(jo(327));a=r.finishedWork;var c=r.finishedLanes;if(null!==a){if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(jo(177));r.callbackNode=null,r.callbackPriority=0;var u,h,d=a.lanes|a.childLanes;if(((e,t)=>{var n=e.pendingLanes&~t,o=(e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements,e.eventTimes);for(e=e.expirationTimes;0<n;){var i=31-_e(n),r=1<<i;t[i]=0,o[i]=-1,e[i]=-1,n&=~r}})(r,d),r===fo&&(go=fo=null,mo=0),!(2064&a.subtreeFlags)&&!(2064&a.flags)||Ao||(Ao=!0,Jl(pe,function(){return Xl(),null})),d=!!(15990&a.flags),15990&a.subtreeFlags||d?(d=ho.transition,ho.transition=null,u=ke,ke=1,h=po,po|=4,uo.current=null,((e,t)=>{if(It=Le,Sr(e=kr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:if((r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection())&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode,r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s,a=0,l=-1,c=-1,u=0,h=0,d=e,p=null;t:for(;;){for(;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(c=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(s=d.firstChild);)p=d,d=s;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++h===r&&(c=a),null!==(s=d.nextSibling))break;p=(d=p).parentNode}d=s}n=-1===l||-1===c?null:{start:l,end:c}}else n=null;n=n||{start:0,end:0}}else n=null;for(Le=!(Rt={focusedElem:e,selectionRange:n}),io=t;null!==io;)if(e=(t=io).child,1028&t.subtreeFlags&&null!==e)e.return=t,io=e;else for(;null!==io;){t=io;try{var f,g,m,v,_=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:null!==_&&(f=_.memoizedProps,g=_.memoizedState,v=(m=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?f:$a(t.type,f),g),m.__reactInternalSnapshotBeforeUpdate=v);break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(jo(163))}}catch(e){Zl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,io=e;break}io=t.return}_=ro,ro=!1})(r,a),Sl(a,r),function(e){var t,n,o,i=kr(),r=e.focusedElem,s=e.selectionRange;if(i!==r&&r&&r.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(r.ownerDocument.documentElement,r)){null!==s&&Sr(r)&&(i=s.start,void 0===(e=s.end)&&(e=i),"selectionStart"in r?(r.selectionStart=i,r.selectionEnd=Math.min(e,r.value.length)):(e=(i=r.ownerDocument||document)&&i.defaultView||window).getSelection&&(e=e.getSelection(),n=r.textContent.length,t=Math.min(s.start,n),s=void 0===s.end?t:Math.min(s.end,n),!e.extend&&s<t&&(n=s,s=t,t=n),n=xr(r,t),o=xr(r,s),n)&&o&&(1!==e.rangeCount||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((i=i.createRange()).setStart(n.node,n.offset),e.removeAllRanges(),s<t?(e.addRange(i),e.extend(o.node,o.offset)):(i.setEnd(o.node,o.offset),e.addRange(i)))),i=[];for(e=r;e=e.parentNode;)1===e.nodeType&&i.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<i.length;r++)(e=i[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(Rt),Le=!!It,Rt=It=null,function(e){!function e(t,n,o){for(var i=!!(1&t.mode);null!==io;){var r=io,s=r.child;if(22===r.tag&&i){var a=null!==r.memoizedState||to;if(!a){var l=r.alternate,c=null!==l&&null!==l.memoizedState||no,u=(l=to,no);if(to=a,(no=c)&&!u)for(io=r;null!==io;)c=(a=io).child,22===a.tag&&null!==a.memoizedState||null===c?Pl(r):(c.return=a,io=c);for(;null!==s;)e(io=s),s=s.sibling;io=r,to=l,no=u}El(t)}else 8772&r.subtreeFlags&&null!==s?(s.return=r,io=s):El(t)}}(io=e)}(r.current=a),le(),po=h,ke=u,ho.transition=d):r.current=a,Ao&&(Ao=!1,Mo=r,Lo=c),0===(d=r.pendingLanes)&&($o=null),(e=>{if(ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(me,e,void 0,!(128&~e.current.flags))}catch(e){}})(a.stateNode),Al(r,ce()),null!==s)for(l=r.onRecoverableError,a=0;a<s.length;a++)l((c=s[a]).value,{componentStack:c.stack,digest:c.digest});if(Co)throw Co=!1,r=No,No=null,r;!!(1&Lo)&&0!==r.tag&&Xl(),1&(d=r.pendingLanes)?r===Io?Do++:(Do=0,Io=r):Do=0,cs()}}finally{ho.transition=i,ke=o}return null}function Xl(){if(null!==Mo){var e=Vi(Lo),t=ho.transition,n=ke;try{if(ho.transition=null,ke=e<16?16:e,null===Mo)var o=!1;else{if(e=Mo,Mo=null,(Lo=0)!=(6&po))throw Error(jo(331));var i=po;for(po|=4,io=e.current;null!==io;){var r=io,s=r.child;if(16&io.flags){var a=r.deletions;if(null!==a){for(var l=0;l<a.length;l++){var c=a[l];for(io=c;null!==io;){switch((h=io).tag){case 0:case 11:case 15:gl(8,h,r)}var u=h.child;if(null!==u)u.return=h,io=u;else for(;null!==io;){var h,d=(h=io).sibling,p=h.return;if(function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&(delete n[zt],delete n[Ut],delete n[Yt],delete n[Wt],delete n[Gt]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(h),h===c){io=null;break}if(null!==d){d.return=p,io=d;break}io=p}}}var f=r.alternate;if(null!==f){var g=f.child;if(null!==g){f.child=null;do{var m=g.sibling}while((g.sibling=null)!==(g=m))}}io=r}}if(2064&r.subtreeFlags&&null!==s)s.return=r,io=s;else for(;null!==io;){if(2048&(r=io).flags)switch(r.tag){case 0:case 11:case 15:gl(9,r,r.return)}var v=r.sibling;if(null!==v){v.return=r.return,io=v;break}io=r.return}}var _=e.current;for(io=_;null!==io;){var b=(s=io).child;if(2064&s.subtreeFlags&&null!==b)b.return=s,io=b;else for(s=_;null!==io;){if(2048&(a=io).flags)try{switch(a.tag){case 0:case 11:case 15:ml(9,a)}}catch(e){Zl(a,a.return,e)}if(a===s){io=null;break}var y=a.sibling;if(null!==y){y.return=a.return,io=y;break}io=a.return}}if(po=i,cs(),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(me,e)}catch(e){}o=!0}return o}finally{ke=n,ho.transition=t}}}function Ql(e,t,n){e=Fs(e,t=Va(0,t=Ra(n,t),1),1),t=Cl(),null!==e&&(Fi(e,1,t),Al(e,t))}function Zl(e,t,n){if(3===e.tag)Ql(e,e,n);else for(;null!==t;){if(3===t.tag){Ql(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===$o||!$o.has(o))){t=Fs(t,e=ja(t,e=Ra(n,e),1),1),e=Cl(),null!==t&&(Fi(t,1,e),Al(t,e));break}}t=t.return}}function Kl(e,t){0===t&&(1&e.mode?(t=xe,!(130023424&(xe<<=1))&&(xe=4194304)):t=1);var n=Cl();null!==(e=Ls(e,t))&&(Fi(e,t,n),Al(e,n))}function Jl(e,t){return re(e,t)}function ec(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tc(e,t,n,o){return new ec(e,t,n,o)}function nc(e){return(e=e.prototype)&&e.isReactComponent}function oc(e,t){var n=e.alternate;return null===n?((n=tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,(n.alternate=e).alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ic(e,t,n,o,i,r){var s=2;if("function"==typeof(o=e))nc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return rc(n.children,i,r,t);case y:i|=s=8;break;case w:return(e=tc(12,n,t,2|i)).elementType=w,e.lanes=r,e;case E:return(e=tc(13,n,t,i)).elementType=E,e.lanes=r,e;case T:return(e=tc(19,n,t,i)).elementType=T,e.lanes=r,e;case N:return sc(n,i,r,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case S:s=9;break e;case O:s=11;break e;case P:s=14;break e;case C:s=16,o=null;break e}throw Error(jo(130,null==e?e:typeof e,""))}return(t=tc(s,n,t,i)).elementType=e,t.type=o,t.lanes=r,t}function rc(e,t,n,o){return(e=tc(7,e,o,t)).lanes=n,e}function sc(e,t,n,o){return(e=tc(22,e,o,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function ac(e,t,n){return(e=tc(6,e,null,t)).lanes=n,e}function lc(e,t,n){return(t=tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cc(e,t,n,o,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ri(0),this.expirationTimes=Ri(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ri(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uc(e,t,n,o,i,r,s,a,l){return e=new cc(e,t,0,a,l),1===t?(t=1,!0===r&&(t|=8)):t=0,r=tc(3,null,null,t),(e.current=r).stateNode=e,r.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ds(r),e}function hc(e){if(!e)return Qt;e:{if(Ci(e=e._reactInternals)!==e||1!==e.tag)throw Error(jo(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ns(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}}while(null!==(t=t.return));throw Error(jo(171))}if(1===e.tag){var n=e.type;if(ns(n))return rs(e,n,t)}return t}function dc(e,t,n,o,i,r,s,a,l){return(e=uc(n,o,!0,e,0,r,0,a,l)).context=hc(null),n=e.current,(r=Rs(o=Cl(),i=Nl(n))).callback=null!=t?t:null,Fs(n,r,i),e.current.lanes=i,Fi(e,i,o),Al(e,o),e}function pc(e,t,n,o){var i=t.current,r=Cl(),s=Nl(i);n=hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Rs(r,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Fs(i,t,s))&&($l(e,i,s,r),Hs(e,i,s))}function fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function gc(e,t){var n;null!==(e=e.memoizedState)&&null!==e.dehydrated&&(n=e.retryLane,e.retryLane=0!==n&&n<t?n:t)}function mc(e,t){gc(e,t),(e=e.alternate)&&gc(e,t)}function vc(e){this._internalRoot=e}function _c(e){this._internalRoot=e}function bc(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType)}function yc(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType||8===e.nodeType&&" react-mount-point-unstable "===e.nodeValue)}function wc(){}function xc(e,t,n,o,i){var r,s,a=n._reactRootContainer;return a?("function"==typeof i&&(s=i,i=function(){var e=fc(r);s.call(e)}),pc(t,r=a,e,i)):r=((e,t,n,o,i)=>{var r,s,a;if(i)return"function"==typeof o&&(r=o,o=function(){var e=fc(s);r.call(e)}),s=dc(t,o,e,0,null,!1,0,"",wc),e._reactRootContainer=s,e[Bt]=s.current,Mr(8===e.nodeType?e.parentNode:e),Hl(),s;for(;i=e.lastChild;)e.removeChild(i);"function"==typeof o&&(a=o,o=function(){var e=fc(l);a.call(e)});var l=uc(e,0,!1,null,0,!1,0,"",wc);return e._reactRootContainer=l,e[Bt]=l.current,Mr(8===e.nodeType?e.parentNode:e),Hl(function(){pc(t,l,n,o)}),l})(n,t,e,i,o),fc(r)}}var S,O,E,T,P,C,N,$,A,M,L,D,I,R,F,H,V,j,z,U,B,Y,W,G,q,X,Q,Z,K,J,ee,te,ne,oe,ie,re=(m||(m=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),_.exports=k()),_.exports),se=d(),ae=n(se);let le=ae.createContext({tour:void 0});function ce(e,t,n,o){return new(n=n||Promise)(function(i,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((o=o.apply(e,t||[])).next())})}let ue={MOVING:"MOVING",SOUND:"SOUND",INFO:"INFO",POPUP:"POPUP",PHOTO:"PHOTO",VIDEO:"VIDEO",ITEM_INFO:"ITEM_INFO",POLYGON:"POLYGON",LENSFLARE:"LENSFLARE",NADIR_LOGO:"NADIR_LOGO",PROMOTION:"PROMOTION",GALLERY:"GALLERY",TEXTURE:"TEXTURE"},he={SPACE_AND_SCENE:"SPACE_AND_SCENE",FEATURES:"FEATURES",PRODUCT_LIST:"PRODUCT_LIST",INFORMATION:"INFORMATION",BRAND:"BRAND",LOCATION:"LOCATION",FACILITY:"FACILITY",MULTIMEDIA:"MULTIMEDIA",SWAP_ELEMENT:"SWAP_ELEMENT",PROMOTION:"PROMOTION"},de="gyro2",pe="radar",fe="sound",ge=((St=S=S||{}).DEFAULT="DEFAULT",St.SIMPLE_CROSS_BLENDING="SIMPLE_CROSS_BLENDING",St.ZOOM_BLEND="ZOOM_BLEND",St.BLACK_OUT="BLACK_OUT",St.WHITE_FLASH="WHITE_FLASH",St.RIGHT_TO_LEFT="RIGHT_TO_LEFT",St.TOP_TO_BOTTOM="TOP_TO_BOTTOM",St.DIAGONAL="DIAGONAL",St.CIRCLE_OPEN="CIRCLE_OPEN",St.VERTICAL_OPEN="VERTICAL_OPEN",St.HORIZONTAL_OPEN="HORIZONTAL_OPEN",{FAST:.7,NORMAL:1,SLOW:1.5,SLOWEST:2}),me={FASTEST:.5,FAST:.7,NORMAL:1,SLOW:1.5,SLOWEST:2},ve={[S.DEFAULT]:ge.SLOW,[S.SIMPLE_CROSS_BLENDING]:ge.NORMAL,[S.ZOOM_BLEND]:ge.SLOWEST,[S.BLACK_OUT]:ge.SLOWEST,[S.WHITE_FLASH]:ge.NORMAL,[S.RIGHT_TO_LEFT]:ge.NORMAL,[S.TOP_TO_BOTTOM]:ge.NORMAL,[S.DIAGONAL]:ge.NORMAL,[S.CIRCLE_OPEN]:ge.NORMAL,[S.VERTICAL_OPEN]:ge.FAST,[S.HORIZONTAL_OPEN]:ge.NORMAL},_e={[S.DEFAULT]:"OPENBLEND({level}, 0.0, 0.6, 1.0, easeOutQuad)",[S.SIMPLE_CROSS_BLENDING]:"BLEND({level}, easeInCubic)",[S.ZOOM_BLEND]:"ZOOMBLEND({level}, 2.0, easeInOutSine)",[S.BLACK_OUT]:"COLORBLEND({level}, 0x000000, easeOutSine)",[S.WHITE_FLASH]:"LIGHTBLEND({level}, 0xFFFFFF, 2.0, linear)",[S.RIGHT_TO_LEFT]:"SLIDEBLEND({level}, 0.0, 0.2, linear)",[S.TOP_TO_BOTTOM]:"SLIDEBLEND({level}, 90.0, 0.01, linear)",[S.DIAGONAL]:"SLIDEBLEND({level}, 135.0, 0.4, linear)",[S.CIRCLE_OPEN]:"OPENBLEND({level}, 0.0, 0.2, 0.0, linear)",[S.VERTICAL_OPEN]:"OPENBLEND({level}, 1.0, 0.1, 0.0, linear)",[S.HORIZONTAL_OPEN]:"OPENBLEND({level}, -1.0, 0.3, 0.0, linear)"},be=((e=>{e[e.SSML_VOICE_GENDER_UNSPECIFIED=0]="SSML_VOICE_GENDER_UNSPECIFIED",e[e.MALE=1]="MALE",e[e.FEMALE=2]="FEMALE",e[e.NEUTRAL=3]="NEUTRAL",e[e.UNRECOGNIZED=4]="UNRECOGNIZED"})(O=O||{}),{MOVE_SCENE:"MOVE_SCENE",LOOK_AT:"LOOK_AT",ROTATE:"ROTATE",PLAY_SOUND:"PLAY_SOUND",SLEEP:"SLEEP",OPEN_FUNCTION_BUTTON:"OPEN_FUNCTION_BUTTON",SWITCH_SCENE:"SWITCH_SCENE",OPEN_MINIMAP:"OPEN_MINIMAP"}),ye=((e=>{e.AGT="AGT",e.SCENE="SPACE_AND_SCENE",e.PROMOTION="PROMOTION",e.FEATURES="FEATURES",e.PRODUCT_LIST="PRODUCT_LIST",e.INFORMATION="INFORMATION",e.BRAND="BRAND",e.LOCATION="LOCATION",e.FACILITY="FACILITY",e.MULTIMEDIA="MULTIMEDIA",e.SWAP_ELEMENT="SWAP_ELEMENT",e.DETAIL="DETAIL",e.TEMP="TEMP"})(E=E||{}),(e=>{e.EN="en",e.VI="vi",e.JP="jp"})(T=T||{}),"https://cdn3.clik.vn/clikvirtualtour"),we={GYRO2:ye+"/common/plugins/gyro2.js",SOUND_INTERFACE:ye+"/common/plugins/soundinterface.js?v2",RADAR:ye+"/common/plugins/radar.js",VIDEO_PLAYER:ye+"/common/plugins/videoplayer.js"},xe="/common/configs/flare-config.json",ke={MOVING:ye+"/common/media/vtourskin.png",INFO:ye+"/common/media/tag.png",POPUP:ye+"/common/media/vtourskin.png",PHOTO:ye+"/common/media/gallery.png",VIDEO:ye+"/common/media/hotspot_video_icon.png",PIN:ye+"/common/media/vtourskin.png",SOUND_PLAY:ye+"/common/media/play-solid.png",SOUND_PAUSE:ye+"/common/media/stop-solid.png",BACKGROUND:ye+"/common/media/bgshadow.png",PROMOTION:ye+"/common/media/promotion_lg.png",GALLERY:ye+"/common/media/gallery.png",TEXTURE:ye+"/common/media/vtourskin.png",FOCUSING_IMAGE_STRIP:ye+"/common/media/audio_shake.png",NAVIGATION_ARROW:ye+"/common/media/navigation.svg",NAVIGATION_HIGHLIGHT:ye+"/common/media/navigation-highlight.svg"},Se="NONE",Oe="LOCK_VIEW",Ee="NADIR_LOGO",Te="SNEAK_PEEK",Pe="LABEL",Ce="SNEAK_PEEK_AND_LABEL",Ne="NONE",$e="TOGGLE_UI",Ae="MOVE_TO_SCENE",Me="LABEL",Le="POPUP",De={NORTH:"NORTH",SOUTH:"SOUTH",EAST:"EAST",WEST:"WEST",NORTH_EAST:"NORTH_EAST",NORTH_WEST:"NORTH_WEST",SOUTH_EAST:"SOUTH_EAST",SOUTH_WEST:"SOUTH_WEST"},Ie=1,Re=((e=>{e[e.MIN=0]="MIN",e[e.BASE=1]="BASE",e[e.STANDARD=2]="STANDARD",e[e.FOCUSING_AREA=3]="FOCUSING_AREA",e[e.HOVERING_AREA=4]="HOVERING_AREA",e[e.HOVERING=5]="HOVERING",e[e.MAX=1e3]="MAX"})(P=P||{}),{NONE:"NONE",BOTTOM_LEFT_CORNER:"BOTTOM_LEFT_CORNER"}),Fe="NONE",He="RIGHT",Ve="TOP",je="BOTTOM",ze="LEFT",Ue="SMALL",Be="MEDIUM",Ye="LARGE",We={[Ue]:80,[Be]:160,[Ye]:240},Ge=[0,32,112,192],qe=32,Xe=8,Qe={NONE:{x:0,y:0},HORIZONTAL:{x:206,y:0},DYNAMIC_VERTICAL:e=>({x:0,y:e/2})},Ze="CLASSIC",Ke="NAMEPLATE",Je="NONE",et="PRODUCT",tt="BRAND",nt="LOCATION",ot="FACILITY",it="PRODUCT",rt="BRAND",st="LOCATION",at="ECOMMERCE_PRODUCT",lt="FACILITY",ct="NONE",ut="LABEL",ht=[ue.ITEM_INFO,ue.PROMOTION,ue.TEXTURE,ue.GALLERY],dt=[et,tt,nt,ot],pt="VIDEO",ft=((e=>{e.SQUARE_METER="㎡",e.CUBIC_METER="㎥",e.KILOGRAM="kg",e.CENTIMETER="cm",e.GRAM="g",e.LITER="Lít"})(C=C||{}),(e=>{e.IFRAME="IFRAME",e.NEW_TAB="NEW_TAB"})(N=N||{}),e=>{var t,n=Object.assign({},e);let o="";for(t in n){var i=n[t];i&&(""!=o&&(o+="&"),o+="view."+t+"="+i)}return o}),gt=e=>Math.round(e/1e3%1*1e3),mt=e=>ce(void 0,void 0,void 0,function*(){let{host:t,path:n,method:o="GET",params:i}=e,r=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}(e,["host","path","method","params"]),s=new URL(""+t+n);return i&&Object.keys(i).forEach(e=>i[e]&&s.searchParams.append(e,i[e])),fetch(s,Object.assign({method:o},r))}),vt=se.createContext(void 0),_t=({children:e,config:t})=>{let[n,o]=se.useState(Object.assign({},t));return se.useEffect(()=>{var e;if(!t.apiHost)throw new Error("apiHost is required");let n=t.elementId;t.elementId||(n="virtual-tour-"+(null==(e=t.overrideConfigs)?void 0:e.tourCode)),o(Object.assign(Object.assign({},t),{elementId:n}))},[t]),v.jsx(vt.Provider,{value:n,children:e})},bt=()=>{var e=ae.useContext(vt);if(void 0===e)throw new Error("useConfiguration must be used within a ConfigurationProvider");return e},yt=se.createContext(void 0),wt=({children:e})=>{var[t,n]=se.useState(!1),[o,i]=se.useState(!0),[r,s]=se.useState(!0),[a,l]=se.useState(!1),[c,u]=se.useState(!1),[h,d]=se.useState(!1),[p,f]=se.useState(!1),[g,m]=se.useState(!1),[_,b]=se.useState(!1),[y,w]=se.useState(!1),[x,k]=se.useState(!1),[S,O]=se.useState(!1),[E,,]=se.useState(!1),[T,P]=se.useState(!1),[C,N]=se.useState(!1),[$,A]=se.useState(!1),[M,L]=se.useState(void 0),[D,I]=se.useState(void 0),[R,,]=se.useState(0),[F,H]=se.useState(null),[V,j]=se.useState(null),[z,U]=se.useState([]),[B,Y]=se.useState(null),[W,G]=se.useState(null),[q,X]=se.useState(null);let[Q,Z]=se.useState({});var[K,J]=se.useState(null),[ee,te]=se.useState(null),[ne,oe]=se.useState([]),[ie,re]=se.useState({});return v.jsx(yt.Provider,{value:{mobileDevice:t,canInitVisualizer:a,loading:o,loadingScene:r,soundReady:c,tourReady:h,tourSoundPlaying:p,backgroundSoundPlaying:g,showSplashScreen:_,activeScene:B,tourData:K,floorplans:ne,activeScenario:F,scenarioConfigCodes:z,metadata:ee,scenarios:ie,playingTempScenario:y,autoPlaying:x,playingHotspotSound:S,showSlideIn:E,activePoiCode:M,bottomSheetMiddleHeight:R,activeFloorplan:V,activePoi:W,focusingOnVisualizer:T,muted:C,activePoiCoords:q,plugin:Q,viewRotating:$,poiCodeNearestToCenter:D,setMobileDevice:n,setCanInitVisualizer:l,setLoading:i,setLoadingScene:s,setSoundReady:u,setTourReady:d,setTourSoundPlaying:f,setBackgroundSoundPlaying:m,setShowSplashScreen:b,setActiveScene:Y,setTourData:J,setFloorplans:oe,setActiveScenario:H,setScenarioConfigCodes:U,setMetadata:te,setScenarios:re,setPlayingTempScenario:w,setAutoPlaying:k,setPlayingHotspotSound:O,setActivePoiCode:L,setActiveFloorplan:j,setActivePoi:G,setFocusingOnVisualizer:P,setMuted:N,setActivePoiCoords:X,setActiveTourPlugin:e=>{var{pluginName:e,state:t}=e;e&&(e=Object.assign(Object.assign({},Q),{[e]:t}),Z(e))},setViewRotating:A,setPoiCodeNearestToCenter:I},children:e})},xt=()=>{var e=ae.useContext(yt);if(void 0===e)throw new Error("useTourState must be used within a TourStateProvider");return e},kt=()=>{let{apiHost:e,overrideConfigs:t={}}=bt(),{tourCode:n,language:o}=t,{scenarios:i,tourData:r,canInitVisualizer:s,setTourData:a,setScenarioConfigCodes:l,setMetadata:c,setActiveScenario:u,setScenarios:h,setFloorplans:d,setBackgroundSoundPlaying:p,setTourSoundPlaying:f,setCanInitVisualizer:g}=xt(),m=t=>ce(void 0,void 0,void 0,function*(){if(!n||!e)return null;var s=i[t];if(s&&!s.isSimplify)return s;try{var a=yield(e=>ce(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o,tourCodeOrAlias:i}=e;return yield(yield mt({host:t,path:`/v1/ext/tours/${i}/tour-scenarios/`+o,headers:{language:n}})).json()}))({apiHost:e,code:t,tourCodeOrAlias:n,language:o}),l=Object.assign(Object.assign({},r),{inSimplify:!1,steps:(a.steps||[]).sort((e,t)=>e&&t?(e.orderIndex||0)-(t.orderIndex||0):0).map(e=>e&&e.children&&e.children.length?Object.assign(Object.assign({},e),{children:(e.children||[]).sort((e,t)=>e&&t?(e.orderIndex||0)-(t.orderIndex||0):0)}):e)});return h(Object.assign(Object.assign({},i),{[t]:l})),l}catch(s){return console.error("getTourScenarioDetail",s),null}}),v=()=>ce(void 0,void 0,void 0,function*(){var t,i,r,s;if(n&&e)try{let c=yield(e=>ce(void 0,void 0,void 0,function*(){var t,{apiHost:t,language:n,code:o}=e;return(t=yield(yield mt({host:t,path:"/v1/ext/tours/"+o,headers:{language:n}})).json())&&t.scenes&&t.scenes.sort((e,t)=>gt(e.orderIndex||0)-gt(t.orderIndex||0)),t}))({apiHost:e,language:o,code:n});c&&(null!=(r=yield ce(void 0,void 0,void 0,function*(){var t,i;return n&&e&&null!=(t=yield(e=>ce(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o}=e;return yield(yield mt({host:t,path:"/v1/ext/tour-scenarios?tourCodeOrAlias="+o,headers:{language:n}})).json()}))({apiHost:e,language:o,code:n}))&&t.length?(i=t.reduce((e,t)=>(e[t.code||t.type]=Object.assign(Object.assign({},e),{isSimplify:!0}),e),{}),h(i),l(t.map(e=>e.code||e.type)),t):[]}))&&r.length&&c.tourScenario&&(i=r.find(e=>e.code===c.tourScenario.code))&&(c.tourScenario=i,t=c.tourScenario.code,ce(void 0,void 0,void 0,function*(){t||u(null);var e=yield m(t);return u(e),e})),s=!!c.bgSound&&!!c.bgSound.enable,c.bgSound&&(p(s),f(s)),(e=>ce(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o}=e;return yield(yield mt({host:t,path:`/v1/ext/tours/${o}/floorplans`,headers:{language:n}})).json()}))({apiHost:e,language:o,code:n}).then(e=>{d(e)})),a(c)}catch(i){console.error(i)}finally{setTimeout(()=>{g(!0)},500)}});se.useEffect(()=>{ce(void 0,void 0,void 0,function*(){try{var e=yield mt({host:ye,path:xe,headers:{"Content-Type":"application/json"}});return JSON.parse(yield e.text())||null}catch(e){return console.error(e),null}}).then(e=>{c(e)})},[]),se.useEffect(()=>{n&&e&&!s&&v()},[n,e,s])};var St;function Ot(){return A||(A=1,$=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}),$}function Et(){var e,n;return I||(I=1,n=function(){var e;return L||(L=1,e="object"==typeof t&&t&&t.Object===Object&&t,M=e),M}(),e="object"==typeof self&&self&&self.Object===Object&&self,n=n||e||Function("return this")(),D=n),D}function Tt(){var e,t;return z||(z=1,e=function(){var e;return V||(V=1,e=/\s/,H=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}),H}(),t=/^\s+/,j=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}),j}function Pt(){var e;return B||(B=1,e=Et().Symbol,U=e),U}function Ct(){var e,t,n,o;return Q||(Q=1,e=Pt(),t=function(){var e,t,n,o,i;return W||(W=1,e=Pt(),t=Object.prototype,n=t.hasOwnProperty,o=t.toString,i=e?e.toStringTag:void 0,Y=function(e){var t=n.call(e,i),r=e[i];try{var s=!(e[i]=void 0)}catch(e){}var a=o.call(e);return s&&(t?e[i]=r:delete e[i]),a}),Y}(),n=function(){var e;return q||(q=1,e=Object.prototype.toString,G=function(t){return e.call(t)}),G}(),o=e?e.toStringTag:void 0,X=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(o&&o in Object(e)?t:n)(e)}),X}function Nt(){var e,t;return ee||(ee=1,e=Ct(),K||(K=1,Z=function(e){return null!=e&&"object"==typeof e}),t=Z,J=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}),J}var $t,At,Mt,Lt,Dt,It,Rt,Ft,Ht,Vt,jt,zt,Ut,Bt=(ie||(ie=1,At=Ot(),Mt=function(){var e;return F||(F=1,e=Et(),R=function(){return e.Date.now()}),R}(),ne||(ne=1,Rt=Tt(),Ft=Ot(),Ht=Nt(),Vt=/^[-+]0x[0-9a-f]+$/i,jt=/^0b[01]+$/i,zt=/^0o[0-7]+$/i,Ut=parseInt,te=function(e){if("number"==typeof e)return e;if(Ht(e))return NaN;if(Ft(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=Ft(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=Rt(e);var t=jt.test(e);return t||zt.test(e)?Ut(e.slice(2),t?2:8):Vt.test(e)?NaN:+e}),Lt=te,Dt=Math.max,It=Math.min,oe=function(e,t,n){var o,i,r,s,a,l,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function f(e){var n=e-l;return void 0===l||t<=n||n<0||h&&r<=e-c}function g(){var e,n=Mt();if(f(n))return m(n);a=setTimeout(g,(e=t-(n-l),h?It(e,r-(n-c)):e))}function m(e){return a=void 0,d&&o?p(e):(o=i=void 0,s)}function v(){var e=Mt(),n=f(e);if(o=arguments,i=this,l=e,n){if(void 0===a)return c=e=l,a=setTimeout(g,t),u?p(e):s;if(h)return clearTimeout(a),a=setTimeout(g,t),p(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=Lt(t)||0,At(n)&&(u=!!n.leading,r=(h="maxWait"in n)?Dt(Lt(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==a&&clearTimeout(a),o=l=i=a=void(c=0)},v.flush=function(){return void 0===a?s:m(Mt())},v}),oe),Yt=n(Bt),Wt={exports:{}},Gt=Wt.exports;var qt,Xt=function(){var e,t,n;return $t||($t=1,e=Wt,t=Gt,r.prototype={VERSION:"1.0.0",memorize:!(o.prototype={active:!0,params:null,execute:function(e){var t;return this.active&&this._listener&&(e=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,e),this._isOnce)&&this.detach(),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}}),_shouldPropagate:!0,active:!0,_registerListener:function(e,t,n,i){var r,s=this._indexOfListener(e,n);if(-1!==s){if((r=this._bindings[s]).isOnce()!==t)throw new Error("You cannot add"+(t?"":"Once")+"() then add"+(t?"Once":"")+"() the same listener without removing the relationship first.")}else r=new o(this,e,t,n,i),this._addBinding(r);return this.memorize&&this._prevParams&&r.execute(this._prevParams),r},_addBinding:function(e){for(var t=this._bindings.length;this._bindings[--t]&&e._priority<=this._bindings[t]._priority;);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,o=this._bindings.length;o--;)if((n=this._bindings[o])._listener===e&&n.context===t)return o;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return i(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return i(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){return i(e,"remove"),-1!==(t=this._indexOfListener(e,t))&&(this._bindings[t]._destroy(),this._bindings.splice(t,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,n=Array.prototype.slice.call(arguments),o=this._bindings.length;if(this.memorize&&(this._prevParams=n),o)for(t=this._bindings.slice(),this._shouldPropagate=!0;t[--o]&&this._shouldPropagate&&!1!==t[o].execute(n););}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}},(n=r).Signal=r,e.exports?e.exports=n:t.signals=n),Wt.exports;function o(e,t,n,o,i){this._listener=t,this._isOnce=n,this.context=o,this._signal=e,this._priority=i||0}function i(e,t){if("function"!=typeof e)throw new Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function r(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){r.prototype.dispatch.apply(e,arguments)}}}();let Qt=360,Zt=e=>{if(e)return e},Kt=()=>{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})},Jt=e=>new Promise(t=>setTimeout(()=>{t()},e)),en=e=>{let t,n;var o=new Promise((o,i)=>{n=i,t=setTimeout(()=>{o()},e)});return o.abort=()=>{clearTimeout(t),n("aborted")},o},tn=e=>{let t;if(e.type===ue.ITEM_INFO){var n=e.props.itemInfo;switch(null==n?void 0:n.type){case at:t=he.PRODUCT_LIST;break;case it:t=null!=n.included?he.FEATURES:he.PRODUCT_LIST;break;case rt:t=he.BRAND;break;case st:t=he.LOCATION;break;case lt:t=he.FACILITY;break;default:t=""}}else switch(e.type){case ue.PROMOTION:t=he.PROMOTION;break;case ue.INFO:t=he.INFORMATION;break;case ue.GALLERY:t=he.MULTIMEDIA;break;case ue.TEXTURE:t=he.SWAP_ELEMENT;break;default:t=""}return t},nn=e=>1e3*e,on=e=>null!=e,rn=e=>e?e/1e3:0,sn=(e,t)=>(e=((e,t)=>{if(!e)return null;if(!e.responsive)return e;var{large:n,medium:o,small:i,thumbnail:r}=e.responsive;let s=1,a=(e.width&&e.height&&!t&&(s=e.width>e.height?e.height/e.width:e.width/e.height),0);return t?a=t:"object"==typeof window&&(a=window.innerWidth),1!==s&&(a/=s),0===a?null:1e3<a?e:1e3===Math.max(1e3,a)&&750===Math.min(750,a)?n||e:750===Math.max(750,a)&&500===Math.min(500,a)?o||e:500===Math.max(500,a)&&250===Math.min(250,a)?i||e:a<250?r||e:null})(e,t),e?e.url:null),an=((e=>{e.VFOV="VFOV",e.HFOV="HFOV",e.DFOV="DFOV",e.MFOV="MFOV",e.SFOV="SFOV"})(qt=qt||{}),e=>{let t=!1;var n,o;return e&&(n=e.get("device.mobile"),o=e.get("device.tablet"),e=e.get("device.touch"),t=n||o||e),t}),ln=e=>{var{url:t,theme:n,type:o,width:i,scale:r}=e,s=dn(e),i=i*r||void 0;let a;if(o===ue.PHOTO?(r=e.image)&&(a=sn(r,i)):o===ue.PROMOTION&&(r=e.promotion)&&(r=r.icon)&&(r.thumbnail||r.url)&&(a=sn(r,i)),!(a=!a&&s?s.imageStrip?s.file.url:sn(s.file,i):a)&&n&&n.poiIcons&&n.poiIcons.length){let t=o;o===ue.ITEM_INFO&&(r=e.itemInfo)&&(t=(o+"_"+r.type).toUpperCase()),s=n.poiIcons.find(e=>e.poiType===t),s&&s.icon&&(a=sn(s.icon.file,i))}return a?Zt(a):t?Zt(t):(e=>{switch(e.type){case ue.ITEM_INFO:return ke.PIN;case ue.INFO:return ke.INFO;case ue.MOVING:return ke.MOVING;case ue.POPUP:return ke.POPUP;case ue.SOUND:return ke.SOUND_PLAY;case ue.PROMOTION:return ke.PROMOTION;default:return ke.PIN}})(e)},cn=(e,t,n)=>ce(void 0,void 0,void 0,function*(){!e||t&&n||(yield new Promise(o=>{let i=new Image;i.onload=()=>{t=t||i.width,n=n||i.height,o()},i.onerror=()=>{o()},i.src=e}))}),un=e=>e+"_hover",hn=(e,t,n)=>{t=t.code,e.call(`tween(hotspot[${t}].alpha, ${n?0:1}, 0.2)`)},dn=e=>e.icon||(e=>{var t=e.theme,n=e.type;if(t&&t.poiIcons&&t.poiIcons.length){let o=n;if(n===ue.ITEM_INFO&&(e=e.itemInfo)&&(o=(n+"_"+e.type).toUpperCase()),n=t.poiIcons.find(e=>e.poiType===o),n&&n.icon)return n.icon}return null})(e),pn=e=>(null==e?void 0:e.position)!==Fe,fn=e=>{var t={fovtype:qt.MFOV,fov:90};return an(e)||(t.fovtype=qt.VFOV,t.fov=65),t},gn=e=>e*(Math.PI/180),mn=(e,t,n,o)=>{var i=gn(o-t);n=gn(n-e),e=Math.sin(i/2)*Math.sin(i/2)+Math.cos(gn(t))*Math.cos(gn(o))*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(e),Math.sqrt(1-e))*1e3},vn=(e,t,n,o)=>(e=_n(e-=n),n=_n(n=t-o),{h:Math.abs(e),v:Math.abs(n)}),_n=e=>{let t=e%360;return 180<t&&(t-=360),t<-180&&(t+=360),t},bn=(e,t)=>{var n=t.x-e.x,o=t.y-e.y;t=t.z-e.z;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2)+Math.pow(t,2))},yn=e=>e.get("device.mobile"),wn=(e,t)=>{var n,o,i,r;return t&&e?(({hlookat:n,vlookat:o}=e.getView()),({x:r,y:i}=e.spheretoscreen(n,o)),({x:e,y:r}=e.screentosphere(r+t.x,i+t.y)),{h:t.x&&_n(e-n),v:t.y&&_n(r-o)}):{h:0,v:0}},xn=(e,t)=>{var{ath:t,atv:n,position:o,popupSize:i="1",laserRange:r=Ie}=t,s={h:t,v:n,hfovExpand:0};if(0<r){var a=We[i]+Ge[r]+54||0;let l,c;switch(o){case Ve:l=0,c=-Math.round(a/2);break;case He:l=Math.round(a/2),c=0;break;case je:l=0,c=Math.round(a/2);break;case ze:l=-Math.round(a/2),c=0;break;default:l=0,c=0}i=wn(e,{x:l,y:c}),s.h=t+i.h,s.v=n+i.v}return s},kn=e=>{var t;return!!e&&(t=e.overviewPosition,(e=>!(!e||!ht.includes(e.type))&&(e.type!==ue.ITEM_INFO||(e=e.itemInfo,dt.includes(null==e?void 0:e.type))))(e))&&t===Re.BOTTOM_LEFT_CORNER};var Sn,On={exports:{}};var En,Tn=(Sn||(Sn=1,(En=On).exports=(()=>{var e,t;function n(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(r(e,t))return;return 1}function a(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){for(var n=[],o=e.length,i=0;i<o;++i)n.push(t(e[i],i));return n}function h(e,t){for(var n in t)r(t,n)&&(e[n]=t[n]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,o){return Et(e,t,n,o,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){var n,o,i=e._d&&!isNaN(e._d.getTime());return i&&(n=p(e),o=t.call(n.parsedDateParts,function(e){return null!=e}),i=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||(n.meridiem,o)),e._strict)&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function g(e){var t=d(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}t=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var m=n.momentProperties=[],v=!1;function _(e,t){var n,o,i,r=m.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)a(i=t[o=m[n]])||(e[o]=i);return e}function b(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function y(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function w(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var o=!0;return h(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),o){for(var i,s,a=[],l=arguments.length,c=0;c<l;c++){if(i="","object"==typeof arguments[c]){for(s in i+="\n["+c+"] ",arguments[0])r(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[c];a.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),o=!1}return t.apply(this,arguments)},t)}var k,S={};function O(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,o=h({},e);for(n in t)r(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)r(e,n)&&!r(t,n)&&i(e[n])&&(o[n]=h({},o[n]));return o}function P(e){null!=e&&this.set(e)}function C(e,t,n){var o=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-o.length)).toString().substr(1)+o}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,k=Object.keys||function(e){var t,n=[];for(t in e)r(e,t)&&n.push(t);return n};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,$=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},M={};function L(e,t,n,o){var i="string"==typeof o?function(){return this[o]()}:o;e&&(M[e]=i),t&&(M[t[0]]=function(){return C(i.apply(this,arguments),t[1],t[2])}),n&&(M[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function D(e,t){return e.isValid()?(t=I(t,e.localeData()),A[t]=A[t]||(e=>{for(var t,n=e.match(N),o=0,i=n.length;o<i;o++)M[n[o]]?n[o]=M[n[o]]:n[o]=(t=n[o]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var o="",r=0;r<i;r++)o+=E(n[r])?n[r].call(t,e):n[r];return o}})(t),A[t](e)):e.localeData().invalidDate()}function I(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for($.lastIndex=0;0<=n&&$.test(e);)e=e.replace($,o),$.lastIndex=0,--n;return e}var R={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return"string"==typeof e?R[e]||R[e.toLowerCase()]:void 0}function H(e){var t,n,o={};for(n in e)r(e,n)&&(t=F(n))&&(o[t]=e[n]);return o}var V={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},j=/\d/,z=/\d\d/,U=/\d{3}/,B=/\d{4}/,Y=/[+-]?\d{6}/,W=/\d\d?/,G=/\d\d\d\d?/,q=/\d\d\d\d\d\d?/,X=/\d{1,3}/,Q=/\d{1,4}/,Z=/[+-]?\d{1,6}/,K=/\d+/,J=/[+-]?\d+/,ee=/Z|[+-]\d\d:?\d\d/gi,te=/Z|[+-]\d\d(?::?\d\d)?/gi,ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,ie=/^([1-9]\d|\d)/;function re(e,t,n){ue[e]=E(t)?t:function(e,o){return e&&n?n:t}}function se(e,t){return r(ue,e)?ue[e](t._strict,t._locale):new RegExp(ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,i){return t||n||o||i})))}function ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=0;return 0!=(e=+e)&&isFinite(e)?le(e):t}var ue={},he={};function de(e,t){var n,o,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=ce(e)}),o=e.length,n=0;n<o;n++)he[e[n]]=i}function pe(e,t){de(e,function(e,n,o,i){o._w=o._w||{},t(e,o._w,o,i)})}function fe(e){return e%4==0&&e%100!=0||e%400==0}var ge=0,me=1,ve=2,_e=3,be=4,ye=5,we=6,xe=7,ke=8;function Se(e){return fe(e)?366:365}L("Y",0,0,function(){var e=this.year();return e<=9999?C(e,4):"+"+e}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),re("Y",J),re("YY",W,z),re("YYYY",Q,B),re("YYYYY",Z,Y),re("YYYYYY",Z,Y),de(["YYYYY","YYYYYY"],ge),de("YYYY",function(e,t){t[ge]=2===e.length?n.parseTwoDigitYear(e):ce(e)}),de("YY",function(e,t){t[ge]=n.parseTwoDigitYear(e)}),de("Y",function(e,t){t[ge]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return ce(e)+(68<ce(e)?1900:2e3)};var Oe,Ee=Te("FullYear",!0);function Te(e,t){return function(o){return null!=o?(Ce(this,e,o),n.updateOffset(this,t),this):Pe(this,e)}}function Pe(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ce(e,t,n){var o,i,r;if(e.isValid()&&!isNaN(n)){switch(o=e._d,i=e._isUTC,t){case"Milliseconds":return i?o.setUTCMilliseconds(n):o.setMilliseconds(n);case"Seconds":return i?o.setUTCSeconds(n):o.setSeconds(n);case"Minutes":return i?o.setUTCMinutes(n):o.setMinutes(n);case"Hours":return i?o.setUTCHours(n):o.setHours(n);case"Date":return i?o.setUTCDate(n):o.setDate(n);case"FullYear":break;default:return}t=n,r=e.month(),e=29!==(e=e.date())||1!==r||fe(t)?e:28,i?o.setUTCFullYear(t,r,e):o.setFullYear(t,r,e)}}function Ne(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(e+=(t-(n=(t%(n=12)+n)%n))/12,1==n?fe(e)?29:28:31-n%7%2)}Oe=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),L("MMMM",0,0,function(e){return this.localeData().months(this,e)}),re("M",W,oe),re("MM",W,z),re("MMM",function(e,t){return t.monthsShortRegex(e)}),re("MMMM",function(e,t){return t.monthsRegex(e)}),de(["M","MM"],function(e,t){t[me]=ce(e)-1}),de(["MMM","MMMM"],function(e,t,n,o){null!=(o=n._locale.monthsParse(e,o,n._strict))?t[me]=o:p(n).invalidMonth=e});var $e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ae="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Me=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Le=ne,De=ne;function Ie(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!l(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,Ne(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function Re(e){return null!=e?(Ie(this,e),n.updateOffset(this,!0),this):Pe(this,"Month")}function Fe(){function e(e,t){return t.length-e.length}for(var t,n,o=[],i=[],r=[],s=0;s<12;s++)n=d([2e3,s]),t=ae(this.monthsShort(n,"")),n=ae(this.months(n,"")),o.push(t),i.push(n),r.push(n),r.push(t);o.sort(e),i.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function He(e,t,n,o,i,r,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,o,i,r,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,o,i,r,s),a}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function je(e,t,n){return(n=7+t-n)-(7+Ve(e,0,n).getUTCDay()-t)%7-1}function ze(e,t,n,o,i){var r;return n=(t=1+7*(t-1)+(7+n-o)%7+je(e,o,i))<=0?Se(r=e-1)+t:t>Se(e)?(r=e+1,t-Se(e)):(r=e,t),{year:r,dayOfYear:n}}function Ue(e,t,n){var o,i,r=je(e.year(),t,n);return(r=Math.floor((e.dayOfYear()-r-1)/7)+1)<1?o=r+Be(i=e.year()-1,t,n):r>Be(e.year(),t,n)?(o=r-Be(e.year(),t,n),i=e.year()+1):(i=e.year(),o=r),{week:o,year:i}}function Be(e,t,n){var o=je(e,t,n);return t=je(e+1,t,n),(Se(e)-o+t)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),re("w",W,oe),re("ww",W,z),re("W",W,oe),re("WW",W,z),pe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=ce(e)}),L("d",0,"do","day"),L("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),L("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),L("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),re("d",W),re("e",W),re("E",W),re("dd",function(e,t){return t.weekdaysMinRegex(e)}),re("ddd",function(e,t){return t.weekdaysShortRegex(e)}),re("dddd",function(e,t){return t.weekdaysRegex(e)}),pe(["dd","ddd","dddd"],function(e,t,n,o){null!=(o=n._locale.weekdaysParse(e,o,n._strict))?t.d=o:p(n).invalidWeekday=e}),pe(["d","e","E"],function(e,t,n,o){t[o]=ce(e)});var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=ne,Qe=ne,Ze=ne;function Ke(){function e(e,t){return t.length-e.length}for(var t,n,o,i=[],r=[],s=[],a=[],l=0;l<7;l++)o=d([2e3,1]).day(l),t=ae(this.weekdaysMin(o,"")),n=ae(this.weekdaysShort(o,"")),o=ae(this.weekdays(o,"")),i.push(t),r.push(n),s.push(o),a.push(t),a.push(n),a.push(o);i.sort(e),r.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Je(){return this.hours()%12||12}function et(e,t){L(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,Je),L("k",["kk",2],0,function(){return this.hours()||24}),L("hmm",0,0,function(){return""+Je.apply(this)+C(this.minutes(),2)}),L("hmmss",0,0,function(){return""+Je.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+C(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)}),et("a",!0),et("A",!1),re("a",tt),re("A",tt),re("H",W,ie),re("h",W,oe),re("k",W,oe),re("HH",W,z),re("hh",W,z),re("kk",W,z),re("hmm",G),re("hmmss",q),re("Hmm",G),re("Hmmss",q),de(["H","HH"],_e),de(["k","kk"],function(e,t,n){e=ce(e),t[_e]=24===e?0:e}),de(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),de(["h","hh"],function(e,t,n){t[_e]=ce(e),p(n).bigHour=!0}),de("hmm",function(e,t,n){var o=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o)),p(n).bigHour=!0}),de("hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o,2)),t[ye]=ce(e.substr(i)),p(n).bigHour=!0}),de("Hmm",function(e,t,n){var o=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o))}),de("Hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[_e]=ce(e.substr(0,o)),t[be]=ce(e.substr(o,2)),t[ye]=ce(e.substr(i))}),ne=Te("Hours",!0);var nt,ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:$e,monthsShort:Ae,week:{dow:0,doy:6},weekdays:We,weekdaysMin:qe,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function st(e){return e&&e.toLowerCase().replace("_","-")}function at(e){var t,n;if(void 0===it[e]&&En&&En.exports&&(n=e)&&n.match("^[^/\\\\]*$"))try{t=nt._abbr,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}("./locale/"+e),lt(t)}catch(t){it[e]=null}return it[e]}function lt(e,t){return e&&((t=a(t)?ut(e):ct(e,t))?nt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ct(e,t){if(null===t)return delete it[e],null;var n,o=ot;if(t.abbr=e,null!=it[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])o=it[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;o=n._config}return it[e]=new P(T(o,t)),rt[e]&&rt[e].forEach(function(e){ct(e.name,e.config)}),lt(e),it[e]}function ut(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return nt;if(!o(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,o,i,r=0;r<e.length;){for(t=(i=st(e[r]).split("-")).length,n=(n=st(e[r+1]))?n.split("-"):null;0<t;){if(o=at(i.slice(0,t).join("-")))return o;if(n&&n.length>=t&&((e,t)=>{for(var n=Math.min(e.length,t.length),o=0;o<n;o+=1)if(e[o]!==t[o])return o;return n})(i,n)>=t-1)break;t--}r++}return nt}(e)}function ht(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[me]<0||11<t[me]?me:t[ve]<1||t[ve]>Ne(t[ge],t[me])?ve:t[_e]<0||24<t[_e]||24===t[_e]&&(0!==t[be]||0!==t[ye]||0!==t[we])?_e:t[be]<0||59<t[be]?be:t[ye]<0||59<t[ye]?ye:t[we]<0||999<t[we]?we:-1,p(e)._overflowDayOfYear&&(t<ge||ve<t)&&(t=ve),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=ke),p(e).overflow=t),e}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((-?\d+)/i,_t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,o,i,r,s,a=e._i,l=dt.exec(a)||pt.exec(a),c=(a=gt.length,mt.length);if(l){for(p(e).iso=!0,t=0,n=a;t<n;t++)if(gt[t][1].exec(l[1])){i=gt[t][0],o=!1!==gt[t][2];break}if(null==i)e._isValid=!1;else{if(l[3]){for(t=0,n=c;t<n;t++)if(mt[t][1].exec(l[3])){r=(l[2]||" ")+mt[t][0];break}if(null==r)return void(e._isValid=!1)}if(o||null==r){if(l[4]){if(!ft.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),St(e)}else e._isValid=!1}}else e._isValid=!1}function wt(e){var t,n,o=_t.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=function(e,t,n,o,i,r){return e=[(e=>(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e)(e),Ae.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(i,10)],r&&e.push(parseInt(r,10)),e}(o[4],o[3],o[2],o[5],o[6],o[7]),((e,t,n)=>{if(!e||Ge.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;p(n).weekdayMismatch=!0,n._isValid=!1})(o[1],t,e)&&(e._a=t,e._tzm=(t=o[8],n=o[9],o=o[10],t?bt[t]:n?0:((t=parseInt(o,10))-(n=t%100))/100*60+n),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function xt(e,t,n){return null!=e?e:null!=t?t:n}function kt(e){var t,o,i,r,s,a,l,c,u,h,d,f=[];if(!e._d){for(i=e,r=new Date(n.now()),o=i._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],e._w&&null==e._a[ve]&&null==e._a[me]&&(null!=(r=(i=e)._w).GG||null!=r.W||null!=r.E?(c=1,u=4,s=xt(r.GG,i._a[ge],Ue(Tt(),1,4).year),a=xt(r.W,1),((l=xt(r.E,1))<1||7<l)&&(h=!0)):(c=i._locale._week.dow,u=i._locale._week.doy,d=Ue(Tt(),c,u),s=xt(r.gg,i._a[ge],d.year),a=xt(r.w,d.week),null!=r.d?((l=r.d)<0||6<l)&&(h=!0):null!=r.e?(l=r.e+c,(r.e<0||6<r.e)&&(h=!0)):l=c),a<1||a>Be(s,c,u)?p(i)._overflowWeeks=!0:null!=h?p(i)._overflowWeekday=!0:(d=ze(s,a,l,c,u),i._a[ge]=d.year,i._dayOfYear=d.dayOfYear)),null!=e._dayOfYear&&(r=xt(e._a[ge],o[ge]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),h=Ve(r,0,e._dayOfYear),e._a[me]=h.getUTCMonth(),e._a[ve]=h.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=f[t]=o[t];for(;t<7;t++)e._a[t]=f[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[be]&&0===e._a[ye]&&0===e._a[we]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?Ve:He).apply(null,f),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(p(e).weekdayMismatch=!0)}}function St(e){if(e._f===n.ISO_8601)yt(e);else if(e._f===n.RFC_2822)wt(e);else{e._a=[],p(e).empty=!0;for(var t,o,i,s,a,l=""+e._i,c=l.length,u=0,h=I(e._f,e._locale).match(N)||[],d=h.length,f=0;f<d;f++)o=h[f],(t=(l.match(se(o,e))||[])[0])&&(0<(i=l.substr(0,l.indexOf(t))).length&&p(e).unusedInput.push(i),l=l.slice(l.indexOf(t)+t.length),u+=t.length),M[o]?(t?p(e).empty=!1:p(e).unusedTokens.push(o),i=o,a=e,null!=(s=t)&&r(he,i)&&he[i](s,a._a,a,i)):e._strict&&!t&&p(e).unusedTokens.push(o);p(e).charsLeftOver=c-u,0<l.length&&p(e).unusedInput.push(l),e._a[_e]<=12&&!0===p(e).bigHour&&0<e._a[_e]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[_e]=((e,t,n)=>null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t)(e._locale,e._a[_e],e._meridiem),null!==(c=p(e).era)&&(e._a[ge]=e._locale.erasConvertYear(c,e._a[ge])),kt(e),ht(e)}}function Ot(e){var t,r,s,d=e._i,m=e._f;if(e._locale=e._locale||ut(e._l),null===d||void 0===m&&""===d)return g({nullInput:!0});if("string"==typeof d&&(e._i=d=e._locale.preparse(d)),y(d))return new b(ht(d));if(c(d))e._d=d;else if(o(m)){var v,w,x,k,S,O,E=e,T=!1,P=E._f.length;if(0===P)p(E).invalidFormat=!0,E._d=new Date(NaN);else{for(k=0;k<P;k++)S=0,O=!1,v=_({},E),null!=E._useUTC&&(v._useUTC=E._useUTC),v._f=E._f[k],St(v),f(v)&&(O=!0),S=(S+=p(v).charsLeftOver)+10*p(v).unusedTokens.length,p(v).score=S,T?S<x&&(x=S,w=v):(null==x||S<x||O)&&(x=S,w=v,O)&&(T=!0);h(E,w||v)}}else m?St(e):a(m=(d=e)._i)?d._d=new Date(n.now()):c(m)?d._d=new Date(m.valueOf()):"string"==typeof m?(r=d,null!==(t=vt.exec(r._i))?r._d=new Date(+t[1]):(yt(r),!1===r._isValid&&(delete r._isValid,wt(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:n.createFromInputFallback(r)))):o(m)?(d._a=u(m.slice(0),function(e){return parseInt(e,10)}),kt(d)):i(m)?(t=d)._d||(s=void 0===(r=H(t._i)).day?r.date:r.day,t._a=u([r.year,r.month,s,r.hour,r.minute,r.second,r.millisecond],function(e){return e&&parseInt(e,10)}),kt(t)):l(m)?d._d=new Date(m):n.createFromInputFallback(d);return f(e)||(e._d=null),e}function Et(e,t,n,r,a){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&s(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=e,l._f=t,l._strict=r,(a=new b(ht(Ot(a=l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Tt(e,t,n,o){return Et(e,t,n,o,!1)}function Pt(e,t){var n,i;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return Tt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}n.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){},G=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),q=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:g()});var Ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var t=(e=H(e)).year||0,n=e.quarter||0,o=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=(e=>{var t,n,o=!1,i=Ct.length;for(t in e)if(r(e,t)&&(-1===Oe.call(Ct,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Ct[n]]){if(o)return!1;parseFloat(e[Ct[n]])!==ce(e[Ct[n]])&&(o=!0)}return!0})(e),this._milliseconds=+u+1e3*c+6e4*l+1e3*a*60*60,this._days=+s+7*i,this._months=+o+3*n+12*t,this._data={},this._locale=ut(),this._bubble()}function $t(e){return e instanceof Nt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Mt(e,t){L(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+C(~~(e/60),2)+t+C(~~e%60,2)})}Mt("Z",":"),Mt("ZZ",""),re("Z",te),re("ZZ",te),de(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Dt(te,e)});var Lt=/([\+\-]|\d\d)/gi;function Dt(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+ce(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var o;return t._isUTC?(t=t.clone(),o=(y(e)||c(e)?e:Tt(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+o),n.updateOffset(t,!1),t):Tt(e).local()}function Rt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Ht=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jt(e,t){var n,o=e;return $t(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(t=Ht.exec(e))?(n="-"===t[1]?-1:1,o={y:0,d:ce(t[ve])*n,h:ce(t[_e])*n,m:ce(t[be])*n,s:ce(t[ye])*n,ms:ce(At(1e3*t[we]))*n}):(t=Vt.exec(e))?(n="-"===t[1]?-1:1,o={y:zt(t[2],n),M:zt(t[3],n),w:zt(t[4],n),d:zt(t[5],n),h:zt(t[6],n),m:zt(t[7],n),s:zt(t[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(t=((e,t)=>{var n;return e.isValid()&&t.isValid()?(t=It(t,e),e.isBefore(t)?n=Ut(e,t):((n=Ut(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}})(Tt(o.from),Tt(o.to)),(o={}).ms=t.milliseconds,o.M=t.months),n=new Nt(o),$t(e)&&r(e,"_locale")&&(n._locale=e._locale),$t(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function zt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Ut(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Bt(e,t){return function(n,o){var i;return null===o||isNaN(+o)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),Yt(this,jt(n,o),e),this}}function Yt(e,t,o,i){var r=t._milliseconds,s=At(t._days);t=At(t._months),e.isValid()&&(i=null==i||i,t&&Ie(e,Pe(e,"Month")+t*o),s&&Ce(e,"Date",Pe(e,"Date")+s*o),r&&e._d.setTime(e._d.valueOf()+r*o),i)&&n.updateOffset(e,s||t)}function Wt(e){return"string"==typeof e||e instanceof String}function Gt(e,t){var n,o;return e.date()<t.date()?-Gt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(o=e.clone().add(n,"months"))<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(1+n,"months")-o)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=ut(e))&&(this._locale=e),this)}function Xt(){return this._locale}jt.fn=Nt.prototype,jt.invalid=function(){return jt(NaN)},$e=Bt(1,"add"),We=Bt(-1,"subtract"),n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",qe=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});var Qt,Zt=1e3,Kt=6e4,Jt=60*Kt,en=3506328*Jt;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e,t,n,o=[],i=[],r=[],s=[],a=this.eras(),l=0,c=a.length;l<c;++l)e=ae(a[l].name),t=ae(a[l].abbr),n=ae(a[l].narrow),i.push(e),o.push(t),r.push(n),s.push(e),s.push(t),s.push(n);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function an(e,t){L(0,[e,e.length],0,t)}function ln(e,t,n,o,i){var r;return null==e?Ue(this,o,i).year:(r=Be(e,o,i),function(e,t,n,o,i){return t=Ve((e=ze(e,t,n,o,i)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,o,i))}for(L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),re("N",rn),re("NN",rn),re("NNN",rn),re("NNNN",function(e,t){return t.erasNameRegex(e)}),re("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),de(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){(o=n._locale.erasParse(e,o,n._strict))?p(n).era=o:p(n).invalidEra=e}),re("y",K),re("yy",K),re("yyy",K),re("yyyy",K),re("yo",function(e,t){return t._eraYearOrdinalRegex||K}),de(["y","yy","yyy","yyyy"],ge),de(["yo"],function(e,t,n,o){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ge]=n._locale.eraYearOrdinalParse(e,i):t[ge]=parseInt(e,10)}),L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),re("G",J),re("g",J),re("GG",W,z),re("gg",W,z),re("GGGG",Q,B),re("gggg",Q,B),re("GGGGG",Z,Y),re("ggggg",Z,Y),pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=ce(e)}),pe(["gg","GG"],function(e,t,o,i){t[i]=n.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),re("Q",j),de("Q",function(e,t){t[me]=3*(ce(e)-1)}),L("D",["DD",2],"Do","date"),re("D",W,oe),re("DD",W,z),re("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),de(["D","DD"],ve),de("Do",function(e,t){t[ve]=ce(e.match(W)[0])}),Q=Te("Date",!0),L("DDD",["DDDD",3],"DDDo","dayOfYear"),re("DDD",X),re("DDDD",U),de(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ce(e)}),L("m",["mm",2],0,"minute"),re("m",W,ie),re("mm",W,z),de(["m","mm"],be),B=Te("Minutes",!1),L("s",["ss",2],0,"second"),re("s",W,ie),re("ss",W,z),de(["s","ss"],ye),Z=Te("Seconds",!1),L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),re("S",X,j),re("SS",X,z),re("SSS",X,U),Qt="SSSS";Qt.length<=9;Qt+="S")re(Qt,K);function cn(e,t){t[we]=ce(1e3*("0."+e))}for(Qt="S";Qt.length<=9;Qt+="S")de(Qt,cn);function un(e){return e}function hn(e,t,n,o){var i=ut();return o=d().set(o,t),i[n](o,e)}function dn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return hn(e,t,n,"month");for(var o=[],i=0;i<12;i++)o[i]=hn(e,i,n,"month");return o}function pn(e,t,n,o){"boolean"==typeof e?l(t)&&(n=t,t=void 0):(t=e,e=!1,l(n=t)&&(n=t,t=void 0)),t=t||"";var i,r=ut(),s=e?r._week.dow:0,a=[];if(null!=n)return hn(t,(n+s)%7,o,"day");for(i=0;i<7;i++)a[i]=hn(t,(i+s)%7,o,"day");return a}Y=Te("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName"),(oe=b.prototype).add=$e,oe.calendar=function(e,t){1===arguments.length&&(arguments[0]?function(e){return y(e)||c(e)||Wt(e)||l(e)||(e=>{var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!l(t)&&Wt(e)}).length),t&&n})(e)||(e=>{var t,n=i(e)&&!s(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=a.length;for(t=0;t<l;t+=1)o=o||r(e,a[t]);return n&&o})(e)||null==e}(arguments[0])?(e=arguments[0],t=void 0):(e=>{for(var t=i(e)&&!s(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a=0;a<o.length;a+=1)n=n||r(e,o[a]);return t&&n})(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var a=It(e=e||Tt(),this).startOf("day");return a=n.calendarFormat(this,a)||"sameElse",t=t&&(E(t[a])?t[a].call(this,e):t[a]),this.format(t||this.localeData().calendar(a,this,Tt(e)))},oe.clone=function(){return new b(this)},oe.diff=function(e,t,n){var o,i,r;if(!this.isValid())return NaN;if(!(o=It(e,this)).isValid())return NaN;switch(i=6e4*(o.utcOffset()-this.utcOffset()),t=F(t)){case"year":r=Gt(this,o)/12;break;case"month":r=Gt(this,o);break;case"quarter":r=Gt(this,o)/3;break;case"second":r=(this-o)/1e3;break;case"minute":r=(this-o)/6e4;break;case"hour":r=(this-o)/36e5;break;case"day":r=(this-o-i)/864e5;break;case"week":r=(this-o-i)/6048e5;break;default:r=this-o}return n?r:le(r)},oe.endOf=function(e){var t,o;if(void 0!==(e=F(e))&&"millisecond"!==e&&this.isValid()){switch(o=this._isUTC?on:nn,e){case"year":t=o(this.year()+1,0,1)-1;break;case"quarter":t=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=o(this.year(),this.month()+1,1)-1;break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Jt-tn(t+(this._isUTC?0:this.utcOffset()*Kt),Jt)-1;break;case"minute":t=this._d.valueOf(),t+=Kt-tn(t,Kt)-1;break;case"second":t=this._d.valueOf(),t+=Zt-tn(t,Zt)-1}this._d.setTime(t),n.updateOffset(this,!0)}return this},oe.format=function(e){return e=D(this,e=e||(this.isUtc()?n.defaultFormatUtc:n.defaultFormat)),this.localeData().postformat(e)},oe.from=function(e,t){return this.isValid()&&(y(e)&&e.isValid()||Tt(e).isValid())?jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oe.fromNow=function(e){return this.from(Tt(),e)},oe.to=function(e,t){return this.isValid()&&(y(e)&&e.isValid()||Tt(e).isValid())?jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oe.toNow=function(e){return this.to(Tt(),e)},oe.get=function(e){return E(this[e=F(e)])?this[e]():this},oe.invalidAt=function(){return p(this).overflow},oe.isAfter=function(e,t){return e=y(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},oe.isBefore=function(e,t){return e=y(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},oe.isBetween=function(e,t,n,o){return e=y(e)?e:Tt(e),t=y(t)?t:Tt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(o=o||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))},oe.isSame=function(e,t){return e=y(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},oe.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},oe.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},oe.isValid=function(){return f(this)},oe.lang=qe,oe.locale=qt,oe.localeData=Xt,oe.max=q,oe.min=G,oe.parsingFlags=function(){return h({},p(this))},oe.set=function(e,t){if("object"==typeof e)for(var n=(e=>{var t,n=[];for(t in e)r(e,t)&&n.push({unit:t,priority:V[t]});return n.sort(function(e,t){return e.priority-t.priority}),n})(e=H(e)),o=n.length,i=0;i<o;i++)this[n[i].unit](e[n[i].unit]);else if(E(this[e=F(e)]))return this[e](t);return this},oe.startOf=function(e){var t,o;if(void 0!==(e=F(e))&&"millisecond"!==e&&this.isValid()){switch(o=this._isUTC?on:nn,e){case"year":t=o(this.year(),0,1);break;case"quarter":t=o(this.year(),this.month()-this.month()%3,1);break;case"month":t=o(this.year(),this.month(),1);break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=o(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:this.utcOffset()*Kt),Jt);break;case"minute":t=this._d.valueOf(),t-=tn(t,Kt);break;case"second":t=this._d.valueOf(),t-=tn(t,Zt)}this._d.setTime(t),n.updateOffset(this,!0)}return this},oe.subtract=We,oe.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},oe.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},oe.toDate=function(){return new Date(this.valueOf())},oe.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?D(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",D(t,"Z")):D(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},oe.inspect=function(){var e,t,n;return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(oe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),oe.toJSON=function(){return this.isValid()?this.toISOString():null},oe.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},oe.unix=function(){return Math.floor(this.valueOf()/1e3)},oe.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},oe.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},oe.eraName=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},oe.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},oe.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},oe.eraYear=function(){for(var e,t,o=this.localeData().eras(),i=0,r=o.length;i<r;++i)if(e=o[i].since<=o[i].until?1:-1,t=this.clone().startOf("day").valueOf(),o[i].since<=t&&t<=o[i].until||o[i].until<=t&&t<=o[i].since)return(this.year()-n(o[i].since).year())*e+o[i].offset;return this.year()},oe.year=Ee,oe.isLeapYear=function(){return fe(this.year())},oe.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},oe.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},oe.quarter=oe.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},oe.month=Re,oe.daysInMonth=function(){return Ne(this.year(),this.month())},oe.week=oe.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},oe.isoWeek=oe.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},oe.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},oe.weeksInWeekYear=function(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)},oe.isoWeeksInYear=function(){return Be(this.year(),1,4)},oe.isoWeeksInISOWeekYear=function(){return Be(this.isoWeekYear(),1,4)},oe.date=Q,oe.day=oe.days=function(e){var t,n,o;return this.isValid()?(t=Pe(this,"Day"),null!=e?(n=e,o=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=o.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},oe.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},oe.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},oe.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},oe.hour=oe.hours=ne,oe.minute=oe.minutes=B,oe.second=oe.seconds=Z,oe.millisecond=oe.milliseconds=Y,oe.utcOffset=function(e,t,o){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Rt(this);if("string"==typeof e){if(null===(e=Dt(te,e)))return this}else Math.abs(e)<16&&!o&&(e*=60);return!this._isUTC&&t&&(i=Rt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Yt(this,jt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this},oe.utc=function(e){return this.utcOffset(0,e)},oe.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Rt(this),"m"),this},oe.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Dt(ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},oe.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},oe.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},oe.isLocal=function(){return!!this.isValid()&&!this._isUTC},oe.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},oe.isUtc=Ft,oe.isUTC=Ft,oe.zoneAbbr=function(){return this._isUTC?"UTC":""},oe.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},oe.dates=x("dates accessor is deprecated. Use date instead.",Q),oe.months=x("months accessor is deprecated. Use month instead",Re),oe.years=x("years accessor is deprecated. Use year instead",Ee),oe.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),oe.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(_(e={},this),(e=Ot(e))._a?(t=(e._isUTC?d:Tt)(e._a),this._isDSTShifted=this.isValid()&&0<((e,t)=>{for(var n=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,r=0;r<n;r++)ce(e[r])!==ce(t[r])&&i++;return i+o})(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted}),(ie=P.prototype).calendar=function(e,t,n){return E(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},ie.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},ie.invalidDate=function(){return this._invalidDate},ie.ordinal=function(e){return this._ordinal.replace("%d",e)},ie.preparse=un,ie.postformat=un,ie.relativeTime=function(e,t,n,o){var i=this._relativeTime[n];return E(i)?i(e,t,n,o):i.replace(/%d/i,e)},ie.pastFuture=function(e,t){return E(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},ie.set=function(e){var t,n;for(n in e)r(e,n)&&(E(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ie.eras=function(e,t){for(var o,i=this._eras||ut("en")._eras,r=0,s=i.length;r<s;++r)switch("string"==typeof i[r].since&&(o=n(i[r].since).startOf("day"),i[r].since=o.valueOf()),typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":o=n(i[r].until).startOf("day").valueOf(),i[r].until=o.valueOf()}return i},ie.erasParse=function(e,t,n){var o,i,r,s,a,l=this.eras();for(e=e.toUpperCase(),o=0,i=l.length;o<i;++o)if(r=l[o].name.toUpperCase(),s=l[o].abbr.toUpperCase(),a=l[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[o];break;case"NNNN":if(r===e)return l[o];break;case"NNNNN":if(a===e)return l[o]}else if(0<=[r,s,a].indexOf(e))return l[o]},ie.erasConvertYear=function(e,t){var o=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*o},ie.erasAbbrRegex=function(e){return r(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},ie.erasNameRegex=function(e){return r(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},ie.erasNarrowRegex=function(e){return r(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},ie.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Me).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},ie.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Me.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ie.monthsParse=function(e,t,n){var o,i;if(this._monthsParseExact)return function(e,t,n){var o,i,r;if(e=e.toLocaleLowerCase(),!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=d([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,e))?i:null:-1!==(i=Oe.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,e))||-1!==(i=Oe.call(this._longMonthsParse,e))?i:null:-1!==(i=Oe.call(this._longMonthsParse,e))||-1!==(i=Oe.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=d([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},ie.monthsRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ie.monthsShortRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ie.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},ie.firstDayOfYear=function(){return this._week.doy},ie.firstDayOfWeek=function(){return this._week.dow},ie.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ye(t,this._week.dow):e?t[e.day()]:t},ie.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},ie.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},ie.weekdaysParse=function(e,t,n){var o,i;if(this._weekdaysParseExact)return function(e,t,n){var o,i,r;if(e=e.toLocaleLowerCase(),!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=d([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,e))||-1!==(i=Oe.call(this._shortWeekdaysParse,e))||-1!==(i=Oe.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,e))||-1!==(i=Oe.call(this._weekdaysParse,e))||-1!==(i=Oe.call(this._minWeekdaysParse,e))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,e))||-1!==(i=Oe.call(this._weekdaysParse,e))||-1!==(i=Oe.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=d([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},ie.weekdaysRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ie.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ie.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ie.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ie.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},lt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),n.lang=x("moment.lang is deprecated. Use moment.locale instead.",lt),n.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ut);var fn=Math.abs;function gn(e,t,n,o){return t=jt(t,n),e._milliseconds+=o*t._milliseconds,e._days+=o*t._days,e._months+=o*t._months,e._bubble()}function mn(e){return e<0?Math.floor(e):Math.ceil(e)}function vn(e){return 4800*e/146097}function _n(e){return 146097*e/4800}function bn(e){return function(){return this.as(e)}}function yn(e){return function(){return this.isValid()?this._data[e]:NaN}}j=bn("ms"),z=bn("s"),X=bn("m"),U=bn("h"),$e=bn("d"),q=bn("w"),G=bn("M"),We=bn("Q"),ne=bn("y"),B=j,Z=yn("milliseconds"),Y=yn("seconds"),Q=yn("minutes"),Ee=yn("hours"),ie=yn("days");var wn=yn("months"),xn=yn("years"),kn=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},On=Math.abs;function Tn(e){return(0<e)-(e<0)||+e}function Pn(){var e,t,n,o,i,r,s,a,l,c,u;return this.isValid()?(e=On(this._milliseconds)/1e3,t=On(this._days),n=On(this._months),(a=this.asSeconds())?(o=le(e/60),i=le(o/60),e%=60,o%=60,r=le(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=Tn(this._months)!==Tn(a)?"-":"",c=Tn(this._days)!==Tn(a)?"-":"",u=Tn(this._milliseconds)!==Tn(a)?"-":"",(a<0?"-":"")+"P"+(r?l+r+"Y":"")+(n?l+n+"M":"")+(t?c+t+"D":"")+(i||o||e?"T":"")+(i?u+i+"H":"")+(o?u+o+"M":"")+(e?u+s+"S":"")):"P0D"):this.localeData().invalidDate()}var Cn=Nt.prototype;return Cn.isValid=function(){return this._isValid},Cn.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},Cn.add=function(e,t){return gn(this,e,t,1)},Cn.subtract=function(e,t){return gn(this,e,t,-1)},Cn.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+o/864e5,n=this._months+vn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(_n(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Cn.asMilliseconds=j,Cn.asSeconds=z,Cn.asMinutes=X,Cn.asHours=U,Cn.asDays=$e,Cn.asWeeks=q,Cn.asMonths=G,Cn.asQuarters=We,Cn.asYears=ne,Cn.valueOf=B,Cn._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*mn(_n(n)+t),n=t=0),o.milliseconds=e%1e3,e=le(e/1e3),o.seconds=e%60,e=le(e/60),o.minutes=e%60,e=le(e/60),o.hours=e%24,t+=le(e/24),n+=e=le(vn(t)),t-=mn(_n(e)),e=le(n/12),n%=12,o.days=t,o.months=n,o.years=e,this},Cn.clone=function(){return jt(this)},Cn.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},Cn.milliseconds=Z,Cn.seconds=Y,Cn.minutes=Q,Cn.hours=Ee,Cn.days=ie,Cn.weeks=function(){return le(this.days()/7)},Cn.months=wn,Cn.years=xn,Cn.humanize=function(e,t){var n,o;return this.isValid()?(n=!1,o=Sn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(o=Object.assign({},Sn,t),null!=t.s)&&null==t.ss&&(o.ss=t.s-1),t=function(e,t,n,o){var i=jt(e).abs(),r=kn(i.as("s")),s=kn(i.as("m")),a=kn(i.as("h")),l=kn(i.as("d")),c=kn(i.as("M")),u=kn(i.as("w"));return i=kn(i.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||(s<=1?["m"]:s<n.m&&["mm",s])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]),(r=(r=null!=n.w?r||(u<=1?["w"]:u<n.w&&["ww",u]):r)||(c<=1?["M"]:c<n.M&&["MM",c])||(i<=1?["y"]:["yy",i]))[2]=t,r[3]=0<+e,r[4]=o,function(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}.apply(null,r)}(this,!n,o,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},Cn.toISOString=Pn,Cn.toString=Pn,Cn.toJSON=Pn,Cn.locale=qt,Cn.localeData=Xt,Cn.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pn),Cn.lang=qe,L("X",0,0,"unix"),L("x",0,0,"valueOf"),re("x",J),re("X",/[+-]?\d+(\.\d{1,3})?/),de("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),de("x",function(e,t,n){n._d=new Date(ce(e))}),n.version="2.30.1",e=Tt,n.fn=oe,n.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},n.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=d,n.unix=function(e){return Tt(1e3*e)},n.months=function(e,t){return dn(e,t,"months")},n.isDate=c,n.locale=lt,n.invalid=g,n.duration=jt,n.isMoment=y,n.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},n.parseZone=function(){return Tt.apply(null,arguments).parseZone()},n.localeData=ut,n.isDuration=$t,n.monthsShort=function(e,t){return dn(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},n.defineLocale=ct,n.updateLocale=function(e,t){var n,o;return null!=t?(o=ot,null!=it[e]&&null!=it[e].parentLocale?it[e].set(T(it[e]._config,t)):(t=T(o=null!=(n=at(e))?n._config:o,t),null==n&&(t.abbr=e),(o=new P(t)).parentLocale=it[e],it[e]=o),lt(e)):null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===lt()&&lt(e)):null!=it[e]&&delete it[e]),it[e]},n.locales=function(){return k(it)},n.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},n.normalizeUnits=F,n.relativeTimeRounding=function(e){return void 0===e?kn:"function"==typeof e&&(kn=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==Sn[e]&&(void 0===t?Sn[e]:(Sn[e]=t,"s"===e&&(Sn.ss=t-1),!0))},n.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},n.prototype=oe,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})()),On.exports),Pn=n(Tn);let Cn=e=>e?e+"?nocache="+Math.random():"",Nn=e=>{var{itemInfo:e,hoverType:t}=e;if(!e)return!1;if(t)return t;let n;switch(t=e.type){case st:n=nt;break;case rt:n=tt;break;case it:case at:n=et;break;default:n=Je}return n},$n=(e,t)=>{if(0<t)return"0px";let n;switch(e){case Ve:n=(qe/2+Xe)/2;break;case He:n=-12;break;case je:n=-20;break;case ze:n=(qe+Xe)/2;break;default:n=0}return n+"px"},An=(e,t="vi",n)=>{var o=e.type;let i="",r="",s="",a="",l=!1;if(o===ue.ITEM_INFO||o===ue.POLYGON){var c=Nn(e),u=e.itemInfo,{icon:u,name:h,distance:d,distanceUnit:p,price:f,currencyUnit:g,unit:m}=u;switch(s=sn(u,150),i=h,c){case nt:r=d+" "+p;break;case ot:r="";break;case tt:a="unset";break;case et:f&&(r=((e,t,n)=>e+(t?" "+t:"")+(n?"/"+C[n]:""))((e=>{if(0===Number(e))return"0";e=e.toString();for(var t=/(-?\d+)(\d{3})/;t.test(e);)e=e.replace(t,"$1.$2");return""+e})(f),g,m));break;default:return console.warn(`Type[${c}] is not handled hover`),""}}else o===ue.PROMOTION?(u=e.promotion,({name:h,endDate:u,image:v}=u),u=Pn(u).format("DD/MM/YYYY"),i=h,r=`${t===T.VI?"đến":"to"} ${u} `,s=sn(v,150)):o===ue.GALLERY&&((null==(t=(h=e.gallery)[0])?void 0:t.type)===pt&&(l=!0),s=sn(null==(u=h[0])?void 0:u.file,150));var v=l?` \n [div class="popup__video" ]\n [video class="video__content" ]\n [source src=${s} type="video/mp4" /]\n [/video]\n [span class="icon-play_arrow_24x24 video__icon"] [/span]\n [/div]\n `:s&&`\n [img\n class="popup__image"\n style="height: ${a}"\n src = "${s}"\n /]`;return`\n [div class="cvtv-poi-laser-tooltip-content__popup cvtv-poi-laser-tooltip-content__popup--${(null==(o=null==e?void 0:e.popupSize)?void 0:o.toLowerCase())||"1"}" style="order: ${n}"]\n ${v||""} \n [div class="popup__info"]\n [div class="info__title"][span]${i||""}[/span][/div]\n [div class= "info__subtitle"][span]${r}[/span][/div]\n [/div]\n [/div]\n `},Mn=e=>{var{laserRange:t,position:n}=e;return`\n [div class="cvtv-poi-laser-tooltip-content__pin cvtv-poi-laser-tooltip-content__pin--${null==n?void 0:n.toLowerCase()}" style="--size-pin-content: ${Ge[t]}px"]\n [div class= "pin__content "][/div]\n [div class= "pin__icon " ]\n ${(e=>{var t,n,o=dn(e.props);return e=ln(e.props),o&&o.imageStrip?(({file:o,frameWidth:n,frameHeight:t}=o),n=n?(o.width||0)*(32/n):32,`[div class="icon__image-strip" style=" --height-image-trip: ${t?(o.height||0)*(32/t):32}px; --width-image-trip: ${n}px" ]\n [img class="image-strip__content" style="background-image: url(${e})" /]\n [/div]`):e?`\n [img\n class="icon__image"\n src="${e}"\n /]`:""})(e)}\n [/div]\n [/div]\n `},Ln=(e,t,n="vi")=>{if(!(e=>{if(e.type===ue.ITEM_INFO){if(!e.itemInfo)return!1;if(Nn(e)===Je)return!1}return!0})(t))return"";let o,i,r=0,s="",a="",l="row";var{position:c,overviewPosition:u,laserRange:h}=t;return u===Re.BOTTOM_LEFT_CORNER&&c===Fe?'\n [div class="cvtv-poi-laser-tooltip"]\n [div class="cvtv-poi-laser-tooltip__focusing-point"][/div]\n [/div]\n ':(c===Ve||c===je?(l="column",a="50%",o="-50%",i="0px",s="unset",r=0,c===je?(i=`calc(100% + ${$n(c,h)})`,r=1):i=""+$n(c,h)):(o=c===ze?`calc(-100% + ${$n(c,h)})`:(r=1,""+$n(c,h)),i="calc(50% - 4px)"),`\n [div class="cvtv-poi-laser-tooltip cvtv-poi-laser-tooltip cvtv-poi-laser-tooltip--${((e,t)=>{var{width:t=0,height:n=0,laserRange:o=Ie,scale:i=1,distorted:r=!1}=t;let s=(t+n)*Math.pow(i,2)/2/2;return r&&!an(e)&&(s*=Math.sqrt(2)),(t=Math.round(s*o))<500?t:500})(e,t)||"1"}"]\n [div class="cvtv-poi-laser-tooltip__point${0===h?" invisible":""}"][/div]\n [div class="cvtv-poi-laser-tooltip__body" style="left: ${a}; top: ${s}; transform: translate(${o}, ${i})"]\n [div class="cvtv-poi-laser-tooltip-content" style="flex-direction: ${l}"]\n ${An(t,n,r)}\n ${Mn(t)}\n [/div]\n [/div]\n [/div]\n `)},Dn=(e,t,n,o=!0)=>{e.call(`addhotspot(${t}); `),e.call(`\n set(hotspot[${t}].type, text);\n set(hotspot[${t}].renderer, css3d);\n set(hotspot[${t}].padding, 0);\n set(hotspot[${t}].bgalpha, 0);\n set(hotspot[${t}].autowidth, true);\n set(hotspot[${t}].autoheight, true);\n set(hotspot[${t}].visible, false);\n set(hotspot[${t}].rx, 0);\n set(hotspot[${t}].ry, 0);\n set(hotspot[${t}].rz, 0);\n set(hotspot[${t}].rotate, 0);\n set(hotspot[${t}].distorted, false);\n set(hotspot[${t}].handcursor, ${o});\n set(hotspot[${t}].css, font - family: Barlow; font - size: 14px; color: #ffffff;);\n `),e.set(`hotspot[${t}].html`,n)},In=(e,t,n,o=!0)=>{var i=un(t.code);Dn(e,i,n,o),e.set(`hotspot[${i}].atv`,t.atv),e.set(`hotspot[${i}].ath`,t.ath),e.set(`hotspot[${i}].zorder`,P.FOCUSING_AREA)},Rn=(e,t,n,o=!0)=>{if(n){var i=un(t.code);if(Dn(e,i,n,o),e.set(`hotspot[${i}].atv`,t.atv),e.set(`hotspot[${i}].ath`,t.ath),e.set(`hotspot[${i}].zorder`,(e=>e.type===ue.MOVING||e.type===ue.INFO?P.MIN:P.STANDARD)(t)),[ue.INFO,ue.MOVING,ue.POPUP].includes(t.type)&&e.set(`hotspot[${i}].scale`,t.scale<=1?t.scale:1),n){let n;n=t.type===ue.POLYGON?`\n if(hotspot[${t.code}]!=null,\n copy(ph_${i}, hotspot[${i}].pixelheight);\n if(ph_${i} != null,\n if(ph_${i} != 0,\n set(hotspot[${i}].oy, calc(((ph_${i}/2) + 10) * -1));\n set(needsUpdate_${i}, false);\n ,\n );\n ,\n );\n ,\n );\n `:`\n if(hotspot[${t.code}]!=null,\n copy(ph_${i}, hotspot[${i}].pixelheight);\n copy(ph_${t.code}, hotspot[${t.code}].pixelheight);\n copy(scl_${t.code}, hotspot[${t.code}].scale);\n\n if(ph_${i} != null,\n if(ph_${i} != 0,\n if(ph_${t.code} != null,\n if(ph_${t.code} != 0,\n set(h_${t.code}, calc(hotspot[${t.code}].height * scl_${t.code} - 0));\n set(hotspot[${i}].oy, calc(((ph_${i}/2) + (h_${t.code}/2) + 10 + 8) * -1));\n set(needsUpdate_${i}, false);\n ,\n );\n ,\n );\n ,\n );\n ,\n );\n );\n `,e.call(`\n set(hotspot[${i}].onloaded,\n copy(needsUpdate_${i}, true);\n\n asyncloop(needsUpdate_${i},\n ${n}\n );\n );\n `)}}},Fn=(e,t)=>ce(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=ln(t);return yield cn(i,n,o),e.call(`addhotspot(${t.code});`),e.set(`hotspot[${t.code}].html`,jn(t)),e.call(`\n set(hotspot[${t.code}].type, text);\n set(hotspot[${t.code}].renderer, css3d);\n set(hotspot[${t.code}].padding, 0);\n set(hotspot[${t.code}].bgalpha, 0);\n set(hotspot[${t.code}].autowidth, true);\n set(hotspot[${t.code}].autoheight, true);\n set(hotspot[${t.code}].atv, ${t.atv});\n set(hotspot[${t.code}].ath, ${t.ath}); \n set(hotspot[${t.code}].alpha,${t.alpha});\n set(hotspot[${t.code}].scale,${t.scale});\n set(hotspot[${t.code}].rotate,${t.rotate});\n set(hotspot[${t.code}].width,${n});\n set(hotspot[${t.code}].height,${o});\n set(hotspot[${t.code}].rx,${t.rx});\n set(hotspot[${t.code}].ry,${t.ry});\n set(hotspot[${t.code}].rz,${t.rz});\n set(hotspot[${t.code}].distorted,${t.distorted});\n set(hotspot[${t.code}].zorder, ${P.STANDARD});\n `),new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{e.set(`hotspot[${t.code}].visible`,t.visible),n()})})}),Hn=e=>{var t=e.code,n=dn(e);return n?`\n def(imageWidth_${t}, integer, get(hotspot[${t}].imagewidth));\n def(imageHeight_${t}, integer, get(hotspot[${t}].imageheight));\n def(frameWidth_${t}, integer, ${n.frameWidth});\n def(frameHeight_${t}, integer, ${n.frameHeight});\n def(frameRate_${t}, integer, ${e.frameRate});\n def(frame_${t}, integer, 0);\n \n calc(xFrames_${t}, (imageWidth_${t} / frameWidth_${t}) BOR 0);\n calc(frames_${t}, xFrames_${t} * ((imageHeight_${t} / frameHeight_${t}) BOR 0));\n calc(hotspot[${t}].crop, '0|0|' + frameWidth_${t} + '|' + frameHeight_${t});\n \n setinterval(crop_anim_${t}, calc(1.0 / frameRate_${t}),\n if(hotspot[${t}].loaded,\n inc(frame_${t});\n if(frame_${t} GE frames_${t}, set(frame_${t}, 0););\n mod(xPos_${t}, frame_${t}, xFrames_${t});\n div(yPos_${t}, frame_${t}, xFrames_${t});\n Math.floor(yPos_${t});\n mul(xPos_${t}, frameWidth_${t});\n mul(yPos_${t}, frameHeight_${t});\n calc(\n hotspot[${t}].crop,\n xPos_${t} + '|' + yPos_${t} + '|' + frameWidth_${t} + '|' + frameHeight_${t}\n );\n ,\n clearinterval(crop_anim_${t});\n );\n );\n `:""},Vn=(e,t)=>ce(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=Cn(ln(t));return yield cn(i,n,o),e.call(`\n addhotspot(${t.code});\n set(hotspot[${t.code}].url, ${i});\n set(hotspot[${t.code}].renderer, css3d);\n set(hotspot[${t.code}].bgalpha, 0);\n set(hotspot[${t.code}].ath, ${t.ath});\n set(hotspot[${t.code}].atv, ${t.atv});\n set(hotspot[${t.code}].alpha, ${t.alpha});\n set(hotspot[${t.code}].scale, ${t.scale});\n set(hotspot[${t.code}].rotate, ${t.rotate});\n set(hotspot[${t.code}].width, ${n});\n set(hotspot[${t.code}].height, ${o});\n set(hotspot[${t.code}].rx, ${t.rx});\n set(hotspot[${t.code}].ry, ${t.ry});\n set(hotspot[${t.code}].rz, ${t.rz});\n set(hotspot[${t.code}].distorted, ${t.distorted});\n set(hotspot[${t.code}].zorder, ${P.STANDARD});\n `),new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{e.call(Hn(t)),e.set(`hotspot[${t.code}].visible`,t.visible),n()})})}),jn=e=>{var t=ln(e);return`\n [div class="cvtv-product-info-poi__marker"]\n [img width="${e.width}" height="${e.height}" src="${t}"][/img]\n [/div]`},zn=e=>`[div class="cvtv-product-info-poi__marker cvtv-product-info-poi__marker--label cvtv-product-info-poi__marker--visible"]\n [div class="info-poi"]\n [div class="info-poi__icon" style="width: ${(e.width||0)*(e.scale||1)}px; height: ${(e.height||0)*(e.scale||1)}px"]\n [/div]\n [div class="info-poi__label"]\n [div class="text"]\n ${e&&e.itemInfo&&e.itemInfo.name}\n [/div]\n [i class="chevron icon-chevron_right_24x24"][/i]\n [/div]\n [/div]\n [/div]`,Un=(e,t)=>{var n=dn(t);return(n&&n.imageStrip?Vn:Fn)(e,t)},Bn=(e,t)=>ce(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=ln(t);yield cn(i,n,o),e.call(`addhotspot(${t.code});`),e.call(`\n set(hotspot[${t.code}].url, ${Cn(i)});\n set(hotspot[${t.code}].tx, ${t.tx});\n set(hotspot[${t.code}].ty, ${t.ty});\n set(hotspot[${t.code}].tz, ${t.tz});\n set(hotspot[${t.code}].alpha, ${t.alpha});\n set(hotspot[${t.code}].scale, ${t.scale});\n set(hotspot[${t.code}].width, ${n});\n set(hotspot[${t.code}].height, ${o});\n set(hotspot[${t.code}].rx, -90);\n set(hotspot[${t.code}].ry, ${t.rotate});\n set(hotspot[${t.code}].distorted, true);\n set(hotspot[${t.code}].vcenter, true);\n set(hotspot[${t.code}].depth, 0);\n set(hotspot[${t.code}].depthbuffer, true);\n set(hotspot[${t.code}].torigin, world);\n set(hotspot[${t.code}].rotationorder, xyz);\n set(hotspot[${t.code}].zorder, ${P.STANDARD});\n set(hotspot[${t.code}].visible, ${t.visible});\n `);let r=dn(t);return new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{r&&r.imageStrip&&e.call(Hn(t)),n()})})});function Yn(e,t){return function(){return e.apply(t,arguments)}}let Wn=Object.prototype.toString,Gn=Object.getPrototypeOf,{iterator:qn,toStringTag:Xn}=Symbol,Qn=(to=Object.create(null),e=>(e=Wn.call(e),to[e]||(to[e]=e.slice(8,-1).toLowerCase()))),Zn=e=>(e=e.toLowerCase(),t=>Qn(t)===e),Kn=e=>t=>typeof t===e,Jn=Array.isArray,eo=Kn("undefined");var to;function no(e){return null!==e&&!eo(e)&&null!==e.constructor&&!eo(e.constructor)&&ro(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let oo=Zn("ArrayBuffer");let io=Kn("string"),ro=Kn("function"),so=Kn("number"),ao=e=>null!==e&&"object"==typeof e,lo=e=>{var t;return"object"===Qn(e)&&!(null!==(t=Gn(e))&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Xn in e||qn in e)},co=Zn("Date"),uo=Zn("File"),ho=Zn("Blob"),po=Zn("FileList"),fo=Zn("URLSearchParams"),[go,mo,vo,_o]=["ReadableStream","Request","Response","Headers"].map(Zn);function bo(e,t,{allOwnKeys:n=!1}={}){if(null!=e){let a;var o;if("object"!=typeof e&&(e=[e]),Jn(e))for(a=0,o=e.length;a<o;a++)t.call(null,e[a],a,e);else if(!no(e)){var i,r=n?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;for(a=0;a<s;a++)i=r[a],t.call(null,e[i],i,e)}}}function yo(e,t){if(!no(e)){t=t.toLowerCase();var n,o=Object.keys(e);let i=o.length;for(;0<i--;)if(t===(n=o[i]).toLowerCase())return n}return null}let wo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,xo=e=>!eo(e)&&e!==wo;let ko=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Gn(Uint8Array)),So=Zn("HTMLFormElement"),Oo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Eo=Zn("RegExp"),To=(e,t)=>{var n=Object.getOwnPropertyDescriptors(e);let o={};bo(n,(n,i)=>{var r;!1!==(r=t(n,i,e))&&(o[i]=r||n)}),Object.defineProperties(e,o)};let Po=Zn("AsyncFunction"),Co=((e,t)=>{return e?setImmediate:t?(n="axios@"+Math.random(),o=[],wo.addEventListener("message",({source:e,data:t})=>{e===wo&&t===n&&o.length&&o.shift()()},!1),e=>{o.push(e),wo.postMessage(n,"*")}):e=>setTimeout(e);var n,o})("function"==typeof setImmediate,ro(wo.postMessage)),No="undefined"!=typeof queueMicrotask?queueMicrotask.bind(wo):"undefined"!=typeof process&&process.nextTick||Co;var $o={isArray:Jn,isArrayBuffer:oo,isBuffer:no,isFormData:e=>{var t;return e&&("function"==typeof FormData&&e instanceof FormData||ro(e.append)&&("formdata"===(t=Qn(e))||"object"===t&&ro(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&oo(e.buffer)},isString:io,isNumber:so,isBoolean:e=>!0===e||!1===e,isObject:ao,isPlainObject:lo,isEmptyObject:e=>{if(!ao(e)||no(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:go,isRequest:mo,isResponse:vo,isHeaders:_o,isUndefined:eo,isDate:co,isFile:uo,isBlob:ho,isRegExp:Eo,isFunction:ro,isStream:e=>ao(e)&&ro(e.pipe),isURLSearchParams:fo,isTypedArray:ko,isFileList:po,forEach:bo,merge:function e(){let t=(xo(this)&&this||{}).caseless,n={};var o=(o,i)=>{i=t&&yo(n,i)||i,lo(n[i])&&lo(o)?n[i]=e(n[i],o):lo(o)?n[i]=e({},o):Jn(o)?n[i]=o.slice():n[i]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&bo(arguments[e],o);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(bo(t,(t,o)=>{n&&ro(t)?e[o]=Yn(t,n):e[o]=t},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>65279===e.charCodeAt(0)?e.slice(1):e,inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{var i,r;let s;var a={};if(t=t||{},null!=e)do{for(s=(i=Object.getOwnPropertyNames(e)).length;0<s--;)r=i[s],o&&!o(r,e,t)||a[r]||(t[r]=e[r],a[r]=!0)}while((e=!1!==n&&Gn(e))&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Qn,kindOfTest:Zn,endsWith:(e,t,n)=>(e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length,-1!==(e=e.indexOf(t,n))&&e===n),toArray:e=>{if(!e)return null;if(Jn(e))return e;let t=e.length;if(!so(t))return null;for(var n=new Array(t);0<t--;)n[t]=e[t];return n},forEachEntry:(e,t)=>{for(var n=(e&&e[qn]).call(e);(o=n.next())&&!o.done;){var o=o.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{for(var n,o=[];null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:So,hasOwnProperty:Oo,hasOwnProp:Oo,reduceDescriptors:To,freezeMethods:e=>{To(e,(t,n)=>{if(ro(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var o=e[n];ro(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{let n={};var o=e=>{e.forEach(e=>{n[e]=!0})};return Jn(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:yo,global:wo,isContextDefined:xo,isSpecCompliantForm:function(e){return!!(e&&ro(e.append)&&"FormData"===e[Xn]&&e[qn])},toJSONObject:e=>{let t=new Array(10),n=(e,o)=>{if(ao(e)){if(0<=t.indexOf(e))return;if(no(e))return e;if(!("toJSON"in e)){t[o]=e;let i=Jn(e)?[]:{};return bo(e,(e,t)=>{e=n(e,o+1),eo(e)||(i[t]=e)}),t[o]=void 0,i}}return e};return n(e,0)},isAsyncFn:Po,isThenable:e=>e&&(ao(e)||ro(e))&&ro(e.then)&&ro(e.catch),setImmediate:Co,asap:No,isIterable:e=>null!=e&&ro(e[qn])};function Ao(e,t,n,o,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status||null)}$o.inherits(Ao,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$o.toJSONObject(this.config),code:this.code,status:this.status}}});let Mo=Ao.prototype,Lo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Lo[e]={value:e}}),Object.defineProperties(Ao,Lo),Object.defineProperty(Mo,"isAxiosError",{value:!0}),Ao.from=(e,t,n,o,i,r)=>{var s=Object.create(Mo);return $o.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Ao.call(s,e.message,t,n,o,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};function Do(e){return $o.isPlainObject(e)||$o.isArray(e)}function Io(e){return $o.endsWith(e,"[]")?e.slice(0,-2):e}function Ro(e,t,n){return e?e.concat(t).map(function(e,t){return e=Io(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let Fo=$o.toFlatObject($o,{},null,function(e){return/^is[A-Z]/.test(e)});function Ho(e,t,n){if(!$o.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;let o=(n=$o.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!$o.isUndefined(t[e])})).metaTokens,i=n.visitor||c,r=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&$o.isSpecCompliantForm(t);if(!$o.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if($o.isDate(e))return e.toISOString();if($o.isBoolean(e))return e.toString();if(!a&&$o.isBlob(e))throw new Ao("Blob is not supported. Use a Buffer instead.");return $o.isArrayBuffer(e)||$o.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let a=e;if(e&&!i&&"object"==typeof e)if($o.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if($o.isArray(e)&&function(e){return $o.isArray(e)&&!e.some(Do)}(e)||($o.isFileList(e)||$o.endsWith(n,"[]"))&&(a=$o.toArray(e)))return n=Io(n),a.forEach(function(e,o){$o.isUndefined(e)||null===e||t.append(!0===s?Ro([n],o,r):null===s?n:n+"[]",l(e))}),!1;return!!Do(e)||(t.append(Ro(i,n,r),l(e)),!1)}let u=[],h=Object.assign(Fo,{defaultVisitor:c,convertValue:l,isVisitable:Do});if($o.isObject(e))return function e(n,o){if(!$o.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+o.join("."));u.push(n),$o.forEach(n,function(n,r){!0===(!($o.isUndefined(n)||null===n)&&i.call(t,n,$o.isString(r)?r.trim():r,o,h))&&e(n,o?o.concat(r):[r])}),u.pop()}}(e),t;throw new TypeError("data must be an object")}function Vo(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function jo(e,t){this._pairs=[],e&&Ho(e,this,t)}let zo=jo.prototype;function Uo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bo(e,t,n){if(t){var o=n&&n.encode||Uo,i=(n=$o.isFunction(n)?{serialize:n}:n)&&n.serialize;let r;(r=i?i(t,n):$o.isURLSearchParams(t)?t.toString():new jo(t,n).toString(o))&&(-1!==(i=e.indexOf("#"))&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r)}return e}zo.append=function(e,t){this._pairs.push([e,t])};class Yo{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$o.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Wo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!(zo.toString=function(e){let t=e?function(t){return e.call(this,t,Vo)}:Vo;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")})},Go={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:jo,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let qo="undefined"!=typeof window&&"undefined"!=typeof document,Xo="object"==typeof navigator&&navigator||void 0,Qo=qo&&(!Xo||["ReactNative","NativeScript","NS"].indexOf(Xo.product)<0),Zo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ko=qo&&window.location.href||"http://localhost";var Jo={...Object.freeze({__proto__:null,hasBrowserEnv:qo,hasStandardBrowserEnv:Qo,hasStandardBrowserWebWorkerEnv:Zo,navigator:Xo,origin:Ko}),...Go};function ei(e){if($o.isFormData(e)&&$o.isFunction(e.entries)){let t={};return $o.forEachEntry(e,(e,n)=>{!function e(t,n,o,i){var r,s,a;return"__proto__"===(a=t[i++])||(r=Number.isFinite(+a),s=i>=t.length,a=!a&&$o.isArray(o)?o.length:a,s?$o.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n:(o[a]&&$o.isObject(o[a])||(o[a]=[]),e(t,n,o[a],i)&&$o.isArray(o[a])&&(o[a]=function(e){var t={},n=Object.keys(e);let o;var i,r=n.length;for(o=0;o<r;o++)t[i=n[o]]=e[i];return t}(o[a]))),!r)}(function(e){return $o.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,t,0)}),t}return null}let ti={transitional:Wo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n=t.getContentType()||"",o=-1<n.indexOf("application/json"),i=$o.isObject(e),r=(i&&$o.isHTMLForm(e)&&(e=new FormData(e)),$o.isFormData(e));if(r)return o?JSON.stringify(ei(e)):e;if($o.isArrayBuffer(e)||$o.isBuffer(e)||$o.isStream(e)||$o.isFile(e)||$o.isBlob(e)||$o.isReadableStream(e))return e;if($o.isArrayBufferView(e))return e.buffer;if($o.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(-1<n.indexOf("application/x-www-form-urlencoded"))return function(e,t){return Ho(e,new Jo.classes.URLSearchParams,{visitor:function(e,t,n,o){return Jo.isNode&&$o.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((r=$o.isFileList(e))||-1<n.indexOf("multipart/form-data"))return Ho(r?{"files[]":e}:e,(n=this.env&&this.env.FormData)&&new n,this.formSerializer)}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if($o.isString(e))try{return(t||JSON.parse)(e),$o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ti.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(!$o.isResponse(e)&&!$o.isReadableStream(e)&&e&&$o.isString(e)&&(n&&!this.responseType||o)){n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Ao.from(e,Ao.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Jo.classes.FormData,Blob:Jo.classes.Blob},validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}},ni=($o.forEach(["delete","get","head","post","put","patch"],e=>{ti.headers[e]={}}),$o.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]));let oi=Symbol("internals");function ii(e){return e&&String(e).trim().toLowerCase()}function ri(e){return!1===e||null==e?e:$o.isArray(e)?e.map(ri):String(e)}function si(e,t,n,o,i){return $o.isFunction(o)?o.call(this,t,n):$o.isString(t=i?n:t)?$o.isString(o)?-1!==t.indexOf(o):$o.isRegExp(o)?o.test(t):void 0:void 0}let ai=class{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function i(e,t,n){var i=ii(t);if(!i)throw new Error("header name must be a non-empty string");(i=$o.findKey(o,i))&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=ri(e))}var r=(e,t)=>$o.forEach(e,(e,n)=>i(e,n,t));if($o.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if($o.isString(e)&&(e=e.trim())&&!(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))(e))r((e=>{let t,n,o,i={};return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),t=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!t||i[t]&&ni[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i})(e),t);else if($o.isObject(e)&&$o.isIterable(e)){var s,a,l={};for(a of e){if(!$o.isArray(a))throw TypeError("Object iterator must return a key-value pair");l[s=a[0]]=(s=l[s])?$o.isArray(s)?[...s,a[1]]:[s,a[1]]:a[1]}r(l,t)}else null!=e&&i(t,e,n);return this}get(e,t){if((e=ii(e))&&(e=$o.findKey(this,e))){var n=this[e];if(!t)return n;if(!0===t)return function(e){for(var t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=o.exec(e);)n[t[1]]=t[2];return n}(n);if($o.isFunction(t))return t.call(this,n,e);if($o.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}has(e,t){return!!(e=ii(e))&&!(!(e=$o.findKey(this,e))||void 0===this[e]||t&&!si(0,this[e],e,t))}delete(e,t){let n=this,o=!1;function i(e){(e=ii(e))&&(e=$o.findKey(n,e))&&(!t||si(0,n[e],e,t))&&(delete n[e],o=!0)}return $o.isArray(e)?e.forEach(i):i(e),o}clear(e){var t=Object.keys(this);let n=t.length,o=!1;for(;n--;){var i=t[n];e&&!si(0,this[i],i,e,!0)||(delete this[i],o=!0)}return o}normalize(e){let t=this,n={};return $o.forEach(this,(o,i)=>{var r=$o.findKey(n,i);r?(t[r]=ri(o),delete t[i]):((r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim())!==i&&delete t[i],t[r]=ri(o),n[r]=!0)}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return $o.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&$o.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[oi]=this[oi]={accessors:{}}).accessors,n=this.prototype;function o(e){var o=ii(e);t[o]||(function(e,t){let n=$o.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[o]=!0)}return $o.isArray(e)?e.forEach(o):o(e),this}};function li(e,t){let n=this||ti;var o=t||n;let i=ai.from(o.headers),r=o.data;return $o.forEach(e,function(e){r=e.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function ci(e){return!(!e||!e.__CANCEL__)}function ui(e,t,n){Ao.call(this,null==e?"canceled":e,Ao.ERR_CANCELED,t,n),this.name="CanceledError"}function hi(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Ao("Request failed with status code "+n.status,[Ao.ERR_BAD_REQUEST,Ao.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ai.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$o.reduceDescriptors(ai.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),$o.freezeMethods(ai),$o.inherits(ui,Ao,{__CANCEL__:!0});let di=(e,t,n=3)=>{let o=0,i=function(e,t){e=e||10;let n,o=new Array(e),i=new Array(e),r=0,s=0;return t=void 0!==t?t:1e3,function(a){var l=Date.now(),c=i[s];n=n||l,o[r]=a,i[r]=l;let u=s,h=0;for(;u!==r;)h+=o[u++],u%=e;return(r=(r+1)%e)===s&&(s=(s+1)%e),l-n<t||!(a=c&&l-c)?void 0:Math.round(1e3*h/a)}}(50,250);return function(e,t){let n,o,i=0,r=1e3/t,s=(t,r=Date.now())=>{i=r,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{var t=Date.now(),a=t-i;a>=r?s(e,t):(n=e,o=o||setTimeout(()=>{o=null,s(n)},r-a))},()=>n&&s(n)]}(n=>{var r=n.loaded,s=n.lengthComputable?n.total:void 0,a=i(l=r-o),l={loaded:o=r,total:s,progress:s?r/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&r<=s?(s-r)/a:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0};e(l)},n)},pi=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},fi=e=>(...t)=>$o.asap(()=>e(...t));var gi=Jo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Jo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Jo.origin),Jo.navigator&&/(msie|trident)/i.test(Jo.navigator.userAgent)):()=>!0,mi=Jo.hasStandardBrowserEnv?{write(e,t,n,o,i,r){e=[e+"="+encodeURIComponent(t)],$o.isNumber(n)&&e.push("expires="+new Date(n).toGMTString()),$o.isString(o)&&e.push("path="+o),$o.isString(i)&&e.push("domain="+i),!0===r&&e.push("secure"),document.cookie=e.join("; ")},read:e=>(e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)")))?decodeURIComponent(e[3]):null,remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function vi(e,t,n){var o=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}let _i=e=>e instanceof ai?{...e}:e;function bi(e,t){t=t||{};let n={};function o(e,t,n,o){return $o.isPlainObject(e)&&$o.isPlainObject(t)?$o.merge.call({caseless:o},e,t):$o.isPlainObject(t)?$o.merge({},t):$o.isArray(t)?t.slice():t}function i(e,t,n,i){return $o.isUndefined(t)?$o.isUndefined(e)?void 0:o(void 0,e,0,i):o(e,t,0,i)}function r(e,t){if(!$o.isUndefined(t))return o(void 0,t)}function s(e,t){return $o.isUndefined(t)?$o.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function a(n,i,r){return r in t?o(n,i):r in e?o(void 0,n):void 0}let l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(_i(e),_i(t),0,!0)};return $o.forEach(Object.keys({...e,...t}),function(o){var r=l[o]||i,s=r(e[o],t[o],o);$o.isUndefined(s)&&r!==a||(n[o]=s)}),n}var yi=e=>{var t,n=bi({},e);let{data:o,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:l}=n;return n.headers=a=ai.from(a),n.url=Bo(vi(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),$o.isFormData(o)&&(Jo.hasStandardBrowserEnv||Jo.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):!1!==(e=a.getContentType())&&([e,...t]=e?e.split(";").map(e=>e.trim()).filter(Boolean):[],a.setContentType([e||"multipart/form-data",...t].join("; ")))),Jo.hasStandardBrowserEnv&&((i=i&&$o.isFunction(i)?i(n):i)||!1!==i&&gi(n.url))&&(e=r&&s&&mi.read(s))&&a.set(r,e),n};var wi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o=yi(e);var i=o.data,r=ai.from(o.headers).normalize();let s,a,l,{responseType:c,onUploadProgress:u,onDownloadProgress:h}=o;function d(){a&&a(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let p=new XMLHttpRequest;function f(){var o;p&&(o=ai.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),hi(function(e){t(e),d()},function(e){n(e),d()},{data:c&&"text"!==c&&"json"!==c?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:o,config:e,request:p}),p=null)}p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout,"onloadend"in p?p.onloadend=f:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(f)},p.onabort=function(){p&&(n(new Ao("Request aborted",Ao.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new Ao("Network Error",Ao.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";var i=o.transitional||Wo;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Ao(t,i.clarifyTimeoutError?Ao.ETIMEDOUT:Ao.ECONNABORTED,e,p)),p=null},void 0===i&&r.setContentType(null),"setRequestHeader"in p&&$o.forEach(r.toJSON(),function(e,t){p.setRequestHeader(t,e)}),$o.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),c&&"json"!==c&&(p.responseType=o.responseType),h&&([r,l]=di(h,!0),p.addEventListener("progress",r)),u&&p.upload&&([r,a]=di(u),p.upload.addEventListener("progress",r),p.upload.addEventListener("loadend",a)),(o.cancelToken||o.signal)&&(s=t=>{p&&(n(!t||t.type?new ui(null,e,p):t),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal)&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)),r=function(e){return(e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e))&&e[1]||""}(o.url),r&&-1===Jo.protocols.indexOf(r)?n(new Ao("Unsupported protocol "+r+":",Ao.ERR_BAD_REQUEST,e)):p.send(i||null)})};let xi=(e,t)=>{var n=(e=e?e.filter(Boolean):[]).length;if(t||n){let o,i=new AbortController,r=function(e){o||(o=!0,a(),e=e instanceof Error?e:this.reason,i.abort(e instanceof Ao?e:new ui(e instanceof Error?e.message:e)))},s=t&&setTimeout(()=>{s=null,r(new Ao(`timeout ${t} of ms exceeded`,Ao.ETIMEDOUT))},t),a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};return e.forEach(e=>e.addEventListener("abort",r)),(n=i.signal).unsubscribe=()=>$o.asap(a),n}},ki=function*(e,t){var n,o=e.byteLength;if(o<t)yield e;else{let i=0;for(;i<o;)n=i+t,yield e.slice(i,n),i=n}},Si=async function*(e){if(e[Symbol.asyncIterator])yield*e;else{var t=e.getReader();try{for(;;){var{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}}},Oi=(e,t,n,o)=>{let i,r=async function*(e,t){for await(var n of Si(e))yield*ki(n,t)}(e,t),s=0,a=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{var t,o,{done:i,value:l}=await r.next();i?(a(),e.close()):(t=l.byteLength,n&&(o=s+=t,n(o)),e.enqueue(new Uint8Array(l)))}catch(e){throw a(e),e}},cancel:e=>(a(e),r.return())},{highWaterMark:2})},Ei="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ti=Ei&&"function"==typeof ReadableStream,Pi=Ei&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ci=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ni=Ti&&Ci(()=>{let e=!1;var t=new Request(Jo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$i=Ti&&Ci(()=>$o.isReadableStream(new Response("").body)),Ai={stream:$i&&(e=>e.body)},Mi=(Ei&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{Ai[t]||(Ai[t]=$o.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new Ao(`Response type '${t}' is not supported`,Ao.ERR_NOT_SUPPORT,n)})})})(new Response),async e=>null==e?0:$o.isBlob(e)?e.size:$o.isSpecCompliantForm(e)?(await new Request(Jo.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:$o.isArrayBufferView(e)||$o.isArrayBuffer(e)?e.byteLength:($o.isURLSearchParams(e)&&(e+=""),$o.isString(e)?(await Pi(e)).byteLength:void 0));var Li=Ei&&(async e=>{let t,n,{url:o,method:i,data:r,signal:s,cancelToken:a,timeout:l,onDownloadProgress:c,onUploadProgress:u,responseType:h,headers:d,withCredentials:p="same-origin",fetchOptions:f}=yi(e),g=(h=h?(h+"").toLowerCase():"text",xi([s,a&&a.toAbortSignal()],l)),m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});try{if(u&&Ni&&"get"!==i&&"head"!==i&&0!==(n=await(async(e,t)=>null==(e=$o.toFiniteNumber(e.getContentLength()))?Mi(t):e)(d,r))){var v,_,b=new Request(o,{method:"POST",body:r,duplex:"half"});let e;$o.isFormData(r)&&(e=b.headers.get("content-type"))&&d.setContentType(e),b.body&&([v,_]=pi(n,di(fi(u))),r=Oi(b.body,65536,v,_))}$o.isString(p)||(p=p?"include":"omit");var y="credentials"in Request.prototype;t=new Request(o,{...f,signal:g,method:i.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:y?p:void 0});let s=await fetch(t,f);var w=$i&&("stream"===h||"response"===h);if($i&&(c||w&&m)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});var x=$o.toFiniteNumber(s.headers.get("content-length"));let[t,n]=c&&pi(x,di(fi(c),!0))||[];s=new Response(Oi(s.body,65536,t,()=>{n&&n(),m&&m()}),e)}h=h||"text";let a=await Ai[$o.findKey(Ai,h)||"text"](s,e);return!w&&m&&m(),await new Promise((n,o)=>{hi(n,o,{data:a,headers:ai.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(i){if(m&&m(),i&&"TypeError"===i.name&&/Load failed|fetch/i.test(i.message))throw Object.assign(new Ao("Network Error",Ao.ERR_NETWORK,e,t),{cause:i.cause||i});throw Ao.from(i,i&&i.code,e,t)}});let Di={http:null,xhr:wi,fetch:Li},Ii=($o.forEach(Di,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}),e=>"- "+e),Ri=e=>$o.isFunction(e)||null===e||!1===e;var Fi=e=>{var t,n=(e=$o.isArray(e)?e:[e]).length;let o;var i,r={};for(let i=0;i<n;i++){let n;if(o=t=e[i],!Ri(t)&&void 0===(o=Di[(n=String(t)).toLowerCase()]))throw new Ao(`Unknown adapter '${n}'`);if(o)break;r[n||"#"+i]=o}if(o)return o;throw i=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),new Ao("There is no suitable adapter to dispatch the request "+(n?1<i.length?"since :\n"+i.map(Ii).join("\n"):" "+Ii(i[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")};function Hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ui(null,e)}function Vi(e){return Hi(e),e.headers=ai.from(e.headers),e.data=li.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Fi(e.adapter||ti.adapter)(e).then(function(t){return Hi(e),t.data=li.call(e,e.transformResponse,t),t.headers=ai.from(t.headers),t},function(t){return ci(t)||(Hi(e),t&&t.response&&(t.response.data=li.call(e,e.transformResponse,t.response),t.response.headers=ai.from(t.response.headers))),Promise.reject(t)})}let ji="1.11.0",zi={},Ui=(["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}),{});zi.transitional=function(e,t,n){function o(e,t){return"[Axios v"+ji+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,r)=>{if(!1===e)throw new Ao(o(i," has been removed"+(t?" in "+t:"")),Ao.ERR_DEPRECATED);return t&&!Ui[i]&&(Ui[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,r)}},zi.spelling=function(e){return(t,n)=>(console.warn(n+" is likely a misspelling of "+e),!0)};var Bi={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ao("options must be an object",Ao.ERR_BAD_OPTION_VALUE);var o=Object.keys(e);let i=o.length;for(;0<i--;){var r=o[i];if(s=t[r]){var s,a=e[r];if(!0!==(s=void 0===a||s(a,r,e)))throw new Ao("option "+r+" must be "+s,Ao.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ao("Unknown option "+r,Ao.ERR_BAD_OPTION)}},validators:zi};let Yi=Bi.validators,Wi=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Yo,response:new Yo}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error,e=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?e&&!String(n.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+e):n.stack=e}catch(t){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:o,headers:i}=t=bi(this.defaults,t);void 0!==n&&Bi.assertOptions(n,{silentJSONParsing:Yi.transitional(Yi.boolean),forcedJSONParsing:Yi.transitional(Yi.boolean),clarifyTimeoutError:Yi.transitional(Yi.boolean)},!1),null!=o&&($o.isFunction(o)?t.paramsSerializer={serialize:o}:Bi.assertOptions(o,{encode:Yi.function,serialize:Yi.function},!0)),void 0===t.allowAbsoluteUrls&&(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Bi.assertOptions(t,{baseUrl:Yi.spelling("baseURL"),withXsrfToken:Yi.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),e=i&&$o.merge(i.common,i[t.method]),i&&$o.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=ai.concat(e,i);let r=[],s=!0,a=(this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}),[]);this.interceptors.response.forEach(function(e){a.push(e.fulfilled,e.rejected)});let l,c,u=0;if(s){c=r.length;let n=t;for(u=0;u<c;){var h=r[u++],d=r[u++];try{n=h(n)}catch(e){d.call(this,e);break}}try{l=Vi.call(this,n)}catch(e){return Promise.reject(e)}for(u=0,c=a.length;u<c;)l=l.then(a[u++],a[u++])}else{var p=[Vi.bind(this),void 0];for(p.unshift(...r),p.push(...a),c=p.length,l=Promise.resolve(t);u<c;)l=l.then(p[u++],p[u++])}return l}getUri(e){return Bo(vi((e=bi(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}},Gi=($o.forEach(["delete","get","head","options"],function(e){Wi.prototype[e]=function(t,n){return this.request(bi(n||{},{method:e,url:t,data:(n||{}).data}))}}),$o.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,i){return this.request(bi(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Wi.prototype[e]=t(),Wi.prototype[e+"Form"]=t(!0)}),class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t,n=(this.promise=new Promise(function(e){t=e}),this);this.promise.then(e=>{if(n._listeners){let t=n._listeners.length;for(;0<t--;)n._listeners[t](e);n._listeners=null}}),this.promise.then=e=>{let t;return(e=new Promise(e=>{n.subscribe(e),t=e}).then(e)).cancel=function(){n.unsubscribe(t)},e},e(function(e,o,i){n.reason||(n.reason=new ui(e,o,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){this._listeners&&-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}});let qi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qi).forEach(([e,t])=>{qi[t]=e});let Xi=function e(t){var n=new Wi(t),o=Yn(Wi.prototype.request,n);return $o.extend(o,Wi.prototype,n,{allOwnKeys:!0}),$o.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(bi(t,n))},o}(ti),{Axios:Qi,AxiosError:Zi,CanceledError:Ki,isCancel:Ji,CancelToken:er,VERSION:tr,all:nr,Cancel:or,isAxiosError:ir,spread:rr,toFormData:sr,AxiosHeaders:ar,HttpStatusCode:lr,formToJSON:cr,getAdapter:ur,mergeConfig:hr}=(Xi.Axios=Wi,Xi.CanceledError=ui,Xi.CancelToken=Gi,Xi.isCancel=ci,Xi.VERSION=ji,Xi.toFormData=Ho,Xi.AxiosError=Ao,Xi.Cancel=Xi.CanceledError,Xi.all=function(e){return Promise.all(e)},Xi.spread=function(e){return function(t){return e.apply(null,t)}},Xi.isAxiosError=function(e){return $o.isObject(e)&&!0===e.isAxiosError},Xi.mergeConfig=bi,Xi.AxiosHeaders=ai,Xi.formToJSON=e=>ei($o.isHTMLForm(e)?new FormData(e):e),Xi.getAdapter=Fi,Xi.HttpStatusCode=qi,Xi.default=Xi);var dr,pr={};function fr(){function e(e,t){return void 0===t&&(t=1),"rgba("+[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16),t].join(",")+")"}function t(t,n,o){switch(o){case"webvtt.font.color":case"webvtt.font.opacity":var i=Services.prefs.getCharPref("webvtt.font.color"),r=Services.prefs.getIntPref("webvtt.font.opacity")/100;g.fontSet=e(i,r);break;case"webvtt.font.scale":m=Services.prefs.getIntPref("webvtt.font.scale")/100;break;case"webvtt.bg.color":case"webvtt.bg.opacity":i=Services.prefs.getCharPref("webvtt.bg.color"),r=Services.prefs.getIntPref("webvtt.bg.opacity")/100,g.backgroundSet=e(i,r);break;case"webvtt.edge.color":case"webvtt.edge.type":i=Services.prefs.getIntPref("webvtt.edge.type"),r=Services.prefs.getCharPref("webvtt.edge.color"),g.edgeSet=["","0px 0px ","4px 4px 4px ","-2px -2px ","2px 2px "][i]+e(r)}}function n(){}function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function i(e){function t(e,t,n,o){return 3600*(0|e)+60*(0|t)+(0|n)+(0|o)/1e3}return(e=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/))?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function r(){this.values=v(null)}function s(e,t,n,o){var i,r,s=o?e.split(o):[e];for(i in s)"string"==typeof s[i]&&2===(r=s[i].split(n)).length&&t(r[0],r[1])}function a(e,t){function n(e){return _[e]}for(var o,r,s,a,l,c,u,h=e.document.createElement("div"),d=h,p=[];null!==(u=void 0,u=t?(u=(u=t.match(/^([^<]*)(<[^>]+>?)?/))[1]||u[2],t=t.substr(u.length),u):null);)"<"===u[0]?"/"===u[1]?p.length&&p[p.length-1]===u.substr(2).replace(">","")&&(p.pop(),d=d.parentNode):(s=i(u.substr(1,u.length-2)))?(o=e.document.createProcessingInstruction("timestamp",s),d.appendChild(o)):(r=u.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(s=r[1],a=r[3],c=l=void 0,o=(c=b[s])?((l=e.document.createElement(c)).localName=c,(c=y[s])&&a&&(l[c]=a.trim()),l):null)&&(s=d,w[(c=o).localName]&&w[c.localName]!==s.localName||(r[2]&&(o.className=r[2].substr(1).replace("."," ")),p.push(r[1]),d.appendChild(o),d=o)):d.appendChild(e.document.createTextNode((e=>{for(;r=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(r[0],n);return e})(u)));return h}function l(e){var t=[],n="";if(e&&e.childNodes)for(i(t,e);n=function e(t){var n,o,r;return t&&t.length?(o=(n=t.pop()).textContent||n.innerText)?(r=o.match(/^.*(\n|\r)/))?r[t.length=0]:o:"ruby"===n.tagName?e(t):n.childNodes?(i(t,n),e(t)):void 0:null}(t);)for(var o=0;o<n.length;o++)if((e=>{for(var t=0;t<x.length;t++){var n=x[t];if(e>=n[0]&&e<=n[1])return 1}})(n.charCodeAt(o)))return"rtl";return"ltr";function i(e,t){for(var n=t.childNodes.length-1;0<=n;n--)e.push(t.childNodes[n])}}function c(){}function u(e,t,n){var o="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",r="rgba(0, 0, 0, 0.8)",s="",u=(i=(void 0!==g&&(i=g.fontSet,r=g.backgroundSet,s=g.edgeSet),o&&(i="rgb(255, 255, 255)",r="rgb(0, 0, 0)"),c.call(this),this.cue=t,this.cueDiv=a(e,t.text),{color:i,backgroundColor:r,textShadow:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"}),o||(i.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",i.unicodeBidi="plaintext"),this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},o||(i.direction=l(this.cueDiv),i.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(i),this.div.appendChild(this.cueDiv),0);switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function h(e){var t,n,o,i,r="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent);e.div&&(t=e.div.offsetHeight,n=e.div.offsetWidth,o=e.div.offsetTop,i=(i=(i=e.div.childNodes)&&i[0])&&i.getClientRects&&i.getClientRects(),e=e.div.getBoundingClientRect(),i=i?Math.max(i[0]&&i[0].height||0,e.height/i.length):0),this.left=e.left,this.right=e.right,this.top=e.top||o,this.height=e.height||t,this.bottom=e.bottom||o+(e.height||t),this.width=e.width||n,this.lineHeight=void 0!==i?i:e.lineHeight,r&&!this.lineHeight&&(this.lineHeight=13)}function d(e,t,n,o){var i,r=new h(t),s=t.cue,a=(e=>{if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,o=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&o++;return-1*++o})(s),l=[];if(s.snapToLines){switch(s.vertical){case"":l=["+y","-y"],i="height";break;case"rl":l=["+x","-x"],i="width";break;case"lr":l=["-x","+x"],i="width"}var c=r.lineHeight,u=c*Math.round(a),d=n[i]+c,p=l[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),a<0&&(u+=""===s.vertical?n.height:n.width,l=l.reverse()),r.move(p,u)}else{var f=r.lineHeight/n.height*100;switch(s.lineAlign){case"middle":a-=f/2;break;case"end":a-=f}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}l=["+y","-x","+x","-y"],r=new h(t)}d=((e,t)=>{for(var i,r=new h(e),s=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(n,t[a])||e.within(n)&&e.overlapsAny(o);)e.move(t[a]);if(e.within(n))return e;var l=e.intersectPercentage(n);l<s&&(i=new h(e),s=l),e=new h(r)}return i||r})(r,l),t.move(d.toCSSCompatValues(n))}function p(){}var f,g,m,v,_,b,y,w,x;return dr||(f=pr,m=dr=1,"undefined"!=typeof Services&&(g={},["webvtt.font.color","webvtt.font.opacity","webvtt.font.scale","webvtt.bg.color","webvtt.bg.opacity","webvtt.edge.color","webvtt.edge.type"].forEach(function(e){t(0,0,e),Services.prefs.addObserver(e,t,!1)})),v=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=e,new n},((o.prototype=v(Error.prototype)).constructor=o).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},r.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var o=0;o<n.length;++o)if(t===n[o]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}},_={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},b={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},y={v:"title",lang:"lang"},w={rt:"ruby"},x=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]],c.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},c.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(u.prototype=v(c.prototype)).constructor=u,h.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},h.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},h.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},h.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},h.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},h.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},h.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},h.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,o=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||o,height:e.height||t,bottom:e.bottom||o+(e.height||t),width:e.width||n}},p.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},p.convertCueToDOMTree=function(e,t){return e&&t?a(e,t):null},p.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var o=e.document.createElement("div");if(o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin="1.5%",n.appendChild(o),(e=>{for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1})(t))for(var i,r,s=[],a=h.getSimpleBoxPosition(o),l={font:Math.round(.05*a.height*100)/100*m+"px sans-serif"},c=0;c<t.length;c++)i=new u(e,r=t[c],l),o.appendChild(i.div),d(0,i,a,s),r.displayState=i.div,s.push(h.getSimpleBoxPosition(i));else for(var p=0;p<t.length;p++)o.appendChild(t[p].displayState)},(p.Parser=function(e,t){this.window=e,this.state="INITIAL",this.buffer="",this.decoder=t||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof o))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var o=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),o}function a(e){s(e,function(e,n){var o;"Region"===e&&(e=n,o=new r,s(e,function(e,t){switch(e){case"id":o.set(e,t);break;case"width":o.percent(e,t);break;case"lines":o.integer(e,t);break;case"regionanchor":case"viewportanchor":var n,i=t.split(",");2===i.length&&((n=new r).percent("x",i[0]),n.percent("y",i[1]),n.has("x")&&n.has("y"))&&(o.set(e+"X",n.get("x")),o.set(e+"Y",n.get("y")));break;case"scroll":o.alt(e,t,["up"])}},/=/,/\s/),o.has("id"))&&((e=new t.window.VTTRegion).width=o.get("width",100),e.lines=o.get("lines",3),e.regionAnchorX=o.get("regionanchorX",0),e.regionAnchorY=o.get("regionanchorY",100),e.viewportAnchorX=o.get("viewportanchorX",0),e.viewportAnchorY=o.get("viewportanchorY",100),e.scroll=o.get("scroll",""),t.onregion&&t.onregion(e),t.regionList.push({id:o.get("id"),region:e}))},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var l,c=(l=n()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var u=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(u?u=!1:l=n(),t.state){case"HEADER":/:/.test(l)?a(l):l||(t.state="ID");continue;case"NOTE":l||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(l)){t.state="NOTE";break}if(!l)continue;if(t.cue=new t.window.VTTCue(0,0,""),t.state="CUE",-1===l.indexOf("--\x3e")){t.cue.id=l;continue}case"CUE":try{((e,t,n)=>{var a,l,c=e;function u(){var t=i(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+c);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function h(){e=e.replace(/^\s+/,"")}if(h(),t.startTime=u(),h(),"--\x3e"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+c);e=e.substr(3),h(),t.endTime=u(),h(),a=e,l=new r,s(a,function(e,t){switch(e){case"region":for(var o=n.length-1;0<=o;o--)if(n[o].id===t){l.set(e,n[o].region);break}break;case"vertical":l.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),r=i[0];l.integer(e,r),l.percent(e,r)&&l.set("snapToLines",!1),l.alt(e,r,["auto"]),2===i.length&&l.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=t.split(","),l.percent(e,i[0]),2===i.length&&l.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":l.percent(e,t);break;case"align":l.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),t.region=l.get("region",null),t.vertical=l.get("vertical",""),t.line=l.get("line","auto"),t.lineAlign=l.get("lineAlign","start"),t.snapToLines=l.get("snapToLines",!0),t.size=l.get("size",100),t.align=l.get("align","middle"),t.position=l.get("position","auto"),t.positionAlign=l.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)})(l,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==l.indexOf("--\x3e");if(!l||h&&(u=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=l;continue;case"BADCUE":l||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),!e.cue&&"HEADER"!==e.state||(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new o(o.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},f.WebVTT=p),pr}var gr,mr={exports:{}},vr={};var _r,br=mr.exports;function yr(){var e;return _r||(_r=1,mr.exports&&(br.VTTCue=br.VTTCue||function(){var e,t,n,o;return gr||(gr=1,e=vr,t="auto",n={"":!0,lr:!0,rl:!0},o={start:!0,middle:!0,end:!0,left:!0,right:!0},s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.VTTCue=e.VTTCue||s),vr;function i(e){return"string"==typeof e&&!!o[e.toLowerCase()]&&e.toLowerCase()}function r(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)e[n]=o[n]}return e}function s(e,o,s){var a=this,l=/MSIE\s8\.0/.test(navigator.userAgent),c={},u=(l?a=document.createElement("custom"):c.enumerable=!0,a.hasBeenReset=!1,""),h=!1,d=e,p=o,f=s,g=null,m="",v=!0,_="auto",b="start",y=50,w="middle",x=50,k="middle";if(Object.defineProperty(a,"id",r({},c,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(a,"pauseOnExit",r({},c,{get:function(){return h},set:function(e){h=!!e}})),Object.defineProperty(a,"startTime",r({},c,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",r({},c,{get:function(){return p},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",r({},c,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",r({},c,{get:function(){return g},set:function(e){g=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",r({},c,{get:function(){return m},set:function(e){if(!1===(e="string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()))throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",r({},c,{get:function(){return v},set:function(e){v=!!e,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",r({},c,{get:function(){return _},set:function(e){if("number"!=typeof e&&e!==t)throw new SyntaxError("An invalid number or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",r({},c,{get:function(){return b},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",r({},c,{get:function(){return y},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",r({},c,{get:function(){return w},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",r({},c,{get:function(){return x},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",r({},c,{get:function(){return k},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");k=e,this.hasBeenReset=!0}})),a.displayState=void 0,l)return a}}().VTTCue),(e=br).VTTCue.prototype.toJSON=function(){var e={},t=this;return Object.keys(this).forEach(function(n){"getCueAsHTML"!==n&&"hasBeenReset"!==n&&"displayState"!==n&&(e[n]=t[n])}),e},e.VTTCue.create=function(t){if(!t.hasOwnProperty("startTime")||!t.hasOwnProperty("endTime")||!t.hasOwnProperty("text"))throw new Error("You must at least have start time, end time, and text.");var n,o=new e.VTTCue(t.startTime,t.endTime,t.text);for(n in t)o.hasOwnProperty(n)&&(o[n]=t[n]);return o},e.VTTCue.fromJSON=function(e){return this.create(JSON.parse(e))}),mr.exports}var wr,xr={exports:{}},kr={};var Sr,Or,Er,Tr=xr.exports;function Pr(){var e;return Sr||(Sr=1,xr.exports&&(Tr.VTTRegion=function(){var e;return wr||(wr=1,e={"":!0,up:!0},kr.VTTRegion=kr.VTTRegion||function(){var n=100,o=3,i=0,r=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(e){if(!t(e))throw new Error("Width must be between 0 and 100.");n=e}},lines:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");o=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!t(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!t(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!t(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!t(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(t){if(!1===(t="string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()))throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}),kr;function t(e){return"number"==typeof e&&0<=e&&e<=100}}().VTTRegion),(e=Tr).VTTRegion.create=function(t){var n,o=new e.VTTRegion;for(n in t)o.hasOwnProperty(n)&&(o[n]=t[n]);return o},e.VTTRegion.fromJSON=function(e){return this.create(JSON.parse(e))}),xr.exports}var Cr=(Er||(Er=1,Or={WebVTT:fr().WebVTT,VTTCue:yr().VTTCue,VTTRegion:Pr().VTTRegion}),Or),Nr=function(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){var o;"default"===n||n in e||(o=Object.getOwnPropertyDescriptor(t,n),Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}}))})}),Object.freeze(e)}({__proto__:null,default:n(Cr)},[Cr]);let $r=Nr.WebVTT;class Ar{constructor(e){this.vOffset=0,this.hOffset=0,this.call=e=>this.krpano.call(e),this.get=e=>this.krpano.get(e),this.set=(e,t)=>this.krpano.set(e,t),this.screentosphere=(e,t)=>this.krpano.screentosphere(e,t),this.spheretoscreen=(e,t)=>this.krpano.spheretoscreen(e,t),this.spheretospace=(e,t,n=1e3)=>{var o=Date.now();return{x:e=(this.krpano.set("sphere_h_"+o,e),this.krpano.set("sphere_v_"+o,t),this.krpano.set("sphere_d_"+o,n),this.krpano.call(`spheretospace('sphere_h_${o}', 'sphere_v_${o}', 'sphere_d_${o}', 'space_x_${o}', 'space_y_${o}', 'space_z_${o}')`),this.krpano.get("space_x_"+o)),y:this.krpano.get("space_y_"+o),z:this.krpano.get("space_z_"+o)}},this.spacetosphere=(e,t,n,o=1e3)=>{var i=Date.now();return{ath:e=(this.krpano.set("space_x_"+i,e),this.krpano.set("space_y_"+i,t),this.krpano.set("space_z_"+i,n),this.krpano.set("sphere_d_"+i,o),this.krpano.call(`spacetosphere('space_x_${i}', 'space_y_${i}', 'space_z_${i}', 'sphere_h_${i}', 'sphere_v_${i}', 'sphere_d_${i}')`),this.krpano.get("sphere_h_"+i)),atv:this.krpano.get("sphere_v_"+i)}},this.updateOffset=(e,t,n=!1)=>{var o,i;n&&(({hlookat:n,vlookat:o,fov:i}=this.get("view")),this.call(`delayedcall(0.2, lookto(${n+(e||-this.hOffset)},${o+(t||-this.vOffset)}, ${i}, smooth(720,-720,720), true, true););`)),this.hOffset=e||0,this.vOffset=t||0},this.getOffsets=()=>({hOffset:this.hOffset,vOffset:this.vOffset}),this.getView=()=>{var{hlookat:e,vlookat:t,fov:n,hfov:o,vfov:i}=this.get("view");return{hlookat:e-this.hOffset,vlookat:t-this.vOffset,fov:n,hfov:o,vfov:i}},this.getOriginalView=()=>{var{hlookat:e,vlookat:t}=this.get("view");return{hlookat:e,vlookat:t}},this.lookto=(e,t)=>{var n,o;on(e)&&on(t)&&!Number.isNaN(e)&&!Number.isNaN(t)&&(({hOffset:n=0,vOffset:o=0}=this.getOffsets()),this.krpano.call(`lookto(${e+n},${t+o});`))},this.krpano=e,this.onUpdateOffsets=new Xt.Signal,this.updateOffset=this.updateOffset.bind(this),this.onUpdateOffsets.add(this.updateOffset)}}class Mr{constructor(e){this.props=e,this.krpano=e.krpano,this.type=e.type||"image",this.url=e.url||"",this.keep=e.keep||!1,this.parent=e.parent||null,this.cursor=e.cursor||"poiter",this.maskchildren=e.maskchildren||!1,this.scalechildren=e.scalechildren||!1,this.zorder=e.zorder||void 0,this.align=e.align||"lefttop",this.edge=e.edge||this.align,this.x=e.x||null,this.y=e.y||null,this.rotate=e.rotate||0,this.width=e.width,this.height=e.height,this.scale=e.scale||1,this.alpha=e.alpha||1,this.crop=e.crop||null,this.onovercrop=e.onovercrop||null,this.ondowncrop=e.ondowncrop||null,this.bgcolor=e.bgcolor||0,this.bgalpha=e.bgalpha||0,this.bgborder=e.bgborder||0,this.bgroundedge=e.bgroundedge||0,this.bgshadow=e.bgshadow||null,this.bgcapture=e.bgcapture||!1,this.signals=e.signals,this.enabled=e.enabled||!1}}class Lr extends Mr{constructor(e){super(e),this.name=de,this.load=e=>{location&&"https:"!==location.protocol?(console.warn("HTTPS is required to use gyroscope plugin!"),e&&e(!1),this.signals.onLoadedPlugin.dispatch(this.name,!1)):(this.krpano.call(`\n addplugin(${this.name});\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].enabled, ${this.enabled});\n set(plugin[${this.name}].keep, true);\n set(plugin[${this.name}].devices, html5);\n set(plugin[${this.name}].softstart, 1);\n `),this.krpano.set(`plugin[${this.name}].onavailable`,()=>{e&&e(!0),this.signals.onLoadedPlugin.dispatch(this.name,!0)}),this.krpano.set(`plugin[${this.name}].onunavailable`,()=>{e&&e(!1),this.signals.onLoadedPlugin.dispatch(this.name,!1)}))},this.toggle=e=>{let t;return t=e||!this.krpano.get(`plugin[${this.name}].enabled`),this.krpano.call(`set(plugin[${this.name}].enabled, ${t})`),this.enabled=t},this.getEnabled=()=>this.enabled,this.destroy=()=>{},this.url=we.GYRO2}}class Dr extends Mr{constructor(e){super(e),this.wrapLayerId="",this.heading=0,this.headingoffset=90,this.fillcolor="0xffffff",this.fillalpha=.5,this.linewidth=0,this.linecolor="0xffffff",this.linealpha=.3,this.invert=!1,this.wrapLayer="",this.load=e=>{this.krpano.call(`\n addlayer(${this.wrapLayer});\n set(layer[${this.wrapLayer}].keep, ${this.keep});\n set(layer[${this.wrapLayer}].width, ${2*(this.width||0)});\n set(layer[${this.wrapLayer}].height, ${2*(this.height||0)});\n set(layer[${this.wrapLayer}].x, 0);\n set(layer[${this.wrapLayer}].y, 0);\n set(layer[${this.wrapLayer}].renderer, css3d);\n set(layer[${this.wrapLayer}].bgcapture, true);\n set(layer[${this.wrapLayer}].type, container);\n set(layer[${this.wrapLayer}].sprite.id, ${this.wrapLayerId});\n `),this.krpano.call(`\n addplugin(${this.name});\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].align, lefttop);\n set(plugin[${this.name}].edge, center);\n set(plugin[${this.name}].x, ${this.width});\n set(plugin[${this.name}].y, ${this.height});\n set(plugin[${this.name}].keep, ${this.keep});\n set(plugin[${this.name}].scale, ${this.scale});\n set(plugin[${this.name}].heading, ${this.heading});\n set(plugin[${this.name}].headingoffset, ${this.headingoffset});\n set(plugin[${this.name}].fillcolor, ${this.fillcolor});\n set(plugin[${this.name}].fillalpha, ${this.fillalpha});\n set(plugin[${this.name}].linewidth, ${this.linewidth});\n set(plugin[${this.name}].linecolor, ${this.linecolor});\n set(plugin[${this.name}].linealpha, ${this.linealpha});\n set(plugin[${this.name}].invert, ${this.invert});\n set(plugin[${this.name}].parent, "layer[${this.wrapLayer}]");\n `),e&&setTimeout(()=>{e()},500)},this.destroy=()=>{this.krpano.call(`removelayer(${this.wrapLayer}, true)`)},this.name=pe,this.wrapLayer="layer_"+this.name,this.wrapLayerId=`layer_${this.name}_wrapper`,this.heading=e.heading||0,this.headingoffset=e.headingoffset||0,this.fillcolor=e.fillcolor||"0xffffff",this.fillalpha=e.fillalpha||.5,this.linewidth=e.linewidth||0,this.linecolor=e.linecolor||"0xffffff",this.linealpha=e.linealpha||.3,this.invert=e.invert||!1,this.width=e.width||6,this.height=e.height||6,this.scale=e.scale||.25,this.updateHeading=this.updateHeading.bind(this)}updateHeading(e){this.heading=e,this.krpano.get(`plugin[${this.name}]`)&&this.krpano.call(`set(plugin[${this.name}].heading, ${this.heading});`)}}let Ir=class extends Mr{constructor(e){super(e),this.name=fe,this.timeout=null,this.url=we.SOUND_INTERFACE}load(e){this.krpano.call(`addplugin(${this.name});`),this.timeout=setInterval(()=>{var t=this.krpano.get(`plugin[${this.name}]`);t&&(this.timeout&&(clearInterval(this.timeout),this.timeout=null),t.onloaded=()=>{e&&e()},this.krpano.call(`\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].volume, 1.0);\n set(plugin[${this.name}].mute, false);\n set(plugin[${this.name}].panningmodel, simple);\n set(plugin[${this.name}].worldscale, 1.0);\n set(plugin[${this.name}].autopause, false);\n set(plugin[${this.name}].autounlock, true);\n `))},1e3/60)}destroy(){}};class Rr{constructor(e){this.language="vi",this.isMobileDevice=!1,this.isLookAt=!0,this.spheretoscreen=()=>this.krpano.spheretoscreen(this.ath,this.atv),this.props=e,this.icon=e.icon,this.signals=e.signals,this.krpano=e.krpano,this.isMobileDevice=an(this.krpano),this.metadata=e.metadata,this.id=e.id,this.code=e.code,this.focusingCode=(e=>e+"_focusing")(this.code),this.hoverCode=un(this.code),this.type=e.type,this.name=e.name||"hs"+(Date.now()+Math.random()|0),this.url=e.url||ke.MOVING,this.ath=e.ath||0,this.atv=e.atv||0,this.height=e.height||0,this.width=e.width||0,this.alpha=e.alpha||1,this.scale=e.scale||1,this.rotate=e.rotate||0,this.rx=e.rx||0,this.ry=e.ry||0,this.rz=e.rz||0,this.distorted=void 0!==e.distorted&&e.distorted,this.polyline=void 0!==e.polyline&&e.polyline,this.icon=e.icon,this.bgPoi=e.bgPoi,this.sceneCode=e.sceneCode,this.coordsOffset=e.coordsOffset||Qe.NONE,this.popupSize=e.popupSize||"1",this.laserRange=e.laserRange||Ie,this.position=e.position||Fe,this.overviewPosition=e.overviewPosition||Re.NONE,this.enabled=!0,this.visible=!0,this.visibleProp=!0,this.create=this.create.bind(this),this.onClick=this.onClick.bind(this),this.onOver=this.onOver.bind(this),this.onOut=this.onOut.bind(this),this.onHover=this.onHover.bind(this),this.getCenter=this.getCenter.bind(this),this.toggleVisibility=this.toggleVisibility.bind(this),this.isLabel=this.isLabel.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.getLookAtPosition=this.getLookAtPosition.bind(this)}getLookAtPosition(){return{ath:this.ath,atv:this.atv}}getLookAtPopupPosition(){return xn(this.krpano,this)}lookAt(){var{ath:e,atv:t}=this.getLookAtPosition(),{hOffset:n,vOffset:o}=this.krpano.getOffsets();this.krpano.call(`delayedcall(0.2, lookto(${e+n},${t+o}););`)}toggleVisibility(e,t=!1){t&&(this.visible=e)!==this.visibleProp&&(this.visibleProp=e),this.krpano.call(`if(hotspot[${this.code}]!=null,set(hotspot[${this.code}].visible, ${e});,);`)}onHover(){}create(e){this.krpano.call(`addhotspot(${this.code});`);var t=ln(this.props);(null!=t&&t.endsWith(".gif")||null!=t&&t.endsWith(".GIF"))&&this.krpano.call(`set(hotspot[${this.code}].renderer, css3d);`),this.krpano.call(`set(hotspot[${this.code}].url, ${Cn(t)});`),this.krpano.call(`set(hotspot[${this.code}].ath,${this.ath});`),this.krpano.call(`set(hotspot[${this.code}].atv,${this.atv});`),this.krpano.call(`set(hotspot[${this.code}].alpha,${this.alpha});`),this.krpano.call(`set(hotspot[${this.code}].scale,${this.scale});`),this.krpano.call(`set(hotspot[${this.code}].rotate,${this.rotate});`),this.krpano.call(`set(hotspot[${this.code}].width,${this.width});`),this.krpano.call(`set(hotspot[${this.code}].height,${this.height});`),this.krpano.call(`set(hotspot[${this.code}].rx,${this.rx});`),this.krpano.call(`set(hotspot[${this.code}].ry,${this.ry});`),this.krpano.call(`set(hotspot[${this.code}].rz,${this.rz});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`);let n=dn(this.props);this.krpano.call(`set(hotspot[${this.code}].polyline,${this.polyline});`),this.krpano.set(`hotspot[${this.code}].zorder`,P.STANDARD),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{n&&n.imageStrip&&this.krpano.call(Hn(this.props)),this.krpano.call(`set(hotspot[${this.code}].visible,${this.visible});`),this.addEvents(),e&&e(this)})}createFocusingHotspot(){this.krpano.call(`\n addhotspot(${this.focusingCode});\n set(hotspot[${this.focusingCode}].url, ${ke.FOCUSING_IMAGE_STRIP});\n set(hotspot[${this.focusingCode}].bgalpha, 0);\n set(hotspot[${this.focusingCode}].handcursor, false);\n set(hotspot[${this.focusingCode}].width, 36);\n set(hotspot[${this.focusingCode}].height, 36);\n set(hotspot[${this.focusingCode}].visible, false);\n set(hotspot[${this.focusingCode}].rx, 0);\n set(hotspot[${this.focusingCode}].ry, 0);\n set(hotspot[${this.focusingCode}].rz, 0);\n set(hotspot[${this.focusingCode}].rotate, 0);\n set(hotspot[${this.focusingCode}].enabled, true);\n set(hotspot[${this.focusingCode}].zorder, ${P.STANDARD});\n set(hotspot[${this.focusingCode}].ath, '${this.ath}');\n set(hotspot[${this.focusingCode}].atv, '${this.atv}');\n `),this.krpano.set(`hotspot[${this.focusingCode}].onloaded`,()=>{this.krpano.call(((e,t,n,o)=>`\n def(imageWidth_${e}, integer, get(hotspot[${e}].imagewidth));\n def(imageHeight_${e}, integer, get(hotspot[${e}].imageheight));\n def(frameWidth_${e}, integer, ${n});\n def(frameHeight_${e}, integer, ${o});\n def(frameRate_${e}, integer, ${t});\n def(frame_${e}, integer, 0);\n\n calc(xFrames_${e}, (imageWidth_${e} / frameWidth_${e}) BOR 0);\n calc(frames_${e}, xFrames_${e} * ((imageHeight_${e} / frameHeight_${e}) BOR 0));\n calc(hotspot[${e}].crop, '0|0|' + frameWidth_${e} + '|' + frameHeight_${e});\n \n setinterval(crop_anim_${e}, calc(1.0 / frameRate_${e}),\n if(hotspot[${e}].loaded,\n inc(frame_${e});\n if(frame_${e} GE frames_${e}, set(frame_${e}, 0););\n mod(xPos_${e}, frame_${e}, xFrames_${e});\n div(yPos_${e}, frame_${e}, xFrames_${e});\n Math.floor(yPos_${e});\n mul(xPos_${e}, frameWidth_${e});\n mul(yPos_${e}, frameHeight_${e});\n calc(\n hotspot[${e}].crop,\n xPos_${e} + '|' + yPos_${e} + '|' + frameWidth_${e} + '|' + frameHeight_${e}\n );\n ,\n clearinterval(crop_anim_${e});\n );\n );\n`)(this.focusingCode,60,72,72))})}activeFocusingHotspot(e){this.krpano.call(`\n set(hotspot[${this.focusingCode}].visible, ${e});\n `)}activeOverview(e){kn(this)&&(this.activeFocusingHotspot(e),this.krpano.call(`\n tween(hotspot[${this.code}].alpha, ${e?0:1}, 0.2);\n set(hotspot[${this.hoverCode}].visible, ${e});\n `))}getHoverHeight(){let e=this.height;e||(e=(t=this.krpano.get(`hotspot[${this.code}]`)).imageheight);var t=this.bgPoi?this.bgPoi.padding:0;return((e||0)+t)*(this.scale||1)}getCenter(){var{x:e,y:t,z:n}=this.spheretoscreen();return{x:e,y:t-this.getHoverHeight()/2,z:n}}isLabel(){return!(this.type===ue.PHOTO||this.type===ue.VIDEO||this.type===ue.MOVING||this.type===ue.LENSFLARE||this.type===ue.NADIR_LOGO)}hasDetailModal(){return[ue.POLYGON,ue.ITEM_INFO,ue.PROMOTION,ue.GALLERY,ue.VIDEO,ue.MOVING].includes(this.type)}isHideable(){return!0}addEvents(){this.isMobileDevice?this.addMobileEvents():this.addDesktopEvents()}addDesktopEvents(){this.krpano.set(`hotspot[${this.code}].onclick`,this.handleOnClick),this.krpano.set(`hotspot[${this.code}].onover`,this.onOver),this.krpano.set(`hotspot[${this.code}].onout`,this.onOut),this.krpano.set(`hotspot[${this.code}].onhover`,this.onHover),this.krpano.set(`hotspot[${this.code}].onup`,()=>{this.signals.poiMouseUp.dispatch()})}addMobileEvents(){this.krpano.set(`hotspot[${this.code}].onclick`,this.handleOnClick),this.krpano.set(`hotspot[${this.code}].onup`,()=>{this.signals.poiMouseUp.dispatch()})}onClick(){this.isLookAt&&this.lookAt(),this.signals.poiClicked.dispatch(this)}onOver(){this.signals.toggleFloorPoi.dispatch(!1)}onOut(){this.signals.toggleFloorPoi.dispatch(!0)}handleOnClick(){this.signals.stopScenario.dispatch(),this.onClick()}}class Fr extends Rr{constructor(e){super(e),this.info="",this.info=e.info,this.url=e.url||ke.INFO,this.type=ue.INFO,this.hovering=!1,this.hoverCode=un(this.code)}onClick(){super.onClick(),this.isMobileDevice&&(this.hovering?this.hide():(this.signals.toggleLabels.dispatch(this.hovering),this.show()))}onOver(){super.onOver()}onOut(){super.onOut(),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.hovering!==e&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),this.hovering=e)}show(){this.toggleHover(!0)}hide(){this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}getContentHover(){var e,t=(e=>!!e&&!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e))(this.info)&&(e=>!!e&&null!=e.match(/\.(jpeg|jpg|gif|png)$/))(this.info);let n="";return t?n=`[img class="box-wrapper__content-thumbnail" src="${this.info}" /]`:this.info&&(e=this.info.split("\n").reduce((e,t)=>e+`[div class="content__name"]${t}[/div]`,""),n=`[div class="box-wrapper__content"]${e}[/div]`),`\n [div class="cvtv-product-info-poi__wrapper"]\n [div class="product-info-poi__box-wrapper product-info-poi__box-wrapper--vertical ${t?"":"product-info-poi__box-wrapper--text"}"]\n ${n}\n [/div]\n [div class="product-info-poi__arrow-down"][/div]\n [/div]\n `}create(e){var t=this.getContentHover();Rn(this.krpano,this.props,t,!1),Un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)})}}class Hr extends Rr{constructor(e){var t;super(e),this.url=e.url||ke.PIN,this.type=ue.ITEM_INFO,this.hoverCode=un(this.code),this.hovering=!1,this.clickType=e.clickType,this.hoverType=e.hoverType,this.keepHover=!1,this.popupVisible=!1,this.keepPopupVisible=!1,this.focusType=e.focusType||ct,this.autoShow=e.autoShow||Me,this.itemInfo=e.itemInfo,this.itemInfoType=null==(t=this.itemInfo)?void 0:t.type,this.itemInfoCode=e.itemInfoCode||(null==(t=this.itemInfo)?void 0:t.code),this.isClickable=this.isClickable.bind(this),this.isHoverable=this.isHoverable.bind(this),this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.togglePopup=this.togglePopup.bind(this),this.hidePopup=this.hidePopup.bind(this),this.isProduct=this.isProduct.bind(this),this.getHoverContent=this.getHoverContent.bind(this)}getLookAtPosition(){var{h:e,v:t}=xn(this.krpano,this);return{ath:e,atv:t}}isProduct(){return this.itemInfo&&(this.itemInfo.type===it||this.itemInfo.type===at)}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.isClickable()&&(this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch(),this.itemInfo.type!==st)&&this.signals.stopScenario.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onClick(){if(super.onClick(),this.type===ue.ITEM_INFO){if(this.hoverType===Je)return this.isClickable()?(this.signals.poiClick.dispatch(this.props),void this.signals.poiOut.dispatch()):void 0;var e=!this.popupVisible;this.togglePopup(e),e&&(this.keepPopupVisible=!0,setTimeout(()=>{this.keepPopupVisible=!1},1e3))}}onOver(){this.isHoverable()&&(super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.HOVERING});`))}onOut(){this.isHoverable()&&(super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.STANDARD});`),this.krpano.get("device.desktop")&&this.hide(),this.signals.poiOut.dispatch())}onHover(){this.isHoverable()&&this.show()}toggleHover(e=!1){this.autoShow===Le&&this.togglePopup(e),this.autoShow===Me&&this.togglePopup(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e),e||this.togglePopup(e)}togglePopup(e=!1){this.popupVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){pn(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e))}hidePopup(){this.popupVisible&&!this.keepPopupVisible&&this.togglePopup(!1)}getHoverContent(){let e=this.hoverType;if(!e)switch(this.itemInfo.type){case rt:e=tt;break;case st:e=nt;break;case it:case at:e=et}var t={krpano:this.krpano,poi:this,lang:this.language};let n;switch(e){case nt:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return Ln(e,t,n)})(t);break;case et:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return Ln(e,t,n)})({krpano:this.krpano,poi:this,lang:this.language});break;case tt:case ot:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return Ln(e,t,n)})(t);break;default:console.warn(`Type[${e}] is not handled hover`)}return n}create(e){e&&(this.onDone=e),this.itemInfo&&(kn(this)&&this.createFocusingHotspot(),e=this.itemInfo,e=Object.assign(Object.assign({},this),{itemInfo:e,position:this.position,overviewPosition:this.overviewPosition}),(e=Ln(this.krpano,e,this.language))&&In(this.krpano,this.props,e),this.focusType===ut&&((e,t)=>{if(t.type===ue.ITEM_INFO){let o=(e=>e+"_focus")(t.code);var n=zn(t);Dn(e,o,n),e.set(`hotspot[${o}].atv`,t.atv),e.set(`hotspot[${o}].ath`,t.ath),e.set(`hotspot[${o}].onloaded`,()=>{var n=Number(e.get(`hotspot[${o}].width`));e.set(`hotspot[${o}].ox`,n/2-((t.width||0)*(t.scale||1)/2+11))})}})(this.krpano,this),Un(this.krpano,this.props).then(()=>{super.addEvents(),this.onDone&&this.onDone(this)}))}isHoverable(){return this.hoverType!==Je}isClickable(){return this.clickType!==Je}}var Vr,jr={};var zr,Ur,Br,Yr,Wr=function(){var e,n,o,i,r,s,a,l,c,u,h,d,p;return Vr||(Vr=1,e=jr,f.prototype={init:function(){var e=this||n;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||n;if(e=parseFloat(e),t.ctx||c(),void 0!==e&&0<=e&&e<=1){if(t._volume=e,!t._muted){t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var o=0;o<t._howls.length;o++)if(!t._howls[o]._webAudio)for(var i=t._howls[o]._getSoundIds(),r=0;r<i.length;r++){var s=t._howls[o]._soundById(i[r]);s&&s._node&&(s._node.volume=s._volume*e)}}return t}return t._volume},mute:function(e){var t=this||n;t.ctx||c(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,n.ctx.currentTime);for(var o=0;o<t._howls.length;o++)if(!t._howls[o]._webAudio)for(var i=t._howls[o]._getSoundIds(),r=0;r<i.length;r++){var s=t._howls[o]._soundById(i[r]);s&&s._node&&(s._node.muted=!!e||s._muted)}return t},stop:function(){for(var e=this||n,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||n,t=e._howls.length-1;0<=t;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,c()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||n;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e,t,o,i,r=this||n,s=null;try{s="undefined"!=typeof Audio?new Audio:null}catch(e){return r}return s&&"function"==typeof s.canPlayType&&(e=s.canPlayType("audio/mpeg;").replace(/^no$/,""),t=(t=(o=r._navigator?r._navigator.userAgent:"").match(/OPR\/(\d+)/g))&&parseInt(t[0].split("/")[1],10)<33,i=-1!==o.indexOf("Safari")&&-1===o.indexOf("Chrome"),o=o.match(/Version\/(.*?) /),i=i&&o&&parseInt(o[1],10)<15,r._codecs={mp3:!(t||!e&&!s.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!e,opus:!!s.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!s.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!s.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(s.canPlayType('audio/wav; codecs="1"')||s.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!s.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!s.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(s.canPlayType("audio/x-m4a;")||s.canPlayType("audio/m4a;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(s.canPlayType("audio/x-m4b;")||s.canPlayType("audio/m4b;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(s.canPlayType("audio/x-mp4;")||s.canPlayType("audio/mp4;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(i||!s.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(i||!s.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!s.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(s.canPlayType("audio/x-flac;")||s.canPlayType("audio/flac;")).replace(/^no$/,"")}),r},_unlockAudio:function(){var e,t=this||n;if(!t._audioUnlocked&&t.ctx)return t._audioUnlocked=!1,t.autoUnlock=!1,t._mobileUnloaded||44100===t.ctx.sampleRate||(t._mobileUnloaded=!0,t.unload()),t._scratchBuffer=t.ctx.createBuffer(1,1,22050),e=function(n){for(;t._html5AudioPool.length<t.html5PoolSize;)try{var o=new Audio;o._unlocked=!0,t._releaseHtml5Audio(o)}catch(n){t.noAudio=!0;break}for(var i=0;i<t._howls.length;i++)if(!t._howls[i]._webAudio)for(var r=t._howls[i]._getSoundIds(),s=0;s<r.length;s++){var a=t._howls[i]._soundById(r[s]);a&&a._node&&!a._node._unlocked&&(a._node._unlocked=!0,a._node.load())}t._autoResume();var l=t.ctx.createBufferSource();l.buffer=t._scratchBuffer,l.connect(t.ctx.destination),void 0===l.start?l.noteOn(0):l.start(0),"function"==typeof t.ctx.resume&&t.ctx.resume(),l.onended=function(){l.disconnect(0),t._audioUnlocked=!0,document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",e,!0),document.removeEventListener("click",e,!0),document.removeEventListener("keydown",e,!0);for(var n=0;n<t._howls.length;n++)t._howls[n]._emit("unlock")}},document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",e,!0),document.addEventListener("click",e,!0),document.addEventListener("keydown",e,!0),t},_obtainHtml5Audio:function(){var e=this||n;return e._html5AudioPool.length?e._html5AudioPool.pop():((e=(new Audio).play())&&"undefined"!=typeof Promise&&(e instanceof Promise||"function"==typeof e.then)&&e.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio)},_releaseHtml5Audio:function(e){var t=this||n;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&n.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var o=0;o<e._howls[t]._sounds.length;o++)if(!e._howls[t]._sounds[o]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){var t;e.autoSuspend&&(e._suspendTimer=null,e.state="suspending",t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())},e.ctx.suspend().then(t,t))},3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&n.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}},n=new f,g.prototype={init:function(e){var t=this;return n.ctx||c(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=n.usingWebAudio&&!t._html5,void 0!==n.ctx&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=this,t=null;if(n.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var i,s,a=0;a<e._src.length;a++){if(e._format&&e._format[a])i=e._format[a];else{if("string"!=typeof(s=e._src[a])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}i=(i=(i=/^data:audio\/([^;,]+);/i.exec(s))||/\.([^.]+)$/.exec(s.split("?",1)[0]))&&i[1].toLowerCase()}if(i||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),i&&n.codecs(i)){t=e._src[a];break}}if(t)return e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new o(e),e._webAudio&&r(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var o=this,i=null;if("number"==typeof e)i=e,e=null;else{if("string"==typeof e&&"loaded"===o._state&&!o._sprite[e])return null;if(void 0===e&&(e="__default",!o._playLock)){for(var r=0,s=0;s<o._sounds.length;s++)o._sounds[s]._paused&&!o._sounds[s]._ended&&(r++,i=o._sounds[s]._id);1===r?e=null:i=null}}var a,l=i?o._soundById(i):o._inactiveSound();if(!l)return null;if(i&&!e&&(e=l._sprite||"__default"),"loaded"!==o._state)return l._sprite=e,l._ended=!1,a=l._id,o._queue.push({event:"play",action:function(){o.play(a)}}),a;if(i&&!l._paused)return t||o._loadQueue("play"),l._id;o._webAudio&&n._autoResume();var c,u,h,d,p=Math.max(0,0<l._seek?l._seek:o._sprite[e][0]/1e3),f=Math.max(0,(o._sprite[e][0]+o._sprite[e][1])/1e3-p),g=1e3*f/Math.abs(l._rate),m=o._sprite[e][0]/1e3,v=(o._sprite[e][0]+o._sprite[e][1])/1e3,_=(l._sprite=e,l._ended=!1,function(){l._paused=!1,l._seek=p,l._start=m,l._stop=v,l._loop=!(!l._loop&&!o._sprite[e][2])});if(!(v<=p))return c=l._node,o._webAudio?(h=function(){o._playLock=!1,_(),o._refreshBuffer(l);var e=l._muted||o._muted?0:l._volume;c.gain.setValueAtTime(e,n.ctx.currentTime),l._playStart=n.ctx.currentTime,void 0===c.bufferSource.start?l._loop?c.bufferSource.noteGrainOn(0,p,86400):c.bufferSource.noteGrainOn(0,p,f):l._loop?c.bufferSource.start(0,p,86400):c.bufferSource.start(0,p,f),g!==1/0&&(o._endTimers[l._id]=setTimeout(o._ended.bind(o,l),g)),t||setTimeout(function(){o._emit("play",l._id),o._loadQueue()},0)},"running"===n.state&&"interrupted"!==n.ctx.state?h():(o._playLock=!0,o.once("resume",h),o._clearTimer(l._id))):(u=function(){c.currentTime=p,c.muted=l._muted||o._muted||n._muted||c.muted,c.volume=l._volume*n.volume(),c.playbackRate=l._rate;try{var i=c.play();i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(o._playLock=!0,_(),i.then(function(){o._playLock=!1,c._unlocked=!0,t?o._loadQueue():o._emit("play",l._id)}).catch(function(){o._playLock=!1,o._emit("playerror",l._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),l._ended=!0,l._paused=!0})):t||(o._playLock=!1,_(),o._emit("play",l._id)),c.playbackRate=l._rate,c.paused?o._emit("playerror",l._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."):"__default"!==e||l._loop?o._endTimers[l._id]=setTimeout(o._ended.bind(o,l),g):(o._endTimers[l._id]=function(){o._ended(l),c.removeEventListener("ended",o._endTimers[l._id],!1)},c.addEventListener("ended",o._endTimers[l._id],!1))}catch(i){o._emit("playerror",l._id,i)}},"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===c.src&&(c.src=o._src,c.load()),h=window&&window.ejecta||!c.readyState&&n._navigator.isCocoonJS,3<=c.readyState||h?u():(o._playLock=!0,o._state="loading",d=function(){o._state="loaded",u(),c.removeEventListener(n._canPlayEvent,d,!1)},c.addEventListener(n._canPlayEvent,d,!1),o._clearTimer(l._id))),l._id;o._ended(l)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)t._queue.push({event:"pause",action:function(){t.pause(e)}});else for(var n=t._getSoundIds(e),o=0;o<n.length;o++){t._clearTimer(n[o]);var i=t._soundById(n[o]);if(i&&!i._paused&&(i._seek=t.seek(n[o]),i._rateSeek=0,i._paused=!0,t._stopFade(n[o]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else isNaN(i._node.duration)&&i._node.duration!==1/0||i._node.pause();arguments[1]||t._emit("pause",i?i._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)n._queue.push({event:"stop",action:function(){n.stop(e)}});else for(var o=n._getSoundIds(e),i=0;i<o.length;i++){n._clearTimer(o[i]);var r=n._soundById(o[i]);r&&(r._seek=r._start||0,r._rateSeek=0,r._paused=!0,r._ended=!0,n._stopFade(o[i]),r._node&&(n._webAudio?r._node.bufferSource&&(void 0===r._node.bufferSource.stop?r._node.bufferSource.noteOff(0):r._node.bufferSource.stop(0),n._cleanBuffer(r._node)):isNaN(r._node.duration)&&r._node.duration!==1/0||(r._node.currentTime=r._start||0,r._node.pause(),r._node.duration===1/0&&n._clearSound(r._node))),t||n._emit("stop",r._id))}return n},mute:function(e,t){var o=this;if("loaded"!==o._state||o._playLock)o._queue.push({event:"mute",action:function(){o.mute(e,t)}});else{if(void 0===t){if("boolean"!=typeof e)return o._muted;o._muted=e}for(var i=o._getSoundIds(t),r=0;r<i.length;r++){var s=o._soundById(i[r]);s&&(s._muted=e,s._interval&&o._stopFade(s._id),o._webAudio&&s._node?s._node.gain.setValueAtTime(e?0:s._volume,n.ctx.currentTime):s._node&&(s._node.muted=!!n._muted||e),o._emit("mute",s._id))}}return o},volume:function(){var e,t,o=this,i=arguments;if(0===i.length)return o._volume;if(1===i.length||2===i.length&&void 0===i[1]?0<=o._getSoundIds().indexOf(i[0])?r=parseInt(i[0],10):e=parseFloat(i[0]):2<=i.length&&(e=parseFloat(i[0]),r=parseInt(i[1],10)),!(void 0!==e&&0<=e&&e<=1))return(t=r?o._soundById(r):o._sounds[0])?t._volume:0;if("loaded"!==o._state||o._playLock)o._queue.push({event:"volume",action:function(){o.volume.apply(o,i)}});else{void 0===r&&(o._volume=e);for(var r=o._getSoundIds(r),s=0;s<r.length;s++)(t=o._soundById(r[s]))&&(t._volume=e,i[2]||o._stopFade(r[s]),o._webAudio&&t._node&&!t._muted?t._node.gain.setValueAtTime(e,n.ctx.currentTime):t._node&&!t._muted&&(t._node.volume=e*n.volume()),o._emit("volume",t._id))}return o},fade:function(e,t,o,i){var r=this;if("loaded"!==r._state||r._playLock)r._queue.push({event:"fade",action:function(){r.fade(e,t,o,i)}});else{e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),o=parseFloat(o),r.volume(e,i);for(var s=r._getSoundIds(i),a=0;a<s.length;a++){var l,c,u=r._soundById(s[a]);u&&(i||r._stopFade(s[a]),r._webAudio&&!u._muted&&(c=(l=n.ctx.currentTime)+o/1e3,u._volume=e,u._node.gain.setValueAtTime(e,l),u._node.gain.linearRampToValueAtTime(t,c)),r._startFadeInterval(u,e,t,o,s[a],void 0===i))}}return r},_startFadeInterval:function(e,t,n,o,i,r){var s=this,a=t,l=n-t,c=Math.abs(l/.01),u=(c=Math.max(4,0<c?o/c:o),Date.now());e._fadeTo=n,e._interval=setInterval(function(){var i=(Date.now()-u)/o;u=Date.now(),a+=l*i,a=Math.round(100*a)/100,a=l<0?Math.max(n,a):Math.min(n,a),s._webAudio?e._volume=a:s.volume(a,e._id,!0),r&&(s._volume=a),(n<t&&a<=n||t<n&&n<=a)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,s.volume(n,e._id),s._emit("fade",e._id))},c)},_stopFade:function(e){var t=this._soundById(e);return t&&t._interval&&(this._webAudio&&t._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(t._interval),t._interval=null,this.volume(t._fadeTo,e),t._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,o=this,i=arguments;if(0===i.length)return o._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=o._soundById(parseInt(i[0],10)))&&n._loop;o._loop=e=i[0]}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var r=o._getSoundIds(t),s=0;s<r.length;s++)(n=o._soundById(r[s]))&&(n._loop=e,o._webAudio)&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e)&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,o.playing(r[s]))&&(o.pause(r[s],!0),o.play(r[s],!0));return o},rate:function(){var e,t=this,o=arguments;if(0===o.length?s=t._sounds[0]._id:1===o.length?0<=t._getSoundIds().indexOf(o[0])?s=parseInt(o[0],10):e=parseFloat(o[0]):2===o.length&&(e=parseFloat(o[0]),s=parseInt(o[1],10)),"number"!=typeof e)return((r=t._soundById(s))||t)._rate;if("loaded"!==t._state||t._playLock)t._queue.push({event:"rate",action:function(){t.rate.apply(t,o)}});else{void 0===s&&(t._rate=e);for(var i,r,s=t._getSoundIds(s),a=0;a<s.length;a++)(r=t._soundById(s[a]))&&(t.playing(s[a])&&(r._rateSeek=t.seek(s[a]),r._playStart=t._webAudio?n.ctx.currentTime:r._playStart),r._rate=e,t._webAudio&&r._node&&r._node.bufferSource?r._node.bufferSource.playbackRate.setValueAtTime(e,n.ctx.currentTime):r._node&&(r._node.playbackRate=e),i=t.seek(s[a]),i=1e3*((t._sprite[r._sprite][0]+t._sprite[r._sprite][1])/1e3-i)/Math.abs(r._rate),!t._endTimers[s[a]]&&r._paused||(t._clearTimer(s[a]),t._endTimers[s[a]]=setTimeout(t._ended.bind(t,r),i)),t._emit("rate",r._id))}return t},seek:function(){var e,t,o=this,i=arguments;if(0===i.length?o._sounds.length&&(t=o._sounds[0]._id):1===i.length?0<=o._getSoundIds().indexOf(i[0])?t=parseInt(i[0],10):o._sounds.length&&(t=o._sounds[0]._id,e=parseFloat(i[0])):2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),void 0===t)return 0;if("number"!=typeof e||"loaded"===o._state&&!o._playLock){var r,s,a,l,c,u=o._soundById(t);if(u){if(!("number"==typeof e&&0<=e))return o._webAudio?(l=o.playing(t)?n.ctx.currentTime-u._playStart:0,c=u._rateSeek?u._rateSeek-u._seek:0,u._seek+(c+l*Math.abs(u._rate))):u._node.currentTime;(r=o.playing(t))&&o.pause(t,!0),u._seek=e,u._ended=!1,o._clearTimer(t),o._webAudio||!u._node||isNaN(u._node.duration)||(u._node.currentTime=e),s=function(){r&&o.play(t,!0),o._emit("seek",t)},r&&!o._webAudio?(a=function(){o._playLock?setTimeout(a,0):s()},setTimeout(a,0)):s()}}else o._queue.push({event:"seek",action:function(){o.seek.apply(o,i)}});return o},playing:function(e){if("number"==typeof e)return!!(e=this._soundById(e))&&!e._paused;for(var t=0;t<this._sounds.length;t++)if(!this._sounds[t]._paused)return!0;return!1},duration:function(e){var t=this._duration;return(e=this._soundById(e))?this._sprite[e._sprite][1]/1e3:t},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,o=0;o<t.length;o++)t[o]._paused||e.stop(t[o]._id),e._webAudio||(e._clearSound(t[o]._node),t[o]._node.removeEventListener("error",t[o]._errorFn,!1),t[o]._node.removeEventListener(n._canPlayEvent,t[o]._loadFn,!1),t[o]._node.removeEventListener("ended",t[o]._endFn,!1),n._releaseHtml5Audio(t[o]._node)),delete t[o]._node,e._clearTimer(t[o]._id);var r=n._howls.indexOf(e),s=(0<=r&&n._howls.splice(r,1),!0);for(o=0;o<n._howls.length;o++)if(n._howls[o]._src===e._src||0<=e._src.indexOf(n._howls[o]._src)){s=!1;break}return i&&s&&delete i[e._src],n.noAudio=!1,e._state="unloaded",e._sounds=[],null},on:function(e,t,n,o){return e=this["_on"+e],"function"==typeof t&&e.push(o?{id:n,fn:t,once:o}:{id:n,fn:t}),this},off:function(e,t,n){var o=this["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<o.length;i++){var r=n===o[i].id;if(t===o[i].fn&&r||!t&&r){o.splice(i,1);break}}else if(e)this["_on"+e]=[];else{var s=Object.keys(this);for(i=0;i<s.length;i++)0===s[i].indexOf("_on")&&Array.isArray(this[s[i]])&&(this[s[i]]=[])}return this},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var o=this["_on"+e],i=o.length-1;0<=i;i--)o[i].id&&o[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(this,o[i].fn),0),o[i].once&&this.off(e,o[i].fn,o[i].id));return this._loadQueue(e),this},_loadQueue:function(e){var t;return 0<this._queue.length&&((t=this._queue[0]).event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()),this},_ended:function(e){var t,o=this,i=e._sprite;return!o._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop?setTimeout(o._ended.bind(o,e),100):(i=!(!e._loop&&!o._sprite[i][2]),o._emit("end",e._id),!o._webAudio&&i&&o.stop(e._id,!0).play(e._id),o._webAudio&&i&&(o._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime,t=1e3*(e._stop-e._start)/Math.abs(e._rate),o._endTimers[e._id]=setTimeout(o._ended.bind(o,e),t)),o._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,o._clearTimer(e._id),o._cleanBuffer(e._node),n._autoSuspend()),o._webAudio||i||o.stop(e._id,!0)),o},_clearTimer:function(e){var t;return this._endTimers[e]&&("function"!=typeof this._endTimers[e]?clearTimeout(this._endTimers[e]):(t=this._soundById(e))&&t._node&&t._node.removeEventListener("ended",this._endTimers[e],!1),delete this._endTimers[e]),this},_soundById:function(e){for(var t=0;t<this._sounds.length;t++)if(e===this._sounds[t]._id)return this._sounds[t];return null},_inactiveSound:function(){this._drain();for(var e=0;e<this._sounds.length;e++)if(this._sounds[e]._ended)return this._sounds[e].reset();return new o(this)},_drain:function(){var e=this,t=e._pool,n=0,o=0;if(!(e._sounds.length<t)){for(o=0;o<e._sounds.length;o++)e._sounds[o]._ended&&n++;for(o=e._sounds.length-1;0<=o;o--){if(n<=t)return;e._sounds[o]._ended&&(e._webAudio&&e._sounds[o]._node&&e._sounds[o]._node.disconnect(0),e._sounds.splice(o,1),n--)}}},_getSoundIds:function(e){if(void 0!==e)return[e];for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t},_refreshBuffer:function(e){return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=i[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,n.ctx.currentTime),this},_cleanBuffer:function(e){var t=n._navigator&&0<=n._navigator.vendor.indexOf("Apple");if(e.bufferSource){if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=n._scratchBuffer}catch(e){}e.bufferSource=null}return this},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}},(o=function(e){this._parent=e,this.init()}).prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,o=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(o,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=o*n.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,e},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(n._canPlayEvent,this._loadFn,!1)},_endListener:function(){var e=this._parent;e._duration===1/0&&(e._duration=Math.ceil(10*this._node.duration)/10,e._sprite.__default[1]===1/0&&(e._sprite.__default[1]=1e3*e._duration),e._ended(this)),this._node.removeEventListener("ended",this._endFn,!1)}},i={},r=function(e){var t=e._src;if(i[t])e._duration=i[t].duration,l(e);else if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),o=new Uint8Array(n.length),r=0;r<n.length;++r)o[r]=n.charCodeAt(r);a(o.buffer,e)}else{var c=new XMLHttpRequest;c.open(e._xhr.method,t,!0),c.withCredentials=e._xhr.withCredentials,c.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){c.setRequestHeader(t,e._xhr.headers[t])}),c.onload=function(){var t=(c.status+"")[0];"0"!==t&&"2"!==t&&"3"!==t?e._emit("loaderror",null,"Failed loading audio file with status: "+c.status+"."):a(c.response,e)},c.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete i[t],e.load())},s(c)}},s=function(e){try{e.send()}catch(t){e.onerror()}},a=function(e,t){function o(){t._emit("loaderror",null,"Decoding audio data failed.")}function r(e){e&&0<t._sounds.length?(i[t._src]=e,l(t,e)):o()}"undefined"!=typeof Promise&&1===n.ctx.decodeAudioData.length?n.ctx.decodeAudioData(e).then(r).catch(o):n.ctx.decodeAudioData(e,r,o)},l=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},c=function(){if(n.usingWebAudio){try{"undefined"!=typeof AudioContext?n.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch(e){n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),t=(t=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))?parseInt(t[1],10):null;e&&t&&t<9&&(e=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase()),n._navigator)&&!e&&(n.usingWebAudio=!1),n.usingWebAudio&&(n.masterGain=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}},e.Howler=n,e.Howl=g,void 0!==t?(t.HowlerGlobal=f,t.Howler=n,t.Howl=g,t.Sound=o):"undefined"!=typeof window&&(window.HowlerGlobal=f,window.Howler=n,window.Howl=g,window.Sound=o),HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(this.ctx&&this.ctx.listener)for(var t=this._howls.length-1;0<=t;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){var o=this;if(o.ctx&&o.ctx.listener){if(t="number"!=typeof t?o._pos[1]:t,n="number"!=typeof n?o._pos[2]:n,"number"!=typeof e)return o._pos;o._pos=[e,t,n],void 0!==o.ctx.listener.positionX?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2])}return o},HowlerGlobal.prototype.orientation=function(e,t,n,o,i,r){var s=this;if(s.ctx&&s.ctx.listener){var a=s._orientation;if(t="number"!=typeof t?a[1]:t,n="number"!=typeof n?a[2]:n,o="number"!=typeof o?a[3]:o,i="number"!=typeof i?a[4]:i,r="number"!=typeof r?a[5]:r,"number"!=typeof e)return a;s._orientation=[e,t,n,o,i,r],void 0!==s.ctx.listener.forwardX?(s.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),s.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),s.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),s.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),s.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),s.ctx.listener.upZ.setTargetAtTime(r,Howler.ctx.currentTime,.1)):s.ctx.listener.setOrientation(e,t,n,o,i,r)}return s},Howl.prototype.init=(u=Howl.prototype.init,function(e){return this._orientation=e.orientation||[1,0,0],this._stereo=e.stereo||null,this._pos=e.pos||null,this._pannerAttr={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:0,distanceModel:void 0!==e.distanceModel?e.distanceModel:"inverse",maxDistance:void 0!==e.maxDistance?e.maxDistance:1e4,panningModel:void 0!==e.panningModel?e.panningModel:"HRTF",refDistance:void 0!==e.refDistance?e.refDistance:1,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:1},this._onstereo=e.onstereo?[{fn:e.onstereo}]:[],this._onpos=e.onpos?[{fn:e.onpos}]:[],this._onorientation=e.onorientation?[{fn:e.onorientation}]:[],u.call(this,e)}),Howl.prototype.stereo=function(e,t){var n=this;if(n._webAudio)if("loaded"!==n._state)n._queue.push({event:"stereo",action:function(){n.stereo(e,t)}});else{var o=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===t){if("number"!=typeof e)return n._stereo;n._stereo=e,n._pos=[e,0,0]}for(var i=n._getSoundIds(t),r=0;r<i.length;r++){var s=n._soundById(i[r]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||p(s,o),"spatial"==o?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),n._emit("stereo",s._id)}}}return n},Howl.prototype.pos=function(e,t,n,o){var i=this;if(i._webAudio)if("loaded"!==i._state)i._queue.push({event:"pos",action:function(){i.pos(e,t,n,o)}});else{if(t="number"!=typeof t?0:t,n="number"!=typeof n?-.5:n,void 0===o){if("number"!=typeof e)return i._pos;i._pos=[e,t,n]}for(var r=i._getSoundIds(o),s=0;s<r.length;s++){var a=i._soundById(r[s]);if(a){if("number"!=typeof e)return a._pos;a._pos=[e,t,n],a._node&&(a._panner&&!a._panner.pan||p(a,"spatial"),void 0!==a._panner.positionX?(a._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),a._panner.positionY.setValueAtTime(t,Howler.ctx.currentTime),a._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):a._panner.setPosition(e,t,n)),i._emit("pos",a._id)}}}return i},Howl.prototype.orientation=function(e,t,n,o){var i=this;if(i._webAudio)if("loaded"!==i._state)i._queue.push({event:"orientation",action:function(){i.orientation(e,t,n,o)}});else{if(t="number"!=typeof t?i._orientation[1]:t,n="number"!=typeof n?i._orientation[2]:n,void 0===o){if("number"!=typeof e)return i._orientation;i._orientation=[e,t,n]}for(var r=i._getSoundIds(o),s=0;s<r.length;s++){var a=i._soundById(r[s]);if(a){if("number"!=typeof e)return a._orientation;a._orientation=[e,t,n],a._node&&(a._panner||(a._pos||(a._pos=i._pos||[0,0,-.5]),p(a,"spatial")),void 0!==a._panner.orientationX?(a._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),a._panner.orientationY.setValueAtTime(t,Howler.ctx.currentTime),a._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):a._panner.setOrientation(e,t,n)),i._emit("orientation",a._id)}}}return i},Howl.prototype.pannerAttr=function(){var e,t,n=this,o=arguments;if(n._webAudio){if(0===o.length)return n._pannerAttr;if(1===o.length){if("object"!=typeof o[0])return((s=n._soundById(parseInt(o[0],10)))||n)._pannerAttr;e=o[0],void 0===t&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),n._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:n._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:n._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:n._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:n._panningModel})}else 2===o.length&&(e=o[0],t=parseInt(o[1],10));for(var i,r,s,a=n._getSoundIds(t),l=0;l<a.length;l++)(s=n._soundById(a[l]))&&(i=s._pannerAttr,i={coneInnerAngle:(void 0!==e.coneInnerAngle?e:i).coneInnerAngle,coneOuterAngle:(void 0!==e.coneOuterAngle?e:i).coneOuterAngle,coneOuterGain:(void 0!==e.coneOuterGain?e:i).coneOuterGain,distanceModel:(void 0!==e.distanceModel?e:i).distanceModel,maxDistance:(void 0!==e.maxDistance?e:i).maxDistance,refDistance:(void 0!==e.refDistance?e:i).refDistance,rolloffFactor:(void 0!==e.rolloffFactor?e:i).rolloffFactor,panningModel:(void 0!==e.panningModel?e:i).panningModel},(r=s._panner)||(s._pos||(s._pos=n._pos||[0,0,-.5]),p(s,"spatial"),r=s._panner),r.coneInnerAngle=i.coneInnerAngle,r.coneOuterAngle=i.coneOuterAngle,r.coneOuterGain=i.coneOuterGain,r.distanceModel=i.distanceModel,r.maxDistance=i.maxDistance,r.refDistance=i.refDistance,r.rolloffFactor=i.rolloffFactor,r.panningModel=i.panningModel)}return n},Sound.prototype.init=(h=Sound.prototype.init,function(){var e=this,t=e._parent;e._orientation=t._orientation,e._stereo=t._stereo,e._pos=t._pos,e._pannerAttr=t._pannerAttr,h.call(this),e._stereo?t.stereo(e._stereo):e._pos&&t.pos(e._pos[0],e._pos[1],e._pos[2],e._id)}),Sound.prototype.reset=(d=Sound.prototype.reset,function(){var e=this,t=e._parent;return e._orientation=t._orientation,e._stereo=t._stereo,e._pos=t._pos,e._pannerAttr=t._pannerAttr,e._stereo?t.stereo(e._stereo):e._pos?t.pos(e._pos[0],e._pos[1],e._pos[2],e._id):e._panner&&(e._panner.disconnect(0),e._panner=void 0,t._refreshBuffer(e)),d.call(this)}),p=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}),jr;function f(){this.init()}function g(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")}}();class Gr extends Rr{constructor(e){super(e),this.onClick=()=>{super.onClick(),this.ready&&(this.paused?this.play():this.pause())},this.started=!1,this.paused=!0,this.ready=!1,this.stopped=!1,this.play=this.play.bind(this),this.stop=this.stop.bind(this),this.pause=this.pause.bind(this),this.onReady=this.onReady.bind(this),this.onPlay=this.onPlay.bind(this),this.onPause=this.onPause.bind(this)}onOut(){}onOver(){}play(){}stop(){}pause(){}onReady(){this.ready=!0}onPlay(){this.started=!0,this.paused=!1,this.stopped=!1,this.signals.poiMediaPlayed.dispatch(this.code)}onPause(){this.started=!1,this.paused=!0,this.stopped||this.signals.poiMediaPaused.dispatch(this.code)}toggleVisibility(e,t=!1){this.pause(),super.toggleVisibility(e,t)}}class qr extends Gr{constructor(e){super(e),this.loop=!1,this.volume=50,this.range=220,this.audioObject=null,this.unloadAudio=()=>{this.audioObject&&(this.audioObject.unload(),this.audioObject=null)},this.sound=e.sound,this.url=e.url||ke.SOUND_PLAY,this.altUrl=e.url||ke.SOUND_PAUSE,this.type=ue.SOUND;var{volume:e,range:t,loop:n}=e;this.volume=void 0!==e?e/100:.5,this.range=void 0!==t?t:220,this.loop=void 0!==n&&n}mute(e,t){var n;null!=(n=this.audioObject)&&n.mute(e,t)}stop(){return ce(this,void 0,void 0,function*(){this.ready&&!this.paused&&(this.audioObject&&this.audioObject.stop(),this.unloadAudio())})}pause(){return ce(this,void 0,void 0,function*(){this.ready&&!this.paused&&this.audioObject&&this.audioObject.pause()})}play(){return ce(this,void 0,void 0,function*(){var e;this.ready&&!this.started&&(this.audioObject?this.audioObject.playing()||this.audioObject.play():((e=new Wr.Howl({src:[""+this.sound.url],loop:this.loop,volume:this.volume,html5:!0,onend:()=>{this.onPause(),this.unloadAudio()},onplay:()=>{this.onPlay()},onpause:()=>{this.onPause()},onstop:()=>{this.stopped=!0,this.onPause()}})).play(),this.audioObject=e))})}create(e){super.create(e),this.sound&&this.sound.url&&!this.ready&&(new Audio(this.sound.url),this.onReady())}onPause(){super.onPause();var e,t=this.krpano.get(`hotspot[${this.code}]`);t&&(e=ln(this.props),t.url=Cn(e),t=dn(this.props))&&t.imageStrip&&this.krpano.call(`set(hotspot[${this.code}].onloaded, ${Hn(this.props)})`)}onPlay(){super.onPlay();var e=this.krpano.get(`hotspot[${this.code}]`);e&&(e.url=this.altUrl,((e,t)=>{e.call(`set(hotspot[${t}].onloaded, '')`),e.call(`clearinterval(crop_anim_${t}); \n set(hotspot[${t}].crop, '');`)})(this.krpano,this.code))}}class Xr extends Gr{constructor(e){super(e),this.image=e.image,this.video=e.video,this.url=e.image?e.image.url:ke.VIDEO,this.type=ue.VIDEO,this.started=!1,this.paused=!0,this.ready=!1}play(){this.ready&&!this.started&&this.krpano.call(`hotspot[${this.code}].play()`)}stop(){this.ready&&!this.paused&&(this.stopped=!0,this.pause())}pause(){this.ready&&!this.paused&&this.krpano.call(`hotspot[${this.code}].pause()`)}create(e){var t,n,o;this.video&&(t=we.VIDEO_PLAYER,n=this.video.url,o=this.video.url.replace("mp4","webm"),this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].url, ${t});`),this.krpano.call(`set(hotspot[${this.code}].videourl, ${n+"#t=3"}|${o});`),this.image&&this.krpano.call(`set(hotspot[${this.code}].posterurl, ${Zt(sn(this.image,(this.width||0)*(this.scale||1)))});`),this.krpano.call(`set(hotspot[${this.code}].html5preload, 'metadata');`),this.krpano.call(`set(hotspot[${this.code}].loop, true);`),this.krpano.call(`set(hotspot[${this.code}].pausedonstart, true);`),this.krpano.call(`set(hotspot[${this.code}].edge, center);`),this.krpano.call(`set(hotspot[${this.code}].ath,${this.ath});`),this.krpano.call(`set(hotspot[${this.code}].atv,${this.atv});`),this.krpano.call(`set(hotspot[${this.code}].alpha,${this.alpha});`),this.krpano.call(`set(hotspot[${this.code}].scale,${this.scale});`),this.krpano.call(`set(hotspot[${this.code}].rotate,${this.rotate});`),this.krpano.call(`set(hotspot[${this.code}].width,${this.width});`),this.krpano.call(`set(hotspot[${this.code}].height,${this.height});`),this.krpano.call(`set(hotspot[${this.code}].rx,${this.rx});`),this.krpano.call(`set(hotspot[${this.code}].ry,${this.ry});`),this.krpano.call(`set(hotspot[${this.code}].rz,${this.rz});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.set(`hotspot[${this.code}].onvideoready`,()=>{this.onReady()}),this.krpano.set(`hotspot[${this.code}].onvideoplay`,()=>{this.onPlay()}),this.krpano.set(`hotspot[${this.code}].onvideopaused`,()=>{this.onPause()}),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{this.krpano.set(`hotspot[${this.code}].visible`,this.visible),super.addEvents(),e&&e(this)}))}}class Qr{constructor(e){this.code="bg"+(Date.now()+Math.random()|0),this.url=ke.BACKGROUND,this.krpano=e.krpano,this.padding=20}create(e){this.krpano.call(`addhotspot(${this.code});`),this.krpano.set(`hotspot[${this.code}].visible`,"false"),this.krpano.set(`hotspot[${this.code}].url`,Cn(this.url)),e&&e(this)}update(e){var t;this.krpano.set(`hotspot[${this.code}].ath`,e.ath),this.krpano.set(`hotspot[${this.code}].atv`,e.atv),this.krpano.set(`hotspot[${this.code}].scale`,e.scale),this.krpano.set(`hotspot[${this.code}].rotate`,e.rotate),this.krpano.set(`hotspot[${this.code}].rx`,e.rx),this.krpano.set(`hotspot[${this.code}].ry`,e.ry),this.krpano.set(`hotspot[${this.code}].rz`,e.rz),this.krpano.set(`hotspot[${this.code}].distorted`,e.distorted),e.width?(this.krpano.set(`hotspot[${this.code}].width`,e.width+20),this.krpano.set(`hotspot[${this.code}].height`,e.height+20)):(t=this.krpano.get(`hotspot[${e.code}]`),this.krpano.set(`hotspot[${e.code}].width`,t.imagewidth+20),this.krpano.set(`hotspot[${e.code}].height`,t.imageheight+20))}show(){this.krpano.set(`hotspot[${this.code}].visible`,"true")}hide(){this.krpano.set(`hotspot[${this.code}].visible`,"false")}}class Zr{constructor(e){this.name="floorspot"+(Date.now()+Math.random()|0),this.krpano=e.krpano,this.signals=e.signals,this.onPointerMove=e.onPointerMove,this.visible=!1,this.allowVisibility=!0,this.timeout=null,this.placeHotspotAtMouse=this.placeHotspotAtMouse.bind(this),this.trackMouse=this.trackMouse.bind(this),this.onClick=this.onClick.bind(this),this.toggleVisible=this.toggleVisible.bind(this)}onClick(){this.signals.floorPoiClick.dispatch()}trackMouse(){var e,t,n;this.onPointerMove&&this.onPointerMove(),this.allowVisibility?(n=this.krpano.get("mouse"),({x:n,y:t}=this.krpano.screentosphere(n.x,n.y)),t<0?(this.krpano.set(`hotspot[${this.name}].alpha`,0),this.toggleVisible(!1)):(this.krpano.set("sphere_x",n),this.krpano.set("sphere_y",t),this.krpano.set("sphere_z",1),this.krpano.call("spheretospace('sphere_x', 'sphere_y', 'sphere_z', 'space_x', 'space_y', 'space_z')"),n=300*(n=this.krpano.get("space_x"))/(t=this.krpano.get("space_y")),e=300*(e=this.krpano.get("space_z"))/t,this.krpano.set(`hotspot[${this.name}].tx`,n),this.krpano.set(`hotspot[${this.name}].tz`,e),this.krpano.set(`hotspot[${this.name}].ty`,300),n=(t=Math.sqrt(n*n+e*e))<1e3?1:1-(t-1e3)/100,n=Math.max(n,0),this.krpano.set(`hotspot[${this.name}].alpha`,n),this.toggleVisible(!!n))):this.toggleVisible(!1)}placeHotspotAtMouse(){this.timeout=setInterval(this.trackMouse,1e3/60)}stopPlacingHotspotAtMouse(){this.timeout&&(clearInterval(this.timeout),this.timeout=null)}create(e){this.timeout=setTimeout(()=>{this.krpano.call(`addhotspot(${this.name});`),this.krpano.call(`\n set(hotspot[${this.name}].type, text);\n set(hotspot[${this.name}].devices, mouse);\n set(hotspot[${this.name}].css, font-size:80px;text-align:center;);\n set(hotspot[${this.name}].vcenter, true);\n set(hotspot[${this.name}].width, 200);\n set(hotspot[${this.name}].height, 200);\n set(hotspot[${this.name}].scale, 0.2);\n set(hotspot[${this.name}].bgalpha, 0.3);\n set(hotspot[${this.name}].bgroundedge, 100);\n set(hotspot[${this.name}].bgshadow, '0 0 5 0xFFFFFF 1.0');\n set(hotspot[${this.name}].oversampling, 2);\n set(hotspot[${this.name}].mipmapping, true);\n set(hotspot[${this.name}].zorder, ${P.BASE});\n set(hotspot[${this.name}].distorted, true);\n set(hotspot[${this.name}].depth, 0);\n set(hotspot[${this.name}].depthbuffer, true);\n set(hotspot[${this.name}].torigin, world);\n set(hotspot[${this.name}].rotationorder, xyz);\n set(hotspot[${this.name}].rx, -90);\n set(hotspot[${this.name}].capture, false);\n set(hotspot[${this.name}].capturefocus, false);\n set(hotspot[${this.name}].handcursor, false);\n set(hotspot[${this.name}].autoalpha, true);\n set(hotspot[${this.name}].visible, true);\n `),this.krpano.set(`hotspot[${this.name}].onloaded`,()=>{this.placeHotspotAtMouse(),this.krpano.set(`hotspot[${this.name}].onclick`,this.onClick),this.krpano.set(`hotspot[${this.name}].onup`,()=>{this.signals.poiMouseUp.dispatch()}),this.signals.toggleFloorPoi.add(e=>{this.toggleVisible(e)})})},500)}toggleVisible(e){this.visible=e,this.krpano.set(`hotspot[${this.name}].visible`,e&&this.allowVisibility)}toggleAllowVisibility(e){this.allowVisibility=e,this.trackMouse()}getVisible(){return this.visible&&this.allowVisibility}}let Kr=.32;class Jr{constructor(e){this.scale=.2,this.ox=0,this.oy=0,this.ry=0,this.width=0,this.height=0,this.north=0,this.alpha=Kr,this.hovering=!1,this.krpano=e.krpano,this.signals=e.signals,this.visible=!0,this.timeout=null,this.direction=e.direction;var t=`nav_${Kt()}_`+this.direction.toLowerCase();this.name=t+"_arrow",this.lblName=t+"_label",t=e.label||"",this.label=t.slice(0,39),t.length>39&&(this.label=this.label+"..."),this.sceneCode=e.sceneCode,this.north=e.north||0,this.ry=this.north,this.width=100,this.height=60,this.url=ke.NAVIGATION_ARROW,this.hoverUrl=ke.NAVIGATION_HIGHLIGHT,yn(this.krpano)&&(this.scale=.4),t=200*this.scale;switch(this.oy=-t,this.direction){case De.NORTH:break;case De.SOUTH:this.ry+=180;break;case De.EAST:this.ry+=90;break;case De.WEST:this.ry+=-90;break;case De.NORTH_EAST:this.ry+=45;break;case De.NORTH_WEST:this.ry+=-45;break;case De.SOUTH_EAST:this.ry+=135;break;case De.SOUTH_WEST:this.ry+=-135}this.trackView=this.trackView.bind(this),this.onClick=this.onClick.bind(this),this.onHover=this.onHover.bind(this),this.onOut=this.onOut.bind(this)}onClick(){this.signals.navigationPoiClick.dispatch(this.direction)}onHover(){this.hovering=!0,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, 1);,);`),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].alpha, 1);,);`)}onOut(){this.hovering=!1,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, ${this.alpha});,);`),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].alpha, ${this.alpha});,);`)}trackView(e,t,n){this.krpano.set(`hotspot[${this.name}].tx`,e),this.krpano.set(`hotspot[${this.name}].ty`,t),this.krpano.set(`hotspot[${this.name}].tz`,n),this.krpano.set(`hotspot[${this.lblName}].tx`,e),this.krpano.set(`hotspot[${this.lblName}].ty`,t),this.krpano.set(`hotspot[${this.lblName}].tz`,n)}createArrowHotspot(){this.isInActiveScene()&&(this.krpano.call(`addhotspot(${this.name});`),this.krpano.call(`\n set(hotspot[${this.name}].type, text);\n set(hotspot[${this.name}].devices, mouse);\n set(hotspot[${this.name}].url, ${this.url});\n set(hotspot[${this.name}].vcenter, true);\n set(hotspot[${this.name}].width, ${this.width});\n set(hotspot[${this.name}].height, ${this.height});\n set(hotspot[${this.name}].scale, ${this.scale});\n set(hotspot[${this.name}].ox, ${this.ox});\n set(hotspot[${this.name}].oy, ${this.oy});\n set(hotspot[${this.name}].oref, 1);\n set(hotspot[${this.name}].oversampling, 2);\n set(hotspot[${this.name}].mipmapping, true);\n set(hotspot[${this.name}].zorder, ${P.STANDARD});\n set(hotspot[${this.name}].distorted, true);\n set(hotspot[${this.name}].depth, 0);\n set(hotspot[${this.name}].depthbuffer, true);\n set(hotspot[${this.name}].torigin, world);\n set(hotspot[${this.name}].rotationorder, xyz);\n set(hotspot[${this.name}].rx, -90);\n set(hotspot[${this.name}].ry, ${this.ry});\n set(hotspot[${this.name}].capture, false);\n set(hotspot[${this.name}].capturefocus, true);\n set(hotspot[${this.name}].handcursor, true);\n set(hotspot[${this.name}].cursor, pointer);\n set(hotspot[${this.name}].autoalpha, true);\n set(hotspot[${this.name}].alpha, ${this.alpha});\n `))}createLabel(){var e;this.label&&this.isInActiveScene()&&(this.krpano.call(`addhotspot(${this.lblName});`),e=-Math.abs((this.ox||this.oy)/this.scale)-100,this.krpano.call(`\n set(hotspot[${this.lblName}].type, text);\n set(hotspot[${this.lblName}].devices, mouse);\n set(hotspot[${this.lblName}].renderer, css3d);\n set(hotspot[${this.lblName}].css, font-size:28px;text-align:center;color:#fff;text-shadow: 3px 3px #000;transform:translate(0, ${e}px));\n set(hotspot[${this.lblName}].vcenter, true);\n set(hotspot[${this.lblName}].bgalpha, 0);\n set(hotspot[${this.lblName}].width, 800);\n set(hotspot[${this.lblName}].height, 800);\n set(hotspot[${this.lblName}].scale, ${this.scale});\n set(hotspot[${this.lblName}].oref, 2);\n set(hotspot[${this.lblName}].oversampling, 2);\n set(hotspot[${this.lblName}].mipmapping, true);\n set(hotspot[${this.lblName}].zorder, ${P.STANDARD});\n set(hotspot[${this.lblName}].distorted, true);\n set(hotspot[${this.lblName}].depth, 0);\n set(hotspot[${this.lblName}].depthbuffer, true);\n set(hotspot[${this.lblName}].torigin, world);\n set(hotspot[${this.lblName}].rotationorder, xyz);\n set(hotspot[${this.lblName}].rx, -90);\n set(hotspot[${this.lblName}].ry, ${this.ry});\n set(hotspot[${this.lblName}].capture, false);\n set(hotspot[${this.lblName}].capturefocus, false);\n set(hotspot[${this.lblName}].alpha, ${this.alpha});\n `),this.krpano.set(`hotspot[${this.lblName}].html`,`[div]${this.label}[/div]`),this.krpano.set(`hotspot[${this.lblName}].onloaded`,()=>{this.isInActiveScene()?this.krpano.set(`hotspot[${this.lblName}].visible`,!1):this.krpano.call(`removehotspot(${this.lblName})`)}))}create(e){this.hovering=!1,this.alpha=Kr,setTimeout(()=>{this.isInActiveScene()?(this.createArrowHotspot(),this.createLabel(),this.krpano.set(`hotspot[${this.name}].onloaded`,()=>{this.isInActiveScene()?(this.krpano.set(`hotspot[${this.name}].visible`,this.visible),this.krpano.set(`hotspot[${this.name}].onclick`,this.onClick),this.krpano.set(`hotspot[${this.name}].onhover`,this.onHover),this.krpano.set(`hotspot[${this.name}].onout`,this.onOut),this.krpano.set(`hotspot[${this.name}].onup`,()=>{this.signals.poiMouseUp.dispatch()}),e&&e(this)):this.krpano.call(`removehotspot(${this.name})`)})):e&&e(this)},500)}toggle(e,t=!1){t||(this.visible=e);let n=e;this.visible||(n=this.visible),this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].visible, ${n});,);`),n||this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].visible, ${n});,);`)}fade(e){let t=!e;this.visible||(t=!1),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].visible, ${t});,);`),this.visible&&!this.hovering&&(this.alpha=e?Kr:.64,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, ${this.alpha});,);`))}isInActiveScene(){return(this.krpano.get("xml.scene")||"").toLowerCase()===(this.sceneCode||"").toLowerCase()}}class es extends Rr{constructor(e){super(e),this.url=e.url||ke.GALLERY,this.type=ue.GALLERY,this.gallery=e.gallery,this.hoverCode=un(this.code),this.hovering=!1,this.keepHover=!1,this.bannerVisible=!1,this.keepBannerVisible=!1,this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.toggleBanner=this.toggleBanner.bind(this),this.hideBanner=this.hideBanner.bind(this),this.handleOnLoaded=this.handleOnLoaded.bind(this)}getLookAtPosition(){var{h:e,v:t}=xn(this.krpano,this);return{ath:e,atv:t}}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onOver(){super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.HOVERING});`)}onOut(){super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.STANDARD});`),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e)}hideBanner(){this.bannerVisible&&!this.keepBannerVisible&&this.toggleBanner(!1)}handleOnLoaded(){var e=this.krpano.get(`hotspot[${this.hoverCode}]`),t=e.sprite.style.transform;e.sprite.style.transform=`${t} translateY(calc(-50% - ${(this.height||0)*(this.scale||1)/2}px))`}renderLaserTooltip(){var e=Object.assign(Object.assign({},this),{position:this.position,overviewPosition:this.overviewPosition});e=Ln(this.krpano,e,this.language);In(this.krpano,this.props,e)}create(e){e&&(this.onDone=e),kn(this)&&this.createFocusingHotspot(),this.renderLaserTooltip(),Un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)})}}class ts extends Rr{constructor(e){super(e),this.toggleDustEffect=e=>`\n if(${this.showDustEffect} AND !hide_all_lensflares AND view.fisheye LT 1,\n set(layer[blink_fl_lt_${this.code}].alpha, ${e});\n set(layer[blink_fl_rt_${this.code}].alpha, ${e});\n set(layer[blink_fl_rb_${this.code}].alpha, ${e});\n set(layer[blink_fl_lb_${this.code}].alpha, ${e});\n );\n `,this.updateFlares=e=>{var t="xposh_"+e,n="yposh_"+e;return`\n if(${n} LT 0 OR !${n},\n set(ukryj_gora_${e}, true);\n ,\n set(ukryj_gora_${e}, false);\n );\n\n if(${n} GT stageheight OR !${n},\n set(ukryj_dol_${e}, true);\n ,\n set(ukryj_dol_${e}, false);\n );\n\n set(zero_lewo_123, 0);\n copy(zero_prawo_123, stagewidth);\n\n if(fwebvr.isenabled,\n set(zero_lewo_123, 360);\n set(zero_prawo_123, calc(stagewidth-360));\n );\n\n if(${t} LT zero_lewo_123 OR !${t},\n set(ukryj_lewo_${e}, true);\n ,\n set(ukryj_lewo_${e}, false);\n );\n\n if(${t} GT zero_prawo_123 OR !${t},\n set(ukryj_prawo_${e}, true);\n ,\n set(ukryj_prawo_${e}, false);\n );\n\n getlooktodistance(re_${e}, view.hlookat, view.vlookat, ath, atv);\n\n if((!ukryj_gora_${e} AND !ukryj_dol_${e} AND !ukryj_lewo_${e} AND !ukryj_prawo_${e} AND re_${e} LT 90) AND view.fisheye LT 1,\n set(visible, true);\n ,\n set(visible, false);\n );\n `},this.krpano=e.krpano,this.url=e.url||ke.MOVING,this.metadata=e.metadata,this.type=ue.LENSFLARE,this.flareStyle=e.flareStyle||"DAY_LIGHT_1",this.showDustEffect="boolean"!=typeof e.showDustEffect||e.showDustEffect,this.desktopOnly="boolean"!=typeof e.desktopOnly||e.desktopOnly,this.ath=e.ath||0,this.atv=e.atv||0}create(){this.metadata?this.preview():console.warn("metadata empty")}preview(){this.clear();var e=this.krpano.get("device.mobile");this.desktopOnly&&e||(this.createDustLayers(),this.addSingleFlare())}clear(){var e;this.metadata&&(e=this.metadata.flares[this.flareStyle])&&(Object.values(e).forEach((e,t)=>{e=e.name,e=`f1_${this.code}_${e}_`+t,this.krpano.get(`hotspot[${e}]`)&&this.krpano.call(`removehotspot(${e})`)}),(this.metadata.dusts||[]).forEach(e=>{e=e.name+"_"+this.code,this.krpano.get(`removelayer[${e}]`)&&this.krpano.call(`removelayer(${e})`)}))}createDustLayers(){this.metadata&&this.metadata.dusts.forEach(e=>{var t=e.name+"_"+this.code;this.krpano.call(`\n addlayer(${t});\n copy(dustLayer, layer[${t}]);\n ${Object.entries(e).map(([e,t])=>`set(dustLayer.${e}, ${t});`).join("\n")}\n set(dustLayer.enabled, false);\n `)})}addSingleFlare(){var e;this.metadata&&(e=this.metadata.flares[this.flareStyle])&&Object.values(e).forEach((e,t)=>{var{name:e,url:n,vars:o}=e,i=`f1_${this.code}_${e}_`+t,[o,r,s,a,l,c,u,h,d,p,f]=(e=`f1_${this.code}_${e}_0`,o.split("|"));this.krpano.call(`\n set(hide_all_lensflares, false);\n addhotspot(${i});\n copy(hfla, hotspot[${i}]);\n\n set(hfla.distrored, true);\n set(hfla.enabled, false);\n set(hfla.alpha, 0);\n set(hfla.zorder, ${P.MAX});\n set(hfla.depth, 1000);\n set(hfla.edge, center);\n set(hfla.ox, 0);\n set(hfla.oy, 0);\n set(hfla.width, 440);\n set(hfla.height, 440);\n set(hfla.keep, false);\n\n set(hfla.url, ${n});\n set(hfla.ath, ${this.ath});\n set(hfla.atv, ${this.atv});\n set(hfla.dusteffect, ${this.showDustEffect});\n set(hfla.move, ${o});\n set(hfla.rmove, ${d});\n copy(hfla.athbazowy, hotspot[${e}].ath);\n copy(hfla.atvbazowy, hotspot[${e}].atv);\n set(hfla.flying, ${l});\n set(hfla.scale, ${r});\n set(hfla.alpha, ${s});\n set(hfla._alpha, ${s});\n set(hfla.rscale, ${c});\n set(hfla.ralpha, ${u});\n set(hfla.ralphaminus, ${h});\n set(hfla.zorder, ${a});\n set(hfla.invr, ${p});\n set(hfla.blendmode, ${f});\n set(scaleTemp_${i}, ${r});\n\n set(hfla.onloaded,\n if(webvr.isenabled, if(!invr, if(hotspot[${i}].loaded, removehotspot(${i}));));\n\n asyncloop(loaded,\n spheretoscreen(ath, atv, xposh_${i}, yposh_${i});\n div(xpos_${i}, stagewidth, 2);\n div(ypos_${i}, stageheight, 2);\n sub(xposg_${i}, xposh_${i}, xpos_${i});\n sub(yposg_${i}, yposh_${i}, ypos_${i});\n div(ox, xposg_${i}, calc(move*1.4/(rmove*12)));\n div(oy, yposg_${i}, calc(move*1.4/(rmove*12)));\n\n getlooktodistance(scal_${i}, view.hlookat, view.vlookat, ath, atv);\n\n spheretoscreen(athbazowy, atvbazowy, px_${i}, py_${i});\n sub(a_${i}, px_${i}, xpos_${i});\n sub(b_${i}, ypos_${i}, py_${i});\n Math.atan2(angle_${i}, a_${i}, b_${i});\n mul(angle_${i}, 180);\n div(angle_${i}, Math.PI);\n add(angle_${i}, 270);\n mod(angle_${i}, 360);\n roundval(angle_${i});\n copy(rz, angle_${i});\n\n if(ralpha,\n set(alpha_${i}, calc((scal_${i}/70)-ralphaminus));\n if(alpha_${i} LE 0, set(alpha_${i}, 0));\n if(webVr.isenabled,\n set(hotspot[${i}].alpha, calc(alpha_${i}/3));\n ,\n set(hotspot[${i}].alpha, calc(alpha_${i}));\n if(hotspot[${i}].alpha GT 1, set(hotspot[${i}].alpha, 1));\n );\n ,\n set(hotspot[${i}].alpha, ${s})\n );\n if(rscale != 1,\n set(valsc_${i}, calc((rscale*scal_${i})/10+scaleTemp_${i}));\n if(webVr.isenabled,\n set(scale, calc(valsc_${i}/2));\n ,\n copy(scale, valsc_${i});\n );\n );\n \n if(${t} == '1',\n getlooktodistance(result_${i}, view.hlookat, view.vlookat, ath, atv);\n div(result1_${i}, result_${i}, 10);\n clamp(result1_${i}, 0.0, 1.0);\n mod(result2_${i}, result1_${i}, 100);\n sub(result2_${i},1);\n mul(result2_${i},-1);\n\n copy(alpha, result2_${i});\n sub(alpha, 0.3);\n if(result_${i} LT 7,\n ${this.toggleDustEffect(`get(result2_${i})`)}\n );\n if(result_${i} GT 7 AND result_${i} LT 20,\n ${this.toggleDustEffect(0)}\n );\n );\n ${this.updateFlares(i)}\n );\n );\n `)})}}class ns extends Rr{constructor(e){super(e),this.label="",this.spheretoscreen=()=>{var{ath:e,atv:t}=this.getHoverPosition();return this.krpano.spheretoscreen(e,t)},this.moveToScene=e.moveToScene,this.moveToFloorplan=e.moveToFloorplan,this.url=e.url||ke.MOVING,this.type=ue.MOVING,this.isLookAt=!1,this.previewType=e.previewType||Te,this.label=e.label||"",this.previewType===Pe?this.alwaysShowLabel=void 0===e.alwaysShow||e.alwaysShow:this.alwaysShowLabel=!1,this.alwaysOnFloor=e.alwaysOnFloor||!1,this.tx=e.tx||0,this.ty=e.ty||0,this.tz=e.tz||0,this.displayType=e.displayType||Ze,this.bgColor=e.bgColor||"#333333",this.color=e.color||"#ffffff",this.fontSize=e.fontSize||"12pt",this.precision=void 0===e.precision||e.precision,this.lookWhenMoving=!1,this.showingLabel=!1,this.hovering=!1,this.hoverCode=un(this.code),this.dispatchClick=this.dispatchClick.bind(this),this.createOnFloor=this.createOnFloor.bind(this),this.updateAlpha=this.updateAlpha.bind(this),this.revertAlpha=this.revertAlpha.bind(this),this.updateHovering=this.updateHovering.bind(this),this.getHoverPosition=this.getHoverPosition.bind(this)}dispatchClick(){var e=this.moveToScene&&this.moveToScene.code,t=this.moveToFloorplan&&this.moveToFloorplan.code;e&&this.signals.movingPoiClick.dispatch(e,t,this.ath,this.atv,{lookWhenMoving:this.lookWhenMoving})}onClick(){super.onClick(),!this.isMobileDevice||this.previewType===Te||this.alwaysShowLabel?this.dispatchClick():this.showingLabel?(this.dispatchClick(),this.hideLabel()):(this.signals.toggleLabels.dispatch(!1),this.showLabel(),this.isMobileDevice&&setTimeout(()=>{this.dispatchClick()},1e3))}onOver(){this.updateHovering(!0),super.onOver(),this.signals.poiOver.dispatch({poiData:this.props,coords:this.getCenter()})}onOut(){this.updateHovering(!1),super.onOut(),this.signals.poiOut.dispatch(),this.isMobileDevice||this.hideLabel()}onHover(){this.updateHovering(!0),this.signals.poiHover.dispatch(this.getCenter()),this.showLabel()}toggleLabel(e=!1,t=!1){this.previewType!==Te&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),t||!this.alwaysShowLabel||this.alwaysShowLabel&&e)&&(this.showingLabel=e)}showLabel(){this.toggleLabel(!0),this.isMobileDevice&&!this.alwaysShowLabel&&this.previewType===Pe&&(this.timeOut=setTimeout(()=>{this.hideLabel()},2e3))}hideLabel(){this.timeOut&&(clearTimeout(this.timeOut),this.timeOut=void 0),this.alwaysShowLabel||this.toggleLabel(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),(this.showingLabel||this.alwaysShowLabel&&e)&&this.toggleLabel(e,!0)}updateAlpha(e){this.hovering||this.isMobileDevice?this.revertAlpha():this.krpano.set(`hotspot[${this.code}].alpha`,e)}revertAlpha(){this.krpano.set(`hotspot[${this.code}].alpha`,this.alpha)}updateHovering(e){this.isMobileDevice||(this.hovering=e)}getHoverContent(){return`\n [div class="cvtv-moving-label-poi"]\n [div class="cvtv-moving-label-poi__inner"]${this.label}[/div]\n [div class="cvtv-moving-label-poi__arrow"]\n [span class="cvtv-moving-label-poi__arrow__content" /]\n [/div]\n [/div]\n `}createRoomNameCard(e){this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`\n set(hotspot[${this.code}].type, text);\n set(hotspot[${this.code}].renderer, css3d);\n set(hotspot[${this.code}].bgalpha, 0);\n set(hotspot[${this.code}].visible, true);\n set(hotspot[${this.code}].autowidth, true);\n set(hotspot[${this.code}].autoheight, true);\n set(hotspot[${this.code}].scale, ${this.scale});\n set(hotspot[${this.code}].ath, ${this.ath});\n set(hotspot[${this.code}].atv, ${this.atv});\n set(hotspot[${this.code}].rx, ${this.rx});\n set(hotspot[${this.code}].ry, ${this.ry});\n set(hotspot[${this.code}].rz, ${this.rz});\n set(hotspot[${this.code}].rotate, ${this.rotate});\n set(hotspot[${this.code}].distorted, ${this.distorted});\n set(hotspot[${this.code}].handcursor, true);\n set(hotspot[${this.code}].css, font-family:Barlow; font-size:14px; padding: 3rem;);\n `),this.krpano.set(`hotspot[${this.code}].html`,`\n [div]\n [div style="\n background-color: ${this.bgColor};\n padding: 0.5rem 1rem;\n display: flex;\n gap: 0.5rem;\n align-items: center;\n "]\n [img\n width="${this.width}"\n height="${this.height}"\n src="${Cn(ln(this.props))}"\n /]\n ${this.previewType===Te?"":`[span style="color: ${this.color}; font-size: ${this.fontSize}"]${this.label}[/span]`}\n [/div]\n [/div]\n `),setTimeout(()=>{super.addEvents()},500),e&&e(this)}createOnFloor(e){Bn(this.krpano,this.props),setTimeout(()=>{super.addEvents()},500),e&&e(this)}create(e){if(this.displayType===Ke)this.createRoomNameCard(e);else if(this.previewType===Te||this.previewType===Ce)this.alwaysOnFloor?this.createOnFloor(e):super.create(e);else{var t=this.getHoverContent(),n=Object.assign(Object.assign({},this.props),this.getHoverPosition());let o;Rn(this.krpano,n,t,!1),(o=(this.alwaysOnFloor?Bn:Un)(this.krpano,n)).then(()=>{this.alwaysShowLabel&&this.showLabel(),super.addEvents(),e&&e(this)})}}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.dispatchClick()})}getHoverPosition(){return this.alwaysOnFloor?this.krpano.spacetosphere(this.tx,this.ty,this.tz):{ath:this.ath,atv:this.atv}}isHideable(){return this.displayType!==Ke}}class os extends Rr{constructor(e){super(e),this.image=e.image,this.url=this.image?this.image.url:void 0,this.rotatewithview=e.rotatewithview||!1,this.type=ue.NADIR_LOGO,this.zenith=e.zenith||!1}create(e){if(this.url&&this.visible&&this.enabled){let o=this.props.rz||0;this.zenith&&(o+=180);var t=this.props.width||100,n=this.props.height||100;this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].type, 'image');`),this.krpano.call(`set(hotspot[${this.code}].url, ${this.url});`),this.krpano.call(`set(hotspot[${this.code}].ath, 0);`),this.krpano.call(`set(hotspot[${this.code}].atv, ${this.zenith?-90:90});`),this.krpano.call(`set(hotspot[${this.code}].width, ${t});`),this.krpano.call(`set(hotspot[${this.code}].height, ${n});`),this.krpano.call(`set(hotspot[${this.code}].rz, ${o});`),this.krpano.call(`set(hotspot[${this.code}].distorted, true);`),this.krpano.call(`set(hotspot[${this.code}].handcursor, false);`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.call(`set(hotspot[${this.code}].capturefocus, false);`),this.krpano.call(`set(hotspot[${this.code}].rotatewithview, ${this.rotatewithview});`),this.krpano.call(`set(hotspot[${this.code}].cursor, 'none');`),this.krpano.call(`set(hotspot[${this.code}].visible, true);`),this.krpano.call(`set(hotspot[${this.code}].enabled, true);`),e&&e(this)}}}class is extends Rr{constructor(e){super(e),this.image=e.image,this.url=e.image?e.image.url:ke.PHOTO,this.type=ue.PHOTO}create(e){super.create(e),this.krpano.call(`set(hotspot[${this.code}].capture,false);`)}onOut(){}onOver(){}isHideable(){return!1}}class rs extends Hr{constructor(e){super(e),this.type=ue.POLYGON,this.fillColor=e.fillColor||255,this.fillAlpha=e.fillAlpha||.2,this.borderWidth=e.borderWidth||3,this.borderColor=e.borderColor||255,this.borderAlpha=e.borderAlpha||1,this.zorder=e.zorder||1,this.points=e.points||[],this.mouseOver=!1}addDesktopEvents(){super.addDesktopEvents(),!this.isMobileDevice&&this.isHoverable()&&(this.krpano.set(`hotspot[${this.hoverCode}].onover`,()=>{this.mouseOver=!0}),this.krpano.set(`hotspot[${this.hoverCode}].onout`,()=>{this.mouseOver=!1,this.onOut()}))}onClick(){super.onClick(),this.isClickable()&&(this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch())}onOver(){this.isHoverable()&&super.onOver()}onOut(){this.isHoverable()&&!this.mouseOver&&super.onOut()}onHover(){this.isHoverable()&&this.show()}show(){this.krpano.set(`hotspot[${this.hoverCode}].visible`,"true"),this.hovering=!0}hide(){this.krpano.set(`hotspot[${this.hoverCode}].visible`,"false"),this.hovering=!1}toggleVisibility(e){this.hovering&&this.krpano.set(`hotspot[${this.hoverCode}].visible`,""+e)}getPolygonCenter(){var e=this.krpano.get(`hotspot[${this.code}]`);if(e)return e.getcenter()}getLookAtPosition(){var{x:e,y:t}=this.getPolygonCenter();return{ath:e,atv:t}}create(e){var t;e&&(this.onDone=e),this.itemInfo&&(this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].fillcolor,${this.fillColor});`),this.krpano.call(`set(hotspot[${this.code}].fillalpha,${this.fillAlpha});`),this.krpano.call(`set(hotspot[${this.code}].borderwidth,${this.borderWidth});`),this.krpano.call(`set(hotspot[${this.code}].bordercolor,${this.borderColor});`),this.krpano.call(`set(hotspot[${this.code}].borderalpha,${this.borderAlpha});`),this.krpano.call(`set(hotspot[${this.code}].zorder,${this.zorder});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{this.krpano.set(`hotspot[${this.code}].visible`,this.visible)}),this.points.forEach(e=>{var{code:e,ath:t,atv:n}=e;this.krpano.call(`set(hotspot[${this.code}], point[${e}].ath=${t}, point[${e}].atv=${n});`)}),(e=this.getPolygonCenter())&&(this.ath=e.x,this.atv=e.y),(e=this.getHoverContent())&&(t=Object.assign(Object.assign({},this.props),{ath:this.ath,atv:this.atv,height:0}),Rn(this.krpano,t,e)),setTimeout(()=>{this.addEvents()},200),this.onDone)&&this.onDone(this)}}class ss extends Rr{constructor(e){super(e),this.text=void 0,this.image=void 0,this.iframe=void 0,this.webRotateCode=void 0,this.iframeSize=void 0,this.url=e.url||ke.POPUP,this.type=ue.POPUP,this.text=e.text,this.image=e.image,this.iframe=e.iframe,this.webRotateCode=e.webRotateCode,this.label=e.label||"",this.hoverCode=un(this.code),this.iframeSize=e.iframeSize}onClick(){super.onClick(),this.signals.poiClick.dispatch(this.props)}onOver(){super.onOver()}onOut(){super.onOut()}onHover(){}getHoverContent(){return this.label?`\n [div class="bg-[rgba(0,0,0,0.6)] rounded shadow-[0_1px_2px_-2px_rgba(0,0,0,0.16),0_3px_6px_0_rgba(0,0,0,0.12),0_5px_12px_4px_rgba(0,0,0,0.09)] text-white cursor-pointer text-base font-normal leading-5 min-w-[60px] pointer-events-auto text-center px-3 py-2"]\n [div class="h-full overflow-hidden w-full rounded-md"]${this.label}[/div]\n [div class="bottom-[-14.14213562373095px] h-[14.14213562373095px] left-[calc(50%_-_7.07px)] overflow-hidden absolute w-[14.14213562373095px] z-0"]\n [span class="bg-[rgba(0,0,0,0.6)] block h-2.5 relative rotate-45 -translate-x-2/4 translate-y-0 w-2.5 left-[5px] -top-0.5" /]\n [/div]\n [/div]\n `:""}create(e){var t=this.getHoverContent(),n=Object.assign(Object.assign({},this.props),{ath:this.ath,atv:this.atv});Rn(this.krpano,n,t,!1),this.krpano.set(`hotspot[${this.hoverCode}].visible`,!0),Un(this.krpano,n).then(()=>{super.addEvents(),e&&e(this)})}}(e=>{e.NEW_TAB="NEW_TAB",e.IFRAME="IFRAME",e.BUILD_IN="BUILD_IN"})(zr=zr||{});class as extends Rr{constructor(e){super(e),this.url=e.url||ke.PROMOTION,this.type=ue.PROMOTION,this.promotion=e.promotion,this.hoverCode=un(this.code),this.hovering=!1,this.keepHover=!1,this.bannerVisible=!1,this.keepBannerVisible=!1,this.promotionCode=e.promotionCode,this.lineHeight=40,this.bannerSize=150,this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.toggleBanner=this.toggleBanner.bind(this),this.hideBanner=this.hideBanner.bind(this),this.handleOnLoaded=this.handleOnLoaded.bind(this)}getLookAtPosition(){var{h:e,v:t}=xn(this.krpano,this);return{ath:e,atv:t}}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onClick(){super.onClick();var e=!this.bannerVisible;this.toggleBanner(e),e&&(this.keepBannerVisible=!0,setTimeout(()=>{this.keepBannerVisible=!1},1e3))}onOver(){super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.HOVERING});`)}onOut(){super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${P.STANDARD});`),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){pn(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e))}hideBanner(){this.bannerVisible&&!this.keepBannerVisible&&this.toggleBanner(!1)}handleOnLoaded(){var e=this.krpano.get(`hotspot[${this.hoverCode}]`),t=e.sprite.style.transform;e.sprite.style.transform=`${t} translateY(calc(-50% - ${(this.height||0)*(this.scale||1)/2}px))`}renderLaserTooltip(){var e=Ln(this.krpano,this,this.language);In(this.krpano,this.props,e)}create(e){var t,n,o;e&&(this.onDone=e),this.promotion&&(({image:t,endDate:n,startDate:o}=this.promotion),t)&&t.url&&Pn(o).isBefore(new Date)&&Pn(n).isAfter(new Date)&&(kn(this)&&this.createFocusingHotspot(),(e=>ce(void 0,void 0,void 0,function*(){return e?new Promise(t=>{let n=new Image;n.onload=()=>{var{width:e,height:o}=n;t({width:e,height:o})},n.onerror=()=>{t(null)},n.src=e}):null}))(o=Zt(sn(t,(this.width||0)*(this.scale||1)))).then(t=>{t&&(this.renderLaserTooltip(),Un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)}))}))}hasDetailModal(){return this.promotion&&this.promotion.openType===zr.BUILD_IN}}(e=>{e.NONE="NONE",e.SEMICIRCLE="SEMICIRCLE",e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"})(Ur=Ur||{});class ls extends Rr{constructor(e){super(e),this.menuStyle=Ur.NONE,this.hoverTimeout=null,this.setTextureIndex=e=>{this.textureIndex=e,this.changeVisibleTexture()},this.getElementName=e=>this.code+"_texture_"+e,this.onOutMenuContextMask=()=>{this.toggleContext(!1)},this.onOverMenuContextMask=()=>{this.toggleContext(!0)},this.antiFlicking=(e,t)=>{this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),t?this.hoverTimeout=setTimeout(()=>{e()},t):e()},this.toggleContext=(e=!1)=>{this.antiFlicking(()=>{this.hovering=e;var{x:t,y:n}=this.krpano.spheretoscreen(this.ath,this.atv);this.signals.texturePoiHover.dispatch({poi:e?this:null,coords:{x:t,y:n}}),this.krpano.set(`hotspot[${this.menuContextMask}].visible`,e),this.krpano.set(`hotspot[${this.code}].zorder`,e?P.HOVERING:P.STANDARD)},e?0:.2)},this.textures=e.textures,this.textureIndex=e.textureIndex||0,this.menuStyle=e.menuStyle,this.url=ke.TEXTURE,this.type=ue.TEXTURE,this.menuContextMask=this.code+"_context_mask",this.bannerVisible=!1,this.keepHover=!1,this.hovering=!1,this.isLookAt=kn(this),this.hoverTimeout=null,this.hoverCode=un(this.code)}changeVisibleTexture(){this.textures&&0!==this.textures.length&&this.textures.forEach((e,t)=>{t===this.textureIndex?this.krpano.call(`tween(hotspot[${this.getElementName(t)}].alpha, 1.0, 0.5);`):this.krpano.call(`tween(hotspot[${this.getElementName(t)}].alpha, 0, 0.5);`)})}createTexture(e,t,n=0){var{hfov:t,yaw:o,pitch:i,roll:r}=t,s=57.295779;this.krpano.call(`\n addhotspot(${this.getElementName(n)});\n set(hotspot[${this.getElementName(n)}].url, ${e});\n set(hotspot[${this.getElementName(n)}].distorted, true);\n set(hotspot[${this.getElementName(n)}].enabled, false);\n set(hotspot[${this.getElementName(n)}].alpha, ${n===this.textureIndex?1:0});\n set(hotspot[${this.getElementName(n)}].width, 0);\n set(hotspot[${this.getElementName(n)}].height, 0);\n set(hotspot[${this.getElementName(n)}].rx,0);\n set(hotspot[${this.getElementName(n)}].ry,0);\n set(hotspot[${this.getElementName(n)}].rz,0);\n set(hotspot[${this.getElementName(n)}].onloaded, '\n div(hfov_${this.getElementName(n)}, ${t}, ${s});\n div(yaw_${this.getElementName(n)}, ${o}, -${s});\n div(pitch_${this.getElementName(n)}, ${i}, ${s});\n div(roll_${this.getElementName(n)}, ${r}, -${s});\n mul(hfov_${this.getElementName(n)}, 0.5);\n Math.tan(hfov_${this.getElementName(n)});\n mul(hotspot[${this.getElementName(n)}].width, hfov_${this.getElementName(n)}, 1000);\n set(hotspot[${this.getElementName(n)}].height, prop);\n Math.cos(ch_${this.getElementName(n)}, yaw_${this.getElementName(n)});\n Math.sin(sh_${this.getElementName(n)}, yaw_${this.getElementName(n)});\n Math.cos(ca_${this.getElementName(n)}, pitch_${this.getElementName(n)});\n Math.sin(sa_${this.getElementName(n)}, pitch_${this.getElementName(n)});\n Math.cos(cb_${this.getElementName(n)}, roll_${this.getElementName(n)});\n Math.sin(sb_${this.getElementName(n)}, roll_${this.getElementName(n)});\n mul(m0_${this.getElementName(n)}, ca_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, cb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, sb_${this.getElementName(n)}, sh_${this.getElementName(n)});\n add(m3_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m4_${this.getElementName(n)}, cb_${this.getElementName(n)}, ca_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, cb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, sh_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, sb_${this.getElementName(n)}, ch_${this.getElementName(n)});\n sub(m5n_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m5n_${this.getElementName(n)}, -1);\n mul(tmp_${this.getElementName(n)}, sb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, cb_${this.getElementName(n)}, sh_${this.getElementName(n)});\n sub(m6n_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m6n_${this.getElementName(n)}, -1);\n Math.atan2(yaw_${this.getElementName(n)}, m6n_${this.getElementName(n)}, m0_${this.getElementName(n)});\n Math.atan2(roll_${this.getElementName(n)}, m5n_${this.getElementName(n)}, m4_${this.getElementName(n)});\n Math.asin(pitch_${this.getElementName(n)}, m3_${this.getElementName(n)});\n mul(hotspot[${this.getElementName(n)}].ath, yaw_${this.getElementName(n)}, ${s});\n mul(hotspot[${this.getElementName(n)}].atv, pitch_${this.getElementName(n)}, ${s});\n mul(hotspot[${this.getElementName(n)}].rotate, roll_${this.getElementName(n)}, ${s});\n ');\n `)}create(e){var t;super.create(e),this.krpano.call(`set(hotspot[${this.code}].zorder,' ${P.STANDARD}');`),this.overviewPosition!==Re.NONE&&(kn(this)&&this.createFocusingHotspot(),e=Ln(this.krpano,this,this.language),In(this.krpano,this.props,e)),this.textures&&0!==this.textures.length&&(this.textures.forEach((e,t)=>{var n=e.image;n=Cn(n.file.url);this.createTexture(n,e,t)}),this.menuStyle!==Ur.NONE)&&(e=[Ur.HORIZONTAL].includes(this.menuStyle)?800:320,t=[Ur.HORIZONTAL].includes(this.menuStyle)?96:320,e=this.width<e?e:this.width+32,t=this.height<t?t:this.height+32,this.krpano.call(`\n addhotspot(${this.menuContextMask});\n set(hotspot[${this.menuContextMask}].type, 'text');\n set(hotspot[${this.menuContextMask}].bgalpha, 0);\n set(hotspot[${this.menuContextMask}].handcursor, false);\n set(hotspot[${this.menuContextMask}].width, ${e});\n set(hotspot[${this.menuContextMask}].height, ${t});\n set(hotspot[${this.menuContextMask}].visible, false);\n set(hotspot[${this.menuContextMask}].rx, 0);\n set(hotspot[${this.menuContextMask}].ry, 0);\n set(hotspot[${this.menuContextMask}].rz, 0);\n set(hotspot[${this.menuContextMask}].rotate, 0);\n set(hotspot[${this.menuContextMask}].distorted, true);\n set(hotspot[${this.menuContextMask}].enabled, true);\n set(hotspot[${this.menuContextMask}].zorder, ${P.HOVERING_AREA});\n set(hotspot[${this.menuContextMask}].ath, '${this.ath}');\n set(hotspot[${this.menuContextMask}].atv, '${this.atv}');\n `))}addDesktopEvents(){super.addDesktopEvents(),this.onOutMenuContextMask&&this.krpano.set(`hotspot[${this.menuContextMask}].onout`,this.onOutMenuContextMask),this.onOverMenuContextMask&&this.krpano.set(`hotspot[${this.menuContextMask}].onover`,this.onOverMenuContextMask)}onOut(){this.toggleContext(!1)}onOver(){super.onOver(),this.toggleContext(!0)}onClick(){var e,t;super.onClick(),kn(this)||(this.textures&&0!==this.textures.length&&(this.textureIndex=++this.textureIndex%this.textures.length,this.changeVisibleTexture()),this.isMobileDevice?(({x:e,y:t}=this.krpano.spheretoscreen(this.ath,this.atv)),this.signals.texturePoiTouched.dispatch({poi:this,coords:{x:e,y:t}})):this.signals.texturePoiClick.dispatch({poi:this}))}toggleHoverPoi(e=!1){kn(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),hn(this.krpano,this.props,e))}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}}class cs{constructor(e){this.navPois={},this.orderIndex=0,this.north=0,this.tags=[],this.showNavigationHotspots=!1,this.showNavigationWithoutMovingHotspot=!1,this.showNavigationHotspotLabels=!1,this.debounceAutoShowHotspot=Yt(()=>{this.autoShowHotspots()},300),this.nearestMovingPoi=null,this.movingHotspotsHidden=!1,this.centerPoi=null,this.isMobileDevice=!1,this.autoShowType=Le,this.renderPreview=(e,t,n=!0)=>{n&&this.isMobileDevice||embedpano({xml:this.sourceFolder.url+"/pano.xml",target:e,id:"scene_preview_"+this.code,onready:n=>{this.krpanoPreview=n,this.previewHtmlElementId=e,t&&t(),n.call("\n delayedcall(0,\n set(view.fisheye, 1);\n set(view.stereographic, true);\n set(view.fov, 155);\n set(view.fovtype, MFOV);\n set(view.fovmax, 150);\n set(view.hlookat, 0);\n set(view.vlookat, 90);\n set(view.architectural, 0);\n );\n "),n.call("\n delayedcall(0.2,\n tween(view.hlookat, 0, 1.0, easeInOutQuad);\n tween(view.vlookat, 0, 1.0, easeInOutQuad);\n tween(view.fov, 100, 1.0, easeInOutQuad);\n tween(view.fisheye, 0.0, 1.0, easeInOutQuad);\n set(view.fovmax, 180);\n tween(view.pannini, 1.0, distance(2.0,0.8));\n\n delayedcall(2,\n tween(view.hlookat, 10000000, distance(100,10));\n tween(view.vlookat, 0, 5);\n );\n )\n ")},onerror:console.error})},this.destroyPreview=()=>{if(!this.isMobileDevice)try{removepano("scene_preview_"+this.code)}catch(e){console.warn("Destroy scene preview error")}},this.load=(e=0,t,n)=>{var o,i=this.krpano.getView(),r=fn(this.krpano);let s=this.hlookat,a=this.vlookat;t&&(({hChanged:t,vChanged:l,ignoreNorth:o=!1}=t),a=l,s=o?t:_n(this.north+t));var l=ft({hlookat:s,vlookat:a,fov:r.fov||i.fov,fovtype:r.fovtype});this.krpano.call(`\n delayedcall(${e},loadscene(${this.code},${l},${this.flags},${n||this.blend}););\n `)},this.togglePoisVisibility=e=>{this.allPoiVisible=e,(this.pois||[]).forEach(t=>{t.isHideable()&&(t.isLabel()?t.toggleVisibility(this.isVisiblePoi(t)&&this.allPoiVisible,!0):t.toggleVisibility(e))})},this.setViewLimit=()=>{let{coverMode:e,vlookatmax:t,vlookatmin:n,hlookatmax:o,hlookatmin:i,hlookat:r,vlookat:s}=this.viewLimitConfig;if(e===Oe){let e=n||-90,a=t||90,l=i||-360,c=o||Qt;this.setOnViewChangeEvents(()=>{this.krpano.call(`clamp(view.vlookat,${s+e},${s+a})`),-360===Math.round(l)&&Math.round(c)===Qt||this.krpano.call(`clamp(view.hlookat,${r+l},${r+c})`)},!0)}},this.showHotspotNearestToCenter=()=>{if(this.allPoiVisible&&this.allLabelVisible&&this.pois.length){let{hlookat:t,vlookat:n,hfov:o}=this.krpano.getView(),i=[ue.PROMOTION,ue.ITEM_INFO,ue.POLYGON,ue.GALLERY,ue.TEXTURE];var e=this.pois.map(e=>{if(e.visible&&i.includes(e.type)&&(e.itemInfo||e.promotion||e.gallery)){try{var r,s=this.getHorizontalDisplayDeg(e,o),a=this.krpano.spheretospace(t,n);if(vn(t,n,e.ath,e.atv).h<s)return r=this.krpano.spheretospace(e.ath,e.atv),{poi:e,dist:bn(a,r)}}catch(e){console.error(e)}e.hide(!0)}return null}).filter(e=>!!e).sort((e,t)=>null===e.dist?1:null===t.dist?-1:e.dist-t.dist);e.forEach((e,t)=>{var{poi:e,dist:n}=e,o=e;0===t&&null!==n&&this.isVisiblePoi(e)?(this.signals.toggleHotspotNearestToCenter.dispatch(o.code),(this.centerPoi=o).show(!0)):o.hide(!0)}),null!=e&&e.length||(this.signals.toggleHotspotNearestToCenter.dispatch(null),this.centerPoi=null)}else this.signals.toggleHotspotNearestToCenter.dispatch(null),this.centerPoi=null},this.buildNavigationHotspots=()=>{if(this.showNavigationHotspots){let e=this.floorMovingPois.map(e=>this.movingPoisMap[e]);Object.values(De).forEach(t=>{var n=(e=>{switch(e){case De.NORTH:return[{min:-23,max:23}];case De.NORTH_EAST:return[{min:24,max:67}];case De.EAST:return[{min:68,max:113}];case De.SOUTH_EAST:return[{min:114,max:157}];case De.NORTH_WEST:return[{max:-24,min:-67}];case De.WEST:return[{max:-68,min:-113}];case De.SOUTH_WEST:return[{max:-114,min:-157}];case De.SOUTH:return[{max:-158,min:-180},{min:158,max:180}]}return null})(t);if(n){var o=[];for(let t=e.length-1;0<=t;t--){var i=e[t],r=_n(Math.round(i.ath||0));let s=Math.round(r-this.north);s<-180?s+=360:180<s&&(s-=360),n.some(({max:e,min:t})=>s>=t&&s<=e)&&(o.push(i),e.splice(t,1))}if(o.length){var s=o.reduce((e,t)=>{var{poi:n,distance:o}=e,i=mn(t.ath,90,t.ath,t.atv);return!n||i<o?{poi:t,distance:i}:e},{poi:null,distance:0}).poi;if(s){let e;this.movingPoiByDirection[t]=s,this.navPois||(this.navPois={}),this.canShowMovingHotspotLabel(s)&&({label:e}=s),this.navPois[t]=new Jr({krpano:this.krpano,signals:this.signals,direction:t,north:this.north,label:e,sceneCode:this.code})}}}})}},this.toggleNavigationHotspots=(e=!0,t=!1)=>{this.showNavigationHotspots&&this.navPois&&Object.keys(this.navPois).length&&(Object.values(this.navPois).forEach(n=>{n.toggle(e,t)}),e)&&this.trackViewNavigationHotspots()},this.moveWithNavigationPoi=e=>{(e=this.movingPoiByDirection[e])&&e.dispatchClick()},this.moveToClosestPoi=()=>{this.floorPoi||this.updateNearestMovingHotspotToMouse(),this.nearestMovingPoi&&this.canMoveToNearestPOI()&&this.nearestMovingPoi.dispatchClick()},this.toggleFloorPoiVisibility=e=>{this.floorPoi&&this.floorPoi.toggleAllowVisibility(e)},this.getHotspotDistanceFromView=e=>{e=this.krpano.get(`hotspot[${e.code}]`);var t,n,o=this.krpano.getView();return o&&e?(({hlookat:o,vlookat:t}=o),({ath:e,atv:n}=e),vn(o,t,e,n)):null},this.showIfHotspotInRange=e=>{var t=this.krpano.getView().hfov,n=this.getHotspotDistanceFromView(e);return n?((n=n.h<this.getHorizontalDisplayDeg(e,t))?e.show(!0):e.hide(!0),n):(e.hide(!0),!1)},this.clearTimeout=()=>{this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},this.getHorizontalDisplayDeg=(e,t)=>t/3/2,this.showHotspotsInRange=()=>{this.allPoiVisible&&this.allLabelVisible&&this.pois.length&&this.pois.forEach(e=>{e.visible&&(e.type===ue.ITEM_INFO&&this.showIfHotspotInRange(e),e.type===ue.PROMOTION&&this.showIfHotspotInRange(e),e.type===ue.GALLERY)&&this.showIfHotspotInRange(e)})},this.isMovingHotspotWithNamePlate=e=>e.type===ue.MOVING&&e.displayType===Ke,this.updateNearestMovingHotspotToMouse=()=>{if(this.nearestMovingPoi=null,this.floorMovingPois&&this.floorMovingPois.length&&!this.movingHotspotsHidden){var[e]=this.floorMovingPois,{x:t,y:n}=this.krpano.get("mouse");let{x:o,y:i}=this.krpano.screentosphere(t,n);t=this.movingPoisMap[e],n=mn(o,i,t.ath,t.atv),this.isMovingHotspotWithNamePlate(t)||t.updateAlpha(.2),1===this.floorMovingPois.length&&n<1e3?(this.nearestMovingPoi=t,this.isFloorPoiVisible()&&t.revertAlpha()):(e=this.floorMovingPois.reduce((e,t)=>{var{poi:n,distance:r}=e;return(t=this.movingPoisMap[t]).code===n.code?e:(this.isMovingHotspotWithNamePlate(t)||t.updateAlpha(.2),(n=mn(o,i,t.ath,t.atv))<r?{poi:t,distance:n}:e)},{poi:t,distance:n})).distance<1e3&&(this.nearestMovingPoi=e.poi,this.isFloorPoiVisible())&&this.nearestMovingPoi.revertAlpha()}},this.trackViewNavigationHotspots=()=>{if(this.navPois&&Object.keys(this.navPois).length){let a=1;(e=>e.get("device.tablet"))(this.krpano)?a=.75:yn(this.krpano)&&(a=.5);var e=250/a,t=500/a,n=this.krpano.getView(),o=_n(Math.round(n.vlookat))+25,i=n.hlookat,r=_n(Math.round(i-103)),s=_n(Math.round(i+103));let l=[];s<r?r<0?(l.push({min:r,max:0}),l.push({min:0,max:180}),l.push({min:-180,max:s})):0<s?(l.push({min:r,max:180}),l.push({min:-180,max:0}),l.push({min:0,max:s})):(l.push({min:r,max:180}),l.push({min:-180,max:s})):l.push({min:r,max:s}),r=_n(Math.round(i-30)),s=_n(Math.round(i+30));let c=[];s<r?(c.push({min:r,max:180}),c.push({min:-180,max:s})):c.push({min:r,max:s}),i=Math.max(22,o),this.krpano.set("sphere_x",n.hlookat),this.krpano.set("sphere_y",i),this.krpano.set("sphere_z",1),this.krpano.call("spheretospace('sphere_x', 'sphere_y', 'sphere_z', 'space_x', 'space_y', 'space_z')"),r=this.krpano.get("space_x"),s=this.krpano.get("space_y"),o=this.krpano.get("space_z");let u=t-(90-i)/68*(t-e),h=r*u/s,d=o*u/s;Object.values(De).forEach(e=>{var t,n;this.navPois[e]&&(t=!!(n=(e=>{switch(e){case De.NORTH:return[0];case De.NORTH_EAST:return[45];case De.EAST:return[90];case De.SOUTH_EAST:return[135];case De.NORTH_WEST:return[-45];case De.WEST:return[-90];case De.SOUTH_WEST:return[-135];case De.SOUTH:return[180,-180]}return null})(e))&&n.some(e=>{let t=_n(Math.round(e+this.north));return l.some(({min:e,max:n})=>t>=e&&t<=n)}),n=!!n&&n.some(e=>{let t=_n(Math.round(e+this.north));return c.some(({min:e,max:n})=>t>=e&&t<=n)}),this.navPois[e].toggle(t,!0),this.navPois[e].fade(!n),this.navPois[e].trackView(h,u,d))})}},this.canShowMovingHotspotLabel=e=>this.showNavigationHotspotLabels&&(e.previewType===Pe||e.previewType===Ce)&&!!e.label,this.loadNavigationHotspots=()=>{if(this.showNavigationHotspots&&this.navPois&&Object.keys(this.navPois).length){let e=[];Object.keys(this.navPois).forEach(t=>{var n=new Promise(e=>{this.navPois[t].create(()=>{e()})});e.push(n)}),Promise.all(e).then(()=>{this.trackViewNavigationHotspots()}),this.setOnViewChangeEvents(this.trackViewNavigationHotspots)}},this.isFloorPoiVisible=()=>this.floorPoi&&this.floorPoi.getVisible(),this.canMoveToNearestPOI=()=>{var e;return this.isMobileDevice?(e=this.krpano.get("mouse"),0<=(e=this.krpano.screentosphere(e.x,e.y).y)):this.isFloorPoiVisible()},this.props=e,this.id=""+e.id,this.name=e.name,this.code=e.code,this.krpano=e.krpano,this.signals=e.signals,this.pois=[],this.sourceFolder=e.sourceFolder,this.hlookat=e.hlookat||0,this.vlookat=e.vlookat||0,this.orderIndex=e.orderIndex||0,this.allPoiVisible=void 0===e.allPoiVisible||e.allPoiVisible,this.allLabelVisible=!0,this.labelInvisibleArray=[],this.singleClick=e.singleClick,this.viewLimitConfig={coverMode:e.coverMode||Se,hlookat:e.hlookat,vlookat:e.vlookat,vlookatmax:e.vlookatmax,vlookatmin:e.vlookatmin,hlookatmax:e.hlookatmax,hlookatmin:e.hlookatmin},this.north=e.northX||0,this.blend=e.blend||_e.DEFAULT,this.showNavigationHotspots=e.showNavigationHotspots||!1,this.showNavigationWithoutMovingHotspot=e.showNavigationWithoutMovingHotspot||!1,this.showNavigationHotspotLabels=e.showNavigationHotspotLabels||!1,this.movingHotspotsHidden=this.showNavigationHotspots&&this.showNavigationWithoutMovingHotspot,this.isMobileDevice=an(this.krpano),this.vars=null,this.flags=null,this.tourName=e.tourName,this.tourCode=e.tourCode,this.movingPoiByDirection={},this.floorMovingPois=[],this.movingPoisMap={},e.pois&&(this.pois=[],e.pois.forEach(t=>{let n;var o=Object.assign(Object.assign({},t),{krpano:e.krpano,signals:e.signals,tourUrl:e.tourUrl,bgPoi:this.bgPoi,theme:e.theme,metadata:e.metadata,sceneCode:e.code,tourName:e.tourName,tourCode:e.tourCode});switch(t.type){case ue.MOVING:n=new ns(o);var i=Kt();(this.movingPoisMap[i]=n).precision||this.floorMovingPois.push(i);break;case ue.INFO:n=new Fr(o);break;case ue.SOUND:n=new qr(o);break;case ue.POPUP:n=new ss(o);break;case ue.PHOTO:n=new is(o);break;case ue.VIDEO:n=new Xr(o);break;case ue.ITEM_INFO:(i=o).autoShow=this.autoShowType,n=new Hr(i);break;case ue.POLYGON:n=new rs(i=o);break;case ue.LENSFLARE:n=new ts(i=o);break;case ue.NADIR_LOGO:(i=o).zenith?this.zenithLogo=new os(i):this.nadirLogo=new os(i);break;case ue.PROMOTION:n=new as(i=o);break;case ue.GALLERY:n=new es(i=o);break;case ue.TEXTURE:n=new ls(i=o)}this.movingHotspotsHidden&&t.type===ue.MOVING&&!n.precision||n&&this.pois.push(n)})),this.bgPoi=new Qr({krpano:this.krpano}),this.buildNavigationHotspots(),this.isMobileDevice||(this.floorPoi=new Zr({krpano:this.krpano,signals:this.signals,onPointerMove:this.updateNearestMovingHotspotToMouse}))}setOnViewChangeEvents(e,t=!1){this.signals.updateViewChangedEvents.dispatch({handler:e,skipCheck:t})}getPoiByCode(e){return this.pois.find(t=>t.code===e)||null}loadNadirLogos(e){this.viewLimitConfig.coverMode===Ee&&(this.nadirLogo&&this.nadirLogo.create(e),this.zenithLogo&&this.zenithLogo.create(e),this.zenithLogo||this.nadirLogo)&&this.setOnViewChangeEvents(()=>{var e,t=this.krpano.getView().hlookat;this.nadirLogo&&(e=this.nadirLogo.code,this.krpano.call(`if(hotspot[${e}].rotatewithview,set(hotspot[${e}].rotate,${t}));`)),this.zenithLogo&&(e=this.zenithLogo.code,this.krpano.call(`if(hotspot[${e}].rotatewithview,set(hotspot[${e}].rotate,${-t}));`))})}isVisiblePoi(e){if(e){let t=tn(e);return this.allLabelVisible&&!this.labelInvisibleArray.some(e=>e===t)}return this.allLabelVisible}loadPois(e){this.bgPoi.create(),this.loadNadirLogos(e),this.pois.forEach(t=>{t.create(n=>{t.isLabel()&&t.toggleVisibility(this.isVisiblePoi(t),!0),e&&e(n)})}),this.setOnViewChangeEvents(this.debounceAutoShowHotspot),this.autoShowHotspots(),this.floorPoi&&this.singleClick===Ae&&this.floorPoi.create(),this.loadNavigationHotspots()}toggleLabelVisibility(e){if(this.labelInvisibleArray=e||[],null!=e&&e.length){let t=[],n=[];this.pois.forEach(o=>{o.isLabel()&&(e.includes(tn(o))?n:t).push(o)}),t.forEach(e=>{e.toggleVisibility(!0,!0)}),n.forEach(e=>{e.toggleVisibility(!1,!0)})}}autoShowHotspots(){this.autoShowType===Me?this.showHotspotsInRange():this.autoShowType===Le&&this.showHotspotNearestToCenter()}}let us=2e3,hs=(e,t,n,o,i=!1)=>{if(!n)return!1;if(1===n.length)switch(n[0]){case ue.ITEM_INFO:var{itemInfo:r,itemInfoCode:s=""}=e;return!(!r||-1===(o||[]).indexOf(r.type)||!i&&t.includes(s))&&(t.push(s),!0);case ue.PROMOTION:return!(!(r=e.promotionCode)||t.includes(r))&&(t.push(r),!0);case ue.INFO:case ue.TEXTURE:return e.type===n[0];default:return!1}else if(1<n.length)return n.some(t=>t===e.type)},ds=e=>{let{tour:t,poiTypes:n,itemTypes:o,showDetail:i=!1}=e,r=[];var s=e.scenes||t.scenes;s.sort((e,t)=>e.orderIndex-t.orderIndex);let a=[],l=[];return s.forEach(t=>{var s,c=[],u=(c.push({type:be.SLEEP,sleepTime:2e3}),e.pois?e.pois.filter(e=>e.sceneCode===t.code):t.pois);for(let t=0;t<u.length;t++){var h,d,p,f=u[t];hs(f,r,n,o,!!e.pois)&&(({ath:p,atv:h}=f.getLookAtPosition()),d=(null==e?void 0:e.sleepTime)||us,c.push({poiCode:f.type===ue.ITEM_INFO?f.code:void 0,type:be.LOOK_AT,position:{ath:p,atv:h},speed:60,showDetail:i,viewHotspotDuration:i?1e3:void 0,showDetailDuration:Math.max(d-1e3,us)}),(p=fs(n,f))&&c.push(p),i||c.push({type:be.SLEEP,sleepTime:us}),a.push(f))}c.length&&(c.unshift({type:be.MOVE_SCENE,toScene:t.props}),s=c.reduce((e,t,n)=>(e.push({orderIndex:n,actions:[t]}),e),[]),s={orderIndex:l.length,children:s},l.push(s))}),l.sort((e,t)=>e.orderIndex-t.orderIndex),{steps:l,pois:a}},ps=(e,t)=>{var n,o=[];for(let i=0;i<t.length;i++){let r=t[i];o.some(e=>e.code===r.sceneCode)||(n=e.scenes.find(e=>e.code===r.sceneCode))&&o.push(n)}return o},fs=(e,t)=>{let n,o,i;switch(t.type){case ue.ITEM_INFO:case ue.POLYGON:e.includes(ue.ITEM_INFO)&&null!=(n=t.itemInfo)&&n.sound&&(i=t.itemInfo.sound);break;case ue.PROMOTION:e.includes(ue.PROMOTION)&&null!=(o=t.promotion)&&o.sound&&(i=t.promotion.sound)}return i?{type:be.PLAY_SOUND,volume:50,sound:i,sleepTime:0}:null};class gs{constructor(e){this.audioObject=null,this.trackingSubtitleInterval=null,this.soundEnabled=!0,this.play=e=>{this.playAudio(e)},this.stop=()=>{this.stopAudio()},this.trackKrpanoSoundCueChange=()=>{if(this.subtitle&&this.subtitle.data){let n=this.krpano.get(`sound[${this.soundId}]`);var e,t;n&&(t=this.subtitle.data.cues)&&t.length&&(e=t.findIndex(e=>n.position<=e.endTime&&n.position>=e.startTime),t=t[e],this.onSubtitleTextChange)&&this.onSubtitleTextChange(t?t.text:"")}},this.playKrpanoSound=e=>{this.krpano.call(`streamsound(${this.soundId}, ${this.file.url},false,1,);`);var t=this.krpano.get(`sound[${this.soundId}]`);t.oncomplete=()=>{this.clearTrackingInterval(),e()},this.subtitle&&(t.onplay=()=>{this.subtitle&&(this.trackingSubtitleInterval=window.setInterval(()=>{this.trackKrpanoSoundCueChange()},500),this.trackKrpanoSoundCueChange())},t.onpause=this.clearTrackingInterval,t.onstop=this.clearTrackingInterval)},this.stopKrpanoSound=()=>{this.krpano.get(`sound[${this.soundId}]`)&&(this.krpano.call(`stopsound(${this.soundId})`),this.destroyKrpanoSound())},this.destroyKrpanoSound=()=>{this.krpano.get(`sound[${this.soundId}]`)&&this.krpano.call(`destroysound(${this.soundId})`)},this.trackAudioCueChange=()=>{if(this.subtitle&&this.audioObject&&this.subtitle.data&&((t=this.subtitle.data.cues)&&t.length)){let n=this.audioObject.seek();var e=t.findIndex(e=>n<=e.endTime&&n>=e.startTime),t=t[e];this.onSubtitleTextChange&&this.onSubtitleTextChange(t?t.text:"")}},this.playAudio=e=>{if(this.audioObject)this.audioObject.playing()||this.audioObject.play();else{var t=!this.soundEnabled||this.muted;let n=this.background;(t=new Wr.Howl({src:[""+this.file.url],loop:n,volume:1,html5:!0,mute:t,onend:()=>{n||(this.clearTrackingInterval(),this.unloadAudio(),e())},onplay:()=>{this.subtitle&&!this.background&&(this.trackingSubtitleInterval=window.setInterval(()=>this.trackAudioCueChange(),500),this.trackAudioCueChange())},onpause:this.clearTrackingInterval,onstop:()=>{this.clearTrackingInterval(),n&&this.unloadAudio()}})).play(),this.audioObject=t}},this.stopAudio=()=>{this.audioObject&&this.audioObject.stop(),this.unloadAudio()},this.unloadAudio=()=>{this.audioObject&&(this.audioObject.unload(),this.audioObject=null)},this.clearTrackingInterval=()=>{null!==this.trackingSubtitleInterval&&(window.clearInterval(this.trackingSubtitleInterval),this.trackingSubtitleInterval=null)},this.props=e,this.krpano=e.krpano,this.soundId=e.soundId,this.subtitle=e.subtitle,this.file=e.sound,this.soundEnabled=!!e.soundEnabled,this.background=e.background||!1,this.onSubtitleTextChange=e.onSubtitleTextChange,this.muted=!0,this.setSoundState=this.setSoundState.bind(this),this.mute=this.mute.bind(this)}mute(e,t){var n;this.muted=e,null!=(n=this.audioObject)&&n.mute(e,t)}setSoundState(e){e=!(this.soundEnabled=e)||this.muted,this.audioObject&&this.audioObject.mute(e)}}class ms{constructor(e){this.type="",this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.id=e.id||-1,this.orderIndex=e.orderIndex||0,this.execute=this.execute.bind(this),this.stop=this.stop.bind(this),this.getDuration=this.getDuration.bind(this),this.run=this.run.bind(this)}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){})}execute(){return ce(this,arguments,void 0,function*({language:e,duration:t}={language:"vi"}){this.runningPromise=(e=>{let t;var n=new Promise((n,o)=>{t=o,e.then(e=>{n(e)})});return n.abort=e=>{t("aborted: "+e)},n})(this.run({language:e,duration:t})),yield this.runningPromise})}stop(){return ce(this,void 0,void 0,function*(){this.runningPromise&&(this.runningPromise.abort("action "+this.type),this.runningPromise=null)})}getDuration(){return ce(this,arguments,void 0,function*({}={language:"vi"}){return 0})}abortPromise(e){e&&e.abort()}standby(e,t){return ce(this,void 0,void 0,function*(){t&&(yield en(t))})}}class vs extends ms{constructor(e){super(e),this.soundDuration=null,this.soundEnabled=!0,this.addMuteSoundSignal=()=>{var e;this.tour.signals.muteSound.add(null==(e=this.soundObject)?void 0:e.mute)},this.volume=on(e.volume)?e.volume:50,this.soundEnabled=!!e.soundEnabled,this.setSoundState=this.setSoundState.bind(this),this.intervalSubtitleTextChangedCallback=this.intervalSubtitleTextChangedCallback.bind(this),this.playSound=this.playSound.bind(this),this.stopSound=this.stopSound.bind(this),this.getSoundDuration=this.getSoundDuration.bind(this),this.preload=this.preload.bind(this),this.props.sound&&(this.sound=Object.assign(Object.assign({soundId:Kt()},this.props.sound),{background:this.props.background,soundEnabled:this.soundEnabled,onSubtitleTextChange:this.intervalSubtitleTextChangedCallback}),this.sound.subtitle?(e=>ce(void 0,void 0,void 0,function*(){return new Promise(t=>{let n=new $r.Parser(window,$r.StringDecoder()),o=[],i=[];Xi.get(e).then(e=>{e=e.data,n.oncue=e=>{o.push(e)},n.onregion=e=>{i.push(e)},n.parse(e),n.flush(),t({cues:o,regions:i})})})}))(this.sound.subtitle.url).then(e=>{this.sound.subtitle=Object.assign(Object.assign({},this.sound.subtitle),{data:e}),this.soundObject=new gs(this.sound),this.addMuteSoundSignal()}):(this.soundObject=new gs(this.sound),this.addMuteSoundSignal()))}playSound(e){this.soundObject?(this.tour.signals.playingSoundActionExecuted.dispatch(),this.soundObject.play(()=>{this.tour.signals.playingSoundActionStopped.dispatch(),e&&e()})):(this.tour.signals.playingSoundActionStopped.dispatch(),e&&e())}stopSound(){this.soundObject&&this.soundObject.stop(),this.tour.signals.playingSoundActionStopped.dispatch()}getSoundDuration(){return ce(this,void 0,void 0,function*(){let e=this.soundDuration;return on(this.soundDuration)||(this.sound&&this.sound.sound&&this.sound.sound.url?this.soundDuration=yield(e=>ce(void 0,void 0,void 0,function*(){return new Promise(t=>{let n=new Audio;n.onloadedmetadata=()=>{t(1e3*(n.duration||0))},n.onerror=()=>{t(0)},n.src=e})}))(this.sound.sound.url):this.soundDuration=0,e=this.soundDuration),e})}setSoundState(e){e=e.isEnabled,this.soundEnabled=e,this.soundObject&&this.soundObject.setSoundState(e)}preload(e){return ce(this,void 0,void 0,function*(){})}intervalSubtitleTextChangedCallback(e){this.tour.signals.setSubtitleText.dispatch(e)}}class _s extends vs{constructor(e){super(e),this.speed=30,this.playHotspotSound=!1,this.type=be.LOOK_AT,this.ath=e.position.ath,this.atv=e.position.atv,this.fov=e.position.fov,this.delayZoom=e.delayZoom,this.speed=e.speed||30,this.poiCode=e.poiCode,this.playHotspotSound=!(!this.poiCode||!e.playHotspotSound),this.showDetail=e.showDetail||!1,this.viewHotspotDuration=e.viewHotspotDuration||0,this.showDetailDuration=e.showDetailDuration||1e3,this.zoomScale=e.zoomScale||1,this.abortPromise=this.abortPromise.bind(this),this.executeShowDetail=this.executeShowDetail.bind(this),this.executePlaySound=this.executePlaySound.bind(this),this.canPlaySound=this.canPlaySound.bind(this)}executeZoom(){return ce(this,void 0,void 0,function*(){var e,t,n=this.krpano.get("view"),{fov:o,fovmin:i,fovmax:r}=n,s=o/this.zoomScale;o&&o!==s&&(e=Math.abs(s-o)/this.speed,t=nn(e)+200,this.cachingFov={fov:o,fovmax:r,fovmin:i},n.fovmin=0,n.fovmax=179,this.krpano.call(`zoomto(${s}, tween(linear, ${e}));`),this.zoomDelayPromise=en(t),yield this.zoomDelayPromise,this.zoomDelayPromise=null,this.delayZoom&&(this.delayZoomPromise=en(this.delayZoom),yield this.delayZoomPromise,this.delayZoomPromise=null),this.krpano.call(`zoomto(${this.cachingFov.fov}, tween(linear, ${e}));`),this.revertZoomDelayPromise=en(t),yield this.revertZoomDelayPromise,this.revertZoomDelayPromise=null,n.fovmin=this.cachingFov.fovmin,n.fovmax=this.cachingFov.fovmax,this.cachingFov=null)})}run(){return ce(this,arguments,void 0,function*({duration:e}={language:"vi"}){let t=this.ath,n=this.atv;this.poiCode&&(i=this.tour.getPoiByCodeFromScenes(this.poiCode))&&i.type===ue.MOVING&&i.alwaysOnFloor&&(({tx:i,ty:r,tz:o}=i),({ath:t,atv:n}=this.krpano.spacetosphere(i,r,o)));var o=((i=e&&0!==e)||(this.krpano.call(`getlooktodistance(distance_${this.id},${t},${n});`),r=this.krpano.get("distance_"+this.id),e=Math.abs(r/this.speed)),this.krpano.get("view")),i=o.fov,r=(this.krpano.call(`lookto(${t},${n},${i},tween(linear, ${e}),true,true);`),1e3*e);this.delayLookToPromise=en(r),yield this.delayLookToPromise,this.delayLookToPromise=null,this.showDetailDelayPromise=en(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,yield this.executeZoom(),yield Promise.all([this.executeShowDetail(),this.executePlaySound()])})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.stopSound(),this.playSoundDelayPromise=null,this.abortPromise(this.delayLookToPromise),this.abortPromise(this.zoomDelayPromise),this.abortPromise(this.revertZoomDelayPromise),this.abortPromise(this.delayZoomPromise),this.abortPromise(this.showDetailDelayPromise),this.abortPromise(this.closeDetailDelayPromise),this.abortPromise(this.afterCloseDelayPromise),this.abortPromise(this.afterShowDelayPromise),yield this.krpano.call("stoplookto();")})}getDuration(){return ce(this,void 0,void 0,function*(){var e=1e3*Math.abs(90/this.speed)+200;let t=0,n=(this.tour.getPoiByCode(this.poiCode)&&(t=this.showDetail?this.viewHotspotDuration+this.showDetailDuration:this.viewHotspotDuration),0);return this.canPlaySound()&&(n=(yield this.getSoundDuration())||0),e+Math.max(t,n)})}canPlaySound(){return this.playHotspotSound&&this.sound}preload(e){return ce(this,void 0,void 0,function*(){this.canPlaySound()&&(this.executePlaySound(),yield Jt(50),yield this.stop())})}executeShowDetail(){return ce(this,void 0,void 0,function*(){var e;this.showDetail&&this.poiCode&&(e=this.tour.getPoiByCode(this.poiCode))&&(this.tour.signals.poiClick.dispatch(e),this.afterShowDelayPromise=en(500),yield this.afterShowDelayPromise,this.afterShowDelayPromise=null,this.closeDetailDelayPromise=en(this.showDetailDuration),yield this.closeDetailDelayPromise,this.closeDetailDelayPromise=null,this.tour.signals.poiClick.dispatch(null),this.afterCloseDelayPromise=en(500),yield this.afterCloseDelayPromise,this.afterCloseDelayPromise=null)})}executePlaySound(){return ce(this,void 0,void 0,function*(){this.canPlaySound()&&(this.soundObject&&(this.playSoundDelayPromise=new Promise(e=>{this.playSound(()=>{e(1)})})),this.playSoundDelayPromise)&&(yield this.playSoundDelayPromise,this.playSoundDelayPromise=null)})}}class bs extends ms{constructor(e){super(e),this.type=be.MOVE_SCENE,this.toScene=e.toScene,this.hlookat=e.hlookat,this.vlookat=e.vlookat,this.blend=e.blend||"OPENBLEND(1.0, 0.0, 0.6, 1.0, easeOutQuad)"}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){if(this.toScene.code!==this.tour.getActiveScene().code){var e=!this.hlookat&&0!==this.hlookat||!this.vlookat&&0!==this.vlookat?null:{hChanged:this.hlookat,vChanged:this.vlookat,ignoreNorth:!0};this.tour.loadScene(this.toScene.code,void 0,e);let t=this.toScene.blend||_e.DEFAULT;e=Object.keys(_e).find(e=>_e[e]===t),e=ve[e],this.delayPromise=en(nn(e)),yield this.delayPromise,this.delayPromise=null}})}getDuration(){return ce(this,void 0,void 0,function*(){return this.toScene.code!==this.tour.getActiveScene().code?500:0})}}class ys extends ms{constructor(e){super(e),this.functionButtonCode="",this.type=be.OPEN_FUNCTION_BUTTON,this.viewHotspotDuration=e.viewHotspotDuration||0,e.functionButtonCode&&(this.functionButtonCode=e.functionButtonCode),this.abortPromise=this.abortPromise.bind(this),this.executeShowDetail=this.executeShowDetail.bind(this),this.executePlaySound=this.executePlaySound.bind(this)}abortPromise(e){e&&e.abort()}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){this.functionButtonCode&&(this.tour.signals.openFunctionButton.dispatch(this.functionButtonCode),this.showDetailDelayPromise=en(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,this.tour.signals.openFunctionButton.dispatch(null)),yield Promise.all([this.executeShowDetail(),this.executePlaySound()])})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this)})}getDuration(){return ce(this,void 0,void 0,function*(){return this.viewHotspotDuration||0})}executeShowDetail(){return ce(this,void 0,void 0,function*(){})}executePlaySound(){return ce(this,void 0,void 0,function*(){})}}class ws extends ms{constructor(e){super(e),this.type=be.OPEN_MINIMAP,this.viewHotspotDuration=e.viewHotspotDuration||0,this.abortPromise=this.abortPromise.bind(this)}abortPromise(e){e&&e.abort()}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){this.tour.signals.openMinimap.dispatch(!0),this.showDetailDelayPromise=en(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,this.tour.signals.openMinimap.dispatch(!1)})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this)})}getDuration(){return ce(this,void 0,void 0,function*(){return this.viewHotspotDuration||0})}}class xs extends vs{constructor(e){super(e),this.background=!1,this.duration=null,this.type=be.PLAY_SOUND,this.language=e.language||"vi",this.background=this.props.background||!1}run(){return ce(this,arguments,void 0,function*({}={language:T.VI}){this.soundObject&&(this.delayPromise=new Promise(e=>{this.playSound(()=>{e(1)})})),this.delayPromise&&(yield this.delayPromise,this.delayPromise=null)})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),yield Jt(500),this.delayPromise&&(this.delayPromise=null),this.stopSound()})}getDuration(){return ce(this,arguments,void 0,function*({}={language:"vi"}){return!this.background&&(this.duration||(this.duration=yield this.getSoundDuration(),this.duration))||0})}preload(e){return ce(this,void 0,void 0,function*(){this.execute({language:e}),yield Jt(50),yield this.stop()})}}class ks extends ms{constructor(e){super(e),this.type=be.ROTATE,this.angle=e.angle||0,this.speed=e.speed||15,this.delayPromise=null}run(){return ce(this,arguments,void 0,function*({duration:e}={language:"vi"}){var t=e&&0!==e,{hlookat:n,fov:o}=this.krpano.get("view"),n=n+this.angle;let i=this.speed;t&&(i=this.angle/e),this.krpano.call(`lookto(${n},0, ${o}, linear(${i}),false,true);`),t=this.angle/i*1e3,this.delayPromise=en(Math.abs(t)+2e3),yield this.delayPromise,this.delayPromise=null})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null),yield this.krpano.call("stoplookto();")})}getDuration(){return ce(this,void 0,void 0,function*(){var e=this.angle/this.speed*1e3;return Math.abs(e)+2e3})}}class Ss extends ms{constructor(e){super(e),this.type=be.SLEEP,this.sleepTime=e.sleepTime||0,this.delayPromise=null}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){this.delayPromise=en(this.sleepTime),yield this.delayPromise,this.delayPromise=null})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null)})}getDuration(){return ce(this,void 0,void 0,function*(){return this.sleepTime})}}class Os extends ms{constructor(e){var t;super(e),this.type=be.SWITCH_SCENE,this.sceneCode=(null==(t=e.toScene)?void 0:t.code)||"",this.sceneGroupCode=e.sceneGroupCode||"",this.keep=e.keepSwitchScene||!1,this.preSwitchDuration=e.preSwitchSceneDuration||0,this.duration=e.switchSceneDuration||0}run(){return ce(this,arguments,void 0,function*({}={language:"vi"}){yield this.standby(this.preSwitchPromise,this.preSwitchDuration),this.tour.switchScene(this.sceneCode),yield this.standby(this.switchScenePromise,700),!this.keep&&this.stepSceneCode&&(yield this.standby(this.postSwitchPromise,this.duration),this.tour.switchScene(this.stepSceneCode),yield this.standby(this.switchBackPromise,700))})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return ce(this,void 0,void 0,function*(){yield e.stop.call(this),this.abortPromise(this.preSwitchPromise),this.abortPromise(this.switchScenePromise),this.abortPromise(this.postSwitchPromise),this.abortPromise(this.switchBackPromise)})}getDuration(){return ce(this,void 0,void 0,function*(){return 0})}}class Es{constructor(e){var t;this.hasSoundActions=[],this.childrenPlayer=null,this.movingAction=null,this.duration=0,this.showProgressBar=!1,this.sound=null,this.playing=!1,this.movingSceneAction=null,this.soundEnabled=!0,this.delayPromise=null,this.skipSoundAction=!1,this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.orderIndex=e.orderIndex||0,this.showProgressBar=e.showProgressBar||!1,this.scene=e.scene,this.soundEnabled=e.soundEnabled,this.language=e.language,this.skipSoundAction=e.skipSoundAction||!1,this.hlookat=e.hlookat,this.vlookat=e.vlookat,e.sound&&(t={type:be.PLAY_SOUND,volume:50,sound:e.sound,sleepTime:0,krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language},this.sound={data:e.sound,soundObject:new xs(t)},this.skipSoundAction=!0),this.duration=e.duration,this.children=(e.children||[]).map(t=>((t=new Es(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,showProgressBar:this.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,itemInfoPois:this.props.itemInfoPois,promotionPois:this.props.promotionPois,tourSignals:this.props.tourSignals,parent:this,playHotspotSound:e.playHotspotSound,skipSoundAction:this.skipSoundAction}))).hasSoundActions&&!this.hasSoundActions&&(this.hasSoundActions=t.hasSoundActions),t.movingAction&&!this.movingAction&&(this.movingAction=t.movingAction),t)),null!=(t=this.children)&&t.length&&(this.children.sort((e,t)=>e.orderIndex-t.orderIndex),this.childrenPlayer={playingStep:null,playing:!1}),this.actions=e.actions?(e.actions||[]).map(e=>{switch(e.type){case be.MOVE_SCENE:var t=new bs(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));return this.movingAction||(this.movingAction=t),t;case be.ROTATE:return new ks(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case be.PLAY_SOUND:t=new xs(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language}));return this.hasSoundActions.push(t),t;case be.LOOK_AT:return(t=new _s(Object.assign(Object.assign({},e),{sound:this.skipSoundAction?void 0:e.sound,krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language}))).canPlaySound()&&!this.skipSoundAction&&this.hasSoundActions.push(t),t;case be.SLEEP:return new Ss(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case be.OPEN_FUNCTION_BUTTON:return new ys(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case be.SWITCH_SCENE:return new Os(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour,stepSceneCode:null==(t=this.scene)?void 0:t.code}));case be.OPEN_MINIMAP:return new ws(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));default:return new ms(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}))}}):[],this.execute=this.execute.bind(this),this.stop=this.stop.bind(this),this.preloadSoundStep=this.preloadSoundStep.bind(this),this.setSoundState=this.setSoundState.bind(this),this.playStepSound=this.playStepSound.bind(this)}preloadSoundStep(e){return ce(this,arguments,void 0,function*({language:e="vi"}){var t;null!=(t=this.sound)&&t.soundObject?(this.sound.soundObject.execute({language:e}),yield Jt(50),yield this.sound.soundObject.stop()):this.hasSoundActions.length&&(yield Promise.all(this.hasSoundActions.map(t=>t.preload(e))))})}getDuration(){return ce(this,arguments,void 0,function*({language:e,checkDuration:t}={language:"vi",checkDuration:!1}){if(!t)return 0;if(this.duration)return this.duration;let n=0,o=(null!=(t=this.actions)&&t.length&&(t=this.actions.map(t=>t.getDuration({language:e})),t=yield Promise.all(t),n=Math.max(...t)),0);return null!=(t=this.children)&&t.length&&(t=this.children.map(t=>t.getDuration({language:e,checkDuration:!0})),o=(t=yield Promise.all(t)).reduce((e,t)=>e+t,0)),Math.max(n,o)})}setSoundState(e){let t,{isEnabled:n,language:o=T.VI}=e;this.soundEnabled=n,null!=(t=this.sound)&&t.soundObject?this.sound.soundObject.setSoundState({isEnabled:n,language:o}):this.children&&this.children.length?this.children.forEach(e=>{e.hasSoundActions&&e.setSoundState({isEnabled:n,language:o})}):this.actions&&this.actions.length&&this.actions.forEach(e=>{on(e.setSoundState)&&e.setSoundState({isEnabled:n,language:o})})}playStepSound(){var e;null!=(e=this.sound)&&e.soundObject&&(this.sound.soundPromise=this.sound.soundObject.execute({language:this.language}))}stop(){return ce(this,void 0,void 0,function*(){var e;if(this.rejector&&(this.rejector("aborted "+this.props.name),this.rejector=null),this.playing=!1,this.movingSceneAction&&(this.movingSceneAction.stop(),this.movingSceneAction=null),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null),null!=(e=this.sound)&&e.soundObject&&(this.sound.soundObject.stop(),this.sound.soundPromise=null),this.actions&&this.actions.length){let e=[];this.actions.forEach(t=>e.push(t.stop())),yield Promise.all(e)}this.childrenPlayer&&null!=(e=this.children)&&e.length&&(this.childrenPlayer.playing=!1,this.childrenPlayer.playingStep)&&(yield this.childrenPlayer.playingStep.stop(),this.childrenPlayer.playingStep=null)})}execute(e){return ce(this,arguments,void 0,function*({language:e="vi",skipActionSound:t=!1,checkDuration:n=!1}){return new Promise((o,i)=>ce(this,void 0,void 0,function*(){this.rejector=i,this.playing=!0;var r=(new Date).getTime(),s=this.children&&this.children.length,a=n;if(s){if(n=!(null==(s=this.sound)||!s.soundObject),this.childrenPlayer){this.childrenPlayer.playing=!0;for(let t=0;t<this.children.length;t++){if(!this.childrenPlayer.playing||!this.playing)return void(this.childrenPlayer.playing=!1);var l=this.children[t],c=(this.childrenPlayer.playingStep=l,this.tour.getTourScenario());c&&c.fireEvent("on-step-change"),yield l.execute({language:e,skipActionSound:n,checkDuration:a}),0===t&&this.playStepSound()}}null!=(s=this.sound)&&s.soundPromise&&(yield this.sound.soundPromise,this.sound.soundPromise=null)}else{let n=this.duration;if(this.scene&&(this.movingSceneAction=new bs({type:be.MOVE_SCENE,toScene:this.scene,krpano:this.krpano,tour:this.tour,hlookat:this.hlookat,vlookat:this.vlookat}),yield this.movingSceneAction.execute({language:e}),s=yield this.movingSceneAction.getDuration(),n&&0!==n&&(n-=s),this.movingSceneAction=null),null!=(s=this.actions)&&s.length){let o=[],i=[];this.actions.forEach(r=>{if(this.playing){if(r.type===be.PLAY_SOUND){var s=r;if(s.background)return i.push(s),void r.execute({language:e,duration:rn(n)});if(t)return}o.push(r.execute({language:e,duration:rn(n)}))}}),yield Promise.all(o),i.length&&(yield Promise.all(i.map(e=>e.stop())))}}if(s=(new Date).getTime()-r,0<(r=(yield this.getDuration({language:e,checkDuration:a}))-s)){if(!this.playing)return;this.delayPromise=en(r),yield this.delayPromise,this.delayPromise=null}this.rejector=null,o()}))})}}let Ts={onplay:null,onpause:null,onstop:null,onreplay:null,"on-step-change":null,"on-tracking-replay":null};class Ps{constructor(e){var t;this.playDelay=e=>ce(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n}=e;yield Jt(500),this.play({language:t,splashScreenStatus:n})}),this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.id=e.id,this.name=e.name,this.code=e.code,this.showProgressBar=!1,this.soundEnabled=!!e.soundEnabled,this.language=e.language||"vi",this.autoReplay=!!e.autoReplay,on(e.autoReplay)||(this.autoReplay=this.tour.autoplayReplay||!1),this.onStop=e.onStop,this.player={playing:!1,playingStep:null,lastScene:null,lastView:null},this.steps=null==(t=null==e?void 0:e.steps)?void 0:t.map(t=>new Es(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,showProgressBar:this.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,itemInfoPois:this.props.itemInfoPois,promotionPois:this.props.promotionPois,tourSignals:this.tour.signals,playHotspotSound:e.hotspotSoundPlayable}))),null!=(t=this.steps)&&t.sort((e,t)=>e.orderIndex-t.orderIndex),this.listeners=Ts,this.run=this.run.bind(this),this.next=this.next.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.stop=this.stop.bind(this),this.saveLastView=this.saveLastView.bind(this),this.saveLastScene=this.saveLastScene.bind(this),this.applyLastScene=this.applyLastScene.bind(this),this.getPlayingStep=this.getPlayingStep.bind(this),this.revertLastView=this.revertLastView.bind(this),this.addEventListener=this.addEventListener.bind(this),this.removeEventListener=this.removeEventListener.bind(this),this.fireEvent=this.fireEvent.bind(this),this.goPrev=this.goPrev.bind(this),this.goNext=this.goNext.bind(this),this.goToSpecifyStep=this.goToSpecifyStep.bind(this),this.setSoundState=this.setSoundState.bind(this),this.setAutoPlay=this.setAutoPlay.bind(this)}fireEvent(e){(e=this.listeners[e])&&e()}addEventListener(e,t){this.listeners[e]=t}removeEventListener(){this.stop(),this.listeners=Ts}revertLastView(e){e=e.krpano.get("view");var{fov:t,fovmax:n,fovmin:o}=this.player.lastView;e.fov=t,e.fovmax=n,e.fovmin=o,this.player.lastView=null}saveLastView(e){var{fov:e,fovmax:t,fovmin:n}=e.krpano.get("view");this.player.lastView={fov:e,fovmax:t,fovmin:n}}applyLastScene(e){var{playingStep:t,lastScene:n}=this.player;!n||n.code===e.getActiveScene().code||t&&t.scene||e.loadScene(n.code)}saveLastScene(){var e;this.getPlayingStep()?(e=this.getPlayingStep().movingAction)&&(this.player.lastScene=e.toScene):console.warn("currently, dont have any step that is playing")}getPlayingStep(){return this.player.playingStep}run(e){let t,{language:n="vi",splashScreenStatus:o,goToSpecifyStep:i=!1,playFromSlideIn:r=!1}=e;if(this.player.playing&&this.tour){let e=this.getPlayingStep();!e&&0<(null==(t=this.steps)?void 0:t.length)&&(e=this.steps[0],this.player.playingStep=e),e&&(this.fireEvent("on-step-change"),this.saveLastScene(),e.execute({language:n}).then(()=>{this.player.playing&&this.next({language:n,splashScreenStatus:o,goToSpecifyStep:i,playFromSlideIn:r})}))}}next(e){var{language:e="vi",splashScreenStatus:t,goToSpecifyStep:n=!1,playFromSlideIn:o=!1}=e;if(this.tour){let s=this.player.playingStep;if(s){var i=this.steps,r=i.findIndex(e=>e===s);let a=r+1;if(r===i.length-1){if(!this.autoReplay)return this.stop(),void(this.onStop&&setTimeout(()=>{this.onStop()},100));a=0,this.fireEvent("onreplay")}this.player.playingStep=i[a],this.run({language:e,splashScreenStatus:t,goToSpecifyStep:n,playFromSlideIn:o})}}}play(e){var{language:e="vi",splashScreenStatus:t,goToSpecifyStep:n=!1,playFromSlideIn:o=!1}=e,i=this.tour;i&&!this.player.playing&&(this.player.playing=!0,this.saveLastView(i),this.applyLastScene(i),this.fireEvent("onplay"),i.toggleNavigationHotspotsInAGT(!1),this.run({language:e,splashScreenStatus:t,goToSpecifyStep:n,playFromSlideIn:o}))}pause(e){var{stopCallback:e,preventFireEvent:t=!1}=e||{},n=this.tour;n&&this.player.playing&&(this.player.playing=!1,t||this.fireEvent("onpause"),null!=(t=null==(t=this.player)?void 0:t.playingStep)&&t.stop(),this.revertLastView(n),n.toggleNavigationHotspotsInAGT(!0),e)&&e()}stop(){this.pause({stopCallback:()=>{this.player.playingStep=null}}),this.fireEvent("onstop")}goPrev(e){return ce(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n,preventFireEvent:o=!1}=e;if(this.tour){let e=this.getPlayingStep();if(e){this.pause({preventFireEvent:o});var o,i=(o=this.steps).findIndex(t=>t===e);let t=i-1;0===i&&(t=o.length-1,this.fireEvent("on-tracking-replay")),this.player.playingStep=o[t]}return this.playDelay({language:t,splashScreenStatus:n})}})}goNext(e){return ce(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n,preventFireEvent:o=!1}=e;if(this.tour){let e=this.getPlayingStep();if(!e)return this.play({language:t,splashScreenStatus:n});this.pause({preventFireEvent:o});var o,i=(o=this.steps).findIndex(t=>t===e);let r=i+1;return i===o.length-1&&(r=0,this.fireEvent("on-tracking-replay")),this.player.playingStep=o[r],this.playDelay({language:t,splashScreenStatus:n})}})}goToSpecifyStep(e){let{id:t,language:n="vi",splashScreenStatus:o}=e;this.tour&&(this.getPlayingStep()&&this.pause(),e=null==(e=this.steps)?void 0:e.find(e=>e.props.id===t))&&(this.player.playingStep=e,this.play({language:n,splashScreenStatus:o,goToSpecifyStep:!0}))}setSoundState(e){let{isEnabled:t,language:n=T.VI}=e;this.soundEnabled=t,this.steps&&this.steps.length&&this.steps.forEach(e=>{var o;(null!=(o=e.hasSoundActions)&&o.length||e.sound)&&e.setSoundState({isEnabled:t,language:n})})}setAutoPlay(e){this.autoReplay=e}getAutoPlay(){return this.autoReplay}}class Cs{constructor(e){this.playlist=[],this.itemInfoPois=[],this.promotionPois=[],this.featurePois=[],this.productPois=[],this.infoPois=[],this.brandPois=[],this.locationPois=[],this.facilityPois=[],this.swapElementPois=[],this.soundEnabled=!0,this.toggleLookAtStepStartView=!1,this.getActiveScenario=e=>{var t;return e||this.activeScenarioCode?null!=(t=this.playlist.find(t=>t.code===(e||this.activeScenarioCode)))&&t.scenario?t.scenario:(console.warn("Cannot get active scenario with key or code "+(e||this.activeScenarioCode)),null):null},this.setSplashScreenStatus=e=>{this.splashScreenStatus=e},this.setActiveScenarioCode=(e,t=!1)=>{var n;e!==this.activeScenarioCode&&this.activeScenarioCode&&(n=this.getActiveScenario(this.activeScenarioCode))&&n.removeEventListener(),this.activeScenarioCode=e,this.signals.onSwitchKeyReady.dispatch({playAfterReady:t})},this.startScenario=(...e)=>ce(this,[...e],void 0,function*(e=!1){var t,n,o,i,r=this.getActiveScenario();r&&(!this.toggleLookAtStepStartView&&(n=this.tour.getActiveScene(),o=null==(o=r.steps)?void 0:o[0])&&(null!=(i=o.children)&&i.length?null!=(t=(i=o.children[0]).scene)&&t.id&&Number(n.id)===Number(null==(t=i.scene)?void 0:t.id)&&(this.lookAtStepStartView(i),yield Jt(300)):null!=(t=o.scene)&&t.id&&Number(n.id)===Number(null==(i=o.scene)?void 0:i.id)&&(this.lookAtStepStartView(o),yield Jt(300))),r.play({language:this.language,splashScreenStatus:this.splashScreenStatus,playFromSlideIn:e}),this.tour.toggleFloorPois(!1))}),this.pauseScenario=()=>{var e;this.removeTemporaryScenario()||(e=this.getActiveScenario())&&(e.pause(),this.tour.toggleFloorPois(!0))},this.stopScenario=()=>{var e;this.removeTemporaryScenario()||(e=this.getActiveScenario())&&(e.stop(),this.tour.toggleFloorPois(!0))},this.togglePlayStepByStepId=e=>{var t,n=this.getActiveScenario();n&&((t=n.getPlayingStep())&&t.props&&t.props.id===e&&n.player.playing?n.pause():n.goToSpecifyStep({id:e,language:this.language,splashScreenStatus:this.splashScreenStatus}))},this.handleAutoPlaySkip=(e=!1)=>{var t=this.getActiveScenario();if(t)return e?t.goPrev({language:this.language,splashScreenStatus:this.splashScreenStatus,preventFireEvent:!0}):t.goNext({language:this.language,splashScreenStatus:this.splashScreenStatus,preventFireEvent:!0})},this.fireOnSwitchKeyReady=e=>{this.signals.onSwitchKeyReady.add(e)},this.createScenarioFeatures=()=>{if(!this.checkScriptAlreadyCreated(E.FEATURES)){var e=null==(e=this.props.scenarios)?void 0:e.find(e=>e.type===E.FEATURES);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.FEATURES,e),this.featurePois=t}return this.featurePois},this.createScenarioProductList=()=>{if(!this.checkScriptAlreadyCreated(E.PRODUCT_LIST)){var e=null==(e=this.props.scenarios)?void 0:e.find(e=>e.type===E.PRODUCT_LIST);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.PRODUCT_LIST,e),this.productPois=t}return this.productPois},this.createScenarioBrands=()=>{if(!this.checkScriptAlreadyCreated(E.BRAND)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.BRAND);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.BRAND,e),this.brandPois=t}return this.brandPois},this.createScenarioLocations=()=>{if(!this.checkScriptAlreadyCreated(E.LOCATION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.LOCATION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.LOCATION,e),this.locationPois=t}return this.locationPois},this.createScenarioPromotions=()=>{if(!this.checkScriptAlreadyCreated(E.PROMOTION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.PROMOTION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.PROMOTION,e),this.promotionPois=t}return this.promotionPois},this.createScenarioInfo=()=>{if(!this.checkScriptAlreadyCreated(E.INFORMATION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.INFORMATION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.INFORMATION,e),this.infoPois=t}return this.infoPois},this.createScenarioFacilities=()=>{if(!this.checkScriptAlreadyCreated(E.FACILITY)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.FACILITY);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.FACILITY,e),this.facilityPois=t}return this.facilityPois},this.createScenarioMultiMedia=()=>{var e;this.checkScriptAlreadyCreated(E.MULTIMEDIA)||(e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.MULTIMEDIA))&&this.createNewScenario(E.MULTIMEDIA,e)},this.createScenarioSwapElement=()=>{if(!this.checkScriptAlreadyCreated(E.SWAP_ELEMENT)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===E.SWAP_ELEMENT);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario(E.SWAP_ELEMENT,e),this.swapElementPois=t}return this.swapElementPois},this.updateAGTActiveScenario=e=>{e&&(-1===this.playlist.findIndex(t=>t.key===E.AGT&&t.id===e.id)&&(e.id?this.createNewScenario(E.AGT,e):this.checkScriptAlreadyCreated(e.type)||this.updatePlayList(e.type,e)),this.setActiveScenarioCode(e.code))},this.updateAGTScenario=(e,t)=>{this.updateAGTActiveScenario(e),this.signals.onSwitchKeyReady.dispatch({playAfterReady:!t}),t&&this.togglePlayStepByStepId(t)},this.setSoundStateForActiveScenario=e=>{this.soundEnabled=e;var t=this.getActiveScenario();t&&t.setSoundState({isEnabled:e,language:this.language})},this.playScenarioPoi=e=>{if(this.tour){let i,r=!1;var t,n=this.tour.getActiveScene();if(n)for(let t=0;t<n.pois.length;t++){var o=n.pois[t];if((o.type===ue.ITEM_INFO||o.type===ue.POLYGON)&&o.itemInfoCode===e){i=o;break}if(o.type===ue.PROMOTION&&o.code===e){i=o,r=!0;break}}(i=i||(this.itemInfoPois||[]).find(t=>t.itemInfoCode===e))||(i=(this.promotionPois||[]).find(t=>t.code===e),r=!0),i&&(t=this.getScenarioPoiSteps(i,r),this.createNewScenario(E.DETAIL,Object.assign(Object.assign({},{steps:t,onStop:()=>{this.removeTemporaryScenario(!1)}}),{code:E.DETAIL}),{autoReplay:!1}),this.prevActiveScenarioCode=this.activeScenarioCode,this.setActiveScenarioCode(E.DETAIL))}},this.lookAtStepStartView=e=>{var t=e.hlookat,n=(e=e.vlookat,this.krpano.getView()),o=Math.round(n.hlookat),i=Math.round(n.vlookat);(t&&o!==t||e&&i!==e)&&this.krpano&&(this.toggleLookAtStepStartView=!0,this.krpano.call(`lookto(${t}, ${e}, ${n.fov}, tween(linear, 0.2}));`))},this.getPoisFromScenarioData=e=>{let t=((null==e?void 0:e.steps)||[]).flatMap(e=>e.children).flatMap(e=>e.actions).filter(e=>e.type===be.LOOK_AT&&!!e.poiCode).map(e=>e.poiCode);return this.tour.scenes.flatMap(e=>e.pois).filter(e=>t.includes(e.code))},this.getScenarioPoiSteps=(e,t)=>{let n;return({steps:n}=ds(t?{tour:this.tour,poiTypes:[ue.PROMOTION],scenes:ps(this.tour,[e]),pois:[e]}:{tour:this.tour,poiTypes:[ue.ITEM_INFO],scenes:ps(this.tour,[e]),pois:[e],itemTypes:[e.itemInfo.type]})),n},this.removeTemporaryScenario=(e=!0)=>{var t,n=this.playlist.find(e=>e.code===this.activeScenarioCode);return((null==n?void 0:n.key)===E.DETAIL||(null==n?void 0:n.key)===E.TEMP)&&!((n=this.playlist.findIndex(e=>e.key===E.DETAIL||e.key===E.TEMP))<0||(t=this.playlist[n].scenario,e&&(t.stop(),this.tour.toggleFloorPois(!0)),this.playlist.splice(n,1),this.setActiveScenarioCode(this.prevActiveScenarioCode),this.prevActiveScenarioCode=void 0))},this.fireOnStopScenarioWithPoiInteractive=e=>{this.tourSignals.stopScenario.add(e)},this.getTourItemInfoAndPromotionPois=()=>{var e=this.tour;if(e&&e.scenes&&e.scenes.length){e.scenes.sort((e,t)=>e.orderIndex-t.orderIndex);let t=[],n=[];e.scenes.forEach(e=>{if(e.pois)for(let i=0;i<e.pois.length;i++){var o=e.pois[i];o.type===ue.ITEM_INFO&&o.itemInfoCode&&t.push(o),o.type===ue.PROMOTION&&o.promotionCode&&n.push(o)}}),this.itemInfoPois=t,this.promotionPois=n}},this.createNewScenario=(e,t,n={})=>{t&&this.playlist.push({key:e,scenario:new Ps(Object.assign(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,playlist:this,showProgressBar:!this.disabledAGTProgressBar&&t.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,tourSignals:e===E.AGT?this.tourSignals:void 0,promotionPois:this.promotionPois||[],itemInfoPois:this.itemInfoPois||[],hotspotSoundPlayable:e===E.AGT,autoReplay:this.tour.autoplayReplay}),n)),code:t.code,id:t.id})},this.createScenarioAGT=e=>{!this.isPrepareDefaultAGT||(this.isPrepareDefaultAGT,this.tour.props.tourScenario)?(e||this.tour.props.tourScenario)&&this.createNewScenario(E.AGT,e||this.tour.props.tourScenario):this.createScenarioScenes(E.AGT)},this.createScenarioScenes=e=>{if(n=this.tour){let o=n.getActiveScene();var t=((n=[...n.scenes]).sort((e,t)=>e.orderIndex-t.orderIndex),o&&(t=n.findIndex(e=>e.id===o.id),t=n.splice(0,t),n.push(...t)),null==(t=null==(t=this.props)?void 0:t.scenarios)?void 0:t.find(e=>e.type===E.SCENE)),n=this.createScenarioDataFromScenes(n);this.createNewScenario(e||E.SCENE,Object.assign(Object.assign({},n),t))}},this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.tourSignals=e.signals,this.playlist=[],this.language=e.language,this.isPrepareDefaultAGT=!!e.isPrepareDefaultAGT,this.disabledAGTProgressBar=!!e.disabledAGTProgressBar,this.soundEnabled=!!e.soundEnabled,this.getActiveScenario=this.getActiveScenario.bind(this),this.setSplashScreenStatus=this.setSplashScreenStatus.bind(this),this.setActiveScenarioCode=this.setActiveScenarioCode.bind(this),this.startScenario=this.startScenario.bind(this),this.pauseScenario=this.pauseScenario.bind(this),this.stopScenario=this.stopScenario.bind(this),this.togglePlayStepByStepId=this.togglePlayStepByStepId.bind(this),this.handleAutoPlaySkip=this.handleAutoPlaySkip.bind(this),this.fireOnSwitchKeyReady=this.fireOnSwitchKeyReady.bind(this),this.getPoisFromScenarioData=this.getPoisFromScenarioData.bind(this),this.createScenarioFeatures=this.createScenarioFeatures.bind(this),this.createScenarioProductList=this.createScenarioProductList.bind(this),this.createScenarioBrands=this.createScenarioBrands.bind(this),this.createScenarioLocations=this.createScenarioLocations.bind(this),this.createScenarioPromotions=this.createScenarioPromotions.bind(this),this.createScenarioInfo=this.createScenarioInfo.bind(this),this.createScenarioFacilities=this.createScenarioFacilities.bind(this),this.createScenarioMultiMedia=this.createScenarioMultiMedia.bind(this),this.createScenarioSwapElement=this.createScenarioSwapElement.bind(this),this.updateAGTScenario=this.updateAGTScenario.bind(this),this.setSoundStateForActiveScenario=this.setSoundStateForActiveScenario.bind(this),this.getTourItemInfoAndPromotionPois=this.getTourItemInfoAndPromotionPois.bind(this),this.createNewScenario=this.createNewScenario.bind(this),this.createScenarioAGT=this.createScenarioAGT.bind(this),this.createScenarioScenes=this.createScenarioScenes.bind(this),this.playScenarioPoi=this.playScenarioPoi.bind(this),this.getScenarioPoiSteps=this.getScenarioPoiSteps.bind(this),this.removeTemporaryScenario=this.removeTemporaryScenario.bind(this),this.createScenarioDataFromScenes=this.createScenarioDataFromScenes.bind(this),this.checkScriptAlreadyCreated=this.checkScriptAlreadyCreated.bind(this),this.signals={onSwitchKeyReady:new Xt.Signal},this.getTourItemInfoAndPromotionPois(),this.fireOnStopScenarioWithPoiInteractive(()=>this.pauseScenario())}playProductPois(e,t,n=!1){e=ds({tour:this.tour,poiTypes:[ue.ITEM_INFO],scenes:e,pois:t,itemTypes:[it],sleepTime:7e3,showDetail:n}).steps,this.createNewScenario(E.TEMP,Object.assign(Object.assign({},{steps:e,onStop:()=>{this.removeTemporaryScenario(!1)}}),{code:E.TEMP}),{autoReplay:!1}),this.setActiveScenarioCode(E.TEMP),this.prevActiveScenarioCode=this.activeScenarioCode}isPlaying(){var e=this.getActiveScenario();return!!e&&e.player&&e.player.playing}updatePlayList(e,t){if(e){this.props.scenarios||(this.props.scenarios=[]);var n=null==(n=this.props.scenarios)?void 0:n.findIndex(t=>t.type===e);if(!(-1<n))switch(null!=(n=this.props.scenarios)&&n.push(t),e){case E.FEATURES:this.createScenarioFeatures();break;case E.PRODUCT_LIST:this.createScenarioProductList();break;case E.BRAND:this.createScenarioBrands();break;case E.LOCATION:this.createScenarioLocations();break;case E.PROMOTION:this.createScenarioPromotions();break;case E.INFORMATION:this.createScenarioInfo();break;case E.FACILITY:this.createScenarioFacilities();break;case E.MULTIMEDIA:this.createScenarioMultiMedia();break;case E.SWAP_ELEMENT:this.createScenarioSwapElement();break;case E.SCENE:this.createScenarioScenes()}}}createScenarioDataFromScenes(e){let t=[];return e.forEach((e,n)=>{t.push({scene:e.props,hlookat:e.hlookat,vlookat:e.vlookat,orderIndex:n,actions:[{type:be.ROTATE,angle:360,speed:15,orderIndex:0}]})}),t.sort((e,t)=>e.orderIndex-t.orderIndex),{steps:t}}checkScriptAlreadyCreated(e){return!!e&&!!this.playlist.find(t=>t.key===e)}}let Ns="new",$s="played",As="paused",Ms="stopped",Ls="completed";class Ds{constructor(e){this.duration=0,this.position=0,this.speed=0,this.loop=!1,this.volume=0,this.range=0,this.enable=!0,this.streaming=!1,this.trackDuration=!1,this.progressInterval=null,this.soundObject=null,this.preload=()=>{(e=>e.get("device.ios"))(this.krpano)&&new Audio(this.sound.url)},this.getSoundObject=()=>this.soundObject,this.handlePlayingChange=()=>{this.onPlayingChange&&this.onPlayingChange(this.isPlaying())},this.handleProgressChange=()=>{this.onProgressChange&&(this.duration&&0!==this.duration||(this.duration=this.getDuration()),this.onProgressChange({position:this.getPosition(),duration:this.duration}))},this.resetProgressInterval=()=>{this.progressInterval&&clearInterval(this.progressInterval),this.progressInterval=null},this.initProgressInterval=()=>{this.progressInterval=setInterval(()=>{this.handleProgressChange()},300)},this.unloadAudio=()=>{this.soundObject&&(this.soundObject.unload(),this.soundObject=null)},this.props=e,this.id=e.id,this.code=e.code,this.name=e.name,this.sound=e.sound,this.signals=e.signals,this.krpano=e.krpano,this.duration=e.duration,this.position=e.position,this.speed=e.speed,this.enable=e.enable||!1,this.status=Ns,this.soundEnabled=e.soundEnabled||!1,this.muted=!0;var{volume:t,range:n,loop:o}=this.props;this.volume=void 0!==t?t/100:.5,this.range=void 0!==n?n:220,this.loop=void 0!==o&&o,this.streaming=void 0!==e.streaming&&e.streaming,this.stop=this.stop.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.getSoundObject=this.getSoundObject.bind(this),this.toggle=this.toggle.bind(this),this.changeVolume=this.changeVolume.bind(this),this.preload=this.preload.bind(this),this.isPlaying=this.isPlaying.bind(this),this.isPaused=this.isPaused.bind(this),this.updateSoundState=this.updateSoundState.bind(this),this.onPlayError=this.onPlayError.bind(this)}mute(e,t){var n;this.muted=e,null!=(n=this.soundObject)&&n.mute(e,t)}updateSoundState(e){this.soundEnabled=e,this.soundEnabled?this.play():this.pause()}getDuration(){return this.soundObject?this.soundObject.duration():0}getPosition(){return this.soundObject?this.soundObject.pos()[0]:0}pause(){return ce(this,arguments,void 0,function*(e=!1){this.soundObject&&this.soundObject.pause(),!0===e&&this.setPosition(0)})}play(){return ce(this,void 0,void 0,function*(){if(this.soundEnabled)if(this.soundObject)this.soundObject.playing()||this.soundObject.play();else{let e=new Wr.Howl({src:[""+this.sound.url],loop:this.loop,volume:this.volume,autoplay:!0,mute:this.muted,onend:()=>{this.status=Ls,this.handlePlayingChange(),e.loop||this.unloadAudio(),this.resetProgressInterval()},onplay:()=>{this.status=$s,this.handlePlayingChange(),this.trackDuration&&this.initProgressInterval()},onpause:()=>{this.status=As,this.handlePlayingChange(),this.resetProgressInterval()},onstop:()=>{this.status=Ms,this.handlePlayingChange(),this.resetProgressInterval()},onplayerror:this.onPlayError});e.play(),this.soundObject=e}})}onPlayError(){this.soundObject&&this.soundObject.once("unlock",this.play)}stop(){return ce(this,void 0,void 0,function*(){this.soundObject&&this.soundObject.stop(),this.unloadAudio()})}toggle(){return ce(this,arguments,void 0,function*(e=!1){this.isPlaying()?this.pause(e):this.play()})}changeVolume(e=1){e=this.volume*e,this.soundObject&&this.soundObject.fade(this.volume,e,1e3)}isPlaying(){return this.status===$s}isPaused(){return this.status===As}setPosition(e){var t=this.getSoundObject();t&&t.seek(e)}}class Is extends Ds{constructor(e){super(e),this.type="TOUR_BG",this.autoStart=!0,this.onPlayingChange=e=>{this.signals.backgroundSoundClick.dispatch(e)},this.startAuto=this.startAuto.bind(this)}startAuto(){return ce(this,void 0,void 0,function*(){this.play()})}}class Rs{constructor(e){var t;this.scenarioPlayer=null,this.scenes=[],this.autoplayReplay=!1,this.draggingMouse=!1,this.viewVLookAt=0,this.viewHLookAt=0,this.canChangeScene=!0,this.keepViewOnSceneChanged=!1,this.showNavigationHotspotLabels=!1,this.showLabel=!1,this.zoomable=!1,this.mwheel=!0,this.allPoiVisible=!0,this.singleClick=$e,this.loadingScene=!1,this.webGLSupported=!1,this.showNavigationHotspots=!1,this.showNavigationWithoutMovingHotspot=!1,this.navigationHotspotsVisible=!0,this.disabledAGTProgressBar=!1,this.startingSceneLoaded=!1,this.soundEnabled=!0,this.moveToClosestSceneDisabled=!1,this.backgroundVolumeDuringAGT=0,this.timeout=null,this.onViewChangeFuncs=[],this.onPreCheckViewChangeFuncs=[],this.hiddenLabelTypes=[],this.poiMap={},this.getBlendValue=()=>{let e=_e.DEFAULT,t=me.NORMAL;return this.blendSpeed&&me[this.blendSpeed]&&(t=me[this.blendSpeed]),this.blendMode&&_e[this.blendMode]?_e[this.blendMode].replace("{level}",t.toString()):e},this.setCanChangeScene=e=>{!this.canChangeScene&&e?setTimeout(()=>{this.canChangeScene=!0},1e3):this.canChangeScene=!1},this.getMouse=()=>this.krpano?this.krpano.get("mouse"):null,this.getPoi=(e,t)=>(e=this.getSceneById(e))?e.getPoiByCode(t):null,this.getPoiOfCurrentScene=e=>{var t=this.getActiveScene();return t?t.getPoiByCode(e):null},this.getSceneById=e=>this.scenes.find(t=>t.id===""+e)||null,this.getSceneByCode=e=>this.scenes.find(t=>t.code===e)||null,this.getActiveScene=()=>{if(!this.krpano)return null;let e=this.krpano.get("xml.scene");return e&&this.scenes.find(t=>t.code.toLowerCase()===e.toLowerCase())||null},this.fireOnSceneCompleted=e=>{if(this.krpano){let t=()=>{var e,t,n;this.krpano&&(this.signals.finishLoadingScene.dispatch(),this.startingSceneLoaded=!0,e=this.getActiveScene())&&((t=this.krpano.get("view"))&&(n=fn(this.krpano),t.fovtype=n.fovtype,t.fov=n.fov,this.krpano.set("display.framebufferscale",1)),e.setViewLimit(),e.loadPois(),this.toggleLabels(this.showLabel,e.code),this.krpano.set("view.maxpixelzoom",2),this.krpano.set("view.fovmax",e.props.fovmax||120),this.zoomable||this.krpano.set("control.fovspeed",0))};this.krpano.set("events.onblendcomplete",()=>{this.startingSceneLoaded&&t()}),this.krpano.set("events.onloadcomplete",()=>{e&&e(),this.handleOnSceneLoaded&&(this.handleOnSceneLoaded(),this.handleOnSceneLoaded=void 0),this.startingSceneLoaded||t()}),this.krpano.set("events.keep",!0)}},this.stopCurrentSceneMedia=e=>{var t=this.getActiveScene();t&&t.pois.forEach(t=>{e&&e===t.code||!(t instanceof qr||t instanceof Xr)||t.stop()})},this.pauseCurrentSceneMedia=()=>{var e=this.getActiveScene();e&&e.pois.forEach(e=>{(e instanceof qr||e instanceof Xr)&&e.pause()})},this.pauseBackgroundSound=()=>{this.backgroundSound&&this.backgroundSound.isPlaying()&&this.backgroundSound.pause()},this.resumeBackgroundSound=()=>{this.backgroundSound&&!this.backgroundSound.isPlaying()&&this.backgroundSound.isPaused()&&this.backgroundSound.play()},this.getViewChangedValues=(e,t)=>{var n=this.getActiveScene();if(n)return{hChanged:e-n.north,vChanged:t}},this.switchScene=e=>{this.moveToScene(e,{keepViewAfterMoving:!0,blendMode:"BLEND(0.5, easeInCubic)",useNonOffsetView:!0})},this.moveToScene=(e,t)=>{if(this.krpano){let i,r,s,a=0;if(void 0!==(null==t?void 0:t.hLookAt)&&null!==(null==t?void 0:t.hLookAt)&&void 0!==(null==t?void 0:t.vLookAt)&&null!==(null==t?void 0:t.vLookAt)&&(r=null==t?void 0:t.hLookAt,s=null==t?void 0:t.vLookAt,null!=t&&t.lookAtBeforeMoving)){var n=this.krpano.getView();let e=n.hlookat<0?n.hlookat+360:n.hlookat;var o=(null==t?void 0:t.hLookAt)<0?(null==t?void 0:t.hLookAt)+360:null==t?void 0:t.hLookAt;o=Math.abs(e-o);a=(o=Math.max(Math.min(Math.round(o/60),1),.5))+.2,this.krpano.call(`lookto(${null==t?void 0:t.hLookAt}, ${null==t?void 0:t.vLookAt}, ${n.fov}, tween(linear, ${o}));`)}null!=t&&t.lookAtBeforeMoving||(n=null!=t&&t.useNonOffsetView?this.krpano.getOriginalView():this.krpano.getView())&&(r=n.hlookat,s=n.vlookat),(null!=t&&t.keepViewAfterMoving||this.keepViewOnSceneChanged)&&void 0!==r&&void 0!==s&&(i=this.getViewChangedValues(r,s)),this.loadScene(e,a,i,null==t?void 0:t.blendMode)}},this.setupSoundPlugin=()=>{var e=!!this.props.scenes.find(e=>!!e.pois.find(e=>e.type===ue.SOUND));this.props.bgSound&&this.props.bgSound.enable||this.props.tourScenario||e?(this.plugins.sound=new Ir({krpano:this.krpano,signals:this.signals}),this.plugins.sound.load(this.handleOnSoundPluginLoaded)):this.signals.soundReady.dispatch()},this.handleOnMouseUp=()=>{var e;this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.draggingMouse&&(this.signals.backgroundGrab.dispatch(!0),(e=this.getActiveScene())&&e.autoShowHotspots(),setTimeout(()=>{this.draggingMouse=!1},500))},this.handleOnMouseDown=()=>{this.toggleLabels(!1),this.allPoiVisible&&(this.timeout=setTimeout(()=>{this.draggingMouse=!0,this.timeout=null,this.signals.backgroundGrab.dispatch(!1)},500))},this.moveToClosestScene=()=>{var e;!this.draggingMouse&&this.canChangeScene&&(e=this.getActiveScene())&&e.moveToClosestPoi()},this.moveByDirection=e=>{var t;this.draggingMouse||(t=this.getActiveScene())&&t.moveWithNavigationPoi(e)},this.configMouseEvents=()=>{if(this.krpano){if(this.singleClick!==Ne){let e;switch(this.singleClick){case $e:break;case Ae:e=()=>{this.moveToClosestSceneDisabled?this.moveToClosestSceneDisabled=!1:this.moveToClosestScene()}}e&&(this.krpano.set("events.onsingleclick",()=>{e()}),this.signals.floorPoiClick.add(()=>{e()}))}this.signals.toggleLabels.add(this.toggleLabels),this.krpano.set("events.onmousedown",this.handleOnMouseDown),this.krpano.set("events.onmouseup",this.handleOnMouseUp),this.signals.poiMouseUp.add(this.handleOnMouseUp),this.signals.navigationPoiClick.add(this.moveByDirection)}},this.isViewChanged=e=>{var{hlookat:e,vlookat:t,haschanged:n}=e;return(n||Math.round(e)!==Math.round(this.viewHLookAt)||Math.round(t)!==Math.round(this.viewVLookAt))&&(this.viewHLookAt=e,this.viewVLookAt=t,!0)},this.configViewSignals=()=>{this.krpano&&(this.signals.updateViewChangedEvents.add(e=>{this.onViewChangeFuncs||(this.onViewChangeFuncs=[]),this.onPreCheckViewChangeFuncs||(this.onPreCheckViewChangeFuncs=[]),(e.skipCheck?this.onPreCheckViewChangeFuncs:this.onViewChangeFuncs).push(e.handler)}),this.krpano.set("events.onviewchange",()=>{(this.onPreCheckViewChangeFuncs||[]).forEach(e=>{e()});var e=this.krpano.getView(),{hlookat:t,vlookat:n}=e;this.isViewChanged(e)&&(this.signals.onViewChanged.dispatch({hlookat:t,vlookat:n}),(this.onViewChangeFuncs||[]).forEach(e=>{e()}))}))},this.toggleNavigationHotspotsVisibility=e=>{e=null==e?this.navigationHotspotsVisible:e,this.navigationHotspotsVisible=e,this.toggleNavigationHotspots(e)},this.toggleNavigationHotspotsInAGT=(e=!0)=>{this.toggleNavigationHotspots(e)},this.toggleNavigationHotspots=(e=!0)=>{!this.showNavigationHotspots||!this.navigationHotspotsVisible&&e||this.scenes.forEach(t=>{t.toggleNavigationHotspots(e)})},this.load=e=>{let{elementId:t,onLoaded:n,startscene:o,hlookat:i,vlookat:r}=e,s=this.mapKrpanoVars(o,i,r),a=(this.startingScene=s.startscene,{preserveDrawingBuffer:!1,depth:!0,stencil:!0});this.elementId=t,((e,t=()=>{})=>{var n=document.createElement("script");let o=e;o?(o.startsWith("./")&&(o=o.slice(1)),n.src=o.startsWith("http")?""+o:""+origin+o,n.onload=t,document.head.appendChild(n)):t()})(this.props.sourceFolder.url+"/tour.js",()=>{var e=this.props.sourceFolder.url+"/tour.swf",t=""+Cn(this.props.sourceXml.url);embedpano({swf:e,xml:t,target:this.elementId,id:this.code,mwheel:this.mwheel,vars:s,consolelog:!1,webglsettings:a,onready:e=>{this.krpano=new Ar(e),this.webGLSupported=this.krpano.get("device.webGL"),this.scenes=this.props.scenes.map(e=>((e=new cs(Object.assign(Object.assign({},e),{krpano:this.krpano,tourUrl:this.props.sourceFolder.url,signals:this.signals,theme:this.props.theme,metadata:this.props.metadata,allPoiVisible:this.allPoiVisible,singleClick:this.singleClick,autoShow:this.hotspotAutoDisplayType,tourName:this.name,tourCode:this.code,showNavigationHotspots:this.showNavigationHotspots,showNavigationWithoutMovingHotspot:this.showNavigationWithoutMovingHotspot,showNavigationHotspotLabels:this.showNavigationHotspotLabels,blend:this.getBlendValue()}))).pois.forEach(e=>{e.hasDetailModal()&&(this.poiMap[e.code]=e)}),e)),this.configHotspotSignals(),this.configMouseEvents(),this.configOnBackgroundGrabbedSignal(),this.configSceneSignals(),this.configViewSignals(),this.setupSoundPlugin(),setTimeout(()=>{this.updateContextMenu(),this.setupNonSoundPlugins()},500),n&&n()},onerror:e=>{throw new Error(e)}})})},this.destroy=()=>{try{removepano(this.props.id)}catch(e){console.warn("Unmount error",e)}},this.toggleFullscreen=e=>{e?(e=>{e&&(e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.msRequestFullscreen?e.msRequestFullscreen():e.webkitEnterFullscreen&&e.webkitEnterFullscreen())})(document.getElementById("tour-layout")):document.fullscreenElement&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()),this.signals.toggleFullscreen.dispatch(e)},this.updateRadar=e=>{let t=e;(t=e?t:this.getActiveScene()||void 0)&&this.plugins.radar&&this.plugins.radar.updateHeading(-t.north)},this.fireOnPoiOver=e=>{this.signals.poiOver.add(e)},this.fireOnPoiHover=e=>{this.signals.poiHover.add(e)},this.fireOnPoiOut=e=>{this.signals.poiOut.add(e)},this.fireOnPoiClick=e=>{this.signals.poiClick.add(e)},this.fireOnRootPoiClick=e=>{this.signals.poiClicked.add(e)},this.fireOnMovingPoiClicked=e=>{this.signals.movingPoiClick.add(e)},this.fireOnPoiMediaStarted=e=>{this.signals.poiMediaPlayed.add(e)},this.fireOnPoiMediaPaused=e=>{this.signals.poiMediaPaused.add(e)},this.fireOnToggleFullScreen=e=>{this.signals.toggleFullscreen.add(e)},this.fireOnAutoRotateOneRound=e=>{this.signals.autoRotateOneRound.add(e)},this.fireOnBackgroundSoundClick=e=>{this.signals.backgroundSoundClick.add(e)},this.fireOnBackgroundGrab=e=>{this.signals.backgroundGrab.add(e)},this.fireOnLoadedPlugin=e=>{this.signals.onLoadedPlugin.add(e)},this.fireOnStartLoadingScene=e=>{this.signals.startLoadingScene.add(e)},this.fireOnFinishLoadingScene=e=>{this.signals.finishLoadingScene.add(e)},this.fireOnViewChanged=e=>{this.signals.onViewChanged.add(e)},this.fireOnToggleFloorPoi=e=>{this.signals.toggleFloorPoi.add(e)},this.fireOnSoundPlayable=e=>{this.signals.soundReady.add(e)},this.fireOnTexturePoiHover=e=>{this.signals.texturePoiHover.add(e)},this.fireOnTexturePoiClick=e=>{this.signals.texturePoiClick.add(e)},this.fireOnTexturePoiTouched=e=>{this.signals.texturePoiTouched.add(e)},this.fireOnToggleHotspotsVisibility=e=>{this.signals.toggleHotspotsVisibility.add(e)},this.fireOnHotspotNearestToCenter=e=>{this.signals.toggleHotspotNearestToCenter.add(e)},this.fireOnSetSubtitleText=e=>{this.signals.setSubtitleText.add(e)},this.fireOnOpenFuncButton=e=>{this.signals.openFunctionButton.add(e)},this.fireOnOpenMinimap=e=>{this.signals.openMinimap.add(e)},this.fireOnMovingPoiClick=e=>{this.signals.movingPoiClick.add(e)},this.stopCurrentSceneEvents=()=>{var e=this.getActiveScene();e&&(this.onPreCheckViewChangeFuncs=[],this.onViewChangeFuncs=[],e.floorPoi&&e.floorPoi.stopPlacingHotspotAtMouse(),e.toggleNavigationHotspots(!1,!0))},this.getRadarColorParams=e=>({color:"0x"+(null==(e=null==(e=null==e?void 0:e.split("#"))?void 0:e.pop())?void 0:e.slice(0,6)),opacity:e?parseInt(null==e?void 0:e.slice(6),16)/255:0}),this.updateViewOffsets=(e,t,n=!1)=>{var o,i;this.krpano&&(e||t?(({h:o,v:i}=wn(this.krpano,{x:e||0,y:t||0})),this.krpano.updateOffset(e&&o,t&&i,n)):this.krpano.updateOffset(0,0,n))},this.toggleZoom=(e=!0)=>{this.zoomable&&this.krpano&&this.krpano.set("control.touchzoom",e)},this.createScenarioPlayer=(e={})=>{this.scenarioPlayer=new Cs(Object.assign({krpano:this.krpano,tour:this,signals:this.signals,language:this.language,isPrepareDefaultAGT:this.isPrepareDefaultAGT,disabledAGTProgressBar:this.disabledAGTProgressBar,soundEnabled:this.soundEnabled},e))},this.getTourScenario=()=>this.scenarioPlayer?this.scenarioPlayer.getActiveScenario():null,this.togglePlayStepByStepId=e=>{this.scenarioPlayer&&this.scenarioPlayer.togglePlayStepByStepId(e)},this.handleOnSoundPluginLoaded=()=>{this.krpano&&(this.props.bgSound&&this.props.bgSound.enable&&this.props.bgSound.sound&&(this.backgroundSound=new Is(Object.assign(Object.assign({},this.props.bgSound),{soundEnabled:this.soundEnabled,krpano:this.krpano,signals:this.signals,delayAutoStart:this.props.autoplayOnStart,streaming:!0})),this.signals.playingSoundActionExecuted.add(()=>ce(this,void 0,void 0,function*(){this.backgroundSound.changeVolume(this.backgroundVolumeDuringAGT/100)})),this.signals.playingSoundActionStopped.add(()=>ce(this,void 0,void 0,function*(){this.backgroundSound.changeVolume(1)})),this.setupOnBackgroundSoundClickedSignal()),this.signals.soundReady.dispatch())},this.configHotspotSignals=()=>{this.krpano&&(this.fireOnMovingPoiClicked((e,t,n,o,i)=>{let r,s,a,l=0;if(null!=n&&null!=o&&(s=n,a=o,i)){var c=this.krpano.getView();let e=c.hlookat<0?c.hlookat+360:c.hlookat;var u=Math.abs(e-(n<0?n+360:n));l=(u=Math.max(Math.min(Math.round(u/60),1),.5))+.2,this.krpano.call(`lookto(${n}, ${o}, ${c.fov}, tween(linear, ${u}));`)}i||(n=this.krpano.getView())&&(s=n.hlookat,a=n.vlookat),this.keepViewOnSceneChanged&&void 0!==s&&void 0!==a&&(r=this.getViewChangedValues(s,a)),this.loadScene(e,l,r)}),this.fireOnPoiMediaStarted(e=>{this.stopCurrentSceneMedia(e),this.pauseBackgroundSound()}),this.fireOnPoiMediaPaused(this.resumeBackgroundSound))},this.setupOnBackgroundSoundClickedSignal=()=>{this.signals.backgroundSoundClick.add(e=>{e&&this.pauseCurrentSceneMedia()})},this.configOnBackgroundGrabbedSignal=()=>{this.signals.backgroundGrab.add(e=>{this.allPoiVisible=e,this.togglePoisVisibility(e)})},this.togglePoisVisibility=e=>{var t=this.getActiveScene();t&&t.togglePoisVisibility(e)},this.configSceneSignals=()=>{this.signals.startLoadingScene.add(()=>{this.loadingScene=!0}),this.signals.finishLoadingScene.add(()=>{this.loadingScene=!1})},this.mapKrpanoVars=(e,t,n)=>{let o;var i={startscene:null==(o=e?this.props.scenes.find(t=>t.code===e):o)?void 0:o.code,"view.hlookat":null==o?void 0:o.hlookat,"view.vlookat":null==o?void 0:o.vlookat,"view.fov":null==o?void 0:o.fov,"view.fovmax":null==o?void 0:o.fovmax,"view.fovmin":null==o?void 0:o.fovmin,"display.loadwhilemoving":!0};return Number.isNaN(Number(t))||Number.isNaN(Number(n))||(i["view.hlookat"]=Number(t),i["view.vlookat"]=Number(n)),i.startscene||([o]=this.props.scenes,o&&(i.startscene=o.code,i["view.fov"]=o.fov||0,i["view.fovmax"]=o.fovmax||0,i["view.fovmin"]=o.fovmin||0,Number.isNaN(Number(t))||Number.isNaN(Number(n)))&&(i["view.hlookat"]=o.hlookat||0,i["view.vlookat"]=o.vlookat||0)),i},this.props=e,this.name=e.name,this.code=e.code,this.metadata=e.metadata,this.activeMarkerColor=e.activeMarkerColor,this.language=e.language,this.isPrepareDefaultAGT=!!e.isPrepareDefaultAGT,this.krpano=void 0,this.scenes=[],this.elementId=void 0,this.backgroundSound=void 0,this.hotspotLabelsHidden=!0,this.hotspotAutoDisplayType=e.autoShow||Le,this.keepViewOnSceneChanged=e.keepView||!1,this.soundEnabled=null==(t=e.soundEnabled)||t,this.backgroundVolumeDuringAGT=null!=(t=e.bgVolumeDuringAGT)?t:0,this.zoomable=!0,void 0!==e.mwheel&&(this.mwheel=e.mwheel),void 0!==e.allPoiVisible&&(this.allPoiVisible=e.allPoiVisible),void 0!==e.singleClick&&(this.singleClick=e.singleClick),this.blendMode=e.blendMode||S.DEFAULT,this.blendSpeed=e.blendSpeed||"NORMAL",this.autoplayReplay=e.autoplayReplay,this.showNavigationHotspots=e.showNavigationHotspots||!1,this.showNavigationWithoutMovingHotspot=e.showNavigationWithoutMovingHotspot||!1,this.showNavigationHotspotLabels=e.showNavigationHotspotLabels||!1,this.disabledAGTProgressBar=e.disabledAGTProgressBar||!1,this.plugins={radar:null,gyro:null,sound:null},this.signals={toggleFullscreen:new Xt.Signal,backgroundSoundClick:new Xt.Signal,autoRotateOneRound:new Xt.Signal,autoRotateStart:new Xt.Signal,autoRotateStop:new Xt.Signal,backgroundGrab:new Xt.Signal,onLoadedPlugin:new Xt.Signal,startLoadingScene:new Xt.Signal,finishLoadingScene:new Xt.Signal,onViewChanged:new Xt.Signal,soundReady:new Xt.Signal,toggleHotspotsVisibility:new Xt.Signal,toggleHotspotNearestToCenter:new Xt.Signal,setSubtitleText:new Xt.Signal,playingSoundActionExecuted:new Xt.Signal,playingSoundActionStopped:new Xt.Signal,openFunctionButton:new Xt.Signal,muteSound:new Xt.Signal,openMinimap:new Xt.Signal,updateViewChangedEvents:new Xt.Signal,poiOver:new Xt.Signal,poiOut:new Xt.Signal,poiHover:new Xt.Signal,poiClick:new Xt.Signal,poiClicked:new Xt.Signal,movingPoiClick:new Xt.Signal,poiMediaPlayed:new Xt.Signal,poiMediaPaused:new Xt.Signal,poiMouseUp:new Xt.Signal,floorPoiClick:new Xt.Signal,navigationPoiClick:new Xt.Signal,texturePoiHover:new Xt.Signal,texturePoiClick:new Xt.Signal,texturePoiTouched:new Xt.Signal,toggleLabels:new Xt.Signal,toggleFloorPoi:new Xt.Signal,stopScenario:new Xt.Signal}}loadScene(e,t,n,o){return ce(this,void 0,void 0,function*(){var i;!this.krpano||(i=this.krpano.get("xml.scene"))&&e&&i.toLowerCase()===e.toLowerCase()||((i=this.getSceneByCode(e))?(this.stopCurrentSceneMedia(),this.stopCurrentSceneEvents(),this.resumeBackgroundSound(),this.signals.startLoadingScene.dispatch(),i.load(t,n,o),t&&(yield Jt(1e3*t)),this.updateRadar(i)):console.error("cannot find scene by code: "+e))})}toggleLabels(e=!1,t){let n=this.getActiveScene();t&&(n=this.getSceneByCode(t)),this.showLabel=e,n&&n.pois&&n.pois.length&&n.pois.forEach(e=>{(e instanceof Hr||e instanceof Fr)&&e.show&&(this.showLabel?e.show():e.hide())})}screenshot(e=0,t=0,n=!1,o="jpeg",i=1){this.webGLSupported&&this.krpano&&(e=this.krpano.get("global").webGL.makeScreenshot(e,t,n,o,i),(t=document.createElement("a")).href=e,t.download=`screenshot-${(new Date).getTime()}.`+o,t.click())}toggleFloorPois(e){this.scenes.forEach(t=>t.toggleFloorPoiVisibility(e))}getPoiByCodeFromScenes(e){try{return this.scenes.flatMap(e=>e.pois).find(t=>t.code===e)}catch(t){return console.error("Cannot find poi by code "+e),null}}initializeRadarPlugin(e){var t;this.krpano&&(t=this.getRadarColorParams(this.activeMarkerColor).color,e)&&0<e.length&&e.some(e=>!!e.enabledRadar)&&(this.plugins.radar=new Dr({krpano:this.krpano,url:we.RADAR,keep:!0,fillcolor:t,linecolor:t,signals:this.signals}),this.updateRadar())}toggleLabelVisibility(e=!0,t){t?e?this.hiddenLabelTypes=this.hiddenLabelTypes.filter(e=>e!==t):this.hiddenLabelTypes.push(t):this.hiddenLabelTypes=e?[]:[...Object.keys(he)],this.scenes.forEach(e=>{var t;null!=(t=e.toggleLabelVisibility)&&t.call(e,this.hiddenLabelTypes)}),(e=this.getActiveScene())&&e.showHotspotNearestToCenter()}getPoiByCode(e){return this.poiMap[e]}getView(){var e;return null==(e=this.krpano)?void 0:e.getView()}goToProduct(e){return ce(this,void 0,void 0,function*(){var t;if(!e)return!1;let n=this.getActiveScene();if(!n)return!1;var o,i=[...this.scenes],r=i.findIndex(e=>e.code===n.code),s=(0!==r&&(i.splice(r,1),i.unshift(n)),e.toUpperCase());let a=null,l=null;for(o of i)for(var c of o.pois)if(c.type===ue.ITEM_INFO){if(c.itemInfoCode&&s===c.itemInfoCode.toUpperCase()){a=c,l=o;break}if(null!=(t=c.itemInfo)&&t.name&&s===c.itemInfo.name.toUpperCase()){a=c,l=o;break}}return!(!a||!l||(n.code!==l.code&&(yield this.loadScene(l.code,.2)),a.lookAt(),this.signals.poiClick.dispatch(a.props),0))})}updateContextMenu(){this.krpano&&this.krpano.call("\n set(contextmenu.fullscreen, false);\n set(contextmenu.versioninfo, false);\n ")}setupNonSoundPlugins(){this.plugins.gyro=new Lr({krpano:this.krpano,signals:this.signals}),this.plugins.gyro.load()}}let Fs=()=>{(()=>{let e,{elementId:t,listeners:n,overrideConfigs:o={}}=bt(),{language:i="vi"}=o,{mobileDevice:r,tourData:s,metadata:a,tourSoundPlaying:l,activeScenario:c,soundReady:u,showSplashScreen:h,autoPlaying:d,playingTempScenario:p,playingHotspotSound:f,showSlideIn:g,bottomSheetMiddleHeight:m,activePoiCode:v,activePoi:_,tourReady:b,focusingOnVisualizer:y,backgroundSoundPlaying:w,muted:x,viewRotating:k,floorplans:S,setActiveScene:O,setLoading:E,setBackgroundSoundPlaying:T,setSoundReady:P,setTourReady:C,setActiveFloorplan:N,setActivePoi:$,setActivePoiCoords:A,setLoadingScene:M,setPoiCodeNearestToCenter:L,setViewRotating:D,setActiveTourPlugin:I}=xt(),[R,F]=se.useState(!1),[H,V]=se.useState(!1),[j,z]=se.useState(!1),[U,B]=se.useState(null),Y=se.useRef(null),W=se.useRef(!1),G=d&&!p,q=()=>{if(U){let t=U.getActiveScene();var e;t&&(null!=n&&n.onSceneChanged&&n.onSceneChanged(t),t.showHotspotNearestToCenter(),O(t),R||(e=S.find(e=>e.markers&&e.markers.find(e=>e.toScene&&e.toScene.code===t.code)))&&N(e),F(!0))}},X=(e=!0)=>{if(!U)return!1;var t=r?Qe.DYNAMIC_VERTICAL(m):Qe.HORIZONTAL;g?U.updateViewOffsets(t.x,t.y,e):U.updateViewOffsets(0,0,e)},Q=()=>{U&&(U.fireOnSceneCompleted(q),setTimeout(()=>{ce(void 0,void 0,void 0,function*(){if(U&&s)try{let e=U.startingScene;s.scenes.find(t=>t.code===e)}catch(e){console.error("Preloading start scene failed")}finally{V(!0)}else V(!0)}),U.fireOnPoiOver(({poiData:e,coords:t})=>{$(e),A(t)}),U.fireOnPoiHover(e=>{A(e)}),U.fireOnPoiOut(()=>{$(null),A(null)}),U.fireOnPoiClick(e=>{if(null!=n&&n.onPoiClicked&&n.onPoiClicked(),e)switch(e.type){case ue.VIDEO:case ue.GALLERY:case ue.MOVING:case ue.PROMOTION:break;case ue.ITEM_INFO:null!=e&&e.itemInfo,$(null),A(null)}}),U.fireOnBackgroundSoundClick(e=>{T(e)}),U.fireOnBackgroundGrab(e=>{}),U.fireOnLoadedPlugin((e,t)=>{I({pluginName:e,state:!!t})}),U.fireOnMovingPoiClick((e,t)=>{var n=S.find(e=>e.code===t);n&&N(n)}),U.fireOnStartLoadingScene(()=>{M(!0),W.current=!0}),U.fireOnFinishLoadingScene(()=>{M(!1),W.current=!1}),U.fireOnViewChanged(e=>{k||D(!0),Z(U.getView())}),U.fireOnTexturePoiHover(e=>{}),U.fireOnTexturePoiTouched(e=>{}),U.fireOnTexturePoiClick(e=>{}),U.fireOnHotspotNearestToCenter(e=>{L(e)}),U.fireOnSetSubtitleText(e=>{}),U.fireOnOpenFuncButton(e=>{}),U.fireOnOpenMinimap(e=>{}),U.initializeRadarPlugin(S),null!=n&&n.onTourLoaded&&n.onTourLoaded(U),E(!1)},500))},Z=Yt(e=>{},500);se.useEffect(()=>{if(s&&t){let e=new Rs(Object.assign(Object.assign({},s),{language:i,metadata:a||void 0,soundEnabled:l}));e.fireOnSoundPlayable(()=>{var t=s.tourScenario,n=t&&c&&c.code===t?null:c;e.createScenarioPlayer({defaultScenario:n||t,defaultScenarioCode:null==n?void 0:n.code}),P(!0)}),B(e)}},[s,t]),se.useEffect(()=>{if(U){U.load({elementId:t,onLoaded:Q});let n=e=>{e.touches.length||U.handleOnMouseUp()};var e;return r&&(e=document.getElementById(t))&&e.addEventListener("touchend",n,{passive:!1}),()=>{var e;U&&U.destroy(),r&&(e=document.getElementById(t))&&e.removeEventListener("touchend",n)}}},[U]),se.useEffect(()=>{if(G)try{Y.current&&clearTimeout(Y.current),W.current=!0,Y.current=setTimeout(()=>{W.current=!1},300)}catch(e){console.error("PreventedUpdateTourView has error",e)}},[G]),se.useEffect(()=>{G||f?X(!1):null!=Y&&Y.current?X(!!v):setTimeout(()=>{X()},200)},[G,f,g]),se.useEffect(()=>{R&&u&&H&&C(!0)},[R,u,H]),se.useEffect(()=>{!h&&u&&U&&U.backgroundSound&&U.backgroundSound.startAuto()},[h,u,U]),se.useEffect(()=>{var e;U&&_&&!d&&(e=U.getPoiByCode(null==_?void 0:_.code))&&(null==e?void 0:e.type)===ue.MOVING&&null!=e&&e.onOut()},[d,U]),se.useEffect(()=>{var e;b&&U&&(e=U.getActiveScene())&&e.autoShowHotspots()},[b,U]),se.useEffect(()=>{var e;b&&!j&&c&&(null!=(e=null==U?void 0:U.scenarioPlayer)&&e.updateAGTScenario(c,1),z(!0))},[b,c]),se.useEffect(()=>{U&&(U.scenarioPlayer&&U.scenarioPlayer.setSoundStateForActiveScenario(l),U.backgroundSound)&&U.backgroundSound.updateSoundState(l)},[l,U]),se.useEffect(()=>{var e;U&&(y?(U.signals.poiMediaPaused.active=!0,l&&null!=(e=U.backgroundSound)&&e.isPaused()&&null!=(e=U.backgroundSound)&&e.play()):(U.signals.poiMediaPaused.active=!1,U.pauseCurrentSceneMedia(),d&&null!=(e=U.scenarioPlayer)&&e.pauseScenario(),w&&null!=(e=U.backgroundSound)&&e.pause()))},[y]),se.useEffect(()=>{var e;null!=(e=null==U?void 0:U.backgroundSound)&&e.mute&&U.backgroundSound.mute(x)},[x]);var K=null==(e=null==U?void 0:U.getTourScenario())?void 0:e.code;se.useEffect(()=>{setTimeout(()=>{var e;null!=(e=null==U?void 0:U.signals)&&e.muteSound&&U.signals.muteSound.dispatch(x)})},[x,K])})();var e=bt().elementId;return v.jsx("div",{className:"w-full h-full",id:e})},Hs=()=>{kt();var e=xt().canInitVisualizer;return v.jsx(v.Fragment,{children:e&&v.jsx(Fs,{})})},Vs=e=>v.jsx(_t,{config:{apiHost:e.apiHost,elementId:e.elementId,overrideConfigs:e.config,listeners:{onTourLoaded:e.onTourLoaded,onPoiClicked:e.onPoiClicked}},children:v.jsx(wt,{children:v.jsx(Hs,{})})});var js=function(){var e,n,o,i,r,s,a,l,c,u,h,d,p,f;return Yr||(Yr=1,e=NaN,n="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),h=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return u.Date.now()},Br=function(e,t,n){var o,i,r,s,a,l,c=0,u=!1,h=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function _(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function b(e){var n=e-l;return void 0===l||t<=n||n<0||h&&r<=e-c}function y(){var e,n=f();if(b(n))return w(n);a=setTimeout(y,(e=t-(n-l),h?p(e,r-(n-c)):e))}function w(e){return a=void 0,v&&o?_(e):(o=i=void 0,s)}function x(){var e=f(),n=b(e);if(o=arguments,i=this,l=e,n){if(void 0===a)return c=e=l,a=setTimeout(y,t),u?_(e):s;if(h)return a=setTimeout(y,t),_(l)}return void 0===a&&(a=setTimeout(y,t)),s}return t=m(t)||0,g(n)&&(u=!!n.leading,r=(h="maxWait"in n)?d(m(n.maxWait)||0,t):r,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==a&&clearTimeout(a),o=l=i=a=void(c=0)},x.flush=function(){return void 0===a?s:w(f())},x}),Br;function g(e){var t=typeof e;return e&&("object"==t||"function"==t)}function m(t){if("number"==typeof t)return t;if("symbol"==typeof(c=t)||(l=c)&&"object"==typeof l&&h.call(c)==n)return e;var l;if("string"!=typeof(t=g(t)?g(l="function"==typeof t.valueOf?t.valueOf():t)?l+"":l:t))return 0===t?t:+t;t=t.replace(o,"");var c=r.test(t);return c||s.test(t)?a(t.slice(2),c?2:8):i.test(t)?e:+t}}(),zs=n(js),Us="undefined"!=typeof window?se.useLayoutEffect:se.useEffect;function Bs(e,t=500,n){let o=se.useRef();!function(e){let t=se.useRef(e);t.current=e,se.useEffect(()=>()=>{t.current()},[])}(()=>{o.current&&o.current.cancel()});var i=se.useMemo(()=>{let i=zs(e,t,n);var r=(...e)=>i(...e);return r.cancel=()=>{i.cancel()},r.isPending=()=>!!o.current,r.flush=()=>i.flush(),r},[e,t,n]);return se.useEffect(()=>{o.current=zs(e,t,n)},[e,t,n]),i}var Ys,Ws="undefined"==typeof window;function Gs(e={}){let{initializeWithValue:t=!0}=e,[n,o]=(Ws&&(t=!1),se.useState(()=>t?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0})),i=Bs(o,e.debounceDelay);function r(){(e.debounceDelay?i:o)({width:window.innerWidth,height:window.innerHeight})}return function(e,t,n,o){let i=se.useRef(t);Us(()=>{i.current=t},[t]),se.useEffect(()=>{let t=window;if(t&&t.addEventListener){let n=e=>{i.current(e)};return t.addEventListener(e,n,o),()=>{t.removeEventListener(e,n,o)}}},[e,n,o])}("resize",r),Us(()=>{r()},[]),n}(e=>{e.IFRAME="IFRAME",e.NEW_TAB="NEW_TAB"})(Ys=Ys||{});let qs={key:"NAVIGATION_ARROWS"},Xs={key:"SIMULATION_VR"},Qs={key:"SOUND"},Zs={key:"FULLSCREEN"},Ks={key:"HOTSPOT"},Js={key:"SHARE"},ea={key:"SEARCH"},ta=se.createContext(void 0),na=({children:e,config:t})=>{var[n,o]=se.useState(!1),[i,r]=se.useState(!1),[s,a]=se.useState(!1);let[l,c]=se.useState(!1),[u,h]=se.useState(!1),[d,p]=se.useState(!1),[f,g]=se.useState(!1);var[m,_]=se.useState(!1);let[b,y]=se.useState(!1),[w,x]=se.useState(!1),[k,S]=se.useState(!1);var[O,E]=se.useState(!1),[T,P]=se.useState([]),[C,N]=se.useState(void 0),[$,A]=se.useState(void 0),M=se.useMemo(()=>({[Zs.key]:f,[Ks.key]:u,[qs.key]:l,[Xs.key]:b,[Qs.key]:d,[ea.key]:w,[Js.key]:k}),[f,u,l,b,w,d,k]);return v.jsx(ta.Provider,{value:{mobile:t.mobile,soundPlaying:d,showGuide:i,activeFunctionButtonCode:C,showChatBtn:n,showFloorplan:s,showNavigationArrows:l,showHotspotLabels:u,setShowFloorplan:a,setActiveFunctionButtonCode:N,setShowChatBtn:o,setShowNavigationArrows:c,setShowGuide:r,setSoundPlaying:p,setShowHotspotLabels:h,hiddenPoiLabelTypes:T,setHiddenPoiLabelTypes:P,fullscreen:f,setFullscreen:g,showChatbox:m,setShowChatbox:_,setCanUseGyroscope:y,visibleActions:M,setMenuOpened:x,setShowShareLink:S,canUseGyroscope:b,menuOpened:w,showShareLink:k,playingAgt:O,setPlayingAgt:E,gallery:$,setGallery:A},children:e})},oa=()=>{var e=se.useContext(le).tour,t=(()=>{var e=ae.useContext(ta);if(void 0===e)throw new Error("useLayout must be used within a LayoutProvider");return e})().mobile,n=Gs().width,o=se.useMemo(()=>"calc(var(--screen-width) / 2 - 16px)",[]);e=null==e?void 0:e.props;return v.jsxs("div",{className:"cvtv-ui-layout__tour-logo",style:{"--tour-logo-max-width":o,"--screen-width":n?n+"px":"100%"},children:[(null==e?void 0:e.tourLogo)&&v.jsx("img",{src:e.tourLogo.file.url,alt:"logo"}),!(null==e||!e.showTourName)&&!t&&v.jsx("span",{children:e.name})]})},ia=()=>{var{}=se.useContext(le),[,,]=se.useState(null),[,,]=se.useState(!1);return v.jsxs(v.Fragment,{children:[v.jsx(oa,{}),v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"cvtc-beta-tour__group-action"}),v.jsx("div",{className:"cvtc-beta-tour__group-pin-action"})]})]})},ra=se.createContext(void 0),sa=({children:e,config:t})=>{let[n,o]=se.useState(Object.assign({},t));return se.useEffect(()=>{var e;if(!t.apiHost)throw new Error("apiHost is required");let n=t.elementId;t.elementId||(n="virtual-tour-"+(null==(e=t.overrideConfigs)?void 0:e.tourCode)),o(Object.assign(Object.assign({},t),{elementId:n}))},[t]),v.jsx(ra.Provider,{value:n,children:e})},aa=e=>v.jsx(sa,{config:{apiHost:e.apiHost,elementId:e.elementId,overrideConfigs:e.config},children:e.tourLoaded&&v.jsx(na,{config:{mobile:e.mobile},children:v.jsx(ia,{})})}),la=e=>{let t=se.useContext(le),[n,o]=se.useState(!1);return v.jsxs("div",{className:"w-full h-full",children:[v.jsx("style",{children:'*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Be Vietnam Pro,sans-serif;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:Be Vietnam Pro,sans-serif;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--color-yellow:#f1c40f;--color-blue-on-dark:#3498db;--color-blue-on-light:#2980b9;--color-blue-on-white:#244385;--color-blue-primary:#3585f7;--color-blue-navy:#244385b8;--color-white-8:#ffffff14;--color-white-16:#ffffff29;--color-white-24:#ffffff3d;--color-white-32:#ffffff52;--color-white-48:#ffffff7a;--color-white-64:#ffffffa3;--color-white-72:#ffffffb8;--color-white-88:#ffffffe0;--color-white:#fff;--color-black-0:#0000;--color-black-4:#0000000a;--color-black-8:#00000014;--color-black-16:#00000029;--color-black-24:#0000003d;--color-black-32:#00000052;--color-black-36:#0000005c;--color-black-48:#0000007a;--color-black-64:#000000a3;--color-black-72:#000000b8;--color-black-80:#000c;--color-black:#000;--color-orange-on-light:#e67e22;--color-orange-on-dark:#f39c12;--color-green-on-light:#27ae60;--color-green-on-dark:#2ecc71;--color-green-72-on-dark:#2ecc71b8;--color-red-on-light:#c0392b;--color-red-on-dark:#e74c3c;--color-purple-on-light:#8e44ad;--color-purple-on-dark:#9b59b6;--color-cyan-on-light:#0095c4;--color-cyan-on-dark:#49a8db;--color-gray-1:#1d1d1d;--color-gray-2:#333;--color-gray-3:#ebebeb;--color-gray-4:#666;--color-gray-5:#999;--color-gray-6:#d6d6d6;--color-gold-on-light:#a48456;--color-gold-on-dark:#d1ba83;--color-pink:#ed2e7e;--color-pink-on-light:#c30052;--color-turquoise-on-light:#16a085;--color-turquoise-on-dark:#1abc9c;--color-mint:#00dfe0;--space-2:2px;--space-4:4px;--space-8:8px;--space-10:10px;--space-12:12px;--space-13:13px;--space-14:14px;--space-16:16px;--space-18:18px;--space-20:20px;--space-22:22px;--space-24:24px;--space-28:28px;--space-32:32px;--space-36:36px;--space-40:40px;--space-48:48px;--space-56:56px;--space-60:60px;--space-64:64px;--space-72:72px;--space-80:80px;--space-88:88px;--space-150:150px;--space-limit:640px;--space-infinity:9999px;--number-infinity:9999;--font-family:"Be Vietnam Pro",sans-serif;--font-size-10:10px;--font-size-12:12px;--font-size-13:13px;--font-size-14:14px;--font-size-15:15px;--font-size-16:16px;--font-size-18:18px;--font-size-20:20px;--font-size-24:24px;--font-size-28:28px;--font-size-32:32px;--font-size-34:34px;--font-size-40:40px;--font-size-48:48px;--font-size-54:54px;--font-size-64:64px;--font-style-italic:italic;--font-style-not-italic:normal;--font-weight-hairline:100;--font-weight-thin:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--line-height-13:13px;--line-height-14:14px;--line-height-15:15px;--line-height-16:16px;--line-height-18:18px;--line-height-20:20px;--line-height-22:22px;--line-height-24:24px;--line-height-26:26px;--line-height-28:28px;--line-height-32:32px;--line-height-36:36px;--line-height-40:40px;--line-height-42:42px;--line-height-48:48px;--line-height-60:60px;--letter-spacing-1:1px;--text-shadow:1px 1px 1px var(--color-black);--z-order-mask:1072;--z-order-modal-on-mask:1073;--z-order-action-on-mask:1074;--tour-logo-max-width:0}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.absolute{position:absolute}.relative{position:relative}.-top-0\\.5{top:-2px}.bottom-\\[-14\\.14213562373095px\\]{bottom:-14.14213562373095px}.left-\\[5px\\]{left:5px}.left-\\[calc\\(50\\%_-_7\\.07px\\)\\]{left:calc(50% - 7.07px)}.z-0{z-index:0}.block{display:block}.flex{display:flex}.h-2\\.5{height:10px}.h-\\[14\\.14213562373095px\\]{height:14.14213562373095px}.h-full{height:100%}.w-2\\.5{width:10px}.w-\\[14\\.14213562373095px\\]{width:14.14213562373095px}.w-full{width:100%}.min-w-\\[60px\\]{min-width:60px}.-translate-x-2\\/4{--tw-translate-x:-50%}.-translate-x-2\\/4,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.rotate-45{--tw-rotate:45deg}.rotate-45,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.overflow-hidden{overflow:hidden}.rounded{border-radius:4px}.rounded-md{border-radius:6px}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.6\\)\\]{background-color:#0009}.px-3{padding-left:12px;padding-right:12px}.py-2{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-base{font-size:16px;line-height:24px}.font-normal{font-weight:400}.leading-5{line-height:20px}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.shadow-\\[0_1px_2px_-2px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.16\\)\\2c 0_3px_6px_0_rgba\\(0\\2c 0\\2c 0\\2c 0\\.12\\)\\2c 0_5px_12px_4px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.09\\)\\]{--tw-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017;--tw-shadow-colored:0 1px 2px -2px var(--tw-shadow-color),0 3px 6px 0 var(--tw-shadow-color),0 5px 12px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.invert{--tw-invert:invert(100%)}.filter,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.paused{animation-play-state:paused}'}),v.jsx("style",{children:'@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:local("icomoon"),url(fonts/icomoon.eot?o0athh#iefix) format("embedded-opentype"),url(fonts/icomoon.ttf?o0athh) format("truetype"),url(fonts/icomoon.woff?o0athh) format("woff"),url(fonts/icomoon.svg?o0athh#icomoon) format("svg")}[class*=" icon-"],[class^=icon-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-size:24px;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}[class*=" icon-"]:before,[class^=icon-]:before{color:#1d1d1d;font-size:1em}'}),v.jsx("style",{children:'.icon-person-pin-circle-off_24x24:before{color:#fff;content:"\\eb55"}.icon-clik-rotation-on_24x24:before{content:"\\eb4e"}.icon-clik-rotation-off_24x24:before{content:"\\eb4f"}.icon-map:before{content:"\\eb4d"}.icon-person_pin_circle_24x24:before{content:"\\eb4a"}.icon-vrpano-galery_24x24:before{content:"\\eb4b"}.icon-union_24x24:before{content:"\\eb4c"}.icon-logo-clik-white-64x64:before{color:#fff;content:"\\eb48"}.icon-joystick_24x24:before{color:#007aff;content:"\\eb47"}.icon-door_24x24:before{content:"\\eb49"}.icon-new-bulb_24x24:before{color:#fff;content:"\\eb46"}.icon-show-ai_24x24:before{content:"\\eb45"}.icon-language-cn-circle_24x24 .path1:before{color:#ee1c25;content:"\\eb17"}.icon-language-cn-circle_24x24 .path2:before{color:#ff0;content:"\\eb18";margin-left:-1em}.icon-language-cn-circle_24x24 .path3:before{color:#ff0;content:"\\eb19";margin-left:-1em}.icon-language-cn-circle_24x24 .path4:before{color:#ff0;content:"\\eb1a";margin-left:-1em}.icon-language-cn-circle_24x24 .path5:before{color:#ff0;content:"\\eb1b";margin-left:-1em}.icon-language-cn-circle_24x24 .path6:before{color:#ff0;content:"\\eb1c";margin-left:-1em}.icon-language-en-circle_24x24 .path1:before{color:#fff;content:"\\eb1d"}.icon-language-en-circle_24x24 .path2:before{color:#012169;content:"\\eb1e";margin-left:-1em}.icon-language-en-circle_24x24 .path3:before{color:#012169;content:"\\eb1f";margin-left:-1em}.icon-language-en-circle_24x24 .path4:before{color:#012169;content:"\\eb20";margin-left:-1em}.icon-language-en-circle_24x24 .path5:before{color:#012169;content:"\\eb21";margin-left:-1em}.icon-language-en-circle_24x24 .path6:before{color:#012169;content:"\\eb22";margin-left:-1em}.icon-language-en-circle_24x24 .path7:before{color:#012169;content:"\\eb23";margin-left:-1em}.icon-language-en-circle_24x24 .path8:before{color:#012169;content:"\\eb24";margin-left:-1em}.icon-language-en-circle_24x24 .path9:before{color:#012169;content:"\\eb25";margin-left:-1em}.icon-language-en-circle_24x24 .path10:before{color:#c8102e;content:"\\eb26";margin-left:-1em}.icon-language-en-circle_24x24 .path11:before{color:#c8102e;content:"\\eb27";margin-left:-1em}.icon-language-en-circle_24x24 .path12:before{color:#c8102e;content:"\\eb28";margin-left:-1em}.icon-language-en-circle_24x24 .path13:before{color:#c8102e;content:"\\eb29";margin-left:-1em}.icon-language-en-circle_24x24 .path14:before{color:#c8102e;content:"\\eb2a";margin-left:-1em}.icon-language-jp-circle_24x24 .path1:before{color:#fff;content:"\\eb2b"}.icon-language-jp-circle_24x24 .path2:before{color:#bc002d;content:"\\eb2c";margin-left:-1em}.icon-language-kr-circle_24x24 .path1:before{color:#fff;content:"\\eb2d"}.icon-language-kr-circle_24x24 .path2:before{color:#cd2e3a;content:"\\eb2e";margin-left:-1em}.icon-language-kr-circle_24x24 .path3:before{color:#0047a0;content:"\\eb2f";margin-left:-1em}.icon-language-kr-circle_24x24 .path4:before{color:#cd2e3a;content:"\\eb30";margin-left:-1em}.icon-language-kr-circle_24x24 .path5:before{color:#181b34;content:"\\eb31";margin-left:-1em}.icon-language-kr-circle_24x24 .path6:before{color:#181b34;content:"\\eb32";margin-left:-1em}.icon-language-kr-circle_24x24 .path7:before{color:#181b34;content:"\\eb33";margin-left:-1em}.icon-language-kr-circle_24x24 .path8:before{color:#181b34;content:"\\eb34";margin-left:-1em}.icon-language-kr-circle_24x24 .path9:before{color:#181b34;content:"\\eb35";margin-left:-1em}.icon-language-kr-circle_24x24 .path10:before{color:#181b34;content:"\\eb36";margin-left:-1em}.icon-language-kr-circle_24x24 .path11:before{color:#181b34;content:"\\eb37";margin-left:-1em}.icon-language-kr-circle_24x24 .path12:before{color:#181b34;content:"\\eb38";margin-left:-1em}.icon-language-kr-circle_24x24 .path13:before{color:#181b34;content:"\\eb39";margin-left:-1em}.icon-language-kr-circle_24x24 .path14:before{color:#181b34;content:"\\eb3a";margin-left:-1em}.icon-language-kr-circle_24x24 .path15:before{color:#181b34;content:"\\eb3b";margin-left:-1em}.icon-language-kr-circle_24x24 .path16:before{color:#181b34;content:"\\eb3c";margin-left:-1em}.icon-language-kr-circle_24x24 .path17:before{color:#181b34;content:"\\eb3d";margin-left:-1em}.icon-language-kr-circle_24x24 .path18:before{color:#181b34;content:"\\eb3e";margin-left:-1em}.icon-language-kr-circle_24x24 .path19:before{color:#181b34;content:"\\eb3f";margin-left:-1em}.icon-language-kr-circle_24x24 .path20:before{color:#181b34;content:"\\eb40";margin-left:-1em}.icon-language-kr-circle_24x24 .path21:before{color:#181b34;content:"\\eb41";margin-left:-1em}.icon-language-kr-circle_24x24 .path22:before{color:#181b34;content:"\\eb42";margin-left:-1em}.icon-language-vn-circle_24x24 .path1:before{color:#da251d;content:"\\eb43"}.icon-language-vn-circle_24x24 .path2:before{color:#ff0;content:"\\eb44";margin-left:-1em}.icon-action_open_with_close_24x24:before{content:"\\eb16"}.icon-action_open_with_24x24:before{content:"\\eb14"}.icon-action_translate_24x24:before{content:"\\eb15"}.icon-clik-expand-arrow-up:before{content:"\\eb13"}.icon-volume_off_round-24x24:before{content:"\\eb08"}.icon-volume_up_round-24x24:before{content:"\\eb09"}.icon-clik_share_ios_outlined-24x24:before{content:"\\eb0a"}.icon-hotspot_video_on_outlined-24x24:before{content:"\\eb0b"}.icon-hotspot_facility_on_outlined-24x24:before{content:"\\eb0c"}.icon-hotspot_location_on_outlined-24x24:before{content:"\\eb0d"}.icon-hotspot_brand_on_outlined-24x24:before{content:"\\eb0e"}.icon-hotspot_feature_on_outlined-24x24:before{content:"\\eb0f"}.icon-hotspot_scene_on_outlined-24x24:before{content:"\\eb10"}.icon-functions_others_view_hotspot__off_outlined-24x24:before{content:"\\eb11"}.icon-functions_others_view_hotspot__on_outlined-24x24:before{content:"\\eb12"}.icon-play_youtube_24x24:before{content:"\\eb07"}.icon-grid_on_24x24:before{content:"\\eb05"}.icon-grid_off_24x24:before{content:"\\eb06"}.icon-subtitles_24x24:before{content:"\\eb03"}.icon-subtitles_off_24x24:before{content:"\\eb04"}.icon-push_pin_24x24:before{content:"\\eaff"}.icon-push_pin_outline_24x24:before{content:"\\eb00"}.icon-layout_off_24x24:before{content:"\\eb01"}.icon-layout_on_24x24:before{content:"\\eb02"}.icon-remove_red_eye_24x24:before{content:"\\eafc"}.icon-visibility_off_24x24:before{content:"\\eafd"}.icon-remove_red_eye_filled_24x24:before{content:"\\eafe"}.icon-loyalty_24x24:before{content:"\\eaf2"}.icon-local_activity_outline_24x24:before{content:"\\eaf9"}.icon-arrow_back_24x24:before{content:"\\eafa"}.icon-playlist_play_24x24:before{content:"\\eafb"}.icon-navigation_24x24:before{content:"\\eaf5"}.icon-deblur_24x24:before{content:"\\eaf6"}.icon-palette_24x24:before{content:"\\eaf7"}.icon-slideshow_24x24:before{content:"\\eaf8"}.icon-widgets_24x24:before{content:"\\eaf4"}.icon-gift_24x24:before{content:"\\eaf3"}.icon-closed_caption_disabled_24x24:before{content:"\\eaf1"}.icon-logo_clik_123x40:before{content:"\\eaee"}.icon-3D_24x24:before{content:"\\eaed"}.icon-floor_plan_24x24:before{content:"\\eaec"}.icon-camera_24x24:before{content:"\\eaeb"}.icon-device_screen_lock_rotation_24x24:before{content:"\\eae5"}.icon-device_screen_rotation_24x24:before{content:"\\eae6"}.icon-action_label_off_24x24:before{content:"\\eae7"}.icon-action_label_24x24:before{content:"\\eae8"}.icon-image_music_off_24x24:before{content:"\\eae9"}.icon-image_music_note_24x24:before{content:"\\eaea"}.icon-image_burst_mode_24x24:before{content:"\\eae1"}.icon-av_playlist_add_check_24x24:before{content:"\\eae2"}.icon-communication_list-alt_24x24:before{content:"\\eae3"}.icon-communication_support_24x24:before{content:"\\eae4"}.icon-navigation_fullscreen_exit_24x24:before{content:"\\eae0"}.icon-gyro_100x100:before{content:"\\eadf"}.icon-navigation_fullscreen_24x24:before{content:"\\eade"}.icon-slow_motion_video_24x24:before{content:"\\eadc"}.icon-directions_walk_24X24:before{content:"\\eadd"}.icon-toggle_star_24x24:before{content:"\\ead9"}.icon-toggle_star_half_24x24:before{content:"\\eada"}.icon-toggle_star_outline_24x24:before{content:"\\eadb"}.icon-home_finance_24x24:before{content:"\\ead8"}.icon-logo_clik_60x68 .path1:before{color:#1e6eb4;content:"\\ead6"}.icon-logo_clik_60x68 .path2:before{color:#28c8f0;content:"\\ead7";margin-left:-.8828125em}.icon-home_compass_25x25:before{content:"\\ead5"}.icon-home_assets_air_24x24:before{content:"\\eac7"}.icon-home_assets_area_24x24:before{content:"\\eac8"}.icon-home_assets_bath_tub_24x24:before{content:"\\eac9"}.icon-home_assets_bed_24x24:before{content:"\\eaca"}.icon-home_assets_ceiling_24x24:before{content:"\\eacb"}.icon-home_assets_door_24x24:before{content:"\\eacc"}.icon-home_assets_electrical_24x24:before{content:"\\eacd"}.icon-home_assets_floor_24x24:before{content:"\\eace"}.icon-home_assets_layout_24x24:before{content:"\\eacf"}.icon-home_assets_smart_home_24x24:before{content:"\\ead0"}.icon-home_assets_sofa_single_24x24:before{content:"\\ead1"}.icon-home_assets_wall_24x24:before{content:"\\ead2"}.icon-home_room_dinning_room_24x24:before{content:"\\ead3"}.icon-home_room_kitchen_24x24:before{content:"\\ead4"}.icon-iphone_rotate_300x300:before{content:"\\eac6"}.icon-ipad_rotate_300x300:before{content:"\\eac5"}.icon-flag_en_512x512 .path1:before{color:#f0f0f0;content:"\\eab5"}.icon-flag_en_512x512 .path2:before{color:#0052b4;content:"\\eab6";margin-left:-1em}.icon-flag_en_512x512 .path3:before{color:#0052b4;content:"\\eab7";margin-left:-1em}.icon-flag_en_512x512 .path4:before{color:#0052b4;content:"\\eab8";margin-left:-1em}.icon-flag_en_512x512 .path5:before{color:#0052b4;content:"\\eab9";margin-left:-1em}.icon-flag_en_512x512 .path6:before{color:#0052b4;content:"\\eaba";margin-left:-1em}.icon-flag_en_512x512 .path7:before{color:#0052b4;content:"\\eabb";margin-left:-1em}.icon-flag_en_512x512 .path8:before{color:#0052b4;content:"\\eabc";margin-left:-1em}.icon-flag_en_512x512 .path9:before{color:#0052b4;content:"\\eabd";margin-left:-1em}.icon-flag_en_512x512 .path10:before{color:#d80027;content:"\\eabe";margin-left:-1em}.icon-flag_en_512x512 .path11:before{color:#d80027;content:"\\eabf";margin-left:-1em}.icon-flag_en_512x512 .path12:before{color:#d80027;content:"\\eac0";margin-left:-1em}.icon-flag_en_512x512 .path13:before{color:#d80027;content:"\\eac1";margin-left:-1em}.icon-flag_en_512x512 .path14:before{color:#d80027;content:"\\eac2";margin-left:-1em}.icon-flag_vi_512x512 .path1:before{color:#d80027;content:"\\eac3"}.icon-flag_vi_512x512 .path2:before{color:#ffda44;content:"\\eac4";margin-left:-1em}.icon-toggle_background_32x120:before{content:"\\eab4"}.icon-logo_clik_44x18:before{content:"\\e900"}.icon-marker_pick_11x18:before{content:"\\eab2"}.icon-marker_close_14x14:before{content:"\\ea3b"}.icon-marker_pin_12x24:before{content:"\\ea3c"}.icon-sound-off_24x24:before{content:"\\e901"}.icon-pause_circle_outline_24x24:before{content:"\\e902"}.icon-skip_next_24x24:before{content:"\\e903"}.icon-cast_24x24:before{content:"\\e904"}.icon-sound-on_24x24:before{content:"\\e905"}.icon-play_circle_filled_24x24:before{content:"\\e906"}.icon-skip_previous_24x24:before{content:"\\e907"}.icon-shuffle_24x24:before{content:"\\e908"}.icon-pause_circle_filled_24x24 .path1:before{color:#000;content:"\\e909"}.icon-pause_circle_filled_24x24 .path2:before{color:#fff;content:"\\eab3";margin-left:-1em}.icon-fast_forward_24x24:before{content:"\\e90a"}.icon-fast_rewind_24x24:before{content:"\\e90b"}.icon-play_arrow_24x24:before{content:"\\e90c"}.icon-repeat_24x24:before{content:"\\e90d"}.icon-pause_single_24x24:before{content:"\\e90e"}.icon-airplay_24x24:before{content:"\\e90f"}.icon-play_circle_outline_24x24:before{content:"\\e910"}.icon-search_small_minus_24x24:before{content:"\\e911"}.icon-search_small_plus_24x24:before{content:"\\e912"}.icon-text_align_center_24x24:before{content:"\\e913"}.icon-plus_circle_outline_24x24:before{content:"\\e914"}.icon-search_24x24:before{content:"\\e915"}.icon-minus_24x24:before{content:"\\e916"}.icon-plus_24x24:before{content:"\\e917"}.icon-edit_compass_en_24x24:before{content:"\\e918"}.icon-text_align_right_24x24:before{content:"\\e919"}.icon-list_check_24x24:before{content:"\\e91a"}.icon-text_align_justify_24x24:before{content:"\\e91b"}.icon-minus_circle_outline_24x24:before{content:"\\e91c"}.icon-show_24x24:before{content:"\\e91d"}.icon-copy_24x24:before{content:"\\e91e"}.icon-add_to_queue_24x24:before{content:"\\e91f"}.icon-comment_minus_24x24:before{content:"\\e920"}.icon-select_multiple_24x24:before{content:"\\e921"}.icon-list_ol_24x24:before{content:"\\e922"}.icon-minus_circle_24x24:before{content:"\\e923"}.icon-move_24x24:before{content:"\\e924"}.icon-comment_plus_24x24:before{content:"\\e925"}.icon-hide_24x24:before{content:"\\e926"}.icon-move_horizontal_24x24:before{content:"\\e927"}.icon-text_align_left_24x24:before{content:"\\e928"}.icon-search_small_24x24:before{content:"\\e929"}.icon-move_vertical_24x24:before{content:"\\e92a"}.icon-minus_square_24x24:before{content:"\\e92b"}.icon-edit_24x24:before{content:"\\e92c"}.icon-comment_check_24x24:before{content:"\\e92d"}.icon-plus_circle_24x24:before{content:"\\e92e"}.icon-comment_24x24:before{content:"\\e92f"}.icon-list_ul_24x24:before{content:"\\e930"}.icon-plus_square_24x24:before{content:"\\e931"}.icon-list_plus_24x24:before{content:"\\e932"}.icon-list_minus_24x24:before{content:"\\e933"}.icon-device_monitor_24x24:before{content:"\\e934"}.icon-device_mobile_alt_24x24:before{content:"\\e935"}.icon-devices:before{content:"\\e936"}.icon-device_tablet_24x24:before{content:"\\e937"}.icon-device_mobile_24x24:before{content:"\\e938"}.icon-device_laptop_24x24:before{content:"\\e939"}.icon-home_building_24x24:before{content:"\\e93a"}.icon-home_alt_fill_24x24:before{content:"\\e93b"}.icon-home_heart_24x24:before{content:"\\e93c"}.icon-home_check_24x24:before{content:"\\e93d"}.icon-home_plus_24x24:before{content:"\\e93e"}.icon-home_alt_minus_24x24:before{content:"\\e93f"}.icon-home_x_24x24:before{content:"\\e940"}.icon-home_outline_24x24:before{content:"\\e941"}.icon-home_alt_plus_24x24:before{content:"\\e942"}.icon-home_alt_x_24x24:before{content:"\\e943"}.icon-home_alt_outline_24x24:before{content:"\\e944"}.icon-home_alt_check_24x24:before{content:"\\e945"}.icon-home_minus_24x24:before{content:"\\e946"}.icon-home_heart-1_24x24:before{content:"\\e947"}.icon-home_fill_24x24:before{content:"\\e948"}.icon-transfer_24x24:before{content:"\\e949"}.icon-cylinder_24x24:before{content:"\\e94a"}.icon-bar_right_24x24:before{content:"\\e94b"}.icon-window_check_24x24:before{content:"\\e94c"}.icon-data_24x24:before{content:"\\e94d"}.icon-window_sidebar_24x24:before{content:"\\e94e"}.icon-window_terminal_24x24:before{content:"\\e94f"}.icon-bar_left_24x24:before{content:"\\e950"}.icon-code_24x24:before{content:"\\e951"}.icon-window_close_24x24:before{content:"\\e952"}.icon-window_24x24:before{content:"\\e953"}.icon-bar_bottom_24x24:before{content:"\\e954"}.icon-window_code_block_24x24:before{content:"\\e955"}.icon-bar_top_24x24:before{content:"\\e956"}.icon-terminal_24x24:before{content:"\\e957"}.icon-user_id_card_24x24:before{content:"\\e958"}.icon-user_x_24x24:before{content:"\\e959"}.icon-user_minus_24x24:before{content:"\\e95a"}.icon-user_circle_24x24:before{content:"\\e95b"}.icon-user_plus_24x24:before{content:"\\e95c"}.icon-user_voice_24x24:before{content:"\\e95d"}.icon-user_24x24:before{content:"\\e95e"}.icon-user_check_24x24:before{content:"\\e95f"}.icon-user_pin_24x24:before{content:"\\e960"}.icon-calendar_event_24x24:before{content:"\\e961"}.icon-calendar_x_24x24:before{content:"\\e962"}.icon-calendar_minus_24x24:before{content:"\\e963"}.icon-calendar_week_24x24:before{content:"\\e964"}.icon-calendar_calendar_24x24:before{content:"\\e965"}.icon-calendar_edit_24x24:before{content:"\\e966"}.icon-calendar_plus_24x24:before{content:"\\e967"}.icon-calendar_check_24x24:before{content:"\\e968"}.icon-calendar_24x24:before{content:"\\e969"}.icon-bar_chart_alt_24x24:before{content:"\\e96a"}.icon-pie_chart_outline_24x24:before{content:"\\e96b"}.icon-trending_down_24x24:before{content:"\\e96c"}.icon-line_chart_down_24x24:before{content:"\\e96d"}.icon-pie_chart_25_24x24:before{content:"\\e96e"}.icon-pie_chart_75_24x24:before{content:"\\e96f"}.icon-doughnut_chart_24x24:before{content:"\\e970"}.icon-pie_chart_outline_25_24x24:before{content:"\\e971"}.icon-bar_chart_square_24x24:before{content:"\\e972"}.icon-bar_chart_24x24:before{content:"\\e973"}.icon-bar_chart_horizontal_24x24:before{content:"\\e974"}.icon-trending_up_24x24:before{content:"\\e975"}.icon-line_chart_up_24x24:before{content:"\\e976"}.icon-pie_chart_50_24x24:before{content:"\\e977"}.icon-menu_more_vertical_24x24:before{content:"\\e978"}.icon-grid_big_round_24x24:before{content:"\\e979"}.icon-grid_small_24x24:before{content:"\\e97a"}.icon-menu_duo_24x24:before{content:"\\e97b"}.icon-grid_small_round_24x24:before{content:"\\e97c"}.icon-navigation_slide_stick_24x24:before{content:"\\e97d"}.icon-menu_close_big_24x24:before{content:"\\e97e"}.icon-grid_dashboard_24x24:before{content:"\\e97f"}.icon-grid_big_24x24:before{content:"\\e980"}.icon-menu_add_collapse_24x24:before{content:"\\e981"}.icon-menu_alt_01_24x24:before{content:"\\e982"}.icon-grid_dashboard_02_24x24:before{content:"\\e983"}.icon-grid_round_24x24:before{content:"\\e984"}.icon-menu_close_small_24x24:before{content:"\\e985"}.icon-grid_horizontal_24x24:before{content:"\\e986"}.icon-menu_alt_04_24x24:before{content:"\\e987"}.icon-menu_more_horizontal_24x24:before{content:"\\e988"}.icon-menu_alt_02_24x24:before{content:"\\e989"}.icon-menu_add_expand_24x24:before{content:"\\e98a"}.icon-menu_hamburger_24x24:before{content:"\\e98b"}.icon-grid_vertical_24x24:before{content:"\\e98c"}.icon-menu_alt_05_24x24:before{content:"\\e98d"}.icon-grid_horizontal_round_24x24:before{content:"\\e98e"}.icon-grid_24x24:before{content:"\\e98f"}.icon-menu_alt_03_24x24:before{content:"\\e990"}.icon-grid_vertical_round_24x24:before{content:"\\e991"}.icon-warning_outline_24x24:before{content:"\\e992"}.icon-error_outline_24x24:before{content:"\\e993"}.icon-warning_24x24:before{content:"\\e994"}.icon-info_circle_24x24:before{content:"\\e995"}.icon-info_square_24x24:before{content:"\\e996"}.icon-info_square_outline_24x24:before{content:"\\e997"}.icon-info_circle_outline_24x24:before{content:"\\e998"}.icon-error_24x24:before{content:"\\e999"}.icon-notification_24x24:before{content:"\\e99a"}.icon-notification_active_24x24:before{content:"\\e99b"}.icon-notification_deactivated_24x24:before{content:"\\e99c"}.icon-notification_dot_24x24:before{content:"\\e99d"}.icon-notification_minus_24x24:before{content:"\\e99e"}.icon-notification_outline_24x24:before{content:"\\e99f"}.icon-notification_outline_dot_24x24:before{content:"\\e9a0"}.icon-notification_outline_minus_24x24:before{content:"\\e9a1"}.icon-notification_outline_plus_24x24:before{content:"\\e9a2"}.icon-notification_plus_24x24:before{content:"\\e9a3"}.icon-dot_03_m_24x24:before{content:"\\e9a4"}.icon-dot_05_xl_24x24:before{content:"\\e9a5"}.icon-line_sx_24x24:before{content:"\\e9a6"}.icon-dot_04_l_24x24:before{content:"\\e9a7"}.icon-line_l_24x24:before{content:"\\e9a8"}.icon-dot_02_s_24x24:before{content:"\\e9a9"}.icon-line_m_24x24:before{content:"\\e9aa"}.icon-dot_01_xs_24x24:before{content:"\\e9ab"}.icon-line_xl_24x24:before{content:"\\e9ac"}.icon-line_s_24x24:before{content:"\\e9ad"}.icon-google_24x24:before{content:"\\e9ae"}.icon-reddit_24x24:before{content:"\\e9af"}.icon-linkedIn_24x24:before{content:"\\e9b0"}.icon-zalo_24x24:before{content:"\\e9b1"}.icon-messenger_24x24:before{content:"\\e9b2"}.icon-css3_24x24:before{content:"\\e9b3"}.icon-instagram_24x24:before{content:"\\e9b4"}.icon-dropbox_24x24:before{content:"\\e9b5"}.icon-unsplash_24x24:before{content:"\\e9b6"}.icon-behance_24x24:before{content:"\\e9b7"}.icon-adobe_xd_24x24:before{content:"\\e9b8"}.icon-slack_24x24:before{content:"\\e9b9"}.icon-javascript_24x24:before{content:"\\e9ba"}.icon-figma_24x24:before{content:"\\e9bb"}.icon-discord_24x24:before{content:"\\e9bc"}.icon-github_24x24:before{content:"\\e9bd"}.icon-spotify_24x24:before{content:"\\e9be"}.icon-paypal_24x24:before{content:"\\e9bf"}.icon-app_store_24x24:before{content:"\\e9c0"}.icon-spectrum_24x24:before{content:"\\e9c1"}.icon-twitter_24x24:before{content:"\\e9c2"}.icon-facebook_24x24:before{content:"\\e9c3"}.icon-apple_24x24:before{content:"\\e9c4"}.icon-trello_24x24:before{content:"\\e9c5"}.icon-linkpath_24x24:before{content:"\\e9c6"}.icon-play_store_24x24:before{content:"\\e9c7"}.icon-html5_24x24:before{content:"\\e9c8"}.icon-stack_overflow_24x24:before{content:"\\e9c9"}.icon-dribbble_24x24:before{content:"\\e9ca"}.icon-invision_24x24:before{content:"\\e9cb"}.icon-snapchat_24x24:before{content:"\\e9cc"}.icon-youtube_24x24:before{content:"\\e9cd"}.icon-sketch_24x24:before{content:"\\e9ce"}.icon-coolicons_24x24:before{content:"\\e9cf"}.icon-file_image_24x24:before{content:"\\e9d0"}.icon-file_blank_outline_24x24:before{content:"\\e9d1"}.icon-note_24x24:before{content:"\\e9d2"}.icon-cloud_close_24x24:before{content:"\\e9d3"}.icon-cloud_up_24x24:before{content:"\\e9d4"}.icon-file_js_24x24:before{content:"\\e9d5"}.icon-file_png_24x24:before{content:"\\e9d6"}.icon-file_find_24x24:before{content:"\\e9d7"}.icon-folder_open_24x24:before{content:"\\e9d8"}.icon-file_jpg_24x24:before{content:"\\e9d9"}.icon-file_pdf_24x24:before{content:"\\e9da"}.icon-folder_plus_24x24:before{content:"\\e9db"}.icon-file_html_24x24:before{content:"\\e9dc"}.icon-cloud_check_24x24:before{content:"\\e9dd"}.icon-file_new_24x24:before{content:"\\e9de"}.icon-cloud_down_24x24:before{content:"\\e9df"}.icon-folder_24x24:before{content:"\\e9e0"}.icon-file_css_24x24:before{content:"\\e9e1"}.icon-file_archive_24x24:before{content:"\\e9e2"}.icon-cloud_off_24x24:before{content:"\\e9e3"}.icon-file_svg_24x24:before{content:"\\e9e4"}.icon-file_blank_fill_24x24:before{content:"\\e9e5"}.icon-cloud_24x24:before{content:"\\e9e6"}.icon-cloud_outline_24x24:before{content:"\\e9e7"}.icon-file_minus_24x24:before{content:"\\e9e8"}.icon-folder_minus_24x24:before{content:"\\e9e9"}.icon-clock_24x24:before{content:"\\e9ea"}.icon-refresh_02_24x24:before{content:"\\e9eb"}.icon-download_done_24x24:before{content:"\\e9ec"}.icon-layers_alt_24x24:before{content:"\\e9ed"}.icon-slider_01_24x24:before{content:"\\e9ee"}.icon-trash_empty_24x24:before{content:"\\e9ef"}.icon-location_outline_24x24:before{content:"\\e9f0"}.icon-log_out_24x24:before{content:"\\e9f1"}.icon-help_circle_outline_24x24:before{content:"\\e9f2"}.icon-settings_24x24:before{content:"\\e9f3"}.icon-done_all_24x24:before{content:"\\e9f4"}.icon-location_map_24x24:before{content:"\\e9f5"}.icon-off_outline_close_24x24:before{content:"\\e9f6"}.icon-alarm_24x24:before{content:"\\e9f7"}.icon-checkbox_24x24:before{content:"\\e9f8"}.icon-tag-outline_24x24:before{content:"\\e9f9"}.icon-flag_fill_24x24:before{content:"\\e9fa"}.icon-cookie_24x24:before{content:"\\e9fb"}.icon-color_24x24:before{content:"\\e9fc"}.icon-share_24x24:before{content:"\\e9fd"}.icon-map_24x24:before{content:"\\e9fe"}.icon-radio_filled_24x24:before{content:"\\e9ff"}.icon-briefcase_24x24:before{content:"\\ea00"}.icon-settings_filled_24x24:before{content:"\\ea01"}.icon-mail_24x24:before{content:"\\ea02"}.icon-flag_outline_24x24:before{content:"\\ea03"}.icon-radio_24x24:before{content:"\\ea04"}.icon-external_link_24x24:before{content:"\\ea05"}.icon-trash_full_24x24:before{content:"\\ea06"}.icon-unlink_24x24:before{content:"\\ea07"}.icon-slider_03_24x24:before{content:"\\ea08"}.icon-circle_check_outline_24x24:before{content:"\\ea09"}.icon-sad_24x24:before{content:"\\ea0a"}.icon-happy_24x24:before{content:"\\ea0b"}.icon-layers_24x24:before{content:"\\ea0c"}.icon-help_circle_24x24:before{content:"\\ea0d"}.icon-settings_future_24x24:before{content:"\\ea0e"}.icon-stopwatch_24x24:before{content:"\\ea0f"}.icon-off_close_24x24:before{content:"\\ea10"}.icon-tag_24x24:before{content:"\\ea11"}.icon-location_24x24:before{content:"\\ea12"}.icon-credit_card_24x24:before{content:"\\ea13"}.icon-exit_24x24:before{content:"\\ea14"}.icon-circle_checked_24x24:before{content:"\\ea15"}.icon-command_24x24:before{content:"\\ea16"}.icon-circle_check_24x24:before{content:"\\ea17"}.icon-path_24x24:before{content:"\\ea18"}.icon-phone_24x24:before{content:"\\ea19"}.icon-label_24x24:before{content:"\\ea1a"}.icon-checkbox_square_24x24:before{content:"\\ea1b"}.icon-slider_02_24x24:before{content:"\\ea1c"}.icon-mail_open_24x24:before{content:"\\ea1d"}.icon-confused_24x24:before{content:"\\ea1e"}.icon-image_alt_24x24:before{content:"\\ea1f"}.icon-heart_outline_24x24:before{content:"\\ea20"}.icon-download_24x24:before{content:"\\ea21"}.icon-share_outline_24x24:before{content:"\\ea22"}.icon-loading_24x24:before{content:"\\ea23"}.icon-bulb_24x24:before{content:"\\ea24"}.icon-heart_fill_24x24:before{content:"\\ea25"}.icon-link_24x24:before{content:"\\ea26"}.icon-refresh_24x24:before{content:"\\ea27"}.icon-checkbox_checked_24x24:before{content:"\\ea28"}.icon-done_24x24:before{content:"\\ea29"}.icon-alarm_add_24x24:before{content:"\\ea2a"}.icon-credit_card_alt_24x24:before{content:"\\ea2b"}.icon-help_questionmark_24x24:before{content:"\\ea2c"}.icon-link_02_24x24:before{content:"\\ea2d"}.icon-deg_720_24x24:before{content:"\\ea2e"}.icon-ar_24x24:before{content:"\\ea2f"}.icon-image_slide_24x24:before{content:"\\ea30"}.icon-info_24x24:before{content:"\\ea31"}.icon-language_24x24:before{content:"\\ea32"}.icon-layout_24x24:before{content:"\\ea33"}.icon-money_24x24:before{content:"\\ea34"}.icon-navigator_24x24:before{content:"\\ea35"}.icon-panorama_24x24:before{content:"\\ea36"}.icon-rental_24x24:before{content:"\\ea38"}.icon-deg_360_24x24:before{content:"\\ea37"}.icon-mode_2D_24x24:before{content:"\\ea39"}.icon-mode_3D_24x24:before{content:"\\ea3a"}.icon-click_24x24:before{content:"\\ea3d"}.icon-touch_24x24:before{content:"\\ea3e"}.icon-number_1_24x24:before{content:"\\ea3f"}.icon-number_2_24x24:before{content:"\\ea40"}.icon-number_3_24x24:before{content:"\\ea41"}.icon-number_4_24x24:before{content:"\\ea42"}.icon-number_5_24x24:before{content:"\\ea43"}.icon-number_6_24x24:before{content:"\\ea44"}.icon-number_7_24x24:before{content:"\\ea45"}.icon-number_8_24x24:before{content:"\\ea46"}.icon-number_9_24x24:before{content:"\\ea47"}.icon-sport_24x24:before{content:"\\ea48"}.icon-gym_24x24:before{content:"\\ea49"}.icon-shopping_center_24x24:before{content:"\\ea4a"}.icon-bridge_24x24:before{content:"\\ea4b"}.icon-kid_playground_24x24:before{content:"\\ea4c"}.icon-yacht_24x24:before{content:"\\ea4d"}.icon-hospital_24x24:before{content:"\\ea4e"}.icon-culture_24x24:before{content:"\\ea4f"}.icon-museum_24x24:before{content:"\\ea50"}.icon-club_house_24x24:before{content:"\\ea51"}.icon-tree_24x24:before{content:"\\ea52"}.icon-hotel_24x24:before{content:"\\ea53"}.icon-swimming_pool_24x24:before{content:"\\ea54"}.icon-building_24x24:before{content:"\\ea55"}.icon-community_24x24:before{content:"\\ea56"}.icon-city_24x24:before{content:"\\ea57"}.icon-water_24x24:before{content:"\\ea58"}.icon-villa_24x24:before{content:"\\ea59"}.icon-golf_24x24:before{content:"\\ea5a"}.icon-school_24x24:before{content:"\\ea5b"}.icon-wooden_floor_24x24:before{content:"\\ea5c"}.icon-grocery_24x24:before{content:"\\ea5d"}.icon-park_24x24:before{content:"\\ea5e"}.icon-coffee_24x24:before{content:"\\ea5f"}.icon-hotspot_collapse_24x24:before{content:"\\ea60"}.icon-walk_24x24:before{content:"\\ea61"}.icon-parking_24x24:before{content:"\\ea62"}.icon-airpot_24x24:before{content:"\\ea63"}.icon-restaurant_24x24:before{content:"\\ea64"}.icon-market_24x24:before{content:"\\ea65"}.icon-scene_day_24x24:before{content:"\\ea66"}.icon-view_aerial_24x24:before{content:"\\ea67"}.icon-stair_up_24x24:before{content:"\\ea68"}.icon-elevator_up_24x24:before{content:"\\ea69"}.icon-elevator_normal_24x24:before{content:"\\ea6a"}.icon-scene_night_24x24:before{content:"\\ea6b"}.icon-stair_down_24x24:before{content:"\\ea6c"}.icon-view_walking_24x24:before{content:"\\ea6d"}.icon-elevator_down_24x24:before{content:"\\ea6e"}.icon-hotspot_place_24x24:before{content:"\\ea6f"}.icon-transport_motorbike_24x24:before{content:"\\ea70"}.icon-transport_car_24x24:before{content:"\\ea71"}.icon-transport_bicycle_24x24:before{content:"\\ea72"}.icon-transport_bus_24x24:before{content:"\\ea73"}.icon-transport_walk_24x24:before{content:"\\ea74"}.icon-small_long_down_24x24:before{content:"\\ea75"}.icon-thin_long_left_24x24:before{content:"\\ea76"}.icon-circle_chevron_right_24x24:before{content:"\\ea77"}.icon-long_down_24x24:before{content:"\\ea78"}.icon-short_up_24x24:before{content:"\\ea79"}.icon-thin_long_02_down_24x24:before{content:"\\ea7a"}.icon-chevron_big_right_24x24:before{content:"\\ea7b"}.icon-thin_long_up_24x24:before{content:"\\ea7c"}.icon-long_up_left_24x24:before{content:"\\ea7d"}.icon-chevron_down_24x24:before{content:"\\ea7e"}.icon-thin_long_02_left_24x24:before{content:"\\ea7f"}.icon-long_bottom_down_24x24:before{content:"\\ea80"}.icon-chevron_right_24x24:before{content:"\\ea81"}.icon-chevron_left_24x24:before{content:"\\ea82"}.icon-small_long_left_24x24:before{content:"\\ea83"}.icon-chevron_up_24x24:before{content:"\\ea84"}.icon-thin_long_down_24x24:before{content:"\\ea85"}.icon-long_left_24x24:before{content:"\\ea86"}.icon-circle_chevron_down_24x24:before{content:"\\ea87"}.icon-shrink_24x24:before{content:"\\ea88"}.icon-thin_long_02_up_24x24:before{content:"\\ea89"}.icon-chevron_duo_left_24x24:before{content:"\\ea8a"}.icon-sub_right_24x24:before{content:"\\ea8b"}.icon-thin_big_up_24x24:before{content:"\\ea8c"}.icon-caret_right_24x24:before{content:"\\ea8d"}.icon-chevron_duo_up_24x24:before{content:"\\ea8e"}.icon-chevron_duo_down_24x24:before{content:"\\ea8f"}.icon-short_right_24x24:before{content:"\\ea90"}.icon-caret_up_24x24:before{content:"\\ea91"}.icon-circle_chevron_left_24x24:before{content:"\\ea92"}.icon-circle_right_24x24:before{content:"\\ea93"}.icon-chevron_duo_right_24x24:before{content:"\\ea94"}.icon-circle_down_24x24:before{content:"\\ea95"}.icon-short_left_24x24:before{content:"\\ea96"}.icon-small_long_right_24x24:before{content:"\\ea97"}.icon-circle_chevron_up_24x24:before{content:"\\ea98"}.icon-chevron_big_up_24x24:before{content:"\\ea99"}.icon-rotate_24x24:before{content:"\\ea9a"}.icon-chevron_big_down_24x24:before{content:"\\ea9b"}.icon-long_up_24x24:before{content:"\\ea9c"}.icon-long_up_right_24x24:before{content:"\\ea9d"}.icon-caret_down_24x24:before{content:"\\ea9e"}.icon-thin_long_02_right_24x24:before{content:"\\ea9f"}.icon-long_bottom_up_24x24:before{content:"\\eaa0"}.icon-long_right_24x24:before{content:"\\eaa1"}.icon-caret_left_24x24:before{content:"\\eaa2"}.icon-small_long_up_24x24:before{content:"\\eaa3"}.icon-circle_up_24x24:before{content:"\\eaa4"}.icon-short_down_24x24:before{content:"\\eaa5"}.icon-circle_left_24x24:before{content:"\\eaa6"}.icon-chevron_big_left_24x24:before{content:"\\eaa7"}.icon-first_page_24x24:before{content:"\\eaa8"}.icon-unfold_more_24x24:before{content:"\\eaa9"}.icon-sub_left_24x24:before{content:"\\eaaa"}.icon-thin_big_left_24x24:before{content:"\\eaab"}.icon-last_page_24x24:before{content:"\\eaac"}.icon-thin_big_right_24x24:before{content:"\\eaad"}.icon-expand_24x24:before{content:"\\eaae"}.icon-unfold_less_24x24:before{content:"\\eaaf"}.icon-thin_big_down_24x24:before{content:"\\eab0"}.icon-thin_long_right_24x24:before{content:"\\eab1"}.icon-near-me_24x24:before{content:"\\eaef"}.icon-near-me-disabled_24x24:before{content:"\\eaf0"}.icon-video_library_24x24:before{content:"\\eb50"}.icon-clik-sound_24x24:before{content:"\\eb51"}.icon-repeat-off_24x24:before{content:"\\eb52"}.icon-pause_circle_24x24:before{content:"\\eb53"}.icon-ar:before{content:"\\eb54"}.icon-clik-sound:before{content:"\\eb56"}'}),v.jsx("style",{children:".cvtv-moving-label-poi{--tw-text-opacity:1;--tw-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017;--tw-shadow-colored:0 1px 2px -2px var(--tw-shadow-color),0 3px 6px 0 var(--tw-shadow-color),0 5px 12px 4px var(--tw-shadow-color);background-color:#0009;border-radius:4px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity,1));cursor:pointer;font-size:16px;font-weight:400;line-height:20px;min-width:60px;padding:8px 12px;pointer-events:auto;text-align:center}.cvtv-moving-label-poi__inner{border-radius:6px;height:100%;overflow:hidden;width:100%}.cvtv-moving-label-poi__arrow{bottom:-14.14213562373095px;height:14.14213562373095px;left:calc(50% - 7.07px);overflow:hidden;position:absolute;width:14.14213562373095px;z-index:0}.cvtv-moving-label-poi__arrow__content{--tw-translate-x:-50%;--tw-translate-y:0px;--tw-rotate:45deg;background-color:#0009;display:block;height:10px;left:5px;position:relative;top:-7px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));width:10px}.cvtv-product-info-poi__marker{background-color:#0000;border:1px solid #0000;border-radius:100px;position:relative}.cvtv-product-info-poi__marker--label{padding:11px}.cvtv-product-info-poi__marker .info-poi{align-items:center;display:flex;justify-content:center;position:relative;width:0}.cvtv-product-info-poi__marker .info-poi__icon{left:-11px;position:absolute;top:0}.cvtv-product-info-poi__marker .info-poi__label{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative;width:0}.cvtv-product-info-poi__marker .info-poi__label .text{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-family:bold;font-size:14px;line-height:20px;max-width:200px;overflow:hidden;padding-left:20px;text-overflow:ellipsis;white-space:nowrap}.cvtv-product-info-poi__marker .info-poi__label .chevron{padding-left:20px}.cvtv-product-info-poi__marker .info-poi__label .chevron:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));content:var(--tw-content)}.cvtv-product-info-poi__marker--visible{--tw-backdrop-blur:blur(24px);--tw-backdrop-brightness:brightness(1);--tw-backdrop-opacity:opacity(1);animation:poi-item-info-bg-animation .5s ease 0s 1 normal forwards;animation-duration:1s;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);background-color:#0000003d;transition-duration:1s;transition-property:background;transition-timing-function:cubic-bezier(.4,0,.2,1)}.cvtv-product-info-poi__marker--visible .info-poi{animation:poi-item-info-animation .5s ease 0s 1 normal forwards;overflow:hidden}.cvtv-product-info-poi__marker--visible .info-poi__icon{position:static}.cvtv-product-info-poi__marker--visible .info-poi__label{width:auto}@keyframes pin-poi-animation{0%{opacity:0}to{opacity:1}}@keyframes poi-item-info-bg-animation{0%{background-color:#0000}to{background-color:#0000007a}}@keyframes poi-item-info-animation{0%{width:0}to{width:100%}}"}),v.jsx("style",{children:'.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow,.cvtv-poi-laser-tooltip .cvtv-poi-laser-tooltip__line-wrap__slash-line{animation:slash-pop-animation .15s linear 0s forwards;-webkit-animation:slash-pop-animation .15s linear 0s forwards}.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__straight-line,.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{animation:straight-pop-animation .15s linear .15s forwards;-webkit-animation:straight-pop-animation .15s linear .15s forwards;left:212px;top:-213px}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header,.cvtv-poi-laser-tooltip-content__image{animation:animation-of-content + .2s .2s ease .15s forwards;opacity:0;width:150px}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__footer [class*=icon-]:before,.cvtv-poi-laser-tooltip-content__header{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.cvtv-poi-laser-tooltip-content__body__main,.cvtv-poi-laser-tooltip-content__body__sub,.cvtv-poi-laser-tooltip-content__header{-webkit-box-orient:vertical;-webkit-line-clamp:5;display:-webkit-box;max-height:16px * 5;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap;word-break:break-word}.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header{text-transform:uppercase}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header{--tw-translate-y:4px;font-size:12px;line-height:16px;text-shadow:1px 1px 1px #000;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:normal}.cvtv-poi-laser-tooltip-content__header{margin-bottom:4px;margin-left:2px}.cvtv-poi-laser-tooltip-content__image{--tw-shadow:0 1px 8px #0000003d;--tw-shadow-colored:0 1px 8px var(--tw-shadow-color);background-color:#ffffff7a;border-radius:8px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);max-height:640px;object-fit:contain;pointer-events:auto;width:150px}.cvtv-poi-laser-tooltip-content__body{margin-bottom:4px;padding:4px 0 8px 2px}.cvtv-poi-laser-tooltip-content__body__main,.cvtv-poi-laser-tooltip-content__body__sub{padding:4px 0 0}.cvtv-poi-laser-tooltip-content__body__main{font-weight:700;text-transform:uppercase}.cvtv-poi-laser-tooltip-content__footer{align-items:center;display:flex;display:-ms-flexbox;font-weight:700;height:20px;justify-content:end;padding:4px 0 0 16px}.cvtv-poi-laser-tooltip-content__footer__icon,.cvtv-poi-laser-tooltip-content__footer__text{pointer-events:auto}.cvtv-poi-laser-tooltip-content__footer__icon{font-size:14px;line-height:20px;margin-top:2px}.cvtv-poi-laser-tooltip-content .bds-poi-gallery{display:flex;flex-wrap:wrap;height:150px - 2px;pointer-events:auto;position:relative;width:150px - 2px}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));height:100%;width:100%}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item img,.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item video{--tw-bg-opacity:1;background-color:rgb(214 214 214/var(--tw-bg-opacity,1));height:100%;object-fit:cover;width:100%}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__mask{align-items:center;background-color:#0000007a;bottom:0;display:flex;font-size:20px;height:50%;justify-content:center;line-height:28px;position:absolute;right:0;width:33.33%;z-index:1}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-next,.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-prev{--tw-translate-y:-50%;cursor:pointer;position:absolute;text-shadow:none;top:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-prev{left:0}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-next{right:0}.cvtv-poi-laser-tooltip{--tw-translate-x:-0.5px;--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip__focusing-point,.cvtv-poi-laser-tooltip__point{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));border-radius:9999px}.cvtv-poi-laser-tooltip__point{--tw-shadow:0 0 1px #000;--tw-shadow-colored:0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:7px;width:7px}.cvtv-poi-laser-tooltip__focusing-point{height:11px;width:11px}.cvtv-poi-laser-tooltip__body{animation-duration:.5s;animation-timing-function:cubic-bezier(.4,0,.2,1);bottom:0;left:0;pointer-events:none;position:absolute;text-shadow:0 1px 4px #00000040;transition-duration:.5s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.cvtv-poi-laser-tooltip__line-wrap{bottom:2px;left:2px;position:absolute;width:100%}.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow,.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{--tw-shadow:0 0 1px #000;--tw-shadow-colored:0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.cvtv-poi-laser-tooltip__line-wrap__slash-line,.cvtv-poi-laser-tooltip__line-wrap__straight-line{z-index:1}.cvtv-poi-laser-tooltip__line-wrap__slash-line,.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow{--tw-rotate:-45deg;background:#fff;height:1px;left:1px;position:absolute;top:-1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform-origin:left bottom;width:0}.cvtv-poi-laser-tooltip__line-wrap__straight-line,.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{background:linear-gradient(90deg,#fff,#ffffff1a);height:1px;position:absolute;width:0}.cvtv-poi-laser-tooltip-content{align-items:center;display:flex;gap:12px;justify-content:center;pointer-events:auto;position:relative}.cvtv-poi-laser-tooltip-content__popup{animation:animation-popup-content 1s linear forwards;-webkit-animation:animation-popup-content 1s linear forwards;display:flex;flex-direction:column;pointer-events:auto;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__image{margin-bottom:8px}.cvtv-poi-laser-tooltip-content__popup .popup__image,.cvtv-poi-laser-tooltip-content__popup .popup__video{--tw-shadow:0 1px 8px #0000003d;--tw-shadow-colored:0 1px 8px var(--tw-shadow-color);border-radius:16px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__video{filter:drop-shadow(0 1px 8px rgba(0,0,0,.32));position:relative}.cvtv-poi-laser-tooltip-content__popup .popup__video .video__content{border-radius:16px;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__video .video__icon{--tw-translate-x:-50%;--tw-translate-y:-50%;left:50%;position:absolute;top:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__popup\n.popup__video>[class^=icon-]:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.cvtv-poi-laser-tooltip-content__popup .popup__info{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__info .info__title{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-size:12px;font-weight:700;line-height:15px;margin-bottom:2px;text-shadow:1px 1px 1px #000;white-space:normal}.cvtv-poi-laser-tooltip-content__popup .popup__info .info__subtitle{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-size:10px;font-weight:500;line-height:13px;text-shadow:1px 1px 1px #000;white-space:normal}.cvtv-poi-laser-tooltip-content__popup--small{align-items:center;display:flex;flex-direction:column;justify-content:center;width:116px}.cvtv-poi-laser-tooltip-content__popup--small .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:80px}.cvtv-poi-laser-tooltip-content__popup--small .popup__video{width:80px}.cvtv-poi-laser-tooltip-content__popup--medium .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:160px}.cvtv-poi-laser-tooltip-content__popup--medium .popup__video{width:160px}.cvtv-poi-laser-tooltip-content__popup--large .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:240px}.cvtv-poi-laser-tooltip-content__popup--large .popup__video{width:240px}.cvtv-poi-laser-tooltip-content__pin{align-items:center;display:flex;justify-content:center;position:relative}.cvtv-poi-laser-tooltip-content__pin .pin__content{border-radius:4px;display:flex;overflow:hidden;position:relative}.cvtv-poi-laser-tooltip-content__pin .pin__content:after{--tw-content:"";border-radius:4px;content:var(--tw-content);left:0;position:absolute;top:0}.cvtv-poi-laser-tooltip-content__pin .pin__icon{--tw-shadow:0px 1px 8px #00000052;--tw-shadow-colored:0px 1px 8px var(--tw-shadow-color);animation:animation-icon 1s linear;-webkit-animation:animation-icon 1s linear;border-radius:50%;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:flex;height:32px;overflow:hidden;width:32px}.cvtv-poi-laser-tooltip-content__pin .pin__icon .icon__image,.cvtv-poi-laser-tooltip-content__pin .pin__icon .icon__image-strip{height:100%;width:100%}.cvtv-poi-laser-tooltip-content__pin\n.pin__icon\n.icon__image-strip\n.image-strip__content{background-size:var(--width-image-trip) var(--height-image-trip);height:100%;width:100%}.cvtv-poi-laser-tooltip-content__pin--bottom,.cvtv-poi-laser-tooltip-content__pin--top{flex-direction:column}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content,.cvtv-poi-laser-tooltip-content__pin--top .pin__content{height:var(--size-pin-content);width:1px}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content:after,.cvtv-poi-laser-tooltip-content__pin--top .pin__content:after{animation:animation-pin-vertical .5s linear forwards;-webkit-animation:animation-pin-vertical .5s linear forwards;height:0;width:100%}.cvtv-poi-laser-tooltip-content__pin--left,.cvtv-poi-laser-tooltip-content__pin--right{flex-direction:row}.cvtv-poi-laser-tooltip-content__pin--left .pin__content,.cvtv-poi-laser-tooltip-content__pin--right .pin__content{height:1px;width:var(--size-pin-content)}.cvtv-poi-laser-tooltip-content__pin--left .pin__content:after,.cvtv-poi-laser-tooltip-content__pin--right .pin__content:after{animation:animation-pin-horizontal .5s linear forwards;-webkit-animation:animation-pin-horizontal .5s linear forwards;height:100%;width:0}.cvtv-poi-laser-tooltip-content__pin--left .pin__content,.cvtv-poi-laser-tooltip-content__pin--top .pin__content{--tw-rotate:180deg;order:2;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__pin--left .pin__icon,.cvtv-poi-laser-tooltip-content__pin--top .pin__icon{order:1}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content,.cvtv-poi-laser-tooltip-content__pin--right .pin__content{--tw-rotate:0deg;order:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__icon,.cvtv-poi-laser-tooltip-content__pin--right .pin__icon{order:2}@keyframes straight-pop-animation{0%{width:0}to{width:100%}}@keyframes slash-pop-animation{0%{width:0}to{width:300px}}@keyframes animation-pin-horizontal{0%{background-color:#ffffff3d;width:0}to{background-color:#fff;width:100%}}@keyframes animation-pin-vertical{0%{background-color:#ffffff3d;height:0}to{background-color:#fff;height:100%}}@keyframes animation-popup-content{0%{opacity:0}50%{opacity:0}to{opacity:1}}@keyframes animation-of-content{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes animation-icon{0%{opacity:0;transform:scale(1)}30%{opacity:0;transform:scale(1)}50%{opacity:0;transform:scale(1)}70%{opacity:.4;transform:scale(1)}75%{opacity:.5;transform:scale(1.2)}80%{opacity:.6;transform:scale(.8)}90%{opacity:.8;transform:scale(1.2)}to{opacity:1;transform:scale(1)}}'}),v.jsx("style",{children:".ant-btn{--tw-shadow:0 2px 0 rgba(0,0,0,.015);--tw-shadow-colored:0 2px 0 var(--tw-shadow-color);animation-duration:.3s;animation-timing-function:cubic-bezier(.4,0,.2,1);background-color:#0000003d;background-image:none;border:1px solid #0000;border-radius:25px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:#000000d9;cursor:pointer;display:inline-block;font-size:13px;font-weight:400;height:32px;line-height:1.5715;padding:4.8px 15px;position:relative;text-align:center;touch-action:manipulation;transition-duration:.3s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;white-space:nowrap}.ant-btn:hover{background:var(--color-black-24)}.ant-btn:hover,.ant-btn:not([disabled]):hover{text-decoration:none}.ant-btn-icon-only{border-radius:25px;font-size:15px;height:32px;padding:3.2px 0;vertical-align:-1px;width:32px}"}),v.jsx("style",{children:".cvtv-ui-layout__tour-logo{align-items:center;display:flex;filter:drop-shadow(0 var(--space-2) var(--space-16) var(--color-black-16));left:var(--space-16);max-width:var(--tour-logo-max-width);position:absolute;top:var(--space-16);z-index:1}.cvtv-ui-layout__tour-logo span{color:var(--color-white);overflow:hidden;padding:var(--space-2) var(--space-8);text-overflow:ellipsis;text-shadow:0 2px 8px var(--color-black-72);text-transform:uppercase;white-space:nowrap}.cvtv-ui-layout__tour-logo img{max-height:40px;max-width:120px}.cvtc-beta-tour__group-pin-action\n.cvtc-auto-play-menu-bar,.cvtc-beta-tour__group-pin-action\n.cvtc-pin-actions,.cvtc-beta-tour__group-pin-action\n.cvtc-show-ai-menu-bar{pointer-events:auto}.cvtc-pin-actions,.cvtc-pin-actions__button{align-items:center;display:flex;justify-content:center}.cvtc-pin-actions__button{background:#0000;box-shadow:unset;height:40px;transition:all .3s ease-in-out;width:40px}.cvtc-pin-actions__button:hover{border-color:#0000}.cvtc-pin-actions__button>[class^=icon-]:before{color:var(--color-white);text-shadow:0 2px 8px var(--color-black-64)}.cvtc-beta-tour__group-pin-action,.cvtc-pin-actions{flex-direction:column;gap:var(--space-8)}.cvtc-beta-tour__group-pin-action{align-items:end;bottom:var(--space-16);display:flex;pointer-events:none;position:absolute;right:var(--space-16)}"}),v.jsx(Vs,Object.assign({},e,{onTourLoaded:n=>{t.tour=n,o(!0),e.onLoaded&&(n={goToProduct:n.goToProduct,goToScene:n.loadScene},e.onLoaded(n))}})),v.jsx(aa,Object.assign({},e,{tourLoaded:n}))]})};class ca extends HTMLElement{constructor(){super(),this.mobile=!1,this.updateAttributes=this.updateAttributes.bind(this)}updateAttributes(e){this.elementId=e.elementId,this.apiHost=e.apiHost,this.config=e.config,this.mobile=e.mobile||!1,this.onLoaded=e.onLoaded,this.onPoiClicked=e.onPoiClicked,this.render()}connectedCallback(){this.apiHost&&this.render()}render(){re.render(v.jsx(la,{elementId:this.elementId,apiHost:this.apiHost||"",config:this.config||{tourCode:""},mobile:this.mobile,onLoaded:this.onLoaded,onPoiClicked:this.onPoiClicked}),this)}}let ua=t=>{var n=t.id?document.getElementById(t.id):document.querySelector(e);if(!n)throw new Error(e+" element not found.");customElements.get(e)?n.updateAttributes(t):(Object.assign(n,t),"undefined"==typeof window||customElements.get(e)||customElements.define(e,ca))},ha={initVisualizer:ua,destroy:()=>{}};(e=>{"undefined"!=typeof window&&(window.ShowroomVisualizer=Object.assign({},e))})(ha);export{ha as default};
1
+ function e(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){var o;"default"===n||n in e||(o=Object.getOwnPropertyDescriptor(t,n),Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}}))})}),Object.freeze(e)}let t="showroom-visualizer";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i,r,a,s,l={exports:{}},c={},u={exports:{}},h={};function d(){var e,t,n,o,r,a,s,l,c,u,d,p,f,m,g,v,b,y,_,w,x,k,S;return i||(i=1,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={},E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},T.prototype=E.prototype,(S=P.prototype=new T).constructor=P,m(S,E.prototype),S.isPureReactComponent=!0,v=Array.isArray,b=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0},w=/\/+/g,S={ReactCurrentDispatcher:x={current:null},ReactCurrentBatchConfig:k={transition:null},ReactCurrentOwner:y={current:null}},h.Children={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(C(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},h.Component=E,h.Fragment=n,h.Profiler=r,h.PureComponent=P,h.StrictMode=o,h.Suspense=c,h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S,h.act=D,h.cloneElement=function(t,n,o){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=m({},t.props),r=t.key,a=t.ref,s=t._owner;if(null!=n)for(l in void 0!==n.ref&&(a=n.ref,s=y.current),void 0!==n.key&&(r=""+n.key),t.type&&t.type.defaultProps&&(c=t.type.defaultProps),n)b.call(n,l)&&!_.hasOwnProperty(l)&&(i[l]=(void 0===n[l]&&void 0!==c?c:n)[l]);var l=arguments.length-2;if(1===l)i.children=o;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:e,type:t.type,key:r,ref:a,props:i,_owner:s}},h.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},h.createElement=O,h.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},h.createRef=function(){return{current:null}},h.forwardRef=function(e){return{$$typeof:l,render:e}},h.isValidElement=C,h.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:L}},h.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},h.startTransition=function(e){var t=k.transition;k.transition={};try{e()}finally{k.transition=t}},h.unstable_act=D,h.useCallback=function(e,t){return x.current.useCallback(e,t)},h.useContext=function(e){return x.current.useContext(e)},h.useDebugValue=function(){},h.useDeferredValue=function(e){return x.current.useDeferredValue(e)},h.useEffect=function(e,t){return x.current.useEffect(e,t)},h.useId=function(){return x.current.useId()},h.useImperativeHandle=function(e,t,n){return x.current.useImperativeHandle(e,t,n)},h.useInsertionEffect=function(e,t){return x.current.useInsertionEffect(e,t)},h.useLayoutEffect=function(e,t){return x.current.useLayoutEffect(e,t)},h.useMemo=function(e,t){return x.current.useMemo(e,t)},h.useReducer=function(e,t,n){return x.current.useReducer(e,t,n)},h.useRef=function(e){return x.current.useRef(e)},h.useState=function(e){return x.current.useState(e)},h.useSyncExternalStore=function(e,t,n){return x.current.useSyncExternalStore(e,t,n)},h.useTransition=function(){return x.current.useTransition()},h.version="18.3.1"),h;function E(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function T(){}function P(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function O(t,n,o){var i,r={},a=null,s=null;if(null!=n)for(i in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)b.call(n,i)&&!_.hasOwnProperty(i)&&(r[i]=n[i]);var l=arguments.length-2;if(1===l)r.children=o;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];r.children=c}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===r[i]&&(r[i]=l[i]);return{$$typeof:e,type:t,key:a,ref:s,props:r,_owner:y.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,n={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function M(n,o,i,r,a){var s,l,c=!1;if(null===(n="undefined"!=(h=typeof n)&&"boolean"!==h?n:null))c=!0;else switch(h){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case e:case t:c=!0}}if(c)return a=a(c=n),n=""===r?"."+A(c,0):r,v(a)?(i="",M(a,o,i=null!=n?n.replace(w,"$&/")+"/":i,"",function(e){return e})):null!=a&&(C(a)&&(l=i+(!(s=a).key||c&&c.key===a.key?"":(""+a.key).replace(w,"$&/")+"/")+n,a={$$typeof:e,type:s.type,key:l,ref:s.ref,props:s.props,_owner:s._owner}),o.push(a)),1;if(c=0,r=""===r?".":r+":",v(n))for(var u=0;u<n.length;u++){var h,d=r+A(h=n[u],u);c+=M(h,o,i,d,a)}else if("function"==typeof(d=null!==(l=n)&&"object"==typeof l&&"function"==typeof(l=p&&l[p]||l["@@iterator"])?l:null))for(n=d.call(n),u=0;!(h=n.next()).done;)c+=M(h=h.value,o,i,d=r+A(h,u++),a);else if("object"===h)throw o=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===o?"object with keys {"+Object.keys(n).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return c}function N(e,t,n){var o;return null==e||(o=0,M(e,e=[],"","",function(e){return t.call(n,e,o++)})),e}function L(e){var t;if(-1===e._status&&((t=(t=e._result)()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status)&&(e._status=0,e._result=t),1===e._status)return e._result.default;throw e._result}function D(){throw Error("act(...) is not supported in production builds of React.")}}function p(){return r||(r=1,u.exports=d()),u.exports}var f,m,g,v,b=(s||(s=1,l.exports=function(){var e,t,n,o,i,r;return a||(a=1,e=p(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0},c.Fragment=n,c.jsx=s,c.jsxs=s),c;function s(e,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)o.call(n,s)&&!r.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}}()),l.exports),y={exports:{}},_={},w={exports:{}},x={};function k(){return m||(m=1,w.exports=function(){var e,t,n,o,i,r,a,s,l,c,u,h,d,p,m,g,v,b,y,_,w,k,S;return f||(f=1,e=x,"object"==typeof performance&&"function"==typeof performance.now?(t=performance,e.unstable_now=function(){return t.now()}):(n=Date,o=n.now(),e.unstable_now=function(){return n.now()-o}),i=[],r=[],a=1,s=null,h=u=c=!(l=3),d="function"==typeof setTimeout?setTimeout:null,p="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null,"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling),y=!1,_=null,k=5,S=w=-1,g="function"==typeof m?function(){m(L)}:"undefined"!=typeof MessageChannel?(v=new MessageChannel,b=v.port2,v.port1.onmessage=L,function(){b.postMessage(null)}):function(){d(L,0)},e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){u||c||(u=!0,D(M))},e.unstable_forceFrameRate=function(e){e<0||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return l},e.unstable_getFirstCallbackNode=function(){return T(i)},e.unstable_next=function(e){switch(l){case 1:case 2:case 3:var t=3;break;default:t=l}var n=l;l=t;try{return e()}finally{l=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=l;l=e;try{return t()}finally{l=n}},e.unstable_scheduleCallback=function(t,n,o){var s=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,t){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return t={id:a++,callback:n,priorityLevel:t,startTime:o,expirationTime:l=o+l,sortIndex:-1},s<o?(t.sortIndex=o,E(r,t),null===T(i)&&t===T(r)&&(h?(p(w),w=-1):h=!0,R(A,o-s))):(t.sortIndex=l,E(i,t),u||c||(u=!0,D(M))),t},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(e){var t=l;return function(){var n=l;l=t;try{return e.apply(this,arguments)}finally{l=n}}}),x;function E(e,t){var n=e.length;for(e.push(t);0<n;){var o=n-1>>>1,i=e[o];if(!(0<O(i,t)))break;e[o]=t,e[n]=i,n=o}}function T(e){return 0===e.length?null:e[0]}function P(e){if(0!==e.length){var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var o=0,i=e.length,r=i>>>1;o<r;){var a=2*(o+1)-1,s=e[a],l=1+a,c=e[l];if(O(s,n)<0)o=l<i&&O(c,s)<0?(e[o]=c,e[l]=n,l):(e[o]=s,e[a]=n,a);else{if(!(l<i&&O(c,n)<0))break;e[o]=c,e[l]=n,o=l}}}}}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!=n?n:e.id-t.id}function C(e){for(var t=T(r);null!==t;){if(null===t.callback)P(r);else{if(!(t.startTime<=e))break;P(r),t.sortIndex=t.expirationTime,E(i,t)}t=T(r)}}function A(e){var t;h=!1,C(e),u||(null!==T(i)?(u=!0,D(M)):null!==(t=T(r))&&R(A,t.startTime-e))}function M(t,n){u=!1,h&&(h=!1,p(w),w=-1),c=!0;var o=l;try{for(C(n),s=T(i);null!==s&&(!(s.expirationTime>n)||t&&!N());){var a,d=s.callback;"function"==typeof d?(s.callback=null,l=s.priorityLevel,a=d(s.expirationTime<=n),n=e.unstable_now(),"function"==typeof a?s.callback=a:s===T(i)&&P(i),C(n)):P(i),s=T(i)}var f;return null!==s||(null!==(f=T(r))&&R(A,f.startTime-n),!1)}finally{s=null,l=o,c=!1}}function N(){return!(e.unstable_now()-S<k)}function L(){if(null!==_){var t=e.unstable_now(),n=(S=t,!0);try{n=_(!0,t)}finally{n?g():(y=!1,_=null)}}else y=!1}function D(e){_=e,y||(y=!0,g())}function R(t,n){w=d(function(){t(e.unstable_now())},n)}}()),w.exports}function S(){if(!g){g=1;var e,t,n,o=p(),i=k(),r=new Set,a={},s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},h={},d={},f=("children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){d[e]=new Uo(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];d[t]=new Uo(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){d[e]=new Uo(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){d[e]=new Uo(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){d[e]=new Uo(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){d[e]=new Uo(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){d[e]=new Uo(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){d[e]=new Uo(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){d[e]=new Uo(e,5,!1,e.toLowerCase(),null,!1,!1)}),/[\-:]([a-z])/g),m=(o=("accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(f,Yo);d[t]=new Uo(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(f,Yo);d[t]=new Uo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(f,Yo);d[t]=new Uo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){d[e]=new Uo(e,1,!1,e.toLowerCase(),null,!1,!1)}),d.xlinkHref=new Uo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){d[e]=new Uo(e,1,!1,e.toLowerCase(),null,!0,!0)}),o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED),Symbol.for("react.element")),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),S=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M=Symbol.iterator,N=Object.assign,L=!1,D=Array.isArray,R=(n=function(e,n){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=n;else{for((t=t||document.createElement("div")).innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=t.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,o,i){MSApp.execUnsafeLocalFunction(function(){return n(e,t)})}:n),I={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$=["Webkit","ms","Moz","O"],F=(Object.keys(I).forEach(function(e){$.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),I[t]=I[e]})}),N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0})),V=null,j=null,H=null,z=null,B=!1,U=!1;if(s)try{var Y={};Object.defineProperty(Y,"passive",{get:function(){U=!0}}),window.addEventListener("test",Y,Y),window.removeEventListener("test",Y,Y)}catch(Y){U=!1}for(var W,G,X,q,K,Z,Q,J,ee=!1,te=null,ne=!1,oe=null,ie={onError:function(e){ee=!0,te=e}},re=i.unstable_scheduleCallback,ae=i.unstable_cancelCallback,se=i.unstable_shouldYield,le=i.unstable_requestPaint,ce=i.unstable_now,ue=i.unstable_getCurrentPriorityLevel,he=i.unstable_ImmediatePriority,de=i.unstable_UserBlockingPriority,pe=i.unstable_NormalPriority,fe=i.unstable_LowPriority,me=i.unstable_IdlePriority,ge=null,ve=null,be=Math.clz32||function(e){return 0==(e>>>=0)?32:31-(ye(e)/_e|0)|0},ye=Math.log,_e=Math.LN2,we=64,xe=4194304,ke=0,Se=!1,Ee=[],Te=null,Pe=null,Oe=null,Ce=new Map,Ae=new Map,Me=[],Ne="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),Le=o.ReactCurrentBatchConfig,De=!0,Re=null,Ie=null,$e=null,Fe=null,Ve=ir(Y={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0}),je=ir(it=N({},Y,{view:0,detail:0})),He=N({},it,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ar,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==J&&(Q=J&&"mousemove"===e.type?(Z=e.screenX-J.screenX,e.screenY-J.screenY):Z=0,J=e),Z)},movementY:function(e){return"movementY"in e?e.movementY:Q}}),ze=ir(He),Be=ir(N({},He,{dataTransfer:0})),Ue=ir(N({},it,{relatedTarget:0})),Ye=ir(N({},Y,{animationName:0,elapsedTime:0,pseudoElement:0})),We=ir(N({},Y,{clipboardData:function(e){return("clipboardData"in e?e:window).clipboardData}})),Ge=ir(N({},Y,{data:0})),Xe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qe={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ke={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ze=ir(N({},it,{key:function(e){if(e.key){var t=Xe[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?qe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ar,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Qe=ir(N({},He,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Je=ir(N({},it,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ar})),et=ir(N({},Y,{propertyName:0,elapsedTime:0,pseudoElement:0})),tt=ir(N({},He,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),nt=[9,13,27,32],ot=(s&&"CompositionEvent"in window),it=null,rt=(s&&"documentMode"in document&&(it=document.documentMode),s&&"TextEvent"in window&&!it),at=s&&(!ot||it&&8<it&&it<=11),st=String.fromCharCode(32),lt=!1,ct=!1,ut={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},ht=null,dt=null,pt=!1,ft=(s&&(it=s&&((Y="oninput"in document)||((He=document.createElement("div")).setAttribute("oninput","return;"),Y="function"==typeof He.oninput),Y),pt=it&&(!document.documentMode||9<document.documentMode)),"function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}),mt=(s&&"documentMode"in document&&document.documentMode<=11),gt=null,vt=null,bt=null,yt=!1,_t={animationend:Tr("Animation","AnimationEnd"),animationiteration:Tr("Animation","AnimationIteration"),animationstart:Tr("Animation","AnimationStart"),transitionend:Tr("Transition","TransitionEnd")},wt={},xt={},kt=(s&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition),Pr("animationend")),St=Pr("animationiteration"),Et=Pr("animationstart"),Tt=Pr("transitionend"),Pt=new Map,Ot="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "),Ct=0;Ct<Ot.length;Ct++){var At=Ot[Ct];Or(At.toLowerCase(),"on"+(At[0].toUpperCase()+At.slice(1)))}Or(kt,"onAnimationEnd"),Or(St,"onAnimationIteration"),Or(Et,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Tt,"onTransitionEnd"),Bo("onMouseEnter",["mouseout","mouseover"]),Bo("onMouseLeave",["mouseout","mouseover"]),Bo("onPointerEnter",["pointerout","pointerover"]),Bo("onPointerLeave",["pointerout","pointerover"]),zo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zo("onBeforeInput",["compositionend","keypress","textInput","paste"]),zo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nt=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mt)),Lt="_reactListening"+Math.random().toString(36).slice(2),Dt=/\r\n?/g,Rt=/\u0000|\uFFFD/g,It=null,$t=null,Ft="function"==typeof setTimeout?setTimeout:void 0,Vt="function"==typeof clearTimeout?clearTimeout:void 0,jt="function"==typeof Promise?Promise:void 0,Ht="function"==typeof queueMicrotask?queueMicrotask:void 0!==jt?function(e){return jt.resolve(null).then(e).catch(Ur)}:Ft,zt="__reactFiber$"+(He=Math.random().toString(36).slice(2)),Bt="__reactProps$"+He,Ut="__reactContainer$"+He,Yt="__reactEvents$"+He,Wt="__reactListeners$"+He,Gt="__reactHandles$"+He,Xt=[],qt=-1,Kt={},Zt=Qr(Kt),Qt=Qr(!1),Jt=Kt,en=null,tn=!1,nn=!1,on=[],rn=0,an=null,sn=0,ln=[],cn=0,un=null,hn=1,dn="",pn=null,fn=null,mn=!1,gn=null,vn=o.ReactCurrentBatchConfig,bn=Ta(!0),yn=Ta(!1),_n=Qr(null),wn=null,xn=null,kn=null,Sn=null,En=!1,Tn={},Pn=Qr(Tn),On=Qr(Tn),Cn=Qr(Tn),An=Qr(0),Mn=[],Nn=o.ReactCurrentDispatcher,Ln=o.ReactCurrentBatchConfig,Dn=0,Rn=null,In=null,$n=null,Fn=!1,Vn=!1,jn=0,Hn=0,zn={readContext:Ma,useCallback:Ka,useContext:Ka,useEffect:Ka,useImperativeHandle:Ka,useInsertionEffect:Ka,useLayoutEffect:Ka,useMemo:Ka,useReducer:Ka,useRef:Ka,useState:Ka,useDebugValue:Ka,useDeferredValue:Ka,useTransition:Ka,useMutableSource:Ka,useSyncExternalStore:Ka,useId:Ka,unstable_isNewReconciler:!1},Bn={readContext:Ma,useCallback:function(e,t){return es().memoizedState=[e,void 0===t?null:t],e},useContext:Ma,useEffect:vs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ms(4194308,4,ws.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){return ms(4,2,e,t)},useMemo:function(e,t){var n=es();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=es();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(o.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=function(e,t,n){var o=Al(e);n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Os(e)?Cs(t,n):null!==(n=La(e,t,n,o))&&(Ml(n,e,o,Cl()),As(n,t,o))}.bind(null,Rn,e),[o.memoizedState,e]},useRef:function(e){return es().memoizedState={current:e}},useState:ds,useDebugValue:ks,useDeferredValue:function(e){return es().memoizedState=e},useTransition:function(){var e=(t=ds(!1))[0],t=function(e,t){var n=ke,o=(ke=0!==n&&n<4?n:4,e(!0),Ln.transition);Ln.transition={};try{e(!1),t()}finally{ke=n,Ln.transition=o}}.bind(null,t[1]);return[e,es().memoizedState=t]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Rn,i=es();if(mn){if(void 0===n)throw Error(Ho(407));n=n()}else{if(n=t(),null===fo)throw Error(Ho(349));!(30&Dn)&&ss(o,t,n)}var r={value:i.memoizedState=n,getSnapshot:t};return vs(cs.bind(null,o,i.queue=r,e),[e]),o.flags|=2048,ps(9,ls.bind(null,o,r,n,t),void 0,null),n},useId:function(){var e,t=es(),n=fo.identifierPrefix;return mn?(e=dn,n=":"+n+"R"+(e=(hn&~(1<<32-be(hn)-1)).toString(32)+e),0<(e=jn++)&&(n+="H"+e.toString(32)),n+=":"):n=":"+n+"r"+(e=Hn++).toString(32)+":",t.memoizedState=n},unstable_isNewReconciler:!1},Un={readContext:Ma,useCallback:Ss,useContext:Ma,useEffect:bs,useImperativeHandle:xs,useInsertionEffect:ys,useLayoutEffect:_s,useMemo:Es,useReducer:os,useRef:fs,useState:function(){return os(ns)},useDebugValue:ks,useDeferredValue:function(e){return Ts(ts(),In.memoizedState,e)},useTransition:function(){return[os(ns)[0],ts().memoizedState]},useMutableSource:rs,useSyncExternalStore:as,useId:Ps,unstable_isNewReconciler:!1},Yn={readContext:Ma,useCallback:Ss,useContext:Ma,useEffect:bs,useImperativeHandle:xs,useInsertionEffect:ys,useLayoutEffect:_s,useMemo:Es,useReducer:is,useRef:fs,useState:function(){return is(ns)},useDebugValue:ks,useDeferredValue:function(e){var t=ts();return null===In?t.memoizedState=e:Ts(t,In.memoizedState,e)},useTransition:function(){return[is(ns)[0],ts().memoizedState]},useMutableSource:rs,useSyncExternalStore:as,useId:Ps,unstable_isNewReconciler:!1},Wn={isMounted:function(e){return!!(e=e._reactInternals)&&Ci(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=Cl(),i=Al(e),r=$a(o,i);r.payload=t,null!=n&&(r.callback=n),null!==(t=Fa(e,r,i))&&(Ml(t,e,i,o),Va(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=Cl(),i=Al(e),r=$a(o,i);r.tag=1,r.payload=t,null!=n&&(r.callback=n),null!==(t=Fa(e,r,i))&&(Ml(t,e,i,o),Va(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cl(),o=Al(e),i=$a(n,o);i.tag=2,null!=t&&(i.callback=t),null!==(t=Fa(e,i,o))&&(Ml(t,e,o,n),Va(t,e,o))}},Gn="function"==typeof WeakMap?WeakMap:Map,Xn=o.ReactCurrentOwner,qn=!1,Kn={dehydrated:null,treeContext:null,retryLane:0},Zn=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n=(n.child.return=n).child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qn=function(){},Jn=function(e,t,n,o){var i=e.memoizedProps;if(i!==o){e=t.stateNode,Ba(Pn.current);var r,s=null;switch(n){case"input":i=ni(e,i),o=ni(e,o),s=[];break;case"select":i=N({},i,{value:void 0}),o=N({},o,{value:void 0}),s=[];break;case"textarea":i=ci(e,i),o=ci(e,o),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof o.onClick&&(e.onclick=zr)}for(u in bi(n,o),n=null,i)if(!o.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(r in l)l.hasOwnProperty(r)&&((n=n||{})[r]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?s=s||[]:(s=s||[]).push(u,null));for(u in o){var c=o[u];l=null!=i?i[u]:void 0;if(o.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||((n=n||{})[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&((n=n||{})[r]=c[r])}else n||(s=s||[]).push(u,n),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Mr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},eo=function(e,t,n,o){n!==o&&(t.flags|=4)},to=!1,no=!1,oo="function"==typeof WeakSet?WeakSet:Set,io=null,ro=!1,ao=null,so=!1,lo=Math.ceil,co=o.ReactCurrentDispatcher,uo=o.ReactCurrentOwner,ho=o.ReactCurrentBatchConfig,po=0,fo=null,mo=null,go=0,vo=0,bo=Qr(0),yo=0,_o=null,wo=0,xo=0,ko=0,So=null,Eo=null,To=0,Po=1/0,Oo=null,Co=!1,Ao=null,Mo=null,No=!1,Lo=null,Do=0,Ro=0,Io=null,$o=-1,Fo=0,Vo=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Qt.current)qn=!0;else{if(0==(e.lanes&n)&&!(128&t.flags)){qn=!1;var o=e,i=t,r=n;switch(i.tag){case 3:el(i),wa();break;case 5:Wa(i);break;case 1:na(i.type)&&aa(i);break;case 4:Ua(i,i.stateNode.containerInfo);break;case 10:var a=i.type._context,s=i.memoizedProps.value;ea(_n,a._currentValue),a._currentValue=s;break;case 13:if(null!==(a=i.memoizedState))return null!==a.dehydrated?(ea(An,1&An.current),i.flags|=128,null):0!=(r&i.child.childLanes)?ol(o,i,r):(ea(An,1&An.current),null!==(o=ul(o,i,r))?o.sibling:null);ea(An,1&An.current);break;case 19:if(a=0!=(r&i.childLanes),128&o.flags){if(a)return ll(o,i,r);i.flags|=128}if(null!==(s=i.memoizedState)&&(s.rendering=null,s.tail=null,s.lastEffect=null),ea(An,An.current),a)break;return null;case 22:case 23:return i.lanes=0,qs(o,i,r)}return ul(o,i,r)}qn=!!(131072&e.flags)}else qn=!1,mn&&1048576&t.flags&&ha(t,sn,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type,c=(cl(e,t),e=t.pendingProps,ta(t,Zt.current)),u=(Aa(t,n),c=Qa(null,t,l,e,c,n),Ja());return t.flags|=1,"object"==typeof c&&null!==c&&"function"==typeof c.render&&void 0===c.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,na(l)?(u=!0,aa(t)):u=!1,t.memoizedState=null!=c.state?c.state:null,Ra(t),c.updater=Wn,Is((t.stateNode=c)._reactInternals=t,l,e,n),Js(null,t,l,!0,u,n)):(t.tag=0,mn&&u&&da(t),Ys(null,t,c,n),t.child);case 16:l=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,l=(c=l._init)(l._payload),t.type=l,c=t.tag=(e=>{if("function"==typeof e)return nc(e)?1:0;if(null!=e){if((e=e.$$typeof)===E)return 11;if(e===O)return 14}return 2})(l),e=Ms(l,e),c){case 0:t=Zs(null,t,l,e,n);break e;case 1:t=Qs(null,t,l,e,n);break e;case 11:t=Ws(null,t,l,e,n);break e;case 14:t=Gs(null,t,l,Ms(l.type,e),n);break e}throw Error(Ho(306,l,""))}return t;case 0:return l=t.type,c=t.pendingProps,Zs(e,t,l,c=t.elementType===l?c:Ms(l,c),n);case 1:return l=t.type,c=t.pendingProps,Qs(e,t,l,c=t.elementType===l?c:Ms(l,c),n);case 3:e:{if(el(t),null===e)throw Error(Ho(387));l=t.pendingProps,c=(u=t.memoizedState).element,Ia(e,t),Ha(t,l,null,n);l=(f=t.memoizedState).element;if(u.isDehydrated){if(u={element:l,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,256&t.flags){t=tl(e,t,l,n,c=$s(Error(Ho(423)),t));break e}if(l!==c){t=tl(e,t,l,n,c=$s(Error(Ho(424)),t));break e}for(fn=Wr(t.stateNode.containerInfo.firstChild),mn=!0,n=yn(pn=t,gn=null,l,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(wa(),l===c){t=ul(e,t,n);break e}Ys(e,t,l,n)}t=t.child}return t;case 5:return Wa(t),null===e&&va(t),l=t.type,c=t.pendingProps,u=null!==e?e.memoizedProps:null,f=c.children,Br(l,c)?f=null:null!==u&&Br(l,u)&&(t.flags|=32),Ks(e,t),Ys(e,t,f,n),t.child;case 6:return null===e&&va(t),null;case 13:return ol(e,t,n);case 4:return Ua(t,t.stateNode.containerInfo),l=t.pendingProps,null===e?t.child=bn(t,null,l,n):Ys(e,t,l,n),t.child;case 11:return l=t.type,c=t.pendingProps,Ws(e,t,l,c=t.elementType===l?c:Ms(l,c),n);case 7:return Ys(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ys(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(l=t.type._context,c=t.pendingProps,u=t.memoizedProps,f=c.value,ea(_n,l._currentValue),l._currentValue=f,null!==u)if(ft(u.value,f)){if(u.children===c.children&&!Qt.current){t=ul(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var h=u.dependencies;if(null!==h)for(var d,p,f=u.child,m=h.firstContext;null!==m;){if(m.context===l){1===u.tag&&((m=$a(-1,n&-n)).tag=2,null!==(d=u.updateQueue))&&(null===(p=(d=d.shared).pending)?m.next=m:(m.next=p.next,p.next=m),d.pending=m),u.lanes|=n,null!==(m=u.alternate)&&(m.lanes|=n),Ca(u.return,n,t),h.lanes|=n;break}m=m.next}else if(10===u.tag)f=u.type===t.type?null:u.child;else if(18===u.tag){if(null===(f=u.return))throw Error(Ho(341));f.lanes|=n,null!==(h=f.alternate)&&(h.lanes|=n),Ca(f,n,t),f=u.sibling}else f=u.child;if(null!==f)f.return=u;else for(f=u;null!==f;){if(f===t){f=null;break}if(null!==(u=f.sibling)){u.return=f.return,f=u;break}f=f.return}u=f}Ys(e,t,c.children,n),t=t.child}return t;case 9:return c=t.type,l=t.pendingProps.children,Aa(t,n),l=l(c=Ma(c)),t.flags|=1,Ys(e,t,l,n),t.child;case 14:return c=Ms(l=t.type,t.pendingProps),Gs(e,t,l,c=Ms(l.type,c),n);case 15:return Xs(e,t,t.type,t.pendingProps,n);case 17:return l=t.type,c=t.pendingProps,c=t.elementType===l?c:Ms(l,c),cl(e,t),t.tag=1,na(l)?(e=!0,aa(t)):e=!1,Aa(t,n),Ds(t,l,c),Is(t,l,c,n),Js(null,t,l,!0,e,n);case 19:return ll(e,t,n);case 22:return qs(e,t,n)}throw Error(Ho(156,t.tag))},jo="function"==typeof reportError?reportError:function(e){console.error(e)};Y=(bc.prototype.render=vc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Ho(409));pc(e,t,null,null)},bc.prototype.unmount=vc.prototype.unmount=function(){var e,t=this._internalRoot;null!==t&&(this._internalRoot=null,e=t.containerInfo,Vl(function(){pc(null,t,null,null)}),e[Ut]=null)},bc.prototype.unstable_scheduleHydration=function(e){if(e){var t=q();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Me.length&&0!==t&&t<Me[n].priority;n++);Me.splice(n,0,e),0===n&&Bi(e)}},W=function(e){switch(e.tag){case 3:var t,n=e.stateNode;n.current.memoizedState.isDehydrated&&0!==(t=Li(n.pendingLanes))&&(Vi(n,1|t),Nl(n,ce()),!(6&po))&&(Po=ce()+500,ca());break;case 13:Vl(function(){var t,n=Da(e,1);null!==n&&(t=Cl(),Ml(n,e,1,t))}),gc(e,1)}},G=function(e){var t;13===e.tag&&(null!==(t=Da(e,134217728))&&Ml(t,e,134217728,Cl()),gc(e,134217728))},X=function(e){var t,n;13===e.tag&&(null!==(n=Da(e,t=Al(e)))&&Ml(n,e,t,Cl()),gc(e,t))},q=function(){return ke},K=function(e,t){var n=ke;try{return ke=e,t()}finally{ke=n}},Ei=Vl,{usingClientEntryPoint:!(j=function(e,t,n){switch(t){case"input":if(ri(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=Zr(o);if(!i)throw Error(Ho(90));ei(o),ri(o,i)}}}break;case"textarea":hi(e,n);break;case"select":null!=(t=n.value)&&li(e,!!n.multiple,t,!1)}}),Events:[qr,Kr,Zr,xi,ki,Si=Fl]}),s={bundleType:(it={findFiberByHostInstance:Xr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"}).bundleType,version:it.version,rendererPackageName:it.rendererPackageName,rendererConfig:it.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:o.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ni(e))?null:e.stateNode},findFiberByHostInstance:it.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&!(He=__REACT_DEVTOOLS_GLOBAL_HOOK__).isDisabled&&He.supportsFiber)try{ge=He.inject(s),ve=He}catch(Y){}_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,_.createPortal=function(e,t){if(yc(t))return function(e,t,n,o){return{$$typeof:v,key:null==(o=3<arguments.length&&void 0!==o?o:null)?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null);throw Error(Ho(200))},_.createRoot=function(e,t){var n,o,i;if(yc(e))return n=!1,o="",i=jo,null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError)&&(i=t.onRecoverableError),t=uc(e,1,!1,null,0,n,0,o,i),e[Ut]=t.current,Lr(8===e.nodeType?e.parentNode:e),new vc(t);throw Error(Ho(299))},_.findDOMNode=function(e){if(null==e)return null;if(1!==e.nodeType){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(Ho(188));throw e=Object.keys(e).join(","),Error(Ho(268,e))}e=null===(e=Ni(t))?null:e.stateNode}return e},_.flushSync=Vl,_.hydrate=function(e,t,n){if(_c(t))return xc(null,e,t,!0,n);throw Error(Ho(200))},_.hydrateRoot=function(e,t,n){if(!yc(e))throw Error(Ho(405));var o=null!=n&&n.hydratedSources||null,i=!1,r="",a=jo;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError)&&(a=n.onRecoverableError),t=dc(t,null,e,1,null!=n?n:null,i,0,r,a),e[Ut]=t.current,Lr(e),o)for(e=0;e<o.length;e++)i=(i=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new bc(t)},_.render=function(e,t,n){if(_c(t))return xc(null,e,t,!1,n);throw Error(Ho(200))},_.unmountComponentAtNode=function(e){if(_c(e))return!!e._reactRootContainer&&(Vl(function(){xc(null,null,e,!1,function(){e._reactRootContainer=null,e[Ut]=null})}),!0);throw Error(Ho(40))},_.unstable_batchedUpdates=Fl,_.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!_c(n))throw Error(Ho(200));if(null==e||void 0===e._reactInternals)throw Error(Ho(38));return xc(e,t,n,!1,o)},_.version="18.3.1-next-f1338f8080-20240426"}return _;function Ho(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function zo(e,t){Bo(e,t),Bo(e+"Capture",t)}function Bo(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}function Uo(e,t,n,o,i,r,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=a}function Yo(e){return e[1].toUpperCase()}function Wo(e,t,n,o){var i,r=d.hasOwnProperty(t)?d[t]:null;(null!==r?0!==r.type:o||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,o){if(null==t||((e,t,n,o)=>{if(null===n||0!==n.type)switch(typeof t){case"function":case"symbol":return 1;case"boolean":return o?void 0:null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return}})(e,t,n,o))return 1;if(!o&&null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}}(t,n,r,o)&&(n=null),o||null===r?(i=t,(l.call(h,i)||!l.call(u,i)&&(c.test(i)?h[i]=!0:void(u[i]=!0)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}function Go(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}function Xo(t){if(void 0===e)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);e=n&&n[1]||""}return"\n"+e+t}function qo(e,t){if(!e||L)return"";L=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(t){var o=t}Reflect.construct(e,[],t)}else{try{t.call()}catch(t){o=t}e.call(t.prototype)}else{try{throw Error()}catch(t){o=t}e()}}catch(t){if(t&&o&&"string"==typeof t.stack){for(var i,r=t.stack.split("\n"),a=o.stack.split("\n"),s=r.length-1,l=a.length-1;1<=s&&0<=l&&r[s]!==a[l];)l--;for(;1<=s&&0<=l;s--,l--)if(r[s]!==a[l]){if(1!==s||1!==l)do{if(s--,--l<0||r[s]!==a[l])return i="\n"+r[s].replace(" at new "," at "),i=e.displayName&&i.includes("<anonymous>")?i.replace("<anonymous>",e.displayName):i}while(1<=s&&0<=l);break}}}finally{L=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xo(e):""}function Ko(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null!=t){if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case b:return"Fragment";case v:return"Portal";case w:return"Profiler";case y:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case S:return(t.displayName||"Context")+".Consumer";case x:return(t._context.displayName||"Context")+".Provider";case E:var n=t.render;return(t=t.displayName)||(""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef");case O:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case C:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}}return null}(t);case 8:return t===y?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Zo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Qo(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Jo(e){e._valueTracker||(e._valueTracker=(e=>{var t,n,o=Qo(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,o),r=""+e[o];if(!e.hasOwnProperty(o)&&void 0!==i&&"function"==typeof i.get&&"function"==typeof i.set)return t=i.get,n=i.set,Object.defineProperty(e,o,{configurable:!0,get:function(){return t.call(this)},set:function(e){r=""+e,n.call(this,e)}}),Object.defineProperty(e,o,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[o]}}})(e))}function ei(e){var t,n,o;if(e)return(t=e._valueTracker)?(n=t.getValue(),o="",(e=o=e?Qo(e)?e.checked?"true":"false":e.value:o)!==n&&(t.setValue(e),1)):1}function ti(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ni(e,t){var n=t.checked;return N({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function oi(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=Zo(null!=t.value?t.value:n);e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ii(e,t){null!=(t=t.checked)&&Wo(e,"checked",t,!1)}function ri(e,t){ii(e,t);var n=Zo(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?si(e,t.type,n):t.hasOwnProperty("defaultValue")&&si(e,t.type,Zo(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ai(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(("submit"===o||"reset"===o)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function si(e,t,n){"number"===t&&ti(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function li(e,t,n,o){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Zo(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(o&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ci(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Ho(91));return N({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ui(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Ho(92));if(D(n)){if(1<n.length)throw Error(Ho(93));n=n[0]}t=n}n=t=null==t?"":t}e._wrapperState={initialValue:Zo(n)}}function hi(e,t){var n=Zo(t.value),o=Zo(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue)&&e.defaultValue!==n&&(e.defaultValue=n),null!=o&&(e.defaultValue=""+o)}function di(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function pi(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fi(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pi(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function mi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function gi(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||I.hasOwnProperty(e)&&I[e]?(""+t).trim():t+"px"}function vi(e,t){for(var n in e=e.style,t){var o,i;t.hasOwnProperty(n)&&(o=0===n.indexOf("--"),i=gi(n,t[n],o),"float"===n&&(n="cssFloat"),o?e.setProperty(n,i):e[n]=i)}}function bi(e,t){if(t){if(F[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Ho(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Ho(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ho(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Ho(62))}}function yi(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _i(e){return 3===(e=(e=e.target||e.srcElement||window).correspondingUseElement?e.correspondingUseElement:e).nodeType?e.parentNode:e}function wi(e){if(e=qr(e)){if("function"!=typeof j)throw Error(Ho(280));var t=e.stateNode;t&&(t=Zr(t),j(e.stateNode,e.type,t))}}function xi(e){H?z?z.push(e):z=[e]:H=e}function ki(){if(H){var e=H,t=z;if(z=H=null,wi(e),t)for(e=0;e<t.length;e++)wi(t[e])}}function Si(e,t){return e(t)}function Ei(){}function Ti(e,t,n){if(B)return e(t,n);B=!0;try{Si(e,t,n)}finally{B=!1,null===H&&null===z||(Ei(),ki())}}function Pi(e,t){var n=e.stateNode;if(null===n)return null;var o=Zr(n);if(null===o)return null;switch(n=o[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":e=!(o=(o=!o.disabled)?o:!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e));break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(Ho(231,t,typeof n));return n}function Oi(e,t,n,o,i,r,a,s,l){ee=!1,te=null,function(e,t,n,o,i,r,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}.apply(ie,arguments)}function Ci(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else for(e=t;!!(4098&(t=e).flags)&&(n=t.return),e=t.return;);return 3===t.tag?n:null}function Ai(e){if(13===e.tag){var t=e.memoizedState;if(null!==(t=null===t&&null!==(e=e.alternate)?e.memoizedState:t))return t.dehydrated}return null}function Mi(e){if(Ci(e)!==e)throw Error(Ho(188))}function Ni(e){return null!==(e=(e=>{var t=e.alternate;if(!t){if(null===(t=Ci(e)))throw Error(Ho(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var r=i.alternate;if(null===r){if(null===(o=i.return))break;n=o}else{if(i.child===r.child){for(r=i.child;r;){if(r===n)return Mi(i),e;if(r===o)return Mi(i),t;r=r.sibling}throw Error(Ho(188))}if(n.return!==o.return)n=i,o=r;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,o=r;break}if(s===o){a=!0,o=i,n=r;break}s=s.sibling}if(!a){for(s=r.child;s;){if(s===n){a=!0,n=r,o=i;break}if(s===o){a=!0,o=r,n=i;break}s=s.sibling}if(!a)throw Error(Ho(189))}}if(n.alternate!==o)throw Error(Ho(190))}}if(3!==n.tag)throw Error(Ho(188));return n.stateNode.current===n?e:t})(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var n=e(t);if(null!==n)return n;t=t.sibling}return null}(e):null}function Li(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Di(e,t){var n=e.pendingLanes;if(0===n)return 0;var o,i=0,r=e.suspendedLanes,a=e.pingedLanes,s=268435455&n;if(0!=s?0!=(o=s&~r)?i=Li(o):0!==(a&=s)&&(i=Li(a)):0!=(s=n&~r)?i=Li(s):0!==a&&(i=Li(a)),0===i)return 0;if(0!==t&&t!==i&&0==(t&r)&&((a=t&-t)<=(r=i&-i)||16===r&&4194240&a))return t;if(!!(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)i|=e[n=31-be(t)],t&=~(r=1<<n);return i}function Ri(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ii(){var e=we;return!(4194240&(we<<=1))&&(we=64),e}function $i(e){for(var t=[],n=0;n<31;n++)t.push(e);return t}function Fi(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-be(t)]=n}function Vi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-be(n),i=1<<o;i&t|e[o]&t&&(e[o]|=t),n&=~i}}function ji(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}function Hi(e,t){switch(e){case"focusin":case"focusout":Te=null;break;case"dragenter":case"dragleave":Pe=null;break;case"mouseover":case"mouseout":Oe=null;break;case"pointerover":case"pointerout":Ce.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ae.delete(t.pointerId)}}function zi(e,t,n,o,i,r){return null===e||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:r,targetContainers:[i]},null!==t&&null!==(t=qr(t))&&G(t)):(e.eventSystemFlags|=o,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function Bi(e){var t=Xr(e.target);if(null!==t){var n=Ci(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ai(n)))return e.blockedOn=t,void K(e.priority,function(){X(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ui(e){if(null===e.blockedOn){for(var t=e.targetContainers;0<t.length;){var n=Qi(e.domEventName,0,t[0],e.nativeEvent);if(null!==n)return null!==(t=qr(n))&&G(t),e.blockedOn=n,0;var o=new(n=e.nativeEvent).constructor(n.type,n);V=o,n.target.dispatchEvent(o),V=null,t.shift()}return 1}}function Yi(e,t,n){Ui(e)&&n.delete(t)}function Wi(){Se=!1,null!==Te&&Ui(Te)&&(Te=null),null!==Pe&&Ui(Pe)&&(Pe=null),null!==Oe&&Ui(Oe)&&(Oe=null),Ce.forEach(Yi),Ae.forEach(Yi)}function Gi(e,t){e.blockedOn===t&&(e.blockedOn=null,Se||(Se=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Wi)))}function Xi(e){function t(t){return Gi(t,e)}if(0<Ee.length){Gi(Ee[0],e);for(var n=1;n<Ee.length;n++){var o=Ee[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Te&&Gi(Te,e),null!==Pe&&Gi(Pe,e),null!==Oe&&Gi(Oe,e),Ce.forEach(t),Ae.forEach(t),n=0;n<Me.length;n++)(o=Me[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Me.length&&null===(n=Me[0]).blockedOn;)Bi(n),null===n.blockedOn&&Me.shift()}function qi(e,t,n,o){var i=ke,r=Le.transition;Le.transition=null;try{ke=1,Zi(e,t,n,o)}finally{ke=i,Le.transition=r}}function Ki(e,t,n,o){var i=ke,r=Le.transition;Le.transition=null;try{ke=4,Zi(e,t,n,o)}finally{ke=i,Le.transition=r}}function Zi(e,t,n,o){if(De){var i=Qi(e,0,0,o);if(null===i)Rr(e,t,o,Re,n),Hi(e,o);else if(((e,t,n,o,i)=>{switch(t){case"focusin":return Te=zi(Te,e,t,n,o,i),1;case"dragenter":return Pe=zi(Pe,e,t,n,o,i),1;case"mouseover":return Oe=zi(Oe,e,t,n,o,i),1;case"pointerover":var r=i.pointerId;return Ce.set(r,zi(Ce.get(r)||null,e,t,n,o,i)),1;case"gotpointercapture":return r=i.pointerId,Ae.set(r,zi(Ae.get(r)||null,e,t,n,o,i)),1}})(i,e,t,n,o))o.stopPropagation();else if(Hi(e,o),4&t&&-1<Ne.indexOf(e)){for(;null!==i;){var r=qr(i);if(null!==r&&W(r),null===(r=Qi(e,0,0,o))&&Rr(e,t,o,Re,n),r===i)break;i=r}null!==i&&o.stopPropagation()}else Rr(e,t,o,null,n)}}function Qi(e,t,n,o){if((Re=null)!==(e=Xr(e=_i(o))))if(null===(t=Ci(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ai(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Re=e,null}function Ji(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ue()){case he:return 1;case de:return 4;case pe:case fe:return 16;case me:return 536870912;default:return 16}default:return 16}}function er(){if(Fe)return Fe;for(var e=$e,t=e.length,n=("value"in Ie?Ie.value:Ie.textContent),o=n.length,i=0;i<t&&e[i]===n[i];i++);for(var r=t-i,a=1;a<=r&&e[t-a]===n[o-a];a++);return Fe=n.slice(i,1<a?1-a:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=(e=10===e?13:e)||13===e?e:0}function nr(){return!0}function or(){return!1}function ir(e){function t(t,n,o,i,r){for(var a in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=r,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nr:or,this.isPropagationStopped=or,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){},isPersistent:nr}),t}function rr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ke[e])&&!!t[e]}function ar(){return rr}function sr(e,t){switch(e){case"keyup":return-1!==nt.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return 1;default:return}}function lr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?ut[e.type]:"textarea"===t}function ur(e,t,n,o){xi(o),0<(t=$r(t,"onChange")).length&&(n=new Ve("onChange","change",null,n,o),e.push({event:n,listeners:t}))}function hr(e){Ar(e,0)}function dr(e){if(ei(Kr(e)))return e}function pr(e,t){if("change"===e)return t}function fr(){ht&&(ht.detachEvent("onpropertychange",mr),dt=ht=null)}function mr(e){var t;"value"===e.propertyName&&dr(dt)&&(ur(t=[],dt,e,_i(e)),Ti(hr,t))}function gr(e,t,n){"focusin"===e?(fr(),dt=n,(ht=t).attachEvent("onpropertychange",mr)):"focusout"===e&&fr()}function vr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return dr(dt)}function br(e,t){if("click"===e)return dr(t)}function yr(e,t){if("input"===e||"change"===e)return dr(t)}function _r(e,t){if(!ft(e,t)){if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var i=n[o];if(!l.call(t,i)||!ft(e[i],t[i]))return!1}}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xr(e,t){var n,o=wr(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&t<=n)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=wr(o)}}function kr(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ti((e=t.contentWindow).document)}return t}function Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Er(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yt||null==gt||gt!==ti(o)||(o="selectionStart"in(o=gt)&&Sr(o)?{start:o.selectionStart,end:o.selectionEnd}:{anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},bt&&_r(bt,o))||(bt=o,0<(o=$r(vt,"onSelect")).length&&(t=new Ve("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=gt))}function Tr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function Pr(e){if(wt[e])return wt[e];if(_t[e]){var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return wt[e]=n[t]}return e}function Or(e,t){Pt.set(e,t),zo(t,[e])}function Cr(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(){var e;Oi.apply(this,arguments),ee&&(e=te,ee=!1,te=null,ne||(ne=!0,oe=e))}(o,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var o=(i=e[n]).event,i=i.listeners;e:{var r=void 0;if(t)for(var a=i.length-1;0<=a;a--){var s=(c=i[a]).instance,l=c.currentTarget,c=c.listener;if(s!==r&&o.isPropagationStopped())break e;Cr(o,c,l),r=s}else for(a=0;a<i.length;a++){if(s=(c=i[a]).instance,l=c.currentTarget,c=c.listener,s!==r&&o.isPropagationStopped())break e;Cr(o,c,l),r=s}}}if(ne)throw e=oe,ne=!1,oe=null,e}function Mr(e,t){var n=t[Yt],o=e+"__bubble";(n=void 0===n?t[Yt]=new Set:n).has(o)||(Dr(t,e,2,!1),n.add(o))}function Nr(e,t,n){var o=0;t&&(o|=4),Dr(n,e,o,t)}function Lr(e){var t;e[Lt]||(e[Lt]=!0,r.forEach(function(t){"selectionchange"!==t&&(Nt.has(t)||Nr(t,!1,e),Nr(t,!0,e))}),null===(t=9===e.nodeType?e:e.ownerDocument))||t[Lt]||Nr("selectionchange",!(t[Lt]=!0),t)}function Dr(e,t,n,o){switch(Ji(t)){case 1:var i=qi;break;case 4:i=Ki;break;default:i=Zi}n=i.bind(null,t,n,e),i=!(!U||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t)||void 0,o?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Rr(e,t,n,o,i){var r=o;if(!(1&t||2&t||null===o))e:for(;;){if(null===o)return;var a=o.tag;if(3===a||4===a){var s=o.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=o.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=Xr(s)))return;if(5===(l=a.tag)||6===l){o=r=a;continue e}s=s.parentNode}}o=o.return}Ti(function(){var o,i,a,s=r,l=_i(n),c=[];e:{var u=Pt.get(e);if(void 0!==u){var h=Ve,d=e;switch(e){case"keypress":if(0===tr(n))break e;case"keydown":case"keyup":h=Ze;break;case"focusin":d="focus",h=Ue;break;case"focusout":d="blur",h=Ue;break;case"beforeblur":case"afterblur":h=Ue;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=ze;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Be;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Je;break;case kt:case St:case Et:h=Ye;break;case Tt:h=et;break;case"scroll":h=je;break;case"wheel":h=tt;break;case"copy":case"cut":case"paste":h=We;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Qe}for(var p=!(m=!!(4&t))&&"scroll"===e,f=m?null!==u?u+"Capture":null:u,m=[],g=s;null!==g;){var v,b=(v=g).stateNode;if(5===v.tag&&null!==b&&(v=b,null!==f)&&null!=(b=Pi(g,f))&&m.push(Ir(g,b,v)),p)break;g=g.return}0<m.length&&(u=new h(u,d,null,n,l),c.push({event:u,listeners:m}))}}if(!(7&t)){if(h="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===V||!(d=n.relatedTarget||n.fromElement)||!Xr(d)&&!d[Ut])&&(h||u)&&(u=l.window===l?l:(u=l.ownerDocument)?u.defaultView||u.parentWindow:window,h?(h=s,null!==(d=(d=n.relatedTarget||n.toElement)?Xr(d):null)&&(d!==(p=Ci(d))||5!==d.tag&&6!==d.tag)&&(d=null)):(h=null,d=s),h!==d)){if(m=ze,b="onMouseLeave",f="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(m=Qe,b="onPointerLeave",f="onPointerEnter",g="pointer"),p=null==h?u:Kr(h),v=null==d?u:Kr(d),(u=new m(b,g+"leave",h,n,l)).target=p,u.relatedTarget=v,b=null,Xr(l)===s&&((m=new m(f,g+"enter",d,n,l)).target=v,m.relatedTarget=p,b=m),p=b,h&&d)e:{for(f=d,g=0,v=m=h;v;v=Fr(v))g++;for(v=0,b=f;b;b=Fr(b))v++;for(;0<g-v;)m=Fr(m),g--;for(;0<v-g;)f=Fr(f),v--;for(;g--;){if(m===f||null!==f&&m===f.alternate)break e;m=Fr(m),f=Fr(f)}m=null}else m=null;null!==h&&Vr(c,u,h,m,!1),null!==d&&null!==p&&Vr(c,p,d,m,!0)}switch("select"===(h=(u=s?Kr(s):window).nodeName&&u.nodeName.toLowerCase())||"input"===h&&"file"===u.type?o=pr:cr(u)?pt?o=yr:(o=vr,i=gr):!(h=u.nodeName)||"input"!==h.toLowerCase()||"checkbox"!==u.type&&"radio"!==u.type||(o=br),(o=o&&o(e,s))?ur(c,o,n,l):(i&&i(e,u,s),"focusout"===e&&(i=u._wrapperState)&&i.controlled&&"number"===u.type&&si(u,"number",u.value)),i=s?Kr(s):window,e){case"focusin":!cr(i)&&"true"!==i.contentEditable||(gt=i,vt=s,bt=null);break;case"focusout":bt=vt=gt=null;break;case"mousedown":yt=!0;break;case"contextmenu":case"mouseup":case"dragend":yt=!1,Er(c,n,l);break;case"selectionchange":if(mt)break;case"keydown":case"keyup":Er(c,n,l)}if(ot)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else ct?sr(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(at&&"ko"!==n.locale&&(ct||"onCompositionStart"!==y?"onCompositionEnd"===y&&ct&&(a=er()):($e="value"in(Ie=l)?Ie.value:Ie.textContent,ct=!0)),0<(i=$r(s,y)).length)&&(y=new Ge(y,e,null,n,l),c.push({event:y,listeners:i}),a||null!==(a=lr(n)))&&(y.data=a),(a=(rt?(e,t)=>{switch(e){case"compositionend":return lr(t);case"keypress":return 32!==t.which?null:(lt=!0,st);case"textInput":return(e=t.data)===st&&lt?null:e;default:return null}}:(e,t)=>{if(ct)return"compositionend"===e||!ot&&sr(e,t)?(e=er(),Fe=$e=Ie=null,ct=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return at&&"ko"!==t.locale?null:t.data}})(e,n))&&0<(s=$r(s,"onBeforeInput")).length&&(l=new Ge("onBeforeInput","beforeinput",null,n,l),c.push({event:l,listeners:s}),l.data=a)}Ar(c,t)})}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",o=[];null!==e;){var i=e,r=i.stateNode;5===i.tag&&null!==r&&(i=r,null!=(r=Pi(e,n))&&o.unshift(Ir(e,r,i)),null!=(r=Pi(e,t)))&&o.push(Ir(e,r,i)),e=e.return}return o}function Fr(e){if(null===e)return null;for(;(e=e.return)&&5!==e.tag;);return e||null}function Vr(e,t,n,o,i){for(var r=t._reactName,a=[];null!==n&&n!==o;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===o)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Pi(n,r))&&a.unshift(Ir(n,l,s)):null!=(l=Pi(n,r))&&a.push(Ir(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function jr(e){return("string"==typeof e?e:""+e).replace(Dt,"\n").replace(Rt,"")}function Hr(e,t,n){if(t=jr(t),jr(e)!==t&&n)throw Error(Ho(425))}function zr(){}function Br(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function Ur(e){setTimeout(function(){throw e})}function Yr(e,t){var n=t,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===o)return e.removeChild(i),void Xi(t);o--}else"$"!==n&&"$?"!==n&&"$!"!==n||o++}while(n=i);Xi(t)}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function Xr(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ut]||n[zt]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[zt])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function qr(e){return!(e=e[zt]||e[Ut])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Kr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Ho(33))}function Zr(e){return e[Bt]||null}function Qr(e){return{current:e}}function Jr(e){qt<0||(e.current=Xt[qt],Xt[qt]=null,qt--)}function ea(e,t){Xt[++qt]=e.current,e.current=t}function ta(e,t){var n=e.type.contextTypes;if(!n)return Kt;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i,r={};for(i in n)r[i]=t[i];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function na(e){return null!=e.childContextTypes}function oa(){Jr(Qt),Jr(Zt)}function ia(e,t,n){if(Zt.current!==Kt)throw Error(Ho(168));ea(Zt,t),ea(Qt,n)}function ra(e,t,n){var o,i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(o in i=i.getChildContext())if(!(o in t))throw Error(Ho(108,Ko(e)||"Unknown",o));return N({},n,i)}function aa(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,Jt=Zt.current,ea(Zt,e),ea(Qt,Qt.current)}function sa(e,t,n){var o=e.stateNode;if(!o)throw Error(Ho(169));n?(e=ra(e,t,Jt),o.__reactInternalMemoizedMergedChildContext=e,Jr(Qt),Jr(Zt),ea(Zt,e)):Jr(Qt),ea(Qt,n)}function la(e){null===en?en=[e]:en.push(e)}function ca(){if(!nn&&null!==en){nn=!0;var e=0,t=ke;try{var n=en;for(ke=1;e<n.length;e++)for(var o=n[e];null!==(o=o(!0)););en=null,tn=!1}catch(t){throw null!==en&&(en=en.slice(e+1)),re(he,ca),t}finally{ke=t,nn=!1}}return null}function ua(e,t){on[rn++]=sn,on[rn++]=an,an=e,sn=t}function ha(e,t,n){ln[cn++]=hn,ln[cn++]=dn,ln[cn++]=un,un=e;var o,i=hn,r=(e=dn,32-be(i)-1),a=(i&=~(1<<r),n+=1,32-be(t)+r);dn=30<a?(a=(i&(1<<(o=r-r%5))-1).toString(32),i>>=o,r-=o,hn=1<<32-be(t)+r|n<<r|i,a+e):(hn=1<<a|n<<r|i,e)}function da(e){null!==e.return&&(ua(e,1),ha(e,1,0))}function pa(e){for(;e===an;)an=on[--rn],on[rn]=null,sn=on[--rn],on[rn]=null;for(;e===un;)un=ln[--cn],ln[cn]=null,dn=ln[--cn],ln[cn]=null,hn=ln[--cn],ln[cn]=null}function fa(e,t){var n=tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,null===(t=(n.return=e).deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ma(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,pn=e,fn=Wr(t.firstChild),1);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,pn=e,fn=null,1);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==un?{id:hn,overflow:dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=tc(18,null,null,0)).stateNode=t,(n.return=e).child=n,pn=e,fn=null,1);default:return}}function ga(e){return!(!(1&e.mode)||128&e.flags)}function va(e){if(mn)if(fn){var t=fn;if(!ma(e,fn)){if(ga(e))throw Error(Ho(418));var n=Wr(t.nextSibling),o=pn;n&&ma(e,n)?fa(o,t):(e.flags=-4097&e.flags|2,mn=!1,pn=e)}}else{if(ga(e))throw Error(Ho(418));e.flags=-4097&e.flags|2,mn=!1,pn=e}}function ba(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;pn=e}function ya(e){if(e!==pn)return!1;if(!mn)return ba(e),!(mn=!0);var t;if(t=(t=(t=3!==e.tag)&&!(t=5!==e.tag)?"head"!==(t=e.type)&&"body"!==t&&!Br(e.type,e.memoizedProps):t)&&fn){if(ga(e))throw _a(),Error(Ho(418));for(;t;)fa(e,t),t=Wr(t.nextSibling)}if(ba(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Ho(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){fn=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}fn=null}}else fn=pn?Wr(e.stateNode.nextSibling):null;return!0}function _a(){for(var e=fn;e;)e=Wr(e.nextSibling)}function wa(){fn=pn=null,mn=!1}function xa(e){null===gn?gn=[e]:gn.push(e)}function ka(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(Ho(309));var o=n.stateNode}var i,r;if(o)return i=o,r=""+e,null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=i.refs;null===e?delete t[r]:t[r]=e})._stringRef=r,t);throw Error(Ho(147,e))}if("string"!=typeof e)throw Error(Ho(284));if(!n._owner)throw Error(Ho(290,e))}return e}function Sa(e,t){throw e=Object.prototype.toString.call(t),Error(Ho(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ea(e){return(0,e._init)(e._payload)}function Ta(e){function t(t,n){var o;e&&(null===(o=t.deletions)?(t.deletions=[n],t.flags|=16):o.push(n))}function n(n,o){if(e)for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=oc(e,t)).index=0,e.sibling=null,e}function r(t,n,o){if(t.index=o,e){if(null!==(o=t.alternate))return(o=o.index)<n?(t.flags|=2,n):o;t.flags|=2}else t.flags|=1048576;return n}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,o){return null===t||6!==t.tag?(t=sc(n,e.mode,o)).return=e:(t=i(t,n)).return=e,t}function l(e,t,n,o){var r=n.type;return r===b?u(e,t,n.props.children,o,n.key):(null!==t&&(t.elementType===r||"object"==typeof r&&null!==r&&r.$$typeof===C&&Ea(r)===t.type)?(o=i(t,n.props)).ref=ka(0,t,n):(o=ic(n.type,n.key,n.props,null,e.mode,o)).ref=ka(0,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=lc(n,e.mode,o)).return=e:(t=i(t,n.children||[])).return=e,t}function u(e,t,n,o,r){return null===t||7!==t.tag?(t=rc(n,e.mode,o,r)).return=e:(t=i(t,n)).return=e,t}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=sc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case m:return(n=ic(t.type,t.key,t.props,null,e.mode,n)).ref=ka(0,null,t),n.return=e,n;case v:return(t=lc(t,e.mode,n)).return=e,t;case C:return h(e,(0,t._init)(t._payload),n)}if(D(t)||Go(t))return(t=rc(t,e.mode,n,null)).return=e,t;Sa(0,t)}return null}function d(e,t,n,o){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,o):null;case v:return n.key===i?c(e,t,n,o):null;case C:return d(e,t,(i=n._init)(n._payload),o)}if(D(n)||Go(n))return null!==i?null:u(e,t,n,o,null);Sa(0,n)}return null}function p(e,t,n,o,i){if("string"==typeof o&&""!==o||"number"==typeof o)return s(t,e=e.get(n)||null,""+o,i);if("object"==typeof o&&null!==o){switch(o.$$typeof){case m:return l(t,e=e.get(null===o.key?n:o.key)||null,o,i);case v:return c(t,e=e.get(null===o.key?n:o.key)||null,o,i);case C:return p(e,t,n,(0,o._init)(o._payload),i)}if(D(o)||Go(o))return u(t,e=e.get(n)||null,o,i,null);Sa(0,o)}return null}return function s(l,c,u,f){if("object"==typeof(u="object"==typeof u&&null!==u&&u.type===b&&null===u.key?u.props.children:u)&&null!==u){switch(u.$$typeof){case m:e:{for(var g=u.key,y=c;null!==y;){if(y.key===g){if((g=u.type)===b){if(7===y.tag){n(l,y.sibling),(c=i(y,u.props.children)).return=l,l=c;break e}}else if(y.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===C&&Ea(g)===y.type){n(l,y.sibling),(c=i(y,u.props)).ref=ka(0,y,u),c.return=l,l=c;break e}n(l,y);break}t(l,y),y=y.sibling}l=u.type===b?((c=rc(u.props.children,l.mode,f,u.key)).return=l,c):((f=ic(u.type,u.key,u.props,null,l.mode,f)).ref=ka(0,c,u),f.return=l,f)}return a(l);case v:e:{for(y=u.key;null!==c;){if(c.key===y){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(c=i(c,u.children||[])).return=l,l=c;break e}n(l,c);break}t(l,c),c=c.sibling}(c=lc(u,l.mode,f)).return=l,l=c}return a(l);case C:return s(l,c,(y=u._init)(u._payload),f)}if(D(u)){for(var _=l,w=c,x=u,k=f,S=null,E=null,T=w,P=w=0,O=null;null!==T&&P<x.length;P++){T.index>P?(O=T,T=null):O=T.sibling;var A=d(_,T,x[P],k);if(null===A){null===T&&(T=O);break}e&&T&&null===A.alternate&&t(_,T),w=r(A,w,P),null===E?S=A:E.sibling=A,E=A,T=O}if(P===x.length)n(_,T);else if(null===T)for(;P<x.length;P++)null!==(T=h(_,x[P],k))&&(w=r(T,w,P),null===E?S=T:E.sibling=T,E=T);else{for(T=o(_,T);P<x.length;P++)null!==(O=p(T,_,P,x[P],k))&&(e&&null!==O.alternate&&T.delete(null===O.key?P:O.key),w=r(O,w,P),null===E?S=O:E.sibling=O,E=O);e&&T.forEach(function(e){return t(_,e)})}return mn&&ua(_,P),S}if(Go(u)){var M=l,N=c,L=u,R=f,I=Go(L);if("function"!=typeof I)throw Error(Ho(150));if(null==(L=I.call(L)))throw Error(Ho(151));for(var $=I=null,F=N,V=N=0,j=null,H=L.next();null!==F&&!H.done;V++,H=L.next()){F.index>V?(j=F,F=null):j=F.sibling;var z=d(M,F,H.value,R);if(null===z){null===F&&(F=j);break}e&&F&&null===z.alternate&&t(M,F),N=r(z,N,V),null===$?I=z:$.sibling=z,$=z,F=j}if(H.done)n(M,F);else if(null===F)for(;!H.done;V++,H=L.next())null!==(H=h(M,H.value,R))&&(N=r(H,N,V),null===$?I=H:$.sibling=H,$=H);else{for(F=o(M,F);!H.done;V++,H=L.next())null!==(H=p(F,M,V,H.value,R))&&(e&&null!==H.alternate&&F.delete(null===H.key?V:H.key),N=r(H,N,V),null===$?I=H:$.sibling=H,$=H);e&&F.forEach(function(e){return t(M,e)})}return mn&&ua(M,V),I}Sa(0,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,(c=null!==c&&6===c.tag?(n(l,c.sibling),i(c,u)):(n(l,c),sc(u,l.mode,f))).return=l,a(l=c)):n(l,c)}}function Pa(){kn=xn=wn=null}function Oa(e){var t=_n.current;Jr(_n),e._currentValue=t}function Ca(e,t,n){for(;null!==e;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==o&&(o.childLanes|=t)):null!==o&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Aa(e,t){(kn=xn=null)!==(e=(wn=e).dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(qn=!0),e.firstContext=null)}function Ma(e){var t=e._currentValue;if(kn!==e)if(e={context:e,memoizedValue:t,next:null},null===xn){if(null===wn)throw Error(Ho(308));xn=e,wn.dependencies={lanes:0,firstContext:e}}else xn=xn.next=e;return t}function Na(e){null===Sn?Sn=[e]:Sn.push(e)}function La(e,t,n,o){var i=t.interleaved;return null===i?(n.next=n,Na(t)):(n.next=i.next,i.next=n),t.interleaved=n,Da(e,o)}function Da(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),e=(n=e).return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),e=(n=e).return;return 3===n.tag?n.stateNode:null}function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $a(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var o,i=e.updateQueue;return null===i?null:(i=i.shared,2&po?(null===(o=i.pending)?t.next=t:(t.next=o.next,o.next=t),i.pending=t):(null===(o=i.interleaved)?(t.next=t,Na(i)):(t.next=o.next,o.next=t),i.interleaved=t),Da(e,n))}function Va(e,t,n){var o;null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)&&(o=t.lanes,o&=e.pendingLanes,Vi(e,t.lanes=n|=o))}function ja(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var i=null,r=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null}}while(null===r?i=r=a:r=r.next=a,null!==(n=n.next));null===r?i=r=t:r=r.next=t}else i=r=t;n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:o.shared,effects:o.effects},e.updateQueue=n}else null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ha(e,t,n,o){var i,r,a=e.updateQueue,s=(En=!1,a.firstBaseUpdate),l=a.lastBaseUpdate;if(null!==(h=a.shared.pending)&&(a.shared.pending=null,r=(i=h).next,(i.next=null)===l?s=r:l.next=r,l=i,null!==(u=e.alternate))&&(h=(u=u.updateQueue).lastBaseUpdate)!==l&&(null===h?u.firstBaseUpdate=r:h.next=r,u.lastBaseUpdate=i),null!==s){for(var c=a.baseState,u=(l=0,r=i=null),h=s;;){var d=h.lane,p=h.eventTime;if((o&d)===d){null!==u&&(u=u.next={eventTime:p,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var f=e,m=h;d=t,p=n;switch(m.tag){case 1:if("function"==typeof(f=m.payload)){c=f.call(p,c,d);break e}c=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=m.payload)?f.call(p,c,d):f))break e;c=N({},c,d);break e;case 2:En=!0}}null!==h.callback&&0!==h.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[h]:d.push(h))}else p={eventTime:p,lane:d,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===u?(r=u=p,i=c):u=u.next=p,l|=d;if(null===(h=h.next)){if(null===(h=a.shared.pending))break;h=(d=h).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===u&&(i=c),a.baseState=i,a.firstBaseUpdate=r,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved))for(a=t;l|=a.lane,(a=a.next)!==t;);else null===s&&(a.shared.lanes=0);wo|=l,e.lanes=l,e.memoizedState=c}}function za(e,t,n){if(e=t.effects,(t.effects=null)!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=n,"function"!=typeof i)throw Error(Ho(191,i));i.call(o)}}}function Ba(e){if(e===Tn)throw Error(Ho(174));return e}function Ua(e,t){switch(ea(Cn,t),ea(On,e),ea(Pn,Tn),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fi(null,"");break;default:t=fi(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Jr(Pn),ea(Pn,t)}function Ya(){Jr(Pn),Jr(On),Jr(Cn)}function Wa(e){Ba(Cn.current);var t=Ba(Pn.current),n=fi(t,e.type);t!==n&&(ea(On,e),ea(Pn,n))}function Ga(e){On.current===e&&(Jr(Pn),Jr(On))}function Xa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t=(t.child.return=t).child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function qa(){for(var e=0;e<Mn.length;e++)Mn[e]._workInProgressVersionPrimary=null;Mn.length=0}function Ka(){throw Error(Ho(321))}function Za(e,t){if(null!==t){for(var n=0;n<t.length&&n<e.length;n++)if(!ft(e[n],t[n]))return;return 1}}function Qa(e,t,n,o,i,r){if(Dn=r,(Rn=t).memoizedState=null,t.updateQueue=null,t.lanes=0,Nn.current=null===e||null===e.memoizedState?Bn:Un,e=n(o,i),Vn){r=0;do{if(Vn=!1,jn=0,25<=r)throw Error(Ho(301))}while(r+=1,$n=In=null,t.updateQueue=null,Nn.current=Yn,e=n(o,i),Vn)}if(Nn.current=zn,t=null!==In&&null!==In.next,Dn=0,$n=In=Rn=null,Fn=!1,t)throw Error(Ho(300));return e}function Ja(){var e=0!==jn;return jn=0,e}function es(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===$n?Rn.memoizedState=$n=e:$n=$n.next=e,$n}function ts(){e=null===In?null!==(e=Rn.alternate)?e.memoizedState:null:In.next;var e,t=null===$n?Rn.memoizedState:$n.next;if(null!==t)$n=t,In=e;else{if(null===e)throw Error(Ho(310));e={memoizedState:(In=e).memoizedState,baseState:In.baseState,baseQueue:In.baseQueue,queue:In.queue,next:null},null===$n?Rn.memoizedState=$n=e:$n=$n.next=e}return $n}function ns(e,t){return"function"==typeof t?t(e):t}function os(e){var t=ts(),n=t.queue;if(null===n)throw Error(Ho(311));n.lastRenderedReducer=e;var o,i=(a=In).baseQueue;if(null!==(r=n.pending)&&(null!==i&&(o=i.next,i.next=r.next,r.next=o),a.baseQueue=i=r,n.pending=null),null!==i){var r=i.next,a=a.baseState,s=o=null,l=null,c=r;do{var u,h=c.lane}while((Dn&h)===h?(null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),a=c.hasEagerState?c.eagerState:e(a,c.action)):(u={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===l?(s=l=u,o=a):l=l.next=u,Rn.lanes|=h,wo|=h),null!==(c=c.next)&&c!==r);null===l?o=a:l.next=s,ft(a,t.memoizedState)||(qn=!0),t.memoizedState=a,t.baseState=o,t.baseQueue=l,n.lastRenderedState=a}if(null!==(e=n.interleaved))for(i=e;r=i.lane,Rn.lanes|=r,wo|=r,(i=i.next)!==e;);else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function is(e){var t=ts(),n=t.queue;if(null===n)throw Error(Ho(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,r=t.memoizedState;if(null!==i){n.pending=null;for(var a=i=i.next;r=e(r,a.action),(a=a.next)!==i;);ft(r,t.memoizedState)||(qn=!0),t.memoizedState=r,null===t.baseQueue&&(t.baseState=r),n.lastRenderedState=r}return[r,o]}function rs(){}function as(e,t){var n=Rn,o=ts(),i=t(),r=!ft(o.memoizedState,i);if(r&&(o.memoizedState=i,qn=!0),o=o.queue,bs(cs.bind(null,n,o,e),[e]),o.getSnapshot!==t||r||null!==$n&&1&$n.memoizedState.tag){if(n.flags|=2048,ps(9,ls.bind(null,n,o,i,t),void 0,null),null===fo)throw Error(Ho(349));!(30&Dn)&&ss(n,t,i)}return i}function ss(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Rn.updateQueue)?(Rn.updateQueue=t={lastEffect:null,stores:null}).stores=[e]:null===(n=t.stores)?t.stores=[e]:n.push(e)}function ls(e,t,n,o){t.value=n,t.getSnapshot=o,us(t)&&hs(e)}function cs(e,t,n){return n(function(){us(t)&&hs(e)})}function us(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ft(e,n)}catch(e){return 1}}function hs(e){var t=Da(e,1);null!==t&&Ml(t,e,1,-1)}function ds(e){var t=es();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(t.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:e}).dispatch=function(e,t,n){var o=Al(e),i={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Os(e))Cs(t,i);else{var r=e.alternate;if(0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{var a,s=t.lastRenderedState,l=r(s,n);if(i.hasEagerState=!0,i.eagerState=l,ft(l,s))return null===(a=t.interleaved)?(i.next=i,Na(t)):(i.next=a.next,a.next=i),void(t.interleaved=i)}catch(e){}null!==(n=La(e,t,i,o))&&(Ml(n,e,o,i=Cl()),As(n,t,o))}}.bind(null,Rn,e),[t.memoizedState,e]}function ps(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=Rn.updateQueue)?(Rn.updateQueue=t={lastEffect:null,stores:null}).lastEffect=e.next=e:null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,(n.next=e).next=o,t.lastEffect=e),e}function fs(){return ts().memoizedState}function ms(e,t,n,o){var i=es();Rn.flags|=e,i.memoizedState=ps(1|t,n,void 0,void 0===o?null:o)}function gs(e,t,n,o){var i=ts(),r=void(o=void 0===o?null:o);if(null!==In){var a=In.memoizedState;r=a.destroy;if(null!==o&&Za(o,a.deps))return void(i.memoizedState=ps(t,n,r,o))}Rn.flags|=e,i.memoizedState=ps(1|t,n,r,o)}function vs(e,t){return ms(8390656,8,e,t)}function bs(e,t){return gs(2048,8,e,t)}function ys(e,t){return gs(4,2,e,t)}function _s(e,t){return gs(4,4,e,t)}function ws(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xs(e,t,n){return n=null!=n?n.concat([e]):null,gs(4,4,ws.bind(null,t,e),n)}function ks(){}function Ss(e,t){var n=ts(),o=(t=void 0===t?null:t,n.memoizedState);return null!==o&&null!==t&&Za(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Es(e,t){var n=ts(),o=(t=void 0===t?null:t,n.memoizedState);return null!==o&&null!==t&&Za(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Ts(e,t,n){return 21&Dn?(ft(n,t)||(n=Ii(),Rn.lanes|=n,wo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qn=!0),e.memoizedState=n)}function Ps(){return ts().memoizedState}function Os(e){var t=e.alternate;return e===Rn||null!==t&&t===Rn}function Cs(e,t){Vn=Fn=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function As(e,t,n){var o;4194240&n&&(o=t.lanes,o&=e.pendingLanes,Vi(e,t.lanes=n|=o))}function Ms(e,t){if(e&&e.defaultProps)for(var n in t=N({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function Ns(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:N({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}function Ls(e,t,n,o,i,r,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,r,a):!(t.prototype&&t.prototype.isPureReactComponent&&_r(n,o)&&_r(i,r))}function Ds(e,t,n){var o=!1,i=Kt,r=t.contextType;t=new t(n,r="object"==typeof r&&null!==r?Ma(r):(i=na(t)?Jt:Zt.current,(o=null!=(o=t.contextTypes))?ta(e,i):Kt)),e.memoizedState=null!=t.state?t.state:null,t.updater=Wn,(e.stateNode=t)._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=r)}function Rs(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Wn.enqueueReplaceState(t,t.state,null)}function Is(e,t,n,o){var i=e.stateNode,r=(i.props=n,i.state=e.memoizedState,i.refs={},Ra(e),t.contextType);"object"==typeof r&&null!==r?i.context=Ma(r):(r=na(t)?Jt:Zt.current,i.context=ta(e,r)),i.state=e.memoizedState,"function"==typeof(r=t.getDerivedStateFromProps)&&(Ns(e,0,r,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Wn.enqueueReplaceState(i,i.state,null),Ha(e,n,i,o),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function $s(e,t){try{for(var n="",o=t;n+=(e=>{switch(e.tag){case 5:return Xo(e.type);case 16:return Xo("Lazy");case 13:return Xo("Suspense");case 19:return Xo("SuspenseList");case 0:case 2:case 15:return qo(e.type,!1);case 11:return qo(e.type.render,!1);case 1:return qo(e.type,!0);default:return""}})(o),o=o.return;);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function Fs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Vs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function js(e,t,n){(n=$a(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Co||(Co=!0,Ao=o),Vs(0,t)},n}function Hs(e,t,n){(n=$a(-1,n)).tag=3;var o,i=e.type.getDerivedStateFromError;return null!==(e=("function"==typeof i&&(o=t.value,n.payload=function(){return i(o)},n.callback=function(){Vs(0,t)}),e.stateNode))&&"function"==typeof e.componentDidCatch&&(n.callback=function(){Vs(0,t),"function"!=typeof i&&(null===Mo?Mo=new Set([this]):Mo.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function zs(e,t,n){var o,i=e.pingCache;null===i?(i=e.pingCache=new Gn,o=new Set,i.set(t,o)):void 0===(o=i.get(t))&&(o=new Set,i.set(t,o)),o.has(n)||(o.add(n),e=function(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=Cl(),e.pingedLanes|=e.suspendedLanes&n,fo===e&&(go&n)===n&&(4===yo||3===yo&&(130023424&go)===go&&ce()-To<500?Hl(e,0):ko|=n),Nl(e,t)}.bind(null,e,t,n),t.then(e,e))}function Bs(e){do{var t;if(t=(t=13===e.tag)?null===(t=e.memoizedState)||null!==t.dehydrated:t)return e}while(null!==(e=e.return));return null}function Us(e,t,n,o,i){if(!(1&e.mode))return e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=$a(-1,1)).tag=2,Fa(n,t,1))),n.lanes|=1);e.flags|=65536,e.lanes=i}function Ys(e,t,n,o){t.child=null===e?yn(t,null,n,o):bn(t,e.child,n,o)}function Ws(e,t,n,o,i){n=n.render;var r=t.ref;return Aa(t,i),o=Qa(e,t,n,o,r,i),n=Ja(),null===e||qn?(mn&&n&&da(t),t.flags|=1,Ys(e,t,o,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ul(e,t,i))}function Gs(e,t,n,o,i){var r;if(null===e)return"function"!=typeof(r=n.type)||nc(r)||void 0!==r.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ic(n.type,null,o,t,t.mode,i)).ref=t.ref,(e.return=t).child=e):(t.tag=15,t.type=r,Xs(e,t,r,o,i));if(r=e.child,0==(e.lanes&i)){var a=r.memoizedProps;if((n=null!==(n=n.compare)?n:_r)(a,o)&&e.ref===t.ref)return ul(e,t,i)}return t.flags|=1,(e=oc(r,o)).ref=t.ref,(e.return=t).child=e}function Xs(e,t,n,o,i){if(null!==e){var r=e.memoizedProps;if(_r(r,o)&&e.ref===t.ref){if(qn=!1,t.pendingProps=o=r,0==(e.lanes&i))return t.lanes=e.lanes,ul(e,t,i);131072&e.flags&&(qn=!0)}}return Zs(e,t,n,o,i)}function qs(e,t,n){var o=t.pendingProps,i=o.children,r=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==r?r.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ea(bo,vo),vo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==r?r.baseLanes:n,ea(bo,vo),vo|=o}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ea(bo,vo),vo|=n;else null!==r?(o=r.baseLanes|n,t.memoizedState=null):o=n,ea(bo,vo),vo|=o;return Ys(e,t,i,n),t.child}function Ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zs(e,t,n,o,i){var r=ta(t,na(n)?Jt:Zt.current);return Aa(t,i),n=Qa(e,t,n,o,r,i),o=Ja(),null===e||qn?(mn&&o&&da(t),t.flags|=1,Ys(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ul(e,t,i))}function Qs(e,t,n,o,i){var r,a,s,l,c,u,h,d,p,f;return na(n)?(r=!0,aa(t)):r=!1,Aa(t,i),o=null===t.stateNode?(cl(e,t),Ds(t,n,o),Is(t,n,o,i),!0):null===e?((a=t.stateNode).props=s=t.memoizedProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Ma(l):ta(t,l=na(n)?Jt:Zt.current),(u="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||s===o&&d===l||Rs(0,a,o,l),En=!1,a.state=h=t.memoizedState,Ha(t,o,a,i),d=t.memoizedState,s!==o||h!==d||Qt.current||En?("function"==typeof c&&(Ns(t,0,c,o),d=t.memoizedState),(s=En||Ls(t,n,s,o,h,d,l))?(u||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=d),a.props=o,a.state=d,a.context=l,s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),!1)):(a=t.stateNode,Ia(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ms(t.type,s),a.props=l,u=t.pendingProps,h=a.context,d="object"==typeof(d=n.contextType)&&null!==d?Ma(d):ta(t,d=na(n)?Jt:Zt.current),(c="function"==typeof(p=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||s===u&&h===d||Rs(0,a,o,d),En=!1,a.state=h=t.memoizedState,Ha(t,o,a,i),f=t.memoizedState,s!==u||h!==f||Qt.current||En?("function"==typeof p&&(Ns(t,0,p,o),f=t.memoizedState),(l=En||Ls(t,n,l,o,h,f,d)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(o,f,d),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(o,f,d)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),a.props=o,a.state=f,a.context=d,l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),!1)),Js(e,t,n,o,r,i)}function Js(e,t,n,o,i,r){Ks(e,t);var a=!!(128&t.flags);if(!o&&!a)return i&&sa(t,n,!1),ul(e,t,r);o=t.stateNode,Xn.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&a?(t.child=bn(t,e.child,null,r),t.child=bn(t,null,s,r)):Ys(e,t,s,r),t.memoizedState=o.state,i&&sa(t,n,!0),t.child}function el(e){var t=e.stateNode;t.pendingContext?ia(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ia(0,t.context,!1),Ua(e,t.containerInfo)}function tl(e,t,n,o,i){return wa(),xa(i),t.flags|=256,Ys(e,t,n,o),t.child}function nl(e){return{baseLanes:e,cachePool:null,transitions:null}}function ol(e,t,n){var o,i,r=t.pendingProps,a=An.current,s=!1,l=!!(128&t.flags);if((i=(i=l)||(null===e||null!==e.memoizedState)&&!!(2&a))?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ea(An,1&a),null===e)return va(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},1&r||null===s?s=ac(l,r,0,null):(s.childLanes=0,s.pendingProps=l),e=rc(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=nl(n),t.memoizedState=Kn,e):il(t,l));if(null===(a=e.memoizedState)||null===(i=a.dehydrated))return s?(s=r.fallback,l=t.mode,i=(a=e.child).sibling,c={mode:"hidden",children:r.children},1&l||t.child===a?(r=oc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((r=t.child).childLanes=0,r.pendingProps=c,t.deletions=null),null!==i?s=oc(i,s):(s=rc(s,l,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,l=null===(l=e.child.memoizedState)?nl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},(s=t.child).memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Kn):(e=(s=e.child).sibling,r=oc(s,{mode:"visible",children:r.children}),!(1&t.mode)&&(r.lanes=n),r.return=t,(r.sibling=null)!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null),r;var c=e,u=(s=t,e=r,i);t=a,r=n;if(l)return 256&s.flags?(s.flags&=-257,rl(c,s,r,e=Fs(Error(Ho(422))))):null!==s.memoizedState?(s.child=c.child,s.flags|=128,null):(t=e.fallback,u=s.mode,e=ac({mode:"visible",children:e.children},u,0,null),(t=rc(t,u,r,null)).flags|=2,e.return=s,t.return=s,e.sibling=t,s.child=e,!!(1&s.mode)&&bn(s,c.child,null,r),s.child.memoizedState=nl(r),s.memoizedState=Kn,t);if(!(1&s.mode))return rl(c,s,r,null);if("$!"===u.data)return e=o=(e=u.nextSibling&&u.nextSibling.dataset)?e.dgst:o,rl(c,s,r,e=Fs(t=Error(Ho(419)),e,void 0));if(o=0!=(r&c.childLanes),qn||o){if(null!==(e=fo)){switch(r&-r){case 4:u=2;break;case 16:u=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:u=32;break;case 536870912:u=268435456;break;default:u=0}0!==(u=0!=(u&(e.suspendedLanes|r))?0:u)&&u!==t.retryLane&&(t.retryLane=u,Da(c,u),Ml(e,c,u,-1))}return Ul(),rl(c,s,r,e=Fs(Error(Ho(421))))}return"$?"===u.data?(s.flags|=128,s.child=c.child,s=function(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ql(e,n)}.bind(null,c),u._reactRetry=s,null):(c=t.treeContext,fn=Wr(u.nextSibling),pn=s,mn=!0,(gn=null)!==c&&(ln[cn++]=hn,ln[cn++]=dn,ln[cn++]=un,hn=c.id,dn=c.overflow,un=s),(s=il(s,e.children)).flags|=4096,s)}function il(e,t){return((t=ac({mode:"visible",children:t},e.mode,0,null)).return=e).child=t}function rl(e,t,n,o){return null!==o&&xa(o),bn(t,e.child,null,n),(e=il(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function al(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),Ca(e.return,t,n)}function sl(e,t,n,o,i){var r=e.memoizedState;null===r?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=o,r.tail=n,r.tailMode=i)}function ll(e,t,n){var o=t.pendingProps,i=o.revealOrder,r=o.tail;if(Ys(e,t,o.children,n),2&(o=An.current))o=1&o|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&al(e,n,t);else if(19===e.tag)al(e,n,t);else if(null!==e.child){e=(e.child.return=e).child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(ea(An,o),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Xa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sl(t,!1,i,n,r);break;case"backwards":for(i=t.child,t.child=n=null;null!==i;){if(null!==(e=i.alternate)&&null===Xa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sl(t,!0,n,null,r);break;case"together":sl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function cl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ul(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),wo|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Ho(153));if(null!==t.child){for(n=oc(e=t.child,e.pendingProps),(t.child=n).return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function hl(e,t){if(!mn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function dl(e){var t=0,n=0;if(null!==e.alternate&&e.alternate.child===e.child)for(var o=e.child;null!==o;)t|=o.lanes|o.childLanes,n=(n|=14680064&o.subtreeFlags)|14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)t|=o.lanes|o.childLanes,n=(n|=o.subtreeFlags)|o.flags,o.return=e,o=o.sibling;e.subtreeFlags|=n,e.childLanes=t}function pl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Zl(e,t,n)}else n.current=null}function fl(e,t,n){try{n()}catch(n){Zl(e,t,n)}}function ml(e,t,n){var o=t.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var i,r=o=o.next;do{}while((r.tag&e)===e&&(i=r.destroy,(r.destroy=void 0)!==i)&&fl(t,n,i),(r=r.next)!==o)}}function gl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n,o=t=t.next;do{}while((o.tag&e)===e&&(n=o.create,o.destroy=n()),(o=o.next)!==t)}}function vl(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function bl(e){return 5===e.tag||3===e.tag||4===e.tag}function yl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||bl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e=(e.child.return=e).child}if(!(2&e.flags))return e.stateNode}}function _l(e,t,n){for(n=n.child;null!==n;)wl(e,t,n),n=n.sibling}function wl(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ge,n)}catch(e){}switch(n.tag){case 5:no||pl(n,t);case 6:var o=ao,i=so;ao=null,_l(e,t,n),so=i,null!==(ao=o)&&(so?(e=ao,n=n.stateNode,(8===e.nodeType?e.parentNode:e).removeChild(n)):ao.removeChild(n.stateNode));break;case 18:null!==ao&&(so?(e=ao,n=n.stateNode,8===e.nodeType?Yr(e.parentNode,n):1===e.nodeType&&Yr(e,n),Xi(e)):Yr(ao,n.stateNode));break;case 4:o=ao,i=so,ao=n.stateNode.containerInfo,so=!0,_l(e,t,n),ao=o,so=i;break;case 0:case 11:case 14:case 15:if(!no&&null!==(o=n.updateQueue)&&null!==(o=o.lastEffect)){i=o=o.next;do{var r=i.destroy,a=i.tag}while(void 0===r||!(2&a)&&!(4&a)||fl(n,t,r),(i=i.next)!==o)}_l(e,t,n);break;case 1:if(!no&&(pl(n,t),"function"==typeof(o=n.stateNode).componentWillUnmount))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(e){Zl(n,t,e)}_l(e,t,n);break;case 21:_l(e,t,n);break;case 22:1&n.mode?(no=(o=no)||null!==n.memoizedState,_l(e,t,n),no=o):_l(e,t,n);break;default:_l(e,t,n)}}function xl(e){var t,n=e.updateQueue;null!==n&&((e.updateQueue=null)===(t=e.stateNode)&&(t=e.stateNode=new oo),n.forEach(function(n){var o=function(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(Ho(314))}null!==o&&o.delete(t),Ql(e,n)}.bind(null,e,n);t.has(n)||(t.add(n),n.then(o,o))}))}function kl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o];try{var r=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:ao=s.stateNode,so=!1;break e;case 3:case 4:ao=s.stateNode.containerInfo,so=!0;break e}s=s.return}if(null===ao)throw Error(Ho(160));wl(r,a,i),ao=null,so=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){Zl(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Sl(t,e),t=t.sibling}function Sl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kl(t,e),El(e),4&o){try{ml(3,e,e.return),gl(3,e)}catch(t){Zl(e,e.return,t)}try{ml(5,e,e.return)}catch(t){Zl(e,e.return,t)}}break;case 1:kl(t,e),El(e),512&o&&null!==n&&pl(n,n.return);break;case 5:if(kl(t,e),El(e),512&o&&null!==n&&pl(n,n.return),32&e.flags){var i=e.stateNode;try{mi(i,"")}catch(t){Zl(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var r=e.memoizedProps,a=null!==n?n.memoizedProps:r,s=e.type,l=e.updateQueue;if((e.updateQueue=null)!==l)try{"input"===s&&"radio"===r.type&&null!=r.name&&ii(i,r),yi(s,a);var c=yi(s,r);for(a=0;a<l.length;a+=2){var u=l[a],h=l[a+1];"style"===u?vi(i,h):"dangerouslySetInnerHTML"===u?R(i,h):"children"===u?mi(i,h):Wo(i,u,h,c)}switch(s){case"input":ri(i,r);break;case"textarea":hi(i,r);break;case"select":var d=i._wrapperState.wasMultiple,p=(i._wrapperState.wasMultiple=!!r.multiple,r.value);null!=p?li(i,!!r.multiple,p,!1):d!==!!r.multiple&&(null!=r.defaultValue?li(i,!!r.multiple,r.defaultValue,!0):li(i,!!r.multiple,r.multiple?[]:"",!1))}i[Bt]=r}catch(t){Zl(e,e.return,t)}}break;case 6:if(kl(t,e),El(e),4&o){if(null===e.stateNode)throw Error(Ho(162));i=e.stateNode,r=e.memoizedProps;try{i.nodeValue=r}catch(t){Zl(e,e.return,t)}}break;case 3:if(kl(t,e),El(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Xi(t.containerInfo)}catch(t){Zl(e,e.return,t)}break;case 4:default:kl(t,e),El(e);break;case 13:kl(t,e),El(e),8192&(i=e.child).flags&&(r=null!==i.memoizedState,!(i.stateNode.isHidden=r)||null!==i.alternate&&null!==i.alternate.memoizedState||(To=ce())),4&o&&xl(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(no=(c=no)||u,kl(t,e),no=c):kl(t,e),El(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(u=(io=e).child;null!==u;){for(h=io=u;null!==io;){switch(p=(d=io).child,d.tag){case 0:case 11:case 14:case 15:ml(4,d,d.return);break;case 1:pl(d,d.return);var f=d.stateNode;if("function"==typeof f.componentWillUnmount){n=(o=d).return;try{t=o,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(t){Zl(o,n,t)}}break;case 5:pl(d,d.return);break;case 22:if(null!==d.memoizedState){Pl(h);continue}}null!==p?(p.return=d,io=p):Pl(h)}u=u.sibling}e:for(u=null,h=e;;){if(5===h.tag){if(null===u){u=h;try{i=h.stateNode,c?"function"==typeof(r=i.style).setProperty?r.setProperty("display","none","important"):r.display="none":(s=h.stateNode,a=null!=(l=h.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=gi("display",a))}catch(t){Zl(e,e.return,t)}}}else if(6===h.tag){if(null===u)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){Zl(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h=(h.child.return=h).child;continue}if(h===e)break;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:kl(t,e),El(e),4&o&&xl(e);case 21:}}function El(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(bl(n)){var o=n;break e}n=n.return}throw Error(Ho(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(mi(i,""),o.flags&=-33),function e(t,n,o){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?o.insertBefore(t,n):o.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,yl(e),i);break;case 3:case 4:var r=o.stateNode.containerInfo;!function e(t,n,o){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?(8===o.nodeType?o.parentNode:o).insertBefore(t,n):(8===o.nodeType?(n=o.parentNode).insertBefore(t,o):(n=o).appendChild(t),null==(o=o._reactRootContainer)&&null===n.onclick&&(n.onclick=zr));else if(4!==i&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,yl(e),r);break;default:throw Error(Ho(161))}}catch(t){Zl(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Tl(e){for(;null!==io;){var t=io;if(8772&t.flags){var n,o,i,r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:no||gl(5,t);break;case 1:var a,s=t.stateNode,l=(4&t.flags&&!no&&(null===r?s.componentDidMount():(a=t.elementType===t.type?r.memoizedProps:Ms(t.type,r.memoizedProps),s.componentDidUpdate(a,r.memoizedState,s.__reactInternalSnapshotBeforeUpdate))),t.updateQueue);null!==l&&za(0,l,s);break;case 3:var c=t.updateQueue;if(null!==c){if((r=null)!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}za(0,c,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&r.focus();break;case"img":h.src&&(r.src=h.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:null===t.memoizedState&&null!==(n=t.alternate)&&null!==(o=n.memoizedState)&&null!==(i=o.dehydrated)&&Xi(i);break;default:throw Error(Ho(163))}no||512&t.flags&&vl(t)}catch(e){Zl(t,t.return,e)}}if(t===e){io=null;break}if(null!==(r=t.sibling)){r.return=t.return,io=r;break}io=t.return}}function Pl(e){for(;null!==io;){var t=io;if(t===e){io=null;break}var n=t.sibling;if(null!==n){n.return=t.return,io=n;break}io=t.return}}function Ol(e){for(;null!==io;){var t=io;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{gl(4,t)}catch(e){Zl(t,n,e)}break;case 1:var o=t.stateNode;if("function"==typeof o.componentDidMount){var i=t.return;try{o.componentDidMount()}catch(e){Zl(t,i,e)}}var r=t.return;try{vl(t)}catch(e){Zl(t,r,e)}break;case 5:var a=t.return;try{vl(t)}catch(e){Zl(t,a,e)}}}catch(e){Zl(t,t.return,e)}if(t===e){io=null;break}var s=t.sibling;if(null!==s){s.return=t.return,io=s;break}io=t.return}}function Cl(){return 6&po?ce():-1!==$o?$o:$o=ce()}function Al(e){return 1&e.mode?2&po&&0!==go?go&-go:null!==vn.transition?Fo=0===Fo?Ii():Fo:0===(e=ke)?void 0===(e=window.event)?16:Ji(e.type):e:1}function Ml(e,t,n,o){if(50<Ro)throw Ro=0,Io=null,Error(Ho(185));Fi(e,n,o),2&po&&e===fo||(e===fo&&(!(2&po)&&(xo|=n),4===yo)&&Il(e,go),Nl(e,o),1===n&&0===po&&!(1&t.mode)&&(Po=ce()+500,tn)&&ca())}function Nl(e,t){var n,o=e.callbackNode,i=(function(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes;0<r;){var a=31-be(r),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&o)||(i[a]=((e,t)=>{switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}})(s,t)):l<=t&&(e.expiredLanes|=s),r&=~s}}(e,t),Di(e,e===fo?go:0));if(0===i)null!==o&&ae(o),e.callbackNode=null,e.callbackPriority=0;else if(e.callbackPriority!==(t=i&-i)){if(null!=o&&ae(o),1===t)0===e.tag?(n=$l.bind(null,e),tn=!0,la(n)):la($l.bind(null,e)),Ht(function(){!(6&po)&&ca()}),o=null;else{switch(ji(i)){case 1:o=he;break;case 4:o=de;break;case 16:default:o=pe;break;case 536870912:o=me}o=Jl(o,Ll.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function Ll(e,t){if($o=-1,(Fo=0)!=(6&po))throw Error(Ho(327));var n=e.callbackNode;if(ql()&&e.callbackNode!==n)return null;var o=Di(e,e===fo?go:0);if(0===o)return null;if(30&o||0!=(o&e.expiredLanes)||t)t=Yl(e,o);else{t=o;var i=po,r=(po|=2,Bl());for(fo===e&&go===t||(Oo=null,Po=ce()+500,Hl(e,t));;)try{for(;null!==mo&&!se();)Wl(mo);break}catch(t){zl(e,t)}Pa(),co.current=r,po=i,t=null!==mo?0:(fo=null,go=0,yo)}if(0!==t){if(1===(t=2===t&&0!==(i=Ri(e))?Dl(e,o=i):t))throw n=_o,Hl(e,0),Il(e,o),Nl(e,ce()),n;if(6===t)Il(e,o);else{if(i=e.current.alternate,!(30&o||(e=>{for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var o=0;o<n.length;o++){var i=n[o],r=i.getSnapshot;i=i.value;try{if(!ft(r(),i))return}catch(e){return}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return 1;t=t.return}t.sibling.return=t.return,t=t.sibling}}return 1})(i)||1!==(t=2===(t=Yl(e,o))&&0!==(r=Ri(e))?Dl(e,o=r):t)))throw n=_o,Hl(e,0),Il(e,o),Nl(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(Ho(345));case 2:case 5:Xl(e,Eo,Oo);break;case 3:if(Il(e,o),(130023424&o)===o&&10<(t=To+500-ce())){if(0!==Di(e,0))break;if(((i=e.suspendedLanes)&o)!==o){Cl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ft(Xl.bind(null,e,Eo,Oo),t)}else Xl(e,Eo,Oo);break;case 4:if(Il(e,o),(4194240&o)!==o){for(t=e.eventTimes,i=-1;0<o;){var a=31-be(o);r=1<<a;i<(a=t[a])&&(i=a),o&=~r}o=i,10<(o=((o=ce()-o)<120?120:o<480?480:o<1080?1080:o<1920?1920:o<3e3?3e3:o<4320?4320:1960*lo(o/1960))-o)?e.timeoutHandle=Ft(Xl.bind(null,e,Eo,Oo),o):Xl(e,Eo,Oo)}break;default:throw Error(Ho(329))}}}return Nl(e,ce()),e.callbackNode===n?Ll.bind(null,e):null}function Dl(e,t){var n=So;return e.current.memoizedState.isDehydrated&&(Hl(e,t).flags|=256),2!==(e=Yl(e,t))&&(t=Eo,Eo=n,null!==t)&&Rl(t),e}function Rl(e){null===Eo?Eo=e:Eo.push.apply(Eo,e)}function Il(e,t){for(t=t&~ko&~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-be(t),o=1<<n;e[n]=-1,t&=~o}}function $l(e){if(6&po)throw Error(Ho(327));ql();var t=Di(e,0);if(1&t){var n,o=Yl(e,t);if(1===(o=0!==e.tag&&2===o&&0!==(n=Ri(e))?Dl(e,t=n):o))throw o=_o,Hl(e,0),Il(e,t),Nl(e,ce()),o;if(6===o)throw Error(Ho(345));e.finishedWork=e.current.alternate,e.finishedLanes=t,Xl(e,Eo,Oo)}return Nl(e,ce()),null}function Fl(e,t){var n=po;po|=1;try{return e(t)}finally{0===(po=n)&&(Po=ce()+500,tn)&&ca()}}function Vl(e){null!==Lo&&0===Lo.tag&&!(6&po)&&ql();var t=po,n=(po|=1,ho.transition),o=ke;try{if(ho.transition=null,ke=1,e)return e()}finally{ke=o,ho.transition=n,!(6&(po=t))&&ca()}}function jl(){vo=bo.current,Jr(bo)}function Hl(e,t){e.finishedWork=null,e.finishedLanes=0;var n,o,i,r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Vt(r)),null!==mo)for(r=mo.return;null!==r;){var a=r;switch(pa(a),a.tag){case 1:null!=(a=a.type.childContextTypes)&&oa();break;case 3:Ya(),Jr(Qt),Jr(Zt),qa();break;case 5:Ga(a);break;case 4:Ya();break;case 13:case 19:Jr(An);break;case 10:Oa(a.type._context);break;case 22:case 23:jl()}r=r.return}if(mo=e=oc((fo=e).current,null),go=vo=t,ko=xo=wo=yo=0,(Eo=So=_o=null)!==Sn){for(t=0;t<Sn.length;t++)null!==(a=(r=Sn[t]).interleaved)&&(r.interleaved=null,n=a.next,null!==(o=r.pending)&&(i=o.next,o.next=n,a.next=i),r.pending=a);Sn=null}return e}function zl(e,t){for(;;){var n=mo;try{if(Pa(),Nn.current=zn,Fn){for(var o=Rn.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}Fn=!1}if($n=In=Rn=null,Vn=!1,jn=Dn=0,(uo.current=null)===n||null===n.return){yo=1,_o=t,mo=null;break}e:{var r=e,a=n.return,s=t;if(t=go,(g=n).flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l,c=s,u=g,h=u.tag,d=(!!(1&u.mode)||0!==h&&11!==h&&15!==h||((l=u.alternate)?(u.updateQueue=l.updateQueue,u.memoizedState=l.memoizedState,u.lanes=l.lanes):(u.updateQueue=null,u.memoizedState=null)),Bs(a));if(null!==d){d.flags&=-257,Us(d,a,g,0,t),1&d.mode&&zs(r,c,t);s=c;var p,f=(t=d).updateQueue;null===f?((p=new Set).add(s),t.updateQueue=p):f.add(s);break e}if(!(1&t)){zs(r,c,t),Ul();break e}s=Error(Ho(426))}else if(mn&&1&g.mode){var m=Bs(a);if(null!==m){!(65536&m.flags)&&(m.flags|=256),Us(m,a,g,0,t),xa($s(s,g));break e}}r=s=$s(s,g),4!==yo&&(yo=2),null===So?So=[r]:So.push(r),r=a;do{switch(r.tag){case 3:r.flags|=65536,t&=-t,r.lanes|=t,ja(r,js(0,s,t));break e;case 1:var g=s,v=r.type,b=r.stateNode;if(!(128&r.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Mo&&Mo.has(b)))){r.flags|=65536,t&=-t,r.lanes|=t,ja(r,Hs(r,g,t));break e}}}while(null!==(r=r.return))}Gl(n)}catch(e){t=e,mo===n&&null!==n&&(mo=n.return);continue}break}}function Bl(){var e=co.current;return co.current=zn,null===e?zn:e}function Ul(){0!==yo&&3!==yo&&2!==yo||(yo=4),null===fo||!(268435455&wo)&&!(268435455&xo)||Il(fo,go)}function Yl(e,t){var n=po,o=(po|=2,Bl());for(fo===e&&go===t||(Oo=null,Hl(e,t));;)try{for(;null!==mo;)Wl(mo);break}catch(t){zl(e,t)}if(Pa(),po=n,co.current=o,null!==mo)throw Error(Ho(261));return fo=null,go=0,yo}function Wl(e){var t=Vo(e.alternate,e,vo);e.memoizedProps=e.pendingProps,null===t?Gl(e):mo=t,uo.current=null}function Gl(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=((e,t)=>{switch(pa(t),t.tag){case 1:return na(t.type)&&oa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ya(),Jr(Qt),Jr(Zt),qa(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ga(t),null;case 13:if(Jr(An),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Ho(340));wa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Jr(An),null;case 4:return Ya(),null;case 10:return Oa(t.type._context),null;case 22:case 23:return jl(),null;default:return null}})(n,t)))return n.flags&=32767,void(mo=n);if(null===e)return yo=6,void(mo=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=((e,t,n)=>{var o=t.pendingProps;switch(pa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dl(t),null;case 1:case 17:return na(t.type)&&oa(),dl(t),null;case 3:return o=t.stateNode,Ya(),Jr(Qt),Jr(Zt),qa(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(ya(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==gn&&(Rl(gn),gn=null))),Qn(e,t),dl(t),null;case 5:Ga(t);var i,r=Ba(Cn.current);if(n=t.type,null!==e&&null!=t.stateNode)Jn(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(Ho(166));return dl(t),null}if(e=Ba(Pn.current),ya(t)){o=t.stateNode,n=t.type;var s,l,c=t.memoizedProps;switch(o[zt]=t,o[Bt]=c,e=!!(1&t.mode),n){case"dialog":Mr("cancel",o),Mr("close",o);break;case"iframe":case"object":case"embed":Mr("load",o);break;case"video":case"audio":for(r=0;r<Mt.length;r++)Mr(Mt[r],o);break;case"source":Mr("error",o);break;case"img":case"image":case"link":Mr("error",o),Mr("load",o);break;case"details":Mr("toggle",o);break;case"input":oi(o,c),Mr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},Mr("invalid",o);break;case"textarea":ui(o,c),Mr("invalid",o)}for(s in bi(n,c),r=null,c)c.hasOwnProperty(s)&&(l=c[s],"children"===s?"string"==typeof l?o.textContent!==l&&(!0!==c.suppressHydrationWarning&&Hr(o.textContent,l,e),r=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(!0!==c.suppressHydrationWarning&&Hr(o.textContent,l,e),r=["children",""+l]):a.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&Mr("scroll",o));switch(n){case"input":Jo(o),ai(o,c,!0);break;case"textarea":Jo(o),di(o);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(o.onclick=zr)}o=r,null!==(t.updateQueue=o)&&(t.flags|=4)}else{s=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===(e="http://www.w3.org/1999/xhtml"===e?pi(n):e)?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=s.createElement(n,{is:o.is}):(e=s.createElement(n),"select"===n&&(s=e,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):e=s.createElementNS(e,n),e[zt]=t,e[Bt]=o,Zn(e,t,!1,!1),t.stateNode=e;e:{switch(s=yi(n,o),n){case"dialog":Mr("cancel",e),Mr("close",e),r=o;break;case"iframe":case"object":case"embed":Mr("load",e),r=o;break;case"video":case"audio":for(r=0;r<Mt.length;r++)Mr(Mt[r],e);r=o;break;case"source":Mr("error",e),r=o;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),r=o;break;case"details":Mr("toggle",e),r=o;break;case"input":oi(e,o),r=ni(e,o),Mr("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=N({},o,{value:void 0}),Mr("invalid",e);break;case"textarea":ui(e,o),r=ci(e,o),Mr("invalid",e)}for(c in bi(n,r),l=r)l.hasOwnProperty(c)&&(i=l[c],"style"===c?vi(e,i):"dangerouslySetInnerHTML"===c?null!=(i=i?i.__html:void 0)&&R(e,i):"children"===c?"string"==typeof i?"textarea"===n&&""===i||mi(e,i):"number"==typeof i&&mi(e,""+i):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?null!=i&&"onScroll"===c&&Mr("scroll",e):null!=i&&Wo(e,c,i,s)));switch(n){case"input":Jo(e),ai(e,o,!1);break;case"textarea":Jo(e),di(e);break;case"option":null!=o.value&&e.setAttribute("value",""+Zo(o.value));break;case"select":e.multiple=!!o.multiple,null!=(c=o.value)?li(e,!!o.multiple,c,!1):null!=o.defaultValue&&li(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=zr)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return dl(t),null;case 6:if(e&&null!=t.stateNode)eo(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(Ho(166));if(n=Ba(Cn.current),Ba(Pn.current),ya(t)){if(o=t.stateNode,n=t.memoizedProps,o[zt]=t,(c=o.nodeValue!==n)&&null!==(e=pn))switch(e.tag){case 3:Hr(o.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Hr(o.nodeValue,n,!!(1&e.mode))}c&&(t.flags|=4)}else((o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[zt]=t).stateNode=o}return dl(t),null;case 13:if(Jr(An),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(mn&&null!==fn&&1&t.mode&&!(128&t.flags))_a(),wa(),t.flags|=98560,c=!1;else if(c=ya(t),null!==o&&null!==o.dehydrated){if(null===e){if(!c)throw Error(Ho(318));if(!(c=null!==(c=t.memoizedState)?c.dehydrated:null))throw Error(Ho(317));c[zt]=t}else wa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;dl(t),c=!1}else null!==gn&&(Rl(gn),gn=null),c=!0;if(!c)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((o=null!==o)!=(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,!!(1&t.mode))&&(null===e||1&An.current?0===yo&&(yo=3):Ul()),null!==t.updateQueue&&(t.flags|=4),dl(t),null);case 4:return Ya(),Qn(e,t),null===e&&Lr(t.stateNode.containerInfo),dl(t),null;case 10:return Oa(t.type._context),dl(t),null;case 19:if(Jr(An),null===(c=t.memoizedState));else{if(o=!!(128&t.flags),null===(s=c.rendering))if(o)hl(c,!1);else{if(0!==yo||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=Xa(e))){for(t.flags|=128,hl(c,!1),null!==(o=s.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(c=n).flags&=14680066,null===(s=c.alternate)?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=s.childLanes,c.lanes=s.lanes,c.child=s.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=s.memoizedProps,c.memoizedState=s.memoizedState,c.updateQueue=s.updateQueue,c.type=s.type,e=s.dependencies,c.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ea(An,1&An.current|2),t.child}e=e.sibling}null!==c.tail&&ce()>Po&&(t.flags|=128,hl(c,!(o=!0)),t.lanes=4194304)}else{if(!o)if(null!==(e=Xa(s))){if(t.flags|=128,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),hl(c,!0),null===c.tail&&"hidden"===c.tailMode&&!s.alternate&&!mn)return dl(t),null}else 2*ce()-c.renderingStartTime>Po&&1073741824!==n&&(t.flags|=128,hl(c,!(o=!0)),t.lanes=4194304);c.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=c.last)?n.sibling=s:t.child=s,c.last=s)}if(null!==c.tail)return t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=ce(),t.sibling=null,n=An.current,ea(An,o?1&n|2:1&n),t}return dl(t),null;case 22:case 23:return jl(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&vo)&&(dl(t),6&t.subtreeFlags)&&(t.flags|=8192):dl(t),null;case 24:case 25:return null}throw Error(Ho(156,t.tag))})(n,t,vo)))return void(mo=n);if(null!==(t=t.sibling))return void(mo=t)}while(mo=t=e,null!==t);0===yo&&(yo=5)}function Xl(e,t,n){var o=ke,i=ho.transition;try{ho.transition=null,ke=1;for(var r=e,a=t,s=n,l=o;ql(),null!==Lo;);if(6&po)throw Error(Ho(327));s=r.finishedWork;var c=r.finishedLanes;if(null!==s){if(r.finishedWork=null,r.finishedLanes=0,s===r.current)throw Error(Ho(177));r.callbackNode=null,r.callbackPriority=0;var u,h,d=s.lanes|s.childLanes;if(((e,t)=>{var n=e.pendingLanes&~t,o=(e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements,e.eventTimes);for(e=e.expirationTimes;0<n;){var i=31-be(n),r=1<<i;t[i]=0,o[i]=-1,e[i]=-1,n&=~r}})(r,d),r===fo&&(mo=fo=null,go=0),!(2064&s.subtreeFlags)&&!(2064&s.flags)||No||(No=!0,Jl(pe,function(){return ql(),null})),d=!!(15990&s.flags),15990&s.subtreeFlags||d?(d=ho.transition,ho.transition=null,u=ke,ke=1,h=po,po|=4,uo.current=null,((e,t)=>{if(It=De,Sr(e=kr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:if((r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection())&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode,r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a,s=0,l=-1,c=-1,u=0,h=0,d=e,p=null;t:for(;;){for(;d!==n||0!==o&&3!==d.nodeType||(l=s+o),d!==i||0!==r&&3!==d.nodeType||(c=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(a=d.firstChild);)p=d,d=a;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=s),p===i&&++h===r&&(c=s),null!==(a=d.nextSibling))break;p=(d=p).parentNode}d=a}n=-1===l||-1===c?null:{start:l,end:c}}else n=null;n=n||{start:0,end:0}}else n=null;for(De=!($t={focusedElem:e,selectionRange:n}),io=t;null!==io;)if(e=(t=io).child,1028&t.subtreeFlags&&null!==e)e.return=t,io=e;else for(;null!==io;){t=io;try{var f,m,g,v,b=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:null!==b&&(f=b.memoizedProps,m=b.memoizedState,v=(g=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?f:Ms(t.type,f),m),g.__reactInternalSnapshotBeforeUpdate=v);break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(Ho(163))}}catch(e){Zl(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,io=e;break}io=t.return}b=ro,ro=!1})(r,s),Sl(s,r),function(e){var t,n,o,i=kr(),r=e.focusedElem,a=e.selectionRange;if(i!==r&&r&&r.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(r.ownerDocument.documentElement,r)){null!==a&&Sr(r)&&(i=a.start,void 0===(e=a.end)&&(e=i),"selectionStart"in r?(r.selectionStart=i,r.selectionEnd=Math.min(e,r.value.length)):(e=(i=r.ownerDocument||document)&&i.defaultView||window).getSelection&&(e=e.getSelection(),n=r.textContent.length,t=Math.min(a.start,n),a=void 0===a.end?t:Math.min(a.end,n),!e.extend&&a<t&&(n=a,a=t,t=n),n=xr(r,t),o=xr(r,a),n)&&o&&(1!==e.rangeCount||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((i=i.createRange()).setStart(n.node,n.offset),e.removeAllRanges(),a<t?(e.addRange(i),e.extend(o.node,o.offset)):(i.setEnd(o.node,o.offset),e.addRange(i)))),i=[];for(e=r;e=e.parentNode;)1===e.nodeType&&i.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<i.length;r++)(e=i[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}($t),De=!!It,$t=It=null,function(e){!function e(t,n,o){for(var i=!!(1&t.mode);null!==io;){var r=io,a=r.child;if(22===r.tag&&i){var s=null!==r.memoizedState||to;if(!s){var l=r.alternate,c=null!==l&&null!==l.memoizedState||no,u=(l=to,no);if(to=s,(no=c)&&!u)for(io=r;null!==io;)c=(s=io).child,22===s.tag&&null!==s.memoizedState||null===c?Ol(r):(c.return=s,io=c);for(;null!==a;)e(io=a),a=a.sibling;io=r,to=l,no=u}Tl(t)}else 8772&r.subtreeFlags&&null!==a?(a.return=r,io=a):Tl(t)}}(io=e)}(r.current=s),le(),po=h,ke=u,ho.transition=d):r.current=s,No&&(No=!1,Lo=r,Do=c),0===(d=r.pendingLanes)&&(Mo=null),(e=>{if(ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ge,e,void 0,!(128&~e.current.flags))}catch(e){}})(s.stateNode),Nl(r,ce()),null!==a)for(l=r.onRecoverableError,s=0;s<a.length;s++)l((c=a[s]).value,{componentStack:c.stack,digest:c.digest});if(Co)throw Co=!1,r=Ao,Ao=null,r;!!(1&Do)&&0!==r.tag&&ql(),1&(d=r.pendingLanes)?r===Io?Ro++:(Ro=0,Io=r):Ro=0,ca()}}finally{ho.transition=i,ke=o}return null}function ql(){if(null!==Lo){var e=ji(Do),t=ho.transition,n=ke;try{if(ho.transition=null,ke=e<16?16:e,null===Lo)var o=!1;else{if(e=Lo,Lo=null,(Do=0)!=(6&po))throw Error(Ho(331));var i=po;for(po|=4,io=e.current;null!==io;){var r=io,a=r.child;if(16&io.flags){var s=r.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(io=c;null!==io;){switch((h=io).tag){case 0:case 11:case 15:ml(8,h,r)}var u=h.child;if(null!==u)u.return=h,io=u;else for(;null!==io;){var h,d=(h=io).sibling,p=h.return;if(function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&(delete n[zt],delete n[Bt],delete n[Yt],delete n[Wt],delete n[Gt]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(h),h===c){io=null;break}if(null!==d){d.return=p,io=d;break}io=p}}}var f=r.alternate;if(null!==f){var m=f.child;if(null!==m){f.child=null;do{var g=m.sibling}while((m.sibling=null)!==(m=g))}}io=r}}if(2064&r.subtreeFlags&&null!==a)a.return=r,io=a;else for(;null!==io;){if(2048&(r=io).flags)switch(r.tag){case 0:case 11:case 15:ml(9,r,r.return)}var v=r.sibling;if(null!==v){v.return=r.return,io=v;break}io=r.return}}var b=e.current;for(io=b;null!==io;){var y=(a=io).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,io=y;else for(a=b;null!==io;){if(2048&(s=io).flags)try{switch(s.tag){case 0:case 11:case 15:gl(9,s)}}catch(e){Zl(s,s.return,e)}if(s===a){io=null;break}var _=s.sibling;if(null!==_){_.return=s.return,io=_;break}io=s.return}}if(po=i,ca(),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ge,e)}catch(e){}o=!0}return o}finally{ke=n,ho.transition=t}}}function Kl(e,t,n){e=Fa(e,t=js(0,t=$s(n,t),1),1),t=Cl(),null!==e&&(Fi(e,1,t),Nl(e,t))}function Zl(e,t,n){if(3===e.tag)Kl(e,e,n);else for(;null!==t;){if(3===t.tag){Kl(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Mo||!Mo.has(o))){t=Fa(t,e=Hs(t,e=$s(n,e),1),1),e=Cl(),null!==t&&(Fi(t,1,e),Nl(t,e));break}}t=t.return}}function Ql(e,t){0===t&&(1&e.mode?(t=xe,!(130023424&(xe<<=1))&&(xe=4194304)):t=1);var n=Cl();null!==(e=Da(e,t))&&(Fi(e,t,n),Nl(e,n))}function Jl(e,t){return re(e,t)}function ec(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tc(e,t,n,o){return new ec(e,t,n,o)}function nc(e){return(e=e.prototype)&&e.isReactComponent}function oc(e,t){var n=e.alternate;return null===n?((n=tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,(n.alternate=e).alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ic(e,t,n,o,i,r){var a=2;if("function"==typeof(o=e))nc(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case b:return rc(n.children,i,r,t);case y:i|=a=8;break;case w:return(e=tc(12,n,t,2|i)).elementType=w,e.lanes=r,e;case T:return(e=tc(13,n,t,i)).elementType=T,e.lanes=r,e;case P:return(e=tc(19,n,t,i)).elementType=P,e.lanes=r,e;case A:return ac(n,i,r,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:a=10;break e;case S:a=9;break e;case E:a=11;break e;case O:a=14;break e;case C:a=16,o=null;break e}throw Error(Ho(130,null==e?e:typeof e,""))}return(t=tc(a,n,t,i)).elementType=e,t.type=o,t.lanes=r,t}function rc(e,t,n,o){return(e=tc(7,e,o,t)).lanes=n,e}function ac(e,t,n,o){return(e=tc(22,e,o,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function sc(e,t,n){return(e=tc(6,e,null,t)).lanes=n,e}function lc(e,t,n){return(t=tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cc(e,t,n,o,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$i(0),this.expirationTimes=$i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uc(e,t,n,o,i,r,a,s,l){return e=new cc(e,t,0,s,l),1===t?(t=1,!0===r&&(t|=8)):t=0,r=tc(3,null,null,t),(e.current=r).stateNode=e,r.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(r),e}function hc(e){if(!e)return Kt;e:{if(Ci(e=e._reactInternals)!==e||1!==e.tag)throw Error(Ho(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(na(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}}while(null!==(t=t.return));throw Error(Ho(171))}if(1===e.tag){var n=e.type;if(na(n))return ra(e,n,t)}return t}function dc(e,t,n,o,i,r,a,s,l){return(e=uc(n,o,!0,e,0,r,0,s,l)).context=hc(null),n=e.current,(r=$a(o=Cl(),i=Al(n))).callback=null!=t?t:null,Fa(n,r,i),e.current.lanes=i,Fi(e,i,o),Nl(e,o),e}function pc(e,t,n,o){var i=t.current,r=Cl(),a=Al(i);n=hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=$a(r,a)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Fa(i,t,a))&&(Ml(e,i,a,r),Va(e,i,a))}function fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function mc(e,t){var n;null!==(e=e.memoizedState)&&null!==e.dehydrated&&(n=e.retryLane,e.retryLane=0!==n&&n<t?n:t)}function gc(e,t){mc(e,t),(e=e.alternate)&&mc(e,t)}function vc(e){this._internalRoot=e}function bc(e){this._internalRoot=e}function yc(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType)}function _c(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType||8===e.nodeType&&" react-mount-point-unstable "===e.nodeValue)}function wc(){}function xc(e,t,n,o,i){var r,a,s=n._reactRootContainer;return s?("function"==typeof i&&(a=i,i=function(){var e=fc(r);a.call(e)}),pc(t,r=s,e,i)):r=((e,t,n,o,i)=>{var r,a,s;if(i)return"function"==typeof o&&(r=o,o=function(){var e=fc(a);r.call(e)}),a=dc(t,o,e,0,null,!1,0,"",wc),e._reactRootContainer=a,e[Ut]=a.current,Lr(8===e.nodeType?e.parentNode:e),Vl(),a;for(;i=e.lastChild;)e.removeChild(i);"function"==typeof o&&(s=o,o=function(){var e=fc(l);s.call(e)});var l=uc(e,0,!1,null,0,!1,0,"",wc);return e._reactRootContainer=l,e[Ut]=l.current,Lr(8===e.nodeType?e.parentNode:e),Vl(function(){pc(t,l,n,o)}),l})(n,t,e,i,o),fc(r)}}var E,T=(v||(v=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),y.exports=S()),y.exports),P=o(T),O=p(),C=o(O),A=e({__proto__:null,default:C},[O]),M={exports:{}};var N,L,D,R,I,$,F,V,j,H,z,B=function(){var e,t;return E||(E=1,t={}.hasOwnProperty,(e=M).exports?e.exports=n.default=n:window.classNames=n),M.exports;function n(){for(var e="",i=0;i<arguments.length;i++){var r=arguments[i];r&&(e=o(e,(e=>{if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var i,r="";for(i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r})(r)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}}(),U=o(B);let Y=e=>{var{onClick:e,icon:t,disabled:n,className:o="",children:i}=e;return b.jsxs("button",{disabled:n,className:U("ant-btn",o,{"ant-btn-icon-only":!!t&&!i}),onClick:e,children:[t,i]})},W=((kt=N=N||{}).IFRAME="IFRAME",kt.NEW_TAB="NEW_TAB",(e=>{e.FLOOR_PLAN="FLOOR_PLAN",e.SCENES="SCENES",e.PLAY_LIST="PLAY_LIST",e.CLOSE="CLOSE",e.SUB_TITLE="SUB_TITLE"})(L=L||{}),{FLOOR_PLAN:{key:L.FLOOR_PLAN,icon:"icon-union_24x24",iconOff:"icon-union_24x24"},SCENES:{key:L.SCENES,icon:"icon-vrpano-galery_24x24"},PLAY_LIST:{key:L.PLAY_LIST,icon:"icon-playlist_play_24x24"},CLOSE:{key:L.CLOSE,icon:"icon-menu_close_big_24x24"},SUB_TITLE:{key:L.SUB_TITLE,icon:"icon-subtitles_24x24",iconOff:"icon-subtitles_off_24x24"}}),G={DISPLAY:{key:"DISPLAY",title:"skin-layer:search-and-discovery.display"},MAP:{key:"MAP",invisible:!0,icon:"icon-layout_on_24x24",offIcon:"icon-layout_off_24x24",title:"skin-layer:search-and-discovery.map"},NAVIGATION_ARROWS:{key:"NAVIGATION_ARROWS",icon:"icon-action_open_with_24x24",offIcon:"icon-action_open_with_close_24x24",title:"skin-layer:search-and-discovery.navigation-arrows"},SIMULATION_VR:{invisible:!0,key:"SIMULATION_VR",icon:"icon-clik-rotation-off_24x24",offIcon:"icon-clik-rotation-on_24x24",title:"skin-layer:search-and-discovery.simulation-vr"},SOUND:{invisible:!0,key:"SOUND",icon:"icon-volume_up_round-24x24",offIcon:"icon-volume_off_round-24x24",title:"skin-layer:search-and-discovery.sound"},FULLSCREEN:{invisible:!0,key:"FULLSCREEN",icon:"icon-navigation_fullscreen_24x24",offIcon:"icon-navigation_fullscreen_exit_24x24",title:"skin-layer:search-and-discovery.fullscreen"},SCREEN_SHOT:{key:"SCREEN_SHOT",icon:"icon-camera_24x24",offIcon:"icon-camera_24x24",title:"skin-layer:search-and-discovery.screen-shot"},HOTSPOT:{key:"HOTSPOT",icon:"icon-person_pin_circle_24x24",offIcon:"icon-person-pin-circle-off_24x24",title:"skin-layer:search-and-discovery.hotspot"},LANGUAGE:{key:"LANGUAGE",icon:"icon-action_translate_24x24",title:"skin-layer:search-and-discovery.language"},CHAT:{key:"CHAT",invisible:!0,icon:"icon-show-ai_24x24",offIcon:"icon-show-ai_24x24",title:"skin-layer:search-and-discovery.language"},SHARE:{key:"SHARE",invisible:!0,icon:"icon-clik_share_ios_outlined-24x24",offIcon:"icon-clik_share_ios_outlined-24x24",title:"skin-layer:search-and-discovery.language"},CONFIG:{key:"CONFIG",invisible:!0,icon:"icon-settings_24x24",offIcon:"icon-settings_24x24",title:"skin-layer:search-and-discovery.language"},SEARCH:{key:"SEARCH",invisible:!0,icon:"icon-search_24x24",offIcon:"icon-search_24x24",title:"skin-layer:search-and-discovery.language"},GUIDE:{key:"GUIDE",icon:"icon-new-bulb_24x24",offIcon:"icon-new-bulb_24x24",title:"skin-layer:search-and-discovery.guide",invisible:!0}},X="VIDEO",q="MOVING",K="SOUND",Z="POPUP",Q="POLYGON",J="LENSFLARE",ee=((e=>{e.MAX="MAX",e.MIDDLE="MIDDLE",e.MIN="MIN"})(D=D||{}),{en:{id:"en"},jp:{id:"jp"},kr:{id:"kr"},cn:{id:"cn"}}),te={MOVING:"MOVING",SOUND:"SOUND",INFO:"INFO",POPUP:"POPUP",PHOTO:"PHOTO",VIDEO:"VIDEO",ITEM_INFO:"ITEM_INFO",POLYGON:"POLYGON",LENSFLARE:"LENSFLARE",NADIR_LOGO:"NADIR_LOGO",PROMOTION:"PROMOTION",GALLERY:"GALLERY",TEXTURE:"TEXTURE"},ne={SPACE_AND_SCENE:"SPACE_AND_SCENE",FEATURES:"FEATURES",PRODUCT_LIST:"PRODUCT_LIST",INFORMATION:"INFORMATION",BRAND:"BRAND",LOCATION:"LOCATION",FACILITY:"FACILITY",MULTIMEDIA:"MULTIMEDIA",SWAP_ELEMENT:"SWAP_ELEMENT",PROMOTION:"PROMOTION"},oe="gyro2",ie="radar",re="sound",ae=((e=>{e.DEFAULT="DEFAULT",e.SIMPLE_CROSS_BLENDING="SIMPLE_CROSS_BLENDING",e.ZOOM_BLEND="ZOOM_BLEND",e.BLACK_OUT="BLACK_OUT",e.WHITE_FLASH="WHITE_FLASH",e.RIGHT_TO_LEFT="RIGHT_TO_LEFT",e.TOP_TO_BOTTOM="TOP_TO_BOTTOM",e.DIAGONAL="DIAGONAL",e.CIRCLE_OPEN="CIRCLE_OPEN",e.VERTICAL_OPEN="VERTICAL_OPEN",e.HORIZONTAL_OPEN="HORIZONTAL_OPEN"})(R=R||{}),{FAST:.7,NORMAL:1,SLOW:1.5,SLOWEST:2}),se={FASTEST:.5,FAST:.7,NORMAL:1,SLOW:1.5,SLOWEST:2},le={[R.DEFAULT]:ae.SLOW,[R.SIMPLE_CROSS_BLENDING]:ae.NORMAL,[R.ZOOM_BLEND]:ae.SLOWEST,[R.BLACK_OUT]:ae.SLOWEST,[R.WHITE_FLASH]:ae.NORMAL,[R.RIGHT_TO_LEFT]:ae.NORMAL,[R.TOP_TO_BOTTOM]:ae.NORMAL,[R.DIAGONAL]:ae.NORMAL,[R.CIRCLE_OPEN]:ae.NORMAL,[R.VERTICAL_OPEN]:ae.FAST,[R.HORIZONTAL_OPEN]:ae.NORMAL},ce={[R.DEFAULT]:"OPENBLEND({level}, 0.0, 0.6, 1.0, easeOutQuad)",[R.SIMPLE_CROSS_BLENDING]:"BLEND({level}, easeInCubic)",[R.ZOOM_BLEND]:"ZOOMBLEND({level}, 2.0, easeInOutSine)",[R.BLACK_OUT]:"COLORBLEND({level}, 0x000000, easeOutSine)",[R.WHITE_FLASH]:"LIGHTBLEND({level}, 0xFFFFFF, 2.0, linear)",[R.RIGHT_TO_LEFT]:"SLIDEBLEND({level}, 0.0, 0.2, linear)",[R.TOP_TO_BOTTOM]:"SLIDEBLEND({level}, 90.0, 0.01, linear)",[R.DIAGONAL]:"SLIDEBLEND({level}, 135.0, 0.4, linear)",[R.CIRCLE_OPEN]:"OPENBLEND({level}, 0.0, 0.2, 0.0, linear)",[R.VERTICAL_OPEN]:"OPENBLEND({level}, 1.0, 0.1, 0.0, linear)",[R.HORIZONTAL_OPEN]:"OPENBLEND({level}, -1.0, 0.3, 0.0, linear)"},ue=((e=>{e[e.SSML_VOICE_GENDER_UNSPECIFIED=0]="SSML_VOICE_GENDER_UNSPECIFIED",e[e.MALE=1]="MALE",e[e.FEMALE=2]="FEMALE",e[e.NEUTRAL=3]="NEUTRAL",e[e.UNRECOGNIZED=4]="UNRECOGNIZED"})(I=I||{}),{MOVE_SCENE:"MOVE_SCENE",LOOK_AT:"LOOK_AT",ROTATE:"ROTATE",PLAY_SOUND:"PLAY_SOUND",SLEEP:"SLEEP",OPEN_FUNCTION_BUTTON:"OPEN_FUNCTION_BUTTON",SWITCH_SCENE:"SWITCH_SCENE",OPEN_MINIMAP:"OPEN_MINIMAP"}),he=((e=>{e.AGT="AGT",e.SCENE="SPACE_AND_SCENE",e.PROMOTION="PROMOTION",e.FEATURES="FEATURES",e.PRODUCT_LIST="PRODUCT_LIST",e.INFORMATION="INFORMATION",e.BRAND="BRAND",e.LOCATION="LOCATION",e.FACILITY="FACILITY",e.MULTIMEDIA="MULTIMEDIA",e.SWAP_ELEMENT="SWAP_ELEMENT",e.DETAIL="DETAIL",e.TEMP="TEMP"})($=$||{}),{SCENE:"SPACE_AND_SCENE",PROMOTION:"PROMOTION",FEATURES:"FEATURES",PRODUCT_LIST:"PRODUCT_LIST",INFORMATION:"INFORMATION",BRAND:"BRAND",LOCATION:"LOCATION",FACILITY:"FACILITY",MULTIMEDIA:"MULTIMEDIA",SWAP_ELEMENT:"SWAP_ELEMENT"}),de={DETAIL:"DETAIL",TEMP:"TEMP"},pe=((e=>{e.EN="en",e.VI="vi",e.JP="jp"})(F=F||{}),"https://cdn3.clik.vn/clikvirtualtour"),fe={GYRO2:pe+"/common/plugins/gyro2.js",SOUND_INTERFACE:pe+"/common/plugins/soundinterface.js?v2",RADAR:pe+"/common/plugins/radar.js",VIDEO_PLAYER:pe+"/common/plugins/videoplayer.js"},me="/common/configs/flare-config.json",ge={MOVING:pe+"/common/media/vtourskin.png",INFO:pe+"/common/media/tag.png",POPUP:pe+"/common/media/vtourskin.png",PHOTO:pe+"/common/media/gallery.png",VIDEO:pe+"/common/media/hotspot_video_icon.png",PIN:pe+"/common/media/vtourskin.png",SOUND_PLAY:pe+"/common/media/play-solid.png",SOUND_PAUSE:pe+"/common/media/stop-solid.png",BACKGROUND:pe+"/common/media/bgshadow.png",PROMOTION:pe+"/common/media/promotion_lg.png",GALLERY:pe+"/common/media/gallery.png",TEXTURE:pe+"/common/media/vtourskin.png",FOCUSING_IMAGE_STRIP:pe+"/common/media/audio_shake.png",NAVIGATION_ARROW:pe+"/common/media/navigation.svg",NAVIGATION_HIGHLIGHT:pe+"/common/media/navigation-highlight.svg"},ve="NONE",be="LOCK_VIEW",ye="NADIR_LOGO",_e="SNEAK_PEEK",we="LABEL",xe="SNEAK_PEEK_AND_LABEL",ke="NONE",Se="TOGGLE_UI",Ee="MOVE_TO_SCENE",Te="LABEL",Pe="POPUP",Oe={NORTH:"NORTH",SOUTH:"SOUTH",EAST:"EAST",WEST:"WEST",NORTH_EAST:"NORTH_EAST",NORTH_WEST:"NORTH_WEST",SOUTH_EAST:"SOUTH_EAST",SOUTH_WEST:"SOUTH_WEST"},Ce=1,Ae=((e=>{e[e.MIN=0]="MIN",e[e.BASE=1]="BASE",e[e.STANDARD=2]="STANDARD",e[e.FOCUSING_AREA=3]="FOCUSING_AREA",e[e.HOVERING_AREA=4]="HOVERING_AREA",e[e.HOVERING=5]="HOVERING",e[e.MAX=1e3]="MAX"})(V=V||{}),{NONE:"NONE",BOTTOM_LEFT_CORNER:"BOTTOM_LEFT_CORNER"}),Me="NONE",Ne="RIGHT",Le="TOP",De="BOTTOM",Re="LEFT",Ie="SMALL",$e="MEDIUM",Fe="LARGE",Ve={[Ie]:80,[$e]:160,[Fe]:240},je=[0,32,112,192],He=32,ze=8,Be={NONE:{x:0,y:0},HORIZONTAL:{x:206,y:0},DYNAMIC_VERTICAL:e=>({x:0,y:e/2})},Ue="CLASSIC",Ye="NAMEPLATE",We="NONE",Ge="PRODUCT",Xe="BRAND",qe="LOCATION",Ke="FACILITY",Ze="PRODUCT",Qe="BRAND",Je="LOCATION",et="ECOMMERCE_PRODUCT",tt="FACILITY",nt="NONE",ot="LABEL",it=[te.ITEM_INFO,te.PROMOTION,te.TEXTURE,te.GALLERY],rt=[Ge,Xe,qe,Ke],at="VIDEO",st=((e=>{e.SQUARE_METER="㎡",e.CUBIC_METER="㎥",e.KILOGRAM="kg",e.CENTIMETER="cm",e.GRAM="g",e.LITER="Lít"})(j=j||{}),(e=>{e.IFRAME="IFRAME",e.NEW_TAB="NEW_TAB"})(H=H||{}),C.createContext({tour:void 0})),lt="minimap-active-marker",ct=8,ut=16,ht="var(--color-white-48)",dt="var(--color-cyan-on-dark)",pt=360,ft=e=>{if(e)return e},mt=()=>{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})},gt=e=>new Promise(t=>setTimeout(()=>{t()},e)),vt=e=>{let t,n;var o=new Promise((o,i)=>{n=i,t=setTimeout(()=>{o()},e)});return o.abort=()=>{clearTimeout(t),n("aborted")},o},bt=e=>{let t;if(e.type===te.ITEM_INFO){var n=e.props.itemInfo;switch(null==n?void 0:n.type){case et:t=ne.PRODUCT_LIST;break;case Ze:t=null!=n.included?ne.FEATURES:ne.PRODUCT_LIST;break;case Qe:t=ne.BRAND;break;case Je:t=ne.LOCATION;break;case tt:t=ne.FACILITY;break;default:t=""}}else switch(e.type){case te.PROMOTION:t=ne.PROMOTION;break;case te.INFO:t=ne.INFORMATION;break;case te.GALLERY:t=ne.MULTIMEDIA;break;case te.TEXTURE:t=ne.SWAP_ELEMENT;break;default:t=""}return t},yt=e=>1e3*e,_t=e=>null!=e,wt=e=>e?e/1e3:0,xt=e=>e?Math.floor(e/6e4)+":"+(+(e=(e%6e4/1e3).toFixed(0))<10?"0":"")+e:"0:00";var kt;function St(e,t,n,o){return new(n=n||Promise)(function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})}let Et=(e,t)=>{if(!e)return null;if(!e.responsive)return e;var{large:n,medium:o,small:i,thumbnail:r}=e.responsive;let a=1,s=(e.width&&e.height&&!t&&(a=e.width>e.height?e.height/e.width:e.width/e.height),0);return t?s=t:"object"==typeof window&&(s=window.innerWidth),1!==a&&(s/=a),0===s?null:1e3<s?e:1e3===Math.max(1e3,s)&&750===Math.min(750,s)?n||e:750===Math.max(750,s)&&500===Math.min(500,s)?o||e:500===Math.max(500,s)&&250===Math.min(250,s)?i||e:s<250?r||e:null},Tt=(e,t)=>(e=Et(e,t))?e.url:null,Pt=((e=>{e.VFOV="VFOV",e.HFOV="HFOV",e.DFOV="DFOV",e.MFOV="MFOV",e.SFOV="SFOV"})(z=z||{}),e=>{let t=!1;var n,o;return e&&(n=e.get("device.mobile"),o=e.get("device.tablet"),e=e.get("device.touch"),t=n||o||e),t}),Ot=e=>{var{url:t,theme:n,type:o,width:i,scale:r}=e,a=Nt(e),i=i*r||void 0;let s;if(o===te.PHOTO?(r=e.image)&&(s=Tt(r,i)):o===te.PROMOTION&&(r=e.promotion)&&(r=r.icon)&&(r.thumbnail||r.url)&&(s=Tt(r,i)),!(s=!s&&a?a.imageStrip?a.file.url:Tt(a.file,i):s)&&n&&n.poiIcons&&n.poiIcons.length){let t=o;o===te.ITEM_INFO&&(r=e.itemInfo)&&(t=(o+"_"+r.type).toUpperCase()),a=n.poiIcons.find(e=>e.poiType===t),a&&a.icon&&(s=Tt(a.icon.file,i))}return s?ft(s):t?ft(t):(e=>{switch(e.type){case te.ITEM_INFO:return ge.PIN;case te.INFO:return ge.INFO;case te.MOVING:return ge.MOVING;case te.POPUP:return ge.POPUP;case te.SOUND:return ge.SOUND_PLAY;case te.PROMOTION:return ge.PROMOTION;default:return ge.PIN}})(e)},Ct=(e,t,n)=>St(void 0,void 0,void 0,function*(){!e||t&&n||(yield new Promise(o=>{let i=new Image;i.onload=()=>{t=t||i.width,n=n||i.height,o()},i.onerror=()=>{o()},i.src=e}))}),At=e=>e+"_hover",Mt=(e,t,n)=>{t=t.code,e.call(`tween(hotspot[${t}].alpha, ${n?0:1}, 0.2)`)},Nt=e=>e.icon||(e=>{var t=e.theme,n=e.type;if(t&&t.poiIcons&&t.poiIcons.length){let o=n;if(n===te.ITEM_INFO&&(e=e.itemInfo)&&(o=(n+"_"+e.type).toUpperCase()),n=t.poiIcons.find(e=>e.poiType===o),n&&n.icon)return n.icon}return null})(e),Lt=e=>(null==e?void 0:e.position)!==Me,Dt=e=>{var t={fovtype:z.MFOV,fov:90};return Pt(e)||(t.fovtype=z.VFOV,t.fov=65),t},Rt=e=>e*(Math.PI/180),It=(e,t,n,o)=>{var i=Rt(o-t);n=Rt(n-e),e=Math.sin(i/2)*Math.sin(i/2)+Math.cos(Rt(t))*Math.cos(Rt(o))*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(e),Math.sqrt(1-e))*1e3},$t=(e,t,n,o)=>(e=Ft(e-=n),n=Ft(n=t-o),{h:Math.abs(e),v:Math.abs(n)}),Ft=e=>{let t=e%360;return 180<t&&(t-=360),t<-180&&(t+=360),t},Vt=(e,t)=>{var n=t.x-e.x,o=t.y-e.y;t=t.z-e.z;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2)+Math.pow(t,2))},jt=e=>e.get("device.mobile"),Ht=(e,t)=>{var n,o,i,r;return t&&e?(({hlookat:n,vlookat:o}=e.getView()),({x:r,y:i}=e.spheretoscreen(n,o)),({x:e,y:r}=e.screentosphere(r+t.x,i+t.y)),{h:t.x&&Ft(e-n),v:t.y&&Ft(r-o)}):{h:0,v:0}},zt=(e,t)=>{var{ath:t,atv:n,position:o,popupSize:i="1",laserRange:r=Ce}=t,a={h:t,v:n,hfovExpand:0};if(0<r){var s=Ve[i]+je[r]+54||0;let l,c;switch(o){case Le:l=0,c=-Math.round(s/2);break;case Ne:l=Math.round(s/2),c=0;break;case De:l=0,c=Math.round(s/2);break;case Re:l=-Math.round(s/2),c=0;break;default:l=0,c=0}i=Ht(e,{x:l,y:c}),a.h=t+i.h,a.v=n+i.v}return a},Bt=e=>{var t;return!!e&&(t=e.overviewPosition,(e=>!(!e||!it.includes(e.type))&&(e.type!==te.ITEM_INFO||(e=e.itemInfo,rt.includes(null==e?void 0:e.type))))(e))&&t===Ae.BOTTOM_LEFT_CORNER};var Ut,Yt={exports:{}};var Wt,Gt=(Ut||(Ut=1,(Wt=Yt).exports=(()=>{var e,t;function n(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(r(e,t))return;return 1}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){for(var n=[],o=e.length,i=0;i<o;++i)n.push(t(e[i],i));return n}function h(e,t){for(var n in t)r(t,n)&&(e[n]=t[n]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,o){return Tt(e,t,n,o,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){var n,o,i=e._d&&!isNaN(e._d.getTime());return i&&(n=p(e),o=t.call(n.parsedDateParts,function(e){return null!=e}),i=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||(n.meridiem,o)),e._strict)&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function m(e){var t=d(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}t=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var g=n.momentProperties=[],v=!1;function b(e,t){var n,o,i,r=g.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)s(i=t[o=g[n]])||(e[o]=i);return e}function y(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function _(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function w(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var o=!0;return h(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),o){for(var i,a,s=[],l=arguments.length,c=0;c<l;c++){if(i="","object"==typeof arguments[c]){for(a in i+="\n["+c+"] ",arguments[0])r(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[c];s.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),o=!1}return t.apply(this,arguments)},t)}var k,S={};function E(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e,t){var n,o=h({},e);for(n in t)r(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)r(e,n)&&!r(t,n)&&i(e[n])&&(o[n]=h({},o[n]));return o}function O(e){null!=e&&this.set(e)}function C(e,t,n){var o=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-o.length)).toString().substr(1)+o}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,k=Object.keys||function(e){var t,n=[];for(t in e)r(e,t)&&n.push(t);return n};var A=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},L={};function D(e,t,n,o){var i="string"==typeof o?function(){return this[o]()}:o;e&&(L[e]=i),t&&(L[t[0]]=function(){return C(i.apply(this,arguments),t[1],t[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=I(t,e.localeData()),N[t]=N[t]||(e=>{for(var t,n=e.match(A),o=0,i=n.length;o<i;o++)L[n[o]]?n[o]=L[n[o]]:n[o]=(t=n[o]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var o="",r=0;r<i;r++)o+=T(n[r])?n[r].call(t,e):n[r];return o}})(t),N[t](e)):e.localeData().invalidDate()}function I(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for(M.lastIndex=0;0<=n&&M.test(e);)e=e.replace(M,o),M.lastIndex=0,--n;return e}var $={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return"string"==typeof e?$[e]||$[e.toLowerCase()]:void 0}function V(e){var t,n,o={};for(n in e)r(e,n)&&(t=F(n))&&(o[t]=e[n]);return o}var j={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},H=/\d/,z=/\d\d/,B=/\d{3}/,U=/\d{4}/,Y=/[+-]?\d{6}/,W=/\d\d?/,G=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,q=/\d{1,3}/,K=/\d{1,4}/,Z=/[+-]?\d{1,6}/,Q=/\d+/,J=/[+-]?\d+/,ee=/Z|[+-]\d\d:?\d\d/gi,te=/Z|[+-]\d\d(?::?\d\d)?/gi,ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,ie=/^([1-9]\d|\d)/;function re(e,t,n){ue[e]=T(t)?t:function(e,o){return e&&n?n:t}}function ae(e,t){return r(ue,e)?ue[e](t._strict,t._locale):new RegExp(se(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,i){return t||n||o||i})))}function se(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=0;return 0!=(e=+e)&&isFinite(e)?le(e):t}var ue={},he={};function de(e,t){var n,o,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=ce(e)}),o=e.length,n=0;n<o;n++)he[e[n]]=i}function pe(e,t){de(e,function(e,n,o,i){o._w=o._w||{},t(e,o._w,o,i)})}function fe(e){return e%4==0&&e%100!=0||e%400==0}var me=0,ge=1,ve=2,be=3,ye=4,_e=5,we=6,xe=7,ke=8;function Se(e){return fe(e)?366:365}D("Y",0,0,function(){var e=this.year();return e<=9999?C(e,4):"+"+e}),D(0,["YY",2],0,function(){return this.year()%100}),D(0,["YYYY",4],0,"year"),D(0,["YYYYY",5],0,"year"),D(0,["YYYYYY",6,!0],0,"year"),re("Y",J),re("YY",W,z),re("YYYY",K,U),re("YYYYY",Z,Y),re("YYYYYY",Z,Y),de(["YYYYY","YYYYYY"],me),de("YYYY",function(e,t){t[me]=2===e.length?n.parseTwoDigitYear(e):ce(e)}),de("YY",function(e,t){t[me]=n.parseTwoDigitYear(e)}),de("Y",function(e,t){t[me]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return ce(e)+(68<ce(e)?1900:2e3)};var Ee,Te=Pe("FullYear",!0);function Pe(e,t){return function(o){return null!=o?(Ce(this,e,o),n.updateOffset(this,t),this):Oe(this,e)}}function Oe(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ce(e,t,n){var o,i,r;if(e.isValid()&&!isNaN(n)){switch(o=e._d,i=e._isUTC,t){case"Milliseconds":return i?o.setUTCMilliseconds(n):o.setMilliseconds(n);case"Seconds":return i?o.setUTCSeconds(n):o.setSeconds(n);case"Minutes":return i?o.setUTCMinutes(n):o.setMinutes(n);case"Hours":return i?o.setUTCHours(n):o.setHours(n);case"Date":return i?o.setUTCDate(n):o.setDate(n);case"FullYear":break;default:return}t=n,r=e.month(),e=29!==(e=e.date())||1!==r||fe(t)?e:28,i?o.setUTCFullYear(t,r,e):o.setFullYear(t,r,e)}}function Ae(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(e+=(t-(n=(t%(n=12)+n)%n))/12,1==n?fe(e)?29:28:31-n%7%2)}Ee=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},D("M",["MM",2],"Mo",function(){return this.month()+1}),D("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),D("MMMM",0,0,function(e){return this.localeData().months(this,e)}),re("M",W,oe),re("MM",W,z),re("MMM",function(e,t){return t.monthsShortRegex(e)}),re("MMMM",function(e,t){return t.monthsRegex(e)}),de(["M","MM"],function(e,t){t[ge]=ce(e)-1}),de(["MMM","MMMM"],function(e,t,n,o){null!=(o=n._locale.monthsParse(e,o,n._strict))?t[ge]=o:p(n).invalidMonth=e});var Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Le=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,De=ne,Re=ne;function Ie(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!l(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,Ae(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function $e(e){return null!=e?(Ie(this,e),n.updateOffset(this,!0),this):Oe(this,"Month")}function Fe(){function e(e,t){return t.length-e.length}for(var t,n,o=[],i=[],r=[],a=0;a<12;a++)n=d([2e3,a]),t=se(this.monthsShort(n,"")),n=se(this.months(n,"")),o.push(t),i.push(n),r.push(n),r.push(t);o.sort(e),i.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ve(e,t,n,o,i,r,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,o,i,r,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,o,i,r,a),s}function je(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function He(e,t,n){return(n=7+t-n)-(7+je(e,0,n).getUTCDay()-t)%7-1}function ze(e,t,n,o,i){var r;return n=(t=1+7*(t-1)+(7+n-o)%7+He(e,o,i))<=0?Se(r=e-1)+t:t>Se(e)?(r=e+1,t-Se(e)):(r=e,t),{year:r,dayOfYear:n}}function Be(e,t,n){var o,i,r=He(e.year(),t,n);return(r=Math.floor((e.dayOfYear()-r-1)/7)+1)<1?o=r+Ue(i=e.year()-1,t,n):r>Ue(e.year(),t,n)?(o=r-Ue(e.year(),t,n),i=e.year()+1):(i=e.year(),o=r),{week:o,year:i}}function Ue(e,t,n){var o=He(e,t,n);return t=He(e+1,t,n),(Se(e)-o+t)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),re("w",W,oe),re("ww",W,z),re("W",W,oe),re("WW",W,z),pe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=ce(e)}),D("d",0,"do","day"),D("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),D("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),D("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),re("d",W),re("e",W),re("E",W),re("dd",function(e,t){return t.weekdaysMinRegex(e)}),re("ddd",function(e,t){return t.weekdaysShortRegex(e)}),re("dddd",function(e,t){return t.weekdaysRegex(e)}),pe(["dd","ddd","dddd"],function(e,t,n,o){null!=(o=n._locale.weekdaysParse(e,o,n._strict))?t.d=o:p(n).invalidWeekday=e}),pe(["d","e","E"],function(e,t,n,o){t[o]=ce(e)});var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=ne,Ke=ne,Ze=ne;function Qe(){function e(e,t){return t.length-e.length}for(var t,n,o,i=[],r=[],a=[],s=[],l=0;l<7;l++)o=d([2e3,1]).day(l),t=se(this.weekdaysMin(o,"")),n=se(this.weekdaysShort(o,"")),o=se(this.weekdays(o,"")),i.push(t),r.push(n),a.push(o),s.push(t),s.push(n),s.push(o);i.sort(e),r.sort(e),a.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Je(){return this.hours()%12||12}function et(e,t){D(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}D("H",["HH",2],0,"hour"),D("h",["hh",2],0,Je),D("k",["kk",2],0,function(){return this.hours()||24}),D("hmm",0,0,function(){return""+Je.apply(this)+C(this.minutes(),2)}),D("hmmss",0,0,function(){return""+Je.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)}),D("Hmm",0,0,function(){return""+this.hours()+C(this.minutes(),2)}),D("Hmmss",0,0,function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)}),et("a",!0),et("A",!1),re("a",tt),re("A",tt),re("H",W,ie),re("h",W,oe),re("k",W,oe),re("HH",W,z),re("hh",W,z),re("kk",W,z),re("hmm",G),re("hmmss",X),re("Hmm",G),re("Hmmss",X),de(["H","HH"],be),de(["k","kk"],function(e,t,n){e=ce(e),t[be]=24===e?0:e}),de(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),de(["h","hh"],function(e,t,n){t[be]=ce(e),p(n).bigHour=!0}),de("hmm",function(e,t,n){var o=e.length-2;t[be]=ce(e.substr(0,o)),t[ye]=ce(e.substr(o)),p(n).bigHour=!0}),de("hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[be]=ce(e.substr(0,o)),t[ye]=ce(e.substr(o,2)),t[_e]=ce(e.substr(i)),p(n).bigHour=!0}),de("Hmm",function(e,t,n){var o=e.length-2;t[be]=ce(e.substr(0,o)),t[ye]=ce(e.substr(o))}),de("Hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[be]=ce(e.substr(0,o)),t[ye]=ce(e.substr(o,2)),t[_e]=ce(e.substr(i))}),ne=Pe("Hours",!0);var nt,ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Me,monthsShort:Ne,week:{dow:0,doy:6},weekdays:We,weekdaysMin:Xe,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function at(e){return e&&e.toLowerCase().replace("_","-")}function st(e){var t,n;if(void 0===it[e]&&Wt&&Wt.exports&&(n=e)&&n.match("^[^/\\\\]*$"))try{t=nt._abbr,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}("./locale/"+e),lt(t)}catch(t){it[e]=null}return it[e]}function lt(e,t){return e&&((t=s(t)?ut(e):ct(e,t))?nt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ct(e,t){if(null===t)return delete it[e],null;var n,o=ot;if(t.abbr=e,null!=it[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])o=it[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;o=n._config}return it[e]=new O(P(o,t)),rt[e]&&rt[e].forEach(function(e){ct(e.name,e.config)}),lt(e),it[e]}function ut(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return nt;if(!o(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,o,i,r=0;r<e.length;){for(t=(i=at(e[r]).split("-")).length,n=(n=at(e[r+1]))?n.split("-"):null;0<t;){if(o=st(i.slice(0,t).join("-")))return o;if(n&&n.length>=t&&((e,t)=>{for(var n=Math.min(e.length,t.length),o=0;o<n;o+=1)if(e[o]!==t[o])return o;return n})(i,n)>=t-1)break;t--}r++}return nt}(e)}function ht(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[ge]<0||11<t[ge]?ge:t[ve]<1||t[ve]>Ae(t[me],t[ge])?ve:t[be]<0||24<t[be]||24===t[be]&&(0!==t[ye]||0!==t[_e]||0!==t[we])?be:t[ye]<0||59<t[ye]?ye:t[_e]<0||59<t[_e]?_e:t[we]<0||999<t[we]?we:-1,p(e)._overflowDayOfYear&&(t<me||ve<t)&&(t=ve),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=ke),p(e).overflow=t),e}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((-?\d+)/i,bt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,o,i,r,a,s=e._i,l=dt.exec(s)||pt.exec(s),c=(s=mt.length,gt.length);if(l){for(p(e).iso=!0,t=0,n=s;t<n;t++)if(mt[t][1].exec(l[1])){i=mt[t][0],o=!1!==mt[t][2];break}if(null==i)e._isValid=!1;else{if(l[3]){for(t=0,n=c;t<n;t++)if(gt[t][1].exec(l[3])){r=(l[2]||" ")+gt[t][0];break}if(null==r)return void(e._isValid=!1)}if(o||null==r){if(l[4]){if(!ft.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),St(e)}else e._isValid=!1}}else e._isValid=!1}function wt(e){var t,n,o=bt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=function(e,t,n,o,i,r){return e=[(e=>(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e)(e),Ne.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(i,10)],r&&e.push(parseInt(r,10)),e}(o[4],o[3],o[2],o[5],o[6],o[7]),((e,t,n)=>{if(!e||Ge.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;p(n).weekdayMismatch=!0,n._isValid=!1})(o[1],t,e)&&(e._a=t,e._tzm=(t=o[8],n=o[9],o=o[10],t?yt[t]:n?0:((t=parseInt(o,10))-(n=t%100))/100*60+n),e._d=je.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function xt(e,t,n){return null!=e?e:null!=t?t:n}function kt(e){var t,o,i,r,a,s,l,c,u,h,d,f=[];if(!e._d){for(i=e,r=new Date(n.now()),o=i._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],e._w&&null==e._a[ve]&&null==e._a[ge]&&(null!=(r=(i=e)._w).GG||null!=r.W||null!=r.E?(c=1,u=4,a=xt(r.GG,i._a[me],Be(Pt(),1,4).year),s=xt(r.W,1),((l=xt(r.E,1))<1||7<l)&&(h=!0)):(c=i._locale._week.dow,u=i._locale._week.doy,d=Be(Pt(),c,u),a=xt(r.gg,i._a[me],d.year),s=xt(r.w,d.week),null!=r.d?((l=r.d)<0||6<l)&&(h=!0):null!=r.e?(l=r.e+c,(r.e<0||6<r.e)&&(h=!0)):l=c),s<1||s>Ue(a,c,u)?p(i)._overflowWeeks=!0:null!=h?p(i)._overflowWeekday=!0:(d=ze(a,s,l,c,u),i._a[me]=d.year,i._dayOfYear=d.dayOfYear)),null!=e._dayOfYear&&(r=xt(e._a[me],o[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),h=je(r,0,e._dayOfYear),e._a[ge]=h.getUTCMonth(),e._a[ve]=h.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=f[t]=o[t];for(;t<7;t++)e._a[t]=f[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[ye]&&0===e._a[_e]&&0===e._a[we]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?je:Ve).apply(null,f),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}function St(e){if(e._f===n.ISO_8601)_t(e);else if(e._f===n.RFC_2822)wt(e);else{e._a=[],p(e).empty=!0;for(var t,o,i,a,s,l=""+e._i,c=l.length,u=0,h=I(e._f,e._locale).match(A)||[],d=h.length,f=0;f<d;f++)o=h[f],(t=(l.match(ae(o,e))||[])[0])&&(0<(i=l.substr(0,l.indexOf(t))).length&&p(e).unusedInput.push(i),l=l.slice(l.indexOf(t)+t.length),u+=t.length),L[o]?(t?p(e).empty=!1:p(e).unusedTokens.push(o),i=o,s=e,null!=(a=t)&&r(he,i)&&he[i](a,s._a,s,i)):e._strict&&!t&&p(e).unusedTokens.push(o);p(e).charsLeftOver=c-u,0<l.length&&p(e).unusedInput.push(l),e._a[be]<=12&&!0===p(e).bigHour&&0<e._a[be]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[be]=((e,t,n)=>null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t)(e._locale,e._a[be],e._meridiem),null!==(c=p(e).era)&&(e._a[me]=e._locale.erasConvertYear(c,e._a[me])),kt(e),ht(e)}}function Et(e){var t,r,a,d=e._i,g=e._f;if(e._locale=e._locale||ut(e._l),null===d||void 0===g&&""===d)return m({nullInput:!0});if("string"==typeof d&&(e._i=d=e._locale.preparse(d)),_(d))return new y(ht(d));if(c(d))e._d=d;else if(o(g)){var v,w,x,k,S,E,T=e,P=!1,O=T._f.length;if(0===O)p(T).invalidFormat=!0,T._d=new Date(NaN);else{for(k=0;k<O;k++)S=0,E=!1,v=b({},T),null!=T._useUTC&&(v._useUTC=T._useUTC),v._f=T._f[k],St(v),f(v)&&(E=!0),S=(S+=p(v).charsLeftOver)+10*p(v).unusedTokens.length,p(v).score=S,P?S<x&&(x=S,w=v):(null==x||S<x||E)&&(x=S,w=v,E)&&(P=!0);h(T,w||v)}}else g?St(e):s(g=(d=e)._i)?d._d=new Date(n.now()):c(g)?d._d=new Date(g.valueOf()):"string"==typeof g?(r=d,null!==(t=vt.exec(r._i))?r._d=new Date(+t[1]):(_t(r),!1===r._isValid&&(delete r._isValid,wt(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:n.createFromInputFallback(r)))):o(g)?(d._a=u(g.slice(0),function(e){return parseInt(e,10)}),kt(d)):i(g)?(t=d)._d||(a=void 0===(r=V(t._i)).day?r.date:r.day,t._a=u([r.year,r.month,a,r.hour,r.minute,r.second,r.millisecond],function(e){return e&&parseInt(e,10)}),kt(t)):l(g)?d._d=new Date(g):n.createFromInputFallback(d);return f(e)||(e._d=null),e}function Tt(e,t,n,r,s){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&a(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new y(ht(Et(s=l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Pt(e,t,n,o){return Tt(e,t,n,o,!1)}function Ot(e,t){var n,i;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return Pt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}n.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){},G=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),X=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:m()});var Ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function At(e){var t=(e=V(e)).year||0,n=e.quarter||0,o=e.month||0,i=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=(e=>{var t,n,o=!1,i=Ct.length;for(t in e)if(r(e,t)&&(-1===Ee.call(Ct,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Ct[n]]){if(o)return!1;parseFloat(e[Ct[n]])!==ce(e[Ct[n]])&&(o=!0)}return!0})(e),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*n+12*t,this._data={},this._locale=ut(),this._bubble()}function Mt(e){return e instanceof At}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,t){D(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+C(~~(e/60),2)+t+C(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),re("Z",te),re("ZZ",te),de(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Rt(te,e)});var Dt=/([\+\-]|\d\d)/gi;function Rt(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Dt)||["-",0,0])[1]+ce(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var o;return t._isUTC?(t=t.clone(),o=(_(e)||c(e)?e:Pt(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+o),n.updateOffset(t,!1),t):Pt(e).local()}function $t(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Vt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(e,t){var n,o=e;return Mt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(t=Vt.exec(e))?(n="-"===t[1]?-1:1,o={y:0,d:ce(t[ve])*n,h:ce(t[be])*n,m:ce(t[ye])*n,s:ce(t[_e])*n,ms:ce(Nt(1e3*t[we]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,o={y:zt(t[2],n),M:zt(t[3],n),w:zt(t[4],n),d:zt(t[5],n),h:zt(t[6],n),m:zt(t[7],n),s:zt(t[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(t=((e,t)=>{var n;return e.isValid()&&t.isValid()?(t=It(t,e),e.isBefore(t)?n=Bt(e,t):((n=Bt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}})(Pt(o.from),Pt(o.to)),(o={}).ms=t.milliseconds,o.M=t.months),n=new At(o),Mt(e)&&r(e,"_locale")&&(n._locale=e._locale),Mt(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function zt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Bt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ut(e,t){return function(n,o){var i;return null===o||isNaN(+o)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),Yt(this,Ht(n,o),e),this}}function Yt(e,t,o,i){var r=t._milliseconds,a=Nt(t._days);t=Nt(t._months),e.isValid()&&(i=null==i||i,t&&Ie(e,Oe(e,"Month")+t*o),a&&Ce(e,"Date",Oe(e,"Date")+a*o),r&&e._d.setTime(e._d.valueOf()+r*o),i)&&n.updateOffset(e,a||t)}function Gt(e){return"string"==typeof e||e instanceof String}function Xt(e,t){var n,o;return e.date()<t.date()?-Xt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(o=e.clone().add(n,"months"))<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(1+n,"months")-o)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=ut(e))&&(this._locale=e),this)}function Kt(){return this._locale}Ht.fn=At.prototype,Ht.invalid=function(){return Ht(NaN)},Me=Ut(1,"add"),We=Ut(-1,"subtract"),n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Xe=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});var Zt,Qt=1e3,Jt=6e4,en=60*Jt,tn=3506328*en;function nn(e,t){return(e%t+t)%t}function on(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-tn:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-tn:Date.UTC(e,t,n)}function an(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e,t,n,o=[],i=[],r=[],a=[],s=this.eras(),l=0,c=s.length;l<c;++l)e=se(s[l].name),t=se(s[l].abbr),n=se(s[l].narrow),i.push(e),o.push(t),r.push(n),a.push(e),a.push(t),a.push(n);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function ln(e,t){D(0,[e,e.length],0,t)}function cn(e,t,n,o,i){var r;return null==e?Be(this,o,i).year:(r=Ue(e,o,i),function(e,t,n,o,i){return t=je((e=ze(e,t,n,o,i)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,o,i))}for(D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),re("N",an),re("NN",an),re("NNN",an),re("NNNN",function(e,t){return t.erasNameRegex(e)}),re("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),de(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){(o=n._locale.erasParse(e,o,n._strict))?p(n).era=o:p(n).invalidEra=e}),re("y",Q),re("yy",Q),re("yyy",Q),re("yyyy",Q),re("yo",function(e,t){return t._eraYearOrdinalRegex||Q}),de(["y","yy","yyy","yyyy"],me),de(["yo"],function(e,t,n,o){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[me]=n._locale.eraYearOrdinalParse(e,i):t[me]=parseInt(e,10)}),D(0,["gg",2],0,function(){return this.weekYear()%100}),D(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),re("G",J),re("g",J),re("GG",W,z),re("gg",W,z),re("GGGG",K,U),re("gggg",K,U),re("GGGGG",Z,Y),re("ggggg",Z,Y),pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=ce(e)}),pe(["gg","GG"],function(e,t,o,i){t[i]=n.parseTwoDigitYear(e)}),D("Q",0,"Qo","quarter"),re("Q",H),de("Q",function(e,t){t[ge]=3*(ce(e)-1)}),D("D",["DD",2],"Do","date"),re("D",W,oe),re("DD",W,z),re("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),de(["D","DD"],ve),de("Do",function(e,t){t[ve]=ce(e.match(W)[0])}),K=Pe("Date",!0),D("DDD",["DDDD",3],"DDDo","dayOfYear"),re("DDD",q),re("DDDD",B),de(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ce(e)}),D("m",["mm",2],0,"minute"),re("m",W,ie),re("mm",W,z),de(["m","mm"],ye),U=Pe("Minutes",!1),D("s",["ss",2],0,"second"),re("s",W,ie),re("ss",W,z),de(["s","ss"],_e),Z=Pe("Seconds",!1),D("S",0,0,function(){return~~(this.millisecond()/100)}),D(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,function(){return 10*this.millisecond()}),D(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),D(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),D(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),D(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),D(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),re("S",q,H),re("SS",q,z),re("SSS",q,B),Zt="SSSS";Zt.length<=9;Zt+="S")re(Zt,Q);function un(e,t){t[we]=ce(1e3*("0."+e))}for(Zt="S";Zt.length<=9;Zt+="S")de(Zt,un);function hn(e){return e}function dn(e,t,n,o){var i=ut();return o=d().set(o,t),i[n](o,e)}function pn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var o=[],i=0;i<12;i++)o[i]=dn(e,i,n,"month");return o}function fn(e,t,n,o){"boolean"==typeof e?l(t)&&(n=t,t=void 0):(t=e,e=!1,l(n=t)&&(n=t,t=void 0)),t=t||"";var i,r=ut(),a=e?r._week.dow:0,s=[];if(null!=n)return dn(t,(n+a)%7,o,"day");for(i=0;i<7;i++)s[i]=dn(t,(i+a)%7,o,"day");return s}Y=Pe("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName"),(oe=y.prototype).add=Me,oe.calendar=function(e,t){1===arguments.length&&(arguments[0]?function(e){return _(e)||c(e)||Gt(e)||l(e)||(e=>{var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!l(t)&&Gt(e)}).length),t&&n})(e)||(e=>{var t,n=i(e)&&!a(e),o=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(t=0;t<l;t+=1)o=o||r(e,s[t]);return n&&o})(e)||null==e}(arguments[0])?(e=arguments[0],t=void 0):(e=>{for(var t=i(e)&&!a(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s=0;s<o.length;s+=1)n=n||r(e,o[s]);return t&&n})(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var s=It(e=e||Pt(),this).startOf("day");return s=n.calendarFormat(this,s)||"sameElse",t=t&&(T(t[s])?t[s].call(this,e):t[s]),this.format(t||this.localeData().calendar(s,this,Pt(e)))},oe.clone=function(){return new y(this)},oe.diff=function(e,t,n){var o,i,r;if(!this.isValid())return NaN;if(!(o=It(e,this)).isValid())return NaN;switch(i=6e4*(o.utcOffset()-this.utcOffset()),t=F(t)){case"year":r=Xt(this,o)/12;break;case"month":r=Xt(this,o);break;case"quarter":r=Xt(this,o)/3;break;case"second":r=(this-o)/1e3;break;case"minute":r=(this-o)/6e4;break;case"hour":r=(this-o)/36e5;break;case"day":r=(this-o-i)/864e5;break;case"week":r=(this-o-i)/6048e5;break;default:r=this-o}return n?r:le(r)},oe.endOf=function(e){var t,o;if(void 0!==(e=F(e))&&"millisecond"!==e&&this.isValid()){switch(o=this._isUTC?rn:on,e){case"year":t=o(this.year()+1,0,1)-1;break;case"quarter":t=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=o(this.year(),this.month()+1,1)-1;break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=en-nn(t+(this._isUTC?0:this.utcOffset()*Jt),en)-1;break;case"minute":t=this._d.valueOf(),t+=Jt-nn(t,Jt)-1;break;case"second":t=this._d.valueOf(),t+=Qt-nn(t,Qt)-1}this._d.setTime(t),n.updateOffset(this,!0)}return this},oe.format=function(e){return e=R(this,e=e||(this.isUtc()?n.defaultFormatUtc:n.defaultFormat)),this.localeData().postformat(e)},oe.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Pt(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oe.fromNow=function(e){return this.from(Pt(),e)},oe.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Pt(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oe.toNow=function(e){return this.to(Pt(),e)},oe.get=function(e){return T(this[e=F(e)])?this[e]():this},oe.invalidAt=function(){return p(this).overflow},oe.isAfter=function(e,t){return e=_(e)?e:Pt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},oe.isBefore=function(e,t){return e=_(e)?e:Pt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},oe.isBetween=function(e,t,n,o){return e=_(e)?e:Pt(e),t=_(t)?t:Pt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(o=o||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))},oe.isSame=function(e,t){return e=_(e)?e:Pt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},oe.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},oe.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},oe.isValid=function(){return f(this)},oe.lang=Xe,oe.locale=qt,oe.localeData=Kt,oe.max=X,oe.min=G,oe.parsingFlags=function(){return h({},p(this))},oe.set=function(e,t){if("object"==typeof e)for(var n=(e=>{var t,n=[];for(t in e)r(e,t)&&n.push({unit:t,priority:j[t]});return n.sort(function(e,t){return e.priority-t.priority}),n})(e=V(e)),o=n.length,i=0;i<o;i++)this[n[i].unit](e[n[i].unit]);else if(T(this[e=F(e)]))return this[e](t);return this},oe.startOf=function(e){var t,o;if(void 0!==(e=F(e))&&"millisecond"!==e&&this.isValid()){switch(o=this._isUTC?rn:on,e){case"year":t=o(this.year(),0,1);break;case"quarter":t=o(this.year(),this.month()-this.month()%3,1);break;case"month":t=o(this.year(),this.month(),1);break;case"week":t=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=o(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:this.utcOffset()*Jt),en);break;case"minute":t=this._d.valueOf(),t-=nn(t,Jt);break;case"second":t=this._d.valueOf(),t-=nn(t,Qt)}this._d.setTime(t),n.updateOffset(this,!0)}return this},oe.subtract=We,oe.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},oe.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},oe.toDate=function(){return new Date(this.valueOf())},oe.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?R(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(t,"Z")):R(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},oe.inspect=function(){var e,t,n;return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(oe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),oe.toJSON=function(){return this.isValid()?this.toISOString():null},oe.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},oe.unix=function(){return Math.floor(this.valueOf()/1e3)},oe.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},oe.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},oe.eraName=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},oe.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},oe.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,o=t.length;n<o;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},oe.eraYear=function(){for(var e,t,o=this.localeData().eras(),i=0,r=o.length;i<r;++i)if(e=o[i].since<=o[i].until?1:-1,t=this.clone().startOf("day").valueOf(),o[i].since<=t&&t<=o[i].until||o[i].until<=t&&t<=o[i].since)return(this.year()-n(o[i].since).year())*e+o[i].offset;return this.year()},oe.year=Te,oe.isLeapYear=function(){return fe(this.year())},oe.weekYear=function(e){return cn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},oe.isoWeekYear=function(e){return cn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},oe.quarter=oe.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},oe.month=$e,oe.daysInMonth=function(){return Ae(this.year(),this.month())},oe.week=oe.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},oe.isoWeek=oe.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},oe.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},oe.weeksInWeekYear=function(){var e=this.localeData()._week;return Ue(this.weekYear(),e.dow,e.doy)},oe.isoWeeksInYear=function(){return Ue(this.year(),1,4)},oe.isoWeeksInISOWeekYear=function(){return Ue(this.isoWeekYear(),1,4)},oe.date=K,oe.day=oe.days=function(e){var t,n,o;return this.isValid()?(t=Oe(this,"Day"),null!=e?(n=e,o=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=o.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},oe.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},oe.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},oe.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},oe.hour=oe.hours=ne,oe.minute=oe.minutes=U,oe.second=oe.seconds=Z,oe.millisecond=oe.milliseconds=Y,oe.utcOffset=function(e,t,o){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:$t(this);if("string"==typeof e){if(null===(e=Rt(te,e)))return this}else Math.abs(e)<16&&!o&&(e*=60);return!this._isUTC&&t&&(i=$t(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Yt(this,Ht(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this},oe.utc=function(e){return this.utcOffset(0,e)},oe.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract($t(this),"m"),this},oe.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Rt(ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},oe.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},oe.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},oe.isLocal=function(){return!!this.isValid()&&!this._isUTC},oe.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},oe.isUtc=Ft,oe.isUTC=Ft,oe.zoneAbbr=function(){return this._isUTC?"UTC":""},oe.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},oe.dates=x("dates accessor is deprecated. Use date instead.",K),oe.months=x("months accessor is deprecated. Use month instead",$e),oe.years=x("years accessor is deprecated. Use year instead",Te),oe.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),oe.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return s(this._isDSTShifted)&&(b(e={},this),(e=Et(e))._a?(t=(e._isUTC?d:Pt)(e._a),this._isDSTShifted=this.isValid()&&0<((e,t)=>{for(var n=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,r=0;r<n;r++)ce(e[r])!==ce(t[r])&&i++;return i+o})(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted}),(ie=O.prototype).calendar=function(e,t,n){return T(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},ie.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(A).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},ie.invalidDate=function(){return this._invalidDate},ie.ordinal=function(e){return this._ordinal.replace("%d",e)},ie.preparse=hn,ie.postformat=hn,ie.relativeTime=function(e,t,n,o){var i=this._relativeTime[n];return T(i)?i(e,t,n,o):i.replace(/%d/i,e)},ie.pastFuture=function(e,t){return T(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},ie.set=function(e){var t,n;for(n in e)r(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ie.eras=function(e,t){for(var o,i=this._eras||ut("en")._eras,r=0,a=i.length;r<a;++r)switch("string"==typeof i[r].since&&(o=n(i[r].since).startOf("day"),i[r].since=o.valueOf()),typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":o=n(i[r].until).startOf("day").valueOf(),i[r].until=o.valueOf()}return i},ie.erasParse=function(e,t,n){var o,i,r,a,s,l=this.eras();for(e=e.toUpperCase(),o=0,i=l.length;o<i;++o)if(r=l[o].name.toUpperCase(),a=l[o].abbr.toUpperCase(),s=l[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[o];break;case"NNNN":if(r===e)return l[o];break;case"NNNNN":if(s===e)return l[o]}else if(0<=[r,a,s].indexOf(e))return l[o]},ie.erasConvertYear=function(e,t){var o=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*o},ie.erasAbbrRegex=function(e){return r(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},ie.erasNameRegex=function(e){return r(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},ie.erasNarrowRegex=function(e){return r(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},ie.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},ie.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Le.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ie.monthsParse=function(e,t,n){var o,i;if(this._monthsParseExact)return function(e,t,n){var o,i,r;if(e=e.toLocaleLowerCase(),!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=d([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ee.call(this._shortMonthsParse,e))?i:null:-1!==(i=Ee.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=Ee.call(this._shortMonthsParse,e))||-1!==(i=Ee.call(this._longMonthsParse,e))?i:null:-1!==(i=Ee.call(this._longMonthsParse,e))||-1!==(i=Ee.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=d([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},ie.monthsRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ie.monthsShortRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ie.week=function(e){return Be(e,this._week.dow,this._week.doy).week},ie.firstDayOfYear=function(){return this._week.doy},ie.firstDayOfWeek=function(){return this._week.dow},ie.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ye(t,this._week.dow):e?t[e.day()]:t},ie.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},ie.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},ie.weekdaysParse=function(e,t,n){var o,i;if(this._weekdaysParseExact)return function(e,t,n){var o,i,r;if(e=e.toLocaleLowerCase(),!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=d([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ee.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=Ee.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=Ee.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=Ee.call(this._weekdaysParse,e))||-1!==(i=Ee.call(this._shortWeekdaysParse,e))||-1!==(i=Ee.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=Ee.call(this._shortWeekdaysParse,e))||-1!==(i=Ee.call(this._weekdaysParse,e))||-1!==(i=Ee.call(this._minWeekdaysParse,e))?i:null:-1!==(i=Ee.call(this._minWeekdaysParse,e))||-1!==(i=Ee.call(this._weekdaysParse,e))||-1!==(i=Ee.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=d([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},ie.weekdaysRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ie.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ie.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ie.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ie.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},lt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),n.lang=x("moment.lang is deprecated. Use moment.locale instead.",lt),n.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ut);var mn=Math.abs;function gn(e,t,n,o){return t=Ht(t,n),e._milliseconds+=o*t._milliseconds,e._days+=o*t._days,e._months+=o*t._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function yn(e){return 146097*e/4800}function _n(e){return function(){return this.as(e)}}function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}H=_n("ms"),z=_n("s"),q=_n("m"),B=_n("h"),Me=_n("d"),X=_n("w"),G=_n("M"),We=_n("Q"),ne=_n("y"),U=H,Z=wn("milliseconds"),Y=wn("seconds"),K=wn("minutes"),Te=wn("hours"),ie=wn("days");var xn=wn("months"),kn=wn("years"),Sn=Math.round,En={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},Tn=Math.abs;function Pn(e){return(0<e)-(e<0)||+e}function On(){var e,t,n,o,i,r,a,s,l,c,u;return this.isValid()?(e=Tn(this._milliseconds)/1e3,t=Tn(this._days),n=Tn(this._months),(s=this.asSeconds())?(o=le(e/60),i=le(o/60),e%=60,o%=60,r=le(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=Pn(this._months)!==Pn(s)?"-":"",c=Pn(this._days)!==Pn(s)?"-":"",u=Pn(this._milliseconds)!==Pn(s)?"-":"",(s<0?"-":"")+"P"+(r?l+r+"Y":"")+(n?l+n+"M":"")+(t?c+t+"D":"")+(i||o||e?"T":"")+(i?u+i+"H":"")+(o?u+o+"M":"")+(e?u+a+"S":"")):"P0D"):this.localeData().invalidDate()}var Cn=At.prototype;return Cn.isValid=function(){return this._isValid},Cn.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},Cn.add=function(e,t){return gn(this,e,t,1)},Cn.subtract=function(e,t){return gn(this,e,t,-1)},Cn.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+o/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(yn(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Cn.asMilliseconds=H,Cn.asSeconds=z,Cn.asMinutes=q,Cn.asHours=B,Cn.asDays=Me,Cn.asWeeks=X,Cn.asMonths=G,Cn.asQuarters=We,Cn.asYears=ne,Cn.valueOf=U,Cn._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*vn(yn(n)+t),n=t=0),o.milliseconds=e%1e3,e=le(e/1e3),o.seconds=e%60,e=le(e/60),o.minutes=e%60,e=le(e/60),o.hours=e%24,t+=le(e/24),n+=e=le(bn(t)),t-=vn(yn(e)),e=le(n/12),n%=12,o.days=t,o.months=n,o.years=e,this},Cn.clone=function(){return Ht(this)},Cn.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},Cn.milliseconds=Z,Cn.seconds=Y,Cn.minutes=K,Cn.hours=Te,Cn.days=ie,Cn.weeks=function(){return le(this.days()/7)},Cn.months=xn,Cn.years=kn,Cn.humanize=function(e,t){var n,o;return this.isValid()?(n=!1,o=En,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(o=Object.assign({},En,t),null!=t.s)&&null==t.ss&&(o.ss=t.s-1),t=function(e,t,n,o){var i=Ht(e).abs(),r=Sn(i.as("s")),a=Sn(i.as("m")),s=Sn(i.as("h")),l=Sn(i.as("d")),c=Sn(i.as("M")),u=Sn(i.as("w"));return i=Sn(i.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||(a<=1?["m"]:a<n.m&&["mm",a])||(s<=1?["h"]:s<n.h&&["hh",s])||(l<=1?["d"]:l<n.d&&["dd",l]),(r=(r=null!=n.w?r||(u<=1?["w"]:u<n.w&&["ww",u]):r)||(c<=1?["M"]:c<n.M&&["MM",c])||(i<=1?["y"]:["yy",i]))[2]=t,r[3]=0<+e,r[4]=o,function(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}.apply(null,r)}(this,!n,o,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},Cn.toISOString=On,Cn.toString=On,Cn.toJSON=On,Cn.locale=qt,Cn.localeData=Kt,Cn.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",On),Cn.lang=Xe,D("X",0,0,"unix"),D("x",0,0,"valueOf"),re("x",J),re("X",/[+-]?\d+(\.\d{1,3})?/),de("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),de("x",function(e,t,n){n._d=new Date(ce(e))}),n.version="2.30.1",e=Pt,n.fn=oe,n.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},n.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=d,n.unix=function(e){return Pt(1e3*e)},n.months=function(e,t){return pn(e,t,"months")},n.isDate=c,n.locale=lt,n.invalid=m,n.duration=Ht,n.isMoment=_,n.weekdays=function(e,t,n){return fn(e,t,n,"weekdays")},n.parseZone=function(){return Pt.apply(null,arguments).parseZone()},n.localeData=ut,n.isDuration=Mt,n.monthsShort=function(e,t){return pn(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return fn(e,t,n,"weekdaysMin")},n.defineLocale=ct,n.updateLocale=function(e,t){var n,o;return null!=t?(o=ot,null!=it[e]&&null!=it[e].parentLocale?it[e].set(P(it[e]._config,t)):(t=P(o=null!=(n=st(e))?n._config:o,t),null==n&&(t.abbr=e),(o=new O(t)).parentLocale=it[e],it[e]=o),lt(e)):null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===lt()&&lt(e)):null!=it[e]&&delete it[e]),it[e]},n.locales=function(){return k(it)},n.weekdaysShort=function(e,t,n){return fn(e,t,n,"weekdaysShort")},n.normalizeUnits=F,n.relativeTimeRounding=function(e){return void 0===e?Sn:"function"==typeof e&&(Sn=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==En[e]&&(void 0===t?En[e]:(En[e]=t,"s"===e&&(En.ss=t-1),!0))},n.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},n.prototype=oe,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})()),Yt.exports),Xt=o(Gt);let qt=e=>e?e+"?nocache="+Math.random():"",Kt=e=>{var{itemInfo:e,hoverType:t}=e;if(!e)return!1;if(t)return t;let n;switch(t=e.type){case Je:n=qe;break;case Qe:n=Xe;break;case Ze:case et:n=Ge;break;default:n=We}return n},Zt=(e,t)=>{if(0<t)return"0px";let n;switch(e){case Le:n=(He/2+ze)/2;break;case Ne:n=-12;break;case De:n=-20;break;case Re:n=(He+ze)/2;break;default:n=0}return n+"px"},Qt=(e,t="vi",n)=>{var o=e.type;let i="",r="",a="",s="",l=!1;if(o===te.ITEM_INFO||o===te.POLYGON){var c=Kt(e),u=e.itemInfo,{icon:u,name:h,distance:d,distanceUnit:p,price:f,currencyUnit:m,unit:g}=u;switch(a=Tt(u,150),i=h,c){case qe:r=d+" "+p;break;case Ke:r="";break;case Xe:s="unset";break;case Ge:f&&(r=((e,t,n)=>e+(t?" "+t:"")+(n?"/"+j[n]:""))((e=>{if(0===Number(e))return"0";e=e.toString();for(var t=/(-?\d+)(\d{3})/;t.test(e);)e=e.replace(t,"$1.$2");return""+e})(f),m,g));break;default:return console.warn(`Type[${c}] is not handled hover`),""}}else o===te.PROMOTION?(u=e.promotion,({name:h,endDate:u,image:v}=u),u=Xt(u).format("DD/MM/YYYY"),i=h,r=`${t===F.VI?"đến":"to"} ${u} `,a=Tt(v,150)):o===te.GALLERY&&((null==(t=(h=e.gallery)[0])?void 0:t.type)===at&&(l=!0),a=Tt(null==(u=h[0])?void 0:u.file,150));var v=l?` \n [div class="popup__video" ]\n [video class="video__content" ]\n [source src=${a} type="video/mp4" /]\n [/video]\n [span class="icon-play_arrow_24x24 video__icon"] [/span]\n [/div]\n `:a&&`\n [img\n class="popup__image"\n style="height: ${s}"\n src = "${a}"\n /]`;return`\n [div class="cvtv-poi-laser-tooltip-content__popup cvtv-poi-laser-tooltip-content__popup--${(null==(o=null==e?void 0:e.popupSize)?void 0:o.toLowerCase())||"1"}" style="order: ${n}"]\n ${v||""} \n [div class="popup__info"]\n [div class="info__title"][span]${i||""}[/span][/div]\n [div class= "info__subtitle"][span]${r}[/span][/div]\n [/div]\n [/div]\n `},Jt=e=>{var{laserRange:t,position:n}=e;return`\n [div class="cvtv-poi-laser-tooltip-content__pin cvtv-poi-laser-tooltip-content__pin--${null==n?void 0:n.toLowerCase()}" style="--size-pin-content: ${je[t]}px"]\n [div class= "pin__content "][/div]\n [div class= "pin__icon " ]\n ${(e=>{var t,n,o=Nt(e.props);return e=Ot(e.props),o&&o.imageStrip?(({file:o,frameWidth:n,frameHeight:t}=o),n=n?(o.width||0)*(32/n):32,`[div class="icon__image-strip" style=" --height-image-trip: ${t?(o.height||0)*(32/t):32}px; --width-image-trip: ${n}px" ]\n [img class="image-strip__content" style="background-image: url(${e})" /]\n [/div]`):e?`\n [img\n class="icon__image"\n src="${e}"\n /]`:""})(e)}\n [/div]\n [/div]\n `},en=(e,t,n="vi")=>{if(!(e=>{if(e.type===te.ITEM_INFO){if(!e.itemInfo)return!1;if(Kt(e)===We)return!1}return!0})(t))return"";let o,i,r=0,a="",s="",l="row";var{position:c,overviewPosition:u,laserRange:h}=t;return u===Ae.BOTTOM_LEFT_CORNER&&c===Me?'\n [div class="cvtv-poi-laser-tooltip"]\n [div class="cvtv-poi-laser-tooltip__focusing-point"][/div]\n [/div]\n ':(c===Le||c===De?(l="column",s="50%",o="-50%",i="0px",a="unset",r=0,c===De?(i=`calc(100% + ${Zt(c,h)})`,r=1):i=""+Zt(c,h)):(o=c===Re?`calc(-100% + ${Zt(c,h)})`:(r=1,""+Zt(c,h)),i="calc(50% - 4px)"),`\n [div class="cvtv-poi-laser-tooltip cvtv-poi-laser-tooltip cvtv-poi-laser-tooltip--${((e,t)=>{var{width:t=0,height:n=0,laserRange:o=Ce,scale:i=1,distorted:r=!1}=t;let a=(t+n)*Math.pow(i,2)/2/2;return r&&!Pt(e)&&(a*=Math.sqrt(2)),(t=Math.round(a*o))<500?t:500})(e,t)||"1"}"]\n [div class="cvtv-poi-laser-tooltip__point${0===h?" invisible":""}"][/div]\n [div class="cvtv-poi-laser-tooltip__body" style="left: ${s}; top: ${a}; transform: translate(${o}, ${i})"]\n [div class="cvtv-poi-laser-tooltip-content" style="flex-direction: ${l}"]\n ${Qt(t,n,r)}\n ${Jt(t)}\n [/div]\n [/div]\n [/div]\n `)},tn=(e,t,n,o=!0)=>{e.call(`addhotspot(${t}); `),e.call(`\n set(hotspot[${t}].type, text);\n set(hotspot[${t}].renderer, css3d);\n set(hotspot[${t}].padding, 0);\n set(hotspot[${t}].bgalpha, 0);\n set(hotspot[${t}].autowidth, true);\n set(hotspot[${t}].autoheight, true);\n set(hotspot[${t}].visible, false);\n set(hotspot[${t}].rx, 0);\n set(hotspot[${t}].ry, 0);\n set(hotspot[${t}].rz, 0);\n set(hotspot[${t}].rotate, 0);\n set(hotspot[${t}].distorted, false);\n set(hotspot[${t}].handcursor, ${o});\n set(hotspot[${t}].css, font - family: Barlow; font - size: 14px; color: #ffffff;);\n `),e.set(`hotspot[${t}].html`,n)},nn=(e,t,n,o=!0)=>{var i=At(t.code);tn(e,i,n,o),e.set(`hotspot[${i}].atv`,t.atv),e.set(`hotspot[${i}].ath`,t.ath),e.set(`hotspot[${i}].zorder`,V.FOCUSING_AREA)},on=(e,t,n,o=!0)=>{if(n){var i=At(t.code);if(tn(e,i,n,o),e.set(`hotspot[${i}].atv`,t.atv),e.set(`hotspot[${i}].ath`,t.ath),e.set(`hotspot[${i}].zorder`,(e=>e.type===te.MOVING||e.type===te.INFO?V.MIN:V.STANDARD)(t)),[te.INFO,te.MOVING,te.POPUP].includes(t.type)&&e.set(`hotspot[${i}].scale`,t.scale<=1?t.scale:1),n){let n;n=t.type===te.POLYGON?`\n if(hotspot[${t.code}]!=null,\n copy(ph_${i}, hotspot[${i}].pixelheight);\n if(ph_${i} != null,\n if(ph_${i} != 0,\n set(hotspot[${i}].oy, calc(((ph_${i}/2) + 10) * -1));\n set(needsUpdate_${i}, false);\n ,\n );\n ,\n );\n ,\n );\n `:`\n if(hotspot[${t.code}]!=null,\n copy(ph_${i}, hotspot[${i}].pixelheight);\n copy(ph_${t.code}, hotspot[${t.code}].pixelheight);\n copy(scl_${t.code}, hotspot[${t.code}].scale);\n\n if(ph_${i} != null,\n if(ph_${i} != 0,\n if(ph_${t.code} != null,\n if(ph_${t.code} != 0,\n set(h_${t.code}, calc(hotspot[${t.code}].height * scl_${t.code} - 0));\n set(hotspot[${i}].oy, calc(((ph_${i}/2) + (h_${t.code}/2) + 10 + 8) * -1));\n set(needsUpdate_${i}, false);\n ,\n );\n ,\n );\n ,\n );\n ,\n );\n );\n `,e.call(`\n set(hotspot[${i}].onloaded,\n copy(needsUpdate_${i}, true);\n\n asyncloop(needsUpdate_${i},\n ${n}\n );\n );\n `)}}},rn=(e,t)=>St(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=Ot(t);return yield Ct(i,n,o),e.call(`addhotspot(${t.code});`),e.set(`hotspot[${t.code}].html`,ln(t)),e.call(`\n set(hotspot[${t.code}].type, text);\n set(hotspot[${t.code}].renderer, css3d);\n set(hotspot[${t.code}].padding, 0);\n set(hotspot[${t.code}].bgalpha, 0);\n set(hotspot[${t.code}].autowidth, true);\n set(hotspot[${t.code}].autoheight, true);\n set(hotspot[${t.code}].atv, ${t.atv});\n set(hotspot[${t.code}].ath, ${t.ath}); \n set(hotspot[${t.code}].alpha,${t.alpha});\n set(hotspot[${t.code}].scale,${t.scale});\n set(hotspot[${t.code}].rotate,${t.rotate});\n set(hotspot[${t.code}].width,${n});\n set(hotspot[${t.code}].height,${o});\n set(hotspot[${t.code}].rx,${t.rx});\n set(hotspot[${t.code}].ry,${t.ry});\n set(hotspot[${t.code}].rz,${t.rz});\n set(hotspot[${t.code}].distorted,${t.distorted});\n set(hotspot[${t.code}].zorder, ${V.STANDARD});\n `),new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{e.set(`hotspot[${t.code}].visible`,t.visible),n()})})}),an=e=>{var t=e.code,n=Nt(e);return n?`\n def(imageWidth_${t}, integer, get(hotspot[${t}].imagewidth));\n def(imageHeight_${t}, integer, get(hotspot[${t}].imageheight));\n def(frameWidth_${t}, integer, ${n.frameWidth});\n def(frameHeight_${t}, integer, ${n.frameHeight});\n def(frameRate_${t}, integer, ${e.frameRate});\n def(frame_${t}, integer, 0);\n \n calc(xFrames_${t}, (imageWidth_${t} / frameWidth_${t}) BOR 0);\n calc(frames_${t}, xFrames_${t} * ((imageHeight_${t} / frameHeight_${t}) BOR 0));\n calc(hotspot[${t}].crop, '0|0|' + frameWidth_${t} + '|' + frameHeight_${t});\n \n setinterval(crop_anim_${t}, calc(1.0 / frameRate_${t}),\n if(hotspot[${t}].loaded,\n inc(frame_${t});\n if(frame_${t} GE frames_${t}, set(frame_${t}, 0););\n mod(xPos_${t}, frame_${t}, xFrames_${t});\n div(yPos_${t}, frame_${t}, xFrames_${t});\n Math.floor(yPos_${t});\n mul(xPos_${t}, frameWidth_${t});\n mul(yPos_${t}, frameHeight_${t});\n calc(\n hotspot[${t}].crop,\n xPos_${t} + '|' + yPos_${t} + '|' + frameWidth_${t} + '|' + frameHeight_${t}\n );\n ,\n clearinterval(crop_anim_${t});\n );\n );\n `:""},sn=(e,t)=>St(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=qt(Ot(t));return yield Ct(i,n,o),e.call(`\n addhotspot(${t.code});\n set(hotspot[${t.code}].url, ${i});\n set(hotspot[${t.code}].renderer, css3d);\n set(hotspot[${t.code}].bgalpha, 0);\n set(hotspot[${t.code}].ath, ${t.ath});\n set(hotspot[${t.code}].atv, ${t.atv});\n set(hotspot[${t.code}].alpha, ${t.alpha});\n set(hotspot[${t.code}].scale, ${t.scale});\n set(hotspot[${t.code}].rotate, ${t.rotate});\n set(hotspot[${t.code}].width, ${n});\n set(hotspot[${t.code}].height, ${o});\n set(hotspot[${t.code}].rx, ${t.rx});\n set(hotspot[${t.code}].ry, ${t.ry});\n set(hotspot[${t.code}].rz, ${t.rz});\n set(hotspot[${t.code}].distorted, ${t.distorted});\n set(hotspot[${t.code}].zorder, ${V.STANDARD});\n `),new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{e.call(an(t)),e.set(`hotspot[${t.code}].visible`,t.visible),n()})})}),ln=e=>{var t=Ot(e);return`\n [div class="cvtv-product-info-poi__marker"]\n [img width="${e.width}" height="${e.height}" src="${t}"][/img]\n [/div]`},cn=e=>`[div class="cvtv-product-info-poi__marker cvtv-product-info-poi__marker--label cvtv-product-info-poi__marker--visible"]\n [div class="info-poi"]\n [div class="info-poi__icon" style="width: ${(e.width||0)*(e.scale||1)}px; height: ${(e.height||0)*(e.scale||1)}px"]\n [/div]\n [div class="info-poi__label"]\n [div class="text"]\n ${e&&e.itemInfo&&e.itemInfo.name}\n [/div]\n [i class="chevron icon-chevron_right_24x24"][/i]\n [/div]\n [/div]\n [/div]`,un=(e,t)=>{var n=Nt(t);return(n&&n.imageStrip?sn:rn)(e,t)},hn=(e,t)=>St(void 0,void 0,void 0,function*(){var n=t.width,o=t.height,i=Ot(t);yield Ct(i,n,o),e.call(`addhotspot(${t.code});`),e.call(`\n set(hotspot[${t.code}].url, ${qt(i)});\n set(hotspot[${t.code}].tx, ${t.tx});\n set(hotspot[${t.code}].ty, ${t.ty});\n set(hotspot[${t.code}].tz, ${t.tz});\n set(hotspot[${t.code}].alpha, ${t.alpha});\n set(hotspot[${t.code}].scale, ${t.scale});\n set(hotspot[${t.code}].width, ${n});\n set(hotspot[${t.code}].height, ${o});\n set(hotspot[${t.code}].rx, -90);\n set(hotspot[${t.code}].ry, ${t.rotate});\n set(hotspot[${t.code}].distorted, true);\n set(hotspot[${t.code}].vcenter, true);\n set(hotspot[${t.code}].depth, 0);\n set(hotspot[${t.code}].depthbuffer, true);\n set(hotspot[${t.code}].torigin, world);\n set(hotspot[${t.code}].rotationorder, xyz);\n set(hotspot[${t.code}].zorder, ${V.STANDARD});\n set(hotspot[${t.code}].visible, ${t.visible});\n `);let r=Nt(t);return new Promise(n=>{e.set(`hotspot[${t.code}].onloaded`,()=>{r&&r.imageStrip&&e.call(an(t)),n()})})}),dn=e=>Math.round(e/1e3%1*1e3);function pn(e,t){return function(){return e.apply(t,arguments)}}let fn=Object.prototype.toString,mn=Object.getPrototypeOf,{iterator:gn,toStringTag:vn}=Symbol,bn=(kn=Object.create(null),e=>(e=fn.call(e),kn[e]||(kn[e]=e.slice(8,-1).toLowerCase()))),yn=e=>(e=e.toLowerCase(),t=>bn(t)===e),_n=e=>t=>typeof t===e,wn=Array.isArray,xn=_n("undefined");var kn;function Sn(e){return null!==e&&!xn(e)&&null!==e.constructor&&!xn(e.constructor)&&Pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let En=yn("ArrayBuffer");let Tn=_n("string"),Pn=_n("function"),On=_n("number"),Cn=e=>null!==e&&"object"==typeof e,An=e=>{var t;return"object"===bn(e)&&!(null!==(t=mn(e))&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||vn in e||gn in e)},Mn=yn("Date"),Nn=yn("File"),Ln=yn("Blob"),Dn=yn("FileList"),Rn=yn("URLSearchParams"),[In,$n,Fn,Vn]=["ReadableStream","Request","Response","Headers"].map(yn);function jn(e,t,{allOwnKeys:n=!1}={}){if(null!=e){let s;var o;if("object"!=typeof e&&(e=[e]),wn(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else if(!Sn(e)){var i,r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(s=0;s<a;s++)i=r[s],t.call(null,e[i],i,e)}}}function Hn(e,t){if(!Sn(e)){t=t.toLowerCase();var n,o=Object.keys(e);let i=o.length;for(;0<i--;)if(t===(n=o[i]).toLowerCase())return n}return null}let zn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Bn=e=>!xn(e)&&e!==zn;let Un=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&mn(Uint8Array)),Yn=yn("HTMLFormElement"),Wn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gn=yn("RegExp"),Xn=(e,t)=>{var n=Object.getOwnPropertyDescriptors(e);let o={};jn(n,(n,i)=>{var r;!1!==(r=t(n,i,e))&&(o[i]=r||n)}),Object.defineProperties(e,o)};let qn=yn("AsyncFunction"),Kn=((e,t)=>{return e?setImmediate:t?(n="axios@"+Math.random(),o=[],zn.addEventListener("message",({source:e,data:t})=>{e===zn&&t===n&&o.length&&o.shift()()},!1),e=>{o.push(e),zn.postMessage(n,"*")}):e=>setTimeout(e);var n,o})("function"==typeof setImmediate,Pn(zn.postMessage)),Zn="undefined"!=typeof queueMicrotask?queueMicrotask.bind(zn):"undefined"!=typeof process&&process.nextTick||Kn;var Qn={isArray:wn,isArrayBuffer:En,isBuffer:Sn,isFormData:e=>{var t;return e&&("function"==typeof FormData&&e instanceof FormData||Pn(e.append)&&("formdata"===(t=bn(e))||"object"===t&&Pn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&En(e.buffer)},isString:Tn,isNumber:On,isBoolean:e=>!0===e||!1===e,isObject:Cn,isPlainObject:An,isEmptyObject:e=>{if(!Cn(e)||Sn(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:In,isRequest:$n,isResponse:Fn,isHeaders:Vn,isUndefined:xn,isDate:Mn,isFile:Nn,isBlob:Ln,isRegExp:Gn,isFunction:Pn,isStream:e=>Cn(e)&&Pn(e.pipe),isURLSearchParams:Rn,isTypedArray:Un,isFileList:Dn,forEach:jn,merge:function e(){let t=(Bn(this)&&this||{}).caseless,n={};var o=(o,i)=>{i=t&&Hn(n,i)||i,An(n[i])&&An(o)?n[i]=e(n[i],o):An(o)?n[i]=e({},o):wn(o)?n[i]=o.slice():n[i]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&jn(arguments[e],o);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(jn(t,(t,o)=>{n&&Pn(t)?e[o]=pn(t,n):e[o]=t},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>65279===e.charCodeAt(0)?e.slice(1):e,inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{var i,r;let a;var s={};if(t=t||{},null!=e)do{for(a=(i=Object.getOwnPropertyNames(e)).length;0<a--;)r=i[a],o&&!o(r,e,t)||s[r]||(t[r]=e[r],s[r]=!0)}while((e=!1!==n&&mn(e))&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:bn,kindOfTest:yn,endsWith:(e,t,n)=>(e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length,-1!==(e=e.indexOf(t,n))&&e===n),toArray:e=>{if(!e)return null;if(wn(e))return e;let t=e.length;if(!On(t))return null;for(var n=new Array(t);0<t--;)n[t]=e[t];return n},forEachEntry:(e,t)=>{for(var n=(e&&e[gn]).call(e);(o=n.next())&&!o.done;){var o=o.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{for(var n,o=[];null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:Yn,hasOwnProperty:Wn,hasOwnProp:Wn,reduceDescriptors:Xn,freezeMethods:e=>{Xn(e,(t,n)=>{if(Pn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var o=e[n];Pn(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{let n={};var o=e=>{e.forEach(e=>{n[e]=!0})};return wn(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Hn,global:zn,isContextDefined:Bn,isSpecCompliantForm:function(e){return!!(e&&Pn(e.append)&&"FormData"===e[vn]&&e[gn])},toJSONObject:e=>{let t=new Array(10),n=(e,o)=>{if(Cn(e)){if(0<=t.indexOf(e))return;if(Sn(e))return e;if(!("toJSON"in e)){t[o]=e;let i=wn(e)?[]:{};return jn(e,(e,t)=>{e=n(e,o+1),xn(e)||(i[t]=e)}),t[o]=void 0,i}}return e};return n(e,0)},isAsyncFn:qn,isThenable:e=>e&&(Cn(e)||Pn(e))&&Pn(e.then)&&Pn(e.catch),setImmediate:Kn,asap:Zn,isIterable:e=>null!=e&&Pn(e[gn])};function Jn(e,t,n,o,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status||null)}Qn.inherits(Jn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Qn.toJSONObject(this.config),code:this.code,status:this.status}}});let eo=Jn.prototype,to={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{to[e]={value:e}}),Object.defineProperties(Jn,to),Object.defineProperty(eo,"isAxiosError",{value:!0}),Jn.from=(e,t,n,o,i,r)=>{var a=Object.create(eo);return Qn.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Jn.call(a,e.message,t,n,o,i),a.cause=e,a.name=e.name,r&&Object.assign(a,r),a};function no(e){return Qn.isPlainObject(e)||Qn.isArray(e)}function oo(e){return Qn.endsWith(e,"[]")?e.slice(0,-2):e}function io(e,t,n){return e?e.concat(t).map(function(e,t){return e=oo(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ro=Qn.toFlatObject(Qn,{},null,function(e){return/^is[A-Z]/.test(e)});function ao(e,t,n){if(!Qn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;let o=(n=Qn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Qn.isUndefined(t[e])})).metaTokens,i=n.visitor||c,r=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Qn.isSpecCompliantForm(t);if(!Qn.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Qn.isDate(e))return e.toISOString();if(Qn.isBoolean(e))return e.toString();if(!s&&Qn.isBlob(e))throw new Jn("Blob is not supported. Use a Buffer instead.");return Qn.isArrayBuffer(e)||Qn.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(Qn.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(Qn.isArray(e)&&function(e){return Qn.isArray(e)&&!e.some(no)}(e)||(Qn.isFileList(e)||Qn.endsWith(n,"[]"))&&(s=Qn.toArray(e)))return n=oo(n),s.forEach(function(e,o){Qn.isUndefined(e)||null===e||t.append(!0===a?io([n],o,r):null===a?n:n+"[]",l(e))}),!1;return!!no(e)||(t.append(io(i,n,r),l(e)),!1)}let u=[],h=Object.assign(ro,{defaultVisitor:c,convertValue:l,isVisitable:no});if(Qn.isObject(e))return function e(n,o){if(!Qn.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+o.join("."));u.push(n),Qn.forEach(n,function(n,r){!0===(!(Qn.isUndefined(n)||null===n)&&i.call(t,n,Qn.isString(r)?r.trim():r,o,h))&&e(n,o?o.concat(r):[r])}),u.pop()}}(e),t;throw new TypeError("data must be an object")}function so(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function lo(e,t){this._pairs=[],e&&ao(e,this,t)}let co=lo.prototype;function uo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ho(e,t,n){if(t){var o=n&&n.encode||uo,i=(n=Qn.isFunction(n)?{serialize:n}:n)&&n.serialize;let r;(r=i?i(t,n):Qn.isURLSearchParams(t)?t.toString():new lo(t,n).toString(o))&&(-1!==(i=e.indexOf("#"))&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r)}return e}co.append=function(e,t){this._pairs.push([e,t])};class po{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Qn.forEach(this.handlers,function(t){null!==t&&e(t)})}}var fo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!(co.toString=function(e){let t=e?function(t){return e.call(this,t,so)}:so;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")})},mo={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:lo,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let go="undefined"!=typeof window&&"undefined"!=typeof document,vo="object"==typeof navigator&&navigator||void 0,bo=go&&(!vo||["ReactNative","NativeScript","NS"].indexOf(vo.product)<0),yo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_o=go&&window.location.href||"http://localhost";var wo={...Object.freeze({__proto__:null,hasBrowserEnv:go,hasStandardBrowserEnv:bo,hasStandardBrowserWebWorkerEnv:yo,navigator:vo,origin:_o}),...mo};function xo(e){if(Qn.isFormData(e)&&Qn.isFunction(e.entries)){let t={};return Qn.forEachEntry(e,(e,n)=>{!function e(t,n,o,i){var r,a,s;return"__proto__"===(s=t[i++])||(r=Number.isFinite(+s),a=i>=t.length,s=!s&&Qn.isArray(o)?o.length:s,a?Qn.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n:(o[s]&&Qn.isObject(o[s])||(o[s]=[]),e(t,n,o[s],i)&&Qn.isArray(o[s])&&(o[s]=function(e){var t={},n=Object.keys(e);let o;var i,r=n.length;for(o=0;o<r;o++)t[i=n[o]]=e[i];return t}(o[s]))),!r)}(function(e){return Qn.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,t,0)}),t}return null}let ko={transitional:fo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n=t.getContentType()||"",o=-1<n.indexOf("application/json"),i=Qn.isObject(e),r=(i&&Qn.isHTMLForm(e)&&(e=new FormData(e)),Qn.isFormData(e));if(r)return o?JSON.stringify(xo(e)):e;if(Qn.isArrayBuffer(e)||Qn.isBuffer(e)||Qn.isStream(e)||Qn.isFile(e)||Qn.isBlob(e)||Qn.isReadableStream(e))return e;if(Qn.isArrayBufferView(e))return e.buffer;if(Qn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(-1<n.indexOf("application/x-www-form-urlencoded"))return function(e,t){return ao(e,new wo.classes.URLSearchParams,{visitor:function(e,t,n,o){return wo.isNode&&Qn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((r=Qn.isFileList(e))||-1<n.indexOf("multipart/form-data"))return ao(r?{"files[]":e}:e,(n=this.env&&this.env.FormData)&&new n,this.formSerializer)}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(Qn.isString(e))try{return(t||JSON.parse)(e),Qn.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ko.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(!Qn.isResponse(e)&&!Qn.isReadableStream(e)&&e&&Qn.isString(e)&&(n&&!this.responseType||o)){n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Jn.from(e,Jn.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wo.classes.FormData,Blob:wo.classes.Blob},validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}},So=(Qn.forEach(["delete","get","head","post","put","patch"],e=>{ko.headers[e]={}}),Qn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]));let Eo=Symbol("internals");function To(e){return e&&String(e).trim().toLowerCase()}function Po(e){return!1===e||null==e?e:Qn.isArray(e)?e.map(Po):String(e)}function Oo(e,t,n,o,i){return Qn.isFunction(o)?o.call(this,t,n):Qn.isString(t=i?n:t)?Qn.isString(o)?-1!==t.indexOf(o):Qn.isRegExp(o)?o.test(t):void 0:void 0}let Co=class{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function i(e,t,n){var i=To(t);if(!i)throw new Error("header name must be a non-empty string");(i=Qn.findKey(o,i))&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=Po(e))}var r=(e,t)=>Qn.forEach(e,(e,n)=>i(e,n,t));if(Qn.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(Qn.isString(e)&&(e=e.trim())&&!(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))(e))r((e=>{let t,n,o,i={};return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),t=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!t||i[t]&&So[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i})(e),t);else if(Qn.isObject(e)&&Qn.isIterable(e)){var a,s,l={};for(s of e){if(!Qn.isArray(s))throw TypeError("Object iterator must return a key-value pair");l[a=s[0]]=(a=l[a])?Qn.isArray(a)?[...a,s[1]]:[a,s[1]]:s[1]}r(l,t)}else null!=e&&i(t,e,n);return this}get(e,t){if((e=To(e))&&(e=Qn.findKey(this,e))){var n=this[e];if(!t)return n;if(!0===t)return function(e){for(var t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=o.exec(e);)n[t[1]]=t[2];return n}(n);if(Qn.isFunction(t))return t.call(this,n,e);if(Qn.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}has(e,t){return!!(e=To(e))&&!(!(e=Qn.findKey(this,e))||void 0===this[e]||t&&!Oo(0,this[e],e,t))}delete(e,t){let n=this,o=!1;function i(e){(e=To(e))&&(e=Qn.findKey(n,e))&&(!t||Oo(0,n[e],e,t))&&(delete n[e],o=!0)}return Qn.isArray(e)?e.forEach(i):i(e),o}clear(e){var t=Object.keys(this);let n=t.length,o=!1;for(;n--;){var i=t[n];e&&!Oo(0,this[i],i,e,!0)||(delete this[i],o=!0)}return o}normalize(e){let t=this,n={};return Qn.forEach(this,(o,i)=>{var r=Qn.findKey(n,i);r?(t[r]=Po(o),delete t[i]):((r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim())!==i&&delete t[i],t[r]=Po(o),n[r]=!0)}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Qn.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&Qn.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Eo]=this[Eo]={accessors:{}}).accessors,n=this.prototype;function o(e){var o=To(e);t[o]||(function(e,t){let n=Qn.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[o]=!0)}return Qn.isArray(e)?e.forEach(o):o(e),this}};function Ao(e,t){let n=this||ko;var o=t||n;let i=Co.from(o.headers),r=o.data;return Qn.forEach(e,function(e){r=e.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function Mo(e){return!(!e||!e.__CANCEL__)}function No(e,t,n){Jn.call(this,null==e?"canceled":e,Jn.ERR_CANCELED,t,n),this.name="CanceledError"}function Lo(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Jn("Request failed with status code "+n.status,[Jn.ERR_BAD_REQUEST,Jn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Co.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Qn.reduceDescriptors(Co.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Qn.freezeMethods(Co),Qn.inherits(No,Jn,{__CANCEL__:!0});let Do=(e,t,n=3)=>{let o=0,i=function(e,t){e=e||10;let n,o=new Array(e),i=new Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){var l=Date.now(),c=i[a];n=n||l,o[r]=s,i[r]=l;let u=a,h=0;for(;u!==r;)h+=o[u++],u%=e;return(r=(r+1)%e)===a&&(a=(a+1)%e),l-n<t||!(s=c&&l-c)?void 0:Math.round(1e3*h/s)}}(50,250);return function(e,t){let n,o,i=0,r=1e3/t,a=(t,r=Date.now())=>{i=r,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{var t=Date.now(),s=t-i;s>=r?a(e,t):(n=e,o=o||setTimeout(()=>{o=null,a(n)},r-s))},()=>n&&a(n)]}(n=>{var r=n.loaded,a=n.lengthComputable?n.total:void 0,s=i(l=r-o),l={loaded:o=r,total:a,progress:a?r/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&r<=a?(a-r)/s:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0};e(l)},n)},Ro=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Io=e=>(...t)=>Qn.asap(()=>e(...t));var $o=wo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wo.origin),wo.navigator&&/(msie|trident)/i.test(wo.navigator.userAgent)):()=>!0,Fo=wo.hasStandardBrowserEnv?{write(e,t,n,o,i,r){e=[e+"="+encodeURIComponent(t)],Qn.isNumber(n)&&e.push("expires="+new Date(n).toGMTString()),Qn.isString(o)&&e.push("path="+o),Qn.isString(i)&&e.push("domain="+i),!0===r&&e.push("secure"),document.cookie=e.join("; ")},read:e=>(e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)")))?decodeURIComponent(e[3]):null,remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Vo(e,t,n){var o=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}let jo=e=>e instanceof Co?{...e}:e;function Ho(e,t){t=t||{};let n={};function o(e,t,n,o){return Qn.isPlainObject(e)&&Qn.isPlainObject(t)?Qn.merge.call({caseless:o},e,t):Qn.isPlainObject(t)?Qn.merge({},t):Qn.isArray(t)?t.slice():t}function i(e,t,n,i){return Qn.isUndefined(t)?Qn.isUndefined(e)?void 0:o(void 0,e,0,i):o(e,t,0,i)}function r(e,t){if(!Qn.isUndefined(t))return o(void 0,t)}function a(e,t){return Qn.isUndefined(t)?Qn.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,i,r){return r in t?o(n,i):r in e?o(void 0,n):void 0}let l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(jo(e),jo(t),0,!0)};return Qn.forEach(Object.keys({...e,...t}),function(o){var r=l[o]||i,a=r(e[o],t[o],o);Qn.isUndefined(a)&&r!==s||(n[o]=a)}),n}var zo=e=>{var t,n=Ho({},e);let{data:o,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:a,headers:s,auth:l}=n;return n.headers=s=Co.from(s),n.url=ho(Vo(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Qn.isFormData(o)&&(wo.hasStandardBrowserEnv||wo.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):!1!==(e=s.getContentType())&&([e,...t]=e?e.split(";").map(e=>e.trim()).filter(Boolean):[],s.setContentType([e||"multipart/form-data",...t].join("; ")))),wo.hasStandardBrowserEnv&&((i=i&&Qn.isFunction(i)?i(n):i)||!1!==i&&$o(n.url))&&(e=r&&a&&Fo.read(a))&&s.set(r,e),n};var Bo="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o=zo(e);var i=o.data,r=Co.from(o.headers).normalize();let a,s,l,{responseType:c,onUploadProgress:u,onDownloadProgress:h}=o;function d(){s&&s(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(a),o.signal&&o.signal.removeEventListener("abort",a)}let p=new XMLHttpRequest;function f(){var o;p&&(o=Co.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),Lo(function(e){t(e),d()},function(e){n(e),d()},{data:c&&"text"!==c&&"json"!==c?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:o,config:e,request:p}),p=null)}p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout,"onloadend"in p?p.onloadend=f:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(f)},p.onabort=function(){p&&(n(new Jn("Request aborted",Jn.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new Jn("Network Error",Jn.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";var i=o.transitional||fo;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Jn(t,i.clarifyTimeoutError?Jn.ETIMEDOUT:Jn.ECONNABORTED,e,p)),p=null},void 0===i&&r.setContentType(null),"setRequestHeader"in p&&Qn.forEach(r.toJSON(),function(e,t){p.setRequestHeader(t,e)}),Qn.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),c&&"json"!==c&&(p.responseType=o.responseType),h&&([r,l]=Do(h,!0),p.addEventListener("progress",r)),u&&p.upload&&([r,s]=Do(u),p.upload.addEventListener("progress",r),p.upload.addEventListener("loadend",s)),(o.cancelToken||o.signal)&&(a=t=>{p&&(n(!t||t.type?new No(null,e,p):t),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(a),o.signal)&&(o.signal.aborted?a():o.signal.addEventListener("abort",a)),r=function(e){return(e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e))&&e[1]||""}(o.url),r&&-1===wo.protocols.indexOf(r)?n(new Jn("Unsupported protocol "+r+":",Jn.ERR_BAD_REQUEST,e)):p.send(i||null)})};let Uo=(e,t)=>{var n=(e=e?e.filter(Boolean):[]).length;if(t||n){let o,i=new AbortController,r=function(e){o||(o=!0,s(),e=e instanceof Error?e:this.reason,i.abort(e instanceof Jn?e:new No(e instanceof Error?e.message:e)))},a=t&&setTimeout(()=>{a=null,r(new Jn(`timeout ${t} of ms exceeded`,Jn.ETIMEDOUT))},t),s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};return e.forEach(e=>e.addEventListener("abort",r)),(n=i.signal).unsubscribe=()=>Qn.asap(s),n}},Yo=function*(e,t){var n,o=e.byteLength;if(o<t)yield e;else{let i=0;for(;i<o;)n=i+t,yield e.slice(i,n),i=n}},Wo=async function*(e){if(e[Symbol.asyncIterator])yield*e;else{var t=e.getReader();try{for(;;){var{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}}},Go=(e,t,n,o)=>{let i,r=async function*(e,t){for await(var n of Wo(e))yield*Yo(n,t)}(e,t),a=0,s=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{var t,o,{done:i,value:l}=await r.next();i?(s(),e.close()):(t=l.byteLength,n&&(o=a+=t,n(o)),e.enqueue(new Uint8Array(l)))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},Xo="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,qo=Xo&&"function"==typeof ReadableStream,Ko=Xo&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Zo=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Qo=qo&&Zo(()=>{let e=!1;var t=new Request(wo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Jo=qo&&Zo(()=>Qn.isReadableStream(new Response("").body)),ei={stream:Jo&&(e=>e.body)},ti=(Xo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{ei[t]||(ei[t]=Qn.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new Jn(`Response type '${t}' is not supported`,Jn.ERR_NOT_SUPPORT,n)})})})(new Response),async e=>null==e?0:Qn.isBlob(e)?e.size:Qn.isSpecCompliantForm(e)?(await new Request(wo.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:Qn.isArrayBufferView(e)||Qn.isArrayBuffer(e)?e.byteLength:(Qn.isURLSearchParams(e)&&(e+=""),Qn.isString(e)?(await Ko(e)).byteLength:void 0));var ni=Xo&&(async e=>{let t,n,{url:o,method:i,data:r,signal:a,cancelToken:s,timeout:l,onDownloadProgress:c,onUploadProgress:u,responseType:h,headers:d,withCredentials:p="same-origin",fetchOptions:f}=zo(e),m=(h=h?(h+"").toLowerCase():"text",Uo([a,s&&s.toAbortSignal()],l)),g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});try{if(u&&Qo&&"get"!==i&&"head"!==i&&0!==(n=await(async(e,t)=>null==(e=Qn.toFiniteNumber(e.getContentLength()))?ti(t):e)(d,r))){var v,b,y=new Request(o,{method:"POST",body:r,duplex:"half"});let e;Qn.isFormData(r)&&(e=y.headers.get("content-type"))&&d.setContentType(e),y.body&&([v,b]=Ro(n,Do(Io(u))),r=Go(y.body,65536,v,b))}Qn.isString(p)||(p=p?"include":"omit");var _="credentials"in Request.prototype;t=new Request(o,{...f,signal:m,method:i.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:_?p:void 0});let a=await fetch(t,f);var w=Jo&&("stream"===h||"response"===h);if(Jo&&(c||w&&g)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});var x=Qn.toFiniteNumber(a.headers.get("content-length"));let[t,n]=c&&Ro(x,Do(Io(c),!0))||[];a=new Response(Go(a.body,65536,t,()=>{n&&n(),g&&g()}),e)}h=h||"text";let s=await ei[Qn.findKey(ei,h)||"text"](a,e);return!w&&g&&g(),await new Promise((n,o)=>{Lo(n,o,{data:s,headers:Co.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:t})})}catch(i){if(g&&g(),i&&"TypeError"===i.name&&/Load failed|fetch/i.test(i.message))throw Object.assign(new Jn("Network Error",Jn.ERR_NETWORK,e,t),{cause:i.cause||i});throw Jn.from(i,i&&i.code,e,t)}});let oi={http:null,xhr:Bo,fetch:ni},ii=(Qn.forEach(oi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}),e=>"- "+e),ri=e=>Qn.isFunction(e)||null===e||!1===e;var ai=e=>{var t,n=(e=Qn.isArray(e)?e:[e]).length;let o;var i,r={};for(let i=0;i<n;i++){let n;if(o=t=e[i],!ri(t)&&void 0===(o=oi[(n=String(t)).toLowerCase()]))throw new Jn(`Unknown adapter '${n}'`);if(o)break;r[n||"#"+i]=o}if(o)return o;throw i=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),new Jn("There is no suitable adapter to dispatch the request "+(n?1<i.length?"since :\n"+i.map(ii).join("\n"):" "+ii(i[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")};function si(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new No(null,e)}function li(e){return si(e),e.headers=Co.from(e.headers),e.data=Ao.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ai(e.adapter||ko.adapter)(e).then(function(t){return si(e),t.data=Ao.call(e,e.transformResponse,t),t.headers=Co.from(t.headers),t},function(t){return Mo(t)||(si(e),t&&t.response&&(t.response.data=Ao.call(e,e.transformResponse,t.response),t.response.headers=Co.from(t.response.headers))),Promise.reject(t)})}let ci="1.11.0",ui={},hi=(["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ui[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}),{});ui.transitional=function(e,t,n){function o(e,t){return"[Axios v"+ci+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,r)=>{if(!1===e)throw new Jn(o(i," has been removed"+(t?" in "+t:"")),Jn.ERR_DEPRECATED);return t&&!hi[i]&&(hi[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,r)}},ui.spelling=function(e){return(t,n)=>(console.warn(n+" is likely a misspelling of "+e),!0)};var di={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Jn("options must be an object",Jn.ERR_BAD_OPTION_VALUE);var o=Object.keys(e);let i=o.length;for(;0<i--;){var r=o[i];if(a=t[r]){var a,s=e[r];if(!0!==(a=void 0===s||a(s,r,e)))throw new Jn("option "+r+" must be "+a,Jn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Jn("Unknown option "+r,Jn.ERR_BAD_OPTION)}},validators:ui};let pi=di.validators,fi=class{constructor(e){this.defaults=e||{},this.interceptors={request:new po,response:new po}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error,e=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?e&&!String(n.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+e):n.stack=e}catch(t){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:o,headers:i}=t=Ho(this.defaults,t);void 0!==n&&di.assertOptions(n,{silentJSONParsing:pi.transitional(pi.boolean),forcedJSONParsing:pi.transitional(pi.boolean),clarifyTimeoutError:pi.transitional(pi.boolean)},!1),null!=o&&(Qn.isFunction(o)?t.paramsSerializer={serialize:o}:di.assertOptions(o,{encode:pi.function,serialize:pi.function},!0)),void 0===t.allowAbsoluteUrls&&(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),di.assertOptions(t,{baseUrl:pi.spelling("baseURL"),withXsrfToken:pi.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),e=i&&Qn.merge(i.common,i[t.method]),i&&Qn.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=Co.concat(e,i);let r=[],a=!0,s=(this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}),[]);this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let l,c,u=0;if(a){c=r.length;let n=t;for(u=0;u<c;){var h=r[u++],d=r[u++];try{n=h(n)}catch(e){d.call(this,e);break}}try{l=li.call(this,n)}catch(e){return Promise.reject(e)}for(u=0,c=s.length;u<c;)l=l.then(s[u++],s[u++])}else{var p=[li.bind(this),void 0];for(p.unshift(...r),p.push(...s),c=p.length,l=Promise.resolve(t);u<c;)l=l.then(p[u++],p[u++])}return l}getUri(e){return ho(Vo((e=Ho(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}},mi=(Qn.forEach(["delete","get","head","options"],function(e){fi.prototype[e]=function(t,n){return this.request(Ho(n||{},{method:e,url:t,data:(n||{}).data}))}}),Qn.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,i){return this.request(Ho(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}fi.prototype[e]=t(),fi.prototype[e+"Form"]=t(!0)}),class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t,n=(this.promise=new Promise(function(e){t=e}),this);this.promise.then(e=>{if(n._listeners){let t=n._listeners.length;for(;0<t--;)n._listeners[t](e);n._listeners=null}}),this.promise.then=e=>{let t;return(e=new Promise(e=>{n.subscribe(e),t=e}).then(e)).cancel=function(){n.unsubscribe(t)},e},e(function(e,o,i){n.reason||(n.reason=new No(e,o,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){this._listeners&&-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}});let gi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gi).forEach(([e,t])=>{gi[t]=e});let vi=function e(t){var n=new fi(t),o=pn(fi.prototype.request,n);return Qn.extend(o,fi.prototype,n,{allOwnKeys:!0}),Qn.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ho(t,n))},o}(ko),{Axios:bi,AxiosError:yi,CanceledError:_i,isCancel:wi,CancelToken:xi,VERSION:ki,all:Si,Cancel:Ei,isAxiosError:Ti,spread:Pi,toFormData:Oi,AxiosHeaders:Ci,HttpStatusCode:Ai,formToJSON:Mi,getAdapter:Ni,mergeConfig:Li}=(vi.Axios=fi,vi.CanceledError=No,vi.CancelToken=mi,vi.isCancel=Mo,vi.VERSION=ci,vi.toFormData=ao,vi.AxiosError=Jn,vi.Cancel=vi.CanceledError,vi.all=function(e){return Promise.all(e)},vi.spread=function(e){return function(t){return e.apply(null,t)}},vi.isAxiosError=function(e){return Qn.isObject(e)&&!0===e.isAxiosError},vi.mergeConfig=Ho,vi.AxiosHeaders=Co,vi.formToJSON=e=>xo(Qn.isHTMLForm(e)?new FormData(e):e),vi.getAdapter=ai,vi.HttpStatusCode=gi,vi.default=vi);var Di,Ri={};function Ii(){function e(e,t){return void 0===t&&(t=1),"rgba("+[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16),t].join(",")+")"}function t(t,n,o){switch(o){case"webvtt.font.color":case"webvtt.font.opacity":var i=Services.prefs.getCharPref("webvtt.font.color"),r=Services.prefs.getIntPref("webvtt.font.opacity")/100;m.fontSet=e(i,r);break;case"webvtt.font.scale":g=Services.prefs.getIntPref("webvtt.font.scale")/100;break;case"webvtt.bg.color":case"webvtt.bg.opacity":i=Services.prefs.getCharPref("webvtt.bg.color"),r=Services.prefs.getIntPref("webvtt.bg.opacity")/100,m.backgroundSet=e(i,r);break;case"webvtt.edge.color":case"webvtt.edge.type":i=Services.prefs.getIntPref("webvtt.edge.type"),r=Services.prefs.getCharPref("webvtt.edge.color"),m.edgeSet=["","0px 0px ","4px 4px 4px ","-2px -2px ","2px 2px "][i]+e(r)}}function n(){}function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function i(e){function t(e,t,n,o){return 3600*(0|e)+60*(0|t)+(0|n)+(0|o)/1e3}return(e=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/))?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function r(){this.values=v(null)}function a(e,t,n,o){var i,r,a=o?e.split(o):[e];for(i in a)"string"==typeof a[i]&&2===(r=a[i].split(n)).length&&t(r[0],r[1])}function s(e,t){function n(e){return b[e]}for(var o,r,a,s,l,c,u,h=e.document.createElement("div"),d=h,p=[];null!==(u=void 0,u=t?(u=(u=t.match(/^([^<]*)(<[^>]+>?)?/))[1]||u[2],t=t.substr(u.length),u):null);)"<"===u[0]?"/"===u[1]?p.length&&p[p.length-1]===u.substr(2).replace(">","")&&(p.pop(),d=d.parentNode):(a=i(u.substr(1,u.length-2)))?(o=e.document.createProcessingInstruction("timestamp",a),d.appendChild(o)):(r=u.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(a=r[1],s=r[3],c=l=void 0,o=(c=y[a])?((l=e.document.createElement(c)).localName=c,(c=_[a])&&s&&(l[c]=s.trim()),l):null)&&(a=d,w[(c=o).localName]&&w[c.localName]!==a.localName||(r[2]&&(o.className=r[2].substr(1).replace("."," ")),p.push(r[1]),d.appendChild(o),d=o)):d.appendChild(e.document.createTextNode((e=>{for(;r=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(r[0],n);return e})(u)));return h}function l(e){var t=[],n="";if(e&&e.childNodes)for(i(t,e);n=function e(t){var n,o,r;return t&&t.length?(o=(n=t.pop()).textContent||n.innerText)?(r=o.match(/^.*(\n|\r)/))?r[t.length=0]:o:"ruby"===n.tagName?e(t):n.childNodes?(i(t,n),e(t)):void 0:null}(t);)for(var o=0;o<n.length;o++)if((e=>{for(var t=0;t<x.length;t++){var n=x[t];if(e>=n[0]&&e<=n[1])return 1}})(n.charCodeAt(o)))return"rtl";return"ltr";function i(e,t){for(var n=t.childNodes.length-1;0<=n;n--)e.push(t.childNodes[n])}}function c(){}function u(e,t,n){var o="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",r="rgba(0, 0, 0, 0.8)",a="",u=(i=(void 0!==m&&(i=m.fontSet,r=m.backgroundSet,a=m.edgeSet),o&&(i="rgb(255, 255, 255)",r="rgb(0, 0, 0)"),c.call(this),this.cue=t,this.cueDiv=s(e,t.text),{color:i,backgroundColor:r,textShadow:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"}),o||(i.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",i.unicodeBidi="plaintext"),this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},o||(i.direction=l(this.cueDiv),i.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(i),this.div.appendChild(this.cueDiv),0);switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function h(e){var t,n,o,i,r="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent);e.div&&(t=e.div.offsetHeight,n=e.div.offsetWidth,o=e.div.offsetTop,i=(i=(i=e.div.childNodes)&&i[0])&&i.getClientRects&&i.getClientRects(),e=e.div.getBoundingClientRect(),i=i?Math.max(i[0]&&i[0].height||0,e.height/i.length):0),this.left=e.left,this.right=e.right,this.top=e.top||o,this.height=e.height||t,this.bottom=e.bottom||o+(e.height||t),this.width=e.width||n,this.lineHeight=void 0!==i?i:e.lineHeight,r&&!this.lineHeight&&(this.lineHeight=13)}function d(e,t,n,o){var i,r=new h(t),a=t.cue,s=(e=>{if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,o=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&o++;return-1*++o})(a),l=[];if(a.snapToLines){switch(a.vertical){case"":l=["+y","-y"],i="height";break;case"rl":l=["+x","-x"],i="width";break;case"lr":l=["-x","+x"],i="width"}var c=r.lineHeight,u=c*Math.round(s),d=n[i]+c,p=l[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),s<0&&(u+=""===a.vertical?n.height:n.width,l=l.reverse()),r.move(p,u)}else{var f=r.lineHeight/n.height*100;switch(a.lineAlign){case"middle":s-=f/2;break;case"end":s-=f}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}l=["+y","-x","+x","-y"],r=new h(t)}d=((e,t)=>{for(var i,r=new h(e),a=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(o);)e.move(t[s]);if(e.within(n))return e;var l=e.intersectPercentage(n);l<a&&(i=new h(e),a=l),e=new h(r)}return i||r})(r,l),t.move(d.toCSSCompatValues(n))}function p(){}var f,m,g,v,b,y,_,w,x;return Di||(f=Ri,g=Di=1,"undefined"!=typeof Services&&(m={},["webvtt.font.color","webvtt.font.opacity","webvtt.font.scale","webvtt.bg.color","webvtt.bg.opacity","webvtt.edge.color","webvtt.edge.type"].forEach(function(e){t(0,0,e),Services.prefs.addObserver(e,t,!1)})),v=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=e,new n},((o.prototype=v(Error.prototype)).constructor=o).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},r.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var o=0;o<n.length;++o)if(t===n[o]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}},b={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},y={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},_={v:"title",lang:"lang"},w={rt:"ruby"},x=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]],c.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},c.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(u.prototype=v(c.prototype)).constructor=u,h.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},h.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},h.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},h.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},h.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},h.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},h.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},h.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,o=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||o,height:e.height||t,bottom:e.bottom||o+(e.height||t),width:e.width||n}},p.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},p.convertCueToDOMTree=function(e,t){return e&&t?s(e,t):null},p.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var o=e.document.createElement("div");if(o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin="1.5%",n.appendChild(o),(e=>{for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1})(t))for(var i,r,a=[],s=h.getSimpleBoxPosition(o),l={font:Math.round(.05*s.height*100)/100*g+"px sans-serif"},c=0;c<t.length;c++)i=new u(e,r=t[c],l),o.appendChild(i.div),d(0,i,s,a),r.displayState=i.div,a.push(h.getSimpleBoxPosition(i));else for(var p=0;p<t.length;p++)o.appendChild(t[p].displayState)},(p.Parser=function(e,t){this.window=e,this.state="INITIAL",this.buffer="",this.decoder=t||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof o))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var o=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),o}function s(e){a(e,function(e,n){var o;"Region"===e&&(e=n,o=new r,a(e,function(e,t){switch(e){case"id":o.set(e,t);break;case"width":o.percent(e,t);break;case"lines":o.integer(e,t);break;case"regionanchor":case"viewportanchor":var n,i=t.split(",");2===i.length&&((n=new r).percent("x",i[0]),n.percent("y",i[1]),n.has("x")&&n.has("y"))&&(o.set(e+"X",n.get("x")),o.set(e+"Y",n.get("y")));break;case"scroll":o.alt(e,t,["up"])}},/=/,/\s/),o.has("id"))&&((e=new t.window.VTTRegion).width=o.get("width",100),e.lines=o.get("lines",3),e.regionAnchorX=o.get("regionanchorX",0),e.regionAnchorY=o.get("regionanchorY",100),e.viewportAnchorX=o.get("viewportanchorX",0),e.viewportAnchorY=o.get("viewportanchorY",100),e.scroll=o.get("scroll",""),t.onregion&&t.onregion(e),t.regionList.push({id:o.get("id"),region:e}))},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var l,c=(l=n()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var u=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(u?u=!1:l=n(),t.state){case"HEADER":/:/.test(l)?s(l):l||(t.state="ID");continue;case"NOTE":l||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(l)){t.state="NOTE";break}if(!l)continue;if(t.cue=new t.window.VTTCue(0,0,""),t.state="CUE",-1===l.indexOf("--\x3e")){t.cue.id=l;continue}case"CUE":try{((e,t,n)=>{var s,l,c=e;function u(){var t=i(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+c);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function h(){e=e.replace(/^\s+/,"")}if(h(),t.startTime=u(),h(),"--\x3e"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+c);e=e.substr(3),h(),t.endTime=u(),h(),s=e,l=new r,a(s,function(e,t){switch(e){case"region":for(var o=n.length-1;0<=o;o--)if(n[o].id===t){l.set(e,n[o].region);break}break;case"vertical":l.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),r=i[0];l.integer(e,r),l.percent(e,r)&&l.set("snapToLines",!1),l.alt(e,r,["auto"]),2===i.length&&l.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=t.split(","),l.percent(e,i[0]),2===i.length&&l.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":l.percent(e,t);break;case"align":l.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),t.region=l.get("region",null),t.vertical=l.get("vertical",""),t.line=l.get("line","auto"),t.lineAlign=l.get("lineAlign","start"),t.snapToLines=l.get("snapToLines",!0),t.size=l.get("size",100),t.align=l.get("align","middle"),t.position=l.get("position","auto"),t.positionAlign=l.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)})(l,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==l.indexOf("--\x3e");if(!l||h&&(u=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=l;continue;case"BADCUE":l||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),!e.cue&&"HEADER"!==e.state||(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new o(o.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},f.WebVTT=p),Ri}var $i,Fi={exports:{}},Vi={};var ji,Hi=Fi.exports;function zi(){var e;return ji||(ji=1,Fi.exports&&(Hi.VTTCue=Hi.VTTCue||function(){var e,t,n,o;return $i||($i=1,e=Vi,t="auto",n={"":!0,lr:!0,rl:!0},o={start:!0,middle:!0,end:!0,left:!0,right:!0},a.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.VTTCue=e.VTTCue||a),Vi;function i(e){return"string"==typeof e&&!!o[e.toLowerCase()]&&e.toLowerCase()}function r(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)e[n]=o[n]}return e}function a(e,o,a){var s=this,l=/MSIE\s8\.0/.test(navigator.userAgent),c={},u=(l?s=document.createElement("custom"):c.enumerable=!0,s.hasBeenReset=!1,""),h=!1,d=e,p=o,f=a,m=null,g="",v=!0,b="auto",y="start",_=50,w="middle",x=50,k="middle";if(Object.defineProperty(s,"id",r({},c,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(s,"pauseOnExit",r({},c,{get:function(){return h},set:function(e){h=!!e}})),Object.defineProperty(s,"startTime",r({},c,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",r({},c,{get:function(){return p},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",r({},c,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",r({},c,{get:function(){return m},set:function(e){m=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",r({},c,{get:function(){return g},set:function(e){if(!1===(e="string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()))throw new SyntaxError("An invalid or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",r({},c,{get:function(){return v},set:function(e){v=!!e,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",r({},c,{get:function(){return b},set:function(e){if("number"!=typeof e&&e!==t)throw new SyntaxError("An invalid number or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",r({},c,{get:function(){return y},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",r({},c,{get:function(){return _},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",r({},c,{get:function(){return w},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",r({},c,{get:function(){return x},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",r({},c,{get:function(){return k},set:function(e){if(!(e=i(e)))throw new SyntaxError("An invalid or illegal string was specified.");k=e,this.hasBeenReset=!0}})),s.displayState=void 0,l)return s}}().VTTCue),(e=Hi).VTTCue.prototype.toJSON=function(){var e={},t=this;return Object.keys(this).forEach(function(n){"getCueAsHTML"!==n&&"hasBeenReset"!==n&&"displayState"!==n&&(e[n]=t[n])}),e},e.VTTCue.create=function(t){if(!t.hasOwnProperty("startTime")||!t.hasOwnProperty("endTime")||!t.hasOwnProperty("text"))throw new Error("You must at least have start time, end time, and text.");var n,o=new e.VTTCue(t.startTime,t.endTime,t.text);for(n in t)o.hasOwnProperty(n)&&(o[n]=t[n]);return o},e.VTTCue.fromJSON=function(e){return this.create(JSON.parse(e))}),Fi.exports}var Bi,Ui={exports:{}},Yi={};var Wi,Gi,Xi,qi=Ui.exports;function Ki(){var e;return Wi||(Wi=1,Ui.exports&&(qi.VTTRegion=function(){var e;return Bi||(Bi=1,e={"":!0,up:!0},Yi.VTTRegion=Yi.VTTRegion||function(){var n=100,o=3,i=0,r=100,a=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(e){if(!t(e))throw new Error("Width must be between 0 and 100.");n=e}},lines:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");o=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!t(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!t(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!t(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!t(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return l},set:function(t){if(!1===(t="string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()))throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}),Yi;function t(e){return"number"==typeof e&&0<=e&&e<=100}}().VTTRegion),(e=qi).VTTRegion.create=function(t){var n,o=new e.VTTRegion;for(n in t)o.hasOwnProperty(n)&&(o[n]=t[n]);return o},e.VTTRegion.fromJSON=function(e){return this.create(JSON.parse(e))}),Ui.exports}var Zi=(Xi||(Xi=1,Gi={WebVTT:Ii().WebVTT,VTTCue:zi().VTTCue,VTTRegion:Ki().VTTRegion}),Gi);let Qi=e({__proto__:null,default:o(Zi)},[Zi]).WebVTT,Ji=O.createContext(void 0),er=({children:e,config:t})=>{var[n,o]=O.useState(!0),[i,r]=O.useState(!1),[a,s]=O.useState(!1),[l,c]=O.useState(!1),[u,h]=O.useState(!1),[d,p]=O.useState(!1),[f,m]=O.useState(!1),[g,v]=O.useState(!1);let[y,_]=O.useState(void 0),[w,x]=O.useState(void 0),[k,S]=O.useState(void 0);var[E,T]=O.useState(null),[P,C]=O.useState([]),[A,M]=O.useState(null),[N,L]=O.useState(null),[D,R]=O.useState(null);let[I,$]=O.useState({}),[F,V]=O.useState(null);var[j,H]=O.useState(null);let[z,B]=O.useState([]),[U,Y]=O.useState(!1);var[X,q]=O.useState("");let[K,Z]=O.useState(!1);var[Q,J]=O.useState(!1),[ee,te]=O.useState({items:[],activeId:null,isShow:!1});let[ne,oe]=O.useState(null),[ie,re]=O.useState({visible:!0,text:""});var[ae,se]=O.useState(void 0),[le,ce]=O.useState(!1),[ue,he]=O.useState(!0);let[de,pe]=O.useState(!1),[fe,me]=O.useState(!1),[ge,ve]=O.useState(!1),[be,ye]=O.useState(!1),[_e,we]=O.useState(!1),[xe,ke]=O.useState(!1);var[Se,Ee]=O.useState([]),[Te,Pe]=O.useState(!1);let[Oe,Ce]=O.useState(!1),[Ae,Me]=O.useState(!1),[Ne,Le]=O.useState(!1);var[De,Re]=O.useState(!1),[Ie,$e]=O.useState(!1),[Fe,Ve]=O.useState(!0),[je,He]=O.useState(!1),[ze,Be]=O.useState(!1),[Ue,Ye]=O.useState(!1);let[We,Ge]=O.useState(!1);var[Xe,qe]=O.useState(!1),[Ke,Ze]=O.useState(!1),[Qe,Je]=O.useState(!1),[et,tt]=O.useState(0),[nt,,]=O.useState({[G.MAP.key]:!1,[G.NAVIGATION_ARROWS.key]:!1,[G.HOTSPOT.key]:!1,[G.FULLSCREEN.key]:!1,[G.SIMULATION_VR.key]:!1,[G.SOUND.key]:!1});let[ot,it]=O.useState({});var rt=O.useMemo(()=>w&&ot[w]||null,[ot,w]),at=O.useMemo(()=>k&&ot[k]||null,[ot,k]),st=O.useMemo(()=>({[G.FULLSCREEN.key]:ge,[G.HOTSPOT.key]:fe,[G.NAVIGATION_ARROWS.key]:de,[G.SIMULATION_VR.key]:be,[G.SOUND.key]:U,[G.SEARCH.key]:_e,[G.SHARE.key]:xe}),[ge,fe,de,be,_e,U,xe]),lt=O.useCallback(()=>{var e;return!(!We&&!K)||!Ne&&(e=!!y,!Ae||e)&&(_e||e)},[]),ct=O.useCallback(()=>{var e=[];return Ae&&null!=ne&&ne.subtitleVisible&&e.push(W.SUB_TITLE.key),Ne||Oe||(Ae?e.push(W.PLAY_LIST.key):(z&&z.length&&e.push(W.FLOOR_PLAN.key),F&&(e=>{let t={};return e.forEach(e=>{e.category?t[e.category.code]||(t[e.category.code]=e.category):t.Other||(t.Other={name:"Other",code:mt(),orderIndex:99})}),Object.values(t)})(F.scenes).filter(e=>"other"!==e.name.toLowerCase()).length&&e.push(W.SCENES.key))),e},[F,Ae,ne,Ne,Oe,z]),ue=(t={isMobileDevice:t.mobile,autoPlaying:Ae,labelVisible:fe,isFullscreen:ge,showShareLink:xe,showFloorplan:ue,showGuide:le,isGyroscope:be,navigationArrowsVisible:de,searchAndDiscover:_e,showAGTPlaylist:We,labelInvisibleArray:Se,pinAction:nt,bottomSheetMiddleHeight:et,playingHotspotSound:Ne,playingTempScenario:Oe,showSlideIn:De,showPlayBar:je,showPlayList:ze,isViewPoiDetail:Qe,showTourScenarios:Ue,muted:Fe,mutedVideo:Ie,showScenarioList:Xe,showSplashScreen:Te,showSceneCategories:Ke,setAutoPlaying:Me,setLabelVisible:me,setIsFullscreen:ve,setShowShareLink:ke,setShowFloorplan:he,setShowGuide:ce,setIsGyroscope:ye,setNavigationArrowsVisible:pe,setSearchAndDiscover:we,setLabelInvisibleArray:Ee,setBottomSheetMiddleHeight:tt,setPlayingHotspotSound:Le,setPlayingTempScenario:Ce,setShowSlideIn:Re,setShowPlayBar:He,setShowPlayList:Be,setIsViewPoiDetail:Je,setShowTourScenarios:Ye,setMuted:Ve,setMutedVideo:$e,setShowScenarioList:qe,setShowSplashScreen:Pe,setShowSceneCategories:Ze},{tourSoundPlaying:U,activeFuncButton:X,showChatbox:K,fullscreenMinimap:Q,poiCodeNearestToCenter:ae,scenarioSubtitle:ie,scenarioCurrentStep:ne,gallery:ee,setGallery:te,setActiveFuncButton:q,setShowChatbox:Z,setFullscreenMinimap:J,setPoiCodeNearestToCenter:se,setScenarioCurrentStep:oe,setScenarioSubtitleText:e=>{re(Object.assign(Object.assign({},ie),{text:e||""}))},setScenarioSubtitleVisible:e=>{re(Object.assign(Object.assign({},ie),{visible:e}))},setTourSoundPlaying:Y}),le={canInitVisualizer:a,loading:n,loadingScene:i,soundReady:l,tourReady:u,setTourReady:h,activeFloorplan:E,activePoi:N,focusingOnVisualizer:f,activePoiCode:y,activePoiCoords:D,plugin:I,activeScenarioCode:w,activeScene:A,tourData:F,floorplans:z,backgroundSoundPlaying:d,metadata:j,previewScenarioCode:k,scenarioConfigCodes:P,setCanInitVisualizer:s,setFocusingOnVisualizer:m,setPreviewScenarioCode:S,setScenarioConfigCodes:C,setActiveFloorplan:T,setActivePoi:L,setActivePoiCode:_,setActivePoiCoords:R,setActiveScenarioCode:x,setActiveScene:M,setTourData:V,setFloorplans:B,setActiveTourPlugin:e=>{var{pluginName:e,state:t}=e;e&&(e=Object.assign(Object.assign({},I),{[e]:t}),$(e))},setViewRotating:v,setBackgroundSoundPlaying:p,setLoading:o,setLoadingScene:r,setSoundReady:c,setMetadata:H,viewRotating:g};return b.jsx(Ji.Provider,{value:Object.assign(Object.assign(Object.assign(Object.assign({},t),ue),le),{getShowSlideIn:lt,toggleShowAGTPlaylist:(e="")=>{S(e),Ge(!!e)},previewScenario:at,activeScenario:rt,visibleAction:st,scenarios:ot,setScenarios:it,getGroupTopBtn:ct}),children:e})},tr=()=>{var e=C.useContext(Ji);if(void 0===e)throw new Error("useStore must be used within a StoreProvider");return e},nr=2e3,or=(e,t,n,o,i=!1)=>{if(!n)return!1;if(1===n.length)switch(n[0]){case te.ITEM_INFO:var{itemInfo:r,itemInfoCode:a=""}=e;return!(!r||-1===(o||[]).indexOf(r.type)||!i&&t.includes(a))&&(t.push(a),!0);case te.PROMOTION:return!(!(r=e.promotionCode)||t.includes(r))&&(t.push(r),!0);case te.INFO:case te.TEXTURE:return e.type===n[0];default:return!1}else if(1<n.length)return n.some(t=>t===e.type)},ir=e=>{let{tour:t,poiTypes:n,itemTypes:o,showDetail:i=!1}=e,r=[];var a=e.scenes||t.scenes;a.sort((e,t)=>e.orderIndex-t.orderIndex);let s=[],l=[];return a.forEach(t=>{var a,c=[],u=(c.push({type:ue.SLEEP,sleepTime:2e3}),e.pois?e.pois.filter(e=>e.sceneCode===t.code):t.pois);for(let t=0;t<u.length;t++){var h,d,p,f=u[t];or(f,r,n,o,!!e.pois)&&(({ath:p,atv:h}=f.getLookAtPosition()),d=(null==e?void 0:e.sleepTime)||nr,c.push({poiCode:f.type===te.ITEM_INFO?f.code:void 0,type:ue.LOOK_AT,position:{ath:p,atv:h},speed:60,showDetail:i,viewHotspotDuration:i?1e3:void 0,showDetailDuration:Math.max(d-1e3,nr)}),(p=ar(n,f))&&c.push(p),i||c.push({type:ue.SLEEP,sleepTime:nr}),s.push(f))}c.length&&(c.unshift({type:ue.MOVE_SCENE,toScene:t.props}),a=c.reduce((e,t,n)=>(e.push({orderIndex:n,actions:[t]}),e),[]),a={orderIndex:l.length,children:a},l.push(a))}),l.sort((e,t)=>e.orderIndex-t.orderIndex),{steps:l,pois:s}},rr=(e,t)=>{var n,o=[];for(let i=0;i<t.length;i++){let r=t[i];o.some(e=>e.code===r.sceneCode)||(n=e.scenes.find(e=>e.code===r.sceneCode))&&o.push(n)}return o},ar=(e,t)=>{let n,o,i;switch(t.type){case te.ITEM_INFO:case te.POLYGON:e.includes(te.ITEM_INFO)&&null!=(n=t.itemInfo)&&n.sound&&(i=t.itemInfo.sound);break;case te.PROMOTION:e.includes(te.PROMOTION)&&null!=(o=t.promotion)&&o.sound&&(i=t.promotion.sound)}return i?{type:ue.PLAY_SOUND,volume:50,sound:i,sleepTime:0}:null};function sr(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,r=e.bodyClassName,a=e.className;e=e.style;return O.createElement("div",{className:U("".concat(n,"-content"),a),style:e},O.createElement("div",{className:U("".concat(n,"-inner"),r),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}function lr(){return(lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)!{}.hasOwnProperty.call(o,n)||(e[n]=o[n])}return e}).apply(null,arguments)}function cr(e){return(cr="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})(e)}function ur(e){return e=function(e,t){if("object"!=cr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=cr(n=n.call(e,t)))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string"),"symbol"==cr(e)?e:e+""}function hr(e,t,n){return(t=ur(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dr(e,t){var n,o=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)),o}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach(function(t){hr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fr(e,t){if(null==e)return{};var n,o=function(e,t){if(null==e)return{};var n,o={};for(n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}function mr(e){if(Array.isArray(e))return e}function gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function vr(e,t){var n;if(e)return"string"==typeof e?gr(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(e,t):void 0}function br(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yr(e,t){return mr(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||vr(e,t)||br()}function _r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var wr={};function xr(e,t){}function kr(e,t){}function Sr(e,t,n){t||wr[n]||(e(!1,n),wr[n]=!0)}function Er(e,t){Sr(xr,e,t)}Er.preMessage=function(e){},Er.resetWarned=function(){wr={}},Er.noteOnce=function(e,t){Sr(kr,e,t)};var Tr,Pr,Or={exports:{}},Cr={};var Ar=(Pr||(Pr=1,Or.exports=function(){var e,t,n,o,i,r,a,s,l,c,u,h,d,p,f;return Tr||(Tr=1,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f=Symbol.for("react.module.reference"),Cr.ContextConsumer=a,Cr.ContextProvider=r,Cr.Element=e,Cr.ForwardRef=l,Cr.Fragment=n,Cr.Lazy=d,Cr.Memo=h,Cr.Portal=t,Cr.Profiler=i,Cr.StrictMode=o,Cr.Suspense=c,Cr.SuspenseList=u,Cr.isAsyncMode=function(){return!1},Cr.isConcurrentMode=function(){return!1},Cr.isContextConsumer=function(e){return m(e)===a},Cr.isContextProvider=function(e){return m(e)===r},Cr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Cr.isForwardRef=function(e){return m(e)===l},Cr.isFragment=function(e){return m(e)===n},Cr.isLazy=function(e){return m(e)===d},Cr.isMemo=function(e){return m(e)===h},Cr.isPortal=function(e){return m(e)===t},Cr.isProfiler=function(e){return m(e)===i},Cr.isStrictMode=function(e){return m(e)===o},Cr.isSuspense=function(e){return m(e)===c},Cr.isSuspenseList=function(e){return m(e)===u},Cr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===o||e===c||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===h||e.$$typeof===r||e.$$typeof===a||e.$$typeof===l||e.$$typeof===f||void 0!==e.getModuleId)},Cr.typeOf=m),Cr;function m(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case i:case o:case c:case u:return p;default:switch(p=p&&p.$$typeof){case s:case a:case l:case d:case h:case r:return p;default:return f}}case t:return f}}}}()),Or.exports);function Mr(e,t,n){var o=O.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}var Nr=Symbol.for("react.element"),Lr=Symbol.for("react.transitional.element"),Dr=Symbol.for("react.fragment");function Rr(e){return e&&"object"===cr(e)&&(e.$$typeof===Nr||e.$$typeof===Lr)&&e.type===Dr}var Ir=Number(O.version.split(".")[0]),$r=function(e,t){"function"==typeof e?e(t):"object"===cr(e)&&e&&"current"in e&&(e.current=t)},Fr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach(function(t){$r(t,e)})}},Vr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mr(function(){return Fr.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},jr=function(e){var t,n;return!(!e||!(Hr(e)&&19<=Ir||("function"!=typeof(n=(Ar.isMemo(e)?e.type:e).type)||null!=(t=n.prototype)&&t.render||n.$$typeof===Ar.ForwardRef)&&("function"!=typeof e||null!=(t=e.prototype)&&t.render||e.$$typeof===Ar.ForwardRef)))};function Hr(e){return O.isValidElement(e)&&!Rr(e)}var zr=function(e){return e&&Hr(e)?(e.props.propertyIsEnumerable("ref")?e.props:e).ref:null},Br=O.createContext(null);function Ur(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Yr(e){return function(e){if(Array.isArray(e))return gr(e)}(e)||Ur(e)||vr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Wr=_r()?O.useLayoutEffect:O.useEffect,Gr=function(e,t){var n=O.useRef(!0);Wr(function(){return e(n.current)},t),Wr(function(){return n.current=!1,function(){n.current=!0}},[])},Xr=function(e,t){Gr(function(t){if(!t)return e()},t)},qr=[];var Kr="data-rc-order",Zr="data-rc-priority",Qr=new Map;function Jr(){var e=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function ea(e){return e.attachTo||document.querySelector("head")||document.body}function ta(e){return Array.from((Qr.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function na(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!_r())return null;var n=t.csp,o=t.prepend,i=void 0===(r=t.priority)?0:r,r=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),a="prependQueue"===r,s=document.createElement("style");n=(r=(s.setAttribute(Kr,r),a&&i&&s.setAttribute(Zr,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e,ea(t))).firstChild;if(o){if(a&&(e=(t.styles||ta(r)).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(Kr))&&Number(e.getAttribute(Zr)||0)<=i})).length)return r.insertBefore(s,e[e.length-1].nextSibling),s;r.insertBefore(s,n)}else r.appendChild(s);return s}function oa(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=ea(t);return(t.styles||ta(n)).find(function(n){return n.getAttribute(Jr(t))===e})}function ia(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};(e=oa(e,t))&&ea(t).removeChild(e)}function ra(e,t){var n,o=ea(n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}),i=ta(o);(function(e,t){var n=Qr.get(e);n&&function(e,t){if(e){if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}}return!1}(document,n)||(t=(n=na("",t)).parentNode,Qr.set(e,t),e.removeChild(n))})(o,n=pr(pr({},n),{},{styles:i})),i=oa(t,n);return i?(null!=(o=n.csp)&&o.nonce&&i.nonce!==(null==(o=n.csp)?void 0:o.nonce)&&(i.nonce=null==(o=n.csp)?void 0:o.nonce),i.innerHTML!==e&&(i.innerHTML=e),i):((o=na(e,n)).setAttribute(Jr(n),t),o)}function aa(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t,n,o="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),i=document.createElement("div");if((i.id=o,a=i.style).position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll",e){var r=getComputedStyle(e),a=(a.scrollbarColor=r.scrollbarColor,a.scrollbarWidth=r.scrollbarWidth,getComputedStyle(e,"::-webkit-scrollbar")),s=(r=parseInt(a.width,10),parseInt(a.height,10));try{var l=r?"width: ".concat(a.width,";"):"",c=s?"height: ".concat(a.height,";"):"";ra("\n#".concat(o,"::-webkit-scrollbar {\n").concat(l,"\n").concat(c,"\n}"),o)}catch(e){console.error(e),t=r,n=s}}return document.body.appendChild(i),a=e&&t&&!isNaN(t)?t:i.offsetWidth-i.clientWidth,l=e&&n&&!isNaN(n)?n:i.offsetHeight-i.clientHeight,document.body.removeChild(i),ia(o),{width:a,height:l}}(e):{width:0,height:0}}var sa="rc-util-locker-".concat(Date.now()),la=0;function ca(e){var t=!!e,n=yr(O.useState(function(){return la+=1,"".concat(sa,"_").concat(la)}),1)[0];Gr(function(){var e,o;return t?(e=aa(document.body).width,o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,ra("\nhtml body {\n overflow-y: hidden;\n ".concat(o?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)):ia(n),function(){ia(n)}},[t,n])}var ua=function(e){return!1!==e&&(_r()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},ha=O.forwardRef(function(e,t){var n=e.open,o=e.autoLock,i=e.getContainer,r=void 0===(a=e.autoDestroy)||a,a=e.children,s=(e=yr(O.useState(n),2))[0],l=e[1];e=s||n;O.useEffect(function(){(r||n)&&l(n)},[n,r]);var c=(s=yr(O.useState(function(){return ua(i)}),2))[0],u=s[1];O.useEffect(function(){var e=ua(i);u(null!=e?e:null)});s=yr(function(e){var t=yr(O.useState(function(){return _r()?document.createElement("div"):null}),1)[0],n=O.useRef(!1),o=O.useContext(Br),i=(a=yr(O.useState(qr),2))[0],r=a[1],a=o||(n.current?void 0:function(e){r(function(t){return[e].concat(Yr(t))})});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function l(){var e;null!=(e=t.parentElement)&&e.removeChild(t),n.current=!1}return Gr(function(){return e?o?o(s):s():l(),l},[e]),Gr(function(){i.length&&(i.forEach(function(e){return e()}),r(qr))},[i]),[t,a]}(e&&!c),2);var h=s[0],d=(s=s[1],null!=c?c:h);ca(o&&n&&_r()&&(d===h||d===document.body)),o=null,a&&jr(a)&&t&&(o=a.ref),h=Vr(o,t);return e&&_r()&&void 0!==c?(o=!1===d||!1,e=t?O.cloneElement(a,{ref:h}):a,O.createElement(Br.Provider,{value:s},o?e:T.createPortal(e,d))):null});function da(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=[];return C.Children.forEach(e,function(e){null==e&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(da(e)):Rr(e)&&e.props?n=n.concat(da(e.props.children,t)):n.push(e))}),n}function pa(e){return e instanceof HTMLElement||e instanceof SVGElement}function fa(e){var t=function(e){return e&&"object"===cr(e)&&pa(e.nativeElement)?e.nativeElement:pa(e)?e:null}(e);return t||(e instanceof C.Component?null==(t=P.findDOMNode)?void 0:t.call(P,e):null)}var ma=O.createContext(null);var ga=(()=>{return"undefined"!=typeof Map?Map:(Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){return e=t(this.__entries__,e),(e=this.__entries__[e])&&e[1]},e.prototype.set=function(e,n){var o=t(this.__entries__,e);~o?this.__entries__[o][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__;~(e=t(n,e))&&n.splice(e,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var i=o[n];e.call(t,i[1],i[0])}},e);function e(){this.__entries__=[]}function t(e,t){var n=-1;return e.some(function(e,o){return e[0]===t&&(n=o,!0)}),n}})(),va="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ba="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ya="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ba):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var _a=["top","right","bottom","left","width","height","size","weight"],wa="undefined"!=typeof MutationObserver,xa=(()=>{function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,i=0;function r(){n&&(n=!1,e()),o&&s()}function a(){ya(r)}function s(){var e=Date.now();if(n){if(e-i<2)return;o=!0}else o=!(n=!0),setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_;~(e=t.indexOf(e))&&t.splice(e,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),0<e.length},e.prototype.connect_=function(){va&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),wa?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){va&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=void 0===(e=e.propertyName)?"":e;_a.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),ka=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var i=o[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Sa=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ba},Ea=Na(0,0,0,0);function Ta(e){return parseFloat(e)||0}function Pa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+Ta(e["border-"+n+"-width"])},0)}function Oa(e){return Na(0,0,(e=e.getBBox()).width,e.height)}function Ca(e){var t,n,o,i,r,a,s=e.clientWidth,l=e.clientHeight;return s||l?(n=(t=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var i=o[n],r=e["padding-"+i];t[i]=Ta(r)}return t}(a=Sa(e).getComputedStyle(e))).left+t.right,o=t.top+t.bottom,i=Ta(a.width),r=Ta(a.height),"border-box"===a.boxSizing&&(Math.round(i+n)!==s&&(i-=Pa(a,"left","right")+n),Math.round(r+o)!==l)&&(r-=Pa(a,"top","bottom")+o),function(e){return e===Sa(e).document.documentElement}(e)||(a=Math.round(i+n)-s,e=Math.round(r+o)-l,1!==Math.abs(a)&&(i-=a),1!==Math.abs(e)&&(r-=e)),Na(t.left,t.top,i,r)):Ea}var Aa="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Sa(e).SVGGraphicsElement}:function(e){return e instanceof Sa(e).SVGElement&&"function"==typeof e.getBBox};function Ma(e){return va?(Aa(e)?Oa:Ca)(e):Ea}function Na(e,t,n,o){return{x:e,y:t,width:n,height:o}}var La=(()=>{function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Na(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ma(this.target);return(this.contentRect_=e).width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e})(),Da=function(e,t){t=function(e){var t=e.x,n=e.y,o=e.width,i=(e=e.height,"undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object);return i=Object.create(i.prototype),ka(i,{x:t,y:n,width:o,height:e,top:n,right:t+o,bottom:e+n,left:t}),i}(t),ka(this,{target:e,contentRect:t})},Ra=(()=>{function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ga,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Sa(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new La(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Sa(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){var e,t;this.hasActive()&&(e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new Da(e.target,e.broadcastRect())}),this.callback_.call(e,t,e),this.clearActive())},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return 0<this.activeObservations_.length},e})(),Ia=new("undefined"!=typeof WeakMap?WeakMap:ga),$a=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=xa.getInstance();t=new Ra(t,n,this);Ia.set(this,t)},Fa=(["observe","unobserve","disconnect"].forEach(function(e){$a.prototype[e]=function(){var t;return(t=Ia.get(this))[e].apply(t,arguments)}}),void 0!==ba.ResizeObserver?ba.ResizeObserver:$a),Va=new Map;var ja=new Fa(function(e){e.forEach(function(e){var t=e.target;null!=(e=Va.get(t))&&e.forEach(function(e){return e(t)})})});function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function za(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ur(o.key),o)}}function Ba(e,t,n){return t&&za(e.prototype,t),n&&za(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ua(e,t){return(Ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ya(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ua(e,t)}function Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ga(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ga=function(){return!!e})()}function Xa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qa(e){var t=Ga();return function(){var n,o=Wa(e);return function(e,t){if(t&&("object"==cr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xa(e)}(this,t?(n=Wa(this).constructor,Reflect.construct(o,arguments,n)):o.apply(this,arguments))}}var Ka=(()=>{Ya(t,O.Component);var e=qa(t);function t(){return Ha(this,t),e.apply(this,arguments)}return Ba(t,[{key:"render",value:function(){return this.props.children}}]),t})();var Za=O.forwardRef(function(e,t){function n(){var e;return fa(a.current)||(a.current&&"object"===cr(a.current)?fa(null==(e=a.current)?void 0:e.nativeElement):null)||fa(s.current)}var o,i=e.children,r=e.disabled,a=O.useRef(null),s=O.useRef(null),l=O.useContext(ma),c=(i=(o="function"==typeof i)?i(a):i,O.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1})),u=(o=!o&&O.isValidElement(i)&&jr(i))?zr(i):null,h=(u=Vr(u,a),O.useImperativeHandle(t,n),O.useRef(e)),d=(h.current=e,O.useCallback(function(e){var t,n=(o=h.current).onResize,o=o.data,i=(r=e.getBoundingClientRect()).width,r=r.height,a=e.offsetWidth,s=e.offsetHeight,u=Math.floor(i),d=Math.floor(r);c.current.width===u&&c.current.height===d&&c.current.offsetWidth===a&&c.current.offsetHeight===s||(c.current=u={width:u,height:d,offsetWidth:a,offsetHeight:s},d=a===Math.round(i)?i:a,i=s===Math.round(r)?r:s,t=pr(pr({},u),{},{offsetWidth:d,offsetHeight:i}),null!=l&&l(t,e,o),n&&Promise.resolve().then(function(){n(t,e)}))},[]));return O.useEffect(function(){var e=n();return e&&!r&&function(e,t){Va.has(e)||(Va.set(e,new Set),ja.observe(e)),Va.get(e).add(t)}(e,d),function(){return function(e,t){Va.has(e)&&(Va.get(e).delete(t),Va.get(e).size||(ja.unobserve(e),Va.delete(e)))}(e,d)}},[a.current,r]),O.createElement(Ka,{ref:s},o?O.cloneElement(i,{ref:u}):i)});var Qa=O.forwardRef(function(e,t){var n=e.children;return("function"==typeof n?[n]:da(n)).map(function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return O.createElement(Za,lr({},e,{key:i,ref:0===o?t:void 0}),n)})});function Ja(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}function es(e){return function(e){return Ja(e)instanceof ShadowRoot}(e)?Ja(e):null}function ts(e){var t=O.useRef();return t.current=e,O.useCallback(function(){for(var e,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return null==(e=t.current)?void 0:e.call.apply(e,[t].concat(o))},[])}Qa.Collection=function(e){var t=e.children,n=e.onBatchResize,o=O.useRef(0),i=O.useRef([]),r=O.useContext(ma);return e=O.useCallback(function(e,t,a){o.current+=1;var s=o.current;i.current.push({size:e,element:t,data:a}),Promise.resolve().then(function(){s===o.current&&(null!=n&&n(i.current),i.current=[])}),null!=r&&r(e,t,a)},[n,r]),O.createElement(ma.Provider,{value:e},t)};var ns=0,os=pr({},A).useId,is=os?function(e){var t=os();return e||t}:function(e){var t=yr(O.useState("ssr-id"),2),n=t[0],o=t[1];return O.useEffect(function(){var e=ns;ns+=1,o("rc_unique_".concat(e))},[]),e||n},rs=function(){var e;return"undefined"!=typeof navigator&&"undefined"!=typeof window&&(/(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|android|ipad|playbook|silk/i.test(e=navigator.userAgent||navigator.vendor||window.opera)||/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(null==e?void 0:e.substr(0,4)))},as=O.createContext({}),ss=(()=>{Ya(t,O.Component);var e=qa(t);function t(){return Ha(this,t),e.apply(this,arguments)}return Ba(t,[{key:"render",value:function(){return this.props.children}}]),t})();function ls(e){var t=O.useRef(!1),n=(e=yr(O.useState(e),2))[0],o=e[1];return O.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[n,function(e,n){n&&t.current||o(e)}]}function cs(e){return void 0!==e}function us(e,t){var n=(t=t||{}).defaultValue,o=t.value,i=t.onChange,r=(t=t.postState,(l=yr(ls(function(){return cs(o)?o:cs(n)?"function"==typeof n?n():n:"function"==typeof e?e():e}),2))[0]),a=l[1],s=void 0!==o?o:r,l=t?t(s):s,c=ts(i),u=(t=yr(ls([s]),2))[0],h=t[1];return Xr(function(){var e=u[0];r!==e&&c(r,e)},[u]),Xr(function(){cs(o)||a(o)},[o]),[l,ts(function(e,t){a(e,t),h([s],t)})]}var hs="none",ds="appear",ps="enter",fs="leave",ms="none",gs="prepare",vs="start",bs="active",ys="end",_s="prepared";function ws(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var xs,ks=function(e,t){var n={animationend:ws("Animation","AnimationEnd"),transitionend:ws("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(_r(),"undefined"!=typeof window?window:{}),Ss={},Es=(_r()&&(xs=document.createElement("div"),Ss=xs.style),{});function Ts(e){if(Es[e])return Es[e];var t=ks[e];if(t)for(var n=Object.keys(t),o=n.length,i=0;i<o;i+=1){var r=n[i];if(Object.prototype.hasOwnProperty.call(t,r)&&r in Ss)return Es[e]=t[r],Es[e]}return""}var Ps=Ts("animationend"),Os=Ts("transitionend"),Cs=!(!Ps||!Os),As=Ps||"animationend",Ms=Os||"transitionend";function Ns(e,t){return e?"object"===cr(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}var Ls=_r()?O.useLayoutEffect:O.useEffect,Ds=function(e){return+setTimeout(e,16)},Rs=function(e){return clearTimeout(e)},Is=("undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ds=function(e){return window.requestAnimationFrame(e)},Rs=function(e){return window.cancelAnimationFrame(e)}),0),$s=new Map;function Fs(e){$s.delete(e)}var Vs=function(e){var t=Is+=1;return function n(o){var i;0===o?(Fs(t),e()):(i=Ds(function(){n(o-1)}),$s.set(t,i))}(1<arguments.length&&void 0!==arguments[1]?arguments[1]:1),t},js=(Vs.cancel=function(e){var t=$s.get(e);return Fs(e),Rs(t)},function(){var e=O.useRef(null);function t(){Vs.cancel(e.current)}return O.useEffect(function(){return function(){t()}},[]),[function n(o){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2,r=(t(),Vs(function(){i<=1?o({isCanceled:function(){return r!==e.current}}):n(o,i-1)}));e.current=r},t]}),Hs=[gs,vs,bs,ys],zs=[gs,_s],Bs=!1;function Us(e){return e===bs||e===ys}function Ys(e,t,n,o){var i=void 0===($=o.motionEnter)||$,r=void 0===($=o.motionAppear)||$,a=void 0===($=o.motionLeave)||$,s=o.motionDeadline,l=o.motionLeaveImmediately,c=o.onAppearPrepare,u=o.onEnterPrepare,h=o.onLeavePrepare,d=o.onAppearStart,p=o.onEnterStart,f=o.onLeaveStart,m=o.onAppearActive,g=o.onEnterActive,v=o.onLeaveActive,b=o.onAppearEnd,y=o.onEnterEnd,_=o.onLeaveEnd,w=o.onVisibleChanged,x=($=yr(ls(),2))[0],k=$[1],S=(o=yr(function(e){var t=yr(O.useReducer(function(e){return e+1},0),2)[1],n=O.useRef(e);return[ts(function(){return n.current}),ts(function(e){n.current="function"==typeof e?e(n.current):e,t()})]}(hs),2),o[0]),E=o[1],T=(o=($=yr(ls(null),2))[0],$[1]),P=S(),C=O.useRef(!1),A=O.useRef(null),M=O.useRef(!1);function N(){E(hs),T(null,!0)}function L(e){switch(e){case ds:return hr(hr(hr({},gs,c),vs,d),bs,m);case ps:return hr(hr(hr({},gs,u),vs,p),bs,g);case fs:return hr(hr(hr({},gs,h),vs,f),bs,v);default:return{}}}var D=ts(function(e){var t,o,i,r=S();r!==hs&&(t=n(),!e||e.deadline||e.target===t)&&(o=M.current,r===ds&&o?i=null==b?void 0:b(t,e):r===ps&&o?i=null==y?void 0:y(t,e):r===fs&&o&&(i=null==_?void 0:_(t,e)),o&&!1!==i)&&N()}),R=yr(function(e){var t=O.useRef();function n(t){t&&(t.removeEventListener(Ms,e),t.removeEventListener(As,e))}return O.useEffect(function(){return function(){n(t.current)}},[]),[function(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Ms,e),o.addEventListener(As,e),t.current=o)},n]}(D),1)[0],I=O.useMemo(function(){return L(P)},[P]),$=yr(function(e,t,n){var o,i=(o=yr(ls(ms),2))[0],r=o[1],a=(o=yr(js(),2))[0],s=o[1],l=t?zs:Hs;return Ls(function(){var e,t,o;i!==ms&&i!==ys&&(e=l.indexOf(i),t=l[e+1],(o=n(i))===Bs?r(t,!0):t&&a(function(e){function n(){e.isCanceled()||r(t,!0)}!0===o?n():Promise.resolve(o).then(n)}))},[e,i]),O.useEffect(function(){return function(){s()}},[]),[function(){r(gs,!0)},i]}(P,!e,function(e){return e===gs?(e=I[gs])?e(n()):Bs:(V in I&&T((null==(e=I[V])?void 0:e.call(I,n(),null))||null),V===bs&&P!==hs&&(R(n()),0<s)&&(clearTimeout(A.current),A.current=setTimeout(function(){D({deadline:!0})},s)),V===_s&&N(),true)}),2),F=$[0],V=$[1],j=($=Us(V),M.current=$,O.useRef(null)),H=(Ls(function(){var n,o;C.current&&j.current===t||(k(t),o=C.current,C.current=!0,!o&&t&&r&&(n=ds),o&&t&&i&&(n=ps),o=L(n=o&&!t&&a||!o&&l&&!t&&a?fs:n),n&&(e||o[gs])?(E(n),F()):E(hs),j.current=t)},[t]),O.useEffect(function(){(P===ds&&!r||P===ps&&!i||P===fs&&!a)&&E(hs)},[r,i,a]),O.useEffect(function(){return function(){C.current=!1,clearTimeout(A.current)}},[]),O.useRef(!1));O.useEffect(function(){x&&(H.current=!0),void 0!==x&&P===hs&&((H.current||x)&&null!=w&&w(x),H.current=!0)},[x,P]),$=o;return I[gs]&&V===vs&&($=pr({transition:"none"},$)),[P,V,$,null!=x?x:t]}var Ws=function(e){var t=e;return"object"===cr(e)&&(t=e.transitionSupport),e=O.forwardRef(function(e,n){var o,i=void 0===(i=e.visible)||i,r=void 0===(r=e.removeOnLeave)||r,a=e.forceRender,s=e.children,l=e.motionName,c=e.leavedClassName,u=e.eventProps,h=O.useContext(as).motion,d=(h=!(!e.motionName||!t||!1===h),O.useRef()),p=O.useRef(),f=(e=(h=yr(Ys(h,i,function(){try{return d.current instanceof HTMLElement?d.current:fa(p.current)}catch(e){return null}},e),4))[0],h[1]),m=h[2],g=(h=h[3],O.useRef(h)),v=(h&&(g.current=!0),O.useCallback(function(e){d.current=e,$r(n,e)},[n]));u=pr(pr({},u),{},{visible:i});return h=s?e===hs?h?s(pr({},u),v):!r&&g.current&&c?s(pr(pr({},u),{},{className:c}),v):a||!r&&!c?s(pr(pr({},u),{},{style:{display:"none"}}),v):null:(f===gs?o="prepare":Us(f)?o="active":f===vs&&(o="start"),i=Ns(l,"".concat(e,"-").concat(o)),s(pr(pr({},u),{},{className:U(Ns(l,e),hr(hr({},i,i&&o),l,"string"==typeof l)),style:m}),v)):null,O.isValidElement(h)&&jr(h)&&(zr(h)||(h=O.cloneElement(h,{ref:v}))),O.createElement(ss,{ref:p},h)}),e.displayName="CSSMotion",e}(Cs),Gs="add",Xs="keep",qs="remove",Ks="removed";function Zs(e){return pr(pr({},e=e&&"object"===cr(e)&&"key"in e?e:{key:e}),{},{key:String(e.key)})}function Qs(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).map(Zs)}function Js(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,i=t.length,r=(e=Qs(e),Qs(t)),a=(e.forEach(function(e){for(var t=!1,a=o;a<i;a+=1){var s=r[a];if(s.key===e.key){o<a&&(n=n.concat(r.slice(o,a).map(function(e){return pr(pr({},e),{},{status:Gs})})),o=a),n.push(pr(pr({},s),{},{status:Xs})),o+=1,t=!0;break}}t||n.push(pr(pr({},e),{},{status:qs}))}),o<i&&(n=n.concat(r.slice(o).map(function(e){return pr(pr({},e),{},{status:Gs})}))),{});return n.forEach(function(e){e=e.key,a[e]=(a[e]||0)+1}),Object.keys(a).filter(function(e){return 1<a[e]}).forEach(function(e){(n=n.filter(function(t){return t.key!==e||t.status!==qs})).forEach(function(t){t.key===e&&(t.status=Xs)})}),n}var el=["component","children","onVisibleChanged","onAllRemoved"],tl=["status"],nl=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ol(e){var t,n,o,i,r=e.prefixCls,a=e.align,s=e.arrowPos,l=(e=e.arrow||{}).className,c=(e=e.content,void 0===(c=s.x)?0:c),u=(s=void 0===(s=s.y)?0:s,O.useRef());return a&&a.points?(!(t={position:"absolute"})!==a.autoArrow&&(o=a.points[0],a=a.points[1],n=o[0],o=o[1],i=a[0],a=a[1],n!==i&&["t","b"].includes(n)?"t"===n?t.top=0:t.bottom=0:t.top=s,o!==a&&["l","r"].includes(o)?"l"===o?t.left=0:t.right=0:t.left=c),O.createElement("div",{ref:u,className:U("".concat(r,"-arrow"),l),style:t},e)):null}function il(e){var t=e.prefixCls,n=e.zIndex;return e.mask?O.createElement(Ws,lr({},e.motion,{motionAppear:!0,visible:e.open,removeOnLeave:!0}),function(e){return e=e.className,O.createElement("div",{style:{zIndex:n},className:U("".concat(t,"-mask"),e)})}):null}!function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ws,n=(()=>{Ya(n,O.Component);var e=qa(n);function n(){var t;Ha(this,n);for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return hr(Xa(t=e.call.apply(e,[this].concat(i))),"state",{keyEntities:[]}),hr(Xa(t),"removeKey",function(e){t.setState(function(t){return{keyEntities:t.keyEntities.map(function(t){return t.key!==e?t:pr(pr({},t),{},{status:Ks})})}},function(){0===t.state.keyEntities.filter(function(e){return e.status!==Ks}).length&&t.props.onAllRemoved&&t.props.onAllRemoved()})}),t}return Ba(n,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=(s=this.props).component,i=s.children,r=s.onVisibleChanged,a=fr(s,el),s=o||O.Fragment,l={};return nl.forEach(function(e){l[e]=a[e],delete a[e]}),delete a.keys,O.createElement(s,a,n.map(function(n,o){var a=n.status,s=fr(n,tl);return O.createElement(t,lr({},l,{key:s.key,visible:a===Gs||a===Xs,eventProps:s,onVisibleChanged:function(t){null!=r&&r(t,{key:s.key}),t||e.removeKey(s.key)}}),function(e,t){return i(pr(pr({},e),{},{index:o}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){e=e.keys;var n=t.keyEntities;t=Qs(e);return{keyEntities:Js(n,t).filter(function(e){var t=n.find(function(t){return t=t.key,e.key===t});return!t||t.status!==Ks||e.status!==qs})}}}]),n})();hr(n,"defaultProps",{component:"div"})}(Cs);var rl=O.memo(function(e){return e.children},function(e,t){return t.cache}),al=O.forwardRef(function(e,t){var n,o,i,r,a=e.popup,s=e.className,l=e.prefixCls,c=e.style,u=e.target,h=e.onVisibleChanged,d=e.open,p=e.keepDom,f=e.fresh,m=e.onClick,g=e.mask,v=e.arrow,b=e.arrowPos,y=e.align,_=e.motion,w=e.maskMotion,x=e.forceRender,k=e.getPopupContainer,S=e.autoDestroy,E=e.portal,T=e.zIndex,P=e.onMouseEnter,C=e.onMouseLeave,A=e.onPointerEnter,M=e.onPointerDownCapture,N=e.ready,L=e.offsetX,D=e.offsetY,R=e.offsetR,I=e.offsetB,$=e.onAlign,F=e.onPrepare,V=e.stretch,j=e.targetWidth,H=(e=e.targetHeight,"function"==typeof a?a():a),z=(a=d||p,0<(null==k?void 0:k.length)),B=(p=yr(O.useState(!k||!z),2))[0],Y=p[1];return Gr(function(){!B&&z&&u&&Y(!0)},[B,z,u]),B?(n={left:"-1000vw",top:"-1000vh",right:p="auto",bottom:p},!N&&d||(N=y.points,o=(i=y.dynamicInset||(null==(i=y._experimental)?void 0:i.dynamicInset))&&"r"===N[0][1],i=i&&"b"===N[0][0],o?(n.right=R,n.left=p):(n.left=L,n.right=p),i?(n.bottom=I,n.top=p):(n.top=D,n.bottom=p)),r={},V&&(V.includes("height")&&e?r.height=e:V.includes("minHeight")&&e&&(r.minHeight=e),V.includes("width")&&j?r.width=j:V.includes("minWidth")&&j&&(r.minWidth=j)),d||(r.pointerEvents="none"),O.createElement(E,{open:x||a,getContainer:k&&function(){return k(u)},autoDestroy:S},O.createElement(il,{prefixCls:l,open:d,zIndex:T,mask:g,motion:w}),O.createElement(Qa,{onResize:$,disabled:!d},function(e){return O.createElement(Ws,lr({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(l,"-hidden")},_,{onAppearPrepare:F,onEnterPrepare:F,visible:d,onVisibleChanged:function(e){var t;null!=_&&null!=(t=_.onVisibleChanged)&&t.call(_,e),h(e)}}),function(o,i){var a=o.className;o=o.style,a=U(l,a,s);return O.createElement("div",{ref:Fr(e,t,i),className:a,style:pr(pr(pr(pr({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},n),r),o),{},{boxSizing:"border-box",zIndex:T},c),onMouseEnter:P,onMouseLeave:C,onPointerEnter:A,onClick:m,onPointerDownCapture:M},v&&O.createElement(ol,{prefixCls:l,arrow:v,arrowPos:b,align:y}),O.createElement(rl,{cache:!d&&!f},H))})}))):null}),sl=O.forwardRef(function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=(e=jr(n),O.useCallback(function(e){$r(t,o?o(e):e)},[o]));i=Vr(i,zr(n));return e?O.cloneElement(n,{ref:i}):n}),ll=O.createContext(null);function cl(e){return e?Array.isArray(e)?e:[e]:[]}function ul(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return(2<arguments.length?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function hl(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function dl(e){return e.ownerDocument.defaultView}function pl(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var i=dl(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some(function(e){return o.includes(e)})&&t.push(n),n=n.parentElement}return t}function fl(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function ml(e){return fl(parseFloat(e),0)}function gl(e,t){var n=pr({},e);return(t||[]).forEach(function(e){var t,o,i,r,a,s,l,c,u,h,d,p;e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement||(d=(h=dl(e).getComputedStyle(e)).overflow,u=h.overflowClipMargin,r=h.borderTopWidth,a=h.borderBottomWidth,s=h.borderLeftWidth,h=h.borderRightWidth,t=e.getBoundingClientRect(),i=e.offsetHeight,p=e.clientHeight,o=e.offsetWidth,e=e.clientWidth,r=ml(r),a=ml(a),o=(o-e-(e=ml(s))-(s=ml(h)))*(h=fl(Math.round(t.width/o*1e3)/1e3)),i=(i-p-r-a)*(p=fl(Math.round(t.height/i*1e3)/1e3)),r*=p,a*=p,e*=h,s*=h,c=l=0,"clip"===d&&(l=(d=ml(u))*h,c=d*p),u=t.x+e-l,h=t.y+r-c,d=u+t.width+2*l-e-s-o,p=h+t.height+2*c-r-a-i,n.left=Math.max(n.left,u),n.top=Math.max(n.top,h),n.right=Math.min(n.right,d),n.bottom=Math.min(n.bottom,p))}),n}function vl(e){var t="".concat(1<arguments.length&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function bl(e,t){var n=(t=yr(t||[],2))[0];t=t[1];return[vl(e.width,n),vl(e.height,t)]}function yl(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function _l(e,t){var n=t[0];t=t[1],n="t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2;return{x:t="l"===t?e.x:"r"===t?e.x+e.width:e.x+e.width/2,y:n}}function wl(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,o){return o===t?n[e]||"c":e}).join("")}function xl(e,t,n,o,i,r,a){function s(){u(function(e){return pr(pr({},e),{},{ready:!1})})}var l=yr(O.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),c=l[0],u=l[1],h=O.useRef(0),d=O.useMemo(function(){return t?pl(t):[]},[t]),p=O.useRef({}),f=(e||(p.current={}),ts(function(){function s(e,t,n){n=2<arguments.length&&void 0!==n?n:y,e=h.x+e,t=h.y+t;var o=e+m,i=t+f;e=Math.max(e,n.left),t=Math.max(t,n.top),o=Math.min(o,n.right),i=Math.min(i,n.bottom);return Math.max(0,(o-e)*(i-t))}function l(){N=h.y+C,L=N+f,D=h.x+O,R=D+m}var c,h,f,m,g,v,b,y,_,w,x,k,S,E,T,P,O,C,A,M,N,L,D,R,I,$,F,V,j,H,z,B,U,Y,W,G,X,q,K;t&&n&&e&&(_=(S=t).ownerDocument,c=(G=dl(S)).getComputedStyle(S).position,x=S.style.left,q=S.style.top,T=S.style.right,E=S.style.bottom,k=S.style.overflow,H=pr(pr({},i[o]),r),Y=_.createElement("div"),null!=(P=S.parentElement)&&P.appendChild(Y),Y.style.left="".concat(S.offsetLeft,"px"),Y.style.top="".concat(S.offsetTop,"px"),Y.style.position=c,Y.style.height="".concat(S.offsetHeight,"px"),Y.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden",c=Array.isArray(n)?{x:n[0],y:n[1],width:0,height:0}:((P=n.getBoundingClientRect()).x=null!=(c=P.x)?c:P.left,P.y=null!=(c=P.y)?c:P.top,{x:P.x,y:P.y,width:P.width,height:P.height}),h=S.getBoundingClientRect(),G=(P=G.getComputedStyle(S)).height,P=P.width,h.x=null!=(b=h.x)?b:h.left,h.y=null!=(b=h.y)?b:h.top,_=(b=_.documentElement).clientWidth,f=h.height,m=h.width,g=c.height,v=c.width,_={left:0,top:0,right:_,bottom:b.clientHeight},X="visibleFirst",X=(K="scroll"!==(K=H.htmlRegion)&&K!==X?"visible":K)===X,w=gl({left:-(w=b.scrollLeft),top:-(z=b.scrollTop),right:b.scrollWidth-w,bottom:b.scrollHeight-z},d),b=gl(_,d),y="visible"===K?b:w,z=X?b:y,S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0",_=S.getBoundingClientRect(),S.style.left=x,S.style.top=q,S.style.right=T,S.style.bottom=E,S.style.overflow=k,null!=(K=S.parentElement)&&K.removeChild(Y),w=fl(Math.round(m/parseFloat(P)*1e3)/1e3),x=fl(Math.round(f/parseFloat(G)*1e3)/1e3),0===w||0===x||pa(n)&&!function(e){if(e&&e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect&&((t=e.getBoundingClientRect()).width||t.height))return!0}return!1}(n)||(q=H.offset,T=H.targetOffset,k=(E=yr(bl(h,q),2))[0],S=E[1],Y=(K=yr(bl(c,T),2))[0],P=K[1],c.x-=Y,c.y-=P,q=(G=yr(H.points||[],2))[0],E=yl(G[1]),T=yl(q),K=_l(c,E),Y=_l(h,T),P=pr({},H),O=K.x-Y.x+k,C=K.y-Y.y+S,G=s(O,C),q=s(O,C,b),K=_l(c,["t","l"]),Y=_l(h,["t","l"]),U=_l(c,["b","r"]),$=_l(h,["b","r"]),W=(H=H.overflow||{}).adjustX,A=H.shiftX,M=H.shiftY,l(),H=(I=function(e){return"boolean"==typeof e?e:0<=e})(H.adjustY),B=T[0]===E[0],H&&"t"===T[0]&&(L>z.bottom||p.current.bt)&&(F=C,B?F-=f-g:F=K.y-$.y-S,V=s(O,F),j=s(O,F,b),G<V||V===G&&(!X||q<=j)?(p.current.bt=!0,C=F,S=-S,P.points=[wl(T,0),wl(E,0)]):p.current.bt=!1),H&&"b"===T[0]&&(N<z.top||p.current.tb)&&(V=C,B?V+=f-g:V=U.y-Y.y-S,j=s(O,V),F=s(O,V,b),G<j||j===G&&(!X||q<=F)?(p.current.tb=!0,C=V,S=-S,P.points=[wl(T,0),wl(E,0)]):p.current.tb=!1),H=I(W),B=T[1]===E[1],H&&"l"===T[1]&&(R>z.right||p.current.rl)&&(j=O,B?j-=m-v:j=K.x-$.x-k,F=s(j,C),V=s(j,C,b),G<F||F===G&&(!X||q<=V)?(p.current.rl=!0,O=j,k=-k,P.points=[wl(T,1),wl(E,1)]):p.current.rl=!1),H&&"r"===T[1]&&(D<z.left||p.current.lr)&&(I=O,B?I+=m-v:I=U.x-Y.x-k,W=s(I,C),K=s(I,C,b),G<W||W===G&&(!X||q<=K)?(p.current.lr=!0,O=I,k=-k,P.points=[wl(T,1),wl(E,1)]):p.current.lr=!1),l(),"number"==typeof($=!0===A?0:A)&&(D<b.left&&(O-=D-b.left-k,c.x+v<b.left+$)&&(O+=c.x-b.left+v-$),R>b.right)&&(O-=R-b.right-k,c.x>b.right-$)&&(O+=c.x-b.right+$),"number"==typeof(F=!0===M?0:M)&&(N<b.top&&(C-=N-b.top-S,c.y+g<b.top+F)&&(C+=c.y-b.top+g-F),L>b.bottom)&&(C-=L-b.bottom-S,c.y>b.bottom-F)&&(C+=c.y-b.bottom+F),j=(V=h.x+O)+m,z=(H=h.y+C)+f,U=(B=c.x)+v,W=(Y=c.y)+g,G=(Math.max(V,B)+Math.min(j,U))/2-V,X=(Math.max(H,Y)+Math.min(z,W))/2-H,null!=a&&a(t,P),q=_.right-h.x-(O+h.width),K=_.bottom-h.y-(C+h.height),1===w&&(O=Math.round(O),q=Math.round(q)),1===x&&(C=Math.round(C),K=Math.round(K)),u({ready:!0,offsetX:O/w,offsetY:C/x,offsetR:q/w,offsetB:K/x,arrowX:G/w,arrowY:X/x,scaleX:w,scaleY:x,align:P})))}));return Gr(s,[o]),Gr(function(){e||s()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){h.current+=1;var e=h.current;Promise.resolve().then(function(){h.current===e&&f()})}]}var kl=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var Sl,El=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:ha;return O.forwardRef(function(t,n){var o=void 0===(i=t.prefixCls)?"rc-trigger-popup":i,i=t.children,r=void 0===(r=t.action)?"hover":r,a=t.showAction,s=t.hideAction,l=t.popupVisible,c=t.defaultPopupVisible,u=t.onPopupVisibleChange,h=t.afterPopupVisibleChange,d=t.mouseEnterDelay,p=void 0===(f=t.mouseLeaveDelay)?.1:f,f=t.focusDelay,m=t.blurDelay,g=t.mask,v=void 0===(v=t.maskClosable)||v,b=t.getPopupContainer,y=t.forceRender,_=t.autoDestroy,w=t.destroyPopupOnHide,x=t.popup,k=t.popupClassName,S=t.popupStyle,E=t.popupPlacement,T=void 0===(P=t.builtinPlacements)?{}:P,P=t.popupAlign,C=t.zIndex,A=t.stretch,M=t.getPopupClassNameFromAlign,N=t.fresh,L=t.alignPoint,D=t.onPopupClick,R=t.onPopupAlign,I=t.arrow,$=t.popupMotion,F=t.maskMotion,V=t.popupTransitionName,j=t.popupAnimation,H=t.maskTransitionName,z=t.maskAnimation,B=t.className,Y=t.getTriggerDOMNode,W=fr(t,kl),G=(t=_||w||!1,w=(_=yr(O.useState(!1),2))[0],_[1]),X=(Gr(function(){G(rs())},[]),O.useRef({})),q=O.useContext(ll),K=(_=O.useMemo(function(){return{registerSubPopup:function(e,t){X.current[e]=t,null!=q&&q.registerSubPopup(e,t)}}},[q]),is()),Z=(ee=yr(O.useState(null),2))[0],Q=ee[1],J=O.useRef(null),ee=ts(function(e){pa(J.current=e)&&Z!==e&&Q(e),null!=q&&q.registerSubPopup(K,e)}),te=(ie=yr(O.useState(null),2))[0],ne=ie[1],oe=O.useRef(null),ie=ts(function(e){pa(e)&&te!==e&&(ne(e),oe.current=e)}),re=(null==(i=O.Children.only(i))?void 0:i.props)||{},ae={},se=ts(function(e){var t,n=te;return(null==n?void 0:n.contains(e))||(null==(t=es(n))?void 0:t.host)===e||e===n||(null==Z?void 0:Z.contains(e))||(null==(t=es(Z))?void 0:t.host)===e||e===Z||Object.values(X.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),le=($=hl(o,$,j,V),j=hl(o,F,z,H),F=(V=yr(O.useState(c||!1),2))[0],V[1]),ce=null!=l?l:F,ue=ts(function(e){void 0===l&&le(e)}),he=(Gr(function(){le(l||!1)},[l]),O.useRef(ce)),de=(he.current=ce,O.useRef([])),pe=(de.current=[],ts(function(e){var t;ue(e),(null!=(t=de.current[de.current.length-1])?t:ce)!==e&&(de.current.push(e),null!=u)&&u(e)})),fe=O.useRef(),me=function(){clearTimeout(fe.current)},ge=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;me(),0===t?pe(e):fe.current=setTimeout(function(){pe(e)},1e3*t)};O.useEffect(function(){return me},[]);var ve=(z=yr(O.useState(!1),2))[0],be=z[1];function ye(e){xe([e.clientX,e.clientY])}Gr(function(e){e&&!ce||be(!0)},[ce]);var _e=(H=yr(O.useState(null),2))[0],we=H[1],xe=(V=(c=yr(O.useState(null),2))[0],c[1]),ke=(z=(F=yr(xl(ce,Z,L&&null!==V?V:te,E,T,P,R),11))[0],H=F[1],c=F[2],R=F[3],F[4]),Se=F[5],Ee=F[6],Te=F[7],Pe=F[8],Oe=F[9],Ce=F[10],Ae=(F=yr(function(e,t,n,o){return O.useMemo(function(){var i=cl(null!=n?n:t),r=cl(null!=o?o:t);return i=new Set(i),r=new Set(r),e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),r.has("hover"))&&(r.delete("hover"),r.add("click")),[i,r]},[e,t,n,o])}(w,r,a,s),2),w=F[0],F[1]),Me=w.has("click"),Ne=Ae.has("click")||Ae.has("contextMenu"),Le=ts(function(){ve||Ce()});(function(e,t,n,o,i){Gr(function(){function r(){o(),i()}var a,s,l,c,u;if(e&&t&&n)return a=n,s=pl(t),l=pl(a),c=dl(a),(u=new Set([c].concat(Yr(s),Yr(l)))).forEach(function(e){e.addEventListener("scroll",r,{passive:!0})}),c.addEventListener("resize",r,{passive:!0}),o(),function(){u.forEach(function(e){e.removeEventListener("scroll",r),c.removeEventListener("resize",r)})}},[e,t,n])})(ce,te,Z,Le,function(){he.current&&L&&Ne&&ge(!1)}),Gr(function(){Le()},[V,E]),Gr(function(){!ce||null!=T&&T[E]||Le()},[JSON.stringify(P)]),r=O.useMemo(function(){var e=function(e,t,n,o){for(var i=n.points,r=Object.keys(e),a=0;a<r.length;a+=1){var s,l=r[a];if(ul(null==(s=e[l])?void 0:s.points,i,o))return"".concat(t,"-placement-").concat(l)}return""}(T,o,Oe,L);return U(e,null==M?void 0:M(Oe))},[Oe,M,T,o,L]);O.useImperativeHandle(n,function(){return{nativeElement:oe.current,popupElement:J.current,forceAlign:Le}});s=(a=yr(O.useState(0),2))[0];var De=a[1],Re=(V=(F=yr(O.useState(0),2))[0],F[1]),Ie=function(){var e;A&&te&&(e=te.getBoundingClientRect(),De(e.width),Re(e.height))};function $e(e,t,n,o){ae[e]=function(i){var r;null!=o&&o(i),ge(t,n);for(var a=arguments.length,s=new Array(1<a?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null!=(r=re[e])&&r.call.apply(r,[re,i].concat(s))}}Gr(function(){_e&&(Ce(),_e(),we(null))},[_e]),(Me||Ne)&&(ae.onClick=function(e){var t;he.current&&Ne?ge(!1):!he.current&&Me&&(ye(e),ge(!0));for(var n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];null!=(t=re.onClick)&&t.call.apply(t,[re,e].concat(o))});P=function(e,t,n,o,i,r,a,s){var l=O.useRef(e),c=(l.current=e,O.useRef(!1));return O.useEffect(function(){var e,u,h,d;if(t&&o&&(!i||r))return e=function(){c.current=!1},u=function(e){var t;!l.current||a((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)||c.current||s(!1)},(h=dl(o)).addEventListener("pointerdown",e,!0),h.addEventListener("mousedown",u,!0),h.addEventListener("contextmenu",u,!0),(d=es(n))&&(d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0)),function(){h.removeEventListener("pointerdown",e,!0),h.removeEventListener("mousedown",u,!0),h.removeEventListener("contextmenu",u,!0),d&&(d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0))}},[t,n,o,i,r]),function(){c.current=!0}}(ce,Ne,te,Z,g,v,se,ge),n=w.has("hover"),a=Ae.has("hover"),n&&($e("onMouseEnter",!0,d,function(e){ye(e)}),$e("onPointerEnter",!0,d,function(e){ye(e)}),Fe=function(e){(ce||ve)&&null!=Z&&Z.contains(e.target)&&ge(!0,d)},L)&&(ae.onMouseMove=function(e){var t;null!=(t=re.onMouseMove)&&t.call(re,e)}),a&&($e("onMouseLeave",!1,p),$e("onPointerLeave",!1,p),Ve=function(){ge(!1,p)}),w.has("focus")&&$e("onFocus",!0,f),Ae.has("focus")&&$e("onBlur",!1,m),w.has("contextMenu")&&(ae.onContextMenu=function(e){var t;he.current&&Ae.has("contextMenu")?ge(!1):(ye(e),ge(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];null!=(t=re.onContextMenu)&&t.call.apply(t,[re,e].concat(o))}),B&&(ae.className=U(re.className,B)),F=O.useRef(!1);var Fe,Ve,je=(F.current||(F.current=y||ce||ve),pr(pr({},re),ae)),He={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){W[e]&&(He[e]=function(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];null!=(t=je[e])&&t.call.apply(t,[je].concat(o)),W[e].apply(W,o)})}),v=O.cloneElement(i,pr(pr({},je),He)),se={x:Se,y:Ee},n=I?pr({},!0!==I?I:{}):null;return O.createElement(O.Fragment,null,O.createElement(Qa,{disabled:!ce,ref:ie,onResize:function(){Ie(),Le()}},O.createElement(sl,{getTriggerDOMNode:Y},v)),F.current&&O.createElement(ll.Provider,{value:_},O.createElement(al,{portal:e,ref:ee,prefixCls:o,popup:x,className:U(k,r),style:S,target:te,onMouseEnter:Fe,onMouseLeave:Ve,onPointerEnter:Fe,zIndex:C,open:ce,keepDom:ve,fresh:N,onClick:D,onPointerDownCapture:P,mask:g,motion:$,maskMotion:j,onVisibleChanged:function(e){be(!1),Ce(),null!=h&&h(e)},onPrepare:function(){return new Promise(function(e){Ie(),we(function(){return e})})},forceRender:y,autoDestroy:t,getPopupContainer:b,align:Oe,arrow:n,arrowPos:se,ready:z,offsetX:H,offsetY:c,offsetR:R,offsetB:ke,onAlign:Le,stretch:A,targetWidth:s/Te,targetHeight:V/Pe})))})}(ha),Tl={shiftX:64,adjustY:1},Pl={adjustX:1,shiftY:!0},Ol=[0,0],Cl={left:{points:["cr","cl"],overflow:Pl,offset:[-4,0],targetOffset:Ol},right:{points:["cl","cr"],overflow:Pl,offset:[4,0],targetOffset:Ol},top:{points:["bc","tc"],overflow:Tl,offset:[0,-4],targetOffset:Ol},bottom:{points:["tc","bc"],overflow:Tl,offset:[0,4],targetOffset:Ol},topLeft:{points:["bl","tl"],overflow:Tl,offset:[0,-4],targetOffset:Ol},leftTop:{points:["tr","tl"],overflow:Pl,offset:[-4,0],targetOffset:Ol},topRight:{points:["br","tr"],overflow:Tl,offset:[0,-4],targetOffset:Ol},rightTop:{points:["tl","tr"],overflow:Pl,offset:[4,0],targetOffset:Ol},bottomRight:{points:["tr","br"],overflow:Tl,offset:[0,4],targetOffset:Ol},rightBottom:{points:["bl","br"],overflow:Pl,offset:[4,0],targetOffset:Ol},bottomLeft:{points:["tl","bl"],overflow:Tl,offset:[0,4],targetOffset:Ol},leftBottom:{points:["br","bl"],overflow:Pl,offset:[-4,0],targetOffset:Ol}},Al=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Ml=O.forwardRef(function(e,t){var n=e.overlayClassName,o=void 0===(o=e.trigger)?["hover"]:o,i=void 0===(i=e.mouseEnterDelay)?0:i,r=void 0===(r=e.mouseLeaveDelay)?.1:r,a=e.overlayStyle,s=void 0===(l=e.prefixCls)?"rc-tooltip":l,l=e.children,c=e.onVisibleChange,u=e.afterVisibleChange,h=e.transitionName,d=e.animation,p=e.motion,f=void 0===(f=e.placement)?"right":f,m=void 0===(m=e.align)?{}:m,g=void 0!==(g=e.destroyTooltipOnHide)&&g,v=e.defaultVisible,b=e.getTooltipContainer,y=e.overlayInnerStyle,_=e.overlay,w=e.id,x=void 0===(x=e.showArrow)||x,k=e.classNames,S=e.styles,E=fr(e,Al),T=is(w),P=O.useRef(null);O.useImperativeHandle(t,function(){return P.current}),w=pr({},E);return"visible"in e&&(w.popupVisible=e.visible),O.createElement(El,lr({popupClassName:U(n,null==k?void 0:k.root),prefixCls:s,popup:function(){return O.createElement(sr,{key:"content",prefixCls:s,id:T,bodyClassName:null==k?void 0:k.body,overlayInnerStyle:pr(pr({},y),null==S?void 0:S.body)},_)},action:o,builtinPlacements:Cl,popupPlacement:f,ref:P,popupAlign:m,getPopupContainer:b,onPopupVisibleChange:c,afterPopupVisibleChange:u,popupTransitionName:h,popupAnimation:d,popupMotion:p,defaultPopupVisible:v,autoDestroy:g,mouseLeaveDelay:r,popupStyle:pr(pr({},a),null==S?void 0:S.root),mouseEnterDelay:i,arrow:x},w),(t=pr(pr({},(null==(t=O.Children.only(l))?void 0:t.props)||{}),{},{"aria-describedby":_?T:null}),O.cloneElement(l,t)))});let Nl=()=>{let e=O.useContext(st).tour,{tourData:t,activeScene:n,setShowSceneCategories:o,setShowFloorplan:i}=tr(),r=null==t?void 0:t.sceneGroups,[a,s]=O.useState(null),[l,c]=O.useState(null),[u,h]=O.useState(null),[d,p]=O.useState("0"),f=O.useRef(null),m=O.useRef(null),g=(O.useEffect(()=>{var e;null!=n&&n.id&&(e=null==(e=null==a?void 0:a.children)?void 0:e.filter(e=>null==(e=null==e?void 0:e.scenes)?void 0:e.find(e=>d===e.tags[0])),h(e||null))},[a,d]),O.useEffect(()=>{var e;null!=n&&n.id&&(e=g(n.id),s(e||null),e=v(e,n.id),c(e||null))},[r,n]),O.useEffect(()=>{let e,t="";null!=r&&r.length&&r.forEach(e=>{e.children.forEach(e=>{null!=(e=null==e?void 0:e.scenes)&&e.forEach(e=>{e.id===(null==n?void 0:n.id)&&(t=e.tags[0])})})}),""===t&&null!=(e=null==l?void 0:l.scenes)&&e.length&&(t=l.scenes[0].tags[0]),p(t)},[r,n,l]),e=>null!=r&&r.length?r.find(t=>t.children.find(t=>null==(t=null==t?void 0:t.scenes)?void 0:t.find(t=>""+t.id==""+e))):null),v=(e,t)=>null!=r&&r.length&&e?e.children.find(e=>null==(e=null==e?void 0:e.scenes)?void 0:e.find(e=>""+e.id==""+t)):null;var y=()=>{i(!1),o(!1)};return null!=r&&r.length&&null!=u&&u.length?b.jsxs(b.Fragment,{children:[b.jsx("style",{children:".actions{display:flex;overflow:hidden;white-space:nowrap}.actions__popover{padding:0}.actions__popover .ant-popover-arrow{display:none}.actions__popover .ant-popover-inner{background-color:initial;box-shadow:none}.actions__popover .ant-popover-inner-content{padding:0}.actions__child-buttons-wrapper{align-items:end;display:flex;flex-direction:column;gap:var(--space-8)}.actions__child-button{background:var(--color-black-36);border:none;border-radius:var(--space-12);color:var(--color-white);display:flex;font-size:var(--font-size-16);font-weight:var(--font-weight-medium);gap:var(--space-8);padding:var(--space-10) var(--space-16);width:fit-content}.actions__child-button--selected{color:var(--color-mint)}.actions__child-button--selected>img{filter:brightness(0) saturate(100%) invert(77%) sepia(89%) saturate(1190%) hue-rotate(120deg) brightness(87%) contrast(103%)}.actions__child-button:focus{outline:0}.actions__child-button:hover{background:var(--color-black-24)}.actions__child-button>img{height:24px;object-fit:scale-down;width:24px}.actions__button{align-items:center;background-color:initial;border:0;border-radius:var(--space-infinity);display:flex;font-weight:var(--font-weight-medium);gap:var(--space-8);height:40px;justify-content:center;text-shadow:0 2px 8px var(--color-black-64);transition:background-color .3s ease-in-out;width:40px;z-index:1}.actions__button:focus{outline:0}.actions__button:hover{background-color:var(--color-black-16)}.actions__button>img{filter:drop-shadow(0 2px 4px var(--color-black-64));height:24px;object-fit:scale-down;width:24px}"}),b.jsxs("span",{className:"actions",children:[1<r.length&&a&&b.jsx(Ml,{placement:"bottomRight",trigger:"click",classNames:{root:"actions__popover"},overlay:b.jsx("div",{className:"actions__child-buttons-wrapper",children:r.map(t=>b.jsxs("button",{type:"button",className:U("actions__child-button",{"actions__child-button--selected":t.id===(null==a?void 0:a.id)}),onClick:()=>(t=>{s(t),n=t;var n=null!=r&&r.length&&n?n.children.find(e=>e.defaultGroup)||n.children[0]:null;c(n);let o=null==(n=null==n?void 0:n.scenes)?void 0:n.find(e=>d===e.tags[0]);o||null!=(n=null==t?void 0:t.children)&&n.forEach(e=>{o=o||(null==(e=null==e?void 0:e.scenes)?void 0:e.find(e=>d===e.tags[0]))}),o&&e.switchScene(o.code),null!=f&&f.current&&f.current.click()})(t),children:[!(null==t||!t.name)&&b.jsx("span",{children:t.name}),!(null==t||!t.icon)&&b.jsx("img",{src:ft(t.icon.file.url),alt:t.name})]},t.code))}),children:b.jsx("button",{ref:f,className:"actions__button",onClick:y,children:null!=a&&a.icon?b.jsx("img",{src:ft(a.icon.file.url),alt:null==a?void 0:a.name}):null==a?void 0:a.name})}),1<u.length&&!!l&&b.jsx(Ml,{placement:"bottomRight",trigger:"click",classNames:{root:"actions__popover"},overlay:b.jsx("div",{className:"actions__child-buttons-wrapper",children:u.map(t=>b.jsxs("button",{type:"button",className:U("actions__child-button",{"actions__child-button--selected":t.id===(null==l?void 0:l.id)}),onClick:()=>(t=>{c(t),(t=null==(t=null==t?void 0:t.scenes)?void 0:t.find(e=>d===e.tags[0]))&&e.switchScene(t.code),null!=m&&m.current&&m.current.click()})(t),children:[!(null==t||!t.name)&&b.jsx("span",{children:t.name}),!(null==t||!t.icon)&&b.jsx("img",{src:ft(t.icon.file.url),alt:"logo"})]},t.code))}),children:b.jsx("button",{ref:m,className:"actions__button",onClick:y,children:null!=l&&l.icon?b.jsx("img",{src:ft(l.icon.file.url),alt:"logo"}):null==l?void 0:l.name})})]})]}):null};function Ll(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}(e=>{e.MAX="MAX",e.MIDDLE="MIDDLE",e.MIN="MIN"})(Sl=Sl||{});var Dl=function(e){var t=e.ref,n=(e=O.useState({width:0,height:0}))[0],o=e[1],i=O.useRef({width:0,height:0});return O.useEffect(function(){var e,n;if("object"==typeof t&&null!==t&&t.current instanceof Element)return e=t.current,(n=new ResizeObserver(function(e){var t;Array.isArray(e)&&e.length&&(e=e[0],t=Math.round(e.contentRect.width),e=Math.round(e.contentRect.height),i.current.width===t&&i.current.height===e||(o({width:t,height:e}),i.current={width:t,height:e}))})).observe(e),function(){return n.unobserve(e)}},[t,t.current]),O.useMemo(function(){return{ref:t,width:n.width,height:n.height}},[t,n?n.width:null,n?n.height:null])},Rl=function(e){var t,n,o,i,r,a,s,l=e.contentRef,c=e.getSnapPoints,u=(l=(e=(l={contentRef:l,headerRef:e.headerRef,getContainer:e.getContainer}).contentRef,p=l.headerRef,t=function(e){function t(){e=o?o():window;var e={width:i?e instanceof Window?e.innerWidth:e.clientWidth:void 0,height:i?e instanceof Window?e.innerHeight:e.clientHeight:void 0},t={shorterSize:n=(n=e.height)<(t=e.width)?(r=t,n):(r=n,t),longerSize:r},n=t.shorterSize,r=t.longerSize;a(e),l(n),u(r)}var n,o=(e||{}).getContainer,i="object"==typeof window,r=(n=O.useState({}))[0],a=n[1],s=(n=O.useState(0))[0],l=n[1],c=(n=O.useState(0))[0],u=n[1];return O.useEffect(function(){var n;if(i)return t(),n=function(){setTimeout(t,500)},e&&e.disabledResize||window.addEventListener("resize",n,!1),window.addEventListener("orientationchange",n,!1),function(){window.removeEventListener("resize",n,!1),window.removeEventListener("orientationchange",n,!1)}},[]),{size:r,min:s,max:c}}({getContainer:l.getContainer}),l=O.useState(0),n=l[0],o=l[1],l=O.useState(0),i=l[0],r=l[1],a=Dl({ref:p}).height,s=Dl({ref:e}).height,O.useEffect(function(){t&&t.max&&a&&s&&(o(t.max),r(Math.min(n-a,s)+a))},[t,a,s]),O.useMemo(function(){return{maxHeight:n,minHeight:i,headerHeight:a}},[n,i,a])),l.maxHeight),h=l.minHeight,d=l.headerHeight,p=((e,t)=>{e=(Array.isArray(e)?e:[e]).map(Ll).reduce(function(e,n){var o,i;return e.add((o=(o=0)==o?o:0,i=(i=+t)==i?i:0,n=(n=+n)==n?(n=n<=i?n:i)>=o?n:o:n)),e},new Set),e=Array.from(e);var n=Math.min.apply(Math,e);if(Number.isNaN(n))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,e);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:e,minSnap:n,maxSnap:o}})(c({headerHeight:d,minHeight:h,maxHeight:u}),u),f=p.snapPoints,m=p.minSnap;return{minSnap:m,maxSnap:p.maxSnap,maxHeight:u,findSnap:function(e){var t=Ll("function"==typeof e?e({headerHeight:d,minHeight:h,maxHeight:u,snapPoints:f}):e);return f.reduce(function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e},m)}}},Il=[Sl.MIDDLE,Sl.MAX,Sl.MIN];O.forwardRef(function(e,t){var n,o,i,r,a,s,l,c,u,h,d,p,f=e.children,m=(e=((e,t)=>{var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n})(e,["children"]),e.className),g=void 0===(g=e.headerClassName)?"":g,v=void 0===(v=e.contentClassName)?"":v,b=void 0===(y=e.defaultSnap)?function(e){return e=e.maxHeight,J({maxHeight:e})}:y,y=void 0===(y=e.snapPoints)?function(e){return e=e.maxHeight,[Q({maxHeight:e}),J({maxHeight:e}),ee()]}:y,_=e.header,w=e.neck,x=e.onChangeSwipeLevel,k=void 0===(T=e.minSnapPoint)?0:T,S=e.onClose,E=e.onClickContainer,T=e.getContainer,P=void 0===(I=e.swipeLevels)?Il:I,A=void 0!==(I=e.disableSwipeInContent)&&I,M=(e=O.useState(P[0]))[0],N=e[1],L=(I=O.useState(!1))[0],D=I[1],R=O.useRef(null),I=(e=O.useRef(null),O.useRef(null)),$=O.useRef(null),F=O.useRef(0),V=O.useRef(!0),j=O.useRef(null),H=O.useRef(P[0]),z=O.useRef(null),B=O.useRef(!1),Y=O.useRef(0),W=O.useRef(0);function G(e){return e.touches}function X(e){z.current=e.touches[0].clientY}function q(){z.current=null}function K(e){var t,n;z.current&&!A&&(t=z.current,(e=e.changedTouches[0].clientY)+5<t?pe(Sl.MAX):t<e-5&&B.current&&V.current&&(t=H.current)!==Sl.MIN&&(t=(e=P.filter(function(e){return e!==Sl.MAX})).indexOf(t),n=e.length?e[0]:Sl.MIDDLE,n=-1!==t?e[t=(t+1)%e.length]:n)&&(V.current=!1,pe(n),j.current&&(clearTimeout(j.current),j.current=null),j.current=setTimeout(function(){j.current&&(clearTimeout(j.current),j.current=null),V.current=!0},500)))}function Z(){var e=F.current,t=(null==(t=R.current)?void 0:t.scrollTop)||0;e<t?B.current=!1:t<e&&(B.current=t<=0),F.current=t<=0?0:t}O.useEffect(function(){var e;null!=(e=null==$?void 0:$.current)&&e.style&&($.current.style.opacity=L?"1":"0",$.current.style.zIndex=L?"999":"0")},[L]),O.useEffect(function(){x&&x({swipeLevel:M})},[M]),n=(te={ref:I,heightRef:Y,updateSwipeHeight:function(e){var t=e.val,n=e.swipeToTop,o=(e=e.swipeToBottom,null==$?void 0:$.current);if(o)if(0!==t)o.style.transition="none",o.style.height="".concat(t,"px"),W.current=t;else{if(null!=o&&o.style&&(o.style.removeProperty("transition"),o.style.removeProperty("height")),o=(t={swipeToTop:n,swipeToBottom:e}).swipeToTop,t=t.swipeToBottom,o)pe(Sl.MAX);else if(t){var i=P.filter(function(e){return e!==Sl.MAX}),r=i.indexOf(M),a=Sl.MIDDLE;if(!(a=-1!==r?i[(r+1)%i.length]:a))return;pe(a)}if(!o&&!t)switch(r=null==W?void 0:W.current,i=null==ce?void 0:ce.current,a=Math.abs(r-Q({maxHeight:i})),o=Math.abs(r-J({maxHeight:i})),t=Math.abs(r-ee()),Math.min(a,o,t)){case a:pe(Sl.MAX);break;case o:pe(Sl.MIDDLE);break;case t:pe(Sl.MIN),de()}W.current=0}}}).ref,o=te.heightRef,i=te.updateSwipeHeight,te=O.useState(),r=te[0],a=te[1],s=O.useRef(0),l=O.useRef(0),c=O.useRef(!1),u=O.useRef(0),O.useEffect(function(){"object"==typeof n&&null!==n&&n.current instanceof Element&&a(n.current)},[n]),O.useEffect(function(){if(r&&o&&o.current)return r.addEventListener("touchstart",h,{passive:!0}),r.addEventListener("touchmove",d,{passive:!0}),r.addEventListener("touchend",p,{passive:!0}),function(){r.removeEventListener("touchstart",h,!1),r.removeEventListener("touchmove",d,!1),r.removeEventListener("touchend",p,!1)}},[r,o.current]),h=function(e){e=G(e)[0],s.current=e.pageY,u.current=(new Date).getTime()},d=function(e){c.current=!0;e=G(e)[0].pageY;var t=o.current||0;e=Math.round(e-s.current);l.current=e,i({val:t-e})},p=function(){var e,t;c.current&&(t=e=!1,(new Date).getTime()-u.current<=300&&(l.current<0?e=!0:t=!0),s.current=0,l.current=0,i({val:0,swipeToTop:e,swipeToBottom:t}),c.current=!1,u.current=0)};var Q=function(e){return e.maxHeight-36},J=function(e){return.5*e.maxHeight},ee=function(){return k},te=Rl({contentRef:e,getSnapPoints:y,headerRef:I,getContainer:T}),ne=te.minSnap,oe=te.maxSnap,ie=te.maxHeight,re=te.findSnap,ae=O.useRef(ne),se=O.useRef(J({maxHeight:ie})),le=O.useRef(oe),ce=O.useRef(ie),ue=O.useRef(re),he=O.useRef(0),de=function(){setTimeout(function(){null!=S&&S()},100)},pe=function(e){if(H.current!==e){switch(e){case Sl.MAX:Y.current=Q({maxHeight:ce.current||0});break;case Sl.MIDDLE:Y.current=J({maxHeight:ce.current||0});break;case Sl.MIN:Y.current=ee()}H.current=e,N(e)}};return O.useImperativeHandle(t,function(){return{collapse:function(){pe(Sl.MIN)},expand:function(){pe(Sl.MIDDLE)},fully:function(){pe(Sl.MAX)},getHeight:function(){return Y.current||0},getSwipeLevel:function(){return M},triggerOpen:function(e,t){void 0===t&&(t=!1),D(e),!e&&t&&M!==Sl.MIDDLE&&pe(Sl.MIDDLE)},scrollRef:function(){return R}}}),O.useLayoutEffect(function(){ce.current=ie,le.current=oe,se.current=J({maxHeight:ie}),ae.current=ne,ue.current=re,J({maxHeight:ce.current||0}),he.current="function"==typeof b?b({maxHeight:ce.current}):b},[ie,oe,ne]),O.useEffect(function(){he.current&&(Y.current=he.current)},[he.current]),O.useEffect(function(){if(M&&ie&&Y&&0===Y.current)switch(M){case Sl.MAX:Y.current=Q({maxHeight:ie});break;case Sl.MIDDLE:Y.current=J({maxHeight:ie});break;case Sl.MIN:Y.current=ee()}},[M,ie]),O.useEffect(function(){if(E){var e=$.current;if(e)return e.addEventListener("touchstart",E,!1),function(){e.removeEventListener("touchstart",E,!1)}}},[E]),O.useEffect(function(){return R.current&&(R.current.addEventListener("touchstart",X,!1),R.current.addEventListener("touchend",q,!1),R.current.addEventListener("touchcancel",q,!1),R.current.addEventListener("touchmove",K,!1),R.current.addEventListener("scroll",Z,!1)),function(){R.current&&(R.current.removeEventListener("touchstart",X,!1),R.current.removeEventListener("touchend",q,!1),R.current.removeEventListener("touchcancel",q,!1),R.current.removeEventListener("touchmove",K,!1),R.current.removeEventListener("scroll",Z,!1))}},[]),C.createElement(C.Fragment,null,C.createElement("div",{key:"blocking",className:U({"clik-bottom-sheet__blocking--show":M===Sl.MAX})}),C.createElement("div",{ref:$,key:"overlay",className:U("clik-bottom-sheet",{"clik-bottom-sheet--mobile":!0},m),style:((y={})["--clik-bottom-sheet--height"]="".concat(L?Y.current:0,"px"),y)},C.createElement("div",{ref:I,className:U("clik-bottom-sheet__header-wrapper",g),onClick:function(e){e.preventDefault(),e.stopPropagation(),e=(P.indexOf(M)+1)%P.length,e=P[e],pe(e)}},C.createElement("div",{key:"header",className:"clik-bottom-sheet__header"}),_?C.createElement("div",{className:U("clik-bottom-sheet__header-text",{"clik-bottom-sheet__header-text--hr":!w})},_):C.createElement(C.Fragment,null,!!S&&C.createElement("div",{className:"clik-bottom-sheet__action-btn-close",onClick:function(e){e.preventDefault(),e.stopPropagation(),S()}},C.createElement("i",{className:"icon-menu_close_big_24x24"})))),w?C.createElement("div",{className:"clik-bottom-sheet__neck"},w):null,C.createElement("div",{ref:R,key:"scroll",className:"clik-bottom-sheet__scroll"},C.createElement("div",{ref:e,className:U("clik-bottom-sheet__content",v)},f))))});let $l=O.createContext({});let Fl="undefined"!=typeof window,Vl=Fl?O.useLayoutEffect:O.useEffect,jl=O.createContext(null);function Hl(e,t){-1===e.indexOf(t)&&e.push(t)}function zl(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}let Bl=(e,t,n)=>t<n?t:n<e?e:n,Ul={},Yl=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Wl(e){return"object"==typeof e&&null!==e}let Gl=e=>/^0[^.\s]+$/u.test(e);function Xl(e){let t;return()=>t=void 0===t?e():t}let ql=e=>e,Kl=(e,t)=>n=>t(e(n)),Zl=(...e)=>e.reduce(Kl),Ql=(e,t,n)=>0==(t-=e)?1:(n-e)/t;class Jl{constructor(){this.subscriptions=[]}add(e){return Hl(this.subscriptions,e),()=>zl(this.subscriptions,e)}notify(e,t,n){var o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](e,t,n);else for(let r=0;r<o;r++){var i=this.subscriptions[r];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let ec=e=>1e3*e,tc=e=>e/1e3;function nc(e,t){return t?e*(1e3/t):0}let oc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ic(e,t,n,o){return e===t&&n===o?ql:i=>0===i||1===i?i:oc(function(e,t,n,o,i){var r;let a,s=0;for(;a=t+(n-t)/2,0<(r=oc(a,o,i)-e)?n=a:t=a,Math.abs(r)>1e-7&&++s<12;);return a}(i,0,1,e,n),t,o)}let rc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ac=e=>t=>1-e(1-t),sc=ic(.33,1.53,.69,.99),lc=ac(sc),cc=rc(lc),uc=e=>(e*=2)<1?.5*lc(e):.5*(2-Math.pow(2,-10*(e-1))),hc=e=>1-Math.sin(Math.acos(e)),dc=ac(hc),pc=rc(hc),fc=ic(.42,0,1,1),mc=ic(0,0,.58,1),gc=ic(.42,0,.58,1),vc=e=>Array.isArray(e)&&"number"==typeof e[0],bc={linear:ql,easeIn:fc,easeInOut:gc,easeOut:mc,circIn:hc,circInOut:pc,circOut:dc,backIn:lc,backInOut:cc,backOut:sc,anticipate:uc},yc=e=>{var t,n,o,i;return vc(e)?(e.length,[t,n,o,i]=e,ic(t,n,o,i)):(e=>"string"==typeof e)(e)?bc[e]:e},_c=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function wc(e,t){let n=!1,o=!0,i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,a=_c.reduce((e,t)=>(e[t]=function(e){let t,n=new Set,o=new Set,i=!1,r=!1,a=new WeakSet;function s(n){a.has(n)&&(l.schedule(n),e()),n(t)}let l={schedule:(e,t=!1,r=!1)=>(r=r&&i?n:o,t&&a.add(e),r.has(e)||r.add(e),e),cancel:e=>{o.delete(e),a.delete(e)},process:e=>{t=e,i?r=!0:(i=!0,[n,o]=[o,n],n.forEach(s),n.clear(),i=!1,r&&(r=!1,l.process(e)))}};return l}(r),e),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:p,postRender:f}=a,m=()=>{var r=Ul.useManualTiming?i.timestamp:performance.now();n=!1,Ul.useManualTiming||(i.delta=o?1e3/60:Math.max(Math.min(r-i.timestamp,40),1)),i.timestamp=r,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),p.process(i),f.process(i),i.isProcessing=!1,n&&t&&(o=!1,e(m))};return{schedule:_c.reduce((t,r)=>{let s=a[r];return t[r]=(t,r=!1,a=!1)=>(n||(n=!0,o=!0,i.isProcessing)||e(m),s.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<_c.length;t++)a[_c[t]].cancel(e)},state:i,steps:a}}let xc,{schedule:kc,cancel:Sc,state:Ec,steps:Tc}=wc("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ql,!0);function Pc(){xc=void 0}let Oc={now:()=>(void 0===xc&&Oc.set(Ec.isProcessing||Ul.useManualTiming?Ec.timestamp:performance.now()),xc),set:e=>{xc=e,queueMicrotask(Pc)}},Cc=e=>t=>"string"==typeof t&&t.startsWith(e),Ac=Cc("--"),Mc=Cc("var(--"),Nc=e=>!!Mc(e)&&Lc.test(e.split("/*")[0].trim()),Lc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Dc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Rc={...Dc,transform:e=>Bl(0,1,e)},Ic={...Dc,default:1},$c=e=>Math.round(1e5*e)/1e5,Fc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;let Vc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jc=(e,t)=>n=>Boolean("string"==typeof n&&Vc.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Hc=(e,t,n)=>o=>{var i,r,a;return"string"!=typeof o?o:([o,i,r,a]=o.match(Fc),{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1})},zc={...Dc,transform:e=>Math.round((e=>Bl(0,255,e))(e))},Bc={test:jc("rgb","red"),parse:Hc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+zc.transform(e)+", "+zc.transform(t)+", "+zc.transform(n)+", "+$c(Rc.transform(o))+")"};let Uc={test:jc("#"),parse:function(e){let t="",n="",o="",i="";return 5<e.length?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,o+=o,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:i?parseInt(i,16)/255:1}},transform:Bc.transform},Yc=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>""+t+e}),Wc=Yc("deg"),Gc=Yc("%"),Xc=Yc("px"),qc=Yc("vh"),Kc=Yc("vw"),Zc={...Gc,parse:e=>Gc.parse(e)/100,transform:e=>Gc.transform(100*e)},Qc={test:jc("hsl","hue"),parse:Hc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Gc.transform($c(t))+", "+Gc.transform($c(n))+", "+$c(Rc.transform(o))+")"},Jc={test:e=>Bc.test(e)||Uc.test(e)||Qc.test(e),parse:e=>(Bc.test(e)?Bc:Qc.test(e)?Qc:Uc).parse(e),transform:e=>"string"==typeof e?e:(e.hasOwnProperty("red")?Bc:Qc).transform(e),getAnimatableNone:e=>((e=Jc.parse(e)).alpha=0,Jc.transform(e))},eu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;let tu="number",nu="color",ou=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function iu(e){e=e.toString();let t=[],n={color:[],number:[],var:[]},o=[],i=0;return e=e.replace(ou,e=>(Jc.test(e)?(n.color.push(i),o.push(nu),t.push(Jc.parse(e))):e.startsWith("var(")?(n.var.push(i),o.push("var"),t.push(e)):(n.number.push(i),o.push(tu),t.push(parseFloat(e))),++i,"${}")).split("${}"),{values:t,split:e,indexes:n,types:o}}function ru(e){return iu(e).values}function au(e){let{split:t,types:n}=iu(e),o=t.length;return e=>{let i="";for(let a=0;a<o;a++){var r;i+=t[a],void 0!==e[a]&&((r=n[a])===tu?i+=$c(e[a]):i+=r===nu?Jc.transform(e[a]):e[a])}return i}}let su=e=>"number"==typeof e?0:Jc.test(e)?Jc.getAnimatableNone(e):e;let lu={test:function(e){return isNaN(e)&&"string"==typeof e&&0<(e.match(Fc)?.length||0)+(e.match(eu)?.length||0)},parse:ru,createTransformer:au,getAnimatableNone:function(e){var t=ru(e);return au(e)(t.map(su))}};function cu(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uu(e,t){return n=>0<n?t:e}let hu=(e,t,n)=>e+(t-e)*n,du=(e,t,n)=>(n=n*(t*t-(e*=e))+e)<0?0:Math.sqrt(n),pu=[Uc,Bc,Qc];function fu(e){var t=(e=>pu.find(t=>t.test(e)))(e);if(!Boolean(t))return!1;let n=t.parse(e);return t===Qc?function({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,n/=100;let i=0,r=0,a=0;var s;return(t/=100)?(i=cu(s=2*n-(t=n<.5?n*(1+t):n+t-n*t),t,e+1/3),r=cu(s,t,e),a=cu(s,t,e-1/3)):i=r=a=n,{red:Math.round(255*i),green:Math.round(255*r),blue:Math.round(255*a),alpha:o}}(n):n}let mu=(e,t)=>{let n=fu(e),o=fu(t);if(!n||!o)return uu(e,t);let i={...n};return e=>(i.red=du(n.red,o.red,e),i.green=du(n.green,o.green,e),i.blue=du(n.blue,o.blue,e),i.alpha=hu(n.alpha,o.alpha,e),Bc.transform(i))},gu=new Set(["none","hidden"]);function vu(e,t){return n=>hu(e,t,n)}function bu(e){return"number"==typeof e?vu:"string"==typeof e?Nc(e)?uu:Jc.test(e)?mu:wu:Array.isArray(e)?yu:"object"==typeof e?Jc.test(e)?mu:_u:uu}function yu(e,t){let n=[...e],o=n.length,i=e.map((e,n)=>bu(e)(e,t[n]));return e=>{for(let t=0;t<o;t++)n[t]=i[t](e);return n}}function _u(e,t){let n={...e,...t},o={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(o[i]=bu(e[i])(e[i],t[i]));return e=>{for(var t in o)n[t]=o[t](e);return n}}let wu=(e,t)=>{var n=lu.createTransformer(t),o=iu(e),i=iu(t);return o.indexes.var.length===i.indexes.var.length&&o.indexes.color.length===i.indexes.color.length&&o.indexes.number.length>=i.indexes.number.length?gu.has(e)&&!i.values.length||gu.has(t)&&!o.values.length?function(e,t){return gu.has(e)?n=>n<=0?e:t:n=>1<=n?t:e}(e,t):Zl(yu(function(e,t){var n=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){var i=t.types[a],r=e.indexes[i][o[i]];r=e.values[r]??0,n[a]=r,o[i]++}return n}(o,i),i.values),n):uu(e,t)};function xu(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?hu(e,t,n):bu(e)(e,t)}let ku=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>kc.update(t,e),stop:()=>Sc(t),now:()=>Ec.isProcessing?Ec.timestamp:Oc.now()}},Su=(e,t,n=10)=>{let o="";var i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)o+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Eu=2e4;function Tu(e){let t=0,n=e.next(t);for(;!n.done&&t<Eu;)t+=50,n=e.next(t);return t>=Eu?1/0:t}function Pu(e,t,n){var o=Math.max(t-5,0);return nc(n-e(o),t-o)}let Ou=100,Cu=10,Au=1,Mu=0,Nu=800,Lu=.3,Du=.3,Ru={granular:.01,default:2},Iu={granular:.005,default:.5},$u=.01,Fu=10,Vu=.05,ju=1,Hu=.001;function zu({duration:e=Nu,bounce:t=Lu,velocity:n=Mu,mass:o=Au}){let i,r,a=1-t;a=Bl(Vu,ju,a),e=Bl($u,Fu,tc(e)),r=a<1?(i=t=>{var o=(i=t*a)*e,i=i-n;t=Uu(t,a),o=Math.exp(-o);return Hu-i/t*o},t=>{var o=(s=t*a*e)*n+n,r=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-s),l=Uu(Math.pow(t,2),a);return(o-r)*s*(0<-i(t)+Hu?-1:1)/l}):(i=t=>Math.exp(-t*e)*(t=(t-n)*e+1)-.001,t=>Math.exp(-t*e)*(e*e*(n-t)));t=function(e,t,n){let o=n;for(let n=1;n<Bu;n++)o-=e(o)/t(o);return o}(i,r,5/e);return e=ec(e),isNaN(t)?{stiffness:Ou,damping:Cu,duration:e}:{stiffness:t=Math.pow(t,2)*o,damping:2*a*Math.sqrt(o*t),duration:e}}let Bu=12;function Uu(e,t){return e*Math.sqrt(1-t*t)}let Yu=["duration","bounce"],Wu=["stiffness","damping","mass"];function Gu(e,t){return t.some(t=>void 0!==e[t])}function Xu(e=Du,t=Lu){t="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=t;e=t.keyframes[0];let i,r=t.keyframes[t.keyframes.length-1],a={done:!1,value:e},{stiffness:s,damping:l,mass:c,duration:u,velocity:h,isResolvedFromDuration:d}=function(e){let t={velocity:Mu,stiffness:Ou,damping:Cu,mass:Au,isResolvedFromDuration:!1,...e};var n,o;return!Gu(e,Wu)&&Gu(e,Yu)&&(e.visualDuration?(o=e.visualDuration,o=(o=2*Math.PI/(1.2*o))*o,n=2*Bl(.05,1,1-(e.bounce||0))*Math.sqrt(o),t={...t,mass:Au,stiffness:o,damping:n}):(o=zu(e),(t={...t,...o,mass:Au}).isResolvedFromDuration=!0)),t}({...t,velocity:-tc(t.velocity||0)}),p=h||0,f=l/(2*Math.sqrt(s*c)),m=r-e,g=tc(Math.sqrt(s/c));if(t=Math.abs(m)<5,n=n||(t?Ru.granular:Ru.default),o=o||(t?Iu.granular:Iu.default),f<1){let e=Uu(g,f);i=t=>{var n=Math.exp(-f*g*t);return r-n*((p+f*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1==f)i=e=>r-Math.exp(-g*e)*(m+(p+g*m)*e);else{let e=g*Math.sqrt(f*f-1);i=t=>{var n=Math.exp(-f*g*t);t=Math.min(e*t,300);return r-n*((p+f*g*m)*Math.sinh(t)+e*m*Math.cosh(t))/e}}let v={calculatedDuration:d&&u||null,next:e=>{var t=i(e);if(d)a.done=e>=u;else{let l=0===e?p:0;f<1&&(l=0===e?ec(p):Pu(i,e,t));e=Math.abs(l)<=n;var s=Math.abs(r-t)<=o;a.done=e&&s}return a.value=a.done?r:t,a},toString:()=>{let e=Math.min(Tu(v),Eu);var t=Su(t=>v.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return v}function qu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){let h={done:!1,value:e=e[0]},d=n*t;n=e+d;let p,f,m=void 0===a?n:a(n),g=(m!==n&&(d=m-e),e=>-d*Math.exp(-e/o)),v=e=>m+g(e),b=e=>{var t=g(e);e=v(e);h.done=Math.abs(t)<=c,h.value=h.done?m:e},y=e=>{var t;t=h.value,(void 0!==s&&t<s||void 0!==l&&l<t)&&(p=e,f=Xu({keyframes:[h.value,(t=h.value,void 0!==s&&(void 0===l||Math.abs(s-t)<Math.abs(l-t))?s:l)],velocity:Pu(v,e,h.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return y(0),{calculatedDuration:null,next:e=>{let t=!1;return f||void 0!==p||(t=!0,b(e),y(e)),void 0!==p&&e>=p?f.next(e-p):(t||b(e),h)}}}function Ku(e,t,{clamp:n=!0,ease:o,mixer:i}={}){let r=e.length;if(t.length,1===r)return()=>t[0];if(2===r&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1],s=(e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse()),function(e,t,n){var o,i=[],r=n||Ul.mix||xu,a=e.length-1;for(let n=0;n<a;n++){let a=r(e[n],e[n+1]);t&&(o=Array.isArray(t)?t[n]||ql:t,a=Zl(o,a)),i.push(a)}return i}(t,o,i)),l=s.length,c=n=>{if(a&&n<e[0])return t[0];let o=0;if(1<l)for(;o<e.length-2&&!(n<e[o+1]);o++);var i=Ql(e[o],e[o+1],n);return s[o](i)};return n?t=>c(Bl(e[0],e[r-1],t)):c}function Zu(e){var t=[0];return function(e,t){var n=e[e.length-1];for(let i=1;i<=t;i++){var o=Ql(0,t,i);e.push(hu(n,1,o))}}(t,e.length-1),t}function Qu(e,t){return e.map(()=>t||gc).splice(0,e.length-1)}function Ju({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(o)?o.map(yc):yc(o);let i={done:!1,value:t[0]},r=Ku(function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Zu(t),e),t,{ease:Array.isArray(o)?o:Qu(t,o)});return{calculatedDuration:e,next:t=>(i.value=r(t),i.done=e<=t,i)}}Xu.applyToOptions=e=>{var t=function(e,t=100,n){let o=n({...e,keyframes:[0,t]}),i=Math.min(Tu(o),Eu);return{type:"keyframes",ease:e=>o.next(i*e).value/t,duration:tc(i)}}(e,100,Xu);return e.ease=t.ease,e.duration=ec(t.duration),e.type="keyframes",e};let eh=e=>null!==e;function th(e,{repeat:t,repeatType:n="loop"},o,i=1){return e=e.filter(eh),(i=i<0||t&&"loop"!==n&&t%2==1?0:e.length-1)&&void 0!==o?o:e[i]}let nh={decay:qu,inertia:qu,tween:Ju,keyframes:Ju,spring:Xu};function oh(e){"string"==typeof e.type&&(e.type=nh[e.type])}class ih{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let rh=e=>e/100;class ah extends ih{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var e=this.options.motionValue;e&&e.updatedAt!==Oc.now()&&this.tick(Oc.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){var e=this.options,{type:t=Ju,repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:r=0}=(oh(e),e);let a=e.keyframes;var t,s=((t=t||Ju)!==Ju&&"number"!=typeof a[0]&&(this.mixKeyframes=Zl(rh,xu(a[0],a[1])),a=[0,100]),t({...e,keyframes:a})),i=("mirror"===i&&(this.mirroredGenerator=t({...e,keyframes:[...a].reverse(),velocity:-r})),null===s.calculatedDuration&&(s.calculatedDuration=Tu(s)),s).calculatedDuration;this.calculatedDuration=i,this.resolvedDuration=i+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=s}updateTime(e){e=Math.round(e-this.startTime)*this.playbackSpeed,null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(e,t=!1){var{generator:n,totalDuration:o,mixKeyframes:i,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);var{delay:l=0,keyframes:c,repeat:u,repeatType:h,repeatDelay:d,type:p,onUpdate:f,finalKeyframe:m}=this.options;0<this.speed?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-o/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e),t=this.currentTime-l*(0<=this.playbackSpeed?1:-1),e=0<=this.playbackSpeed?t<0:o<t;this.currentTime=Math.max(t,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=o);let g=this.currentTime,v=n;if(u){l=Math.min(this.currentTime,o)/a;let e=Math.floor(l),t=l%1;1===(t=!t&&1<=l?1:t)&&e--,e=Math.min(e,u+1),Boolean(e%2)&&("reverse"===h?(t=1-t,d&&(t-=d/a)):"mirror"===h&&(v=r)),g=Bl(0,1,t)*a}t=e?{done:!1,value:c[0]}:v.next(g),i&&(t.value=i(t.value));let b=t.done;return e||null===s||(b=0<=this.playbackSpeed?this.currentTime>=o:this.currentTime<=0),(n=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b))&&p!==qu&&(t.value=th(c,this.options,m,this.speed)),f&&f(t.value),n&&this.finish(),t}then(e,t){return this.finished.then(e,t)}get duration(){return tc(this.calculatedDuration)}get time(){return tc(this.currentTime)}set time(e){e=ec(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Oc.now());var t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=tc(this.currentTime))}play(){var e,t;this.isStopped||(({driver:t=ku,startTime:e}=this.options),this.driver||(this.driver=t(e=>this.tick(e))),this.options.onPlay?.(),t=this.driver.now(),"finished"===this.state?(this.updateFinished(),this.startTime=t):null!==this.holdTime?this.startTime=t-this.holdTime:this.startTime||(this.startTime=e??t),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start())}pause(){this.state="paused",this.updateTime(Oc.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let sh=e=>180*e/Math.PI,lh=e=>(e=sh(Math.atan2(e[1],e[0])),uh(e)),ch={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:lh,rotateZ:lh,skewX:e=>sh(Math.atan(e[1])),skewY:e=>sh(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uh=e=>((e%=360)<0&&(e+=360),e),hh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ph={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:hh,scaleY:dh,scale:e=>(hh(e)+dh(e))/2,rotateX:e=>uh(sh(Math.atan2(e[6],e[5]))),rotateY:e=>uh(sh(Math.atan2(-e[2],e[0]))),rotateZ:lh,rotate:lh,skewX:e=>sh(Math.atan(e[4])),skewY:e=>sh(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function fh(e){return e.includes("scale")?1:0}function mh(e,t){if(!e||"none"===e)return fh(t);var n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,i;return(i=n?(o=ph,n):(n=e.match(/^matrix\(([-\d.e\s,]+)\)$/u),o=ch,n))?(e=o[t],n=i[1].split(",").map(gh),"function"==typeof e?e(n):n[e]):fh(t)}function gh(e){return parseFloat(e.trim())}let vh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bh=new Set(vh),yh=e=>e===Dc||e===Xc,_h=new Set(["x","y","z"]),wh=vh.filter(e=>!_h.has(e));let xh={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>mh(t,"x"),y:(e,{transform:t})=>mh(t,"y")},kh=(xh.translateX=xh.x,xh.translateY=xh.y,new Set),Sh=!1,Eh=!1,Th=!1;function Ph(){if(Eh){var e=Array.from(kh).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element));let n=new Map;t.forEach(e=>{var t=function(e){let t=[];return wh.forEach(n=>{var o=e.getValue(n);void 0!==o&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();var t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}Eh=!1,Sh=!1,kh.forEach(e=>e.complete(Th)),kh.clear()}function Oh(){kh.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Eh=!0)})}class Ch{constructor(e,t,n,o,i,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=o,this.element=i,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(kh.add(this),Sh||(Sh=!0,kc.read(Oh),kc.resolveKeyframes(Ph))):(this.readKeyframes(),this.complete())}readKeyframes(){var e,t,{unresolvedKeyframes:n,name:o,element:i,motionValue:r}=this;null===n[0]&&(e=r?.get(),t=n[n.length-1],void 0!==e?n[0]=e:i&&o&&null!=(i=i.readValue(o,t))&&(n[0]=i),void 0===n[0]&&(n[0]=t),r)&&void 0===e&&r.set(n[0]),function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),kh.delete(this)}cancel(){"scheduled"===this.state&&(kh.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let Ah=Xl(()=>void 0!==window.ScrollTimeline),Mh={};let Nh=function(e,t){let n=Xl(e);return()=>Mh[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),Lh=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,Dh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lh([0,.65,.55,1]),circOut:Lh([.55,0,1,.45]),backIn:Lh([.31,.01,.66,-.59]),backOut:Lh([.33,1.53,.69,.99])};function Rh(e,t){if(e)return"function"==typeof e?Nh()?Su(e,t):"ease-out":vc(e)?Lh(e):Array.isArray(e)?e.map(e=>Rh(e,t)||Dh.easeOut):Dh[e]}function Ih(e,t,n,{delay:o=0,duration:i=300,repeat:r=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){return t={[t]:n},l&&(t.offset=l),n=Rh(s,i),Array.isArray(n)&&(t.easing=n),l={delay:o,duration:i,easing:Array.isArray(n)?"linear":n,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"},c&&(l.pseudoElement=c),s=e.animate(t,l)}function $h(e){return"function"==typeof e&&"applyToOptions"in e}class Fh extends ih{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:o,pseudoElement:i,allowFlatten:r=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=Boolean(i),this.allowFlatten=r,this.options=e,e.type,e=function({type:e,...t}){return $h(e)&&Nh()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e),this.animation=Ih(t,n,o,e,i),!1===e.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{var e;this.finishedTime=this.time,i||(e=th(o,this.options,a,this.speed),this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()),s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){var e;this.isStopped||(this.isStopped=!0,"idle"===(e=this.state))||"finished"===e||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement)||this.cancel()}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){var e=this.animation.effect?.getComputedTiming?.().duration||0;return tc(Number(e))}get time(){return tc(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=ec(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Ah()?(this.animation.timeline=e,ql):t(this)}}let Vh={anticipate:uc,backInOut:cc,circInOut:pc};function jh(e){"string"==typeof e.ease&&function(e){return e in Vh}(e.ease)&&(e.ease=Vh[e.ease])}class Hh extends Fh{constructor(e){jh(e),oh(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:o,element:i,...r}=this.options;var a;t&&(void 0!==e?t.set(e):(e=new ah({...r,autoplay:!1}),a=ec(this.finishedTime??this.time),t.setWithVelocity(e.sample(a-10).value,e.sample(a).value,10),e.stop()))}}let zh=(e,t)=>"zIndex"!==t&&!("number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!lu.test(e)&&"0"!==e||e.startsWith("url(")));function Bh(e){e.duration=0}let Uh=new Set(["opacity","clipPath","filter","transform"]),Yh=Xl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class Wh extends ih{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:r="loop",keyframes:a,name:s,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Oc.now();let h={autoplay:e,delay:t,type:n,repeat:o,repeatDelay:i,repeatType:r,name:s,motionValue:l,element:c,...u};e=c?.KeyframeResolver||Ch,this.keyframeResolver=new e(a,(e,t,n)=>this.onKeyframesResolved(e,t,h,!n),s,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,o){this.keyframeResolver=void 0;var{name:i,type:r,velocity:a,delay:s,isHandoff:l,onUpdate:c}=n,i=(this.resolvedAt=Oc.now(),function(e,t,n,o){var i,r=e[0];return null!==r&&("display"===t||"visibility"===t||(i=e[e.length-1],r=zh(r,t),i=zh(i,t),!(!r||!i)&&(function(e){var t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||$h(n))&&o)))}(e,i,r,a)||(!Ul.instantAnimations&&s||c?.(th(e,n,t)),e[0]=e[e.length-1],Bh(n),n.repeat=0),o?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0),r={startTime:i,finalKeyframe:t,...n,keyframes:e},a=!l&&function(e){var t,{motionValue:e,name:n,repeatDelay:o,repeatType:i,damping:r,type:a}=e;return e?.owner?.current instanceof HTMLElement&&(({onUpdate:e,transformTemplate:t}=e.owner.getProps()),Yh())&&n&&Uh.has(n)&&("transform"!==n||!t)&&!e&&!o&&"mirror"!==i&&0!==r&&"inertia"!==a}(r)?new Hh({...r,element:r.motionValue.owner.current}):new ah(r);a.finished.then(()=>this.notifyFinished()).catch(ql),this.pendingTimeline&&(this.stopTimeline=a.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=a}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Th=!0,Oh(),Ph(),Th=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let Gh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Xh(e,t,n=1){var[e,o]=function(e){var t,n;return(e=Gh.exec(e))?([,e,t,n]=e,["--"+(e??t),n]):[,]}(e);if(e)return(e=window.getComputedStyle(t).getPropertyValue(e))?(e=e.trim(),Yl(e)?parseFloat(e):e):Nc(o)?Xh(o,t,n+1):o}function qh(e,t){return e?.[t]??e?.default??e}let Kh=new Set(["width","height","top","left","right","bottom",...vh]),Zh=e=>t=>t.test(e),Qh=[Dc,Xc,Gc,Wc,Kc,qc,{test:e=>"auto"===e,parse:e=>e}],Jh=e=>Qh.find(Zh(e));function ed(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||Gl(e)}let td=new Set(["brightness","contrast","saturate","opacity"]);function nd(e){var[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;var[o]=n.match(Fc)||[];if(!o)return e;e=n.replace(o,"");let i=td.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+e+")"}let od=/\b([a-z-]*)\(.*?\)/gu,id={...lu,getAnimatableNone:e=>{var t=e.match(od);return t?t.map(nd).join(" "):e}},rd={...Dc,transform:Math.round},ad={borderWidth:Xc,borderTopWidth:Xc,borderRightWidth:Xc,borderBottomWidth:Xc,borderLeftWidth:Xc,borderRadius:Xc,radius:Xc,borderTopLeftRadius:Xc,borderTopRightRadius:Xc,borderBottomRightRadius:Xc,borderBottomLeftRadius:Xc,width:Xc,maxWidth:Xc,height:Xc,maxHeight:Xc,top:Xc,right:Xc,bottom:Xc,left:Xc,padding:Xc,paddingTop:Xc,paddingRight:Xc,paddingBottom:Xc,paddingLeft:Xc,margin:Xc,marginTop:Xc,marginRight:Xc,marginBottom:Xc,marginLeft:Xc,backgroundPositionX:Xc,backgroundPositionY:Xc,...{rotate:Wc,rotateX:Wc,rotateY:Wc,rotateZ:Wc,scale:Ic,scaleX:Ic,scaleY:Ic,scaleZ:Ic,skew:Wc,skewX:Wc,skewY:Wc,distance:Xc,translateX:Xc,translateY:Xc,translateZ:Xc,x:Xc,y:Xc,z:Xc,perspective:Xc,transformPerspective:Xc,opacity:Rc,originX:Zc,originY:Zc,originZ:Xc},zIndex:rd,fillOpacity:Rc,strokeOpacity:Rc,numOctaves:rd},sd={...ad,color:Jc,backgroundColor:Jc,outlineColor:Jc,fill:Jc,stroke:Jc,borderColor:Jc,borderTopColor:Jc,borderRightColor:Jc,borderBottomColor:Jc,borderLeftColor:Jc,filter:id,WebkitFilter:id},ld=e=>sd[e];function cd(e,t){let n=ld(e);return(n=n!==id?lu:n).getAnimatableNone?n.getAnimatableNone(t):void 0}let ud=new Set(["auto","none","0"]);class hd extends Ch{constructor(e,t,n,o,i){super(e,t,n,o,i,!0)}readKeyframes(){var e,{unresolvedKeyframes:t,element:n,name:o}=this;if(n&&n.current){super.readKeyframes();for(let o=0;o<t.length;o++){let i=t[o];"string"==typeof i&&(i=i.trim(),Nc(i))&&(void 0!==(e=Xh(i,n.current))&&(t[o]=e),o===t.length-1)&&(this.finalKeyframe=i)}if(this.resolveNoneKeyframes(),Kh.has(o)&&2===t.length){var i,r,[i,r]=t;if((i=Jh(i))!==(r=Jh(r)))if(yh(i)&&yh(r))for(let e=0;e<t.length;e++){var a=t[e];"string"==typeof a&&(t[e]=parseFloat(a))}else xh[o]&&(this.needsMeasurement=!0)}}}resolveNoneKeyframes(){var{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)null!==e[t]&&!ed(e[t])||n.push(t);n.length&&function(e,t,n){let o,i=0;for(;i<e.length&&!o;){var r=e[i];"string"==typeof r&&!ud.has(r)&&iu(r).values.length&&(o=e[i]),i++}if(o&&n)for(var a of t)e[a]=cd(n,o)}(e,n,t)}measureInitialState(){var{element:e,unresolvedKeyframes:t,name:n}=this;e&&e.current&&("height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xh[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin,void 0!==(t=t[t.length-1]))&&e.getValue(n,t).jump(t,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;var o,i;e&&e.current&&((o=e.getValue(t))&&o.jump(this.measuredOrigin,!1),i=n[o=n.length-1],n[o]=xh[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes())}}let dd=(e,t)=>t&&"number"==typeof e?t.transform(e):e;class pd{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{var t=Oc.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(var n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Oc.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Jl);let n=this.events[e].add(t);return"change"===e?()=>{n(),kc.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(var e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e=Oc.now();return!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30?0:(e=Math.min(this.updatedAt-this.prevUpdatedAt,30),nc(parseFloat(this.current)-parseFloat(this.prevFrameValue),e))}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel)&&this.events.animationCancel.notify(),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fd(e,t){return new pd(e,t)}let md=wc(queueMicrotask,!1).schedule,gd={x:!1,y:!1};function vd(){return gd.x||gd.y}function bd(e,t){e=function(e,t,n){var o;return e instanceof EventTarget?[e]:"string"==typeof e?(o=document,(n=n?.[e]??o.querySelectorAll(e))?Array.from(n):[]):Array.from(e)}(e);let n=new AbortController;return[e,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function yd(e){return!("touch"===e.pointerType||vd())}let _d=(e,t)=>!!t&&(e===t||_d(e,t.parentElement)),wd=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,xd=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);let kd=new WeakSet;function Sd(e){return t=>{"Enter"===t.key&&e(t)}}function Ed(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Td(e){return wd(e)&&!vd()}function Pd(e,t,n={}){let[o,i,r]=bd(e,n),a=e=>{let o=e.currentTarget;if(!Td(e))return;kd.add(o);let r=t(o,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),kd.has(o)&&kd.delete(o),Td(e)&&"function"==typeof r&&r(e,{success:t})},s=e=>{a(e,o===window||o===document||n.useGlobalTarget||_d(o,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return o.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),function(e){return Wl(e)&&"offsetHeight"in e}(e)&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(n){let e=Sd(()=>{var e;kd.has(n)||(Ed(n,"down"),e=Sd(()=>{Ed(n,"up")}),n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>Ed(n,"cancel"),t))});n.addEventListener("keydown",e,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",e),t)}})(e,i)),function(e){return xd.has(e.tagName)||-1!==e.tabIndex}(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),r}function Od(e){return Wl(e)&&"ownerSVGElement"in e}let Cd=e=>Boolean(e&&e.getVelocity),Ad=[...Qh,Jc,lu],Md=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let Nd=O.createContext({strict:!1}),Ld={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Dd={};for(let e in Ld)Dd[e]={isEnabled:t=>Ld[e].some(e=>!!t[e])};let Rd=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Id(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Rd.has(e)}let $d=e=>!Id(e);try{!function(e){"function"==typeof e&&($d=t=>t.startsWith("on")?!Id(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}let Fd=O.createContext({});function Vd(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function jd(e){return"string"==typeof e||Array.isArray(e)}let Hd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zd=["initial",...Hd];function Bd(e){return Vd(e.animate)||zd.some(t=>jd(e[t]))}function Ud(e){return Boolean(Bd(e)||e.variants)}function Yd(e){let{initial:t,animate:n}=function(e,t){var n,o;return Bd(e)?(({initial:n,animate:o}=e),{initial:!1===n||jd(n)?n:void 0,animate:jd(o)?o:void 0}):!1!==e.inherit?t:{}}(e,O.useContext(Fd));return O.useMemo(()=>({initial:t,animate:n}),[Wd(t),Wd(n)])}function Wd(e){return Array.isArray(e)?e.join(" "):e}let Gd={};function Xd(e,{layout:t,layoutId:n}){return bh.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Gd[e]||"opacity"===e)}let qd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Kd=vh.length;function Zd(e,t,n){var o,i,{style:r,vars:a,transformOrigin:s}=e;let l=!1,c=!1;for(o in t){var u=t[o];bh.has(o)?l=!0:Ac(o)?a[o]=u:(u=dd(u,ad[o]),o.startsWith("origin")?(c=!0,s[o]=u):r[o]=u)}t.transform||(l||n?r.transform=function(e,t,n){let o="",i=!0;for(let s=0;s<Kd;s++){var r=vh[s],a=e[r];if(void 0!==a){let e=!0;(e="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a))&&!n||(a=dd(a,ad[r]),e||(i=!1,o+=(qd[r]||r)+`(${a}) `),n&&(t[r]=a))}}return o=o.trim(),n?o=n(t,i?"":o):i&&(o="none"),o}(t,e.transform,n):r.transform&&(r.transform="none")),c&&(({originX:e="50%",originY:n="50%",originZ:i=0}=s),r.transformOrigin=e+` ${n} `+i)}let Qd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Jd(e,t,n){for(var o in t)Cd(t[o])||Xd(o,n)||(e[o]=t[o])}function ep(e,t){var n={};return Jd(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return O.useMemo(()=>{var n={style:{},transform:{},transformOrigin:{},vars:{}};return Zd(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}function tp(e,t){var n={};t=ep(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,t.userSelect=t.WebkitUserSelect=t.WebkitTouchCallout="none",t.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=t,n}let np={offset:"stroke-dashoffset",array:"stroke-dasharray"},op={offset:"strokeDashoffset",array:"strokeDasharray"};function ip(e,{attrX:t,attrY:n,attrScale:o,pathLength:i,pathSpacing:r=1,pathOffset:a=0,...s},l,c,u){Zd(e,s,c),l?e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox):(e.attrs=e.style,e.style={},({attrs:s,style:c}=e),s.transform&&(c.transform=s.transform,delete s.transform),(c.transform||s.transformOrigin)&&(c.transformOrigin=s.transformOrigin??"50% 50%",delete s.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete s.transformBox),void 0!==t&&(s.x=t),void 0!==n&&(s.y=n),void 0!==o&&(s.scale=o),void 0!==i&&function(e,t,n=1,o=0,i=!0){e.pathLength=1,e[(i=i?np:op).offset]=Xc.transform(-o),o=Xc.transform(t),t=Xc.transform(n),e[i.array]=o+" "+t}(s,i,r,a,!1))}let rp=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),ap=e=>"string"==typeof e&&"svg"===e.toLowerCase();function sp(e,t,n,o){var i,r=O.useMemo(()=>{var n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return ip(n,t,ap(o),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);return e.style&&(Jd(i={},e.style,e),r.style={...i,...r.style}),r}let lp=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function cp(e){return"string"==typeof e&&!e.includes("-")&&!!(-1<lp.indexOf(e)||/[A-Z]/u.test(e))}function up(e,t,n,{latestValues:o},i,r=!1){o=(cp(e)?sp:tp)(t,o,i,e),i=function(e,t,n){var o,i={};for(o in e)"values"===o&&"object"==typeof e.values||($d(o)||!0===n&&Id(o)||!t&&!Id(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}(t,"string"==typeof e,r),r=e!==O.Fragment?{...i,...o,ref:n}:{};let a=t.children;return i=O.useMemo(()=>Cd(a)?a.get():a,[a]),O.createElement(e,{...r,children:i})}function hp(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function dp(e,t,n,o){var i,r;return"function"==typeof t&&([i,r]=hp(o),t=t(void 0!==n?n:e.custom,i,r)),"function"==typeof(t="string"==typeof t?e.variants&&e.variants[t]:t)&&([i,r]=hp(o),t=t(void 0!==n?n:e.custom,i,r)),t}function pp(e){return Cd(e)?e.get():e}function fp(e,t,n,o){var i,r={},a=o(e,{});for(i in a)r[i]=pp(a[i]);let{initial:s,animate:l}=e;o=Bd(e);var c=Ud(e),u=(t&&c&&!o&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===l)&&(l=t.animate),!!n&&!1===n.initial);if((c=(u=u||!1===s)?l:s)&&"boolean"!=typeof c&&!Vd(c)){var h=Array.isArray(c)?c:[c];for(let t=0;t<h.length;t++){var d=dp(e,h[t]);if(d){let{transitionEnd:e,transition:t,...n}=d;for(var p in n){let e=n[p];Array.isArray(e)&&(e=e[u?e.length-1:0]),null!==e&&(r[p]=e)}for(var f in e)r[f]=e[f]}}}return r}let mp=e=>(t,n)=>{let o=O.useContext(Fd),i=O.useContext(jl);var r=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,i){return{latestValues:fp(n,o,i,e),renderState:t()}}(e,t,o,i);return n?r():function(e){var t=O.useRef(null);return null===t.current&&(t.current=e()),t.current}(r)};function gp(e,t,n){var o,i=e.style,r={};for(o in i)(Cd(i[o])||t.style&&Cd(t.style[o])||Xd(o,e)||void 0!==n?.getValue(o)?.liveStyle)&&(r[o]=i[o]);return r}let vp=mp({scrapeMotionValuesFromProps:gp,createRenderState:Qd});function bp(e,t,n){var o,i=gp(e,t,n);for(o in e)(Cd(e[o])||Cd(t[o]))&&(i[-1!==vh.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=e[o]);return i}let yp=mp({scrapeMotionValuesFromProps:bp,createRenderState:rp}),_p=Symbol.for("motionComponentSymbol");function wp(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function xp(e,t,n){return O.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&("function"==typeof n?n(o):wp(n)&&(n.current=o))},[t])}let kp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Sp="data-"+kp("framerAppearId"),Ep=O.createContext({});function Tp(e,t,n,o,i){var r=O.useContext(Fd).visualElement,a=O.useContext(Nd);let s=O.useContext(jl);var l=O.useContext(Md).reducedMotion,c=O.useRef(null);o=o||a.renderer,!c.current&&o&&(c.current=o(e,{visualState:t,parent:r,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));let u=c.current;a=O.useContext(Ep),!u||u.projection||!i||"html"!==u.type&&"svg"!==u.type||function(e,t,n,o){var{layoutId:i,layout:r,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Pp(e.parent)),e.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:Boolean(a)||s&&wp(s),visualElement:e,animationType:"string"==typeof r?r:"both",initialPromotionConfig:o,crossfade:u,layoutScroll:l,layoutRoot:c})}(c.current,n,i,a);let h=O.useRef(!1),d=(O.useInsertionEffect(()=>{u&&h.current&&u.update(n,s)}),n[Sp]),p=O.useRef(Boolean(d)&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return Vl(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),p.current)&&u.animationState&&u.animationState.animateChanges()}),O.useEffect(()=>{u&&(!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),p.current=!1),u.enteringChildren=void 0)}),u}function Pp(e){if(e)return!1!==e.options.allowProjection?e.projection:Pp(e.parent)}function Op(e,{forwardMotionProps:t=!1}={},n,o){n&&function(e){for(var t in e)Dd[t]={...Dd[t],...e[t]}}(n);let i=cp(e)?yp:vp;function r(n,r){let a;var s,l={...O.useContext(Md),...n,layoutId:Cp(n)},c=l.isStatic,u=Yd(n),h=i(n,c);return!c&&Fl&&(O.useContext(Nd).strict,s=function(e){var t,{drag:n,layout:o}=Dd;return n||o?(t={...n,...o},{MeasureLayout:n?.isEnabled(e)||o?.isEnabled(e)?t.MeasureLayout:void 0,ProjectionNode:t.ProjectionNode}):{}}(l),a=s.MeasureLayout,u.visualElement=Tp(e,h,l,o,s.ProjectionNode)),b.jsxs(Fd.Provider,{value:u,children:[a&&u.visualElement?b.jsx(a,{visualElement:u.visualElement,...l}):null,up(e,n,xp(h,u.visualElement,r),h,c,t)]})}return r.displayName="motion."+("string"==typeof e?e:`create(${e.displayName??e.name??""})`),(n=O.forwardRef(r))[_p]=e,n}function Cp({layoutId:e}){var t=O.useContext($l).id;return t&&void 0!==e?t+"-"+e:e}function Ap({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function Mp(e){return void 0===e||1===e}function Np({scale:e,scaleX:t,scaleY:n}){return!Mp(e)||!Mp(t)||!Mp(n)}function Lp(e){return Np(e)||Dp(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Dp(e){return Rp(e.x)||Rp(e.y)}function Rp(e){return e&&"0%"!==e}function Ip(e,t,n){return n+t*(e-n)}function $p(e,t,n,o,i){return void 0!==i&&(e=Ip(e,i,o)),Ip(e,n,o)+t}function Fp(e,t=0,n=1,o,i){e.min=$p(e.min,t,n,o,i),e.max=$p(e.max,t,n,o,i)}function Vp(e,{x:t,y:n}){Fp(e.x,t.translate,t.scale,t.originPoint),Fp(e.y,n.translate,n.scale,n.originPoint)}let jp=.999999999999,Hp=1.0000000000001;function zp(e,t){e.min=e.min+t,e.max=e.max+t}function Bp(e,t,n,o,i=.5){Fp(e,t,n,hu(e.min,e.max,i),o)}function Up(e,t){Bp(e.x,t.x,t.scaleX,t.scale,t.originX),Bp(e.y,t.y,t.scaleY,t.scale,t.originY)}function Yp(e,t){return Ap(function(e,t){var n;return t?(n=t({x:e.left,y:e.top}),t=t({x:e.right,y:e.bottom}),{top:n.y,left:n.x,bottom:t.y,right:t.x}):e}(e.getBoundingClientRect(),t))}let Wp=()=>({x:{min:0,max:0},y:{min:0,max:0}}),Gp={current:null},Xp={current:!1};let qp=new WeakMap;let Kp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Zp{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:i,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ch,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{var e=Oc.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,kc.render(this.render,!1,!0))};var s,{latestValues:l,renderState:r}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=r,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=Bd(t),this.isVariantNode=Ud(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);let{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(s in u){var h=u[s];void 0!==l[s]&&Cd(h)&&h.set(l[s])}}mount(e){this.current=e,qp.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Xp.current||function(){if(Xp.current=!0,Fl)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)");var e=()=>Gp.current=t.matches;t.addEventListener("change",e),e()}else Gp.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Gp.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(var e in this.projection&&this.projection.unmount(),Sc(this.notifyUpdate),Sc(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(var t in this.features)(t=this.features[t])&&(t.unmount(),t.isMounted=!1);this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n,o=bh.has(e),i=(o&&this.onBindTransform&&this.onBindTransform(),t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&kc.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}));window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Dd){var t,n=Dd[e];n&&(({isEnabled:n,Feature:t}=n),!this.features[e]&&t&&n(this.props)&&(this.features[e]=new t(this)),this.features[e])&&((n=this.features[e]).isMounted?n.update():(n.mount(),n.isMounted=!0))}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Kp.length;t++){var n,o=Kp[t];(n=e[n=(this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]),"on"+o)])&&(this.propEventSubscriptions[o]=this.on(o,n))}this.prevMotionValues=function(e,t,n){for(var o in t){var i=t[o],r=n[o];Cd(i)?e.addValue(o,i):Cd(r)?e.addValue(o,fd(i,{owner:e})):r!==i&&(e.hasValue(o)?!0===(r=e.getValue(o)).liveStyle?r.jump(i):r.hasAnimated||r.set(i):(r=e.getStaticValue(o),e.addValue(o,fd(void 0!==r?r:i,{owner:e}))))}for(var a in n)void 0===t[a]&&e.removeValue(a);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){var n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);var t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=fd(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(Yl(n)||Gl(n))?n=parseFloat(n):!(e=>Ad.find(Zh(e)))(n)&&lu.test(t)&&(n=cd(e,t)),this.setBaseTarget(e,Cd(n)?n.get():n)),Cd(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t,n=this.props.initial;let o;return"string"!=typeof n&&"object"!=typeof n||(t=dp(this.props,n,this.presenceContext?.custom))&&(o=t[e]),n&&void 0!==o?o:void 0===(t=this.getBaseTargetFromProps(this.props,e))||Cd(t)?void 0!==this.initialValues[e]&&void 0===o?void 0:this.baseTarget[e]:t}on(e,t){return this.events[e]||(this.events[e]=new Jl),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){md.render(this.render)}}class Qp extends Zp{constructor(){super(...arguments),this.KeyframeResolver=hd}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);var e=this.props.children;Cd(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=""+e)}))}}function Jp(e,{style:t,vars:n},o,i){var r=e.style;let a;for(a in t)r[a]=t[a];for(a in i?.applyProjectionStyles(r,o),n)r.setProperty(a,n[a])}class ef extends Qp{constructor(){super(...arguments),this.type="html",this.renderInstance=Jp}readValueFromInstance(e,t){return bh.has(t)?this.projection?.isProjecting?fh(t):((e,t)=>{var{transform:e="none"}=getComputedStyle(e);return mh(e,t)})(e,t):(e=function(e){return window.getComputedStyle(e)}(e),"string"==typeof(e=(Ac(t)?e.getPropertyValue(t):e[t])||0)?e.trim():e)}measureInstanceViewportBox(e,{transformPagePoint:t}){return Yp(e,t)}build(e,t,n){Zd(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return gp(e,t,n)}}let tf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class nf extends Qp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wp}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){var n;return bh.has(t)?(n=ld(t))&&n.default||0:(t=tf.has(t)?t:kp(t),e.getAttribute(t))}scrapeMotionValuesFromProps(e,t,n){return bp(e,t,n)}build(e,t,n){ip(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,o){!function(e,t,n,o){for(var i in Jp(e,t,void 0,o),t.attrs)e.setAttribute(tf.has(i)?i:kp(i),t.attrs[i])}(e,t,0,o)}mount(e){this.isSVGTag=ap(e.tagName),super.mount(e)}}function of(e,t,n){var o=e.getProps();return dp(o,t,void 0!==n?n:o.custom,e)}let rf=e=>Array.isArray(e);function af(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fd(n))}function sf(e){return rf(e)?e[e.length-1]||0:e}function lf(e,t){var n=e.getValue("willChange");if(function(e){return Boolean(Cd(e)&&e.add)}(n))return n.add(t);!n&&Ul.WillChange&&(n=new Ul.WillChange("auto"),e.addValue("willChange",n),n.add(t))}function cf(e){return e.props[Sp]}let uf=e=>null!==e;let hf={type:"spring",stiffness:500,damping:25,restSpeed:10},df={type:"keyframes",duration:.8},pf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ff=(e,{keyframes:t})=>2<t.length?df:bh.has(e)?e.startsWith("scale")?(e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}))(t[1]):hf:pf;let mf=(e,t,n,o={},i,r)=>a=>{let s=qh(o,e)||{};var l=s.delay||o.delay||0,{elapsed:c=0}=o;c-=ec(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:r?void 0:i},h=(function({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:i,repeat:r,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(s)||Object.assign(u,ff(e,u)),u.duration&&(u.duration=ec(u.duration)),u.repeatDelay&&(u.repeatDelay=ec(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from),!1);if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(Bh(u),0!==u.delay)||(h=!0),(Ul.instantAnimations||Ul.skipAnimations)&&(h=!0,Bh(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,h&&!r&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"}){return(e=e.filter(uf))[t&&"loop"!==n&&t%2==1?0:e.length-1]}(u.keyframes,s);if(void 0!==e)return void kc.update(()=>{u.onUpdate(e),u.onComplete()})}return new(s.isSync?ah:Wh)(u)};function gf({protectedKeys:e,needsAnimating:t},n){return e=e.hasOwnProperty(n)&&!0!==t[n],t[n]=!1,e}function vf(e,t,{delay:n=0,transitionOverride:o,type:i}={}){let{transition:r=e.getDefaultTransition(),transitionEnd:a,...s}=t;o&&(r=o);var l,c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(l in s){var h=e.getValue(l,e.latestValues[l]??null),d=s[l];if(!(void 0===d||u&&gf(u,l))){var p={delay:n,...qh(r||{},l)},f=h.get();if(void 0===f||h.isAnimating||Array.isArray(d)||d!==f||p.velocity){let t=!1;window.MotionHandoffAnimation&&(f=cf(e))&&null!==(f=window.MotionHandoffAnimation(f,l,kc))&&(p.startTime=f,t=!0),lf(e,l),h.start(mf(l,h,d,e.shouldReduceMotion&&Kh.has(l)?{type:!1}:p,e,t)),(f=h.animation)&&c.push(f)}}}return a&&Promise.all(c).then(()=>{kc.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:o,...i}=of(e,t)||{};for(var r in i={...i,...n})af(e,r,sf(i[r]))}(e,a)})}),c}function bf(e,t,n,o=0,i=1){t=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t);var r=((e=e.size)-1)*o;return"function"==typeof n?n(t,e):1===i?t*o:r-t*o}function yf(e,t,n={}){let o=of(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);var r=o?()=>Promise.all(vf(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(o=0)=>{var{delayChildren:r=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,o=0,i=0,r=1,a){var s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(yf(l,t,{...a,delay:n+("function"==typeof o?0:o)+bf(e.variantChildren,l,o,i,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,o,r,a,s,n)}:()=>Promise.resolve(),s=i.when;if(s){let[e,t]="beforeChildren"===s?[r,a]:[a,r];return e().then(()=>t())}return Promise.all([r(),a(n.delay)])}function _f(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}let wf=zd.length;function xf(e){if(e){if(!e.isControllingVariants){let t=e.parent&&xf(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}let o={};for(let i=0;i<wf;i++){var t=zd[i],n=e.props[t];!jd(n)&&!1!==n||(o[t]=n)}return o}}let kf=[...Hd].reverse(),Sf=Hd.length;function Ef(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let o;var i;return e.notify("AnimationStart",t),(o=Array.isArray(t)?(i=t.map(t=>yf(e,t,n)),Promise.all(i)):"string"==typeof t?yf(e,t,n):(i="function"==typeof t?of(e,t,n.custom):t,Promise.all(vf(e,i,n)))).then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}function Tf(e){let t=Ef(e),n=Cf(),o=!0;function i(i){var r,a=e.props,s=xf(e.parent)||{},l=[];let c=new Set,u={},h=1/0;for(let t=0;t<Sf;t++){let r=kf[t],w=n[r];var d=(void 0!==a[r]?a:s)[r],p=jd(d),f=r===i?w.isActive:null;!1===f&&(h=t);let x=d===s[r]&&d!==a[r]&&p;if(x&&o&&e.manuallyAnimateOnMount&&(x=!1),w.protectedKeys={...u},(w.isActive||null!==f)&&(d||w.prevProp)&&!Vd(d)&&"boolean"!=typeof d){var m=Pf(w.prevProp,d);let n=m||r===i&&w.isActive&&!x&&p||t>h&&p,a=!1,s=(p=Array.isArray(d)?d:[d]).reduce((t=>(n,o)=>{if(o=of(e,o,"exit"===t?e.presenceContext?.custom:void 0)){let{transition:e,transitionEnd:t,...i}=o;n={...n,...i,...t}}return n})(r),{});!1===f&&(s={});var g,{prevResolvedValues:v={}}=w,b=t=>{n=!0,c.has(t)&&(a=!0,c.delete(t)),w.needsAnimating[t]=!0,(t=e.getValue(t))&&(t.liveStyle=!1)};for(g in{...v,...s}){var y=s[g],_=v[g];if(!u.hasOwnProperty(g)){let e=!1;(e=rf(y)&&rf(_)?!_f(y,_):y!==_)?null!=y?b(g):c.add(g):void 0!==y&&c.has(g)?b(g):w.protectedKeys[g]=!0}}w.prevProp=d,w.prevResolvedValues=s,w.isActive&&(u={...u,...s}),o&&e.blockInitialAnimation&&(n=!1);let k=x&&m;f=!k||a,n&&f&&l.push(...p.map(t=>{var n,i,a={type:r};return"string"==typeof t&&o&&!k&&e.manuallyAnimateOnMount&&e.parent&&(i=of(n=e.parent,t),n.enteringChildren)&&i&&(i=(i.transition||{}).delayChildren,a.delay=bf(n.enteringChildren,e,i)),{animation:t,options:a}}))}}if(c.size){let t={};"boolean"!=typeof a.initial&&(r=of(e,Array.isArray(a.initial)?a.initial[0]:a.initial))&&r.transition&&(t.transition=r.transition),c.forEach(n=>{var o=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=o??null}),l.push({animation:t})}let w=Boolean(l.length);return!o||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(w=!1),o=!1,w?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,o){if(n[t].isActive===o)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,o)),n[t].isActive=o;var r,a=i(t);for(r in n)n[r].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Cf(),o=!0}}}function Pf(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!_f(t,e)}function Of(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cf(){return{animate:Of(!0),whileInView:Of(),whileHover:Of(),whileTap:Of(),whileDrag:Of(),whileFocus:Of(),exit:Of()}}class Af{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Mf=0;let Nf={animation:{Feature:class extends Af{constructor(e){super(e),e.animationState||(e.animationState=Tf(e))}updateAnimationControlsSubscription(){var e=this.node.getProps().animate;Vd(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==(this.node.prevProps||{}).animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Af{constructor(){super(...arguments),this.id=Mf++}update(){if(this.node.presenceContext){let{isPresent:t,onExitComplete:n}=this.node.presenceContext;var e=(this.node.prevPresenceContext||{}).isPresent;this.node.animationState&&t!==e&&(e=this.node.animationState.setActive("exit",!t),n)&&!t&&e.then(()=>{n(this.id)})}}mount(){var{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Lf(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Df(e){return{point:{x:e.pageX,y:e.pageY}}}function Rf(e,t,n,o){return Lf(e,t,(e=>t=>wd(t)&&e(t,Df(t)))(n),o)}function If(e){return e.max-e.min}function $f(e,t,n,o=.5){e.origin=o,e.originPoint=hu(t.min,t.max,e.origin),e.scale=If(n)/If(t),e.translate=hu(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function Ff(e,t,n,o){$f(e.x,t.x,n.x,o?o.originX:void 0),$f(e.y,t.y,n.y,o?o.originY:void 0)}function Vf(e,t,n){e.min=n.min+t.min,e.max=e.min+If(t)}function jf(e,t,n){e.min=t.min-n.min,e.max=e.min+If(t)}function Hf(e,t,n){jf(e.x,t.x,n.x),jf(e.y,t.y,n.y)}function zf(e){return[e("x"),e("y")]}let Bf=({current:e})=>e?e.ownerDocument.defaultView:null,Uf=(e,t)=>Math.abs(e-t);class Yf{constructor(e,t,{transformPagePoint:n,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:r=3}={}){this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t,n,o;this.lastMoveEvent&&this.lastMoveEventInfo&&(e=Xf(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){var n=Uf(e.x,t.x);return e=Uf(e.y,t.y),Math.sqrt(n**2+e**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold,t||n)&&(n=e.point,o=Ec.timestamp,({onStart:n,onMove:o}=(this.history.push({...n,timestamp:o}),this.handlers)),t||(n&&n(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o)&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Wf(t,this.transformPagePoint),kc.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();var{onEnd:n,onSessionEnd:o,resumeAnimation:i}=this.handlers;this.dragSnapToOrigin&&i&&i(),this.lastMoveEvent&&this.lastMoveEventInfo&&(i=Xf("pointercancel"===e.type?this.lastMoveEventInfo:Wf(t,this.transformPagePoint),this.history),this.startEvent&&n&&n(e,i),o)&&o(e,i)},wd(e)&&(this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=r,this.contextWindow=o||window,n=(i=Wf(Df(e),this.transformPagePoint)).point,r=Ec.timestamp,(o=(this.history=[{...n,timestamp:r}],t).onSessionStart)&&o(e,Xf(i,this.history)),this.removeListeners=Zl(Rf(this.contextWindow,"pointermove",this.handlePointerMove),Rf(this.contextWindow,"pointerup",this.handlePointerUp),Rf(this.contextWindow,"pointercancel",this.handlePointerUp)))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Sc(this.updatePoint)}}function Wf(e,t){return t?{point:t(e.point)}:e}function Gf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xf({point:e},t){return{point:e,delta:Gf(e,Kf(t)),offset:Gf(e,qf(t)),velocity:Zf(t,.1)}}function qf(e){return e[0]}function Kf(e){return e[e.length-1]}function Zf(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;for(var i,r=Kf(e);0<=n&&(o=e[n],!(r.timestamp-o.timestamp>ec(t)));)n--;return o&&0!==(i=tc(r.timestamp-o.timestamp))?((i={x:(r.x-o.x)/i,y:(r.y-o.y)/i}).x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i):{x:0,y:0}}function Qf(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Jf(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}let em=.35;function tm(e,t,n){return{min:nm(e,t),max:nm(e,n)}}function nm(e,t){return"number"==typeof e?e:e[t]||0}let om=new WeakMap;class im{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){var o=this.visualElement.presenceContext;o&&!1===o.isPresent||(o=this.getProps().dragSnapToOrigin,this.panSession=new Yf(e,{onSessionStart:e=>{this.getProps().dragSnapToOrigin?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Df(e).point)},onStart:(e,t)=>{let{drag:n,dragPropagation:o,onDragStart:i}=this.getProps();var r;(!n||o||(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){return"x"===e||"y"===e?gd[e]?null:(gd[e]=!0,()=>{gd[e]=!1}):gd.x||gd.y?null:(gd.x=gd.y=!0,()=>{gd.x=gd.y=!1})}(n),this.openDragLock))&&(this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zf(e=>{let t=this.getAxisMotionValue(e).get()||0;var n;Gc.test(t)&&(n=this.visualElement.projection)&&n.layout&&(n=n.layout.layoutBox[e])&&(t=(n=If(n))*(parseFloat(t)/100)),this.originPoint[e]=t}),i&&kc.postRender(()=>i(e,t)),lf(this.visualElement,"transform"),r=this.visualElement.animationState)&&r.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;var{dragPropagation:n,dragDirectionLock:o,onDirectionLock:i,onDrag:r}=this.getProps();(n||this.openDragLock)&&(n=t.offset,o&&null===this.currentDirection?(this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(n),null!==this.currentDirection&&i&&i(this.currentDirection)):(this.updateAxis("x",t.point,n),this.updateAxis("y",t.point,n),this.visualElement.render(),r&&r(e,t)))},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>zf(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:Bf(this.visualElement)}))}stop(e,t){let n=e||this.latestPointerEvent,o=t||this.latestPanInfo;if(e=this.isDragging,this.cancel(),e&&o&&n){t=o.velocity,this.startAnimation(t);let e=this.getProps().onDragEnd;e&&kc.postRender(()=>e(n,o))}}cancel(){this.isDragging=!1;var e,{projection:e,animationState:t}=this.visualElement;!(e=(e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0,this.getProps()).dragPropagation)&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){var o=this.getProps().drag;if(n&&rm(e,o,this.currentDirection)){o=this.getAxisMotionValue(e);let t=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(t=function(e,{min:t,max:n},o){return void 0!==t&&e<t?e=o?hu(t,e,o.min):Math.max(e,t):void 0!==n&&n<e&&(e=o?hu(n,e,o.max):Math.min(e,n)),e}(t,this.constraints[e],this.elastic[e])),o.set(t)}}resolveConstraints(){var{dragConstraints:e,dragElastic:t}=this.getProps();let n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout;var o=this.constraints;e&&wp(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:o,right:i}){return{x:Qf(e.x,n,i),y:Qf(e.y,t,o)}}(n.layoutBox,e),this.elastic=function(e=em){return!1===e?e=0:!0===e&&(e=em),{x:tm(e,"left","right"),y:tm(e,"top","bottom")}}(t),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&zf(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!wp(e))return!1;var e=e.current,n=this.visualElement.projection;if(!n||!n.layout)return!1;e=function(e,t,n){return e=Yp(e,n),(n=t.scroll)&&(zp(e.x,n.offset.x),zp(e.y,n.offset.y)),e}(e,n.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:Jf(e.x,t.x),y:Jf(e.y,t.y)}}(n.layout.layoutBox,e);return t&&(n=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o)),this.hasMutatedConstraints=!!n,n)?Ap(n):o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};var l=zf(a=>{if(rm(a,t,this.currentDirection)){let t=s&&s[a]||{};r&&(t={min:0,max:0});var l=o?200:1e6,c=o?40:1e7;l={type:"inertia",velocity:n?e[a]:0,bounceStiffness:l,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...t};return this.startAxisValueAnimation(a,l)}});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){var n=this.getAxisMotionValue(e);return lf(this.visualElement,e),n.start(mf(e,n,0,t,this.visualElement,!1))}stopAnimation(){zf(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){zf(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){var t="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return(t=n[t])||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){zf(t=>{var n,o,i=this.getProps().drag;rm(t,i,this.currentDirection)&&(i=this.visualElement.projection,n=this.getAxisMotionValue(t),i)&&i.layout&&(({min:i,max:o}=i.layout.layoutBox[t]),n.set(e[t]-hu(i,o,.5)))})}scalePositionWithinConstraints(){if(this.visualElement.current){let{drag:n,dragConstraints:o}=this.getProps();var e=this.visualElement.projection;if(wp(o)&&e&&this.constraints){this.stopAnimation();let o={x:0,y:0};zf(e=>{var t=this.getAxisMotionValue(e);t&&!1!==this.constraints&&(t=t.get(),o[e]=function(e,t){let n=.5;var o=If(e),i=If(t);return o<i?n=Ql(t.min,t.max-o,e.min):i<o&&(n=Ql(e.min,e.max-i,t.min)),Bl(0,1,n)}({min:t,max:t},this.constraints[e]))});var t=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=t?t({},""):"none",e.root&&e.root.updateScroll(),e.updateLayout(),this.resolveConstraints(),zf(e=>{var t,i,r;rm(e,n,null)&&(t=this.getAxisMotionValue(e),({min:i,max:r}=this.constraints[e]),t.set(hu(i,r,o[e])))})}}}addListeners(){if(this.visualElement.current){om.set(this.visualElement,this);let n=Rf(this.visualElement.current,"pointerdown",e=>{var{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)});var e=()=>{var e=this.getProps().dragConstraints;wp(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},t=this.visualElement.projection;let o=t.addEventListener("measure",e),i=(t&&!t.layout&&(t.root&&t.root.updateScroll(),t.updateLayout()),kc.read(e),Lf(window,"resize",()=>this.scalePositionWithinConstraints())),r=t.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(zf(t=>{var n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),n(),o(),r&&r()}}}getProps(){var e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:r=em,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:r,dragMomentum:a}}}function rm(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}let am=e=>(t,n)=>{e&&kc.postRender(()=>e(t,n))};let sm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let cm={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Xc.test(e))return e;e=parseFloat(e)}return lm(e,t.target.x)+`% ${lm(e,t.target.y)}%`}},um={correct:(e,{treeScale:t,projectionDelta:n})=>{var o,i=e,r=lu.parse(e);return 5<r.length?i:(i=lu.createTransformer(e),e="number"!=typeof r[0]?1:0,o=n.x.scale*t.x,n=n.y.scale*t.y,r[0+e]/=o,r[1+e]/=n,t=hu(o,n,.5),"number"==typeof r[2+e]&&(r[2+e]/=t),"number"==typeof r[3+e]&&(r[3+e]/=t),i(r))}},hm=!1;class dm extends O.Component{componentDidMount(){var{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:o}=this.props,e=e.projection;(function(e){for(var t in e)Gd[t]=e[t],Ac(t)&&(Gd[t].isCSSVariable=!0)})(fm),e&&(t.group&&t.group.add(e),n&&n.register&&o&&n.register(e),hm&&e.root.didUpdate(),e.addEventListener("animationComplete",()=>{this.safeToRemove()}),e.setOptions({...e.options,onExitComplete:()=>this.safeToRemove()})),sm.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){var{layoutDependency:t,visualElement:n,drag:o,isPresent:i}=this.props;let r=n.projection;return r&&(r.isPresent=i,hm=!0,o||e.layoutDependency!==t||void 0===t||e.isPresent!==i?r.willUpdate():this.safeToRemove(),e.isPresent!==i)&&(i?r.promote():r.relegate()||kc.postRender(()=>{var e=r.getStack();e&&e.members.length||this.safeToRemove()})),null}componentDidUpdate(){let e=this.props.visualElement.projection;e&&(e.root.didUpdate(),md.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){var{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,e=e.projection;hm=!0,e&&(e.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(e),n)&&n.deregister&&n.deregister(e)}safeToRemove(){var e=this.props.safeToRemove;e&&e()}render(){return null}}function pm(e){var[t,n]=function(e=!0){var t=O.useContext(jl);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:o,register:i}=t,r=O.useId();return O.useEffect(()=>{if(e)return i(r)},[e]),t=O.useCallback(()=>e&&o&&o(r),[r,o,e]),!n&&o?[!1,t]:[!0]}(),o=O.useContext($l);return b.jsx(dm,{...e,layoutGroup:o,switchLayoutGroup:O.useContext(Ep),isPresent:t,safeToRemove:n})}let fm={borderRadius:{...cm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cm,borderTopRightRadius:cm,borderBottomLeftRadius:cm,borderBottomRightRadius:cm,boxShadow:um};let mm=(e,t)=>e.depth-t.depth;class gm{constructor(){this.children=[],this.isDirty=!1}add(e){Hl(this.children,e),this.isDirty=!0}remove(e){zl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(mm),this.isDirty=!1,this.children.forEach(e)}}let vm=["TopLeft","TopRight","BottomLeft","BottomRight"],bm=vm.length,ym=e=>"string"==typeof e?parseFloat(e):e,_m=e=>"number"==typeof e||Xc.test(e);function wm(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let xm=Sm(0,.5,dc),km=Sm(.5,.95,ql);function Sm(e,t,n){return o=>o<e?0:t<o?1:n(Ql(e,t,o))}function Em(e,t){e.min=t.min,e.max=t.max}function Tm(e,t){Em(e.x,t.x),Em(e.y,t.y)}function Pm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Om(e,t,n,o,i){return e=Ip(e-=t,1/n,o),void 0!==i?Ip(e,1/i,o):e}function Cm(e,t,[n,o,i],r,a){!function(e,t=0,n=1,o=.5,i,r=e,a=e){if(Gc.test(t)&&(t=parseFloat(t),t=hu(a.min,a.max,t/100)-a.min),"number"==typeof t){let a=hu(r.min,r.max,o);e===r&&(a-=t),e.min=Om(e.min,t,n,a,i),e.max=Om(e.max,t,n,a,i)}}(e,t[n],t[o],t[i],t.scale,r,a)}let Am=["x","scaleX","originX"],Mm=["y","scaleY","originY"];function Nm(e,t,n,o){Cm(e.x,t,Am,n?n.x:void 0,o?o.x:void 0),Cm(e.y,t,Mm,n?n.y:void 0,o?o.y:void 0)}function Lm(e){return 0===e.translate&&1===e.scale}function Dm(e){return Lm(e.x)&&Lm(e.y)}function Rm(e,t){return e.min===t.min&&e.max===t.max}function Im(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $m(e,t){return Im(e.x,t.x)&&Im(e.y,t.y)}function Fm(e){return If(e.x)/If(e.y)}function Vm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class jm{constructor(){this.members=[]}add(e){Hl(this.members,e),e.scheduleRender()}remove(e){zl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead&&(e=this.members[this.members.length-1])&&this.promote(e)}relegate(e){var t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;0<=e;e--){var o=this.members[e];if(!1!==o.isPresent){n=o;break}}return!!n&&(this.promote(n),!0)}promote(e,t){var n=this.lead;e!==n&&(this.prevLead=n,(this.lead=e).show(),n)&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0),!1===(t=e.options.crossfade))&&n.hide()}exitAnimationComplete(){this.members.forEach(e=>{var{options:e,resumingFrom:t}=e;e.onExitComplete&&e.onExitComplete(),t&&t.options.onExitComplete&&t.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let Hm=["","X","Y","Z"],zm=0;function Bm(e,t,n,o){var i=t.latestValues;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),o)&&(o[e]=0)}function Um(e){var t,n,o;e.hasCheckedOptimisedAppear=!0,e.root!==e&&(t=e.options.visualElement)&&(t=cf(t),o=(window.MotionHasOptimisedAnimation(t,"transform")&&(({layout:o,layoutId:n}=e.options),window.MotionCancelOptimisedAnimation(t,"transform",kc,!(o||n))),e).parent)&&!o.hasCheckedOptimisedAppear&&Um(o)}function Ym({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=zm++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Xm),this.nodes.forEach(tg),this.nodes.forEach(ng),this.nodes.forEach(qm)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new gm)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Jl),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){(e=this.eventHandlers.get(e))&&e.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(!this.instance){this.isSVG=Od(t)&&!function(e){return Od(e)&&"svg"===e.tagName}(t),this.instance=t;let{layoutId:n,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||n)&&(this.isLayoutDirty=!0),e){let n,o=0,i=()=>this.root.updateBlockedByResize=!1;kc.read(()=>{o=window.innerWidth}),e(t,()=>{var e=window.innerWidth;e!==o&&(o=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=Oc.now(),o=({timestamp:i})=>{t<=(i-=n)&&(Sc(o),e(i-t))};return kc.setup(o,!0),()=>Sc(o)}(i,250),sm.hasAnimatedSinceResize)&&(sm.hasAnimatedSinceResize=!1,this.nodes.forEach(eg))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:o})=>{var r,a,s,l;this.isTreeAnimationBlocked()?(this.target=void 0,this.relativeTarget=void 0):(r=this.options.transition||i.getDefaultTransition()||lg,({onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps()),l=!this.targetLayout||!$m(this.targetLayout,o),n=!t&&n,this.options.layoutRoot||this.resumeFrom||n||t&&(l||!this.currentAnimation)?(this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),l={...qh(r,"layout"),onPlay:a,onComplete:s},(i.shouldReduceMotion||this.options.layoutRoot)&&(l.delay=0,l.type=!1),this.startAnimation(l),this.setAnimationOrigin(e,n)):(t||eg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete()),this.targetLayout=o)})}}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);var e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Sc(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(og),this.animationId++)}getTransformTemplate(){var e=this.options.visualElement;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())this.options.onExitComplete&&this.options.onExitComplete();else if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Um(this),this.root.isUpdating||this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){var t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}var{layoutId:n,layout:o}=this.options;(void 0!==n||o)&&(n=this.getTransformTemplate(),this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e)&&this.notifyListeners("willUpdate")}}update(){var e;this.updateScheduled=!1,this.isUpdateBlocked()?(this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Zm)):this.animationId<=this.animationCommitId?this.nodes.forEach(Qm):(this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Jm),this.nodes.forEach(Wm),this.nodes.forEach(Gm)):this.nodes.forEach(Qm),this.clearAllSnapshots(),e=Oc.now(),Ec.delta=Bl(0,1e3/60,e-Ec.timestamp),Ec.timestamp=e,Ec.isProcessing=!0,Tc.update.process(Ec),Tc.preRender.process(Ec),Tc.render.process(Ec),Ec.isProcessing=!1)}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,md.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Km),this.sharedNodes.forEach(ig)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,kc.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){kc.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot)||If(this.snapshot.measuredBox.x)||If(this.snapshot.measuredBox.y)||(this.snapshot=void 0)}updateLayout(){if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();var e=this.layout,t=(this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),this.options).visualElement;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);var i;(t=(!this.scroll||this.scroll.animationId!==this.root.animationId||this.scroll.phase!==e)&&t)&&this.instance&&(i=o(this.instance),this.scroll={animationId:this.root.animationId,phase:e,isRoot:i,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:i})}resetTransform(){var e,t,n,o;i&&(e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Dm(this.projectionDelta),o=(n=(n=this.getTransformTemplate())?n(this.latestValues,""):void 0)!==this.prevTransformTemplateValue,e)&&this.instance&&(t||Lp(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t=this.measurePageBox();let n=this.removeElementScroll(t);return function(e){hg(e.x),hg(e.y)}(n=e?this.removeTransform(n):n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e,t=this.options.visualElement;return t?(t=t.measureViewportBox(),this.scroll?.wasRoot||this.path.some(pg)||(e=this.root.scroll)&&(zp(t.x,e.offset.x),zp(t.y,e.offset.y)),t):{x:{min:0,max:0},y:{min:0,max:0}}}removeElementScroll(e){var t={x:{min:0,max:0},y:{min:0,max:0}};if(Tm(t,e),!this.scroll?.wasRoot)for(let r=0;r<this.path.length;r++){var n=this.path[r],{scroll:o,options:i}=n;n!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&Tm(t,e),zp(t.x,o.offset.x),zp(t.y,o.offset.y))}return t}applyTransform(e,t=!1){var n={x:{min:0,max:0},y:{min:0,max:0}};Tm(n,e);for(let e=0;e<this.path.length;e++){var o=this.path[e];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Up(n,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),Lp(o.latestValues)&&Up(n,o.latestValues)}return Lp(this.latestValues)&&Up(n,this.latestValues),n}removeTransform(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Tm(t,e);for(let e=0;e<this.path.length;e++){var n,o=this.path[e];o.instance&&Lp(o.latestValues)&&(Np(o.latestValues)&&o.updateSnapshot(),Tm(n=Wp(),o.measurePageBox()),Nm(t,o.latestValues,o.snapshot?o.snapshot.layoutBox:void 0,n))}return Lp(this.latestValues)&&Nm(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ec.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty),t=Boolean(this.resumingFrom)||this!==t;(e||t&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize)&&(({layout:e,layoutId:t}=this.options),this.layout&&(e||t)&&(this.resolvedRelativeTargetAt=Ec.timestamp,this.targetDelta||this.relativeTarget||((e=this.getClosestProjectingParent())&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Hf(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Tm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0),this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),function(e,t,n){Vf(e.x,t.x,n.x),Vf(e.y,t.y,n.y)}(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Tm(this.target,this.layout.layoutBox),Vp(this.target,this.targetDelta)):Tm(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget))&&(this.attemptToResolveRelativeTarget=!1,(t=this.getClosestProjectingParent())&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Hf(this.relativeTargetOrigin,this.target,t.target),Tm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0)}getClosestProjectingParent(){if(this.parent&&!Np(this.parent.latestValues)&&!Dp(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e,t,n=this.getLead(),o=Boolean(this.resumingFrom)||this!==n;let i=!0;(this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),(i=this.resolvedRelativeTargetAt!==Ec.timestamp&&i)||(({layout:e,layoutId:t}=this.options),this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(e||t)&&(Tm(this.layoutCorrected,this.layout.layoutBox),e=this.treeScale.x,t=this.treeScale.y,o=(function(e,t,n,o=!1){var i=n.length;if(i){t.x=t.y=1;for(let l=0;l<i;l++){var r,a=(r=n[l]).projectionDelta,s=r.options.visualElement;s&&s.props.style&&"contents"===s.props.style.display||(o&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Up(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Vp(e,a)),o&&Lp(r.latestValues)&&Up(e,r.latestValues))}t.x<Hp&&t.x>jp&&(t.x=1),t.y<Hp&&t.y>jp&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,o),!n.layout||n.target||1===this.treeScale.x&&1===this.treeScale.y||(n.target=n.layout.layoutBox,n.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),n).target,o?(this.projectionDelta&&this.prevProjectionDelta?(Pm(this.prevProjectionDelta.x,this.projectionDelta.x),Pm(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Ff(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===e&&this.treeScale.y===t&&Vm(this.projectionDelta.x,this.prevProjectionDelta.x)&&Vm(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){this.options.visualElement?.scheduleRender(),e&&(e=this.getStack())&&e.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){var n=this.snapshot;let o,i=n?n.latestValues:{},r={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},s=(this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t,{x:{min:0,max:0},y:{min:0,max:0}}),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=!(t=this.getStack())||t.members.length<=1,u=Boolean(l&&!c&&!0===this.options.crossfade&&!this.path.some(sg));this.animationProgress=0,this.mixTargetDelta=t=>{t/=1e3,rg(a.x,e.x,t),rg(a.y,e.y,t),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hf(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,o){ag(e.x,t.x,n.x,o),ag(e.y,t.y,n.y,o)}(this.relativeTarget,this.relativeTargetOrigin,s,t),o&&function(e,t){return Rm(e.x,t.x)&&Rm(e.y,t.y)}(this.relativeTarget,o)&&(this.isProjectionDirty=!1),Tm(o=o||{x:{min:0,max:0},y:{min:0,max:0}},this.relativeTarget)),l&&function(e,t,n,o,i,r){i?(e.opacity=hu(0,n.opacity??1,xm(o)),e.opacityExit=hu(t.opacity??1,0,km(o))):r&&(e.opacity=hu(t.opacity??1,n.opacity??1,o));for(let i=0;i<bm;i++){var a=`border${vm[i]}Radius`;let r=wm(t,a),s=wm(n,a);void 0===r&&void 0===s||(r=r||0,s=s||0,0===r||0===s||_m(r)===_m(s)?(e[a]=Math.max(hu(ym(r),ym(s),o),0),(Gc.test(s)||Gc.test(r))&&(e[a]+="%")):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=hu(t.rotate||0,n.rotate||0,o))}(this.animationValues=r,i,this.latestValues,t,u,c),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=t},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Sc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kc.update(()=>{sm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=fd(0)),this.currentAnimation=function(e,t,n){return(e=Cd(e)?e:fd(e)).start(mf("",e,t,n)),e.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);var e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){var e,t=this.getLead();let{targetWithTransforms:n,target:o,layout:i,latestValues:r}=t;n&&o&&i&&(this!==t&&this.layout&&i&&dg(this.options.animationType,this.layout.layoutBox,i.layoutBox)&&(o=this.target||{x:{min:0,max:0},y:{min:0,max:0}},e=If(this.layout.layoutBox.x),o.x.min=t.target.x.min,o.x.max=o.x.min+e,e=If(this.layout.layoutBox.y),o.y.min=t.target.y.min,o.y.max=o.y.min+e),Tm(n,o),Up(n,r),Ff(this.projectionDeltaWithTransform,this.layoutCorrected,n,r))}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new jm),this.sharedNodes.get(e).add(t),e=t.options.initialPromotionConfig,t.promote({transition:e?e.transition:void 0,preserveFollowOpacity:e&&e.shouldPreserveFollowOpacity?e.shouldPreserveFollowOpacity(t):void 0})}isLead(){var e=this.getStack();return!e||e.lead===this}getLead(){return this.options.layoutId&&this.getStack()?.lead||this}getPrevLead(){return this.options.layoutId?this.getStack()?.prevLead:void 0}getStack(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){var o=this.getStack();o&&o.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){var e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){var e=this.options.visualElement;if(e){let i=!1;var t=e.latestValues;if(i=!!(t.z||t.rotate||t.rotateX||t.rotateY||t.rotateZ||t.skewX||t.skewY)||i){var n,o={};t.z&&Bm("z",e,o,this.animationValues);for(let t=0;t<Hm.length;t++)Bm("rotate"+Hm[t],e,o,this.animationValues),Bm("skew"+Hm[t],e,o,this.animationValues);for(n in e.render(),o)e.setStaticValue(n,o[n]),this.animationValues&&(this.animationValues[n]=o[n]);e.scheduleRender()}}}applyProjectionStyles(e,t){if(this.instance&&!this.isSVG)if(this.isVisible){var n=this.getTransformTemplate();if(this.needsReset)this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=pp(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";else{var o=this.getLead();if(this.projectionDelta&&this.layout&&o.target){e.visibility="";var i=o.animationValues||o.latestValues;this.applyTransformsToTarget();let p=function(e,t,n){let o="";var i,r,a=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;return(a||s||l)&&(o=`translate3d(${a}px, ${s}px, ${l}px) `),1===t.x&&1===t.y||(o+=`scale(${1/t.x}, ${1/t.y}) `),n&&(({transformPerspective:a,rotate:s,rotateX:l,rotateY:n,skewX:i,skewY:r}=n),a&&(o=`perspective(${a}px) `+o),s&&(o+=`rotate(${s}deg) `),l&&(o+=`rotateX(${l}deg) `),n&&(o+=`rotateY(${n}deg) `),i&&(o+=`skewX(${i}deg) `),r)&&(o+=`skewY(${r}deg) `),a=e.x.scale*t.x,s=e.y.scale*t.y,1==a&&1==s||(o+=`scale(${a}, ${s})`),o||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(p=n(i,p)),e.transform=p;var r,{x:a,y:s}=this.projectionDelta;for(r in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,o.animationValues?e.opacity=o===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=o===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,Gd)if(void 0!==i[r]){var{correct:l,applyTo:c,isCSSVariable:u}=Gd[r],h="none"===p?i[r]:l(i[r],o);if(c){var d=c.length;for(let t=0;t<d;t++)e[c[t]]=h}else u?this.options.visualElement.renderState.vars[r]=h:e[r]=h}this.options.layoutId&&(e.pointerEvents=o===this?pp(t?.pointerEvents)||"":"none")}else this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=pp(t?.pointerEvents)||""),this.hasProjected&&!Lp(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1)}}else e.visibility="hidden"}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Zm),this.root.sharedNodes.clear()}}}function Wm(e){e.updateLayout()}function Gm(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:c,measuredBox:u}=e.layout;var n=e.options.animationType;let h=t.source!==e.layout.source;"size"===n?zf(e=>{var n=(h?t.measuredBox:t.layoutBox)[e],o=If(n);n.min=c[e].min,n.max=n.min+o}):dg(n,t.layoutBox,c)&&zf(n=>{var o=(h?t.measuredBox:t.layoutBox)[n],i=If(c[n]);o.max=o.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+i)});var o,i,r,a=(Ff(n={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},c,t.layoutBox),{x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),s=(h?Ff(a,e.applyTransform(u,!0),t.measuredBox):Ff(a,c,t.layoutBox),!Dm(n));let d=!1;e.resumeFrom||(o=e.getClosestProjectingParent())&&!o.resumeFrom&&(({snapshot:r,layout:l}=o),r)&&l&&(Hf(i={x:{min:0,max:0},y:{min:0,max:0}},t.layoutBox,r.layoutBox),Hf(r={x:{min:0,max:0},y:{min:0,max:0}},c,l.layoutBox),$m(i,r)||(d=!0),o.options.layoutRoot)&&(e.relativeTarget=r,e.relativeTargetOrigin=i,e.relativeParent=o),e.notifyListeners("didUpdate",{layout:c,snapshot:t,delta:a,layoutDelta:n,hasLayoutChanged:s,hasRelativeLayoutChanged:d})}else{var l;e.isLead()&&(l=e.options.onExitComplete)&&l()}e.options.transition=void 0}function Xm(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function qm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Km(e){e.clearSnapshot()}function Zm(e){e.clearMeasurements()}function Qm(e){e.isLayoutDirty=!1}function Jm(e){var t=e.options.visualElement;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function eg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tg(e){e.resolveTargetDelta()}function ng(e){e.calcProjection()}function og(e){e.resetSkewAndRotation()}function ig(e){e.removeLeadSnapshot()}function rg(e,t,n){e.translate=hu(t.translate,0,n),e.scale=hu(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ag(e,t,n,o){e.min=hu(t.min,n.min,o),e.max=hu(t.max,n.max,o)}function sg(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let lg={duration:.45,ease:[.4,0,.1,1]},cg=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ug=cg("applewebkit/")&&!cg("chrome/")?Math.round:ql;function hg(e){e.min=ug(e.min),e.max=ug(e.max)}function dg(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n){return Math.abs(e-t)<=n}(Fm(t),Fm(n),.2)}function pg(e){return e!==e.root&&e.scroll?.wasRoot}let fg=Ym({attachResizeListener:(e,t)=>Lf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),mg={current:void 0},gg=Ym({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{var e;return mg.current||((e=new fg({})).mount(window),e.setOptions({layoutScroll:!0}),mg.current=e),mg.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),vg={pan:{Feature:class extends Af{constructor(){super(...arguments),this.removePointerDownListener=ql}onPointerDown(e){this.session=new Yf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bf(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:am(e),onStart:am(t),onMove:n,onEnd:(e,t)=>{delete this.session,o&&kc.postRender(()=>o(e,t))}}}mount(){this.removePointerDownListener=Rf(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Af{constructor(e){super(e),this.removeGroupControls=ql,this.removeListeners=ql,this.controls=new im(e)}mount(){var e=this.node.getProps().dragControls;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ql}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:gg,MeasureLayout:pm}};function bg(e,t,n){var o=e.props;let i=o[e=(e.animationState&&o.whileHover&&e.animationState.setActive("whileHover","Start"===n),"onHover"+n)];i&&kc.postRender(()=>i(t,Df(t)))}function yg(e,t,n){var o=e.props;if(!(e.current instanceof HTMLButtonElement&&e.current.disabled)){e.animationState&&o.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=o["onTap"+("End"===n?"":n)];i&&kc.postRender(()=>i(t,Df(t)))}}let _g=new WeakMap,wg=new WeakMap,xg=e=>{var t=_g.get(e.target);t&&t(e)},kg=e=>{e.forEach(xg)};function Sg(e,t,n){let o=function({root:e,...t}){var n=e||document,o=(wg.has(n)||wg.set(n,{}),n=wg.get(n),JSON.stringify(t));return n[o]||(n[o]=new IntersectionObserver(kg,{root:e,...t})),n[o]}(t);return _g.set(e,n),o.observe(e),()=>{_g.delete(e),o.unobserve(e)}}let Eg={some:0,all:1};let Tg={inView:{Feature:class extends Af{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();var{viewport:e={}}=this.node.getProps();let{root:t,margin:n,amount:o="some",once:i}=e;return e={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:Eg[o]},Sg(this.node.current,e,e=>{var t,n,o=e.isIntersecting;this.isInView!==o&&(this.isInView=o,!i||o||!this.hasEnteredView)&&(o&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",o),({onViewportEnter:t,onViewportLeave:n}=this.node.getProps()),o=o?t:n)&&o(e)})}mount(){this.startObserver()}update(){var e,t;"undefined"!=typeof IntersectionObserver&&(({props:e,prevProps:t}=this.node),["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t)))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Af{mount(){var e=this.node.current;e&&(this.unmount=Pd(e,(e,t)=>(yg(this.node,t,"Start"),(e,{success:t})=>yg(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Af{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Zl(Lf(this.node.current,"focus",()=>this.onFocus()),Lf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Af{mount(){var e=this.node.current;e&&(this.unmount=function(e,t,n={}){let[o,i,r]=bd(e,n),a=e=>{if(yd(e)){let n=e.target,o=t(n,e);if("function"==typeof o&&n){let e=t=>{yd(t)&&(o(t),n.removeEventListener("pointerleave",e))};n.addEventListener("pointerleave",e,i)}}};return o.forEach(e=>{e.addEventListener("pointerenter",a,i)}),r}(e,(e,t)=>(bg(this.node,t,"Start"),e=>bg(this.node,e,"End"))))}unmount(){}}}},Pg=function(e,t){if("undefined"==typeof Proxy)return Op;let n=new Map,o=(n,o)=>Op(n,o,e,t);return new Proxy((e,t)=>o(e,t),{get:(i,r)=>"create"===r?o:(n.has(r)||n.set(r,Op(r,void 0,e,t)),n.get(r))})}({...Nf,...Tg,...vg,...{layout:{ProjectionNode:gg,MeasureLayout:pm}}},(e,t)=>cp(e)?new nf(t):new ef(t,{allowProjection:e!==O.Fragment}));var Og=function(e){var t=e.className,n=e.customizeIcon,o=e.children,i=e.onMouseDown,r=e.onClick;e="function"==typeof n?n(e.customizeIconProps):n;return O.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null!=i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:r,"aria-hidden":!0},void 0!==e?e:O.createElement("span",{className:U(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},o))},Cg=O.createContext(null);function Ag(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:250,t=O.useRef(null),n=O.useRef(null);return O.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(o){!o&&null!==t.current||(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var Mg={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};var Ng="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Lg(e,t){return 0===e.indexOf(t)}function Dg(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:pr({},t),o={};return Object.keys(e).forEach(function(t){(n.aria&&("role"===t||Lg(t,"aria-"))||n.data&&Lg(t,"data-")||n.attr&&Ng.includes(t))&&(o[t]=e[t])}),o}var Rg=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ig=void 0;var $g=O.forwardRef(function(e,t){var n,o=e.prefixCls,i=e.invalidate,r=e.item,a=e.renderItem,s=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,h=e.className,d=e.style,p=e.children,f=e.display,m=e.order,g=void 0===(g=e.component)?"div":g;function v(e){c(u,e)}return e=fr(e,Rg),f=s&&!f,O.useEffect(function(){return function(){v(null)}},[]),a=a&&r!==Ig?a(r,{index:m}):p,i||(n={opacity:f?0:1,height:f?0:Ig,overflowY:f?"hidden":Ig,order:s?m:Ig,pointerEvents:f?"none":Ig,position:f?"absolute":Ig}),r={},f&&(r["aria-hidden"]=!0),p=O.createElement(g,lr({className:U(!i&&o,h),style:pr(pr({},n),d)},r,e,{ref:t}),a),s?O.createElement(Qa,{onResize:function(e){v(e.offsetWidth)},disabled:l},p):p});function Fg(){var e=O.useRef(null);return function(t){e.current||(e.current=[],function(e){var t;"undefined"==typeof MessageChannel?Vs(e):((t=new MessageChannel).port1.onmessage=function(){return e()},t.port2.postMessage(void 0))}(function(){T.unstable_batchedUpdates(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function Vg(e,t){var n=(t=yr(O.useState(t),2))[0],o=t[1];return[n,ts(function(t){e(function(){o(t)})})]}$g.displayName="Item";var jg=C.createContext(null),Hg=["component"],zg=["className"],Bg=["className"],Ug=O.forwardRef(function(e,t){var n,o,i,r=O.useContext(jg);return r?(n=r.className,r=fr(r,zg),o=e.className,i=fr(e,Bg),O.createElement(jg.Provider,{value:null},O.createElement($g,lr({ref:t,className:U(n,o)},r,i)))):(o=void 0===(n=e.component)?"div":n,r=fr(e,Hg),O.createElement(o,lr({},r,{ref:t})))}),Yg=(Ug.displayName="RawItem",["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"]),Wg="responsive",Gg="invalidate";function Xg(e){return"+ ".concat(e.length," ...")}var qg=O.forwardRef(function(e,t){var n=void 0===(n=e.prefixCls)?"rc-overflow":n,o=void 0===(i=e.data)?[]:i,i=e.renderItem,r=e.renderRawItem,a=e.itemKey,s=void 0===(l=e.itemWidth)?10:l,l=e.ssr,c=e.style,u=e.className,h=e.maxCount,d=e.renderRest,p=e.renderRawRest,f=e.suffix,m=void 0===(m=e.component)?"div":m,g=e.itemComponent,v=e.onVisibleChange,b=(e=fr(e,Yg),"full"===l),y=(I=yr(Vg(l=Fg(),null),2))[0],_=I[1],w=y||0,x=(I=yr(Vg(l,new Map),2))[0],k=I[1],S=(I=yr(Vg(l,0),2))[0],E=I[1],T=(I=yr(Vg(l,0),2))[0],P=I[1],C=(I=yr(Vg(l,0),2))[0],A=I[1],M=(l=yr(O.useState(null),2))[0],N=l[1],L=(I=yr(O.useState(null),2))[0],D=I[1],R=O.useMemo(function(){return null===L&&b?Number.MAX_SAFE_INTEGER:L||0},[L,y]),I=(l=yr(O.useState(!1),2))[0],$=l[1],F=(l="".concat(n,"-item"),Math.max(S,T)),V=(S=h===Wg,o.length&&S),j=h===Gg,H=V||"number"==typeof h&&o.length>h,z=O.useMemo(function(){var e=o;return V?e=null===y&&b?o:o.slice(0,Math.min(o.length,w/s)):"number"==typeof h&&(e=o.slice(0,h)),e},[o,s,y,h,V]),B=O.useMemo(function(){return V?o.slice(R+1):o.slice(z.length)},[o,z,V,R]),Y=O.useCallback(function(e,t){return"function"==typeof a?a(e):null!=(e=a&&(null==e?void 0:e[a]))?e:t},[a]),W=O.useCallback(i||function(e){return e},[i]);function G(e,t,n){(L!==e||void 0!==t&&t!==M)&&(D(e),n||($(e<o.length-1),null!=v&&v(e)),void 0!==t)&&N(t)}function X(e,t){k(function(n){return n=new Map(n),null===t?n.delete(e):n.set(e,t),n})}function q(e){return x.get(Y(z[e],e))}Gr(function(){if(w&&"number"==typeof F&&z){var e=C,t=z.length,n=t-1;if(t){for(var o=0;o<t;o+=1){var i=q(o);if(void 0===(i=b?i||0:i)){G(o-1,void 0,!0);break}if(e+=i,0==n&&e<=w||o===n-1&&e+q(n)<=w){G(n,null);break}if(w<e+F){G(o-1,e-i-C+T);break}}f&&q(0)+C>w&&N(null)}else G(0,null)}},[w,x,T,C,Y,z]),i=I&&!!B.length,I={};var K=(null!==M&&V&&(I={position:"absolute",left:M,top:0}),{prefixCls:l,responsive:V,component:g,invalidate:j});return g=r?function(e,t){var n=Y(e,t);return O.createElement(jg.Provider,{key:n,value:pr(pr({},K),{},{order:t,item:e,itemKey:n,registerSize:X,display:t<=R})},r(e,t))}:function(e,t){var n=Y(e,t);return O.createElement($g,lr({},K,{order:t,key:n,item:e,renderItem:W,itemKey:n,registerSize:X,display:t<=R}))},i={order:i?R:Number.MAX_SAFE_INTEGER,className:"".concat(l,"-rest"),registerSize:function(e,t){P(t),E(T)},display:i},d=d||Xg,p=p?O.createElement(jg.Provider,{value:pr(pr({},K),i)},p(B)):O.createElement($g,lr({},K,i),"function"==typeof d?d(B):d),i=O.createElement(m,lr({className:U(!j&&n,u),style:c,ref:t},e),z.map(g),H?p:null,f&&O.createElement($g,lr({},K,{responsive:S,responsiveDisabled:!V,order:R,className:"".concat(l,"-suffix"),registerSize:function(e,t){A(t)},display:!0,style:I}),f)),S?O.createElement(Qa,{onResize:function(e,t){_(t.clientWidth)},disabled:!V},i):i});qg.displayName="Overflow",qg.Item=Ug,qg.RESPONSIVE=Wg,qg.INVALIDATE=Gg;var Kg=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Zg=O.forwardRef(function(e,t){var n=e.prefixCls,o=e.id,i=e.inputElement,r=e.autoFocus,a=e.autoComplete,s=e.editable,l=e.activeDescendantId,c=e.value,u=e.open,h=e.attrs,d=(e=fr(e,Kg),(i=i||O.createElement("input",null)).ref),p=i.props;return i.props,O.cloneElement(i,pr(pr(pr({type:"search"},function(e,t){var n=pr(pr({},e),t);return Object.keys(t).forEach(function(o){var i=t[o];"function"==typeof i&&(n[o]=function(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return i.apply(void 0,r),null==(t=e[o])?void 0:t.call.apply(t,[e].concat(r))})}),n}(e,p)),{},{id:o,ref:Fr(t,d),autoComplete:a||"off",autoFocus:r,className:U("".concat(n,"-selection-search-input"),null==p?void 0:p.className),role:"combobox","aria-expanded":u||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":u?l:void 0},h),{},{value:s?c:"",readOnly:!s,unselectable:s?null:"on",style:pr(pr({},p.style),{},{opacity:s?null:0})}))});function Qg(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Jg="undefined"!=typeof window&&window.document&&window.document.documentElement;function ev(e){return["string","number"].includes(cr(e))}function tv(e){var t=void 0;return e&&(ev(e.title)?t=e.title.toString():ev(e.label)&&(t=e.label.toString())),t}function nv(e){var t;return null!=(t=e.key)?t:e.value}var ov=function(e){e.preventDefault(),e.stopPropagation()},iv=function(e){function t(e,t,n,o,i){return O.createElement("span",{title:tv(e),className:U("".concat(F,"-item"),hr({},"".concat(F,"-item-disabled"),n))},O.createElement("span",{className:"".concat(F,"-item-content")},t),o&&O.createElement(Og,{className:"".concat(F,"-item-remove"),onMouseDown:ov,onClick:i,customizeIcon:b},"×"))}function n(e,t,n,o,i,r){return O.createElement("span",{onMouseDown:function(e){ov(e),k(!a)}},x({label:t,value:e,disabled:n,closable:o,onClose:i,isMaxTag:!!r}))}var o=e.id,i=e.prefixCls,r=e.values,a=e.open,s=e.searchValue,l=e.autoClearSearchValue,c=e.inputRef,u=e.placeholder,h=e.disabled,d=e.mode,p=e.showSearch,f=e.autoFocus,m=e.autoComplete,g=e.activeDescendantId,v=e.tabIndex,b=e.removeIcon,y=e.maxTagCount,_=e.maxTagTextLength,w=void 0===(E=e.maxTagPlaceholder)?function(e){return"+ ".concat(e.length," ...")}:E,x=e.tagRender,k=e.onToggleOpen,S=e.onRemove,E=e.onInputChange,T=e.onInputPaste,P=e.onInputKeyDown,C=e.onInputMouseDown,A=e.onInputCompositionStart,M=e.onInputCompositionEnd,N=e.onInputBlur,L=O.useRef(null),D=(V=yr(O.useState(0),2))[0],R=V[1],I=(V=yr(O.useState(!1),2))[0],$=V[1],F="".concat(i,"-selection"),V=a||"multiple"===d&&!1===l||"tags"===d?s:"";s="tags"===d||"multiple"===d&&!1===l||p&&(a||I),function(e,t){Jg?O.useLayoutEffect(e,t):O.useEffect(e,t)}(function(){R(L.current.scrollWidth)},[V]),d=O.createElement("div",{className:"".concat(F,"-search"),style:{width:D},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},O.createElement(Zg,{ref:c,open:a,prefixCls:i,id:o,inputElement:null,disabled:h,autoFocus:f,autoComplete:m,editable:s,activeDescendantId:g,value:V,onKeyDown:P,onMouseDown:C,onChange:E,onPaste:T,onCompositionStart:A,onCompositionEnd:M,onBlur:N,tabIndex:v,attrs:Dg(e,!0)}),O.createElement("span",{ref:L,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},V," ")),l=O.createElement(qg,{prefixCls:"".concat(F,"-overflow"),data:r,renderItem:function(e){function o(t){t&&t.stopPropagation(),S(e)}var i=e.disabled,r=e.label,a=e.value,s=!h&&!i,l=r;return"number"!=typeof _||"string"!=typeof r&&"number"!=typeof r||(r=String(l)).length>_&&(l="".concat(r.slice(0,_),"...")),"function"==typeof x?n(a,l,i,s,o):t(e,l,i,s,o)},renderRest:function(e){return r.length?(e="function"==typeof w?w(e):w,"function"==typeof x?n(void 0,e,!1,!1,void 0,!0):t({title:e},e,!1)):null},suffix:d,itemKey:nv,maxCount:y});return O.createElement("span",{className:"".concat(F,"-wrap")},l,!r.length&&!V&&O.createElement("span",{className:"".concat(F,"-placeholder")},u))},rv=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,i=e.inputRef,r=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,h=e.values,d=e.placeholder,p=e.tabIndex,f=e.showSearch,m=e.searchValue,g=e.activeValue,v=e.maxLength,b=e.onInputKeyDown,y=e.onInputMouseDown,_=e.onInputChange,w=e.onInputPaste,x=e.onInputCompositionStart,k=e.onInputCompositionEnd,S=e.onInputBlur,E=e.title,T=(A=yr(O.useState(!1),2))[0],P=A[1],C="combobox"===c,A=C||f,M=h[0],N=(h=C&&g&&!T?g:m||"",O.useEffect(function(){C&&P(!1)},[C,g]),!("combobox"!==c&&!u&&!f||!h));T=void 0===E?tv(M):E,m=O.useMemo(function(){return M?null:O.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},d)},[M,N,d,n]);return O.createElement("span",{className:"".concat(n,"-selection-wrap")},O.createElement("span",{className:"".concat(n,"-selection-search")},O.createElement(Zg,{ref:i,prefixCls:n,id:o,open:u,inputElement:t,disabled:r,autoFocus:a,autoComplete:s,editable:A,activeDescendantId:l,value:h,onKeyDown:b,onMouseDown:y,onChange:function(e){P(!0),_(e)},onPaste:w,onCompositionStart:x,onCompositionEnd:k,onBlur:S,tabIndex:p,attrs:Dg(e,!0),maxLength:C?v:void 0})),!C&&M?O.createElement("span",{className:"".concat(n,"-selection-item"),title:T,style:N?{visibility:"hidden"}:void 0},M.label):null,m)},av=O.forwardRef(function(e,t){var n=O.useRef(null),o=O.useRef(!1),i=e.prefixCls,r=e.open,a=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.disabled,u=e.prefix,h=e.autoClearSearchValue,d=e.onSearch,p=e.onSearchSubmit,f=e.onToggleOpen,m=e.onInputKeyDown,g=e.onInputBlur,v=e.domRef;function b(e){!1!==d(e,!0,o.current)&&f(!0)}O.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var y=(t=yr(Ag(0),2))[0],_=t[1],w=O.useRef(null);t={inputRef:n,onInputKeyDown:function(e){var t=e.which,i=n.current instanceof HTMLTextAreaElement;i||!r||t!==Mg.UP&&t!==Mg.DOWN||e.preventDefault(),m&&m(e),t!==Mg.ENTER||"tags"!==a||o.current||r||null!=p&&p(e.target.value),i&&!r&&~[Mg.UP,Mg.DOWN,Mg.LEFT,Mg.RIGHT].indexOf(t)||function(e){return e&&![Mg.ESC,Mg.SHIFT,Mg.BACKSPACE,Mg.TAB,Mg.WIN_KEY,Mg.ALT,Mg.META,Mg.WIN_KEY_RIGHT,Mg.CTRL,Mg.SEMICOLON,Mg.EQUALS,Mg.CAPS_LOCK,Mg.CONTEXT_MENU,Mg.F1,Mg.F2,Mg.F3,Mg.F4,Mg.F5,Mg.F6,Mg.F7,Mg.F8,Mg.F9,Mg.F10,Mg.F11,Mg.F12].includes(e)}(t)&&f(!0)},onInputMouseDown:function(){_(!0)},onInputChange:function(e){var t;e=e.target.value;l&&w.current&&/[\r\n]/.test(w.current)&&(t=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," "),e=e.replace(t,w.current)),w.current=null,b(e)},onInputPaste:function(e){e=null==(e=e.clipboardData)?void 0:e.getData("text"),w.current=e||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==a&&b(e.target.value)},onInputBlur:g},g="multiple"===a||"tags"===a?O.createElement(iv,lr({},e,t)):O.createElement(rv,lr({},e,t));return O.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=y();e.target===n.current||t||"combobox"===a&&c||e.preventDefault(),("combobox"===a||s&&t)&&r||(r&&!1!==h&&d("",!0,!1),f())}},u&&O.createElement("div",{className:"".concat(i,"-prefix")},u),g)}),sv=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],lv=O.forwardRef(function(e,t){var n=e.prefixCls,o=e.visible,i=e.children,r=e.popupElement,a=e.animation,s=e.transitionName,l=e.dropdownStyle,c=e.dropdownClassName,u=void 0===(u=e.direction)?"ltr":u,h=e.placement,d=e.builtinPlacements,p=e.dropdownMatchSelectWidth,f=e.dropdownRender,m=e.dropdownAlign,g=e.getPopupContainer,v=e.empty,b=e.getTriggerDOMNode,y=e.onPopupVisibleChange,_=e.onPopupMouseEnter,w=(e=fr(e,sv),n="".concat(n,"-dropdown"),r),x=(f=(f&&(w=f(r)),O.useMemo(function(){return d||function(e){return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e=!0===e?0:1,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"}}}(p)},[d,p])),r=a?"".concat(n,"-").concat(a):s,"number"==typeof p),k=(a=O.useMemo(function(){return x?null:!1===p?"minWidth":"width"},[p,x]),s=l,x&&(s=pr(pr({},l),{},{width:p})),O.useRef(null));return O.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null==(e=k.current)?void 0:e.popupElement}}}),O.createElement(El,lr({},e,{showAction:y?["click"]:[],hideAction:y?["click"]:[],popupPlacement:h||("rtl"===u?"bottomRight":"bottomLeft"),builtinPlacements:f,prefixCls:n,popupTransitionName:r,popup:O.createElement("div",{onMouseEnter:_},w),ref:k,stretch:a,popupAlign:m,popupVisible:o,getPopupContainer:g,popupClassName:U(c,hr({},"".concat(n,"-empty"),v)),popupStyle:s,getTriggerDOMNode:b,onPopupVisibleChange:y}),i)});function cv(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function uv(e){return void 0!==e&&!Number.isNaN(e)}function hv(e,t){return{label:t=(e=e||{}).label||(t?"children":"label"),value:e.value||"value",options:e.options||"options",groupLabel:e.groupLabel||t}}function dv(e){var t=pr({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Er(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var pv=function(e,t,n){var o;return t&&t.length&&(o=!1,e=function e(t,n){n=function(e){return mr(e)||Ur(e)||vr(e)||br()}(n);var i=n[0],r=n.slice(1);return i?(n=t.split(i),o=o||1<n.length,n.reduce(function(t,n){return[].concat(Yr(t),Yr(e(n,r)))},[]).filter(Boolean)):[t]}(e,t),o)?void 0!==n?e.slice(0,n):e:null},fv=O.createContext(null);function mv(e){var t=e.visible;e=e.values;return t?O.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(e.slice(0,50).map(function(e){var t=e.label;e=e.value;return["number","string"].includes(cr(t))?t:e}).join(", ")),50<e.length?", ...":null):null}var gv=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],vv=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],bv=function(e){return"tags"===e||"multiple"===e},yv=O.forwardRef(function(e,t){var n=e.id,o=e.prefixCls,i=e.className,r=e.showSearch,a=e.tagRender,s=e.direction,l=e.omitDomProps,c=e.displayValues,u=e.onDisplayValuesChange,h=e.emptyOptions,d=void 0===(g=e.notFoundContent)?"Not Found":g,p=e.onClear,f=e.mode,m=e.disabled,g=e.loading,v=e.getInputElement,b=e.getRawInputElement,y=e.open,_=e.defaultOpen,w=e.onDropdownVisibleChange,x=e.activeValue,k=e.onActiveValueChange,S=e.activeDescendantId,E=e.searchValue,T=e.autoClearSearchValue,P=e.onSearch,A=e.onSearchSplit,M=e.tokenSeparators,N=e.allowClear,L=e.prefix,D=e.suffixIcon,R=e.clearIcon,I=e.OptionList,$=e.animation,F=e.transitionName,V=e.dropdownStyle,j=e.dropdownClassName,H=e.dropdownMatchSelectWidth,z=e.dropdownRender,B=e.dropdownAlign,Y=e.placement,W=e.builtinPlacements,G=e.getPopupContainer,X=void 0===(ee=e.showAction)?[]:ee,q=e.onFocus,K=e.onBlur,Z=e.onKeyUp,Q=e.onKeyDown,J=e.onMouseDown,ee=fr(e,gv),te=bv(f),ne=(void 0!==r?r:te)||"combobox"===f,oe=pr({},ee);vv.forEach(function(e){delete oe[e]}),null!=l&&l.forEach(function(e){delete oe[e]});var ie=(r=yr(O.useState(!1),2))[0],re=r[1],ae=(O.useEffect(function(){re(rs())},[]),O.useRef(null)),se=O.useRef(null),le=O.useRef(null),ce=O.useRef(null),ue=O.useRef(null),he=O.useRef(!1),de=(ee=yr(function(){function e(){window.clearTimeout(r.current)}var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10,n=yr(O.useState(!1),2),o=n[0],i=n[1],r=O.useRef(null);return O.useEffect(function(){return e},[]),[o,function(n,o){e(),r.current=window.setTimeout(function(){i(n),o&&o()},t)},e]}(),3),l=ee[0],ee[1]),pe=ee[2],fe=(O.useImperativeHandle(t,function(){var e;return{focus:null==(e=ce.current)?void 0:e.focus,blur:null==(e=ce.current)?void 0:e.blur,scrollTo:function(e){var t;return null==(t=ue.current)?void 0:t.scrollTo(e)},nativeElement:ae.current||se.current}}),O.useMemo(function(){var e;return"combobox"!==f?E:"string"==typeof(e=null==(e=c[0])?void 0:e.value)||"number"==typeof e?String(e):""},[E,f,c])),me=(r="combobox"===f&&"function"==typeof v&&v()||null,ee="function"==typeof b&&b(),v=Vr(se,null==ee||null==(t=ee.props)?void 0:t.ref),t=(b=yr(O.useState(!1),2))[0],b[1]);function ge(e,t,n){var o,i;if(!(te&&uv(xe)&&(null==ke?void 0:ke.size)>=xe))return o=!0,i=e,null!=k&&k(null),e=pv(e,M,uv(xe)?xe-ke.size:void 0),n=n?null:e,"combobox"!==f&&n&&(i="",null!=A&&A(n),we(!1),o=!1),P&&fe!==i&&P(i,{source:t?"typing":"effect"}),o}Gr(function(){me(!0)},[]);var ve=(b=yr(us(!1,{defaultValue:_,value:y}),2))[0],be=b[1],ye=!!t&&ve,_e=(_=!d&&h,(m||_&&ye&&"combobox"===f)&&(ye=!1),!_&&ye),we=O.useCallback(function(e){e=void 0!==e?e:!ye,m||(be(e),ye!==e&&null!=w&&w(e))},[m,ye,be,w]),xe=(y=O.useMemo(function(){return(M||[]).some(function(e){return["\n","\r\n"].includes(e)})},[M]),(b=O.useContext(fv)||{}).maxCount),ke=b.rawValues;O.useEffect(function(){ye||te||"combobox"===f||ge("",!1,!1)},[ye]),O.useEffect(function(){ve&&m&&be(!1),m&&!he.current&&de(!1)},[m]);var Se,Ee=(t=yr(Ag(),2))[0],Te=t[1],Pe=O.useRef(!1),Oe=O.useRef(!1),Ce=[],Ae=(O.useEffect(function(){return function(){Ce.forEach(function(e){return clearTimeout(e)}),Ce.splice(0,Ce.length)}},[]),yr(O.useState({}),2)[1]);ee&&(Se=function(e){we(e)}),function(e,t,n,o){var i=O.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:o},O.useEffect(function(){function t(t){var n,o;null!=(n=i.current)&&n.customizedTrigger||((o=t.target).shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),i.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(o)&&e!==o})&&i.current.triggerOpen(!1))}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}},[])}(function(){var e;return[ae.current,null==(e=le.current)?void 0:e.getPopupElement()]},_e,we,!!ee);var Me;_=O.useMemo(function(){return pr(pr({},e),{},{notFoundContent:d,open:ye,triggerOpen:_e,id:n,showSearch:ne,multiple:te,toggleOpen:we})},[e,d,_e,ye,n,ne,te,we]),(b=!!D||g)&&(Me=O.createElement(Og,{className:U("".concat(o,"-arrow"),hr({},"".concat(o,"-arrow-loading"),g)),customizeIcon:D,customizeIconProps:{loading:g,searchValue:fe,open:ye,focused:l,showSearch:ne}})),t=function(e,t,n,o,i){var r=5<arguments.length&&void 0!==arguments[5]&&arguments[5],a=6<arguments.length?arguments[6]:void 0,s=7<arguments.length?arguments[7]:void 0,l=C.useMemo(function(){return"object"===cr(o)?o.clearIcon:i||void 0},[o,i]);return{allowClear:C.useMemo(function(){return!(r||!o||!n.length&&!a||"combobox"===s&&""===a)},[o,r,n.length,a,s]),clearIcon:C.createElement(Og,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(o,function(){var e;null!=p&&p(),null!=(e=ce.current)&&e.focus(),u([],{type:"clear",values:c}),ge("",!1,!1)},c,N,R,m,fe,f),D=t.allowClear,R=t.clearIcon,t=O.createElement(I,{ref:ue}),I=U(o,i,hr(hr(hr(hr(hr(hr(hr(hr(hr(hr({},"".concat(o,"-focused"),l),"".concat(o,"-multiple"),te),"".concat(o,"-single"),!te),"".concat(o,"-allow-clear"),N),"".concat(o,"-show-arrow"),b),"".concat(o,"-disabled"),m),"".concat(o,"-loading"),g),"".concat(o,"-open"),ye),"".concat(o,"-customize-input"),r),"".concat(o,"-show-search"),ne)),i=O.createElement(lv,{ref:le,disabled:m,prefixCls:o,visible:_e,popupElement:t,animation:$,transitionName:F,dropdownStyle:V,dropdownClassName:j,direction:s,dropdownMatchSelectWidth:H,dropdownRender:z,dropdownAlign:B,placement:Y,builtinPlacements:W,getPopupContainer:G,empty:h,getTriggerDOMNode:function(e){return se.current||e},onPopupVisibleChange:Se,onPopupMouseEnter:function(){Ae({})}},ee?O.cloneElement(ee,{ref:v}):O.createElement(av,lr({},e,{domRef:se,prefixCls:o,inputElement:r,ref:ce,id:n,prefix:L,showSearch:ne,autoClearSearchValue:T,mode:f,activeDescendantId:S,tagRender:a,values:c,open:ye,onToggleOpen:we,activeValue:x,searchValue:fe,onSearch:ge,onSearchSubmit:function(e){e&&e.trim()&&P(e,{source:"submit"})},onRemove:function(e){var t=c.filter(function(t){return t!==e});u(t,{type:"remove",values:[e]})},tokenWithEnter:y,onInputBlur:function(){Pe.current=!1}}))),N=ee?i:O.createElement("div",lr({className:I},oe,{ref:ae,onMouseDown:function(e){var t,n,o=e.target,i=null==(t=le.current)?void 0:t.getPopupElement();i&&i.contains(o)&&(n=setTimeout(function(){var e=Ce.indexOf(n);-1!==e&&Ce.splice(e,1),pe(),ie||i.contains(document.activeElement)||null!=(e=ce.current)&&e.focus()}),Ce.push(n));for(var r=arguments.length,a=new Array(1<r?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];null!=J&&J.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t=Ee(),n=e.key,o="Enter"===n;if(o&&("combobox"!==f&&e.preventDefault(),ye||we(!0)),Te(!!fe),"Backspace"===n&&!t&&te&&!fe&&c.length){for(var i=Yr(c),r=null,a=i.length-1;0<=a;--a){var s=i[a];if(!s.disabled){i.splice(a,1),r=s;break}}r&&u(i,{type:"remove",values:[r]})}for(var l=arguments.length,h=new Array(1<l?l-1:0),d=1;d<l;d++)h[d-1]=arguments[d];!ye||o&&Pe.current||(o&&(Pe.current=!0),null!=(n=ue.current)&&n.onKeyDown.apply(n,[e].concat(h))),null!=Q&&Q.apply(void 0,[e].concat(h))},onKeyUp:function(e){for(var t,n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];ye&&null!=(t=ue.current)&&t.onKeyUp.apply(t,[e].concat(o)),"Enter"===e.key&&(Pe.current=!1),null!=Z&&Z.apply(void 0,[e].concat(o))},onFocus:function(){de(!0),m||(q&&!Oe.current&&q.apply(void 0,arguments),X.includes("focus")&&we(!0)),Oe.current=!0},onBlur:function(){he.current=!0,de(!1,function(){Oe.current=!1,he.current=!1,we(!1)}),m||(fe&&("tags"===f?P(fe,{source:"submit"}):"multiple"===f&&P("",{source:"blur"})),K&&K.apply(void 0,arguments))}}),O.createElement(mv,{visible:l&&!ye,values:c}),i,Me,D&&R);return O.createElement(Cg.Provider,{value:_},N)}),_v=function(){return null},wv=(_v.isSelectOptGroup=!0,function(){return null});wv.isSelectOption=!0;var xv=O.forwardRef(function(e,t){var n=e.height,o=e.offsetY,i=e.offsetX,r=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=(e=e.extra,{}),h={display:"flex",flexDirection:"column"};return void 0!==o&&(u={height:n,position:"relative",overflow:"hidden"},h=pr(pr({},h),{},hr(hr(hr(hr(hr({transform:"translateY(".concat(o,"px)")},c?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),O.createElement("div",{style:u},O.createElement(Qa,{onResize:function(e){e.offsetHeight&&s&&s()}},O.createElement("div",lr({style:h,className:U(hr({},"".concat(a,"-holder-inner"),a)),ref:t},l),r,e)))});function kv(e){var t=e.children,n=e.setRef;e=O.useCallback(function(e){n(e)},[]);return O.cloneElement(t,{ref:e})}function Sv(e,t,n){var o,i=(o=yr(O.useState(e),2))[0],r=o[1],a=(o=yr(O.useState(null),2))[0],s=o[1];return O.useEffect(function(){var n=function(e,t,n){var o,i=e.length,r=t.length;if(0===i&&0===r)return null;var a=i<r?(o=e,t):(o=t,e),s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(i-r),h=0;h<a.length;h+=1){var d=l(o[h]);if(d!==l(a[h])){c=h,u=u||d!==l(a[h+1]);break}}return null===c?null:{index:c,multiple:u}}(i||[],e||[],t);void 0!==(null==n?void 0:n.index)&&s(e[n.index]),r(e)},[e]),[a]}xv.displayName="Filler";var Ev="object"===("undefined"==typeof navigator?"undefined":cr(navigator))&&/Firefox/i.test(navigator.userAgent),Tv=function(e,t,n,o){var i=O.useRef(!1),r=O.useRef(null),a=O.useRef({top:e,bottom:t,left:n,right:o});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=o,function(e,t){return e=e?t<0&&a.current.left||0<t&&a.current.right:t<0&&a.current.top||0<t&&a.current.bottom,2<arguments.length&&void 0!==arguments[2]&&arguments[2]&&e?(clearTimeout(r.current),i.current=!1):e&&!i.current||(clearTimeout(r.current),i.current=!0,r.current=setTimeout(function(){i.current=!1},50)),!i.current&&e}};var Pv=(()=>{function e(){Ha(this,e),hr(this,"maps",void 0),hr(this,"id",0),hr(this,"diffRecords",new Map),this.maps=Object.create(null)}return Ba(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Ov(e){return e=parseFloat(e),isNaN(e)?0:e}var Cv=14/15;function Av(e){return Math.floor(Math.pow(e,.5))}function Mv(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var Nv=O.forwardRef(function(e,t){function n(){!0!==g&&!1!==g&&(clearTimeout(P.current),T(!0),P.current=setTimeout(function(){T(!1)},3e3))}function o(e){b(!0),_(Mv(e,h)),x(M.current.top),l(),e.stopPropagation(),e.preventDefault()}var i=e.prefixCls,r=e.rtl,a=e.scrollOffset,s=e.scrollRange,l=e.onStartMove,c=e.onStopMove,u=e.onScroll,h=e.horizontal,d=e.spinSize,p=e.containerSize,f=e.style,m=e.thumbStyle,g=e.showScrollBar,v=(e=yr(O.useState(!1),2))[0],b=e[1],y=(e=yr(O.useState(null),2))[0],_=e[1],w=(e=yr(O.useState(null),2))[0],x=e[1],k=!r,S=O.useRef(),E=O.useRef(),T=(r=(e=yr(O.useState(g),2))[0],e[1]),P=O.useRef(),C=s-p||0,A=p-d||0,M=(e=O.useMemo(function(){return 0===a||0===C?0:a/C*A},[a,C,A]),O.useRef({top:e,dragging:v,pageY:y,startTop:w})),N=(M.current={top:e,dragging:v,pageY:y,startTop:w},O.useEffect(function(){function e(e){e.preventDefault()}var t=S.current,n=E.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",o,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",o)}},[]),O.useRef()),L=(N.current=C,O.useRef());L.current=A,O.useEffect(function(){var e,t,n;if(v)return t=function(t){var n,o=(r=M.current).dragging,i=r.pageY,r=r.startTop,a=(Vs.cancel(e),S.current.getBoundingClientRect());a=p/(h?a.width:a.height);o&&(o=(Mv(t,h)-i)*a,t=r,!k&&h?t-=o:t+=o,i=N.current,a=L.current,n=Math.ceil((a?t/a:0)*i),n=Math.max(n,0),n=Math.min(n,i),e=Vs(function(){u(n,h)}))},n=function(){b(!1),c()},window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Vs.cancel(e)}},[v]),O.useEffect(function(){return n(),function(){clearTimeout(P.current)}},[a]),O.useImperativeHandle(t,function(){return{delayHidden:n}}),s="".concat(i,"-scrollbar"),y={position:"absolute",visibility:r?null:"hidden"},w={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return h?(Object.assign(y,{height:8,left:0,right:0,bottom:0}),Object.assign(w,hr({height:"100%",width:d},k?"left":"right",e))):(Object.assign(y,hr({width:8,top:0,bottom:0},k?"right":"left",0)),Object.assign(w,{width:"100%",height:d,top:e})),O.createElement("div",{ref:S,className:U(s,hr(hr(hr({},"".concat(s,"-horizontal"),h),"".concat(s,"-vertical"),!h),"".concat(s,"-visible"),r)),style:pr(pr({},y),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:n},O.createElement("div",{ref:E,className:U("".concat(s,"-thumb"),hr({},"".concat(s,"-thumb-moving"),v)),style:pr(pr({},w),m),onMouseDown:o}))});function Lv(){var e=(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0)/(1<arguments.length&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(e)&&(e=0),e=Math.max(e,20),Math.floor(e)}var Dv=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Rv=[],Iv={overflowY:"auto",overflowAnchor:"none"};var $v=O.forwardRef(function(e,t){function n(){z(!0)}function o(){z(!1)}var i=void 0===(i=e.prefixCls)?"rc-virtual-list":i,r=e.className,a=e.height,s=e.itemHeight,l=void 0===(l=e.fullHeight)||l,c=e.style,u=e.data,h=e.children,d=e.itemKey,p=e.virtual,f=e.direction,m=e.scrollWidth,g=void 0===(g=e.component)?"div":g,v=e.onScroll,b=e.onVirtualScroll,y=e.onVisibleChange,_=e.innerProps,w=e.extraRender,x=e.styles,k=void 0===(k=e.showScrollBar)?"optional":k,S=(e=fr(e,Dv),O.useCallback(function(e){return"function"==typeof d?d(e):null==e?void 0:e[d]},[d])),E=yr(function(e){var t=yr(O.useState(0),2),n=t[0],o=t[1],i=O.useRef(new Map),r=O.useRef(new Pv),a=O.useRef(0);function s(){a.current+=1}function l(){function e(){var e=!1;i.current.forEach(function(t,n){var o,i;t&&t.offsetParent&&(i=t.offsetHeight,o=(t=getComputedStyle(t)).marginTop,t=t.marginBottom,i=i+Ov(o)+Ov(t),r.current.get(n)!==i)&&(r.current.set(n,i),e=!0)}),e&&o(function(e){return e+1})}var t,n=0<arguments.length&&void 0!==arguments[0]&&arguments[0];s(),n?e():(a.current+=1,t=a.current,Promise.resolve().then(function(){t===a.current&&e()}))}return O.useEffect(function(){return s},[]),[function(t,n){t=e(t),i.current.get(t),n?(i.current.set(t,n),l()):i.current.delete(t)},l,r.current,n]}(S),4),P=E[0],C=E[1],A=E[2],M=(E=E[3],!(!1===p||!a||!s)),N=(p=O.useMemo(function(){return Object.values(A.maps).reduce(function(e,t){return e+t},0)},[A.id,A.maps]),M&&u&&(Math.max(s*u.length,p)>a||!!m)),L="rtl"===f,D=(p=U(i,hr({},"".concat(i,"-rtl"),L),r),u||Rv),R=O.useRef(),I=O.useRef(),$=O.useRef(),F=(f=yr(O.useState(0),2))[0],V=f[1],j=(r=yr(O.useState(0),2))[0],H=r[1],z=(f=(u=yr(O.useState(!1),2))[0],u[1]);function B(e){V(function(t){return t=(e=>(Number.isNaN(ee.current)||(e=Math.min(e,ee.current)),Math.max(e,0)))(t="function"==typeof e?e(t):e),R.current.scrollTop=t})}r={getKey:S},u=O.useRef({start:0,end:D.length});var Y=O.useRef(),W=yr(Sv(D,S),1)[0],G=(Y=(Y.current=W,O.useMemo(function(){if(!M)return{scrollHeight:void 0,start:0,end:D.length-1,offset:void 0};var e;if(!N)return{scrollHeight:(null==(e=I.current)?void 0:e.offsetHeight)||0,start:0,end:D.length-1,offset:void 0};for(var t,n,o,i=0,r=D.length,l=0;l<r;l+=1){var c=D[l];c=S(c),c=A.get(c);F<=(c=i+(void 0===c?s:c))&&void 0===t&&(t=l,n=i),F+a<c&&void 0===o&&(o=l),i=c}return void 0===t&&(n=t=0,o=Math.ceil(a/s)),void 0===o&&(o=D.length-1),{scrollHeight:i,start:t,end:o=Math.min(o+1,D.length-1),offset:n}},[N,M,F,D,E,a])),Y.scrollHeight),X=Y.start,q=Y.end;W=Y.offset,u.current.start=X,u.current.end=q,O.useLayoutEffect(function(){var e,t,n,o=A.getRecord();1===o.size&&(e=Array.from(o.keys())[0],o=o.get(e),t=D[X])&&void 0===o&&S(t)===e&&(n=A.get(e)-s,B(function(e){return e+n})),A.resetRecord()},[G]);var K=(E=yr(O.useState({width:0,height:a}),2))[0],Z=E[1],Q=O.useRef(),J=O.useRef(),ee=(Y=O.useMemo(function(){return Lv(K.width,m)},[K.width,m]),u=O.useMemo(function(){return Lv(K.height,G)},[K.height,G]),E=G-a,O.useRef(E));function te(){return{x:L?-j:j,y:F}}ee.current=E;var ne=F<=0,oe=E<=F,ie=Tv(ne,oe,E=j<=0,fe=m<=j),re=O.useRef(te()),ae=ts(function(e){b&&(e=pr(pr({},te()),e),re.current.x===e.x&&re.current.y===e.y||(b(e),re.current=e))});function se(e,t){var n=e;t?(T.flushSync(function(){H(n)}),ae()):B(n)}function le(e){var t=m?m-K.width:0;e=Math.max(e,0);return Math.min(e,t)}function ce(){var e;null!=(e=Q.current)&&e.delayHidden(),null!=(e=J.current)&&e.delayHidden()}var ue=ts(function(e,t){t?(T.flushSync(function(){H(function(t){return le(t+(L?-e:e))})}),ae()):B(function(t){return t+e})}),he=(E=yr(function(e,t,n,o,i,r,a){var s=O.useRef(0),l=O.useRef(null),c=O.useRef(null),u=O.useRef(!1),h=Tv(t,n,o,i),d=O.useRef(null),p=O.useRef(null);return[function(t){var n,o,i,f;e&&(Vs.cancel(p.current),p.current=Vs(function(){d.current=null},2),n=f=t.deltaX,o=i=t.deltaY,("sx"===d.current||!d.current&&t.shiftKey&&i&&!f)&&(n=i,o=0,d.current="sx"),f=Math.abs(n),i=Math.abs(o),null===d.current&&(d.current=r&&i<f?"x":"y"),"y"===d.current?(i=t,f=o,Vs.cancel(l.current),h(!1,f)||i._virtualHandled||(i._virtualHandled=!0,s.current+=f,c.current=f,Ev||i.preventDefault(),l.current=Vs(function(){var e=u.current?10:1;a(s.current*e,!1),s.current=0}))):(o=t,a(n,!0),Ev||o.preventDefault()))},function(t){e&&(u.current=t.detail===c.current)}]}(M,ne,oe,E,fe,!!m,ue),2),E[0]),de=E[1],pe=(function(e,t,n){function o(e){var t,o,i,r,c;a.current&&(c=Math.ceil(e.touches[0].pageX),t=Math.ceil(e.touches[0].pageY),o=s.current-c,i=l.current-t,(r=Math.abs(o)>Math.abs(i))?s.current=c:l.current=t,(c=n(r,r?o:i,!1,e))&&e.preventDefault(),clearInterval(u.current),c)&&(u.current=setInterval(function(){r?o*=Cv:i*=Cv;var e=Math.floor(r?o:i);(!n(r,e,!0)||Math.abs(e)<=.1)&&clearInterval(u.current)},16))}function i(){a.current=!1,h()}function r(e){h(),1!==e.touches.length||a.current||(a.current=!0,s.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",o,{passive:!1}),c.current.addEventListener("touchend",i,{passive:!0}))}var a=O.useRef(!1),s=O.useRef(0),l=O.useRef(0),c=O.useRef(null),u=O.useRef(null),h=function(){c.current&&(c.current.removeEventListener("touchmove",o),c.current.removeEventListener("touchend",i))};Gr(function(){return e&&t.current.addEventListener("touchstart",r,{passive:!0}),function(){var e;null!=(e=t.current)&&e.removeEventListener("touchstart",r),h(),clearInterval(u.current)}},[e])}(M,R,function(e,t,n,o){return!ie(e,t,n)&&!(o&&o._virtualHandled||(o&&(o._virtualHandled=!0),he({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))}),function(e,t,n){O.useEffect(function(){var o,i,r,a,s,l,c,u,h=t.current;if(e&&h)return o=!1,a=function(){Vs.cancel(i)},s=function e(){a(),i=Vs(function(){n(r),e()})},c=function(){o=!1,a()},u=function(e){var t,n;o&&(e=Mv(e,!1),t=(n=h.getBoundingClientRect()).top,n=n.bottom,(e<=t?(r=-Av(t-e),s):n<=e?(r=Av(e-n),s):a)())},h.addEventListener("mousedown",l=function(e){e.target.draggable||0!==e.button||e._virtualHandled||(e._virtualHandled=!0,o=!0)}),h.ownerDocument.addEventListener("mouseup",c),h.ownerDocument.addEventListener("mousemove",u),function(){h.removeEventListener("mousedown",l),h.ownerDocument.removeEventListener("mouseup",c),h.ownerDocument.removeEventListener("mousemove",u),a()}},[e])}(N,R,function(e){B(function(t){return t+e})}),Gr(function(){function e(e){var t=ne&&e.detail<0,n=oe&&0<e.detail;!M||t||n||e.preventDefault()}var t=R.current;return t.addEventListener("wheel",he,{passive:!1}),t.addEventListener("DOMMouseScroll",de,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",he),t.removeEventListener("DOMMouseScroll",de),t.removeEventListener("MozMousePixelScroll",e)}},[M,ne,oe]),Gr(function(){var e;m&&(e=le(j),H(e),ae({x:e}))},[K.width,m]),function(e,t,n,o,i,r,a,s){var l=O.useRef(),c=yr(O.useState(null),2),u=c[0],h=c[1];return Gr(function(){if(u&&u.times<10)if(e.current){r();var s=u.targetAlign,l=u.originAlign,c=u.index,d=u.offset,p=e.current.clientHeight,f=!1,m=s,g=null;if(p){s=s||l;for(var v=0,b=0,y=0,_=Math.min(t.length-1,c),w=0;w<=_;w+=1){var x=i(t[w]);v=y=(b=v)+(void 0===(x=n.get(x))?o:x)}for(var k="top"===s?d:p-d,S=_;0<=S;--S){var E=i(t[S]);if(void 0===(E=n.get(E))){f=!0;break}if((k-=E)<=0)break}switch(s){case"top":g=b-d;break;case"bottom":g=y-p+d;break;default:var T=e.current.scrollTop;b<T?m="top":T+p<y&&(m="bottom")}null!==g&&a(g),g!==u.lastTop&&(f=!0)}f&&h(pr(pr({},u),{},{times:u.times+1,targetAlign:m,lastTop:g}))}else h(function(e){return pr({},e)})},[u,e.current]),function(e){var n,o;null==e?s():(Vs.cancel(l.current),"number"==typeof e?a(e):e&&"object"===cr(e)&&(n=e.align,o="index"in e?e.index:t.findIndex(function(t){return i(t)===e.key}),h({times:0,index:o,offset:void 0===(o=e.offset)?0:o,originAlign:n})))}}(R,D,A,s,S,function(){return C(!0)},B,ce)),fe=(O.useImperativeHandle(t,function(){return{nativeElement:$.current,getScrollInfo:te,scrollTo:function(e){var t;(t=e)&&"object"===cr(t)&&("left"in t||"top"in t)?(void 0!==e.left&&H(le(e.left)),pe(e.top)):pe(e)}}}),Gr(function(){var e;y&&(e=D.slice(X,q+1),y(e,D))},[X,q,D]),function(e,t,n,o){var i=yr(O.useMemo(function(){return[new Map,[]]},[e,n.id,o]),2),r=i[0],a=i[1];return function(i){var s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:i,l=r.get(i),c=r.get(s);if(void 0===l||void 0===c)for(var u=e.length,h=a.length;h<u;h+=1){var d=e[h],p=(d=t(d),r.set(d,h),null!=(p=n.get(d))?p:o);if(a[h]=(a[h-1]||0)+p,d===s&&(c=h),void 0!==(l=d===i?h:l)&&void 0!==c)break}return{top:a[l-1]||0,bottom:a[c]}}}(D,S,A,s));return ue=null==w?void 0:w({start:X,end:q,virtual:N,offsetX:j,offsetY:W,rtl:L,getSize:fe}),E=function(e,t,n,o,i,r,a,s){var l=s.getKey;return e.slice(t,n+1).map(function(e,n){n=a(e,t+n,{style:{width:o},offsetX:i});var s=l(e);return O.createElement(kv,{key:s,setRef:function(t){return r(e,t)}},n)})}(D,X,q,m,j,P,h,r),t=null,a&&(t=pr(hr({},l?"height":"maxHeight",a),Iv),M)&&(t.overflowY="hidden",m&&(t.overflowX="hidden"),f)&&(t.pointerEvents="none"),w={},L&&(w.dir="rtl"),O.createElement("div",lr({ref:$,style:pr(pr({},c),{},{position:"relative"}),className:p},w,e),O.createElement(Qa,{onResize:function(e){Z({width:e.offsetWidth,height:e.offsetHeight})}},O.createElement(g,{className:"".concat(i,"-holder"),style:t,ref:R,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==F&&B(t),null!=v&&v(e),ae()},onMouseEnter:ce},O.createElement(xv,{prefixCls:i,height:G,offsetX:j,offsetY:W,scrollWidth:m,onInnerResize:C,ref:I,innerProps:_,rtl:L,extra:ue},E))),N&&a<G&&O.createElement(Nv,{ref:Q,prefixCls:i,scrollOffset:F,scrollRange:G,rtl:L,onScroll:se,onStartMove:n,onStopMove:o,spinSize:u,containerSize:K.height,style:null==x?void 0:x.verticalScrollBar,thumbStyle:null==x?void 0:x.verticalScrollBarThumb,showScrollBar:k}),N&&m>K.width&&O.createElement(Nv,{ref:J,prefixCls:i,scrollOffset:j,scrollRange:m,rtl:L,onScroll:se,onStartMove:n,onStopMove:o,spinSize:Y,containerSize:K.width,horizontal:!0,style:null==x?void 0:x.horizontalScrollBar,thumbStyle:null==x?void 0:x.horizontalScrollBarThumb,showScrollBar:k}))});$v.displayName="List";var Fv=["disabled","title","children","style","className"];function Vv(e){return"string"==typeof e||"number"==typeof e}var jv=O.forwardRef(function(e,t){function n(e){e.preventDefault()}function o(e){var t;null!=(t=R.current)&&t.scrollTo("number"==typeof e?{index:e}:e)}function i(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=D.length,o=0;o<n;o+=1){var i=(e+o*t+n)%n,r=(a=D[i]||{}).group,a=a.data;if(!r&&(null==a||!a.disabled)&&($(a.value)||!I))return i}return-1}function r(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=(t=(V(e),{source:t?"keyboard":"mouse"}),D[e]);n?w(n.value,e,t):w(null,-1,t)}function a(e){void 0!==e&&k(e,{selected:!E.has(e)}),p||g(!1)}var s,l,c,u=(b=O.useContext(Cg)).prefixCls,h=b.id,d=b.open,p=b.multiple,f=b.mode,m=b.searchValue,g=b.toggleOpen,v=b.notFoundContent,b=b.onPopupScroll,y=(c=O.useContext(fv)).maxCount,_=c.flattenOptions,w=c.onActiveValue,x=c.defaultActiveFirstOption,k=c.onSelect,S=c.menuItemSelectedIcon,E=c.rawValues,T=c.fieldNames,P=c.virtual,C=c.direction,A=c.listHeight,M=c.listItemHeight,N=c.optionRender,L="".concat(u,"-item"),D=Mr(function(){return _},[d,_],function(e,t){return t[0]&&e[1]!==t[1]}),R=O.useRef(null),I=O.useMemo(function(){return p&&uv(y)&&(null==E?void 0:E.size)>=y},[p,y,null==E?void 0:E.size]),$=O.useCallback(function(e){return"combobox"!==f&&E.has(e)},[f,Yr(E).toString(),E.size]),F=(c=yr(O.useState(function(){return i(0)}),2))[0],V=c[1],j=(O.useEffect(function(){r(!1!==x?i(0):-1)},[D.length,m]),O.useCallback(function(e){return"combobox"===f?String(e).toLowerCase()===m.toLowerCase():E.has(e)},[f,m,Yr(E).toString(),E.size]));return O.useEffect(function(){var e,t=setTimeout(function(){var e,t;!p&&d&&1===E.size&&(e=Array.from(E)[0],-1!==(t=D.findIndex(function(t){return t=t.data,m?String(t.value).startsWith(m):t.value===e})))&&(r(t),o(t))});return d&&null!=(e=R.current)&&e.scrollTo(void 0),function(){return clearTimeout(t)}},[d,m]),O.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Mg.N:case Mg.P:case Mg.UP:case Mg.DOWN:var s=0;t===Mg.UP?s=-1:t===Mg.DOWN?s=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Mg.N?s=1:t===Mg.P&&(s=-1)),0!==s&&(o(s=i(F+s,s)),r(s,!0));break;case Mg.TAB:case Mg.ENTER:var l;!(s=D[F])||null!=s&&null!=(l=s.data)&&l.disabled||I?a(void 0):a(s.value),d&&e.preventDefault();break;case Mg.ESC:g(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){o(e)}}}),0===D.length?O.createElement("div",{role:"listbox",id:"".concat(h,"_list"),className:"".concat(L,"-empty"),onMouseDown:n},v):(s=Object.keys(T).map(function(e){return T[e]}),l=function(e){return e.label},u=function(e){var t,n,o,i,r=D[e];return r&&(t=(o=r.data||{}).value,n=r.group,o=Dg(o,!0),i=l(r),r)?O.createElement("div",lr({"aria-label":"string"!=typeof i||n?null:i},o,{key:e},H(r,e),{"aria-selected":j(t)}),t):null},c={role:"listbox",id:"".concat(h,"_list")},O.createElement(O.Fragment,null,P&&O.createElement("div",lr({},c,{style:{height:0,width:0,overflow:"hidden"}}),u(F-1),u(F),u(F+1)),O.createElement($v,{itemKey:"key",ref:R,data:D,height:A,itemHeight:M,fullHeight:!1,onMouseDown:n,onScroll:b,virtual:P,direction:C,innerProps:P?null:c},function(e,t){var n,o,i,c,u,h=e.group,d=e.groupOption,p=e.data,f=e.label,m=e.value,g=p.key;return h?(h=null!=(h=p.title)?h:Vv(f)?f.toString():void 0,O.createElement("div",{className:U(L,"".concat(L,"-group"),p.className),title:h},void 0!==f?f:g)):(h=p.disabled,f=p.title,g=p.style,i=p.className,p=function(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}(fr(p,Fv),s),n=$(m),o=h||!n&&I,h="".concat(L,"-option"),i=U(L,h,i,hr(hr(hr(hr({},"".concat(h,"-grouped"),d),"".concat(h,"-active"),F===t&&!o),"".concat(h,"-disabled"),o),"".concat(h,"-selected"),n)),d=l(e),c=!S||"function"==typeof S||n,u=Vv(d="number"==typeof d?d:d||m)?d.toString():void 0,void 0!==f&&(u=f),O.createElement("div",lr({},Dg(p),P?{}:H(e,t),{"aria-selected":j(m),className:i,title:u,onMouseMove:function(){F===t||o||r(t)},onClick:function(){o||a(m)},style:g}),O.createElement("div",{className:"".concat(h,"-content")},"function"==typeof N?N(e,{index:t}):d),O.isValidElement(S)||n,c&&O.createElement(Og,{className:"".concat(L,"-option-state"),customizeIcon:S,customizeIconProps:{value:m,disabled:o,isSelected:n}},n?"✓":null)))})));function H(e,t){return{role:e.group?"presentation":"option",id:"".concat(h,"_list_").concat(t)}}});function Hv(e,t){return Qg(e).join("").toUpperCase().includes(t)}var zv=0,Bv=_r();function Uv(e){var t=yr(O.useState(),2),n=t[0],o=t[1];return O.useEffect(function(){o("rc_select_".concat(function(){var e;return Bv?(e=zv,zv+=1):e="TEST_OR_SSR",e}()))},[]),e||n}var Yv=["children","value"],Wv=["children"];function Gv(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return da(e).map(function(e,n){var o,i,r,a;return O.isValidElement(e)&&e.type?(o=e.type.isSelectOptGroup,i=e.key,r=(a=e.props).children,a=fr(a,Wv),t||!o?function(e){var t=e.key,n=(e=e.props).children,o=e.value;return pr({key:t,value:void 0!==o?o:t,children:n},fr(e,Yv))}(e):pr(pr({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},a),{},{options:Gv(r)})):null}).filter(function(e){return e})}function Xv(e){var t=O.useRef();return t.current=e,O.useCallback(function(){return t.current.apply(t,arguments)},[])}var qv=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Kv=["inputValue"];var Zv=O.forwardRef(function(e,t){function n(e){return Yr(e).sort(function(e,t){return b(e,t,{searchValue:H})}).map(function(e){return Array.isArray(e.options)?pr(pr({},e),{},{options:0<e.options.length?n(e.options):e.options}):e})}function o(e){var t;e=G(e);q(e),R&&(e.length!==K.length||e.some(function(e,t){return(null==(t=K[t])?void 0:t.value)!==(null==e?void 0:e.value)}))&&(t=D?e:e.map(function(e){return e.value}),e=e.map(function(e){return dv(Z(e.value))}),R($?t:t[0],$?e:e[0]))}function i(e,t,n){function o(){var t,n=Z(e);return[D?{label:null==n?void 0:n[j.label],value:e,key:null!=(t=null==n?void 0:n.key)?t:e}:e,dv(n)]}var i,r;t&&f?(i=(r=yr(o(),2))[0],f(i,r[1])):!t&&m&&"clear"!==n&&(r=(i=yr(o(),2))[0],m(r,i[1]))}var r=e.id,a=e.mode,s=void 0===(s=e.prefixCls)?"rc-select":s,l=e.backfill,c=e.fieldNames,u=e.inputValue,h=e.searchValue,d=e.onSearch,p=void 0===(w=e.autoClearSearchValue)||w,f=e.onSelect,m=e.onDeselect,g=void 0===(w=e.dropdownMatchSelectWidth)||w,v=e.filterOption,b=e.filterSort,y=e.optionFilterProp,_=e.optionLabelProp,w=e.options,x=e.optionRender,k=e.children,S=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,T=e.virtual,P=e.direction,C=void 0===(N=e.listHeight)?200:N,A=void 0===(N=e.listItemHeight)?20:N,M=e.labelRender,N=e.value,L=e.defaultValue,D=e.labelInValue,R=e.onChange,I=e.maxCount,$=(e=fr(e,qv),r=Uv(r),bv(a)),F=!(w||!k),V=O.useMemo(function(){return(void 0!==v||"combobox"!==a)&&v},[v,a]),j=O.useMemo(function(){return hv(c,F)},[JSON.stringify(c),F]),H=(h=yr(us("",{value:void 0!==h?h:u,postState:function(e){return e||""}}),2),h[0]),z=h[1],B=function(e,t,n,o,i){return O.useMemo(function(){var r=e,a=(!e&&(r=Gv(t)),new Map),s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||r?(a.set(u[n.value],u),l(s,u,n.label),l(s,u,o),l(s,u,i)):e(u[n.options],!0)}}(r),{options:r,valueOptions:a,labelOptions:s}},[e,t,n,o,i])}(w,k,j,y,_),U=B.valueOptions,Y=B.labelOptions,W=B.options,G=O.useCallback(function(e){return Qg(e).map(function(e){e=function(e){return!e||"object"!==cr(e)}(e)?e:(n=e.key,o=e.label,null!=(e=e.value)?e:n);var t,n,o,i,r=U.get(e);return r&&(void 0===o&&(o=null==r?void 0:r[_||j.label]),void 0===n&&(n=null!=(i=null==r?void 0:r.key)?i:e),i=null==r?void 0:r.disabled,t=null==r?void 0:r.title),{label:o,value:e,key:n,disabled:i,title:t}})},[j,_,U]),X=(u=yr(us(L,{value:N}),2))[0],q=u[1],K=(h=O.useMemo(function(){var e,t=G($&&null===X?[]:X);return"combobox"===a&&function(e){return!e&&0!==e}(null==(e=t[0])?void 0:e.value)?[]:t},[X,G,a,$]),w=yr(function(e,t){var n=O.useRef({values:new Map,options:new Map});return[O.useMemo(function(){var o=(r=n.current).values,i=r.options,r=e.map(function(e){var t;return void 0===e.label?pr(pr({},e),{},{label:null==(t=o.get(e.value))?void 0:t.label}):e}),a=new Map,s=new Map;return r.forEach(function(e){a.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=a,n.current.options=s,r},[e,t]),O.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]}(h,U),2),w[0]),Z=w[1],Q=(k=O.useMemo(function(){if(!a&&1===K.length){var e=K[0];if(null===e.value&&null==e.label)return[]}return K.map(function(e){var t;return pr(pr({},e),{},{label:null!=(t="function"==typeof M?M(e):e.label)?t:e.value})})},[a,K,M]),O.useMemo(function(){return new Set(K.map(function(e){return e.value}))},[K])),J=(O.useEffect(function(){var e;"combobox"===a&&(e=null==(e=K[0])?void 0:e.value,z(function(e){return null!=e}(e)?String(e):""))},[K]),Xv(function(e,t){return t=null!=t?t:e,hr(hr({},j.value,e),j.label,t)})),ee=(L=O.useMemo(function(){var e;return"tags"!==a?W:(e=Yr(W),Yr(K).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;U.has(n)||e.push(J(n,t.label))}),e)},[J,W,U,K,a]),function(e,t,n,o,i){return O.useMemo(function(){var r,a,s,l,c,u,h,d;return n&&!1!==o?(r=t.options,a=t.label,s=t.value,l=[],c="function"==typeof o,u=n.toUpperCase(),h=c?o:function(e,t){return i?Hv(t[i],u):t[r]?Hv(t["children"!==a?a:"label"],u):Hv(t[s],u)},d=c?function(e){return dv(e)}:function(e){return e},e.forEach(function(e){var t;e[r]?h(n,d(e))?l.push(e):(t=e[r].filter(function(e){return h(n,d(e))})).length&&l.push(pr(pr({},e),{},hr({},r,t))):h(n,d(e))&&l.push(e)}),l):e},[e,o,i,n,t])}(L,j,H,V,y)),te=O.useMemo(function(){return"tags"!==a||!H||ee.some(function(e){return e[y||"value"]===H})||ee.some(function(e){return e[j.value]===H})?ee:[J(H)].concat(Yr(ee))},[J,y,a,ee,H,j]),ne=O.useMemo(function(){return b?n(te):te},[te,b,H]),oe=O.useMemo(function(){return function(e){var t,n=(t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).fieldNames,o=t.childrenAsData,i=[],r=(t=hv(n,!1)).label,a=t.value,s=t.options,l=t.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach(function(t){var c;!n&&s in t?(void 0===(c=t[l])&&o&&(c=t.label),i.push({key:cv(t,i.length),group:!0,data:t,label:c}),e(t[s],!0)):(c=t[a],i.push({key:cv(t,i.length),groupOption:n,data:t,label:t[r],value:c}))})}(e,!1),i}(ne,{fieldNames:j,childrenAsData:F})},[ne,j,F]),ie=(u=(N=yr(O.useState(null),2))[0],N[1]),re=(w=(h=yr(O.useState(0),2))[0],h[1]),ae=void 0!==S?S:"combobox"!==a,se=O.useCallback(function(e,t){var n=void 0===(n=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).source)?"keyboard":n;re(t),l&&"combobox"===a&&null!==e&&"keyboard"===n&&ie(String(e))},[l,a]),le=Xv(function(e,t){o((t=!$||t.selected)?$?[].concat(Yr(K),[e]):[e]:K.filter(function(t){return t.value!==e})),i(e,t),"combobox"===a?ie(""):bv&&!p||(z(""),ie(""))});L=O.useMemo(function(){var e=!1!==T&&!1!==g;return pr(pr({},B),{},{flattenOptions:oe,onActiveValue:se,defaultActiveFirstOption:ae,onSelect:le,menuItemSelectedIcon:E,rawValues:Q,fieldNames:j,virtual:e,direction:P,listHeight:C,listItemHeight:A,childrenAsData:F,maxCount:I,optionRender:x})},[I,B,oe,se,ae,le,E,Q,j,T,g,P,C,A,F,x]);return O.createElement(fv.Provider,{value:L},O.createElement(yv,lr({},e,{id:r,prefixCls:s,ref:t,omitDomProps:Kv,mode:a,displayValues:k,onDisplayValuesChange:function(e,t){o(e);var n=t.type;"remove"!==n&&"clear"!==n||t.values.forEach(function(e){i(e.value,!1,n)})},direction:P,searchValue:H,onSearch:function(e,t){var n;z(e),ie(null),"submit"===t.source?(n=(e||"").trim())&&(o(Array.from(new Set([].concat(Yr(Q),[n])))),i(n,!0),z("")):"blur"!==t.source&&("combobox"===a&&o(e),null!=d)&&d(e)},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;o(e=("tags"!==a&&(t=e.map(function(e){return null==(e=Y.get(e))?void 0:e.value}).filter(function(e){return void 0!==e})),Array.from(new Set([].concat(Yr(Q),Yr(t)))))),e.forEach(function(e){i(e,!0)})},dropdownMatchSelectWidth:g,OptionList:jv,emptyOptions:!oe.length,activeValue:u,activeDescendantId:"".concat(r,"_list_").concat(w)})))}),Qv=Zv;Qv.Option=wv,Qv.OptGroup=_v;let Jv=()=>{let e="object"==typeof window,[t,n]=O.useState({}),[o,i]=O.useState(0),[r,a]=O.useState(0),s=()=>{var t,o,{width:r,height:s}={width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0};r&&s&&(({shorter:t,longer:o}=(({width:e,height:t})=>{let n,o;return{shorter:n=t<e?(o=e,t):(o=t,e),longer:o}})({width:r,height:s})),n({width:r,height:s}),i(t),a(o))};return O.useEffect(()=>{if(e){s();let e=()=>{setTimeout(()=>{s()},500)};return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}}},[]),{size:t,min:o,max:r}},eb=O.createContext(void 0),tb=({children:e,config:t})=>{let[n,o]=O.useState(Object.assign({},t));return O.useEffect(()=>{var e;if(!t.apiHost)throw new Error("apiHost is required");let n=t.elementId;t.elementId||(n="virtual-tour-"+(null==(e=t.overrideConfigs)?void 0:e.tourCode)),o(Object.assign(Object.assign({},t),{elementId:n}))},[t]),b.jsx(eb.Provider,{value:n,children:e})},nb=()=>{var e=C.useContext(eb);if(void 0===e)throw new Error("useConfiguration must be used within a ConfigurationProvider");return e},ob=e=>{let{marker:t,scaleOffset:n,size:o,color:i,active:r,onClick:a,invisible:s=!1}=e;return b.jsx("div",{id:r?lt:void 0,className:U("minimap__marker",{"minimap__marker--active":r,"minimap__marker--invisible":s}),style:{top:n*t.y,left:n*t.x,"--minimap__marker--width":o+"px","--minimap__marker--height":o+"px","--minimap__marker--color":i},children:b.jsx("div",{className:"marker__content",onClick:e=>{e.preventDefault(),e.stopPropagation(),a(t)}})})},ib=e=>{let{coords:t,onClick:n,name:o="",onHover:i,onOut:r}=e;return b.jsx("area",{alt:o,shape:"poly",coords:t,onClick:e=>{e.preventDefault(),e.stopPropagation(),n()},onMouseEnter:i,onMouseLeave:r})},rb=e=>{let{name:t,areas:n,onClick:o,onHover:i}=e;return b.jsx("map",{className:"minimap__map-areas",name:t,children:(n||[]).map(e=>b.jsx(ib,{name:e.code,coords:e.coords,onClick:()=>o(e),onHover:i?()=>i(e):void 0,onOut:i?()=>i(null):void 0},""+e.code))})};let ab=C.createContext(new class{constructor(){this.context2D=null,this.setContext=this.setContext.bind(this),this.getContext=this.getContext.bind(this),this.clear=this.clear.bind(this)}setContext(e){this.context2D=e}getContext(){return this.context2D}clear({width:e=window.innerWidth,height:t=window.innerHeight}){this.context2D&&this.context2D.clearRect(0,0,e,t)}}),sb="#768FAA",lb=e=>{let{name:t,areas:n=[],onAreaClick:o,imgWidth:i,imgHeight:r,onAreaHover:a,activeArea:s}=e,l=O.useContext(ab),c=O.useRef(null);var[e,,]=O.useState();let[u,h]=O.useState(!1);var d=n.map(e=>e.code).join("-");let p=O.useCallback(e=>St(void 0,void 0,void 0,function*(){var{coords:t,code:n,fillColor:o}=e;let i;try{i=t.split(",").map(e=>Number(e))}catch(t){return}if(!(i.length<6)&&(s===n?o:void 0)){let e=l.getContext();e&&(e.lineWidth=1,e.globalAlpha=.5,e.fillStyle=sb,e.strokeStyle=sb,t=i.reduce((e,t,n,o)=>n%2?e:[...e,o.slice(n,n+2)],[]),e.beginPath(),n=t.pop())&&(e.moveTo(n[0],n[1]),t.forEach(t=>e.lineTo(t[0],t[1])),e.closePath(),e.stroke(),e.fill())}}),[e,s]),f=O.useCallback(()=>{var e;l.clear({width:null==(e=c.current)?void 0:e.width,height:null==(e=c.current)?void 0:e.height}),s&&(l.getContext()?null!=n&&n.length&&n.forEach(e=>p(e)):console.warn("context not found"))},[e,s,d]);return O.useEffect(()=>{u&&f()},[f,i,r]),b.jsxs(b.Fragment,{children:[b.jsx("canvas",{className:U(["minimap__canvas"]),ref:e=>{l.getContext()||e&&e.getContext("2d")&&(l.setContext(e.getContext("2d")),c.current=e,h(!0))},width:i,height:r}),b.jsx(rb,{name:t,areas:n,onClick:e=>{o&&o(e)},onHover:e=>{a&&a(e)}})]})};var cb,ub,hb=O.memo(e=>{let{showActiveOnly:t=!1,noRadar:n=!1,defaultSize:o=ct,largeSize:i=ut,defaultColor:r=ht,activeColor:a=dt,onWrapperClick:s,onMarkerClick:l,boxWidth:c,isMinimized:u=!1}=e,h=O.useContext(st);e=Jv().size;let d=((e,t=!1)=>{let n=O.useContext(st),o=tr().activeScene,i=O.useRef(!t),r=O.useRef(null),a=()=>{var e;n&&n.tour&&n.tour.plugins&&n.tour.plugins.radar&&(e=document.getElementById(n.tour.plugins.radar.wrapLayerId))&&r&&r.current&&(r.current.appendChild(e),n.tour.plugins.radar.destroy(),i.current=!1)},s=(O.useEffect(()=>{t&&i.current&&a()},[t]),()=>{var o,i;t||n&&n.tour&&n.tour.plugins&&n.tour.plugins.radar&&(o=document.getElementById(e),i=document.getElementById(n.tour.plugins.radar.wrapLayerId))&&(r.current||(r.current=i.parentNode),o?(i.onclick=e=>{e.preventDefault(),e.stopPropagation()},o.appendChild(i)):l(!1))}),l=(O.useEffect(()=>()=>{l(!1)},[]),O.useEffect(()=>{o&&!t&&(i.current?s():l(!0))},[o]),e=>{t||(e?t||n&&n.tour&&n.tour.plugins&&n.tour.plugins.radar&&(n.tour.plugins.radar.load(s),i.current=!0):a())});return{toggleRadar:l}})(lt,n).toggleRadar,[p,f]=O.useState(1),[m,g]=O.useState(1),[v,y]=O.useState([]),[_,w]=O.useState([]),[x,k]=O.useState(null),[S,E]=O.useState(!0),[T,P]=O.useState({}),[C,A]=O.useState([]),M=v.map(e=>e.code).join("-"),{activeFloorplan:N,activeScene:L,loadingScene:D,isMobileDevice:R}=tr();var I=O.createRef();let{height:$,width:F}=(e=>{let t=e.ref,[n,o]=O.useState({width:void 0,height:void 0}),i=O.useRef({width:void 0,height:void 0});return O.useEffect(()=>{if("object"==typeof t&&null!==t&&t.current instanceof Element){let e=t.current,n=new ResizeObserver(e=>{var t;Array.isArray(e)&&e.length&&(e=e[0],t=Math.round(e.contentRect.width),e=Math.round(e.contentRect.height),i.current.width===t&&i.current.height===e||(o({width:t,height:e}),i.current={width:t,height:e}))});return n.observe(e),()=>n.unobserve(e)}},[t,t.current]),O.useMemo(()=>({ref:t,width:n.width,height:n.height}),[t,n?n.width:null,n?n.height:null])})({ref:I}),V=c||(e?e.width-64-32:void 0),j=(!isNaN(V)&&h&&h.tour&&(e=>e.get("device.iphone"))(h.tour.krpano)&&(V/=2),null),H=(N&&(j=u?Et(N.image,V):N.image),O.useCallback(()=>{var e,t;return N&&j&&j.width&&j.height&&F&&$?(e=F/j.width,(t=$/j.height)<e?t:e):1},[j,F,$,e])),z=O.useCallback(()=>{var e,t;return N&&N.image&&N.image.width&&N.image.height&&F&&$?(e=F/N.image.width,(t=$/N.image.height)<e?t:e):1},[N,F,$,e]),B=(O.useEffect(()=>{var e;N&&j&&F&&$&&(e=H(),f(e))},[j,H]),O.useEffect(()=>{var e;N&&N.image&&F&&$&&(e=z(),g(e))},[j,z]),N?N.id:null),U=(O.useEffect(()=>{if(B){d(!1);var e=(null==N?void 0:N.markers)||[];e=(y(e),e.map(e=>e.toScene.code));let t={};e.forEach(e=>{var n=h.tour.scenes.find(t=>t.code===e);n&&(t[n.category||"NONE"]||(t[n.category||"NONE"]=[]),t[n.category||"NONE"].push({code:e,orderIndex:n.orderIndex}))}),Object.keys(t).forEach(e=>{t[e].sort((e,t)=>e.orderIndex-t.orderIndex)}),P(t),null!=(e=null==N?void 0:N.polygons)&&e.length?(w(N.polygons),A(N.polygons.map(e=>e.defaultScene||(e.category&&t[e.category]&&t[e.category][0]?t[e.category][0].code:"")).filter(e=>!!e)),E(!0)):(A([]),w([]),E(!1))}},[B]),O.useEffect(()=>{M&&null!=N&&N.enabledRadar?d(!0):d(!1)},[M,null==N?void 0:N.enabledRadar]),e=>{D||(h&&h.tour&&h.tour.scenarioPlayer&&h.tour.scenarioPlayer.pauseScenario(),h&&h.tour&&h.tour.loadScene&&(e.toScene&&L&&e.toScene.code!==L.code&&h.tour.loadScene(e.toScene.code),l)&&l())}),Y=!!L&&!!L.category&&T[L.category];return b.jsxs(b.Fragment,{children:[b.jsx("style",{children:".cvtc-skin-layer__floorplan .floorplan__minimap-wrapper,.floor-plan-minimap .floorplan__minimap-wrapper{bottom:0;cursor:pointer;left:0;opacity:1;padding:var(--space-16);position:absolute;right:0;top:0;transition:all .2s ease-in-out}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__content,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__content{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__content-wrapper,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__content-wrapper{height:100%;position:relative;width:100%}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__marker-wrapper,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__marker-wrapper{left:0;position:absolute;top:0}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__marker,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__marker{height:var(--minimap__marker--height);padding:var(--space-2);position:absolute;transform:translate(-50%,-50%);width:var(--minimap__marker--width)}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__marker .marker__content,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__marker .marker__content{background-color:var(--minimap__marker--color);border:2px solid #0000;border-radius:50%;cursor:pointer;height:100%;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__marker--active,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__marker--active{pointer-events:none}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__marker--active .marker__content,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__marker--active .marker__content{border-color:var(--color-white)}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__marker--invisible,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__marker--invisible{display:none}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__marker--invisible .marker__content,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__marker--invisible .marker__content{cursor:default}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__canvas,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__canvas{left:0;pointer-events:none;position:absolute;top:0;z-index:1}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__map-areas,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__map-areas{cursor:pointer;left:0;position:absolute;top:0}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__image-wrapper,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__image-wrapper{left:0;position:absolute;top:0;transform-origin:top left}.cvtc-skin-layer__floorplan .floorplan__minimap-wrapper .minimap__image,.floor-plan-minimap .floorplan__minimap-wrapper .minimap__image{max-width:unset!important}.cvtc-skin-layer__floorplan.cvtc-skin-layer__floorplan--listing-title .floorplan__minimap-wrapper,.floor-plan-minimap.cvtc-skin-layer__floorplan--listing-title .floorplan__minimap-wrapper{background:var(--color-black-48);top:56px}.cvtc-skin-layer__floorplan.cvtc-skin-layer__floorplan--listing-shown .floorplan__minimap-wrapper,.floor-plan-minimap.cvtc-skin-layer__floorplan--listing-shown .floorplan__minimap-wrapper{opacity:0}.cvtc-skin-layer__floorplan #layer_radar_wrapper,.cvtc-skin-layer__floorplan #layer_radar_wrapper *,.floor-plan-minimap #layer_radar_wrapper,.floor-plan-minimap #layer_radar_wrapper *{pointer-events:none!important}.cvtc-skin-layer__floorplan:not(.cvtc-skin-layer__floorplan--minimized) .floorplan__minimap-wrapper{padding-top:var(--space-64)}"}),b.jsx("div",{ref:I,className:"floorplan__minimap-wrapper",onClick:e=>{e.preventDefault(),e.stopPropagation(),s&&s()},children:!!N&&!!j&&!!p&&b.jsx("div",{className:"minimap__content-wrapper",children:b.jsxs("div",{className:"minimap__content",style:{width:Math.floor(p*(j?j.width:0))+"px",height:Math.floor(p*(j?j.height:0))+"px"},children:[b.jsx("div",{className:"minimap__image-wrapper",style:{transform:`scale(${m})`},children:b.jsx("img",{width:N.image.width,height:N.image.height,src:j.url,useMap:"#"+N.name,className:"minimap__image",alt:j.name||"",draggable:"false"})}),b.jsx("div",{className:"minimap__image-wrapper",style:{transform:`scale(${m})`},children:b.jsx(lb,{name:N.name,imgWidth:N.image.width,imgHeight:N.image.height,areas:_,activeArea:null==x?void 0:x.code,onAreaClick:e=>{if(!D){R&&k(e),h&&h.tour&&h.tour.scenarioPlayer&&h.tour.scenarioPlayer.pauseScenario();let n=e.category;if(n&&h&&h.tour&&h.tour.loadScene){var t=h.tour.scenes.filter(e=>e.categoryCode===n).sort((e,t)=>e.orderIndex-t.orderIndex);if(t.length){let n=t[0].code;e.defaultScene&&t.find(t=>t.code===e.defaultScene)&&(n=e.defaultScene),Y&&Y.find(e=>e.code===n)||(t=h.tour.getActiveScene())&&t.code===n||h.tour.loadScene(n)}}}},onAreaHover:e=>{R&&e||D||k(e)}})}),b.jsx("div",{className:"minimap__marker-wrapper",children:v&&v.map(e=>{if(!e)return null;let n=!1,s=(e.toScene&&e.toScene.code&&L&&L.code&&(n=e.toScene.code===L.code),o);n&&(s=i);var l,c,u=n?a:r;return t&&!n?null:(l=Y&&Y.find(t=>t.code===e.toScene.code),c=C.includes(e.toScene.code),b.jsx(ob,{marker:e,active:n,scaleOffset:m,color:u,size:s,invisible:S&&!n&&!l&&!c,onClick:U},e.code))})})]})})})]})});let db=(e,t)=>e.orderIndex-t.orderIndex,pb="HIDDEN",fb="MINIMUM",mb="MAXIMUM",gb=162,vb=64,bb=32,yb=40,_b=320,wb=44,xb=(e=0,t=0,n=gb,o=gb)=>({[pb]:{width:n,height:o,top:e,right:-(+n+ +t),opacity:0},[fb]:{width:n,height:o,top:e,right:t,opacity:1},[mb]:{width:n,height:o,top:e,right:t,opacity:1}}),kb=O.memo(()=>{let e=Jv().size,t=O.useContext(st),[n,o]=O.useState(xb().HIDDEN),[i,r]=O.useState(!0),[a,s]=O.useState(!1),[l,c]=O.useState([]),[u,h]=O.useState(!1),[d,p]=O.useState(!1),[f,m]=O.useState(!1),[g,v]=O.useState(!1),[y,_]=O.useState(null),w=(nb().overrideConfigs||{}).language,{isMobileDevice:x,showFloorplan:k,autoPlaying:S,tourData:E,activeScene:T,activeFloorplan:P,loadingScene:C,showAGTPlaylist:A,showSceneCategories:M,fullscreenMinimap:N,getShowSlideIn:L,floorplans:D,setActiveFloorplan:R,setShowSceneCategories:I,toggleShowAGTPlaylist:$}=tr(),F=L();O.useRef(null);let V=O.useRef(!1),j=N&&!i&&S,H=(O.useEffect(()=>{let e=()=>{z({width:window.innerWidth,height:window.innerHeight})};return k&&!i&&window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[k,i]),O.useEffect(()=>{var e,t,n=bb/2;!S&&k&&!M&&null!=l&&l.length?(e=gb,i?(t=H(e),o(xb(vb,n+(F?406:0),e,a?_b:t).MINIMUM)):z()):j?z():o(xb(vb,n).HIDDEN)},[M,k,i,l,S,a,P,f,E,"",A,F,null==e?void 0:e.width,N]),O.useEffect(()=>{E&&h(!0)},[E]),O.useEffect(()=>{var e;u&&D&&D.length&&(e=[...D].filter(e=>e.image)).length&&(e=e.sort(db),c(e),P||R(e[0]))},[u]),O.useEffect(()=>{var e;!d&&u&&l.length&&T&&(p(!0),e=l.find(e=>(e.markers||[]).some(e=>e.toScene.code===T.code)))&&R(e)},[d,u,l.length,T]),O.useEffect(()=>{k||(r(!0),s(!1)),k&&M&&I(!1)},[k]),O.useEffect(()=>{S&&r(!0)},[S]),O.useEffect(()=>{},[k,i]),O.useEffect(()=>{},[!1]),O.useEffect(()=>{l&&l.length&&r(!N)},[N]),e=>{var t;if(f)return wb;if(null==(t=null==P?void 0:P.image)||!t.height||null==(t=null==P?void 0:P.image)||!t.width)return 0;let n=Math.round(P.image.height/P.image.width*(e-bb))+yb;return 1<l.length&&(n+=yb),n}),z=t=>{var{width:t,height:n}=t||e;o(xb(0,0,t,n).MAXIMUM)},B=(e=!1)=>{var n;C||(null!=(n=t.tour)&&n.scenarioPlayer&&t.tour.scenarioPlayer.pauseScenario(),r(e))},W=e=>({value:e.code,label:e.name}),G=()=>{C||!1===(null==V?void 0:V.current)&&B(!0)};var X;return b.jsxs(b.Fragment,{children:[b.jsx("style",{children:'.minimap-bottom-sheet{background-color:initial;z-index:var(--number-infinity)}.minimap-bottom-sheet__header{position:absolute;width:100%;z-index:2}.minimap-bottom-sheet__header .clik-bottom-sheet__header:before{background:var(--color-white-32)}.minimap-bottom-sheet__bg{background-color:var(--color-gray-2);border-radius:16px 16px 0 0;height:100%;width:100%}.floor-plan-minimap{background-color:var(--color-black-24);border-radius:16px;cursor:pointer;display:flex;flex-direction:column;position:fixed;transition:opacity .3s ease-in-out;-webkit-user-select:none;user-select:none}.floor-plan-minimap__header{display:flex;flex-direction:column;gap:var(--space-16)}.floor-plan-minimap__action{display:flex;gap:8px;justify-content:center;margin:auto;max-width:320px;width:100%}.floor-plan-minimap__select{flex:1 1 auto}.floor-plan-minimap__select .rc-select-arrow,.floor-plan-minimap__select.rc-select{color:var(--color-white)}.floor-plan-minimap__select .rc-select-arrow{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-size:24px;font-style:normal;height:24px;line-height:1;margin-top:-6px;pointer-events:none;position:absolute;right:11px;text-align:center;text-rendering:optimizeLegibility;text-transform:none;top:37%;vertical-align:-.125em;width:24px}.floor-plan-minimap__select .rc-select-arrow [class*=" icon-"]:before,.floor-plan-minimap__select .rc-select-arrow [class^=icon-]:before,.floor-plan-minimap__select.rc-select{color:var(--color-white)}.floor-plan-minimap__select .rc-select-arrow .anticon:not(.rc-select-suffix){pointer-events:none}.floor-plan-minimap__select.rc-select:not(.rc-select-customize-input) .rc-select-selector .rc-select-selection-search-input{display:none}.floor-plan-minimap__select.rc-select-focused:not(.rc-select-disabled).rc-select:not(.rc-select-customize-input) .rc-select-selector,.floor-plan-minimap__select:hover:not(.rc-select-disabled).rc-select:not(.rc-select-customize-input) .rc-select-selector{border:0;box-shadow:none}.floor-plan-minimap__close{align-items:center;background-color:var(--color-white-64);display:flex;flex:0 0 40px;height:40px;justify-content:center;padding:0}.floor-plan-minimap__close:hover{background-color:var(--color-white-72);border-color:#0000;box-shadow:0 1px 4px var(--color-black-32)}.floor-plan-minimap__close--loading{cursor:not-allowed!important;-webkit-user-select:none;user-select:none}.floor-plan-minimap__close--loading:hover{background:var(--color-white-64);border-color:#0000;color:var(--color-black-72)}.floor-plan-minimap__select.rc-select{max-width:320px;width:100%}.floor-plan-minimap__select.rc-select:not(.rc-select-customize-input) .rc-select-selector{background-color:var(--color-black-24);border-radius:16px;border-width:0}.floor-plan-minimap__select.rc-select-disabled .rc-select-selector .rc-select-selection-item,.floor-plan-minimap__select.rc-select-single.rc-select-open .rc-select-selection-item{color:var(--color-white)}.floor-plan-minimap__option{background:var(--color-black-24)}.floor-plan-minimap__option.rc-select-dropdown{font-feature-settings:"tnum";border:none;box-shadow:0 10px 35px -5px #00000026;box-sizing:border-box;color:#000000d9;font-size:13px;font-variant:normal;line-height:1.5715;list-style:none;margin:0;min-height:0;outline:none;overflow:hidden;position:absolute;z-index:1050}.floor-plan-minimap__option .rc-select-item{font-size:13px;line-height:22px;min-height:32px;position:relative}.floor-plan-minimap__option .rc-select-item-option{background-color:initial;border-radius:12px;color:var(--color-white);font-weight:var(--font-weight-bold);height:40px;margin:var(--space-2) var(--space-8);padding:var(--space-8);text-align:center}.floor-plan-minimap__option .rc-select-item-option-state{display:none!important}.floor-plan-minimap__option .rc-select-item-option-selected:not(.rc-select-item-option-disabled){background-color:#3485f7;color:var(--color-white)}.floor-plan-minimap__option .rc-select-item-option-active:not(.rc-select-item-option-disabled):not(.rc-select-item-option-selected){background-color:var(--color-white-24)}.floor-plan-minimap__option:not(.floor-plan-minimap__option--fullscreen){border-radius:0 0 16px 16px;padding:0 0 var(--space-10) 0}.floor-plan-minimap__option--fullscreen{background-color:initial;border-radius:0;box-shadow:none}.floor-plan-minimap__option--fullscreen .rc-select-item-option{margin:var(--space-4) 0}.floor-plan-minimap__title{color:var(--color-white);font-size:var(--font-size-16);text-align:center;text-shadow:var(--text-shadow)}.floor-plan-minimap__body{flex:1 1 auto;position:relative}.floor-plan-minimap__body .floorplan__minimap-wrapper .minimap__content-wrapper .minimap__content{border-radius:8px}.floor-plan-minimap__footer,.floor-plan-minimap__footer .footer__button-scene{align-items:center;display:flex;gap:var(--space-8);justify-content:center}.floor-plan-minimap__footer .footer__button-scene{backdrop-filter:blur(10px) opacity(1) brightness(1);background-color:var(--color-white-24);border:1px solid var(--color-white-16);border-radius:100px;height:40px;padding:var(--space-8) var(--space-28)}.floor-plan-minimap__footer .footer__button-scene>[class^=icon-]:before{color:var(--color-white)}.floor-plan-minimap__footer .footer__button-scene>span{color:var(--color-white);font-size:var(--font-size-14);font-weight:var(--font-weight-medium);line-height:var(--line-height-20)}.floor-plan-minimap .minimap-mask{border-radius:16px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;z-index:1}.floor-plan-minimap .minimap-mask--loading{cursor:default}.floor-plan-minimap:not(.floor-plan-minimap--fullscreen){max-height:calc(50% - 64px)}.floor-plan-minimap:not(.floor-plan-minimap--fullscreen).is-mobile .floor-plan-minimap__header{display:none}.floor-plan-minimap .floor-plan-minimap__select.rc-select-single:not(.rc-select-customize-input) .rc-select-selector{border-radius:12px;font-weight:var(--font-weight-bold);height:40px;padding:0 13px;width:100%}.floor-plan-minimap .floor-plan-minimap__select.rc-select-single .rc-select-selector .rc-select-selection-item{flex:1;font-size:13px;font-weight:var(--font-weight-bold);line-height:40px;overflow:hidden;padding:0 17px 0 0;position:relative;text-overflow:ellipsis;transition:all .3s;-webkit-user-select:none;user-select:none;white-space:nowrap}.floor-plan-minimap .floorplan__minimap-wrapper{-ms-overflow-style:none;overflow:auto;scrollbar-width:none}.floor-plan-minimap .floorplan__minimap-wrapper::-webkit-scrollbar{display:none}.floor-plan-minimap__horizontal-line{border-color:var(--color-white-16)}.floor-plan-minimap--fullscreen{cursor:auto;z-index:calc(var(--z-index) - 1)}.floor-plan-minimap--fullscreen:not(.is-mobile){backdrop-filter:blur(10px) opacity(1) brightness(1)}.floor-plan-minimap--fullscreen.is-mobile{background-color:var(--color-gray-2);border-radius:24px 24px 0 0;padding:30px var(--space-16) var(--space-16) var(--space-16)}.floor-plan-minimap--fullscreen.is-mobile .floorplan__minimap-wrapper{padding:0}.floor-plan-minimap--fullscreen.is-mobile .floor-plan-minimap__horizontal-line{margin-left:calc(0px - var(--space-16));width:calc(100% + var(--space-32))}.floor-plan-minimap--fullscreen.is-desktop{border-radius:0;height:var(--space-72);padding:var(--space-64) var(--space-32)}.floor-plan-minimap--fullscreen.is-desktop .floor-plan-minimap__horizontal-line{max-width:376px;width:100%}.floor-plan-minimap--fullscreen .floorplan__minimap-wrapper{cursor:auto}.floor-plan-minimap--fullscreen .floor-plan-minimap__select.rc-select-single:not(.rc-select-customize-input) .rc-select-selector{background-color:var(--color-white-24);border-radius:12px}.floor-plan-minimap--fullscreen.floor-plan-minimap--mobile-horizontal{padding:var(--space-16)}.floor-plan-minimap--fullscreen.floor-plan-minimap--mobile-horizontal .floor-plan-minimap__header{margin-bottom:var(--space-10)}.floor-plan-minimap--fullscreen.floor-plan-minimap--mobile-horizontal .floor-plan-minimap__header .floor-plan-minimap__title{display:none}.floor-plan-minimap--fullscreen.floor-plan-minimap--mobile-horizontal .floor-plan-minimap__body .floorplan__minimap-wrapper{padding-bottom:0}.floor-plan-minimap--rounded-bottom-0{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.floor-plan-minimap:not(.floor-plan-minimap--fullscreen) .floor-plan-minimap__select.rc-select:not(.rc-select-customize-input) .rc-select-selector{border-bottom-left-radius:0;border-bottom-right-radius:0}'}),!1,u?b.jsxs(Pg.div,{initial:xb().HIDDEN,animate:n,transition:{type:"tween",duration:.3},className:U("floor-plan-minimap",x?"is-mobile":"is-desktop",{"floor-plan-minimap--fullscreen":k&&!i||j,"floor-plan-minimap--rounded-bottom-0":f,"floor-plan-minimap--mobile-horizontal":x&&!0}),id:"floor-plan-id",onAnimationStart:()=>v(!0),onAnimationComplete:()=>v(!1),style:{"--z-index":j?"var(--z-order-mask)":"var(--number-infinity)"},children:[b.jsxs("div",{className:"floor-plan-minimap__header",children:[b.jsxs("div",{className:"floor-plan-minimap__action",ref:_,children:[P&&1<(null==l?void 0:l.length)?b.jsx(Qv,{animation:"slide-up",disabled:C,onDropdownVisibleChange:m,className:"floor-plan-minimap__select",dropdownClassName:U("floor-plan-minimap__option",{"floor-plan-minimap__option--fullscreen":!i}),getPopupContainer:()=>y,suffixIcon:C?b.jsx("i",{className:"icon-loading_24x24"}):b.jsx("i",{className:"icon-caret_down_24x24"}),value:W(P).value,onChange:e=>{var n,o,i;(n=e)!==(null==P?void 0:P.code)&&D.length&&!C&&((e=D.find(e=>e.code===n))&&null!=(i=e.markers)&&i.length&&((i=[...e.markers]).sort((e,t)=>e&&e.toScene&&e.toScene.orderIndex&&t&&t.toScene&&t.toScene.orderIndex?e.toScene.orderIndex-t.toScene.orderIndex:0),null!=(o=t.tour)&&o.scenarioPlayer&&t.tour.scenarioPlayer.pauseScenario(),t.tour)&&null!=(o=i[0].toScene)&&o.code&&t.tour.loadScene(null==(o=i[0].toScene)?void 0:o.code),R(e||null))},options:l.map(e=>W(e)),dropdownStyle:i?{}:{zIndex:"var(--number-infinity)",minWidth:(null==y?void 0:y.offsetWidth)||0}}):b.jsx("div",{className:"floor-plan-minimap__select"}),!i&&b.jsxs(Y,{className:U("floor-plan-minimap__close",{"floor-plan-minimap__close--loading":C}),onClick:G,children:[C&&b.jsx("i",{className:"icon-location_24x24"}),!C&&b.jsx("i",{className:"icon-menu_close_big_24x24"})]})]}),!(i||!T)&&b.jsx("div",{className:U("floor-plan-minimap__title",{fade:f}),children:"Space "+(()=>{if(!T)return"";let e=T.name;switch(w){case ee.en.id:var t=T.props.nameEn;t&&(e=t);break;case ee.jp.id:(t=T.props.nameJp)&&(e=t);break;case ee.kr.id:(t=T.props.nameKr)&&(e=t);break;case ee.cn.id:(t=T.props.nameCn)&&(e=t)}return e})()})]}),b.jsxs("div",{className:U("floor-plan-minimap__body",{fade:f}),children:[C&&b.jsx("div",{className:U("minimap-mask",{"minimap-mask--loading":C}),onClick:()=>{C||!1===(null==V?void 0:V.current)&&B(!1)}}),b.jsx(hb,{boxWidth:e?(e.width||0)-64-32:void 0,noRadar:!(null!=P&&P.enabledRadar),activeColor:null==E?void 0:E.activeMarkerColor,defaultColor:null==E?void 0:E.markerColor,defaultSize:i?void 0:ut,onWrapperClick:()=>!g&&B(!1),onMarkerClick:G,isMinimized:i})]}),!i&&!(null==E||!E.scenes)&&!(null==(X=null==E?void 0:E.scenes)||!X.length)&&b.jsxs(b.Fragment,{children:[b.jsx("hr",{className:"floor-plan-minimap__horizontal-line"}),b.jsx("div",{className:"floor-plan-minimap__footer",children:b.jsxs(Y,{className:"footer__button-scene",onClick:e=>{e.stopPropagation(),e.preventDefault(),G(),I(!0),A&&$()},children:[b.jsx("i",{className:"icon-hotspot_scene_on_outlined-24x24"}),b.jsx("span",{children:"Scenes"})]})})]})]}):null]})});var Sb=function(){var e,t,o,i,r,a,s,l,c,u,h,d,p,f;return ub||(ub=1,e=NaN,t="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n&&n&&n.Object===Object&&n,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),h=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return u.Date.now()},cb=function(e,t,n){var o,i,r,a,s,l,c=0,u=!1,h=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=o,r=i;return o=i=void 0,c=t,a=e.apply(r,n)}function y(e){var n=e-l;return void 0===l||t<=n||n<0||h&&r<=e-c}function _(){var e,n=f();if(y(n))return w(n);s=setTimeout(_,(e=t-(n-l),h?p(e,r-(n-c)):e))}function w(e){return s=void 0,v&&o?b(e):(o=i=void 0,a)}function x(){var e=f(),n=y(e);if(o=arguments,i=this,l=e,n){if(void 0===s)return c=e=l,s=setTimeout(_,t),u?b(e):a;if(h)return s=setTimeout(_,t),b(l)}return void 0===s&&(s=setTimeout(_,t)),a}return t=g(t)||0,m(n)&&(u=!!n.leading,r=(h="maxWait"in n)?d(g(n.maxWait)||0,t):r,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==s&&clearTimeout(s),o=l=i=s=void(c=0)},x.flush=function(){return void 0===s?a:w(f())},x}),cb;function m(e){var t=typeof e;return e&&("object"==t||"function"==t)}function g(n){if("number"==typeof n)return n;if("symbol"==typeof(c=n)||(l=c)&&"object"==typeof l&&h.call(c)==t)return e;var l;if("string"!=typeof(n=m(n)?m(l="function"==typeof n.valueOf?n.valueOf():n)?l+"":l:n))return 0===n?n:+n;n=n.replace(o,"");var c=r.test(n);return c||a.test(n)?s(n.slice(2),c?2:8):i.test(n)?e:+n}}(),Eb=o(Sb),Tb="undefined"!=typeof window?O.useLayoutEffect:O.useEffect;function Pb(e,t=500,n){let o=O.useRef();!function(e){let t=O.useRef(e);t.current=e,O.useEffect(()=>()=>{t.current()},[])}(()=>{o.current&&o.current.cancel()});var i=O.useMemo(()=>{let i=Eb(e,t,n);var r=(...e)=>i(...e);return r.cancel=()=>{i.cancel()},r.isPending=()=>!!o.current,r.flush=()=>i.flush(),r},[e,t,n]);return O.useEffect(()=>{o.current=Eb(e,t,n)},[e,t,n]),i}var Ob="undefined"==typeof window;function Cb(e={}){let{initializeWithValue:t=!0}=e,[n,o]=(Ob&&(t=!1),O.useState(()=>t?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0})),i=Pb(o,e.debounceDelay);function r(){(e.debounceDelay?i:o)({width:window.innerWidth,height:window.innerHeight})}return function(e,t,n,o){let i=O.useRef(t);Tb(()=>{i.current=t},[t]),O.useEffect(()=>{let t=window;if(t&&t.addEventListener){let n=e=>{i.current(e)};return t.addEventListener(e,n,o),()=>{t.removeEventListener(e,n,o)}}},[e,n,o])}("resize",r),Tb(()=>{r()},[]),n}let Ab=()=>{var e=O.useContext(st).tour,t=tr().isMobileDevice,n=Cb().width,o=O.useMemo(()=>"calc(var(--screen-width) / 2 - 16px)",[]);e=null==e?void 0:e.props;return b.jsxs("div",{className:"cvtv-ui-layout__tour-logo",style:{"--tour-logo-max-width":o,"--screen-width":n?n+"px":"100%"},children:[(null==e?void 0:e.tourLogo)&&b.jsx("img",{src:e.tourLogo.file.url,alt:"logo"}),!(null==e||!e.showTourName)&&!t&&b.jsx("span",{children:e.name})]})};var Mb=O.memo(({onClickFuncButton:e})=>{let[t,n]=O.useState(!1),[o,i]=O.useState(!1),{isMobileDevice:r,setShowGuide:a,activeFuncButton:s,setShowFloorplan:l,setNavigationArrowsVisible:c,navigationArrowsVisible:u,showGuide:h,labelVisible:d,setIsFullscreen:p,isFullscreen:f,pinAction:m,isGyroscope:g,searchAndDiscover:v,showShareLink:y,autoPlaying:_,tourSoundPlaying:w,visibleAction:x,setGallery:k,setTourSoundPlaying:S,setLabelVisible:E,setLabelInvisibleArray:T,setIsGyroscope:P,activeScenario:C}=tr(),A=O.useContext(st).tour,M=A.props,L=!(null==M||!M.enableChat),D=O.useRef(null),R=Cb(),I={HOTSPOT:!0,SHARE:!0,SEARCH:!0,CONFIG:!0},$={GUIDE:!0,SIMULATION_VR:r,FULLSCREEN:!r,SOUND:!s},F=O.useMemo(()=>({[G.HOTSPOT.key]:(e=>{let t,n=[q,J,Q,K,Z];return 0!==((null==(t=null==e?void 0:e.scenes)?void 0:t.flatMap(e=>e.pois))||[]).filter(e=>!n.includes(e.type)).length})(M),[G.NAVIGATION_ARROWS.key]:null==M?void 0:M.showNavigationHotspots,[G.SIMULATION_VR.key]:!1,[G.SOUND.key]:!0,[G.SCREEN_SHOT.key]:null==M?void 0:M.allowScreenshot,[G.FULLSCREEN.key]:!r,[G.CHAT.key]:!1,[G.CONFIG.key]:!0,[G.SHARE.key]:!0,[G.SEARCH.key]:!0,[G.GUIDE.key]:!0}),[f,d,u,g,v,w,y]),V=(e,t)=>{switch(e){case G.MAP.key:l(!t);break;case G.NAVIGATION_ARROWS.key:A&&(c(!t),A.toggleNavigationHotspotsVisibility(!t));break;case G.SOUND.key:S(!t);break;case G.HOTSPOT.key:var n=!t;E(n),T(n?[]:["LABEL_INVISIBLE_ALL"]),A&&A.toggleLabelVisibility(n);break;case G.SIMULATION_VR.key:(e=>{var t,n;try{null!=(n=null==(t=null==A?void 0:A.plugins)?void 0:t.gyro)&&n.toggle(!e),P(!e)}catch(e){console.warn(e)}})(t);break;case G.SCREEN_SHOT.key:null!=A&&A.screenshot();break;case G.FULLSCREEN.key:null!=A&&A.toggleFullscreen(!t);break;case G.SHARE.key:case G.SEARCH.key:case G.CHAT.key:break;case G.GUIDE.key:a(!h)}},j=t=>{t.openType===N.NEW_TAB?window.open(t.link,"_blank"):e&&e(t)},H=e=>{var{functionButtons:t=[]}=A.props,n=G[e];let o=t.find(t=>t.code===e);if(!o&&!n)return null;if(!n)return b.jsx(Y,{className:U("cvtc-pin-actions__button"),icon:b.jsx("img",{className:"button__icon-img",src:o.icon.file.url}),onClick:()=>j(o)},e);let i=x[e],r=i?n.icon:n.offIcon;return e===G.FULLSCREEN.key&&(r=i?n.offIcon:n.icon),b.jsx(Y,{className:U("cvtc-pin-actions__button",{"cvtc-pin-actions__button--active":i&&$[e]}),disabled:(e===G.SEARCH.key||e===G.CONFIG.key)&&_,icon:b.jsx("i",{className:r}),onClick:()=>V(e,i)},e)},z=()=>{document.fullscreenElement||null!=A&&A.toggleFullscreen(!1)};return O.useEffect(()=>{if(A)return A.fireOnToggleFullScreen(e=>p(!!e)),document.addEventListener("fullscreenchange",z,!1),()=>{document.removeEventListener("fullscreenchange",z,!1)}},[]),O.useEffect(()=>{var t,o;s?(({functionButtons:o=[]}=M),(o=o.find(e=>e.code===s))&&(n(!0),null!=o&&o.video?k({isShow:!0,activeId:o.video.id,items:[Object.assign(Object.assign({},o.video),{file:null==(t=o.video)?void 0:t.file,type:X})]}):j(Object.assign(Object.assign({},o),{type:N.IFRAME})))):(k({isShow:!1,activeId:null,items:[]}),null!=e&&e(null))},[s]),b.jsx("div",{ref:D,className:"cvtc-pin-actions",children:(()=>{var e=document.getElementById("floor-plan-id"),a=C?160:80;e=(null==e?void 0:e.clientHeight)||(null==R?void 0:R.height)/2-a/2;let s=4;r&&!F[G.SIMULATION_VR.key]&&--s;var l=48*(l=L?s+1:s);e=(a=(null==R?void 0:R.height)-a-e)<l;let c=Math.round(a/48-(t?2:1))||1;l=t||e?Object.entries(Object.assign(Object.assign(Object.assign({},m),I),$)):Object.entries($);let u=[];l.forEach(([e,t])=>{t&&F&&F[e]&&u.push(e)});a=(e=>{let t=Object.keys($);return e.sort((e,n)=>(e=t.indexOf(e),n=t.indexOf(n),-1!==e&&-1!==n?e-n:-1===e&&-1!==n?-1:1))})(u);var{functionButtons:l=[]}=M;let h={};l.length&&(h=l.reduce((e,t)=>(e[t.code]=!0,e),{})),t&&Object.keys(h).length&&a.unshift(...Object.keys(h)),l=L?c-1:c;let d=0<a.length-l?a.slice(0,Math.abs(a.length-l)):[];return 1===d.length&&(c+=1,d=[]),l=L?1-c:-c,a=L&&1===c?[]:a.slice(l),l=b.jsx("div",{className:"cvtc-pin-actions__button--show-popover",style:{"--content-height":48*(c+(1!==c||!r&&L?0:1))+"px "},children:d.map(e=>H(e))}),b.jsxs(b.Fragment,{children:[!e&&b.jsx(Y,{className:U("cvtc-pin-actions__button",{"cvtc-pin-actions__button--show-more":t}),icon:b.jsx("i",{className:"icon-arrow-up-circle"}),onClick:()=>{t||i(!0),n(!t)}}),!!d.length&&b.jsx(Ml,{overlay:l,trigger:"click",visible:o,classNames:{root:"cvtc-pin-actions__popover"},placement:"leftBottom",getTooltipContainer:()=>D.current,onVisibleChange:i,children:b.jsx(Y,{className:"cvtc-pin-actions__button",icon:b.jsx("i",{className:"icon-menu_more_horizontal_24x24"})})}),a.map(e=>H(e))]})})()})});let Nb=({step:e,isPlaying:t=!1})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:U("info__name",{"info__name--active":t}),children:[t&&b.jsx("img",{src:"images/sound-wave.gif",alt:"sound-wave",loading:"lazy"}),b.jsx("span",{children:e.name})]}),!(null==e||!e.shortDescription)&&b.jsx("div",{className:"info__short-description",children:e.shortDescription})]}),Lb=e=>{let{step:t,duration:n,isPlaying:o}=e,i=O.useContext(st).tour,{previewScenario:r,isMobileDevice:a,toggleShowAGTPlaylist:s,setActiveScenarioCode:l,setShowPlayList:c}=tr();return e=()=>{var e,n;o||(e=i.getTourScenario())&&(n=t.id,s(),r&&e.id!==r.id?(l(r.code),null!=(e=null==i?void 0:i.scenarioPlayer)&&e.updateAGTScenario(r,n)):(null!=i&&i.togglePlayStepByStepId(n),c(!1)))},a?b.jsxs("div",{className:"play-list__item",onClick:e,children:[b.jsx("div",{className:"item__info",children:b.jsx(Nb,{step:t,isPlaying:o})}),b.jsx("div",{className:"item__duration",children:xt(n)})]}):b.jsx(Ml,{trigger:["hover","click"],placement:"leftTop",overlay:b.jsx(Nb,{step:t}),children:b.jsxs("div",{className:"play-list__item",onClick:e,children:[b.jsx("div",{className:"item__info",children:b.jsx(Nb,{step:t,isPlaying:o})}),b.jsx("div",{className:"item__duration",children:xt(n)})]})})},Db=e=>{var{steps:e=[]}=e;let t=O.useContext(st).tour;var{overrideConfigs:n={}}=nb();let o=n.language,{scenarioCurrentStep:i,activeFuncButton:r,isViewPoiDetail:a,showChatbox:s,isMobileDevice:l}=tr(),c=O.useRef(null),[u,h]=O.useState({});var n=O.useMemo(()=>{var e=document.querySelector(".cvtc-beta-tour__tour-logo");return e?e.clientHeight:0},[t]),d=O.useMemo(()=>c.current?c.current.clientWidth:0,[c.current]);return O.useEffect(()=>{t&&St(void 0,void 0,void 0,function*(){if(t&&t.getTourScenario()){let n={};var e=((null==(e=t.getTourScenario())?void 0:e.steps)||[]).sort((e,t)=>e.orderIndex-t.orderIndex).map(e=>St(void 0,void 0,void 0,function*(){var t=""+e.props.id;n[t]=yield e.getDuration({language:o,checkDuration:!0})}));yield Promise.all(e),h(n)}})},[t]),b.jsx("div",{ref:c,className:U("cvtc-play-list",{"cvtc-play-list--have-function-buttons":!!r&&!l,"cvtc-play-list--show-slide-in":a||s}),style:{"--tour-logo-height":n+"px","--play-list-width":d+"px"},children:e.map((e,t)=>{var n=!!i&&i.id===e.id;return b.jsx(Lb,{step:e,duration:u[e.id||""],isPlaying:n},t)})})},Rb={CLOSE:{key:"CLOSE",icon:"icon-menu_close_big_24x24"},LOOP:{key:"LOOP",icon:"icon-repeat_24x24",offIcon:"icon-repeat-off_24x24"},PREV:{key:"PREV",icon:"icon-skip_previous_24x24"},PLAY_PAUSE:{key:"PLAY_PAUSE",icon:"icon-play_arrow_24x24",offIcon:"icon-pause_circle_24x24"},NEXT:{key:"NEXT",icon:"icon-skip_next_24x24"},SOUND:{key:"SOUND",icon:"icon-clik-sound_24x24",offIcon:"icon-volume_off_round-24x24"},PLAY_LIST:{key:"PLAY_LIST",icon:"icon-video_library_24x24"}},Ib=()=>{let e=O.useContext(st).tour,{isMobileDevice:t,activeScenario:n,autoPlaying:o,tourReady:i,previewScenario:r,showPlayBar:a,showPlayList:s,isViewPoiDetail:l,playingHotspotSound:c,playingTempScenario:u,activeScenarioCode:h,tourSoundPlaying:d,showTourScenarios:p,showChatbox:f,activeFuncButton:m,fullscreenMinimap:g,mutedVideo:v,scenarios:y,scenarioCurrentStep:_,setMutedVideo:w,setShowPlayBar:x,setShowPlayList:k,setShowTourScenarios:S,setActiveFuncButton:E,setFullscreenMinimap:T,setActiveScenarioCode:P,setTourSoundPlaying:C}=tr(),[A,M]=O.useState([]),[N,L]=O.useState((null==e?void 0:e.autoplayReplay)||!1),[D,R]=O.useState(!1),[,I]=O.useState(!1),$=O.useMemo(()=>!_||!A.length||_.id===A[0].id,[_,A]),F=O.useMemo(()=>!_||!A.length||_.id===A[A.length-1].id,[_,A]),V=O.useMemo(()=>c||u||h&&(Object.values(he).includes(h)||Object.keys(de).includes(h)),[h]),j=()=>{w(!1)};var H=()=>{j(),R(!0)};let z=()=>{var t;x(!1),k(!1),S(!1),null!=(t=null==e?void 0:e.scenarioPlayer)&&t.pauseScenario(),E(null),T(!1)},B=()=>{var t,n,a;e&&i&&(o?(null!=(a=e.scenarioPlayer)&&a.pauseScenario(),m&&E(null),g&&T(!1)):r?(P(r.code),null!=(a=e.scenarioPlayer)&&a.updateAGTScenario(r)):h&&(a=y[h])&&null!=(n=null==(t=null==e?void 0:e.scenarioPlayer)?void 0:t.setActiveScenarioCode)&&n.call(t,a.code,!0))},W=()=>{var t;e&&i&&(t=e.getTourScenario())&&(L(!N),t.setAutoPlay(!N))},G=t=>{var n;e&&i&&(null!=(n=e.scenarioPlayer)&&n.handleAutoPlaySkip(t),m&&E(null),g)&&T(!1)},X=e=>{let t=e.icon,n=!1,i="";switch(e.key){case Rb.CLOSE.key:i="actions__button--close";break;case Rb.LOOP.key:t=N?e.icon:e.offIcon;break;case Rb.PLAY_PAUSE.key:t=o?e.offIcon:e.icon,i=o?"actions__button--pause":"actions__button--play";break;case Rb.SOUND.key:t=d?e.icon:e.offIcon;break;case Rb.PREV.key:n=!o||!!V||$;break;case Rb.NEXT.key:n=!o||!!V||F;break;case Rb.PLAY_LIST.key:n=!!V||!A.length,i="actions__button--group"}return b.jsx(Y,{icon:b.jsx("i",{className:t}),onClick:t=>{t.stopPropagation(),t.preventDefault(),(e=>{switch(e){case Rb.CLOSE.key:z();break;case Rb.LOOP.key:W();break;case Rb.PREV.key:G(!0);break;case Rb.PLAY_PAUSE.key:B();break;case Rb.NEXT.key:G(!1);break;case Rb.SOUND.key:C(!d);break;case Rb.PLAY_LIST.key:!s&&p&&S(!1),k(!s)}})(e.key)},disabled:n,className:"actions__button "+i})};return O.useEffect(()=>{n&&n.steps&&n.steps.length&&M(n.steps)},[n]),O.useEffect(()=>{var t;a&&!o&&null!=e&&e.scenarioPlayer&&null!=(t=null==e?void 0:e.scenarioPlayer)&&t.startScenario()},[a]),O.useEffect(()=>{if(D){let e=setTimeout(()=>{R(!1)},4e3);return()=>clearTimeout(e)}},[D]),O.useEffect(()=>{let e=setTimeout(()=>{I(!0)},300);return()=>clearTimeout(e)},[a]),b.jsxs("div",{className:U("cvtc-play-bar",{"cvtc-play-bar--show-mask":o}),children:[o&&b.jsx("div",{className:"cvtc-play-bar__mask",onMouseDown:H,onTouchStart:H,children:v&&b.jsx(Y,{className:"cvtc-button-unmute-video",onClick:j,icon:b.jsx("i",{className:"icon-clik-sound"})})}),s&&!!n&&b.jsx(Db,{steps:A}),b.jsx("div",{className:U("cvtc-play-bar__actions-wrapper",{"cvtc-play-bar__actions-wrapper--mobile":t,"cvtc-play-bar__actions-wrapper--show-slide-in":l||f}),children:Object.values(Rb).map(e=>X(e))})]})};let $b=()=>{let{muted:e,setMuted:t,setMutedVideo:n}=tr(),o=()=>{t(!1),n(!1)};return e?b.jsxs(b.Fragment,{children:[b.jsx("style",{children:".cvtc-beta-tour__btn-sound{align-items:center;backdrop-filter:blur(24px) opacity(1) brightness(1);border-radius:var(--space-12);box-shadow:0 1px 8px var(--color-black-24);display:flex;font-size:var(--font-size-16);height:44px;justify-content:center;left:var(--space-16);min-width:48px;padding:var(--space-8) var(--space-12);position:absolute;top:var(--space-64);transition:all .3s ease-in-out;z-index:var(--z-order-action-on-mask)}.cvtc-beta-tour__btn-sound--hidden{opacity:0;visibility:hidden}.cvtc-beta-tour__btn-sound__label--hidden{animation:hideElement 5s forwards}.cvtc-beta-tour__btn-sound,.cvtc-beta-tour__btn-sound:active,.cvtc-beta-tour__btn-sound:focus,.cvtc-beta-tour__btn-sound:hover{background-color:var(--color-black-36);border:none}.cvtc-beta-tour__btn-sound,.cvtc-beta-tour__btn-sound:active,.cvtc-beta-tour__btn-sound:active>i:before,.cvtc-beta-tour__btn-sound:focus,.cvtc-beta-tour__btn-sound:focus>i:before,.cvtc-beta-tour__btn-sound:hover,.cvtc-beta-tour__btn-sound:hover>i:before,.cvtc-beta-tour__btn-sound>i:before{color:var(--color-white)}.cvtc-beta-tour__mute-modal{inset:0;position:fixed;z-index:var(--z-order-modal-on-mask)}"}),b.jsx(Y,{className:U("cvtc-beta-tour__btn-sound",{"cvtc-beta-tour__btn-sound--hidden":!e}),icon:b.jsx("i",{className:"icon-clik-sound"}),onClick:e=>{e.preventDefault(),e.stopPropagation(),o()},children:b.jsx("span",{className:U("cvtc-beta-tour__btn-sound__label",{"cvtc-beta-tour__btn-sound__label--hidden":!0}),children:"Click to turn on sound"})}),e&&b.jsx("div",{className:"cvtc-beta-tour__mute-modal",onClick:e=>{e.preventDefault(),e.stopPropagation(),o()}})]}):null};var Fb,Vb,jb,Hb,zb,Bb,Ub,Yb,Wb,Gb,Xb,qb,Kb,Zb,Qb,Jb,ey,ty,ny,oy,iy,ry,ay,sy,ly,cy,uy,hy;let dy=()=>{var{}=O.useContext(st);let{showPlayBar:e,showChatbox:t,isViewPoiDetail:n,showTourScenarios:o,showPlayList:i,setShowPlayList:r,setShowTourScenarios:a,showGuide:s,getGroupTopBtn:l,showFloorplan:c,setShowSceneCategories:u,scenarioSubtitle:h,showSceneCategories:d,setShowFloorplan:p,setScenarioSubtitleVisible:f,activeScenario:m,autoPlaying:g,scenarioCurrentStep:v,activeFuncButton:y}=tr();var[,_]=O.useState(null),[,w]=O.useState(!1),x=((e,t)=>{if(!t||!t.steps.length)return!1;let n=t=>{var o,i;for(i of t){if(null!=(o=null==i?void 0:i.actions)&&o.some(t=>t.type===e))return!0;if(null!=i&&i.children&&i.children.length&&n(i.children))return!0}return!1};return n(t.steps)})(ue.OPEN_MINIMAP,m);let k=e=>{e.stopPropagation(),e.preventDefault()},S=e=>{e.stopPropagation(),e.preventDefault(),f(!h.visible)};var E=l();return b.jsxs(b.Fragment,{children:[b.jsx("style",{children:".cvtc-beta-tour__btn-sound{align-items:center;backdrop-filter:blur(var(--space-24)) opacity(1) brightness(1);border-radius:var(--space-12);box-shadow:0 1px 8px var(--color-black-24);display:flex;font-size:var(--font-size-16);height:44px;justify-content:center;left:var(--space-16);min-width:48px;padding:var(--space-8) var(--space-12);position:absolute;top:var(--space-64);transition:all .3s ease-in-out;z-index:var(--z-order-action-on-mask)}.cvtc-beta-tour__btn-sound--hidden{opacity:0;visibility:hidden}.cvtc-beta-tour__btn-sound__label--hidden{animation:hideElement 5s forwards}.cvtc-beta-tour__btn-sound,.cvtc-beta-tour__btn-sound:active,.cvtc-beta-tour__btn-sound:focus,.cvtc-beta-tour__btn-sound:hover{background-color:var(--color-black-36);border:none}.cvtc-beta-tour__btn-sound,.cvtc-beta-tour__btn-sound:active,.cvtc-beta-tour__btn-sound:active>i:before,.cvtc-beta-tour__btn-sound:focus,.cvtc-beta-tour__btn-sound:focus>i:before,.cvtc-beta-tour__btn-sound:hover,.cvtc-beta-tour__btn-sound:hover>i:before,.cvtc-beta-tour__btn-sound>i:before{color:var(--color-white)}.cvtc-beta-tour__mute-modal{inset:0;position:fixed;z-index:var(--z-order-modal-on-mask)}.cvtc-beta-tour__tour-logo{align-items:center;display:flex;filter:drop-shadow(0 var(--space-2) var(--space-16) var(--color-black-16));left:var(--space-16);max-width:var(--tour-logo-max-width);position:absolute;top:var(--space-16);z-index:1}.cvtc-beta-tour__tour-logo span{color:var(--color-white);overflow:hidden;padding:var(--space-2) var(--space-8);text-overflow:ellipsis;text-shadow:0 2px 8px var(--color-black-72);text-transform:uppercase;white-space:nowrap}.cvtc-beta-tour__tour-logo img{max-height:40px;max-width:120px}.cvtc-beta-tour__group-pin-action{align-items:end;bottom:var(--space-10);display:flex;flex-direction:column;gap:var(--space-8);pointer-events:none;position:absolute;right:var(--space-16)}.cvtc-beta-tour__group-pin-action--show-function-button{bottom:var(--space-64);position:absolute;right:var(--space-16)}.cvtc-beta-tour__group-pin-action .cvtc-auto-play-menu-bar,.cvtc-beta-tour__group-pin-action .cvtc-pin-actions,.cvtc-beta-tour__group-pin-action .cvtc-show-ai-menu-bar{pointer-events:auto}.cvtc-beta-tour__group-action{display:flex;gap:var(--space-8);position:absolute;right:var(--space-16);top:var(--space-16)}.cvtc-beta-tour__group-action .group-action__btn{align-items:center;background:#0000;box-shadow:unset;display:flex;height:40px;justify-content:center;width:40px}.cvtc-beta-tour__group-action .group-action__btn:focus,.cvtc-beta-tour__group-action .group-action__btn:hover{background-color:var(--color-black-16);border-color:#0000}.cvtc-beta-tour__group-action .group-action__btn>[class^=icon-]:before{color:var(--color-white);text-shadow:0 2px 8px var(--color-black-64)}.cvtc-beta-tour__group-action .group-action__btn--subtitle{opacity:0;right:calc(-40px - var(--space-8));transition:all .3s ease-in-out}.cvtc-beta-tour__group-action .group-action__btn--show{opacity:1;right:0;transform:rotate(1turn)}.cvtc-beta-tour__group-action .group-action__btn--active{background-color:var(--color-black-36)}.cvtc-beta-tour__group-action .group-action__btn--active>[class^=icon-]:before{color:var(--color-mint)}.cvtc-beta-tour__group-action .group-action__btn--active:focus,.cvtc-beta-tour__group-action .group-action__btn--active:hover{background-color:var(--color-black-16);border-color:#0000}.cvtc-beta-tour__tour-scenarios{position:absolute;right:var(--space-16);top:var(--space-16);z-index:1072}.cvtc-beta-tour__tour-scenarios--show-slide-in{position:absolute;right:416px;top:var(--space-16)}.cvtc-beta-tour__tour-scenarios .tour-scenarios__btn{align-items:center;background:#0000;box-shadow:unset;display:flex;height:40px;justify-content:center;width:40px}.cvtc-beta-tour__tour-scenarios .tour-scenarios__btn:focus,.cvtc-beta-tour__tour-scenarios .tour-scenarios__btn:hover{background-color:var(--color-black-16);border-color:#0000}.cvtc-beta-tour__tour-scenarios .tour-scenarios__btn>[class^=icon-]:before{color:var(--color-white);text-shadow:0 2px 8px var(--color-black-64)}.cvtc-beta-tour__tour-scenarios .tour-scenarios__btn--active{background-color:var(--color-black-36)}.cvtc-beta-tour__tour-scenarios .tour-scenarios__btn--active>[class^=icon-]:before{color:var(--color-mint)}.cvtc-beta-tour__tour-scenarios .tour-scenarios__btn--active:focus,.cvtc-beta-tour__tour-scenarios .tour-scenarios__btn--active:hover{background-color:var(--color-black-16);border-color:#0000}.cvtc-tour-layout--show-slide-in:not(.cvtc-tour-layout--mobile) .cvtc-beta-tour__group-action,.cvtc-tour-layout--show-slide-in:not(.cvtc-tour-layout--mobile) .cvtc-beta-tour__group-pin-action,.cvtc-tour-layout--show-slide-in:not(.cvtc-tour-layout--mobile) .menu-bar__action,.cvtc-tour-layout--show-slide-in:not(.cvtc-tour-layout--mobile) .user-guide__bottom-right-actions,.cvtc-tour-layout--show-slide-in:not(.cvtc-tour-layout--mobile) .user-guide__top-group-actions{right:calc(var(--slide-in-width) + var(--space-16) + var(--space-16))!important;transition:all .2s ease-in-out}.cvtc-tour-layout--show-slide-in:not(.cvtc-tour-layout--mobile) .user-guide__rotate-block{left:calc(50% - var(--slide-in-width)/2)}.fade{transition:opacity .3s linear}.clik-bottom-sheet__scroll .clik-bottom-sheet__content #chatbox .ant-input{font-size:var(--font-size-16)}.cvtc-show-ai-menu-bar-container{position:relative}.cvtc-ai-buttons,.cvtc-show-ai-menu-bar-container{align-items:center;display:flex;flex-direction:column;gap:var(--space-8)}.cvtc-ai-button{align-items:center;background:#0000;border:none;color:#f8fafc;cursor:pointer;display:flex;font-size:12px;font-style:normal;font-weight:500;gap:var(--space-8);justify-content:center;line-height:16px;padding:var(--space-8) var(--space-8) var(--space-8) var(--space-12);pointer-events:auto;text-shadow:0 2px 8px #000c}.cvtc-ai-button i{font-size:24px}.cvtc-ai-button i:before{color:#f8fafc}.cvtc-ai-button span{white-space:nowrap}"}),b.jsx(Ab,{}),b.jsx($b,{}),!s&&!e&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"cvtc-beta-tour__group-action",children:[b.jsx(Nl,{}),E.map(e=>(e=>{var t="action-"+e;switch(e){case L.FLOOR_PLAN:return b.jsx(Y,{className:"group-action__btn",icon:c?b.jsx("i",{className:W[e].icon}):b.jsx("i",{className:W[e].iconOff}),onClick:()=>{c&&d?(p(!0),u(!1)):p(!c)}},t);case L.SCENES:return b.jsx(Y,{className:U("group-action__btn",{"group-action__btn--active":d}),icon:b.jsx("i",{className:W[e].icon}),onClick:()=>{u(!d)}},t);case L.PLAY_LIST:return b.jsx(Y,{className:"group-action__btn",onClick:k,children:b.jsx("i",{className:W[e].icon})},t);case L.SUB_TITLE:return b.jsx(Y,{className:U("group-action__btn group-action__btn--subtitle",{"group-action__btn--show":v&&v.subtitleVisible}),onClick:S,icon:b.jsx("i",{className:h.visible?W[e].icon:W[e].iconOff})},t);default:return b.jsx(b.Fragment,{})}})(e))]}),b.jsx("div",{className:"cvtc-beta-tour__group-pin-action",children:b.jsx(Mb,{setShareOriginalLink:w,onClickFuncButton:_})}),b.jsx(kb,{})]}),x&&g&&b.jsx(kb,{}),e&&y&&b.jsx("div",{className:U("cvtc-beta-tour__group-pin-action",{"cvtc-beta-tour__group-pin-action--show-function-button":!!y}),children:b.jsx(Mb,{setShareOriginalLink:w,onClickFuncButton:_})}),e&&b.jsxs(b.Fragment,{children:[b.jsx(Ib,{}),b.jsx("div",{className:U("cvtc-beta-tour__tour-scenarios",{"cvtc-beta-tour__tour-scenarios--show-slide-in":n||t}),children:b.jsx(Y,{className:U("tour-scenarios__btn",{"tour-scenarios__btn--active":o}),onClick:e=>{e.stopPropagation(),e.preventDefault(),a(!o),i&&!o&&r(!1)},children:b.jsx("i",{className:"icon-playlist_play_24x24"})})})]})]})},py=e=>St(void 0,void 0,void 0,function*(){let{host:t,path:n,method:o="GET",params:i}=e,r=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}(e,["host","path","method","params"]),a=new URL(""+t+n);return i&&Object.keys(i).forEach(e=>i[e]&&a.searchParams.append(e,i[e])),fetch(a,Object.assign({method:o},r))}),fy=()=>{let{apiHost:e,overrideConfigs:t={}}=nb(),{tourCode:n,language:o}=t,{scenarios:i,tourData:r,canInitVisualizer:a,setTourData:s,setScenarioConfigCodes:l,setMetadata:c,setScenarios:u,setFloorplans:h,setBackgroundSoundPlaying:d,setTourSoundPlaying:p,setCanInitVisualizer:f,setActiveScenarioCode:m}=tr(),g=t=>St(void 0,void 0,void 0,function*(){if(!n||!e)return null;var a=i[t];if(a&&!a.isSimplify)return a;try{var s=yield(e=>St(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o,tourCodeOrAlias:i}=e;return yield(yield py({host:t,path:`/v1/ext/tours/${i}/tour-scenarios/`+o,headers:{language:n}})).json()}))({apiHost:e,code:t,tourCodeOrAlias:n,language:o}),l=Object.assign(Object.assign({},r),{inSimplify:!1,steps:(s.steps||[]).sort((e,t)=>e&&t?(e.orderIndex||0)-(t.orderIndex||0):0).map(e=>e&&e.children&&e.children.length?Object.assign(Object.assign({},e),{children:(e.children||[]).sort((e,t)=>e&&t?(e.orderIndex||0)-(t.orderIndex||0):0)}):e)});return u(Object.assign(Object.assign({},i),{[t]:l})),l}catch(a){return console.error("getTourScenarioDetail",a),null}}),v=()=>St(void 0,void 0,void 0,function*(){var t,i,r,a;if(n&&e)try{let c=yield(e=>St(void 0,void 0,void 0,function*(){var t,{apiHost:t,language:n,code:o}=e;return(t=yield(yield py({host:t,path:"/v1/ext/tours/"+o,headers:{language:n}})).json())&&t.scenes&&t.scenes.sort((e,t)=>dn(e.orderIndex||0)-dn(t.orderIndex||0)),t}))({apiHost:e,language:o,code:n});c&&(null!=(r=yield St(void 0,void 0,void 0,function*(){var t,i;return n&&e&&null!=(t=yield(e=>St(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o}=e;return yield(yield py({host:t,path:"/v1/ext/tour-scenarios?tourCodeOrAlias="+o,headers:{language:n}})).json()}))({apiHost:e,language:o,code:n}))&&t.length?(i=t.reduce((e,t)=>(e[t.code||t.type]=Object.assign(Object.assign({},e),{isSimplify:!0}),e),{}),u(i),l(t.map(e=>e.code||e.type)),t):[]}))&&r.length&&c.tourScenario&&(i=r.find(e=>e.code===c.tourScenario.code))&&(c.tourScenario=i,t=c.tourScenario.code,yield St(void 0,void 0,void 0,function*(){var e;return t?(e=yield g(t),m(null==e?void 0:e.code),e):(m(),null)})),a=!!c.bgSound&&!!c.bgSound.enable,c.bgSound&&(d(a),p(a)),(e=>St(void 0,void 0,void 0,function*(){var{apiHost:t,language:n,code:o}=e;return yield(yield py({host:t,path:`/v1/ext/tours/${o}/floorplans`,headers:{language:n}})).json()}))({apiHost:e,language:o,code:n}).then(e=>{h(e)})),s(c)}catch(i){console.error(i)}finally{setTimeout(()=>{f(!0)},500)}});O.useEffect(()=>{St(void 0,void 0,void 0,function*(){try{var e=yield py({host:pe,path:me,headers:{"Content-Type":"application/json"}});return JSON.parse(yield e.text())||null}catch(e){return console.error(e),null}}).then(e=>{c(e)})},[]),O.useEffect(()=>{n&&e&&!a&&v()},[n,e,a])};function my(){return Vb||(Vb=1,Fb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}),Fb}function gy(){var e,t;return Bb||(Bb=1,t=function(){var e;return Hb||(Hb=1,e="object"==typeof n&&n&&n.Object===Object&&n,jb=e),jb}(),e="object"==typeof self&&self&&self.Object===Object&&self,t=t||e||Function("return this")(),zb=t),zb}function vy(){var e,t;return qb||(qb=1,e=function(){var e;return Gb||(Gb=1,e=/\s/,Wb=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}),Wb}(),t=/^\s+/,Xb=function(n){return n&&n.slice(0,e(n)+1).replace(t,"")}),Xb}function by(){var e;return Zb||(Zb=1,e=gy().Symbol,Kb=e),Kb}function yy(){var e,t,n,o;return oy||(oy=1,e=by(),t=function(){var e,t,n,o,i;return Jb||(Jb=1,e=by(),t=Object.prototype,n=t.hasOwnProperty,o=t.toString,i=e?e.toStringTag:void 0,Qb=function(e){var t=n.call(e,i),r=e[i];try{var a=!(e[i]=void 0)}catch(e){}var s=o.call(e);return a&&(t?e[i]=r:delete e[i]),s}),Qb}(),n=function(){var e;return ty||(ty=1,e=Object.prototype.toString,ey=function(t){return e.call(t)}),ey}(),o=e?e.toStringTag:void 0,ny=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(o&&o in Object(e)?t:n)(e)}),ny}function _y(){var e,t;return sy||(sy=1,e=yy(),ry||(ry=1,iy=function(e){return null!=e&&"object"==typeof e}),t=iy,ay=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}),ay}var wy,xy,ky,Sy,Ey,Ty,Py=(hy||(hy=1,xy=my(),ky=function(){var e;return Yb||(Yb=1,e=gy(),Ub=function(){return e.Date.now()}),Ub}(),Sy=function(){var e,t,n,o,i,r,a;return cy||(cy=1,e=vy(),t=my(),n=_y(),o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,r=/^0o[0-7]+$/i,a=parseInt,ly=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)&&(l="function"==typeof s.valueOf?s.valueOf():s,s=t(l)?l+"":l),"string"!=typeof s)return 0===s?s:+s;s=e(s);var l=i.test(s);return l||r.test(s)?a(s.slice(2),l?2:8):o.test(s)?NaN:+s}),ly}(),Ey=Math.max,Ty=Math.min,uy=function(e,t,n){var o,i,r,a,s,l,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=o,r=i;return o=i=void 0,c=t,a=e.apply(r,n)}function f(e){var n=e-l;return void 0===l||t<=n||n<0||h&&r<=e-c}function m(){var e,n=ky();if(f(n))return g(n);s=setTimeout(m,(e=t-(n-l),h?Ty(e,r-(n-c)):e))}function g(e){return s=void 0,d&&o?p(e):(o=i=void 0,a)}function v(){var e=ky(),n=f(e);if(o=arguments,i=this,l=e,n){if(void 0===s)return c=e=l,s=setTimeout(m,t),u?p(e):a;if(h)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=Sy(t)||0,xy(n)&&(u=!!n.leading,r=(h="maxWait"in n)?Ey(Sy(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==s&&clearTimeout(s),o=l=i=s=void(c=0)},v.flush=function(){return void 0===s?a:g(ky())},v}),uy),Oy=o(Py),Cy={exports:{}},Ay=Cy.exports;var My=function(){var e,t,n;return wy||(wy=1,e=Cy,t=Ay,r.prototype={VERSION:"1.0.0",memorize:!(o.prototype={active:!0,params:null,execute:function(e){var t;return this.active&&this._listener&&(e=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,e),this._isOnce)&&this.detach(),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}}),_shouldPropagate:!0,active:!0,_registerListener:function(e,t,n,i){var r,a=this._indexOfListener(e,n);if(-1!==a){if((r=this._bindings[a]).isOnce()!==t)throw new Error("You cannot add"+(t?"":"Once")+"() then add"+(t?"Once":"")+"() the same listener without removing the relationship first.")}else r=new o(this,e,t,n,i),this._addBinding(r);return this.memorize&&this._prevParams&&r.execute(this._prevParams),r},_addBinding:function(e){for(var t=this._bindings.length;this._bindings[--t]&&e._priority<=this._bindings[t]._priority;);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,o=this._bindings.length;o--;)if((n=this._bindings[o])._listener===e&&n.context===t)return o;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return i(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return i(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){return i(e,"remove"),-1!==(t=this._indexOfListener(e,t))&&(this._bindings[t]._destroy(),this._bindings.splice(t,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,n=Array.prototype.slice.call(arguments),o=this._bindings.length;if(this.memorize&&(this._prevParams=n),o)for(t=this._bindings.slice(),this._shouldPropagate=!0;t[--o]&&this._shouldPropagate&&!1!==t[o].execute(n););}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}},(n=r).Signal=r,e.exports?e.exports=n:t.signals=n),Cy.exports;function o(e,t,n,o,i){this._listener=t,this._isOnce=n,this.context=o,this._signal=e,this._priority=i||0}function i(e,t){if("function"!=typeof e)throw new Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function r(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){r.prototype.dispatch.apply(e,arguments)}}}();class Ny{constructor(e){this.vOffset=0,this.hOffset=0,this.call=e=>this.krpano.call(e),this.get=e=>this.krpano.get(e),this.set=(e,t)=>this.krpano.set(e,t),this.screentosphere=(e,t)=>this.krpano.screentosphere(e,t),this.spheretoscreen=(e,t)=>this.krpano.spheretoscreen(e,t),this.spheretospace=(e,t,n=1e3)=>{var o=Date.now();return{x:e=(this.krpano.set("sphere_h_"+o,e),this.krpano.set("sphere_v_"+o,t),this.krpano.set("sphere_d_"+o,n),this.krpano.call(`spheretospace('sphere_h_${o}', 'sphere_v_${o}', 'sphere_d_${o}', 'space_x_${o}', 'space_y_${o}', 'space_z_${o}')`),this.krpano.get("space_x_"+o)),y:this.krpano.get("space_y_"+o),z:this.krpano.get("space_z_"+o)}},this.spacetosphere=(e,t,n,o=1e3)=>{var i=Date.now();return{ath:e=(this.krpano.set("space_x_"+i,e),this.krpano.set("space_y_"+i,t),this.krpano.set("space_z_"+i,n),this.krpano.set("sphere_d_"+i,o),this.krpano.call(`spacetosphere('space_x_${i}', 'space_y_${i}', 'space_z_${i}', 'sphere_h_${i}', 'sphere_v_${i}', 'sphere_d_${i}')`),this.krpano.get("sphere_h_"+i)),atv:this.krpano.get("sphere_v_"+i)}},this.updateOffset=(e,t,n=!1)=>{var o,i;n&&(({hlookat:n,vlookat:o,fov:i}=this.get("view")),this.call(`delayedcall(0.2, lookto(${n+(e||-this.hOffset)},${o+(t||-this.vOffset)}, ${i}, smooth(720,-720,720), true, true););`)),this.hOffset=e||0,this.vOffset=t||0},this.getOffsets=()=>({hOffset:this.hOffset,vOffset:this.vOffset}),this.getView=()=>{var{hlookat:e,vlookat:t,fov:n,hfov:o,vfov:i}=this.get("view");return{hlookat:e-this.hOffset,vlookat:t-this.vOffset,fov:n,hfov:o,vfov:i}},this.getOriginalView=()=>{var{hlookat:e,vlookat:t}=this.get("view");return{hlookat:e,vlookat:t}},this.lookto=(e,t)=>{var n,o;_t(e)&&_t(t)&&!Number.isNaN(e)&&!Number.isNaN(t)&&(({hOffset:n=0,vOffset:o=0}=this.getOffsets()),this.krpano.call(`lookto(${e+n},${t+o});`))},this.krpano=e,this.onUpdateOffsets=new My.Signal,this.updateOffset=this.updateOffset.bind(this),this.onUpdateOffsets.add(this.updateOffset)}}class Ly{constructor(e){this.props=e,this.krpano=e.krpano,this.type=e.type||"image",this.url=e.url||"",this.keep=e.keep||!1,this.parent=e.parent||null,this.cursor=e.cursor||"poiter",this.maskchildren=e.maskchildren||!1,this.scalechildren=e.scalechildren||!1,this.zorder=e.zorder||void 0,this.align=e.align||"lefttop",this.edge=e.edge||this.align,this.x=e.x||null,this.y=e.y||null,this.rotate=e.rotate||0,this.width=e.width,this.height=e.height,this.scale=e.scale||1,this.alpha=e.alpha||1,this.crop=e.crop||null,this.onovercrop=e.onovercrop||null,this.ondowncrop=e.ondowncrop||null,this.bgcolor=e.bgcolor||0,this.bgalpha=e.bgalpha||0,this.bgborder=e.bgborder||0,this.bgroundedge=e.bgroundedge||0,this.bgshadow=e.bgshadow||null,this.bgcapture=e.bgcapture||!1,this.signals=e.signals,this.enabled=e.enabled||!1}}class Dy extends Ly{constructor(e){super(e),this.name=oe,this.load=e=>{location&&"https:"!==location.protocol?(console.warn("HTTPS is required to use gyroscope plugin!"),e&&e(!1),this.signals.onLoadedPlugin.dispatch(this.name,!1)):(this.krpano.call(`\n addplugin(${this.name});\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].enabled, ${this.enabled});\n set(plugin[${this.name}].keep, true);\n set(plugin[${this.name}].devices, html5);\n set(plugin[${this.name}].softstart, 1);\n `),this.krpano.set(`plugin[${this.name}].onavailable`,()=>{e&&e(!0),this.signals.onLoadedPlugin.dispatch(this.name,!0)}),this.krpano.set(`plugin[${this.name}].onunavailable`,()=>{e&&e(!1),this.signals.onLoadedPlugin.dispatch(this.name,!1)}))},this.toggle=e=>{let t;return t=e||!this.krpano.get(`plugin[${this.name}].enabled`),this.krpano.call(`set(plugin[${this.name}].enabled, ${t})`),this.enabled=t},this.getEnabled=()=>this.enabled,this.destroy=()=>{},this.url=fe.GYRO2}}class Ry extends Ly{constructor(e){super(e),this.wrapLayerId="",this.heading=0,this.headingoffset=90,this.fillcolor="0xffffff",this.fillalpha=.5,this.linewidth=0,this.linecolor="0xffffff",this.linealpha=.3,this.invert=!1,this.wrapLayer="",this.load=e=>{this.krpano.call(`\n addlayer(${this.wrapLayer});\n set(layer[${this.wrapLayer}].keep, ${this.keep});\n set(layer[${this.wrapLayer}].width, ${2*(this.width||0)});\n set(layer[${this.wrapLayer}].height, ${2*(this.height||0)});\n set(layer[${this.wrapLayer}].x, 0);\n set(layer[${this.wrapLayer}].y, 0);\n set(layer[${this.wrapLayer}].renderer, css3d);\n set(layer[${this.wrapLayer}].bgcapture, true);\n set(layer[${this.wrapLayer}].type, container);\n set(layer[${this.wrapLayer}].sprite.id, ${this.wrapLayerId});\n `),this.krpano.call(`\n addplugin(${this.name});\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].align, lefttop);\n set(plugin[${this.name}].edge, center);\n set(plugin[${this.name}].x, ${this.width});\n set(plugin[${this.name}].y, ${this.height});\n set(plugin[${this.name}].keep, ${this.keep});\n set(plugin[${this.name}].scale, ${this.scale});\n set(plugin[${this.name}].heading, ${this.heading});\n set(plugin[${this.name}].headingoffset, ${this.headingoffset});\n set(plugin[${this.name}].fillcolor, ${this.fillcolor});\n set(plugin[${this.name}].fillalpha, ${this.fillalpha});\n set(plugin[${this.name}].linewidth, ${this.linewidth});\n set(plugin[${this.name}].linecolor, ${this.linecolor});\n set(plugin[${this.name}].linealpha, ${this.linealpha});\n set(plugin[${this.name}].invert, ${this.invert});\n set(plugin[${this.name}].parent, "layer[${this.wrapLayer}]");\n `),e&&setTimeout(()=>{e()},500)},this.destroy=()=>{this.krpano.call(`removelayer(${this.wrapLayer}, true)`)},this.name=ie,this.wrapLayer="layer_"+this.name,this.wrapLayerId=`layer_${this.name}_wrapper`,this.heading=e.heading||0,this.headingoffset=e.headingoffset||0,this.fillcolor=e.fillcolor||"0xffffff",this.fillalpha=e.fillalpha||.5,this.linewidth=e.linewidth||0,this.linecolor=e.linecolor||"0xffffff",this.linealpha=e.linealpha||.3,this.invert=e.invert||!1,this.width=e.width||6,this.height=e.height||6,this.scale=e.scale||.25,this.updateHeading=this.updateHeading.bind(this)}updateHeading(e){this.heading=e,this.krpano.get(`plugin[${this.name}]`)&&this.krpano.call(`set(plugin[${this.name}].heading, ${this.heading});`)}}let Iy=class extends Ly{constructor(e){super(e),this.name=re,this.timeout=null,this.url=fe.SOUND_INTERFACE}load(e){this.krpano.call(`addplugin(${this.name});`),this.timeout=setInterval(()=>{var t=this.krpano.get(`plugin[${this.name}]`);t&&(this.timeout&&(clearInterval(this.timeout),this.timeout=null),t.onloaded=()=>{e&&e()},this.krpano.call(`\n set(plugin[${this.name}].url, ${this.url});\n set(plugin[${this.name}].volume, 1.0);\n set(plugin[${this.name}].mute, false);\n set(plugin[${this.name}].panningmodel, simple);\n set(plugin[${this.name}].worldscale, 1.0);\n set(plugin[${this.name}].autopause, false);\n set(plugin[${this.name}].autounlock, true);\n `))},1e3/60)}destroy(){}};class $y{constructor(e){this.language="vi",this.isMobileDevice=!1,this.isLookAt=!0,this.spheretoscreen=()=>this.krpano.spheretoscreen(this.ath,this.atv),this.props=e,this.icon=e.icon,this.signals=e.signals,this.krpano=e.krpano,this.isMobileDevice=Pt(this.krpano),this.metadata=e.metadata,this.id=e.id,this.code=e.code,this.focusingCode=(e=>e+"_focusing")(this.code),this.hoverCode=At(this.code),this.type=e.type,this.name=e.name||"hs"+(Date.now()+Math.random()|0),this.url=e.url||ge.MOVING,this.ath=e.ath||0,this.atv=e.atv||0,this.height=e.height||0,this.width=e.width||0,this.alpha=e.alpha||1,this.scale=e.scale||1,this.rotate=e.rotate||0,this.rx=e.rx||0,this.ry=e.ry||0,this.rz=e.rz||0,this.distorted=void 0!==e.distorted&&e.distorted,this.polyline=void 0!==e.polyline&&e.polyline,this.icon=e.icon,this.bgPoi=e.bgPoi,this.sceneCode=e.sceneCode,this.coordsOffset=e.coordsOffset||Be.NONE,this.popupSize=e.popupSize||"1",this.laserRange=e.laserRange||Ce,this.position=e.position||Me,this.overviewPosition=e.overviewPosition||Ae.NONE,this.enabled=!0,this.visible=!0,this.visibleProp=!0,this.create=this.create.bind(this),this.onClick=this.onClick.bind(this),this.onOver=this.onOver.bind(this),this.onOut=this.onOut.bind(this),this.onHover=this.onHover.bind(this),this.getCenter=this.getCenter.bind(this),this.toggleVisibility=this.toggleVisibility.bind(this),this.isLabel=this.isLabel.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.getLookAtPosition=this.getLookAtPosition.bind(this)}getLookAtPosition(){return{ath:this.ath,atv:this.atv}}getLookAtPopupPosition(){return zt(this.krpano,this)}lookAt(){var{ath:e,atv:t}=this.getLookAtPosition(),{hOffset:n,vOffset:o}=this.krpano.getOffsets();this.krpano.call(`delayedcall(0.2, lookto(${e+n},${t+o}););`)}toggleVisibility(e,t=!1){t&&(this.visible=e)!==this.visibleProp&&(this.visibleProp=e),this.krpano.call(`if(hotspot[${this.code}]!=null,set(hotspot[${this.code}].visible, ${e});,);`)}onHover(){}create(e){this.krpano.call(`addhotspot(${this.code});`);var t=Ot(this.props);(null!=t&&t.endsWith(".gif")||null!=t&&t.endsWith(".GIF"))&&this.krpano.call(`set(hotspot[${this.code}].renderer, css3d);`),this.krpano.call(`set(hotspot[${this.code}].url, ${qt(t)});`),this.krpano.call(`set(hotspot[${this.code}].ath,${this.ath});`),this.krpano.call(`set(hotspot[${this.code}].atv,${this.atv});`),this.krpano.call(`set(hotspot[${this.code}].alpha,${this.alpha});`),this.krpano.call(`set(hotspot[${this.code}].scale,${this.scale});`),this.krpano.call(`set(hotspot[${this.code}].rotate,${this.rotate});`),this.krpano.call(`set(hotspot[${this.code}].width,${this.width});`),this.krpano.call(`set(hotspot[${this.code}].height,${this.height});`),this.krpano.call(`set(hotspot[${this.code}].rx,${this.rx});`),this.krpano.call(`set(hotspot[${this.code}].ry,${this.ry});`),this.krpano.call(`set(hotspot[${this.code}].rz,${this.rz});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`);let n=Nt(this.props);this.krpano.call(`set(hotspot[${this.code}].polyline,${this.polyline});`),this.krpano.set(`hotspot[${this.code}].zorder`,V.STANDARD),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{n&&n.imageStrip&&this.krpano.call(an(this.props)),this.krpano.call(`set(hotspot[${this.code}].visible,${this.visible});`),this.addEvents(),e&&e(this)})}createFocusingHotspot(){this.krpano.call(`\n addhotspot(${this.focusingCode});\n set(hotspot[${this.focusingCode}].url, ${ge.FOCUSING_IMAGE_STRIP});\n set(hotspot[${this.focusingCode}].bgalpha, 0);\n set(hotspot[${this.focusingCode}].handcursor, false);\n set(hotspot[${this.focusingCode}].width, 36);\n set(hotspot[${this.focusingCode}].height, 36);\n set(hotspot[${this.focusingCode}].visible, false);\n set(hotspot[${this.focusingCode}].rx, 0);\n set(hotspot[${this.focusingCode}].ry, 0);\n set(hotspot[${this.focusingCode}].rz, 0);\n set(hotspot[${this.focusingCode}].rotate, 0);\n set(hotspot[${this.focusingCode}].enabled, true);\n set(hotspot[${this.focusingCode}].zorder, ${V.STANDARD});\n set(hotspot[${this.focusingCode}].ath, '${this.ath}');\n set(hotspot[${this.focusingCode}].atv, '${this.atv}');\n `),this.krpano.set(`hotspot[${this.focusingCode}].onloaded`,()=>{this.krpano.call(((e,t,n,o)=>`\n def(imageWidth_${e}, integer, get(hotspot[${e}].imagewidth));\n def(imageHeight_${e}, integer, get(hotspot[${e}].imageheight));\n def(frameWidth_${e}, integer, ${n});\n def(frameHeight_${e}, integer, ${o});\n def(frameRate_${e}, integer, ${t});\n def(frame_${e}, integer, 0);\n\n calc(xFrames_${e}, (imageWidth_${e} / frameWidth_${e}) BOR 0);\n calc(frames_${e}, xFrames_${e} * ((imageHeight_${e} / frameHeight_${e}) BOR 0));\n calc(hotspot[${e}].crop, '0|0|' + frameWidth_${e} + '|' + frameHeight_${e});\n \n setinterval(crop_anim_${e}, calc(1.0 / frameRate_${e}),\n if(hotspot[${e}].loaded,\n inc(frame_${e});\n if(frame_${e} GE frames_${e}, set(frame_${e}, 0););\n mod(xPos_${e}, frame_${e}, xFrames_${e});\n div(yPos_${e}, frame_${e}, xFrames_${e});\n Math.floor(yPos_${e});\n mul(xPos_${e}, frameWidth_${e});\n mul(yPos_${e}, frameHeight_${e});\n calc(\n hotspot[${e}].crop,\n xPos_${e} + '|' + yPos_${e} + '|' + frameWidth_${e} + '|' + frameHeight_${e}\n );\n ,\n clearinterval(crop_anim_${e});\n );\n );\n`)(this.focusingCode,60,72,72))})}activeFocusingHotspot(e){this.krpano.call(`\n set(hotspot[${this.focusingCode}].visible, ${e});\n `)}activeOverview(e){Bt(this)&&(this.activeFocusingHotspot(e),this.krpano.call(`\n tween(hotspot[${this.code}].alpha, ${e?0:1}, 0.2);\n set(hotspot[${this.hoverCode}].visible, ${e});\n `))}getHoverHeight(){let e=this.height;e||(e=(t=this.krpano.get(`hotspot[${this.code}]`)).imageheight);var t=this.bgPoi?this.bgPoi.padding:0;return((e||0)+t)*(this.scale||1)}getCenter(){var{x:e,y:t,z:n}=this.spheretoscreen();return{x:e,y:t-this.getHoverHeight()/2,z:n}}isLabel(){return!(this.type===te.PHOTO||this.type===te.VIDEO||this.type===te.MOVING||this.type===te.LENSFLARE||this.type===te.NADIR_LOGO)}hasDetailModal(){return[te.POLYGON,te.ITEM_INFO,te.PROMOTION,te.GALLERY,te.VIDEO,te.MOVING].includes(this.type)}isHideable(){return!0}addEvents(){this.isMobileDevice?this.addMobileEvents():this.addDesktopEvents()}addDesktopEvents(){this.krpano.set(`hotspot[${this.code}].onclick`,this.handleOnClick),this.krpano.set(`hotspot[${this.code}].onover`,this.onOver),this.krpano.set(`hotspot[${this.code}].onout`,this.onOut),this.krpano.set(`hotspot[${this.code}].onhover`,this.onHover),this.krpano.set(`hotspot[${this.code}].onup`,()=>{this.signals.poiMouseUp.dispatch()})}addMobileEvents(){this.krpano.set(`hotspot[${this.code}].onclick`,this.handleOnClick),this.krpano.set(`hotspot[${this.code}].onup`,()=>{this.signals.poiMouseUp.dispatch()})}onClick(){this.isLookAt&&this.lookAt(),this.signals.poiClicked.dispatch(this)}onOver(){this.signals.toggleFloorPoi.dispatch(!1)}onOut(){this.signals.toggleFloorPoi.dispatch(!0)}handleOnClick(){this.signals.stopScenario.dispatch(),this.onClick()}}class Fy extends $y{constructor(e){super(e),this.info="",this.info=e.info,this.url=e.url||ge.INFO,this.type=te.INFO,this.hovering=!1,this.hoverCode=At(this.code)}onClick(){super.onClick(),this.isMobileDevice&&(this.hovering?this.hide():(this.signals.toggleLabels.dispatch(this.hovering),this.show()))}onOver(){super.onOver()}onOut(){super.onOut(),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.hovering!==e&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),this.hovering=e)}show(){this.toggleHover(!0)}hide(){this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}getContentHover(){var e,t=(e=>!!e&&!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e))(this.info)&&(e=>!!e&&null!=e.match(/\.(jpeg|jpg|gif|png)$/))(this.info);let n="";return t?n=`[img class="box-wrapper__content-thumbnail" src="${this.info}" /]`:this.info&&(e=this.info.split("\n").reduce((e,t)=>e+`[div class="content__name"]${t}[/div]`,""),n=`[div class="box-wrapper__content"]${e}[/div]`),`\n [div class="cvtv-product-info-poi__wrapper"]\n [div class="product-info-poi__box-wrapper product-info-poi__box-wrapper--vertical ${t?"":"product-info-poi__box-wrapper--text"}"]\n ${n}\n [/div]\n [div class="product-info-poi__arrow-down"][/div]\n [/div]\n `}create(e){var t=this.getContentHover();on(this.krpano,this.props,t,!1),un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)})}}class Vy extends $y{constructor(e){var t;super(e),this.url=e.url||ge.PIN,this.type=te.ITEM_INFO,this.hoverCode=At(this.code),this.hovering=!1,this.clickType=e.clickType,this.hoverType=e.hoverType,this.keepHover=!1,this.popupVisible=!1,this.keepPopupVisible=!1,this.focusType=e.focusType||nt,this.autoShow=e.autoShow||Te,this.itemInfo=e.itemInfo,this.itemInfoType=null==(t=this.itemInfo)?void 0:t.type,this.itemInfoCode=e.itemInfoCode||(null==(t=this.itemInfo)?void 0:t.code),this.isClickable=this.isClickable.bind(this),this.isHoverable=this.isHoverable.bind(this),this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.togglePopup=this.togglePopup.bind(this),this.hidePopup=this.hidePopup.bind(this),this.isProduct=this.isProduct.bind(this),this.getHoverContent=this.getHoverContent.bind(this)}getLookAtPosition(){var{h:e,v:t}=zt(this.krpano,this);return{ath:e,atv:t}}isProduct(){return this.itemInfo&&(this.itemInfo.type===Ze||this.itemInfo.type===et)}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.isClickable()&&(this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch(),this.itemInfo.type!==Je)&&this.signals.stopScenario.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onClick(){if(super.onClick(),this.type===te.ITEM_INFO){if(this.hoverType===We)return this.isClickable()?(this.signals.poiClick.dispatch(this.props),void this.signals.poiOut.dispatch()):void 0;var e=!this.popupVisible;this.togglePopup(e),e&&(this.keepPopupVisible=!0,setTimeout(()=>{this.keepPopupVisible=!1},1e3))}}onOver(){this.isHoverable()&&(super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${V.HOVERING});`))}onOut(){this.isHoverable()&&(super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${V.STANDARD});`),this.krpano.get("device.desktop")&&this.hide(),this.signals.poiOut.dispatch())}onHover(){this.isHoverable()&&this.show()}toggleHover(e=!1){this.autoShow===Pe&&this.togglePopup(e),this.autoShow===Te&&this.togglePopup(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e),e||this.togglePopup(e)}togglePopup(e=!1){this.popupVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){Lt(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),Mt(this.krpano,this.props,e))}hidePopup(){this.popupVisible&&!this.keepPopupVisible&&this.togglePopup(!1)}getHoverContent(){let e=this.hoverType;if(!e)switch(this.itemInfo.type){case Qe:e=Xe;break;case Je:e=qe;break;case Ze:case et:e=Ge}var t={krpano:this.krpano,poi:this,lang:this.language};let n;switch(e){case qe:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return en(e,t,n)})(t);break;case Ge:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return en(e,t,n)})({krpano:this.krpano,poi:this,lang:this.language});break;case Xe:case Ke:n=(e=>{var{krpano:e,poi:t,lang:n="vi"}=e;return en(e,t,n)})(t);break;default:console.warn(`Type[${e}] is not handled hover`)}return n}create(e){e&&(this.onDone=e),this.itemInfo&&(Bt(this)&&this.createFocusingHotspot(),e=this.itemInfo,e=Object.assign(Object.assign({},this),{itemInfo:e,position:this.position,overviewPosition:this.overviewPosition}),(e=en(this.krpano,e,this.language))&&nn(this.krpano,this.props,e),this.focusType===ot&&((e,t)=>{if(t.type===te.ITEM_INFO){let o=(e=>e+"_focus")(t.code);var n=cn(t);tn(e,o,n),e.set(`hotspot[${o}].atv`,t.atv),e.set(`hotspot[${o}].ath`,t.ath),e.set(`hotspot[${o}].onloaded`,()=>{var n=Number(e.get(`hotspot[${o}].width`));e.set(`hotspot[${o}].ox`,n/2-((t.width||0)*(t.scale||1)/2+11))})}})(this.krpano,this),un(this.krpano,this.props).then(()=>{super.addEvents(),this.onDone&&this.onDone(this)}))}isHoverable(){return this.hoverType!==We}isClickable(){return this.clickType!==We}}var jy,Hy={};var zy,By,Uy=function(){var e,t,o,i,r,a,s,l,c,u,h,d,p;return jy||(jy=1,e=Hy,f.prototype={init:function(){var e=this||t;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var n=this||t;if(e=parseFloat(e),n.ctx||c(),void 0!==e&&0<=e&&e<=1){if(n._volume=e,!n._muted){n.usingWebAudio&&n.masterGain.gain.setValueAtTime(e,t.ctx.currentTime);for(var o=0;o<n._howls.length;o++)if(!n._howls[o]._webAudio)for(var i=n._howls[o]._getSoundIds(),r=0;r<i.length;r++){var a=n._howls[o]._soundById(i[r]);a&&a._node&&(a._node.volume=a._volume*e)}}return n}return n._volume},mute:function(e){var n=this||t;n.ctx||c(),n._muted=e,n.usingWebAudio&&n.masterGain.gain.setValueAtTime(e?0:n._volume,t.ctx.currentTime);for(var o=0;o<n._howls.length;o++)if(!n._howls[o]._webAudio)for(var i=n._howls[o]._getSoundIds(),r=0;r<i.length;r++){var a=n._howls[o]._soundById(i[r]);a&&a._node&&(a._node.muted=!!e||a._muted)}return n},stop:function(){for(var e=this||t,n=0;n<e._howls.length;n++)e._howls[n].stop();return e},unload:function(){for(var e=this||t,n=e._howls.length-1;0<=n;n--)e._howls[n].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,c()),e},codecs:function(e){return(this||t)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||t;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e,n,o,i,r=this||t,a=null;try{a="undefined"!=typeof Audio?new Audio:null}catch(e){return r}return a&&"function"==typeof a.canPlayType&&(e=a.canPlayType("audio/mpeg;").replace(/^no$/,""),n=(n=(o=r._navigator?r._navigator.userAgent:"").match(/OPR\/(\d+)/g))&&parseInt(n[0].split("/")[1],10)<33,i=-1!==o.indexOf("Safari")&&-1===o.indexOf("Chrome"),o=o.match(/Version\/(.*?) /),i=i&&o&&parseInt(o[1],10)<15,r._codecs={mp3:!(n||!e&&!a.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!e,opus:!!a.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(a.canPlayType('audio/wav; codecs="1"')||a.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!a.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!a.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(a.canPlayType("audio/x-m4b;")||a.canPlayType("audio/m4b;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(a.canPlayType("audio/x-mp4;")||a.canPlayType("audio/mp4;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(i||!a.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(i||!a.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!a.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(a.canPlayType("audio/x-flac;")||a.canPlayType("audio/flac;")).replace(/^no$/,"")}),r},_unlockAudio:function(){var e,n=this||t;if(!n._audioUnlocked&&n.ctx)return n._audioUnlocked=!1,n.autoUnlock=!1,n._mobileUnloaded||44100===n.ctx.sampleRate||(n._mobileUnloaded=!0,n.unload()),n._scratchBuffer=n.ctx.createBuffer(1,1,22050),e=function(t){for(;n._html5AudioPool.length<n.html5PoolSize;)try{var o=new Audio;o._unlocked=!0,n._releaseHtml5Audio(o)}catch(t){n.noAudio=!0;break}for(var i=0;i<n._howls.length;i++)if(!n._howls[i]._webAudio)for(var r=n._howls[i]._getSoundIds(),a=0;a<r.length;a++){var s=n._howls[i]._soundById(r[a]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}n._autoResume();var l=n.ctx.createBufferSource();l.buffer=n._scratchBuffer,l.connect(n.ctx.destination),void 0===l.start?l.noteOn(0):l.start(0),"function"==typeof n.ctx.resume&&n.ctx.resume(),l.onended=function(){l.disconnect(0),n._audioUnlocked=!0,document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",e,!0),document.removeEventListener("click",e,!0),document.removeEventListener("keydown",e,!0);for(var t=0;t<n._howls.length;t++)n._howls[t]._emit("unlock")}},document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",e,!0),document.addEventListener("click",e,!0),document.addEventListener("keydown",e,!0),n},_obtainHtml5Audio:function(){var e=this||t;return e._html5AudioPool.length?e._html5AudioPool.pop():((e=(new Audio).play())&&"undefined"!=typeof Promise&&(e instanceof Promise||"function"==typeof e.then)&&e.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio)},_releaseHtml5Audio:function(e){var n=this||t;return e._unlocked&&n._html5AudioPool.push(e),n},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&t.usingWebAudio){for(var n=0;n<e._howls.length;n++)if(e._howls[n]._webAudio)for(var o=0;o<e._howls[n]._sounds.length;o++)if(!e._howls[n]._sounds[o]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){var t;e.autoSuspend&&(e._suspendTimer=null,e.state="suspending",t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())},e.ctx.suspend().then(t,t))},3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&t.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}},t=new f,m.prototype={init:function(e){var n=this;return t.ctx||c(),n._autoplay=e.autoplay||!1,n._format="string"!=typeof e.format?e.format:[e.format],n._html5=e.html5||!1,n._muted=e.mute||!1,n._loop=e.loop||!1,n._pool=e.pool||5,n._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,n._rate=e.rate||1,n._sprite=e.sprite||{},n._src="string"!=typeof e.src?e.src:[e.src],n._volume=void 0!==e.volume?e.volume:1,n._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},n._duration=0,n._state="unloaded",n._sounds=[],n._endTimers={},n._queue=[],n._playLock=!1,n._onend=e.onend?[{fn:e.onend}]:[],n._onfade=e.onfade?[{fn:e.onfade}]:[],n._onload=e.onload?[{fn:e.onload}]:[],n._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],n._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],n._onpause=e.onpause?[{fn:e.onpause}]:[],n._onplay=e.onplay?[{fn:e.onplay}]:[],n._onstop=e.onstop?[{fn:e.onstop}]:[],n._onmute=e.onmute?[{fn:e.onmute}]:[],n._onvolume=e.onvolume?[{fn:e.onvolume}]:[],n._onrate=e.onrate?[{fn:e.onrate}]:[],n._onseek=e.onseek?[{fn:e.onseek}]:[],n._onunlock=e.onunlock?[{fn:e.onunlock}]:[],n._onresume=[],n._webAudio=t.usingWebAudio&&!n._html5,void 0!==t.ctx&&t.ctx&&t.autoUnlock&&t._unlockAudio(),t._howls.push(n),n._autoplay&&n._queue.push({event:"play",action:function(){n.play()}}),n._preload&&"none"!==n._preload&&n.load(),n},load:function(){var e=this,n=null;if(t.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var i,a,s=0;s<e._src.length;s++){if(e._format&&e._format[s])i=e._format[s];else{if("string"!=typeof(a=e._src[s])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}i=(i=(i=/^data:audio\/([^;,]+);/i.exec(a))||/\.([^.]+)$/.exec(a.split("?",1)[0]))&&i[1].toLowerCase()}if(i||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),i&&t.codecs(i)){n=e._src[s];break}}if(n)return e._src=n,e._state="loading","https:"===window.location.protocol&&"http:"===n.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new o(e),e._webAudio&&r(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,n){var o=this,i=null;if("number"==typeof e)i=e,e=null;else{if("string"==typeof e&&"loaded"===o._state&&!o._sprite[e])return null;if(void 0===e&&(e="__default",!o._playLock)){for(var r=0,a=0;a<o._sounds.length;a++)o._sounds[a]._paused&&!o._sounds[a]._ended&&(r++,i=o._sounds[a]._id);1===r?e=null:i=null}}var s,l=i?o._soundById(i):o._inactiveSound();if(!l)return null;if(i&&!e&&(e=l._sprite||"__default"),"loaded"!==o._state)return l._sprite=e,l._ended=!1,s=l._id,o._queue.push({event:"play",action:function(){o.play(s)}}),s;if(i&&!l._paused)return n||o._loadQueue("play"),l._id;o._webAudio&&t._autoResume();var c,u,h,d,p=Math.max(0,0<l._seek?l._seek:o._sprite[e][0]/1e3),f=Math.max(0,(o._sprite[e][0]+o._sprite[e][1])/1e3-p),m=1e3*f/Math.abs(l._rate),g=o._sprite[e][0]/1e3,v=(o._sprite[e][0]+o._sprite[e][1])/1e3,b=(l._sprite=e,l._ended=!1,function(){l._paused=!1,l._seek=p,l._start=g,l._stop=v,l._loop=!(!l._loop&&!o._sprite[e][2])});if(!(v<=p))return c=l._node,o._webAudio?(h=function(){o._playLock=!1,b(),o._refreshBuffer(l);var e=l._muted||o._muted?0:l._volume;c.gain.setValueAtTime(e,t.ctx.currentTime),l._playStart=t.ctx.currentTime,void 0===c.bufferSource.start?l._loop?c.bufferSource.noteGrainOn(0,p,86400):c.bufferSource.noteGrainOn(0,p,f):l._loop?c.bufferSource.start(0,p,86400):c.bufferSource.start(0,p,f),m!==1/0&&(o._endTimers[l._id]=setTimeout(o._ended.bind(o,l),m)),n||setTimeout(function(){o._emit("play",l._id),o._loadQueue()},0)},"running"===t.state&&"interrupted"!==t.ctx.state?h():(o._playLock=!0,o.once("resume",h),o._clearTimer(l._id))):(u=function(){c.currentTime=p,c.muted=l._muted||o._muted||t._muted||c.muted,c.volume=l._volume*t.volume(),c.playbackRate=l._rate;try{var i=c.play();i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(o._playLock=!0,b(),i.then(function(){o._playLock=!1,c._unlocked=!0,n?o._loadQueue():o._emit("play",l._id)}).catch(function(){o._playLock=!1,o._emit("playerror",l._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),l._ended=!0,l._paused=!0})):n||(o._playLock=!1,b(),o._emit("play",l._id)),c.playbackRate=l._rate,c.paused?o._emit("playerror",l._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."):"__default"!==e||l._loop?o._endTimers[l._id]=setTimeout(o._ended.bind(o,l),m):(o._endTimers[l._id]=function(){o._ended(l),c.removeEventListener("ended",o._endTimers[l._id],!1)},c.addEventListener("ended",o._endTimers[l._id],!1))}catch(i){o._emit("playerror",l._id,i)}},"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===c.src&&(c.src=o._src,c.load()),h=window&&window.ejecta||!c.readyState&&t._navigator.isCocoonJS,3<=c.readyState||h?u():(o._playLock=!0,o._state="loading",d=function(){o._state="loaded",u(),c.removeEventListener(t._canPlayEvent,d,!1)},c.addEventListener(t._canPlayEvent,d,!1),o._clearTimer(l._id))),l._id;o._ended(l)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)t._queue.push({event:"pause",action:function(){t.pause(e)}});else for(var n=t._getSoundIds(e),o=0;o<n.length;o++){t._clearTimer(n[o]);var i=t._soundById(n[o]);if(i&&!i._paused&&(i._seek=t.seek(n[o]),i._rateSeek=0,i._paused=!0,t._stopFade(n[o]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else isNaN(i._node.duration)&&i._node.duration!==1/0||i._node.pause();arguments[1]||t._emit("pause",i?i._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)n._queue.push({event:"stop",action:function(){n.stop(e)}});else for(var o=n._getSoundIds(e),i=0;i<o.length;i++){n._clearTimer(o[i]);var r=n._soundById(o[i]);r&&(r._seek=r._start||0,r._rateSeek=0,r._paused=!0,r._ended=!0,n._stopFade(o[i]),r._node&&(n._webAudio?r._node.bufferSource&&(void 0===r._node.bufferSource.stop?r._node.bufferSource.noteOff(0):r._node.bufferSource.stop(0),n._cleanBuffer(r._node)):isNaN(r._node.duration)&&r._node.duration!==1/0||(r._node.currentTime=r._start||0,r._node.pause(),r._node.duration===1/0&&n._clearSound(r._node))),t||n._emit("stop",r._id))}return n},mute:function(e,n){var o=this;if("loaded"!==o._state||o._playLock)o._queue.push({event:"mute",action:function(){o.mute(e,n)}});else{if(void 0===n){if("boolean"!=typeof e)return o._muted;o._muted=e}for(var i=o._getSoundIds(n),r=0;r<i.length;r++){var a=o._soundById(i[r]);a&&(a._muted=e,a._interval&&o._stopFade(a._id),o._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,t.ctx.currentTime):a._node&&(a._node.muted=!!t._muted||e),o._emit("mute",a._id))}}return o},volume:function(){var e,n,o=this,i=arguments;if(0===i.length)return o._volume;if(1===i.length||2===i.length&&void 0===i[1]?0<=o._getSoundIds().indexOf(i[0])?r=parseInt(i[0],10):e=parseFloat(i[0]):2<=i.length&&(e=parseFloat(i[0]),r=parseInt(i[1],10)),!(void 0!==e&&0<=e&&e<=1))return(n=r?o._soundById(r):o._sounds[0])?n._volume:0;if("loaded"!==o._state||o._playLock)o._queue.push({event:"volume",action:function(){o.volume.apply(o,i)}});else{void 0===r&&(o._volume=e);for(var r=o._getSoundIds(r),a=0;a<r.length;a++)(n=o._soundById(r[a]))&&(n._volume=e,i[2]||o._stopFade(r[a]),o._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,t.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*t.volume()),o._emit("volume",n._id))}return o},fade:function(e,n,o,i){var r=this;if("loaded"!==r._state||r._playLock)r._queue.push({event:"fade",action:function(){r.fade(e,n,o,i)}});else{e=Math.min(Math.max(0,parseFloat(e)),1),n=Math.min(Math.max(0,parseFloat(n)),1),o=parseFloat(o),r.volume(e,i);for(var a=r._getSoundIds(i),s=0;s<a.length;s++){var l,c,u=r._soundById(a[s]);u&&(i||r._stopFade(a[s]),r._webAudio&&!u._muted&&(c=(l=t.ctx.currentTime)+o/1e3,u._volume=e,u._node.gain.setValueAtTime(e,l),u._node.gain.linearRampToValueAtTime(n,c)),r._startFadeInterval(u,e,n,o,a[s],void 0===i))}}return r},_startFadeInterval:function(e,t,n,o,i,r){var a=this,s=t,l=n-t,c=Math.abs(l/.01),u=(c=Math.max(4,0<c?o/c:o),Date.now());e._fadeTo=n,e._interval=setInterval(function(){var i=(Date.now()-u)/o;u=Date.now(),s+=l*i,s=Math.round(100*s)/100,s=l<0?Math.max(n,s):Math.min(n,s),a._webAudio?e._volume=s:a.volume(s,e._id,!0),r&&(a._volume=s),(n<t&&s<=n||t<n&&n<=s)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))},c)},_stopFade:function(e){var n=this._soundById(e);return n&&n._interval&&(this._webAudio&&n._node.gain.cancelScheduledValues(t.ctx.currentTime),clearInterval(n._interval),n._interval=null,this.volume(n._fadeTo,e),n._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,o=this,i=arguments;if(0===i.length)return o._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=o._soundById(parseInt(i[0],10)))&&n._loop;o._loop=e=i[0]}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var r=o._getSoundIds(t),a=0;a<r.length;a++)(n=o._soundById(r[a]))&&(n._loop=e,o._webAudio)&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e)&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,o.playing(r[a]))&&(o.pause(r[a],!0),o.play(r[a],!0));return o},rate:function(){var e,n=this,o=arguments;if(0===o.length?a=n._sounds[0]._id:1===o.length?0<=n._getSoundIds().indexOf(o[0])?a=parseInt(o[0],10):e=parseFloat(o[0]):2===o.length&&(e=parseFloat(o[0]),a=parseInt(o[1],10)),"number"!=typeof e)return((r=n._soundById(a))||n)._rate;if("loaded"!==n._state||n._playLock)n._queue.push({event:"rate",action:function(){n.rate.apply(n,o)}});else{void 0===a&&(n._rate=e);for(var i,r,a=n._getSoundIds(a),s=0;s<a.length;s++)(r=n._soundById(a[s]))&&(n.playing(a[s])&&(r._rateSeek=n.seek(a[s]),r._playStart=n._webAudio?t.ctx.currentTime:r._playStart),r._rate=e,n._webAudio&&r._node&&r._node.bufferSource?r._node.bufferSource.playbackRate.setValueAtTime(e,t.ctx.currentTime):r._node&&(r._node.playbackRate=e),i=n.seek(a[s]),i=1e3*((n._sprite[r._sprite][0]+n._sprite[r._sprite][1])/1e3-i)/Math.abs(r._rate),!n._endTimers[a[s]]&&r._paused||(n._clearTimer(a[s]),n._endTimers[a[s]]=setTimeout(n._ended.bind(n,r),i)),n._emit("rate",r._id))}return n},seek:function(){var e,n,o=this,i=arguments;if(0===i.length?o._sounds.length&&(n=o._sounds[0]._id):1===i.length?0<=o._getSoundIds().indexOf(i[0])?n=parseInt(i[0],10):o._sounds.length&&(n=o._sounds[0]._id,e=parseFloat(i[0])):2===i.length&&(e=parseFloat(i[0]),n=parseInt(i[1],10)),void 0===n)return 0;if("number"!=typeof e||"loaded"===o._state&&!o._playLock){var r,a,s,l,c,u=o._soundById(n);if(u){if(!("number"==typeof e&&0<=e))return o._webAudio?(l=o.playing(n)?t.ctx.currentTime-u._playStart:0,c=u._rateSeek?u._rateSeek-u._seek:0,u._seek+(c+l*Math.abs(u._rate))):u._node.currentTime;(r=o.playing(n))&&o.pause(n,!0),u._seek=e,u._ended=!1,o._clearTimer(n),o._webAudio||!u._node||isNaN(u._node.duration)||(u._node.currentTime=e),a=function(){r&&o.play(n,!0),o._emit("seek",n)},r&&!o._webAudio?(s=function(){o._playLock?setTimeout(s,0):a()},setTimeout(s,0)):a()}}else o._queue.push({event:"seek",action:function(){o.seek.apply(o,i)}});return o},playing:function(e){if("number"==typeof e)return!!(e=this._soundById(e))&&!e._paused;for(var t=0;t<this._sounds.length;t++)if(!this._sounds[t]._paused)return!0;return!1},duration:function(e){var t=this._duration;return(e=this._soundById(e))?this._sprite[e._sprite][1]/1e3:t},state:function(){return this._state},unload:function(){for(var e=this,n=e._sounds,o=0;o<n.length;o++)n[o]._paused||e.stop(n[o]._id),e._webAudio||(e._clearSound(n[o]._node),n[o]._node.removeEventListener("error",n[o]._errorFn,!1),n[o]._node.removeEventListener(t._canPlayEvent,n[o]._loadFn,!1),n[o]._node.removeEventListener("ended",n[o]._endFn,!1),t._releaseHtml5Audio(n[o]._node)),delete n[o]._node,e._clearTimer(n[o]._id);var r=t._howls.indexOf(e),a=(0<=r&&t._howls.splice(r,1),!0);for(o=0;o<t._howls.length;o++)if(t._howls[o]._src===e._src||0<=e._src.indexOf(t._howls[o]._src)){a=!1;break}return i&&a&&delete i[e._src],t.noAudio=!1,e._state="unloaded",e._sounds=[],null},on:function(e,t,n,o){return e=this["_on"+e],"function"==typeof t&&e.push(o?{id:n,fn:t,once:o}:{id:n,fn:t}),this},off:function(e,t,n){var o=this["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<o.length;i++){var r=n===o[i].id;if(t===o[i].fn&&r||!t&&r){o.splice(i,1);break}}else if(e)this["_on"+e]=[];else{var a=Object.keys(this);for(i=0;i<a.length;i++)0===a[i].indexOf("_on")&&Array.isArray(this[a[i]])&&(this[a[i]]=[])}return this},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var o=this["_on"+e],i=o.length-1;0<=i;i--)o[i].id&&o[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(this,o[i].fn),0),o[i].once&&this.off(e,o[i].fn,o[i].id));return this._loadQueue(e),this},_loadQueue:function(e){var t;return 0<this._queue.length&&((t=this._queue[0]).event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()),this},_ended:function(e){var n,o=this,i=e._sprite;return!o._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop?setTimeout(o._ended.bind(o,e),100):(i=!(!e._loop&&!o._sprite[i][2]),o._emit("end",e._id),!o._webAudio&&i&&o.stop(e._id,!0).play(e._id),o._webAudio&&i&&(o._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=t.ctx.currentTime,n=1e3*(e._stop-e._start)/Math.abs(e._rate),o._endTimers[e._id]=setTimeout(o._ended.bind(o,e),n)),o._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,o._clearTimer(e._id),o._cleanBuffer(e._node),t._autoSuspend()),o._webAudio||i||o.stop(e._id,!0)),o},_clearTimer:function(e){var t;return this._endTimers[e]&&("function"!=typeof this._endTimers[e]?clearTimeout(this._endTimers[e]):(t=this._soundById(e))&&t._node&&t._node.removeEventListener("ended",this._endTimers[e],!1),delete this._endTimers[e]),this},_soundById:function(e){for(var t=0;t<this._sounds.length;t++)if(e===this._sounds[t]._id)return this._sounds[t];return null},_inactiveSound:function(){this._drain();for(var e=0;e<this._sounds.length;e++)if(this._sounds[e]._ended)return this._sounds[e].reset();return new o(this)},_drain:function(){var e=this,t=e._pool,n=0,o=0;if(!(e._sounds.length<t)){for(o=0;o<e._sounds.length;o++)e._sounds[o]._ended&&n++;for(o=e._sounds.length-1;0<=o;o--){if(n<=t)return;e._sounds[o]._ended&&(e._webAudio&&e._sounds[o]._node&&e._sounds[o]._node.disconnect(0),e._sounds.splice(o,1),n--)}}},_getSoundIds:function(e){if(void 0!==e)return[e];for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t},_refreshBuffer:function(e){return e._node.bufferSource=t.ctx.createBufferSource(),e._node.bufferSource.buffer=i[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,t.ctx.currentTime),this},_cleanBuffer:function(e){var n=t._navigator&&0<=t._navigator.vendor.indexOf("Apple");if(e.bufferSource){if(t._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),n))try{e.bufferSource.buffer=t._scratchBuffer}catch(e){}e.bufferSource=null}return this},_clearSound:function(e){/MSIE |Trident\//.test(t._navigator&&t._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}},(o=function(e){this._parent=e,this.init()}).prototype={init:function(){var e=this,n=e._parent;return e._muted=n._muted,e._loop=n._loop,e._volume=n._volume,e._rate=n._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++t._counter,n._sounds.push(e),e.create(),e},create:function(){var e=this,n=e._parent,o=t._muted||e._muted||e._parent._muted?0:e._volume;return n._webAudio?(e._node=void 0===t.ctx.createGain?t.ctx.createGainNode():t.ctx.createGain(),e._node.gain.setValueAtTime(o,t.ctx.currentTime),e._node.paused=!0,e._node.connect(t.masterGain)):t.noAudio||(e._node=t._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(t._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=n._src,e._node.preload=!0===n._preload?"auto":n._preload,e._node.volume=o*t.volume(),e._node.load()),e},reset:function(){var e=this,n=e._parent;return e._muted=n._muted,e._loop=n._loop,e._volume=n._volume,e._rate=n._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++t._counter,e},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(t._canPlayEvent,this._loadFn,!1)},_endListener:function(){var e=this._parent;e._duration===1/0&&(e._duration=Math.ceil(10*this._node.duration)/10,e._sprite.__default[1]===1/0&&(e._sprite.__default[1]=1e3*e._duration),e._ended(this)),this._node.removeEventListener("ended",this._endFn,!1)}},i={},r=function(e){var t=e._src;if(i[t])e._duration=i[t].duration,l(e);else if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),o=new Uint8Array(n.length),r=0;r<n.length;++r)o[r]=n.charCodeAt(r);s(o.buffer,e)}else{var c=new XMLHttpRequest;c.open(e._xhr.method,t,!0),c.withCredentials=e._xhr.withCredentials,c.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){c.setRequestHeader(t,e._xhr.headers[t])}),c.onload=function(){var t=(c.status+"")[0];"0"!==t&&"2"!==t&&"3"!==t?e._emit("loaderror",null,"Failed loading audio file with status: "+c.status+"."):s(c.response,e)},c.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete i[t],e.load())},a(c)}},a=function(e){try{e.send()}catch(t){e.onerror()}},s=function(e,n){function o(){n._emit("loaderror",null,"Decoding audio data failed.")}function r(e){e&&0<n._sounds.length?(i[n._src]=e,l(n,e)):o()}"undefined"!=typeof Promise&&1===t.ctx.decodeAudioData.length?t.ctx.decodeAudioData(e).then(r).catch(o):t.ctx.decodeAudioData(e,r,o)},l=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},c=function(){if(t.usingWebAudio){try{"undefined"!=typeof AudioContext?t.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?t.ctx=new webkitAudioContext:t.usingWebAudio=!1}catch(e){t.usingWebAudio=!1}t.ctx||(t.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(t._navigator&&t._navigator.platform),n=(n=t._navigator&&t._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))?parseInt(n[1],10):null;e&&n&&n<9&&(e=/safari/.test(t._navigator&&t._navigator.userAgent.toLowerCase()),t._navigator)&&!e&&(t.usingWebAudio=!1),t.usingWebAudio&&(t.masterGain=void 0===t.ctx.createGain?t.ctx.createGainNode():t.ctx.createGain(),t.masterGain.gain.setValueAtTime(t._muted?0:t._volume,t.ctx.currentTime),t.masterGain.connect(t.ctx.destination)),t._setup()}},e.Howler=t,e.Howl=m,void 0!==n?(n.HowlerGlobal=f,n.Howler=t,n.Howl=m,n.Sound=o):"undefined"!=typeof window&&(window.HowlerGlobal=f,window.Howler=t,window.Howl=m,window.Sound=o),HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(this.ctx&&this.ctx.listener)for(var t=this._howls.length-1;0<=t;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){var o=this;if(o.ctx&&o.ctx.listener){if(t="number"!=typeof t?o._pos[1]:t,n="number"!=typeof n?o._pos[2]:n,"number"!=typeof e)return o._pos;o._pos=[e,t,n],void 0!==o.ctx.listener.positionX?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2])}return o},HowlerGlobal.prototype.orientation=function(e,t,n,o,i,r){var a=this;if(a.ctx&&a.ctx.listener){var s=a._orientation;if(t="number"!=typeof t?s[1]:t,n="number"!=typeof n?s[2]:n,o="number"!=typeof o?s[3]:o,i="number"!=typeof i?s[4]:i,r="number"!=typeof r?s[5]:r,"number"!=typeof e)return s;a._orientation=[e,t,n,o,i,r],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(r,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,o,i,r)}return a},Howl.prototype.init=(u=Howl.prototype.init,function(e){return this._orientation=e.orientation||[1,0,0],this._stereo=e.stereo||null,this._pos=e.pos||null,this._pannerAttr={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:0,distanceModel:void 0!==e.distanceModel?e.distanceModel:"inverse",maxDistance:void 0!==e.maxDistance?e.maxDistance:1e4,panningModel:void 0!==e.panningModel?e.panningModel:"HRTF",refDistance:void 0!==e.refDistance?e.refDistance:1,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:1},this._onstereo=e.onstereo?[{fn:e.onstereo}]:[],this._onpos=e.onpos?[{fn:e.onpos}]:[],this._onorientation=e.onorientation?[{fn:e.onorientation}]:[],u.call(this,e)}),Howl.prototype.stereo=function(e,t){var n=this;if(n._webAudio)if("loaded"!==n._state)n._queue.push({event:"stereo",action:function(){n.stereo(e,t)}});else{var o=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===t){if("number"!=typeof e)return n._stereo;n._stereo=e,n._pos=[e,0,0]}for(var i=n._getSoundIds(t),r=0;r<i.length;r++){var a=n._soundById(i[r]);if(a){if("number"!=typeof e)return a._stereo;a._stereo=e,a._pos=[e,0,0],a._node&&(a._pannerAttr.panningModel="equalpower",a._panner&&a._panner.pan||p(a,o),"spatial"==o?void 0!==a._panner.positionX?(a._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),a._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),a._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):a._panner.setPosition(e,0,0):a._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),n._emit("stereo",a._id)}}}return n},Howl.prototype.pos=function(e,t,n,o){var i=this;if(i._webAudio)if("loaded"!==i._state)i._queue.push({event:"pos",action:function(){i.pos(e,t,n,o)}});else{if(t="number"!=typeof t?0:t,n="number"!=typeof n?-.5:n,void 0===o){if("number"!=typeof e)return i._pos;i._pos=[e,t,n]}for(var r=i._getSoundIds(o),a=0;a<r.length;a++){var s=i._soundById(r[a]);if(s){if("number"!=typeof e)return s._pos;s._pos=[e,t,n],s._node&&(s._panner&&!s._panner.pan||p(s,"spatial"),void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(t,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):s._panner.setPosition(e,t,n)),i._emit("pos",s._id)}}}return i},Howl.prototype.orientation=function(e,t,n,o){var i=this;if(i._webAudio)if("loaded"!==i._state)i._queue.push({event:"orientation",action:function(){i.orientation(e,t,n,o)}});else{if(t="number"!=typeof t?i._orientation[1]:t,n="number"!=typeof n?i._orientation[2]:n,void 0===o){if("number"!=typeof e)return i._orientation;i._orientation=[e,t,n]}for(var r=i._getSoundIds(o),a=0;a<r.length;a++){var s=i._soundById(r[a]);if(s){if("number"!=typeof e)return s._orientation;s._orientation=[e,t,n],s._node&&(s._panner||(s._pos||(s._pos=i._pos||[0,0,-.5]),p(s,"spatial")),void 0!==s._panner.orientationX?(s._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.orientationY.setValueAtTime(t,Howler.ctx.currentTime),s._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):s._panner.setOrientation(e,t,n)),i._emit("orientation",s._id)}}}return i},Howl.prototype.pannerAttr=function(){var e,t,n=this,o=arguments;if(n._webAudio){if(0===o.length)return n._pannerAttr;if(1===o.length){if("object"!=typeof o[0])return((a=n._soundById(parseInt(o[0],10)))||n)._pannerAttr;e=o[0],void 0===t&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),n._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:n._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:n._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:n._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:n._panningModel})}else 2===o.length&&(e=o[0],t=parseInt(o[1],10));for(var i,r,a,s=n._getSoundIds(t),l=0;l<s.length;l++)(a=n._soundById(s[l]))&&(i=a._pannerAttr,i={coneInnerAngle:(void 0!==e.coneInnerAngle?e:i).coneInnerAngle,coneOuterAngle:(void 0!==e.coneOuterAngle?e:i).coneOuterAngle,coneOuterGain:(void 0!==e.coneOuterGain?e:i).coneOuterGain,distanceModel:(void 0!==e.distanceModel?e:i).distanceModel,maxDistance:(void 0!==e.maxDistance?e:i).maxDistance,refDistance:(void 0!==e.refDistance?e:i).refDistance,rolloffFactor:(void 0!==e.rolloffFactor?e:i).rolloffFactor,panningModel:(void 0!==e.panningModel?e:i).panningModel},(r=a._panner)||(a._pos||(a._pos=n._pos||[0,0,-.5]),p(a,"spatial"),r=a._panner),r.coneInnerAngle=i.coneInnerAngle,r.coneOuterAngle=i.coneOuterAngle,r.coneOuterGain=i.coneOuterGain,r.distanceModel=i.distanceModel,r.maxDistance=i.maxDistance,r.refDistance=i.refDistance,r.rolloffFactor=i.rolloffFactor,r.panningModel=i.panningModel)}return n},Sound.prototype.init=(h=Sound.prototype.init,function(){var e=this,t=e._parent;e._orientation=t._orientation,e._stereo=t._stereo,e._pos=t._pos,e._pannerAttr=t._pannerAttr,h.call(this),e._stereo?t.stereo(e._stereo):e._pos&&t.pos(e._pos[0],e._pos[1],e._pos[2],e._id)}),Sound.prototype.reset=(d=Sound.prototype.reset,function(){var e=this,t=e._parent;return e._orientation=t._orientation,e._stereo=t._stereo,e._pos=t._pos,e._pannerAttr=t._pannerAttr,e._stereo?t.stereo(e._stereo):e._pos?t.pos(e._pos[0],e._pos[1],e._pos[2],e._id):e._panner&&(e._panner.disconnect(0),e._panner=void 0,t._refreshBuffer(e)),d.call(this)}),p=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}),Hy;function f(){this.init()}function m(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")}}();class Yy extends $y{constructor(e){super(e),this.onClick=()=>{super.onClick(),this.ready&&(this.paused?this.play():this.pause())},this.started=!1,this.paused=!0,this.ready=!1,this.stopped=!1,this.play=this.play.bind(this),this.stop=this.stop.bind(this),this.pause=this.pause.bind(this),this.onReady=this.onReady.bind(this),this.onPlay=this.onPlay.bind(this),this.onPause=this.onPause.bind(this)}onOut(){}onOver(){}play(){}stop(){}pause(){}onReady(){this.ready=!0}onPlay(){this.started=!0,this.paused=!1,this.stopped=!1,this.signals.poiMediaPlayed.dispatch(this.code)}onPause(){this.started=!1,this.paused=!0,this.stopped||this.signals.poiMediaPaused.dispatch(this.code)}toggleVisibility(e,t=!1){this.pause(),super.toggleVisibility(e,t)}}class Wy extends Yy{constructor(e){super(e),this.loop=!1,this.volume=50,this.range=220,this.audioObject=null,this.unloadAudio=()=>{this.audioObject&&(this.audioObject.unload(),this.audioObject=null)},this.sound=e.sound,this.url=e.url||ge.SOUND_PLAY,this.altUrl=e.url||ge.SOUND_PAUSE,this.type=te.SOUND;var{volume:e,range:t,loop:n}=e;this.volume=void 0!==e?e/100:.5,this.range=void 0!==t?t:220,this.loop=void 0!==n&&n}mute(e,t){var n;null!=(n=this.audioObject)&&n.mute(e,t)}stop(){return St(this,void 0,void 0,function*(){this.ready&&!this.paused&&(this.audioObject&&this.audioObject.stop(),this.unloadAudio())})}pause(){return St(this,void 0,void 0,function*(){this.ready&&!this.paused&&this.audioObject&&this.audioObject.pause()})}play(){return St(this,void 0,void 0,function*(){var e;this.ready&&!this.started&&(this.audioObject?this.audioObject.playing()||this.audioObject.play():((e=new Uy.Howl({src:[""+this.sound.url],loop:this.loop,volume:this.volume,html5:!0,onend:()=>{this.onPause(),this.unloadAudio()},onplay:()=>{this.onPlay()},onpause:()=>{this.onPause()},onstop:()=>{this.stopped=!0,this.onPause()}})).play(),this.audioObject=e))})}create(e){super.create(e),this.sound&&this.sound.url&&!this.ready&&(new Audio(this.sound.url),this.onReady())}onPause(){super.onPause();var e,t=this.krpano.get(`hotspot[${this.code}]`);t&&(e=Ot(this.props),t.url=qt(e),t=Nt(this.props))&&t.imageStrip&&this.krpano.call(`set(hotspot[${this.code}].onloaded, ${an(this.props)})`)}onPlay(){super.onPlay();var e=this.krpano.get(`hotspot[${this.code}]`);e&&(e.url=this.altUrl,((e,t)=>{e.call(`set(hotspot[${t}].onloaded, '')`),e.call(`clearinterval(crop_anim_${t}); \n set(hotspot[${t}].crop, '');`)})(this.krpano,this.code))}}class Gy extends Yy{constructor(e){super(e),this.image=e.image,this.video=e.video,this.url=e.image?e.image.url:ge.VIDEO,this.type=te.VIDEO,this.started=!1,this.paused=!0,this.ready=!1}play(){this.ready&&!this.started&&this.krpano.call(`hotspot[${this.code}].play()`)}stop(){this.ready&&!this.paused&&(this.stopped=!0,this.pause())}pause(){this.ready&&!this.paused&&this.krpano.call(`hotspot[${this.code}].pause()`)}create(e){var t,n,o;this.video&&(t=fe.VIDEO_PLAYER,n=this.video.url,o=this.video.url.replace("mp4","webm"),this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].url, ${t});`),this.krpano.call(`set(hotspot[${this.code}].videourl, ${n+"#t=3"}|${o});`),this.image&&this.krpano.call(`set(hotspot[${this.code}].posterurl, ${ft(Tt(this.image,(this.width||0)*(this.scale||1)))});`),this.krpano.call(`set(hotspot[${this.code}].html5preload, 'metadata');`),this.krpano.call(`set(hotspot[${this.code}].loop, true);`),this.krpano.call(`set(hotspot[${this.code}].pausedonstart, true);`),this.krpano.call(`set(hotspot[${this.code}].edge, center);`),this.krpano.call(`set(hotspot[${this.code}].ath,${this.ath});`),this.krpano.call(`set(hotspot[${this.code}].atv,${this.atv});`),this.krpano.call(`set(hotspot[${this.code}].alpha,${this.alpha});`),this.krpano.call(`set(hotspot[${this.code}].scale,${this.scale});`),this.krpano.call(`set(hotspot[${this.code}].rotate,${this.rotate});`),this.krpano.call(`set(hotspot[${this.code}].width,${this.width});`),this.krpano.call(`set(hotspot[${this.code}].height,${this.height});`),this.krpano.call(`set(hotspot[${this.code}].rx,${this.rx});`),this.krpano.call(`set(hotspot[${this.code}].ry,${this.ry});`),this.krpano.call(`set(hotspot[${this.code}].rz,${this.rz});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.set(`hotspot[${this.code}].onvideoready`,()=>{this.onReady()}),this.krpano.set(`hotspot[${this.code}].onvideoplay`,()=>{this.onPlay()}),this.krpano.set(`hotspot[${this.code}].onvideopaused`,()=>{this.onPause()}),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{this.krpano.set(`hotspot[${this.code}].visible`,this.visible),super.addEvents(),e&&e(this)}))}}class Xy{constructor(e){this.code="bg"+(Date.now()+Math.random()|0),this.url=ge.BACKGROUND,this.krpano=e.krpano,this.padding=20}create(e){this.krpano.call(`addhotspot(${this.code});`),this.krpano.set(`hotspot[${this.code}].visible`,"false"),this.krpano.set(`hotspot[${this.code}].url`,qt(this.url)),e&&e(this)}update(e){var t;this.krpano.set(`hotspot[${this.code}].ath`,e.ath),this.krpano.set(`hotspot[${this.code}].atv`,e.atv),this.krpano.set(`hotspot[${this.code}].scale`,e.scale),this.krpano.set(`hotspot[${this.code}].rotate`,e.rotate),this.krpano.set(`hotspot[${this.code}].rx`,e.rx),this.krpano.set(`hotspot[${this.code}].ry`,e.ry),this.krpano.set(`hotspot[${this.code}].rz`,e.rz),this.krpano.set(`hotspot[${this.code}].distorted`,e.distorted),e.width?(this.krpano.set(`hotspot[${this.code}].width`,e.width+20),this.krpano.set(`hotspot[${this.code}].height`,e.height+20)):(t=this.krpano.get(`hotspot[${e.code}]`),this.krpano.set(`hotspot[${e.code}].width`,t.imagewidth+20),this.krpano.set(`hotspot[${e.code}].height`,t.imageheight+20))}show(){this.krpano.set(`hotspot[${this.code}].visible`,"true")}hide(){this.krpano.set(`hotspot[${this.code}].visible`,"false")}}class qy{constructor(e){this.name="floorspot"+(Date.now()+Math.random()|0),this.krpano=e.krpano,this.signals=e.signals,this.onPointerMove=e.onPointerMove,this.visible=!1,this.allowVisibility=!0,this.timeout=null,this.placeHotspotAtMouse=this.placeHotspotAtMouse.bind(this),this.trackMouse=this.trackMouse.bind(this),this.onClick=this.onClick.bind(this),this.toggleVisible=this.toggleVisible.bind(this)}onClick(){this.signals.floorPoiClick.dispatch()}trackMouse(){var e,t,n;this.onPointerMove&&this.onPointerMove(),this.allowVisibility?(n=this.krpano.get("mouse"),({x:n,y:t}=this.krpano.screentosphere(n.x,n.y)),t<0?(this.krpano.set(`hotspot[${this.name}].alpha`,0),this.toggleVisible(!1)):(this.krpano.set("sphere_x",n),this.krpano.set("sphere_y",t),this.krpano.set("sphere_z",1),this.krpano.call("spheretospace('sphere_x', 'sphere_y', 'sphere_z', 'space_x', 'space_y', 'space_z')"),n=300*(n=this.krpano.get("space_x"))/(t=this.krpano.get("space_y")),e=300*(e=this.krpano.get("space_z"))/t,this.krpano.set(`hotspot[${this.name}].tx`,n),this.krpano.set(`hotspot[${this.name}].tz`,e),this.krpano.set(`hotspot[${this.name}].ty`,300),n=(t=Math.sqrt(n*n+e*e))<1e3?1:1-(t-1e3)/100,n=Math.max(n,0),this.krpano.set(`hotspot[${this.name}].alpha`,n),this.toggleVisible(!!n))):this.toggleVisible(!1)}placeHotspotAtMouse(){this.timeout=setInterval(this.trackMouse,1e3/60)}stopPlacingHotspotAtMouse(){this.timeout&&(clearInterval(this.timeout),this.timeout=null)}create(e){this.timeout=setTimeout(()=>{this.krpano.call(`addhotspot(${this.name});`),this.krpano.call(`\n set(hotspot[${this.name}].type, text);\n set(hotspot[${this.name}].devices, mouse);\n set(hotspot[${this.name}].css, font-size:80px;text-align:center;);\n set(hotspot[${this.name}].vcenter, true);\n set(hotspot[${this.name}].width, 200);\n set(hotspot[${this.name}].height, 200);\n set(hotspot[${this.name}].scale, 0.2);\n set(hotspot[${this.name}].bgalpha, 0.3);\n set(hotspot[${this.name}].bgroundedge, 100);\n set(hotspot[${this.name}].bgshadow, '0 0 5 0xFFFFFF 1.0');\n set(hotspot[${this.name}].oversampling, 2);\n set(hotspot[${this.name}].mipmapping, true);\n set(hotspot[${this.name}].zorder, ${V.BASE});\n set(hotspot[${this.name}].distorted, true);\n set(hotspot[${this.name}].depth, 0);\n set(hotspot[${this.name}].depthbuffer, true);\n set(hotspot[${this.name}].torigin, world);\n set(hotspot[${this.name}].rotationorder, xyz);\n set(hotspot[${this.name}].rx, -90);\n set(hotspot[${this.name}].capture, false);\n set(hotspot[${this.name}].capturefocus, false);\n set(hotspot[${this.name}].handcursor, false);\n set(hotspot[${this.name}].autoalpha, true);\n set(hotspot[${this.name}].visible, true);\n `),this.krpano.set(`hotspot[${this.name}].onloaded`,()=>{this.placeHotspotAtMouse(),this.krpano.set(`hotspot[${this.name}].onclick`,this.onClick),this.krpano.set(`hotspot[${this.name}].onup`,()=>{this.signals.poiMouseUp.dispatch()}),this.signals.toggleFloorPoi.add(e=>{this.toggleVisible(e)})})},500)}toggleVisible(e){this.visible=e,this.krpano.set(`hotspot[${this.name}].visible`,e&&this.allowVisibility)}toggleAllowVisibility(e){this.allowVisibility=e,this.trackMouse()}getVisible(){return this.visible&&this.allowVisibility}}let Ky=.32;class Zy{constructor(e){this.scale=.2,this.ox=0,this.oy=0,this.ry=0,this.width=0,this.height=0,this.north=0,this.alpha=Ky,this.hovering=!1,this.krpano=e.krpano,this.signals=e.signals,this.visible=!0,this.timeout=null,this.direction=e.direction;var t=`nav_${mt()}_`+this.direction.toLowerCase();this.name=t+"_arrow",this.lblName=t+"_label",t=e.label||"",this.label=t.slice(0,39),t.length>39&&(this.label=this.label+"..."),this.sceneCode=e.sceneCode,this.north=e.north||0,this.ry=this.north,this.width=100,this.height=60,this.url=ge.NAVIGATION_ARROW,this.hoverUrl=ge.NAVIGATION_HIGHLIGHT,jt(this.krpano)&&(this.scale=.4),t=200*this.scale;switch(this.oy=-t,this.direction){case Oe.NORTH:break;case Oe.SOUTH:this.ry+=180;break;case Oe.EAST:this.ry+=90;break;case Oe.WEST:this.ry+=-90;break;case Oe.NORTH_EAST:this.ry+=45;break;case Oe.NORTH_WEST:this.ry+=-45;break;case Oe.SOUTH_EAST:this.ry+=135;break;case Oe.SOUTH_WEST:this.ry+=-135}this.trackView=this.trackView.bind(this),this.onClick=this.onClick.bind(this),this.onHover=this.onHover.bind(this),this.onOut=this.onOut.bind(this)}onClick(){this.signals.navigationPoiClick.dispatch(this.direction)}onHover(){this.hovering=!0,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, 1);,);`),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].alpha, 1);,);`)}onOut(){this.hovering=!1,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, ${this.alpha});,);`),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].alpha, ${this.alpha});,);`)}trackView(e,t,n){this.krpano.set(`hotspot[${this.name}].tx`,e),this.krpano.set(`hotspot[${this.name}].ty`,t),this.krpano.set(`hotspot[${this.name}].tz`,n),this.krpano.set(`hotspot[${this.lblName}].tx`,e),this.krpano.set(`hotspot[${this.lblName}].ty`,t),this.krpano.set(`hotspot[${this.lblName}].tz`,n)}createArrowHotspot(){this.isInActiveScene()&&(this.krpano.call(`addhotspot(${this.name});`),this.krpano.call(`\n set(hotspot[${this.name}].type, text);\n set(hotspot[${this.name}].devices, mouse);\n set(hotspot[${this.name}].url, ${this.url});\n set(hotspot[${this.name}].vcenter, true);\n set(hotspot[${this.name}].width, ${this.width});\n set(hotspot[${this.name}].height, ${this.height});\n set(hotspot[${this.name}].scale, ${this.scale});\n set(hotspot[${this.name}].ox, ${this.ox});\n set(hotspot[${this.name}].oy, ${this.oy});\n set(hotspot[${this.name}].oref, 1);\n set(hotspot[${this.name}].oversampling, 2);\n set(hotspot[${this.name}].mipmapping, true);\n set(hotspot[${this.name}].zorder, ${V.STANDARD});\n set(hotspot[${this.name}].distorted, true);\n set(hotspot[${this.name}].depth, 0);\n set(hotspot[${this.name}].depthbuffer, true);\n set(hotspot[${this.name}].torigin, world);\n set(hotspot[${this.name}].rotationorder, xyz);\n set(hotspot[${this.name}].rx, -90);\n set(hotspot[${this.name}].ry, ${this.ry});\n set(hotspot[${this.name}].capture, false);\n set(hotspot[${this.name}].capturefocus, true);\n set(hotspot[${this.name}].handcursor, true);\n set(hotspot[${this.name}].cursor, pointer);\n set(hotspot[${this.name}].autoalpha, true);\n set(hotspot[${this.name}].alpha, ${this.alpha});\n `))}createLabel(){var e;this.label&&this.isInActiveScene()&&(this.krpano.call(`addhotspot(${this.lblName});`),e=-Math.abs((this.ox||this.oy)/this.scale)-100,this.krpano.call(`\n set(hotspot[${this.lblName}].type, text);\n set(hotspot[${this.lblName}].devices, mouse);\n set(hotspot[${this.lblName}].renderer, css3d);\n set(hotspot[${this.lblName}].css, font-size:28px;text-align:center;color:#fff;text-shadow: 3px 3px #000;transform:translate(0, ${e}px));\n set(hotspot[${this.lblName}].vcenter, true);\n set(hotspot[${this.lblName}].bgalpha, 0);\n set(hotspot[${this.lblName}].width, 800);\n set(hotspot[${this.lblName}].height, 800);\n set(hotspot[${this.lblName}].scale, ${this.scale});\n set(hotspot[${this.lblName}].oref, 2);\n set(hotspot[${this.lblName}].oversampling, 2);\n set(hotspot[${this.lblName}].mipmapping, true);\n set(hotspot[${this.lblName}].zorder, ${V.STANDARD});\n set(hotspot[${this.lblName}].distorted, true);\n set(hotspot[${this.lblName}].depth, 0);\n set(hotspot[${this.lblName}].depthbuffer, true);\n set(hotspot[${this.lblName}].torigin, world);\n set(hotspot[${this.lblName}].rotationorder, xyz);\n set(hotspot[${this.lblName}].rx, -90);\n set(hotspot[${this.lblName}].ry, ${this.ry});\n set(hotspot[${this.lblName}].capture, false);\n set(hotspot[${this.lblName}].capturefocus, false);\n set(hotspot[${this.lblName}].alpha, ${this.alpha});\n `),this.krpano.set(`hotspot[${this.lblName}].html`,`[div]${this.label}[/div]`),this.krpano.set(`hotspot[${this.lblName}].onloaded`,()=>{this.isInActiveScene()?this.krpano.set(`hotspot[${this.lblName}].visible`,!1):this.krpano.call(`removehotspot(${this.lblName})`)}))}create(e){this.hovering=!1,this.alpha=Ky,setTimeout(()=>{this.isInActiveScene()?(this.createArrowHotspot(),this.createLabel(),this.krpano.set(`hotspot[${this.name}].onloaded`,()=>{this.isInActiveScene()?(this.krpano.set(`hotspot[${this.name}].visible`,this.visible),this.krpano.set(`hotspot[${this.name}].onclick`,this.onClick),this.krpano.set(`hotspot[${this.name}].onhover`,this.onHover),this.krpano.set(`hotspot[${this.name}].onout`,this.onOut),this.krpano.set(`hotspot[${this.name}].onup`,()=>{this.signals.poiMouseUp.dispatch()}),e&&e(this)):this.krpano.call(`removehotspot(${this.name})`)})):e&&e(this)},500)}toggle(e,t=!1){t||(this.visible=e);let n=e;this.visible||(n=this.visible),this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].visible, ${n});,);`),n||this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].visible, ${n});,);`)}fade(e){let t=!e;this.visible||(t=!1),this.krpano.call(`if(hotspot[${this.lblName}]!=null,set(hotspot[${this.lblName}].visible, ${t});,);`),this.visible&&!this.hovering&&(this.alpha=e?Ky:.64,this.krpano.call(`if(hotspot[${this.name}]!=null,set(hotspot[${this.name}].alpha, ${this.alpha});,);`))}isInActiveScene(){return(this.krpano.get("xml.scene")||"").toLowerCase()===(this.sceneCode||"").toLowerCase()}}class Qy extends $y{constructor(e){super(e),this.url=e.url||ge.GALLERY,this.type=te.GALLERY,this.gallery=e.gallery,this.hoverCode=At(this.code),this.hovering=!1,this.keepHover=!1,this.bannerVisible=!1,this.keepBannerVisible=!1,this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.toggleBanner=this.toggleBanner.bind(this),this.hideBanner=this.hideBanner.bind(this),this.handleOnLoaded=this.handleOnLoaded.bind(this)}getLookAtPosition(){var{h:e,v:t}=zt(this.krpano,this);return{ath:e,atv:t}}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onOver(){super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${V.HOVERING});`)}onOut(){super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${V.STANDARD});`),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),Mt(this.krpano,this.props,e)}hideBanner(){this.bannerVisible&&!this.keepBannerVisible&&this.toggleBanner(!1)}handleOnLoaded(){var e=this.krpano.get(`hotspot[${this.hoverCode}]`),t=e.sprite.style.transform;e.sprite.style.transform=`${t} translateY(calc(-50% - ${(this.height||0)*(this.scale||1)/2}px))`}renderLaserTooltip(){var e=Object.assign(Object.assign({},this),{position:this.position,overviewPosition:this.overviewPosition});e=en(this.krpano,e,this.language);nn(this.krpano,this.props,e)}create(e){e&&(this.onDone=e),Bt(this)&&this.createFocusingHotspot(),this.renderLaserTooltip(),un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)})}}class Jy extends $y{constructor(e){super(e),this.toggleDustEffect=e=>`\n if(${this.showDustEffect} AND !hide_all_lensflares AND view.fisheye LT 1,\n set(layer[blink_fl_lt_${this.code}].alpha, ${e});\n set(layer[blink_fl_rt_${this.code}].alpha, ${e});\n set(layer[blink_fl_rb_${this.code}].alpha, ${e});\n set(layer[blink_fl_lb_${this.code}].alpha, ${e});\n );\n `,this.updateFlares=e=>{var t="xposh_"+e,n="yposh_"+e;return`\n if(${n} LT 0 OR !${n},\n set(ukryj_gora_${e}, true);\n ,\n set(ukryj_gora_${e}, false);\n );\n\n if(${n} GT stageheight OR !${n},\n set(ukryj_dol_${e}, true);\n ,\n set(ukryj_dol_${e}, false);\n );\n\n set(zero_lewo_123, 0);\n copy(zero_prawo_123, stagewidth);\n\n if(fwebvr.isenabled,\n set(zero_lewo_123, 360);\n set(zero_prawo_123, calc(stagewidth-360));\n );\n\n if(${t} LT zero_lewo_123 OR !${t},\n set(ukryj_lewo_${e}, true);\n ,\n set(ukryj_lewo_${e}, false);\n );\n\n if(${t} GT zero_prawo_123 OR !${t},\n set(ukryj_prawo_${e}, true);\n ,\n set(ukryj_prawo_${e}, false);\n );\n\n getlooktodistance(re_${e}, view.hlookat, view.vlookat, ath, atv);\n\n if((!ukryj_gora_${e} AND !ukryj_dol_${e} AND !ukryj_lewo_${e} AND !ukryj_prawo_${e} AND re_${e} LT 90) AND view.fisheye LT 1,\n set(visible, true);\n ,\n set(visible, false);\n );\n `},this.krpano=e.krpano,this.url=e.url||ge.MOVING,this.metadata=e.metadata,this.type=te.LENSFLARE,this.flareStyle=e.flareStyle||"DAY_LIGHT_1",this.showDustEffect="boolean"!=typeof e.showDustEffect||e.showDustEffect,this.desktopOnly="boolean"!=typeof e.desktopOnly||e.desktopOnly,this.ath=e.ath||0,this.atv=e.atv||0}create(){this.metadata?this.preview():console.warn("metadata empty")}preview(){this.clear();var e=this.krpano.get("device.mobile");this.desktopOnly&&e||(this.createDustLayers(),this.addSingleFlare())}clear(){var e;this.metadata&&(e=this.metadata.flares[this.flareStyle])&&(Object.values(e).forEach((e,t)=>{e=e.name,e=`f1_${this.code}_${e}_`+t,this.krpano.get(`hotspot[${e}]`)&&this.krpano.call(`removehotspot(${e})`)}),(this.metadata.dusts||[]).forEach(e=>{e=e.name+"_"+this.code,this.krpano.get(`removelayer[${e}]`)&&this.krpano.call(`removelayer(${e})`)}))}createDustLayers(){this.metadata&&this.metadata.dusts.forEach(e=>{var t=e.name+"_"+this.code;this.krpano.call(`\n addlayer(${t});\n copy(dustLayer, layer[${t}]);\n ${Object.entries(e).map(([e,t])=>`set(dustLayer.${e}, ${t});`).join("\n")}\n set(dustLayer.enabled, false);\n `)})}addSingleFlare(){var e;this.metadata&&(e=this.metadata.flares[this.flareStyle])&&Object.values(e).forEach((e,t)=>{var{name:e,url:n,vars:o}=e,i=`f1_${this.code}_${e}_`+t,[o,r,a,s,l,c,u,h,d,p,f]=(e=`f1_${this.code}_${e}_0`,o.split("|"));this.krpano.call(`\n set(hide_all_lensflares, false);\n addhotspot(${i});\n copy(hfla, hotspot[${i}]);\n\n set(hfla.distrored, true);\n set(hfla.enabled, false);\n set(hfla.alpha, 0);\n set(hfla.zorder, ${V.MAX});\n set(hfla.depth, 1000);\n set(hfla.edge, center);\n set(hfla.ox, 0);\n set(hfla.oy, 0);\n set(hfla.width, 440);\n set(hfla.height, 440);\n set(hfla.keep, false);\n\n set(hfla.url, ${n});\n set(hfla.ath, ${this.ath});\n set(hfla.atv, ${this.atv});\n set(hfla.dusteffect, ${this.showDustEffect});\n set(hfla.move, ${o});\n set(hfla.rmove, ${d});\n copy(hfla.athbazowy, hotspot[${e}].ath);\n copy(hfla.atvbazowy, hotspot[${e}].atv);\n set(hfla.flying, ${l});\n set(hfla.scale, ${r});\n set(hfla.alpha, ${a});\n set(hfla._alpha, ${a});\n set(hfla.rscale, ${c});\n set(hfla.ralpha, ${u});\n set(hfla.ralphaminus, ${h});\n set(hfla.zorder, ${s});\n set(hfla.invr, ${p});\n set(hfla.blendmode, ${f});\n set(scaleTemp_${i}, ${r});\n\n set(hfla.onloaded,\n if(webvr.isenabled, if(!invr, if(hotspot[${i}].loaded, removehotspot(${i}));));\n\n asyncloop(loaded,\n spheretoscreen(ath, atv, xposh_${i}, yposh_${i});\n div(xpos_${i}, stagewidth, 2);\n div(ypos_${i}, stageheight, 2);\n sub(xposg_${i}, xposh_${i}, xpos_${i});\n sub(yposg_${i}, yposh_${i}, ypos_${i});\n div(ox, xposg_${i}, calc(move*1.4/(rmove*12)));\n div(oy, yposg_${i}, calc(move*1.4/(rmove*12)));\n\n getlooktodistance(scal_${i}, view.hlookat, view.vlookat, ath, atv);\n\n spheretoscreen(athbazowy, atvbazowy, px_${i}, py_${i});\n sub(a_${i}, px_${i}, xpos_${i});\n sub(b_${i}, ypos_${i}, py_${i});\n Math.atan2(angle_${i}, a_${i}, b_${i});\n mul(angle_${i}, 180);\n div(angle_${i}, Math.PI);\n add(angle_${i}, 270);\n mod(angle_${i}, 360);\n roundval(angle_${i});\n copy(rz, angle_${i});\n\n if(ralpha,\n set(alpha_${i}, calc((scal_${i}/70)-ralphaminus));\n if(alpha_${i} LE 0, set(alpha_${i}, 0));\n if(webVr.isenabled,\n set(hotspot[${i}].alpha, calc(alpha_${i}/3));\n ,\n set(hotspot[${i}].alpha, calc(alpha_${i}));\n if(hotspot[${i}].alpha GT 1, set(hotspot[${i}].alpha, 1));\n );\n ,\n set(hotspot[${i}].alpha, ${a})\n );\n if(rscale != 1,\n set(valsc_${i}, calc((rscale*scal_${i})/10+scaleTemp_${i}));\n if(webVr.isenabled,\n set(scale, calc(valsc_${i}/2));\n ,\n copy(scale, valsc_${i});\n );\n );\n \n if(${t} == '1',\n getlooktodistance(result_${i}, view.hlookat, view.vlookat, ath, atv);\n div(result1_${i}, result_${i}, 10);\n clamp(result1_${i}, 0.0, 1.0);\n mod(result2_${i}, result1_${i}, 100);\n sub(result2_${i},1);\n mul(result2_${i},-1);\n\n copy(alpha, result2_${i});\n sub(alpha, 0.3);\n if(result_${i} LT 7,\n ${this.toggleDustEffect(`get(result2_${i})`)}\n );\n if(result_${i} GT 7 AND result_${i} LT 20,\n ${this.toggleDustEffect(0)}\n );\n );\n ${this.updateFlares(i)}\n );\n );\n `)})}}class e_ extends $y{constructor(e){super(e),this.label="",this.spheretoscreen=()=>{var{ath:e,atv:t}=this.getHoverPosition();return this.krpano.spheretoscreen(e,t)},this.moveToScene=e.moveToScene,this.moveToFloorplan=e.moveToFloorplan,this.url=e.url||ge.MOVING,this.type=te.MOVING,this.isLookAt=!1,this.previewType=e.previewType||_e,this.label=e.label||"",this.previewType===we?this.alwaysShowLabel=void 0===e.alwaysShow||e.alwaysShow:this.alwaysShowLabel=!1,this.alwaysOnFloor=e.alwaysOnFloor||!1,this.tx=e.tx||0,this.ty=e.ty||0,this.tz=e.tz||0,this.displayType=e.displayType||Ue,this.bgColor=e.bgColor||"#333333",this.color=e.color||"#ffffff",this.fontSize=e.fontSize||"12pt",this.precision=void 0===e.precision||e.precision,this.lookWhenMoving=!1,this.showingLabel=!1,this.hovering=!1,this.hoverCode=At(this.code),this.dispatchClick=this.dispatchClick.bind(this),this.createOnFloor=this.createOnFloor.bind(this),this.updateAlpha=this.updateAlpha.bind(this),this.revertAlpha=this.revertAlpha.bind(this),this.updateHovering=this.updateHovering.bind(this),this.getHoverPosition=this.getHoverPosition.bind(this)}dispatchClick(){var e=this.moveToScene&&this.moveToScene.code,t=this.moveToFloorplan&&this.moveToFloorplan.code;e&&this.signals.movingPoiClick.dispatch(e,t,this.ath,this.atv,{lookWhenMoving:this.lookWhenMoving})}onClick(){super.onClick(),!this.isMobileDevice||this.previewType===_e||this.alwaysShowLabel?this.dispatchClick():this.showingLabel?(this.dispatchClick(),this.hideLabel()):(this.signals.toggleLabels.dispatch(!1),this.showLabel(),this.isMobileDevice&&setTimeout(()=>{this.dispatchClick()},1e3))}onOver(){this.updateHovering(!0),super.onOver(),this.signals.poiOver.dispatch({poiData:this.props,coords:this.getCenter()})}onOut(){this.updateHovering(!1),super.onOut(),this.signals.poiOut.dispatch(),this.isMobileDevice||this.hideLabel()}onHover(){this.updateHovering(!0),this.signals.poiHover.dispatch(this.getCenter()),this.showLabel()}toggleLabel(e=!1,t=!1){this.previewType!==_e&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),t||!this.alwaysShowLabel||this.alwaysShowLabel&&e)&&(this.showingLabel=e)}showLabel(){this.toggleLabel(!0),this.isMobileDevice&&!this.alwaysShowLabel&&this.previewType===we&&(this.timeOut=setTimeout(()=>{this.hideLabel()},2e3))}hideLabel(){this.timeOut&&(clearTimeout(this.timeOut),this.timeOut=void 0),this.alwaysShowLabel||this.toggleLabel(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),(this.showingLabel||this.alwaysShowLabel&&e)&&this.toggleLabel(e,!0)}updateAlpha(e){this.hovering||this.isMobileDevice?this.revertAlpha():this.krpano.set(`hotspot[${this.code}].alpha`,e)}revertAlpha(){this.krpano.set(`hotspot[${this.code}].alpha`,this.alpha)}updateHovering(e){this.isMobileDevice||(this.hovering=e)}getHoverContent(){return`\n [div class="cvtv-moving-label-poi"]\n [div class="cvtv-moving-label-poi__inner"]${this.label}[/div]\n [div class="cvtv-moving-label-poi__arrow"]\n [span class="cvtv-moving-label-poi__arrow__content" /]\n [/div]\n [/div]\n `}createRoomNameCard(e){this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`\n set(hotspot[${this.code}].type, text);\n set(hotspot[${this.code}].renderer, css3d);\n set(hotspot[${this.code}].bgalpha, 0);\n set(hotspot[${this.code}].visible, true);\n set(hotspot[${this.code}].autowidth, true);\n set(hotspot[${this.code}].autoheight, true);\n set(hotspot[${this.code}].scale, ${this.scale});\n set(hotspot[${this.code}].ath, ${this.ath});\n set(hotspot[${this.code}].atv, ${this.atv});\n set(hotspot[${this.code}].rx, ${this.rx});\n set(hotspot[${this.code}].ry, ${this.ry});\n set(hotspot[${this.code}].rz, ${this.rz});\n set(hotspot[${this.code}].rotate, ${this.rotate});\n set(hotspot[${this.code}].distorted, ${this.distorted});\n set(hotspot[${this.code}].handcursor, true);\n set(hotspot[${this.code}].css, font-family:Barlow; font-size:14px; padding: 3rem;);\n `),this.krpano.set(`hotspot[${this.code}].html`,`\n [div]\n [div style="\n background-color: ${this.bgColor};\n padding: 0.5rem 1rem;\n display: flex;\n gap: 0.5rem;\n align-items: center;\n "]\n [img\n width="${this.width}"\n height="${this.height}"\n src="${qt(Ot(this.props))}"\n /]\n ${this.previewType===_e?"":`[span style="color: ${this.color}; font-size: ${this.fontSize}"]${this.label}[/span]`}\n [/div]\n [/div]\n `),setTimeout(()=>{super.addEvents()},500),e&&e(this)}createOnFloor(e){hn(this.krpano,this.props),setTimeout(()=>{super.addEvents()},500),e&&e(this)}create(e){if(this.displayType===Ye)this.createRoomNameCard(e);else if(this.previewType===_e||this.previewType===xe)this.alwaysOnFloor?this.createOnFloor(e):super.create(e);else{var t=this.getHoverContent(),n=Object.assign(Object.assign({},this.props),this.getHoverPosition());let o;on(this.krpano,n,t,!1),(o=(this.alwaysOnFloor?hn:un)(this.krpano,n)).then(()=>{this.alwaysShowLabel&&this.showLabel(),super.addEvents(),e&&e(this)})}}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.dispatchClick()})}getHoverPosition(){return this.alwaysOnFloor?this.krpano.spacetosphere(this.tx,this.ty,this.tz):{ath:this.ath,atv:this.atv}}isHideable(){return this.displayType!==Ye}}class t_ extends $y{constructor(e){super(e),this.image=e.image,this.url=this.image?this.image.url:void 0,this.rotatewithview=e.rotatewithview||!1,this.type=te.NADIR_LOGO,this.zenith=e.zenith||!1}create(e){if(this.url&&this.visible&&this.enabled){let o=this.props.rz||0;this.zenith&&(o+=180);var t=this.props.width||100,n=this.props.height||100;this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].type, 'image');`),this.krpano.call(`set(hotspot[${this.code}].url, ${this.url});`),this.krpano.call(`set(hotspot[${this.code}].ath, 0);`),this.krpano.call(`set(hotspot[${this.code}].atv, ${this.zenith?-90:90});`),this.krpano.call(`set(hotspot[${this.code}].width, ${t});`),this.krpano.call(`set(hotspot[${this.code}].height, ${n});`),this.krpano.call(`set(hotspot[${this.code}].rz, ${o});`),this.krpano.call(`set(hotspot[${this.code}].distorted, true);`),this.krpano.call(`set(hotspot[${this.code}].handcursor, false);`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.call(`set(hotspot[${this.code}].capturefocus, false);`),this.krpano.call(`set(hotspot[${this.code}].rotatewithview, ${this.rotatewithview});`),this.krpano.call(`set(hotspot[${this.code}].cursor, 'none');`),this.krpano.call(`set(hotspot[${this.code}].visible, true);`),this.krpano.call(`set(hotspot[${this.code}].enabled, true);`),e&&e(this)}}}class n_ extends $y{constructor(e){super(e),this.image=e.image,this.url=e.image?e.image.url:ge.PHOTO,this.type=te.PHOTO}create(e){super.create(e),this.krpano.call(`set(hotspot[${this.code}].capture,false);`)}onOut(){}onOver(){}isHideable(){return!1}}class o_ extends Vy{constructor(e){super(e),this.type=te.POLYGON,this.fillColor=e.fillColor||255,this.fillAlpha=e.fillAlpha||.2,this.borderWidth=e.borderWidth||3,this.borderColor=e.borderColor||255,this.borderAlpha=e.borderAlpha||1,this.zorder=e.zorder||1,this.points=e.points||[],this.mouseOver=!1}addDesktopEvents(){super.addDesktopEvents(),!this.isMobileDevice&&this.isHoverable()&&(this.krpano.set(`hotspot[${this.hoverCode}].onover`,()=>{this.mouseOver=!0}),this.krpano.set(`hotspot[${this.hoverCode}].onout`,()=>{this.mouseOver=!1,this.onOut()}))}onClick(){super.onClick(),this.isClickable()&&(this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch())}onOver(){this.isHoverable()&&super.onOver()}onOut(){this.isHoverable()&&!this.mouseOver&&super.onOut()}onHover(){this.isHoverable()&&this.show()}show(){this.krpano.set(`hotspot[${this.hoverCode}].visible`,"true"),this.hovering=!0}hide(){this.krpano.set(`hotspot[${this.hoverCode}].visible`,"false"),this.hovering=!1}toggleVisibility(e){this.hovering&&this.krpano.set(`hotspot[${this.hoverCode}].visible`,""+e)}getPolygonCenter(){var e=this.krpano.get(`hotspot[${this.code}]`);if(e)return e.getcenter()}getLookAtPosition(){var{x:e,y:t}=this.getPolygonCenter();return{ath:e,atv:t}}create(e){var t;e&&(this.onDone=e),this.itemInfo&&(this.krpano.call(`addhotspot(${this.code});`),this.krpano.call(`set(hotspot[${this.code}].fillcolor,${this.fillColor});`),this.krpano.call(`set(hotspot[${this.code}].fillalpha,${this.fillAlpha});`),this.krpano.call(`set(hotspot[${this.code}].borderwidth,${this.borderWidth});`),this.krpano.call(`set(hotspot[${this.code}].bordercolor,${this.borderColor});`),this.krpano.call(`set(hotspot[${this.code}].borderalpha,${this.borderAlpha});`),this.krpano.call(`set(hotspot[${this.code}].zorder,${this.zorder});`),this.krpano.call(`set(hotspot[${this.code}].distorted,${this.distorted});`),this.krpano.call(`set(hotspot[${this.code}].enabled,${this.enabled});`),this.krpano.call(`set(hotspot[${this.code}].capture, false);`),this.krpano.set(`hotspot[${this.code}].onloaded`,()=>{this.krpano.set(`hotspot[${this.code}].visible`,this.visible)}),this.points.forEach(e=>{var{code:e,ath:t,atv:n}=e;this.krpano.call(`set(hotspot[${this.code}], point[${e}].ath=${t}, point[${e}].atv=${n});`)}),(e=this.getPolygonCenter())&&(this.ath=e.x,this.atv=e.y),(e=this.getHoverContent())&&(t=Object.assign(Object.assign({},this.props),{ath:this.ath,atv:this.atv,height:0}),on(this.krpano,t,e)),setTimeout(()=>{this.addEvents()},200),this.onDone)&&this.onDone(this)}}class i_ extends $y{constructor(e){super(e),this.text=void 0,this.image=void 0,this.iframe=void 0,this.webRotateCode=void 0,this.iframeSize=void 0,this.url=e.url||ge.POPUP,this.type=te.POPUP,this.text=e.text,this.image=e.image,this.iframe=e.iframe,this.webRotateCode=e.webRotateCode,this.label=e.label||"",this.hoverCode=At(this.code),this.iframeSize=e.iframeSize}onClick(){super.onClick(),this.signals.poiClick.dispatch(this.props)}onOver(){super.onOver()}onOut(){super.onOut()}onHover(){}getHoverContent(){return this.label?`\n [div class="bg-[rgba(0,0,0,0.6)] rounded shadow-[0_1px_2px_-2px_rgba(0,0,0,0.16),0_3px_6px_0_rgba(0,0,0,0.12),0_5px_12px_4px_rgba(0,0,0,0.09)] text-white cursor-pointer text-base font-normal leading-5 min-w-[60px] pointer-events-auto text-center px-3 py-2"]\n [div class="h-full overflow-hidden w-full rounded-md"]${this.label}[/div]\n [div class="bottom-[-14.14213562373095px] h-[14.14213562373095px] left-[calc(50%_-_7.07px)] overflow-hidden absolute w-[14.14213562373095px] z-0"]\n [span class="bg-[rgba(0,0,0,0.6)] block h-2.5 relative rotate-45 -translate-x-2/4 translate-y-0 w-2.5 left-[5px] -top-0.5" /]\n [/div]\n [/div]\n `:""}create(e){var t=this.getHoverContent(),n=Object.assign(Object.assign({},this.props),{ath:this.ath,atv:this.atv});on(this.krpano,n,t,!1),this.krpano.set(`hotspot[${this.hoverCode}].visible`,!0),un(this.krpano,n).then(()=>{super.addEvents(),e&&e(this)})}}(e=>{e.NEW_TAB="NEW_TAB",e.IFRAME="IFRAME",e.BUILD_IN="BUILD_IN"})(zy=zy||{});class r_ extends $y{constructor(e){super(e),this.url=e.url||ge.PROMOTION,this.type=te.PROMOTION,this.promotion=e.promotion,this.hoverCode=At(this.code),this.hovering=!1,this.keepHover=!1,this.bannerVisible=!1,this.keepBannerVisible=!1,this.promotionCode=e.promotionCode,this.lineHeight=40,this.bannerSize=150,this.toggleHoverPoi=this.toggleHoverPoi.bind(this),this.addHoverPoiEvent=this.addHoverPoiEvent.bind(this),this.toggleBanner=this.toggleBanner.bind(this),this.hideBanner=this.hideBanner.bind(this),this.handleOnLoaded=this.handleOnLoaded.bind(this)}getLookAtPosition(){var{h:e,v:t}=zt(this.krpano,this);return{ath:e,atv:t}}addHoverPoiEvent(){this.krpano.set(`hotspot[${this.hoverCode}].onclick`,()=>{this.signals.poiClick.dispatch(this.props),this.signals.poiOut.dispatch()})}addDesktopEvents(){super.addDesktopEvents(),this.addHoverPoiEvent()}addMobileEvents(){super.addMobileEvents(),this.addHoverPoiEvent()}onClick(){super.onClick();var e=!this.bannerVisible;this.toggleBanner(e),e&&(this.keepBannerVisible=!0,setTimeout(()=>{this.keepBannerVisible=!1},1e3))}onOver(){super.onOver(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${V.HOVERING});`)}onOut(){super.onOut(),this.krpano.call(`set(hotspot[${this.code}].zorder, ${V.STANDARD});`),this.isMobileDevice||this.hide(),this.signals.poiOut.dispatch()}onHover(){this.show()}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}toggleVisibility(e,t){super.toggleVisibility(e,t),this.hovering&&this.toggleHover(e)}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHoverPoi(e=!1){Lt(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),Mt(this.krpano,this.props,e))}hideBanner(){this.bannerVisible&&!this.keepBannerVisible&&this.toggleBanner(!1)}handleOnLoaded(){var e=this.krpano.get(`hotspot[${this.hoverCode}]`),t=e.sprite.style.transform;e.sprite.style.transform=`${t} translateY(calc(-50% - ${(this.height||0)*(this.scale||1)/2}px))`}renderLaserTooltip(){var e=en(this.krpano,this,this.language);nn(this.krpano,this.props,e)}create(e){var t,n,o;e&&(this.onDone=e),this.promotion&&(({image:t,endDate:n,startDate:o}=this.promotion),t)&&t.url&&Xt(o).isBefore(new Date)&&Xt(n).isAfter(new Date)&&(Bt(this)&&this.createFocusingHotspot(),(e=>St(void 0,void 0,void 0,function*(){return e?new Promise(t=>{let n=new Image;n.onload=()=>{var{width:e,height:o}=n;t({width:e,height:o})},n.onerror=()=>{t(null)},n.src=e}):null}))(o=ft(Tt(t,(this.width||0)*(this.scale||1)))).then(t=>{t&&(this.renderLaserTooltip(),un(this.krpano,this.props).then(()=>{super.addEvents(),e&&e(this)}))}))}hasDetailModal(){return this.promotion&&this.promotion.openType===zy.BUILD_IN}}(e=>{e.NONE="NONE",e.SEMICIRCLE="SEMICIRCLE",e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"})(By=By||{});class a_ extends $y{constructor(e){super(e),this.menuStyle=By.NONE,this.hoverTimeout=null,this.setTextureIndex=e=>{this.textureIndex=e,this.changeVisibleTexture()},this.getElementName=e=>this.code+"_texture_"+e,this.onOutMenuContextMask=()=>{this.toggleContext(!1)},this.onOverMenuContextMask=()=>{this.toggleContext(!0)},this.antiFlicking=(e,t)=>{this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),t?this.hoverTimeout=setTimeout(()=>{e()},t):e()},this.toggleContext=(e=!1)=>{this.antiFlicking(()=>{this.hovering=e;var{x:t,y:n}=this.krpano.spheretoscreen(this.ath,this.atv);this.signals.texturePoiHover.dispatch({poi:e?this:null,coords:{x:t,y:n}}),this.krpano.set(`hotspot[${this.menuContextMask}].visible`,e),this.krpano.set(`hotspot[${this.code}].zorder`,e?V.HOVERING:V.STANDARD)},e?0:.2)},this.textures=e.textures,this.textureIndex=e.textureIndex||0,this.menuStyle=e.menuStyle,this.url=ge.TEXTURE,this.type=te.TEXTURE,this.menuContextMask=this.code+"_context_mask",this.bannerVisible=!1,this.keepHover=!1,this.hovering=!1,this.isLookAt=Bt(this),this.hoverTimeout=null,this.hoverCode=At(this.code)}changeVisibleTexture(){this.textures&&0!==this.textures.length&&this.textures.forEach((e,t)=>{t===this.textureIndex?this.krpano.call(`tween(hotspot[${this.getElementName(t)}].alpha, 1.0, 0.5);`):this.krpano.call(`tween(hotspot[${this.getElementName(t)}].alpha, 0, 0.5);`)})}createTexture(e,t,n=0){var{hfov:t,yaw:o,pitch:i,roll:r}=t,a=57.295779;this.krpano.call(`\n addhotspot(${this.getElementName(n)});\n set(hotspot[${this.getElementName(n)}].url, ${e});\n set(hotspot[${this.getElementName(n)}].distorted, true);\n set(hotspot[${this.getElementName(n)}].enabled, false);\n set(hotspot[${this.getElementName(n)}].alpha, ${n===this.textureIndex?1:0});\n set(hotspot[${this.getElementName(n)}].width, 0);\n set(hotspot[${this.getElementName(n)}].height, 0);\n set(hotspot[${this.getElementName(n)}].rx,0);\n set(hotspot[${this.getElementName(n)}].ry,0);\n set(hotspot[${this.getElementName(n)}].rz,0);\n set(hotspot[${this.getElementName(n)}].onloaded, '\n div(hfov_${this.getElementName(n)}, ${t}, ${a});\n div(yaw_${this.getElementName(n)}, ${o}, -${a});\n div(pitch_${this.getElementName(n)}, ${i}, ${a});\n div(roll_${this.getElementName(n)}, ${r}, -${a});\n mul(hfov_${this.getElementName(n)}, 0.5);\n Math.tan(hfov_${this.getElementName(n)});\n mul(hotspot[${this.getElementName(n)}].width, hfov_${this.getElementName(n)}, 1000);\n set(hotspot[${this.getElementName(n)}].height, prop);\n Math.cos(ch_${this.getElementName(n)}, yaw_${this.getElementName(n)});\n Math.sin(sh_${this.getElementName(n)}, yaw_${this.getElementName(n)});\n Math.cos(ca_${this.getElementName(n)}, pitch_${this.getElementName(n)});\n Math.sin(sa_${this.getElementName(n)}, pitch_${this.getElementName(n)});\n Math.cos(cb_${this.getElementName(n)}, roll_${this.getElementName(n)});\n Math.sin(sb_${this.getElementName(n)}, roll_${this.getElementName(n)});\n mul(m0_${this.getElementName(n)}, ca_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, cb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, sb_${this.getElementName(n)}, sh_${this.getElementName(n)});\n add(m3_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m4_${this.getElementName(n)}, cb_${this.getElementName(n)}, ca_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, cb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, sh_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, sb_${this.getElementName(n)}, ch_${this.getElementName(n)});\n sub(m5n_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m5n_${this.getElementName(n)}, -1);\n mul(tmp_${this.getElementName(n)}, sb_${this.getElementName(n)}, sa_${this.getElementName(n)});\n mul(tmp_${this.getElementName(n)}, ch_${this.getElementName(n)});\n mul(tmp2_${this.getElementName(n)}, cb_${this.getElementName(n)}, sh_${this.getElementName(n)});\n sub(m6n_${this.getElementName(n)}, tmp_${this.getElementName(n)}, tmp2_${this.getElementName(n)});\n mul(m6n_${this.getElementName(n)}, -1);\n Math.atan2(yaw_${this.getElementName(n)}, m6n_${this.getElementName(n)}, m0_${this.getElementName(n)});\n Math.atan2(roll_${this.getElementName(n)}, m5n_${this.getElementName(n)}, m4_${this.getElementName(n)});\n Math.asin(pitch_${this.getElementName(n)}, m3_${this.getElementName(n)});\n mul(hotspot[${this.getElementName(n)}].ath, yaw_${this.getElementName(n)}, ${a});\n mul(hotspot[${this.getElementName(n)}].atv, pitch_${this.getElementName(n)}, ${a});\n mul(hotspot[${this.getElementName(n)}].rotate, roll_${this.getElementName(n)}, ${a});\n ');\n `)}create(e){var t;super.create(e),this.krpano.call(`set(hotspot[${this.code}].zorder,' ${V.STANDARD}');`),this.overviewPosition!==Ae.NONE&&(Bt(this)&&this.createFocusingHotspot(),e=en(this.krpano,this,this.language),nn(this.krpano,this.props,e)),this.textures&&0!==this.textures.length&&(this.textures.forEach((e,t)=>{var n=e.image;n=qt(n.file.url);this.createTexture(n,e,t)}),this.menuStyle!==By.NONE)&&(e=[By.HORIZONTAL].includes(this.menuStyle)?800:320,t=[By.HORIZONTAL].includes(this.menuStyle)?96:320,e=this.width<e?e:this.width+32,t=this.height<t?t:this.height+32,this.krpano.call(`\n addhotspot(${this.menuContextMask});\n set(hotspot[${this.menuContextMask}].type, 'text');\n set(hotspot[${this.menuContextMask}].bgalpha, 0);\n set(hotspot[${this.menuContextMask}].handcursor, false);\n set(hotspot[${this.menuContextMask}].width, ${e});\n set(hotspot[${this.menuContextMask}].height, ${t});\n set(hotspot[${this.menuContextMask}].visible, false);\n set(hotspot[${this.menuContextMask}].rx, 0);\n set(hotspot[${this.menuContextMask}].ry, 0);\n set(hotspot[${this.menuContextMask}].rz, 0);\n set(hotspot[${this.menuContextMask}].rotate, 0);\n set(hotspot[${this.menuContextMask}].distorted, true);\n set(hotspot[${this.menuContextMask}].enabled, true);\n set(hotspot[${this.menuContextMask}].zorder, ${V.HOVERING_AREA});\n set(hotspot[${this.menuContextMask}].ath, '${this.ath}');\n set(hotspot[${this.menuContextMask}].atv, '${this.atv}');\n `))}addDesktopEvents(){super.addDesktopEvents(),this.onOutMenuContextMask&&this.krpano.set(`hotspot[${this.menuContextMask}].onout`,this.onOutMenuContextMask),this.onOverMenuContextMask&&this.krpano.set(`hotspot[${this.menuContextMask}].onover`,this.onOverMenuContextMask)}onOut(){this.toggleContext(!1)}onOver(){super.onOver(),this.toggleContext(!0)}onClick(){var e,t;super.onClick(),Bt(this)||(this.textures&&0!==this.textures.length&&(this.textureIndex=++this.textureIndex%this.textures.length,this.changeVisibleTexture()),this.isMobileDevice?(({x:e,y:t}=this.krpano.spheretoscreen(this.ath,this.atv)),this.signals.texturePoiTouched.dispatch({poi:this,coords:{x:e,y:t}})):this.signals.texturePoiClick.dispatch({poi:this}))}toggleHoverPoi(e=!1){Bt(this)&&(this.krpano.set(`hotspot[${this.hoverCode}].visible`,e),Mt(this.krpano,this.props,e))}toggleBanner(e=!1){this.bannerVisible=e,this.toggleHoverPoi(e)}toggleHover(e=!1){this.toggleBanner(e),this.hovering=e}show(e=!1){this.toggleHover(!0),e&&(this.keepHover=!0)}hide(e=!1){e&&(this.keepHover=!1),this.keepHover||this.toggleHover(!1)}}class s_{constructor(e){this.navPois={},this.orderIndex=0,this.north=0,this.tags=[],this.showNavigationHotspots=!1,this.showNavigationWithoutMovingHotspot=!1,this.showNavigationHotspotLabels=!1,this.debounceAutoShowHotspot=Oy(()=>{this.autoShowHotspots()},300),this.category="",this.categoryCode="",this.nearestMovingPoi=null,this.movingHotspotsHidden=!1,this.centerPoi=null,this.isMobileDevice=!1,this.autoShowType=Pe,this.load=(e=0,t,n)=>{var o,i=this.krpano.getView(),r=Dt(this.krpano);let a=this.hlookat,s=this.vlookat;t&&(({hChanged:t,vChanged:l,ignoreNorth:o=!1}=t),s=l,a=o?t:Ft(this.north+t));var l=(e=>{var t,n=Object.assign({},e);let o="";for(t in n){var i=n[t];i&&(""!=o&&(o+="&"),o+="view."+t+"="+i)}return o})({hlookat:a,vlookat:s,fov:r.fov||i.fov,fovtype:r.fovtype});this.krpano.call(`\n delayedcall(${e},loadscene(${this.code},${l},${this.flags},${n||this.blend}););\n `)},this.setViewLimit=()=>{let{coverMode:e,vlookatmax:t,vlookatmin:n,hlookatmax:o,hlookatmin:i,hlookat:r,vlookat:a}=this.viewLimitConfig;if(e===be){let e=n||-90,s=t||90,l=i||-360,c=o||pt;this.setOnViewChangeEvents(()=>{this.krpano.call(`clamp(view.vlookat,${a+e},${a+s})`),-360===Math.round(l)&&Math.round(c)===pt||this.krpano.call(`clamp(view.hlookat,${r+l},${r+c})`)},!0)}},this.showHotspotNearestToCenter=()=>{if(this.allPoiVisible&&this.allLabelVisible&&this.pois.length){let{hlookat:t,vlookat:n,hfov:o}=this.krpano.getView(),i=[te.PROMOTION,te.ITEM_INFO,te.POLYGON,te.GALLERY,te.TEXTURE];var e=this.pois.map(e=>{if(e.visible&&i.includes(e.type)&&(e.itemInfo||e.promotion||e.gallery)){try{var r,a=this.getHorizontalDisplayDeg(e,o),s=this.krpano.spheretospace(t,n);if($t(t,n,e.ath,e.atv).h<a)return r=this.krpano.spheretospace(e.ath,e.atv),{poi:e,dist:Vt(s,r)}}catch(e){console.error(e)}e.hide(!0)}return null}).filter(e=>!!e).sort((e,t)=>null===e.dist?1:null===t.dist?-1:e.dist-t.dist);e.forEach((e,t)=>{var{poi:e,dist:n}=e,o=e;0===t&&null!==n&&this.isVisiblePoi(e)?(this.signals.toggleHotspotNearestToCenter.dispatch(o.code),(this.centerPoi=o).show(!0)):o.hide(!0)}),null!=e&&e.length||(this.signals.toggleHotspotNearestToCenter.dispatch(null),this.centerPoi=null)}else this.signals.toggleHotspotNearestToCenter.dispatch(null),this.centerPoi=null},this.buildNavigationHotspots=()=>{if(this.showNavigationHotspots){let e=this.floorMovingPois.map(e=>this.movingPoisMap[e]);Object.values(Oe).forEach(t=>{var n=(e=>{switch(e){case Oe.NORTH:return[{min:-23,max:23}];case Oe.NORTH_EAST:return[{min:24,max:67}];case Oe.EAST:return[{min:68,max:113}];case Oe.SOUTH_EAST:return[{min:114,max:157}];case Oe.NORTH_WEST:return[{max:-24,min:-67}];case Oe.WEST:return[{max:-68,min:-113}];case Oe.SOUTH_WEST:return[{max:-114,min:-157}];case Oe.SOUTH:return[{max:-158,min:-180},{min:158,max:180}]}return null})(t);if(n){var o=[];for(let t=e.length-1;0<=t;t--){var i=e[t],r=Ft(Math.round(i.ath||0));let a=Math.round(r-this.north);a<-180?a+=360:180<a&&(a-=360),n.some(({max:e,min:t})=>a>=t&&a<=e)&&(o.push(i),e.splice(t,1))}if(o.length){var a=o.reduce((e,t)=>{var{poi:n,distance:o}=e,i=It(t.ath,90,t.ath,t.atv);return!n||i<o?{poi:t,distance:i}:e},{poi:null,distance:0}).poi;if(a){let e;this.movingPoiByDirection[t]=a,this.navPois||(this.navPois={}),this.canShowMovingHotspotLabel(a)&&({label:e}=a),this.navPois[t]=new Zy({krpano:this.krpano,signals:this.signals,direction:t,north:this.north,label:e,sceneCode:this.code})}}}})}},this.toggleNavigationHotspots=(e=!0,t=!1)=>{this.showNavigationHotspots&&this.navPois&&Object.keys(this.navPois).length&&(Object.values(this.navPois).forEach(n=>{n.toggle(e,t)}),e)&&this.trackViewNavigationHotspots()},this.moveWithNavigationPoi=e=>{(e=this.movingPoiByDirection[e])&&e.dispatchClick()},this.moveToClosestPoi=()=>{this.floorPoi||this.updateNearestMovingHotspotToMouse(),this.nearestMovingPoi&&this.canMoveToNearestPOI()&&this.nearestMovingPoi.dispatchClick()},this.toggleFloorPoiVisibility=e=>{this.floorPoi&&this.floorPoi.toggleAllowVisibility(e)},this.getHotspotDistanceFromView=e=>{e=this.krpano.get(`hotspot[${e.code}]`);var t,n,o=this.krpano.getView();return o&&e?(({hlookat:o,vlookat:t}=o),({ath:e,atv:n}=e),$t(o,t,e,n)):null},this.showIfHotspotInRange=e=>{var t=this.krpano.getView().hfov,n=this.getHotspotDistanceFromView(e);return n?((n=n.h<this.getHorizontalDisplayDeg(e,t))?e.show(!0):e.hide(!0),n):(e.hide(!0),!1)},this.clearTimeout=()=>{this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},this.getHorizontalDisplayDeg=(e,t)=>t/3/2,this.showHotspotsInRange=()=>{this.allPoiVisible&&this.allLabelVisible&&this.pois.length&&this.pois.forEach(e=>{e.visible&&(e.type===te.ITEM_INFO&&this.showIfHotspotInRange(e),e.type===te.PROMOTION&&this.showIfHotspotInRange(e),e.type===te.GALLERY)&&this.showIfHotspotInRange(e)})},this.isMovingHotspotWithNamePlate=e=>e.type===te.MOVING&&e.displayType===Ye,this.updateNearestMovingHotspotToMouse=()=>{if(this.nearestMovingPoi=null,this.floorMovingPois&&this.floorMovingPois.length&&!this.movingHotspotsHidden){var[e]=this.floorMovingPois,{x:t,y:n}=this.krpano.get("mouse");let{x:o,y:i}=this.krpano.screentosphere(t,n);t=this.movingPoisMap[e],n=It(o,i,t.ath,t.atv),this.isMovingHotspotWithNamePlate(t)||t.updateAlpha(.2),1===this.floorMovingPois.length&&n<1e3?(this.nearestMovingPoi=t,this.isFloorPoiVisible()&&t.revertAlpha()):(e=this.floorMovingPois.reduce((e,t)=>{var{poi:n,distance:r}=e;return(t=this.movingPoisMap[t]).code===n.code?e:(this.isMovingHotspotWithNamePlate(t)||t.updateAlpha(.2),(n=It(o,i,t.ath,t.atv))<r?{poi:t,distance:n}:e)},{poi:t,distance:n})).distance<1e3&&(this.nearestMovingPoi=e.poi,this.isFloorPoiVisible())&&this.nearestMovingPoi.revertAlpha()}},this.trackViewNavigationHotspots=()=>{if(this.navPois&&Object.keys(this.navPois).length){let s=1;(e=>e.get("device.tablet"))(this.krpano)?s=.75:jt(this.krpano)&&(s=.5);var e=250/s,t=500/s,n=this.krpano.getView(),o=Ft(Math.round(n.vlookat))+25,i=n.hlookat,r=Ft(Math.round(i-103)),a=Ft(Math.round(i+103));let l=[];a<r?r<0?(l.push({min:r,max:0}),l.push({min:0,max:180}),l.push({min:-180,max:a})):0<a?(l.push({min:r,max:180}),l.push({min:-180,max:0}),l.push({min:0,max:a})):(l.push({min:r,max:180}),l.push({min:-180,max:a})):l.push({min:r,max:a}),r=Ft(Math.round(i-30)),a=Ft(Math.round(i+30));let c=[];a<r?(c.push({min:r,max:180}),c.push({min:-180,max:a})):c.push({min:r,max:a}),i=Math.max(22,o),this.krpano.set("sphere_x",n.hlookat),this.krpano.set("sphere_y",i),this.krpano.set("sphere_z",1),this.krpano.call("spheretospace('sphere_x', 'sphere_y', 'sphere_z', 'space_x', 'space_y', 'space_z')"),r=this.krpano.get("space_x"),a=this.krpano.get("space_y"),o=this.krpano.get("space_z");let u=t-(90-i)/68*(t-e),h=r*u/a,d=o*u/a;Object.values(Oe).forEach(e=>{var t,n;this.navPois[e]&&(t=!!(n=(e=>{switch(e){case Oe.NORTH:return[0];case Oe.NORTH_EAST:return[45];case Oe.EAST:return[90];case Oe.SOUTH_EAST:return[135];case Oe.NORTH_WEST:return[-45];case Oe.WEST:return[-90];case Oe.SOUTH_WEST:return[-135];case Oe.SOUTH:return[180,-180]}return null})(e))&&n.some(e=>{let t=Ft(Math.round(e+this.north));return l.some(({min:e,max:n})=>t>=e&&t<=n)}),n=!!n&&n.some(e=>{let t=Ft(Math.round(e+this.north));return c.some(({min:e,max:n})=>t>=e&&t<=n)}),this.navPois[e].toggle(t,!0),this.navPois[e].fade(!n),this.navPois[e].trackView(h,u,d))})}},this.canShowMovingHotspotLabel=e=>this.showNavigationHotspotLabels&&(e.previewType===we||e.previewType===xe)&&!!e.label,this.loadNavigationHotspots=()=>{if(this.showNavigationHotspots&&this.navPois&&Object.keys(this.navPois).length){let e=[];Object.keys(this.navPois).forEach(t=>{var n=new Promise(e=>{this.navPois[t].create(()=>{e()})});e.push(n)}),Promise.all(e).then(()=>{this.trackViewNavigationHotspots()}),this.setOnViewChangeEvents(this.trackViewNavigationHotspots)}},this.isFloorPoiVisible=()=>this.floorPoi&&this.floorPoi.getVisible(),this.canMoveToNearestPOI=()=>{var e;return this.isMobileDevice?(e=this.krpano.get("mouse"),0<=(e=this.krpano.screentosphere(e.x,e.y).y)):this.isFloorPoiVisible()},this.props=e,this.id=""+e.id,this.name=e.name,this.code=e.code,this.krpano=e.krpano,this.signals=e.signals,this.pois=[],this.sourceFolder=e.sourceFolder,this.hlookat=e.hlookat||0,this.vlookat=e.vlookat||0,this.orderIndex=e.orderIndex||0,this.allPoiVisible=void 0===e.allPoiVisible||e.allPoiVisible,this.allLabelVisible=!0,this.labelInvisibleArray=[],this.singleClick=e.singleClick,this.viewLimitConfig={coverMode:e.coverMode||ve,hlookat:e.hlookat,vlookat:e.vlookat,vlookatmax:e.vlookatmax,vlookatmin:e.vlookatmin,hlookatmax:e.hlookatmax,hlookatmin:e.hlookatmin},this.north=e.northX||0,this.blend=e.blend||ce.DEFAULT,this.showNavigationHotspots=e.showNavigationHotspots||!1,this.showNavigationWithoutMovingHotspot=e.showNavigationWithoutMovingHotspot||!1,this.showNavigationHotspotLabels=e.showNavigationHotspotLabels||!1,this.movingHotspotsHidden=this.showNavigationHotspots&&this.showNavigationWithoutMovingHotspot,this.category=e.categoryName||"",e.category&&(this.categoryCode=e.category.code||""),this.isMobileDevice=Pt(this.krpano),this.vars=null,this.flags=null,this.tourName=e.tourName,this.tourCode=e.tourCode,this.movingPoiByDirection={},this.floorMovingPois=[],this.movingPoisMap={},e.pois&&(this.pois=[],e.pois.forEach(t=>{let n;var o=Object.assign(Object.assign({},t),{krpano:e.krpano,signals:e.signals,tourUrl:e.tourUrl,bgPoi:this.bgPoi,theme:e.theme,metadata:e.metadata,sceneCode:e.code,tourName:e.tourName,tourCode:e.tourCode});switch(t.type){case te.MOVING:n=new e_(o);var i=mt();(this.movingPoisMap[i]=n).precision||this.floorMovingPois.push(i);break;case te.INFO:n=new Fy(o);break;case te.SOUND:n=new Wy(o);break;case te.POPUP:n=new i_(o);break;case te.PHOTO:n=new n_(o);break;case te.VIDEO:n=new Gy(o);break;case te.ITEM_INFO:(i=o).autoShow=this.autoShowType,n=new Vy(i);break;case te.POLYGON:n=new o_(i=o);break;case te.LENSFLARE:n=new Jy(i=o);break;case te.NADIR_LOGO:(i=o).zenith?this.zenithLogo=new t_(i):this.nadirLogo=new t_(i);break;case te.PROMOTION:n=new r_(i=o);break;case te.GALLERY:n=new Qy(i=o);break;case te.TEXTURE:n=new a_(i=o)}this.movingHotspotsHidden&&t.type===te.MOVING&&!n.precision||n&&this.pois.push(n)})),this.bgPoi=new Xy({krpano:this.krpano}),this.buildNavigationHotspots(),this.isMobileDevice||(this.floorPoi=new qy({krpano:this.krpano,signals:this.signals,onPointerMove:this.updateNearestMovingHotspotToMouse})),this.renderPreview=this.renderPreview.bind(this),this.destroyPreview=this.destroyPreview.bind(this),this.setOnViewChangeEvents=this.setOnViewChangeEvents.bind(this),this.getPoiByCode=this.getPoiByCode.bind(this),this.loadNadirLogos=this.loadNadirLogos.bind(this),this.isVisiblePoi=this.isVisiblePoi.bind(this),this.loadPois=this.loadPois.bind(this),this.togglePoisVisibility=this.togglePoisVisibility.bind(this),this.toggleLabelVisibility=this.toggleLabelVisibility.bind(this),this.autoShowHotspots=this.autoShowHotspots.bind(this)}renderPreview(e,t,n=!0){n&&this.isMobileDevice||embedpano({xml:this.sourceFolder.url+"/pano.xml",target:e,id:"scene_preview_"+this.code,onready:n=>{this.krpanoPreview=n,this.previewHtmlElementId=e,t&&t(),n.call("\n delayedcall(0,\n set(view.fisheye, 1);\n set(view.stereographic, true);\n set(view.fov, 155);\n set(view.fovtype, MFOV);\n set(view.fovmax, 150);\n set(view.hlookat, 0);\n set(view.vlookat, 90);\n set(view.architectural, 0);\n );\n "),n.call("\n delayedcall(0.2,\n tween(view.hlookat, 0, 1.0, easeInOutQuad);\n tween(view.vlookat, 0, 1.0, easeInOutQuad);\n tween(view.fov, 100, 1.0, easeInOutQuad);\n tween(view.fisheye, 0.0, 1.0, easeInOutQuad);\n set(view.fovmax, 180);\n tween(view.pannini, 1.0, distance(2.0,0.8));\n\n delayedcall(2,\n tween(view.hlookat, 10000000, distance(100,10));\n tween(view.vlookat, 0, 5);\n );\n )\n ")},onerror:console.error})}destroyPreview(){if(!this.isMobileDevice)try{removepano("scene_preview_"+this.code)}catch(e){console.warn("Destroy scene preview error")}}setOnViewChangeEvents(e,t=!1){this.signals.updateViewChangedEvents.dispatch({handler:e,skipCheck:t})}getPoiByCode(e){return this.pois.find(t=>t.code===e)||null}loadNadirLogos(e){this.viewLimitConfig.coverMode===ye&&(this.nadirLogo&&this.nadirLogo.create(e),this.zenithLogo&&this.zenithLogo.create(e),this.zenithLogo||this.nadirLogo)&&this.setOnViewChangeEvents(()=>{var e,t=this.krpano.getView().hlookat;this.nadirLogo&&(e=this.nadirLogo.code,this.krpano.call(`if(hotspot[${e}].rotatewithview,set(hotspot[${e}].rotate,${t}));`)),this.zenithLogo&&(e=this.zenithLogo.code,this.krpano.call(`if(hotspot[${e}].rotatewithview,set(hotspot[${e}].rotate,${-t}));`))})}isVisiblePoi(e){if(e){let t=bt(e);return this.allLabelVisible&&!this.labelInvisibleArray.some(e=>e===t)}return this.allLabelVisible}loadPois(e){this.bgPoi.create(),this.loadNadirLogos(e),this.pois.forEach(t=>{t.create(n=>{t.isLabel()&&t.toggleVisibility(this.isVisiblePoi(t),!0),e&&e(n)})}),this.setOnViewChangeEvents(this.debounceAutoShowHotspot),this.autoShowHotspots(),this.floorPoi&&this.singleClick===Ee&&this.floorPoi.create(),this.loadNavigationHotspots()}togglePoisVisibility(e){this.allPoiVisible=e,(this.pois||[]).forEach(t=>{t.isHideable()&&(t.isLabel()?t.toggleVisibility(this.isVisiblePoi(t)&&this.allPoiVisible,!0):t.toggleVisibility(e))})}toggleLabelVisibility(e){if(this.labelInvisibleArray=e||[],null!=e&&e.length){let t=[],n=[];this.pois.forEach(o=>{o.isLabel()&&(e.includes(bt(o))?n:t).push(o)}),t.forEach(e=>{e.toggleVisibility(!0,!0)}),n.forEach(e=>{e.toggleVisibility(!1,!0)})}}autoShowHotspots(){this.autoShowType===Te?this.showHotspotsInRange():this.autoShowType===Pe&&this.showHotspotNearestToCenter()}}class l_{constructor(e){this.audioObject=null,this.trackingSubtitleInterval=null,this.soundEnabled=!0,this.play=e=>{this.playAudio(e)},this.stop=()=>{this.stopAudio()},this.trackKrpanoSoundCueChange=()=>{if(this.subtitle&&this.subtitle.data){let n=this.krpano.get(`sound[${this.soundId}]`);var e,t;n&&(t=this.subtitle.data.cues)&&t.length&&(e=t.findIndex(e=>n.position<=e.endTime&&n.position>=e.startTime),t=t[e],this.onSubtitleTextChange)&&this.onSubtitleTextChange(t?t.text:"")}},this.playKrpanoSound=e=>{this.krpano.call(`streamsound(${this.soundId}, ${this.file.url},false,1,);`);var t=this.krpano.get(`sound[${this.soundId}]`);t.oncomplete=()=>{this.clearTrackingInterval(),e()},this.subtitle&&(t.onplay=()=>{this.subtitle&&(this.trackingSubtitleInterval=window.setInterval(()=>{this.trackKrpanoSoundCueChange()},500),this.trackKrpanoSoundCueChange())},t.onpause=this.clearTrackingInterval,t.onstop=this.clearTrackingInterval)},this.stopKrpanoSound=()=>{this.krpano.get(`sound[${this.soundId}]`)&&(this.krpano.call(`stopsound(${this.soundId})`),this.destroyKrpanoSound())},this.destroyKrpanoSound=()=>{this.krpano.get(`sound[${this.soundId}]`)&&this.krpano.call(`destroysound(${this.soundId})`)},this.trackAudioCueChange=()=>{if(this.subtitle&&this.audioObject&&this.subtitle.data&&((t=this.subtitle.data.cues)&&t.length)){let n=this.audioObject.seek();var e=t.findIndex(e=>n<=e.endTime&&n>=e.startTime),t=t[e];this.onSubtitleTextChange&&this.onSubtitleTextChange(t?t.text:"")}},this.playAudio=e=>{if(this.audioObject)this.audioObject.playing()||this.audioObject.play();else{var t=!this.soundEnabled||this.muted;let n=this.background;(t=new Uy.Howl({src:[""+this.file.url],loop:n,volume:1,html5:!0,mute:t,onend:()=>{n||(this.clearTrackingInterval(),this.unloadAudio(),e())},onplay:()=>{this.subtitle&&!this.background&&(this.trackingSubtitleInterval=window.setInterval(()=>this.trackAudioCueChange(),500),this.trackAudioCueChange())},onpause:this.clearTrackingInterval,onstop:()=>{this.clearTrackingInterval(),n&&this.unloadAudio()}})).play(),this.audioObject=t}},this.stopAudio=()=>{this.audioObject&&this.audioObject.stop(),this.unloadAudio()},this.unloadAudio=()=>{this.audioObject&&(this.audioObject.unload(),this.audioObject=null)},this.clearTrackingInterval=()=>{null!==this.trackingSubtitleInterval&&(window.clearInterval(this.trackingSubtitleInterval),this.trackingSubtitleInterval=null)},this.props=e,this.krpano=e.krpano,this.soundId=e.soundId,this.subtitle=e.subtitle,this.file=e.sound,this.soundEnabled=!!e.soundEnabled,this.background=e.background||!1,this.onSubtitleTextChange=e.onSubtitleTextChange,this.muted=!0,this.setSoundState=this.setSoundState.bind(this),this.mute=this.mute.bind(this)}mute(e,t){var n;this.muted=e,null!=(n=this.audioObject)&&n.mute(e,t)}setSoundState(e){e=!(this.soundEnabled=e)||this.muted,this.audioObject&&this.audioObject.mute(e)}}class c_{constructor(e){this.type="",this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.id=e.id||-1,this.orderIndex=e.orderIndex||0,this.execute=this.execute.bind(this),this.stop=this.stop.bind(this),this.getDuration=this.getDuration.bind(this),this.run=this.run.bind(this)}run(){return St(this,arguments,void 0,function*({}={language:"vi"}){})}execute(){return St(this,arguments,void 0,function*({language:e,duration:t}={language:"vi"}){this.runningPromise=(e=>{let t;var n=new Promise((n,o)=>{t=o,e.then(e=>{n(e)})});return n.abort=e=>{t("aborted: "+e)},n})(this.run({language:e,duration:t})),yield this.runningPromise})}stop(){return St(this,void 0,void 0,function*(){this.runningPromise&&(this.runningPromise.abort("action "+this.type),this.runningPromise=null)})}getDuration(){return St(this,arguments,void 0,function*({}={language:"vi"}){return 0})}abortPromise(e){e&&e.abort()}standby(e,t){return St(this,void 0,void 0,function*(){t&&(yield vt(t))})}}class u_ extends c_{constructor(e){super(e),this.soundDuration=null,this.soundEnabled=!0,this.addMuteSoundSignal=()=>{var e;this.tour.signals.muteSound.add(null==(e=this.soundObject)?void 0:e.mute)},this.volume=_t(e.volume)?e.volume:50,this.soundEnabled=!!e.soundEnabled,this.setSoundState=this.setSoundState.bind(this),this.intervalSubtitleTextChangedCallback=this.intervalSubtitleTextChangedCallback.bind(this),this.playSound=this.playSound.bind(this),this.stopSound=this.stopSound.bind(this),this.getSoundDuration=this.getSoundDuration.bind(this),this.preload=this.preload.bind(this),this.props.sound&&(this.sound=Object.assign(Object.assign({soundId:mt()},this.props.sound),{background:this.props.background,soundEnabled:this.soundEnabled,onSubtitleTextChange:this.intervalSubtitleTextChangedCallback}),this.sound.subtitle?(e=>St(void 0,void 0,void 0,function*(){return new Promise(t=>{let n=new Qi.Parser(window,Qi.StringDecoder()),o=[],i=[];vi.get(e).then(e=>{e=e.data,n.oncue=e=>{o.push(e)},n.onregion=e=>{i.push(e)},n.parse(e),n.flush(),t({cues:o,regions:i})})})}))(this.sound.subtitle.url).then(e=>{this.sound.subtitle=Object.assign(Object.assign({},this.sound.subtitle),{data:e}),this.soundObject=new l_(this.sound),this.addMuteSoundSignal()}):(this.soundObject=new l_(this.sound),this.addMuteSoundSignal()))}playSound(e){this.soundObject?(this.tour.signals.playingSoundActionExecuted.dispatch(),this.soundObject.play(()=>{this.tour.signals.playingSoundActionStopped.dispatch(),e&&e()})):(this.tour.signals.playingSoundActionStopped.dispatch(),e&&e())}stopSound(){this.soundObject&&this.soundObject.stop(),this.tour.signals.playingSoundActionStopped.dispatch()}getSoundDuration(){return St(this,void 0,void 0,function*(){let e=this.soundDuration;return _t(this.soundDuration)||(this.sound&&this.sound.sound&&this.sound.sound.url?this.soundDuration=yield(t=this.sound.sound.url,St(void 0,void 0,void 0,function*(){return new Promise(e=>{let n=new Audio;n.onloadedmetadata=()=>{e(1e3*(n.duration||0))},n.onerror=()=>{e(0)},n.src=t})})):this.soundDuration=0,e=this.soundDuration),e;var t})}setSoundState(e){e=e.isEnabled,this.soundEnabled=e,this.soundObject&&this.soundObject.setSoundState(e)}preload(e){return St(this,void 0,void 0,function*(){})}intervalSubtitleTextChangedCallback(e){this.tour.signals.setSubtitleText.dispatch(e)}}class h_ extends u_{constructor(e){super(e),this.speed=30,this.playHotspotSound=!1,this.type=ue.LOOK_AT,this.ath=e.position.ath,this.atv=e.position.atv,this.fov=e.position.fov,this.delayZoom=e.delayZoom,this.speed=e.speed||30,this.poiCode=e.poiCode,this.playHotspotSound=!(!this.poiCode||!e.playHotspotSound),this.showDetail=e.showDetail||!1,this.viewHotspotDuration=e.viewHotspotDuration||0,this.showDetailDuration=e.showDetailDuration||1e3,this.zoomScale=e.zoomScale||1,this.abortPromise=this.abortPromise.bind(this),this.executeShowDetail=this.executeShowDetail.bind(this),this.executePlaySound=this.executePlaySound.bind(this),this.canPlaySound=this.canPlaySound.bind(this)}executeZoom(){return St(this,void 0,void 0,function*(){var e,t,n=this.krpano.get("view"),{fov:o,fovmin:i,fovmax:r}=n,a=o/this.zoomScale;o&&o!==a&&(e=Math.abs(a-o)/this.speed,t=yt(e)+200,this.cachingFov={fov:o,fovmax:r,fovmin:i},n.fovmin=0,n.fovmax=179,this.krpano.call(`zoomto(${a}, tween(linear, ${e}));`),this.zoomDelayPromise=vt(t),yield this.zoomDelayPromise,this.zoomDelayPromise=null,this.delayZoom&&(this.delayZoomPromise=vt(this.delayZoom),yield this.delayZoomPromise,this.delayZoomPromise=null),this.krpano.call(`zoomto(${this.cachingFov.fov}, tween(linear, ${e}));`),this.revertZoomDelayPromise=vt(t),yield this.revertZoomDelayPromise,this.revertZoomDelayPromise=null,n.fovmin=this.cachingFov.fovmin,n.fovmax=this.cachingFov.fovmax,this.cachingFov=null)})}run(){return St(this,arguments,void 0,function*({duration:e}={language:"vi"}){let t=this.ath,n=this.atv;this.poiCode&&(i=this.tour.getPoiByCodeFromScenes(this.poiCode))&&i.type===te.MOVING&&i.alwaysOnFloor&&(({tx:i,ty:r,tz:o}=i),({ath:t,atv:n}=this.krpano.spacetosphere(i,r,o)));var o=((i=e&&0!==e)||(this.krpano.call(`getlooktodistance(distance_${this.id},${t},${n});`),r=this.krpano.get("distance_"+this.id),e=Math.abs(r/this.speed)),this.krpano.get("view")),i=o.fov,r=(this.krpano.call(`lookto(${t},${n},${i},tween(linear, ${e}),true,true);`),1e3*e);this.delayLookToPromise=vt(r),yield this.delayLookToPromise,this.delayLookToPromise=null,this.showDetailDelayPromise=vt(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,yield this.executeZoom(),yield Promise.all([this.executeShowDetail(),this.executePlaySound()])})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return St(this,void 0,void 0,function*(){yield e.stop.call(this),this.stopSound(),this.playSoundDelayPromise=null,this.abortPromise(this.delayLookToPromise),this.abortPromise(this.zoomDelayPromise),this.abortPromise(this.revertZoomDelayPromise),this.abortPromise(this.delayZoomPromise),this.abortPromise(this.showDetailDelayPromise),this.abortPromise(this.closeDetailDelayPromise),this.abortPromise(this.afterCloseDelayPromise),this.abortPromise(this.afterShowDelayPromise),yield this.krpano.call("stoplookto();")})}getDuration(){return St(this,void 0,void 0,function*(){var e=1e3*Math.abs(90/this.speed)+200;let t=0,n=(this.tour.getPoiByCode(this.poiCode)&&(t=this.showDetail?this.viewHotspotDuration+this.showDetailDuration:this.viewHotspotDuration),0);return this.canPlaySound()&&(n=(yield this.getSoundDuration())||0),e+Math.max(t,n)})}canPlaySound(){return this.playHotspotSound&&this.sound}preload(e){return St(this,void 0,void 0,function*(){this.canPlaySound()&&(this.executePlaySound(),yield gt(50),yield this.stop())})}executeShowDetail(){return St(this,void 0,void 0,function*(){var e;this.showDetail&&this.poiCode&&(e=this.tour.getPoiByCode(this.poiCode))&&(this.tour.signals.poiClick.dispatch(e),this.afterShowDelayPromise=vt(500),yield this.afterShowDelayPromise,this.afterShowDelayPromise=null,this.closeDetailDelayPromise=vt(this.showDetailDuration),yield this.closeDetailDelayPromise,this.closeDetailDelayPromise=null,this.tour.signals.poiClick.dispatch(null),this.afterCloseDelayPromise=vt(500),yield this.afterCloseDelayPromise,this.afterCloseDelayPromise=null)})}executePlaySound(){return St(this,void 0,void 0,function*(){this.canPlaySound()&&(this.soundObject&&(this.playSoundDelayPromise=new Promise(e=>{this.playSound(()=>{e(1)})})),this.playSoundDelayPromise)&&(yield this.playSoundDelayPromise,this.playSoundDelayPromise=null)})}}class d_ extends c_{constructor(e){super(e),this.type=ue.MOVE_SCENE,this.toScene=e.toScene,this.hlookat=e.hlookat,this.vlookat=e.vlookat,this.blend=e.blend||"OPENBLEND(1.0, 0.0, 0.6, 1.0, easeOutQuad)"}run(){return St(this,arguments,void 0,function*({}={language:"vi"}){if(this.toScene.code!==this.tour.getActiveScene().code){var e=!this.hlookat&&0!==this.hlookat||!this.vlookat&&0!==this.vlookat?null:{hChanged:this.hlookat,vChanged:this.vlookat,ignoreNorth:!0};this.tour.loadScene(this.toScene.code,void 0,e);let t=this.toScene.blend||ce.DEFAULT;e=Object.keys(ce).find(e=>ce[e]===t),e=le[e],this.delayPromise=vt(yt(e)),yield this.delayPromise,this.delayPromise=null}})}getDuration(){return St(this,void 0,void 0,function*(){return this.toScene.code!==this.tour.getActiveScene().code?500:0})}}class p_ extends c_{constructor(e){super(e),this.functionButtonCode="",this.type=ue.OPEN_FUNCTION_BUTTON,this.viewHotspotDuration=e.viewHotspotDuration||0,e.functionButtonCode&&(this.functionButtonCode=e.functionButtonCode),this.abortPromise=this.abortPromise.bind(this),this.executeShowDetail=this.executeShowDetail.bind(this),this.executePlaySound=this.executePlaySound.bind(this)}abortPromise(e){e&&e.abort()}run(){return St(this,arguments,void 0,function*({}={language:"vi"}){this.functionButtonCode&&(this.tour.signals.openFunctionButton.dispatch(this.functionButtonCode),this.showDetailDelayPromise=vt(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,this.tour.signals.openFunctionButton.dispatch(null)),yield Promise.all([this.executeShowDetail(),this.executePlaySound()])})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return St(this,void 0,void 0,function*(){yield e.stop.call(this)})}getDuration(){return St(this,void 0,void 0,function*(){return this.viewHotspotDuration||0})}executeShowDetail(){return St(this,void 0,void 0,function*(){})}executePlaySound(){return St(this,void 0,void 0,function*(){})}}class f_ extends c_{constructor(e){super(e),this.type=ue.OPEN_MINIMAP,this.viewHotspotDuration=e.viewHotspotDuration||0,this.abortPromise=this.abortPromise.bind(this)}abortPromise(e){e&&e.abort()}run(){return St(this,arguments,void 0,function*({}={language:"vi"}){this.tour.signals.openMinimap.dispatch(!0),this.showDetailDelayPromise=vt(this.viewHotspotDuration),yield this.showDetailDelayPromise,this.showDetailDelayPromise=null,this.tour.signals.openMinimap.dispatch(!1)})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return St(this,void 0,void 0,function*(){yield e.stop.call(this)})}getDuration(){return St(this,void 0,void 0,function*(){return this.viewHotspotDuration||0})}}class m_ extends u_{constructor(e){super(e),this.background=!1,this.duration=null,this.type=ue.PLAY_SOUND,this.language=e.language||"vi",this.background=this.props.background||!1}run(){return St(this,arguments,void 0,function*({}={language:F.VI}){this.soundObject&&(this.delayPromise=new Promise(e=>{this.playSound(()=>{e(1)})})),this.delayPromise&&(yield this.delayPromise,this.delayPromise=null)})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return St(this,void 0,void 0,function*(){yield e.stop.call(this),yield gt(500),this.delayPromise&&(this.delayPromise=null),this.stopSound()})}getDuration(){return St(this,arguments,void 0,function*({}={language:"vi"}){return!this.background&&(this.duration||(this.duration=yield this.getSoundDuration(),this.duration))||0})}preload(e){return St(this,void 0,void 0,function*(){this.execute({language:e}),yield gt(50),yield this.stop()})}}class g_ extends c_{constructor(e){super(e),this.type=ue.ROTATE,this.angle=e.angle||0,this.speed=e.speed||15,this.delayPromise=null}run(){return St(this,arguments,void 0,function*({duration:e}={language:"vi"}){var t=e&&0!==e,{hlookat:n,fov:o}=this.krpano.get("view"),n=n+this.angle;let i=this.speed;t&&(i=this.angle/e),this.krpano.call(`lookto(${n},0, ${o}, linear(${i}),false,true);`),t=this.angle/i*1e3,this.delayPromise=vt(Math.abs(t)+2e3),yield this.delayPromise,this.delayPromise=null})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return St(this,void 0,void 0,function*(){yield e.stop.call(this),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null),yield this.krpano.call("stoplookto();")})}getDuration(){return St(this,void 0,void 0,function*(){var e=this.angle/this.speed*1e3;return Math.abs(e)+2e3})}}class v_ extends c_{constructor(e){super(e),this.type=ue.SLEEP,this.sleepTime=e.sleepTime||0,this.delayPromise=null}run(){return St(this,arguments,void 0,function*({}={language:"vi"}){this.delayPromise=vt(this.sleepTime),yield this.delayPromise,this.delayPromise=null})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return St(this,void 0,void 0,function*(){yield e.stop.call(this),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null)})}getDuration(){return St(this,void 0,void 0,function*(){return this.sleepTime})}}class b_ extends c_{constructor(e){var t;super(e),this.type=ue.SWITCH_SCENE,this.sceneCode=(null==(t=e.toScene)?void 0:t.code)||"",this.sceneGroupCode=e.sceneGroupCode||"",this.keep=e.keepSwitchScene||!1,this.preSwitchDuration=e.preSwitchSceneDuration||0,this.duration=e.switchSceneDuration||0}run(){return St(this,arguments,void 0,function*({}={language:"vi"}){yield this.standby(this.preSwitchPromise,this.preSwitchDuration),this.tour.switchScene(this.sceneCode),yield this.standby(this.switchScenePromise,700),!this.keep&&this.stepSceneCode&&(yield this.standby(this.postSwitchPromise,this.duration),this.tour.switchScene(this.stepSceneCode),yield this.standby(this.switchBackPromise,700))})}stop(){let e=Object.create(null,{stop:{get:()=>super.stop}});return St(this,void 0,void 0,function*(){yield e.stop.call(this),this.abortPromise(this.preSwitchPromise),this.abortPromise(this.switchScenePromise),this.abortPromise(this.postSwitchPromise),this.abortPromise(this.switchBackPromise)})}getDuration(){return St(this,void 0,void 0,function*(){return 0})}}class y_{constructor(e){var t;this.hasSoundActions=[],this.childrenPlayer=null,this.movingAction=null,this.duration=0,this.showProgressBar=!1,this.sound=null,this.playing=!1,this.movingSceneAction=null,this.soundEnabled=!0,this.delayPromise=null,this.skipSoundAction=!1,this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.orderIndex=e.orderIndex||0,this.showProgressBar=e.showProgressBar||!1,this.scene=e.scene,this.soundEnabled=e.soundEnabled,this.language=e.language,this.skipSoundAction=e.skipSoundAction||!1,this.hlookat=e.hlookat,this.vlookat=e.vlookat,e.sound&&(t={type:ue.PLAY_SOUND,volume:50,sound:e.sound,sleepTime:0,krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language},this.sound={data:e.sound,soundObject:new m_(t)},this.skipSoundAction=!0),this.duration=e.duration,this.children=(e.children||[]).map(t=>((t=new y_(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,showProgressBar:this.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,itemInfoPois:this.props.itemInfoPois,promotionPois:this.props.promotionPois,tourSignals:this.props.tourSignals,parent:this,playHotspotSound:e.playHotspotSound,skipSoundAction:this.skipSoundAction}))).hasSoundActions&&!this.hasSoundActions&&(this.hasSoundActions=t.hasSoundActions),t.movingAction&&!this.movingAction&&(this.movingAction=t.movingAction),t)),null!=(t=this.children)&&t.length&&(this.children.sort((e,t)=>e.orderIndex-t.orderIndex),this.childrenPlayer={playingStep:null,playing:!1}),this.actions=e.actions?(e.actions||[]).map(e=>{switch(e.type){case ue.MOVE_SCENE:var t=new d_(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));return this.movingAction||(this.movingAction=t),t;case ue.ROTATE:return new g_(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case ue.PLAY_SOUND:t=new m_(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language}));return this.hasSoundActions.push(t),t;case ue.LOOK_AT:return(t=new h_(Object.assign(Object.assign({},e),{sound:this.skipSoundAction?void 0:e.sound,krpano:this.krpano,tour:this.tour,soundEnabled:this.soundEnabled,language:this.language}))).canPlaySound()&&!this.skipSoundAction&&this.hasSoundActions.push(t),t;case ue.SLEEP:return new v_(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case ue.OPEN_FUNCTION_BUTTON:return new p_(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));case ue.SWITCH_SCENE:return new b_(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour,stepSceneCode:null==(t=this.scene)?void 0:t.code}));case ue.OPEN_MINIMAP:return new f_(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}));default:return new c_(Object.assign(Object.assign({},e),{krpano:this.krpano,tour:this.tour}))}}):[],this.execute=this.execute.bind(this),this.stop=this.stop.bind(this),this.preloadSoundStep=this.preloadSoundStep.bind(this),this.setSoundState=this.setSoundState.bind(this),this.playStepSound=this.playStepSound.bind(this)}preloadSoundStep(e){return St(this,arguments,void 0,function*({language:e="vi"}){var t;null!=(t=this.sound)&&t.soundObject?(this.sound.soundObject.execute({language:e}),yield gt(50),yield this.sound.soundObject.stop()):this.hasSoundActions.length&&(yield Promise.all(this.hasSoundActions.map(t=>t.preload(e))))})}getDuration(){return St(this,arguments,void 0,function*({language:e,checkDuration:t}={language:"vi",checkDuration:!1}){if(!t)return 0;if(this.duration)return this.duration;let n=0,o=(null!=(t=this.actions)&&t.length&&(t=this.actions.map(t=>t.getDuration({language:e})),t=yield Promise.all(t),n=Math.max(...t)),0);return null!=(t=this.children)&&t.length&&(t=this.children.map(t=>t.getDuration({language:e,checkDuration:!0})),o=(t=yield Promise.all(t)).reduce((e,t)=>e+t,0)),Math.max(n,o)})}setSoundState(e){let t,{isEnabled:n,language:o=F.VI}=e;this.soundEnabled=n,null!=(t=this.sound)&&t.soundObject?this.sound.soundObject.setSoundState({isEnabled:n,language:o}):this.children&&this.children.length?this.children.forEach(e=>{e.hasSoundActions&&e.setSoundState({isEnabled:n,language:o})}):this.actions&&this.actions.length&&this.actions.forEach(e=>{_t(e.setSoundState)&&e.setSoundState({isEnabled:n,language:o})})}playStepSound(){var e;null!=(e=this.sound)&&e.soundObject&&(this.sound.soundPromise=this.sound.soundObject.execute({language:this.language}))}stop(){return St(this,void 0,void 0,function*(){var e;if(this.rejector&&(this.rejector("aborted "+this.props.name),this.rejector=null),this.playing=!1,this.movingSceneAction&&(this.movingSceneAction.stop(),this.movingSceneAction=null),this.delayPromise&&(this.delayPromise.abort(),this.delayPromise=null),null!=(e=this.sound)&&e.soundObject&&(this.sound.soundObject.stop(),this.sound.soundPromise=null),this.actions&&this.actions.length){let e=[];this.actions.forEach(t=>e.push(t.stop())),yield Promise.all(e)}this.childrenPlayer&&null!=(e=this.children)&&e.length&&(this.childrenPlayer.playing=!1,this.childrenPlayer.playingStep)&&(yield this.childrenPlayer.playingStep.stop(),this.childrenPlayer.playingStep=null)})}execute(e){return St(this,arguments,void 0,function*({language:e="vi",skipActionSound:t=!1,checkDuration:n=!1}){return new Promise((o,i)=>St(this,void 0,void 0,function*(){this.rejector=i,this.playing=!0;var r=(new Date).getTime(),a=this.children&&this.children.length,s=n;if(a){if(n=!(null==(a=this.sound)||!a.soundObject),this.childrenPlayer){this.childrenPlayer.playing=!0;for(let t=0;t<this.children.length;t++){if(!this.childrenPlayer.playing||!this.playing)return void(this.childrenPlayer.playing=!1);var l=this.children[t],c=(this.childrenPlayer.playingStep=l,this.tour.getTourScenario());c&&c.fireEvent("on-step-change"),yield l.execute({language:e,skipActionSound:n,checkDuration:s}),0===t&&this.playStepSound()}}null!=(a=this.sound)&&a.soundPromise&&(yield this.sound.soundPromise,this.sound.soundPromise=null)}else{let n=this.duration;if(this.scene&&(this.movingSceneAction=new d_({type:ue.MOVE_SCENE,toScene:this.scene,krpano:this.krpano,tour:this.tour,hlookat:this.hlookat,vlookat:this.vlookat}),yield this.movingSceneAction.execute({language:e}),a=yield this.movingSceneAction.getDuration(),n&&0!==n&&(n-=a),this.movingSceneAction=null),null!=(a=this.actions)&&a.length){let o=[],i=[];this.actions.forEach(r=>{if(this.playing){if(r.type===ue.PLAY_SOUND){var a=r;if(a.background)return i.push(a),void r.execute({language:e,duration:wt(n)});if(t)return}o.push(r.execute({language:e,duration:wt(n)}))}}),yield Promise.all(o),i.length&&(yield Promise.all(i.map(e=>e.stop())))}}if(a=(new Date).getTime()-r,0<(r=(yield this.getDuration({language:e,checkDuration:s}))-a)){if(!this.playing)return;this.delayPromise=vt(r),yield this.delayPromise,this.delayPromise=null}this.rejector=null,o()}))})}}let __={onplay:null,onpause:null,onstop:null,onreplay:null,"on-step-change":null,"on-tracking-replay":null};class w_{constructor(e){var t;this.playDelay=e=>St(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n}=e;yield gt(500),this.play({language:t,splashScreenStatus:n})}),this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.id=e.id,this.name=e.name,this.code=e.code,this.showProgressBar=!1,this.soundEnabled=!!e.soundEnabled,this.language=e.language||"vi",this.autoReplay=!!e.autoReplay,_t(e.autoReplay)||(this.autoReplay=this.tour.autoplayReplay||!1),this.onStop=e.onStop,this.player={playing:!1,playingStep:null,lastScene:null,lastView:null},this.steps=null==(t=null==e?void 0:e.steps)?void 0:t.map(t=>new y_(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,showProgressBar:this.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,itemInfoPois:this.props.itemInfoPois,promotionPois:this.props.promotionPois,tourSignals:this.tour.signals,playHotspotSound:e.hotspotSoundPlayable}))),null!=(t=this.steps)&&t.sort((e,t)=>e.orderIndex-t.orderIndex),this.listeners=__,this.run=this.run.bind(this),this.next=this.next.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.stop=this.stop.bind(this),this.saveLastView=this.saveLastView.bind(this),this.saveLastScene=this.saveLastScene.bind(this),this.applyLastScene=this.applyLastScene.bind(this),this.getPlayingStep=this.getPlayingStep.bind(this),this.revertLastView=this.revertLastView.bind(this),this.addEventListener=this.addEventListener.bind(this),this.removeEventListener=this.removeEventListener.bind(this),this.fireEvent=this.fireEvent.bind(this),this.goPrev=this.goPrev.bind(this),this.goNext=this.goNext.bind(this),this.goToSpecifyStep=this.goToSpecifyStep.bind(this),this.setSoundState=this.setSoundState.bind(this),this.setAutoPlay=this.setAutoPlay.bind(this)}fireEvent(e){(e=this.listeners[e])&&e()}addEventListener(e,t){this.listeners[e]=t}removeEventListener(){this.stop(),this.listeners=__}revertLastView(e){e=e.krpano.get("view");var{fov:t,fovmax:n,fovmin:o}=this.player.lastView;e.fov=t,e.fovmax=n,e.fovmin=o,this.player.lastView=null}saveLastView(e){var{fov:e,fovmax:t,fovmin:n}=e.krpano.get("view");this.player.lastView={fov:e,fovmax:t,fovmin:n}}applyLastScene(e){var{playingStep:t,lastScene:n}=this.player;!n||n.code===e.getActiveScene().code||t&&t.scene||e.loadScene(n.code)}saveLastScene(){var e;this.getPlayingStep()?(e=this.getPlayingStep().movingAction)&&(this.player.lastScene=e.toScene):console.warn("currently, dont have any step that is playing")}getPlayingStep(){return this.player.playingStep}run(e){let t,{language:n="vi",splashScreenStatus:o,goToSpecifyStep:i=!1,playFromSlideIn:r=!1}=e;if(this.player.playing&&this.tour){let e=this.getPlayingStep();!e&&0<(null==(t=this.steps)?void 0:t.length)&&(e=this.steps[0],this.player.playingStep=e),e&&(this.fireEvent("on-step-change"),this.saveLastScene(),e.execute({language:n}).then(()=>{this.player.playing&&this.next({language:n,splashScreenStatus:o,goToSpecifyStep:i,playFromSlideIn:r})}))}}next(e){var{language:e="vi",splashScreenStatus:t,goToSpecifyStep:n=!1,playFromSlideIn:o=!1}=e;if(this.tour){let a=this.player.playingStep;if(a){var i=this.steps,r=i.findIndex(e=>e===a);let s=r+1;if(r===i.length-1){if(!this.autoReplay)return this.stop(),void(this.onStop&&setTimeout(()=>{this.onStop()},100));s=0,this.fireEvent("onreplay")}this.player.playingStep=i[s],this.run({language:e,splashScreenStatus:t,goToSpecifyStep:n,playFromSlideIn:o})}}}play(e){var{language:e="vi",splashScreenStatus:t,goToSpecifyStep:n=!1,playFromSlideIn:o=!1}=e,i=this.tour;i&&!this.player.playing&&(this.player.playing=!0,this.saveLastView(i),this.applyLastScene(i),this.fireEvent("onplay"),i.toggleNavigationHotspotsInAGT(!1),this.run({language:e,splashScreenStatus:t,goToSpecifyStep:n,playFromSlideIn:o}))}pause(e){var{stopCallback:e,preventFireEvent:t=!1}=e||{},n=this.tour;n&&this.player.playing&&(this.player.playing=!1,t||this.fireEvent("onpause"),null!=(t=null==(t=this.player)?void 0:t.playingStep)&&t.stop(),this.revertLastView(n),n.toggleNavigationHotspotsInAGT(!0),e)&&e()}stop(){this.pause({stopCallback:()=>{this.player.playingStep=null}}),this.fireEvent("onstop")}goPrev(e){return St(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n,preventFireEvent:o=!1}=e;if(this.tour){let e=this.getPlayingStep();if(e){this.pause({preventFireEvent:o});var o,i=(o=this.steps).findIndex(t=>t===e);let t=i-1;0===i&&(t=o.length-1,this.fireEvent("on-tracking-replay")),this.player.playingStep=o[t]}return this.playDelay({language:t,splashScreenStatus:n})}})}goNext(e){return St(this,void 0,void 0,function*(){var{language:t="vi",splashScreenStatus:n,preventFireEvent:o=!1}=e;if(this.tour){let e=this.getPlayingStep();if(!e)return this.play({language:t,splashScreenStatus:n});this.pause({preventFireEvent:o});var o,i=(o=this.steps).findIndex(t=>t===e);let r=i+1;return i===o.length-1&&(r=0,this.fireEvent("on-tracking-replay")),this.player.playingStep=o[r],this.playDelay({language:t,splashScreenStatus:n})}})}goToSpecifyStep(e){let{id:t,language:n="vi",splashScreenStatus:o}=e;this.tour&&(this.getPlayingStep()&&this.pause(),e=null==(e=this.steps)?void 0:e.find(e=>e.props.id===t))&&(this.player.playingStep=e,this.play({language:n,splashScreenStatus:o,goToSpecifyStep:!0}))}setSoundState(e){let{isEnabled:t,language:n=F.VI}=e;this.soundEnabled=t,this.steps&&this.steps.length&&this.steps.forEach(e=>{var o;(null!=(o=e.hasSoundActions)&&o.length||e.sound)&&e.setSoundState({isEnabled:t,language:n})})}setAutoPlay(e){this.autoReplay=e}getAutoPlay(){return this.autoReplay}}class x_{constructor(e){this.playlist=[],this.itemInfoPois=[],this.promotionPois=[],this.featurePois=[],this.productPois=[],this.infoPois=[],this.brandPois=[],this.locationPois=[],this.facilityPois=[],this.swapElementPois=[],this.soundEnabled=!0,this.toggleLookAtStepStartView=!1,this.getActiveScenario=e=>{var t;return e||this.activeScenarioCode?null!=(t=this.playlist.find(t=>t.code===(e||this.activeScenarioCode)))&&t.scenario?t.scenario:(console.warn("Cannot get active scenario with key or code "+(e||this.activeScenarioCode)),null):null},this.setSplashScreenStatus=e=>{this.splashScreenStatus=e},this.setActiveScenarioCode=(e,t=!1)=>{var n;e!==this.activeScenarioCode&&this.activeScenarioCode&&(n=this.getActiveScenario(this.activeScenarioCode))&&n.removeEventListener(),this.activeScenarioCode=e,this.signals.onSwitchKeyReady.dispatch({playAfterReady:t})},this.startScenario=(...e)=>St(this,[...e],void 0,function*(e=!1){var t,n,o,i,r=this.getActiveScenario();r&&(!this.toggleLookAtStepStartView&&(n=this.tour.getActiveScene(),o=null==(o=r.steps)?void 0:o[0])&&(null!=(i=o.children)&&i.length?null!=(t=(i=o.children[0]).scene)&&t.id&&Number(n.id)===Number(null==(t=i.scene)?void 0:t.id)&&(this.lookAtStepStartView(i),yield gt(300)):null!=(t=o.scene)&&t.id&&Number(n.id)===Number(null==(i=o.scene)?void 0:i.id)&&(this.lookAtStepStartView(o),yield gt(300))),r.play({language:this.language,splashScreenStatus:this.splashScreenStatus,playFromSlideIn:e}),this.tour.toggleFloorPois(!1))}),this.pauseScenario=()=>{var e;this.removeTemporaryScenario()||(e=this.getActiveScenario())&&(e.pause(),this.tour.toggleFloorPois(!0))},this.stopScenario=()=>{var e;this.removeTemporaryScenario()||(e=this.getActiveScenario())&&(e.stop(),this.tour.toggleFloorPois(!0))},this.togglePlayStepByStepId=e=>{var t,n=this.getActiveScenario();n&&((t=n.getPlayingStep())&&t.props&&t.props.id===e&&n.player.playing?n.pause():n.goToSpecifyStep({id:e,language:this.language,splashScreenStatus:this.splashScreenStatus}))},this.handleAutoPlaySkip=(e=!1)=>{var t=this.getActiveScenario();if(t)return e?t.goPrev({language:this.language,splashScreenStatus:this.splashScreenStatus,preventFireEvent:!0}):t.goNext({language:this.language,splashScreenStatus:this.splashScreenStatus,preventFireEvent:!0})},this.fireOnSwitchKeyReady=e=>{this.signals.onSwitchKeyReady.add(e)},this.createScenarioFeatures=()=>{if(!this.checkScriptAlreadyCreated($.FEATURES)){var e=null==(e=this.props.scenarios)?void 0:e.find(e=>e.type===$.FEATURES);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario($.FEATURES,e),this.featurePois=t}return this.featurePois},this.createScenarioProductList=()=>{if(!this.checkScriptAlreadyCreated($.PRODUCT_LIST)){var e=null==(e=this.props.scenarios)?void 0:e.find(e=>e.type===$.PRODUCT_LIST);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario($.PRODUCT_LIST,e),this.productPois=t}return this.productPois},this.createScenarioBrands=()=>{if(!this.checkScriptAlreadyCreated($.BRAND)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===$.BRAND);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario($.BRAND,e),this.brandPois=t}return this.brandPois},this.createScenarioLocations=()=>{if(!this.checkScriptAlreadyCreated($.LOCATION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===$.LOCATION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario($.LOCATION,e),this.locationPois=t}return this.locationPois},this.createScenarioPromotions=()=>{if(!this.checkScriptAlreadyCreated($.PROMOTION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===$.PROMOTION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario($.PROMOTION,e),this.promotionPois=t}return this.promotionPois},this.createScenarioInfo=()=>{if(!this.checkScriptAlreadyCreated($.INFORMATION)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===$.INFORMATION);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario($.INFORMATION,e),this.infoPois=t}return this.infoPois},this.createScenarioFacilities=()=>{if(!this.checkScriptAlreadyCreated($.FACILITY)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===$.FACILITY);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario($.FACILITY,e),this.facilityPois=t}return this.facilityPois},this.createScenarioMultiMedia=()=>{var e;this.checkScriptAlreadyCreated($.MULTIMEDIA)||(e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===$.MULTIMEDIA))&&this.createNewScenario($.MULTIMEDIA,e)},this.createScenarioSwapElement=()=>{if(!this.checkScriptAlreadyCreated($.SWAP_ELEMENT)){var e=null==(e=null==(e=this.props)?void 0:e.scenarios)?void 0:e.find(e=>e.type===$.SWAP_ELEMENT);if(!e)return[];var t=this.getPoisFromScenarioData(e);this.createNewScenario($.SWAP_ELEMENT,e),this.swapElementPois=t}return this.swapElementPois},this.updateAGTActiveScenario=e=>{e&&(-1===this.playlist.findIndex(t=>t.key===$.AGT&&t.id===e.id)&&(e.id?this.createNewScenario($.AGT,e):this.checkScriptAlreadyCreated(e.type)||this.updatePlayList(e.type,e)),this.setActiveScenarioCode(e.code))},this.updateAGTScenario=(e,t)=>{this.updateAGTActiveScenario(e),this.signals.onSwitchKeyReady.dispatch({playAfterReady:!t}),t&&this.togglePlayStepByStepId(t)},this.setSoundStateForActiveScenario=e=>{this.soundEnabled=e;var t=this.getActiveScenario();t&&t.setSoundState({isEnabled:e,language:this.language})},this.playScenarioPoi=e=>{if(this.tour){let i,r=!1;var t,n=this.tour.getActiveScene();if(n)for(let t=0;t<n.pois.length;t++){var o=n.pois[t];if((o.type===te.ITEM_INFO||o.type===te.POLYGON)&&o.itemInfoCode===e){i=o;break}if(o.type===te.PROMOTION&&o.code===e){i=o,r=!0;break}}(i=i||(this.itemInfoPois||[]).find(t=>t.itemInfoCode===e))||(i=(this.promotionPois||[]).find(t=>t.code===e),r=!0),i&&(t=this.getScenarioPoiSteps(i,r),this.createNewScenario($.DETAIL,Object.assign(Object.assign({},{steps:t,onStop:()=>{this.removeTemporaryScenario(!1)}}),{code:$.DETAIL}),{autoReplay:!1}),this.prevActiveScenarioCode=this.activeScenarioCode,this.setActiveScenarioCode($.DETAIL))}},this.lookAtStepStartView=e=>{var t=e.hlookat,n=(e=e.vlookat,this.krpano.getView()),o=Math.round(n.hlookat),i=Math.round(n.vlookat);(t&&o!==t||e&&i!==e)&&this.krpano&&(this.toggleLookAtStepStartView=!0,this.krpano.call(`lookto(${t}, ${e}, ${n.fov}, tween(linear, 0.2}));`))},this.getPoisFromScenarioData=e=>{let t=((null==e?void 0:e.steps)||[]).flatMap(e=>e.children).flatMap(e=>e.actions).filter(e=>e.type===ue.LOOK_AT&&!!e.poiCode).map(e=>e.poiCode);return this.tour.scenes.flatMap(e=>e.pois).filter(e=>t.includes(e.code))},this.getScenarioPoiSteps=(e,t)=>{let n;return({steps:n}=ir(t?{tour:this.tour,poiTypes:[te.PROMOTION],scenes:rr(this.tour,[e]),pois:[e]}:{tour:this.tour,poiTypes:[te.ITEM_INFO],scenes:rr(this.tour,[e]),pois:[e],itemTypes:[e.itemInfo.type]})),n},this.removeTemporaryScenario=(e=!0)=>{var t,n=this.playlist.find(e=>e.code===this.activeScenarioCode);return((null==n?void 0:n.key)===$.DETAIL||(null==n?void 0:n.key)===$.TEMP)&&!((n=this.playlist.findIndex(e=>e.key===$.DETAIL||e.key===$.TEMP))<0||(t=this.playlist[n].scenario,e&&(t.stop(),this.tour.toggleFloorPois(!0)),this.playlist.splice(n,1),this.setActiveScenarioCode(this.prevActiveScenarioCode),this.prevActiveScenarioCode=void 0))},this.fireOnStopScenarioWithPoiInteractive=e=>{this.tourSignals.stopScenario.add(e)},this.getTourItemInfoAndPromotionPois=()=>{var e=this.tour;if(e&&e.scenes&&e.scenes.length){e.scenes.sort((e,t)=>e.orderIndex-t.orderIndex);let t=[],n=[];e.scenes.forEach(e=>{if(e.pois)for(let i=0;i<e.pois.length;i++){var o=e.pois[i];o.type===te.ITEM_INFO&&o.itemInfoCode&&t.push(o),o.type===te.PROMOTION&&o.promotionCode&&n.push(o)}}),this.itemInfoPois=t,this.promotionPois=n}},this.createNewScenario=(e,t,n={})=>{t&&this.playlist.push({key:e,scenario:new w_(Object.assign(Object.assign(Object.assign({},t),{krpano:this.krpano,tour:this.tour,playlist:this,showProgressBar:!this.disabledAGTProgressBar&&t.showProgressBar,soundEnabled:this.soundEnabled,language:this.language,tourSignals:e===$.AGT?this.tourSignals:void 0,promotionPois:this.promotionPois||[],itemInfoPois:this.itemInfoPois||[],hotspotSoundPlayable:e===$.AGT,autoReplay:this.tour.autoplayReplay}),n)),code:t.code,id:t.id})},this.createScenarioAGT=e=>{!this.isPrepareDefaultAGT||(this.isPrepareDefaultAGT,this.tour.props.tourScenario)?(e||this.tour.props.tourScenario)&&this.createNewScenario($.AGT,e||this.tour.props.tourScenario):this.createScenarioScenes($.AGT)},this.createScenarioScenes=e=>{if(n=this.tour){let o=n.getActiveScene();var t=((n=[...n.scenes]).sort((e,t)=>e.orderIndex-t.orderIndex),o&&(t=n.findIndex(e=>e.id===o.id),t=n.splice(0,t),n.push(...t)),null==(t=null==(t=this.props)?void 0:t.scenarios)?void 0:t.find(e=>e.type===$.SCENE)),n=this.createScenarioDataFromScenes(n);this.createNewScenario(e||$.SCENE,Object.assign(Object.assign({},n),t))}},this.props=e,this.krpano=e.krpano,this.tour=e.tour,this.tourSignals=e.signals,this.playlist=[],this.language=e.language,this.isPrepareDefaultAGT=!!e.isPrepareDefaultAGT,this.disabledAGTProgressBar=!!e.disabledAGTProgressBar,this.soundEnabled=!!e.soundEnabled,this.getActiveScenario=this.getActiveScenario.bind(this),this.setSplashScreenStatus=this.setSplashScreenStatus.bind(this),this.setActiveScenarioCode=this.setActiveScenarioCode.bind(this),this.startScenario=this.startScenario.bind(this),this.pauseScenario=this.pauseScenario.bind(this),this.stopScenario=this.stopScenario.bind(this),this.togglePlayStepByStepId=this.togglePlayStepByStepId.bind(this),this.handleAutoPlaySkip=this.handleAutoPlaySkip.bind(this),this.fireOnSwitchKeyReady=this.fireOnSwitchKeyReady.bind(this),this.getPoisFromScenarioData=this.getPoisFromScenarioData.bind(this),this.createScenarioFeatures=this.createScenarioFeatures.bind(this),this.createScenarioProductList=this.createScenarioProductList.bind(this),this.createScenarioBrands=this.createScenarioBrands.bind(this),this.createScenarioLocations=this.createScenarioLocations.bind(this),this.createScenarioPromotions=this.createScenarioPromotions.bind(this),this.createScenarioInfo=this.createScenarioInfo.bind(this),this.createScenarioFacilities=this.createScenarioFacilities.bind(this),this.createScenarioMultiMedia=this.createScenarioMultiMedia.bind(this),this.createScenarioSwapElement=this.createScenarioSwapElement.bind(this),this.updateAGTScenario=this.updateAGTScenario.bind(this),this.setSoundStateForActiveScenario=this.setSoundStateForActiveScenario.bind(this),this.getTourItemInfoAndPromotionPois=this.getTourItemInfoAndPromotionPois.bind(this),this.createNewScenario=this.createNewScenario.bind(this),this.createScenarioAGT=this.createScenarioAGT.bind(this),this.createScenarioScenes=this.createScenarioScenes.bind(this),this.playScenarioPoi=this.playScenarioPoi.bind(this),this.getScenarioPoiSteps=this.getScenarioPoiSteps.bind(this),this.removeTemporaryScenario=this.removeTemporaryScenario.bind(this),this.createScenarioDataFromScenes=this.createScenarioDataFromScenes.bind(this),this.checkScriptAlreadyCreated=this.checkScriptAlreadyCreated.bind(this),this.signals={onSwitchKeyReady:new My.Signal},this.getTourItemInfoAndPromotionPois(),this.fireOnStopScenarioWithPoiInteractive(()=>this.pauseScenario())}playProductPois(e,t,n=!1){e=ir({tour:this.tour,poiTypes:[te.ITEM_INFO],scenes:e,pois:t,itemTypes:[Ze],sleepTime:7e3,showDetail:n}).steps,this.createNewScenario($.TEMP,Object.assign(Object.assign({},{steps:e,onStop:()=>{this.removeTemporaryScenario(!1)}}),{code:$.TEMP}),{autoReplay:!1}),this.setActiveScenarioCode($.TEMP),this.prevActiveScenarioCode=this.activeScenarioCode}isPlaying(){var e=this.getActiveScenario();return!!e&&e.player&&e.player.playing}updatePlayList(e,t){if(e){this.props.scenarios||(this.props.scenarios=[]);var n=null==(n=this.props.scenarios)?void 0:n.findIndex(t=>t.type===e);if(!(-1<n))switch(null!=(n=this.props.scenarios)&&n.push(t),e){case $.FEATURES:this.createScenarioFeatures();break;case $.PRODUCT_LIST:this.createScenarioProductList();break;case $.BRAND:this.createScenarioBrands();break;case $.LOCATION:this.createScenarioLocations();break;case $.PROMOTION:this.createScenarioPromotions();break;case $.INFORMATION:this.createScenarioInfo();break;case $.FACILITY:this.createScenarioFacilities();break;case $.MULTIMEDIA:this.createScenarioMultiMedia();break;case $.SWAP_ELEMENT:this.createScenarioSwapElement();break;case $.SCENE:this.createScenarioScenes()}}}createScenarioDataFromScenes(e){let t=[];return e.forEach((e,n)=>{t.push({scene:e.props,hlookat:e.hlookat,vlookat:e.vlookat,orderIndex:n,actions:[{type:ue.ROTATE,angle:360,speed:15,orderIndex:0}]})}),t.sort((e,t)=>e.orderIndex-t.orderIndex),{steps:t}}checkScriptAlreadyCreated(e){return!!e&&!!this.playlist.find(t=>t.key===e)}}let k_="new",S_="played",E_="paused",T_="stopped",P_="completed";class O_{constructor(e){this.duration=0,this.position=0,this.speed=0,this.loop=!1,this.volume=0,this.range=0,this.enable=!0,this.streaming=!1,this.trackDuration=!1,this.progressInterval=null,this.soundObject=null,this.preload=()=>{(e=>e.get("device.ios"))(this.krpano)&&new Audio(this.sound.url)},this.getSoundObject=()=>this.soundObject,this.handlePlayingChange=()=>{this.onPlayingChange&&this.onPlayingChange(this.isPlaying())},this.handleProgressChange=()=>{this.onProgressChange&&(this.duration&&0!==this.duration||(this.duration=this.getDuration()),this.onProgressChange({position:this.getPosition(),duration:this.duration}))},this.resetProgressInterval=()=>{this.progressInterval&&clearInterval(this.progressInterval),this.progressInterval=null},this.initProgressInterval=()=>{this.progressInterval=setInterval(()=>{this.handleProgressChange()},300)},this.unloadAudio=()=>{this.soundObject&&(this.soundObject.unload(),this.soundObject=null)},this.props=e,this.id=e.id,this.code=e.code,this.name=e.name,this.sound=e.sound,this.signals=e.signals,this.krpano=e.krpano,this.duration=e.duration,this.position=e.position,this.speed=e.speed,this.enable=e.enable||!1,this.status=k_,this.soundEnabled=e.soundEnabled||!1,this.muted=!0;var{volume:t,range:n,loop:o}=this.props;this.volume=void 0!==t?t/100:.5,this.range=void 0!==n?n:220,this.loop=void 0!==o&&o,this.streaming=void 0!==e.streaming&&e.streaming,this.stop=this.stop.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.getSoundObject=this.getSoundObject.bind(this),this.toggle=this.toggle.bind(this),this.changeVolume=this.changeVolume.bind(this),this.preload=this.preload.bind(this),this.isPlaying=this.isPlaying.bind(this),this.isPaused=this.isPaused.bind(this),this.updateSoundState=this.updateSoundState.bind(this),this.onPlayError=this.onPlayError.bind(this)}mute(e,t){var n;this.muted=e,null!=(n=this.soundObject)&&n.mute(e,t)}updateSoundState(e){this.soundEnabled=e,this.soundEnabled?this.play():this.pause()}getDuration(){return this.soundObject?this.soundObject.duration():0}getPosition(){return this.soundObject?this.soundObject.pos()[0]:0}pause(){return St(this,arguments,void 0,function*(e=!1){this.soundObject&&this.soundObject.pause(),!0===e&&this.setPosition(0)})}play(){return St(this,void 0,void 0,function*(){if(this.soundEnabled)if(this.soundObject)this.soundObject.playing()||this.soundObject.play();else{let e=new Uy.Howl({src:[""+this.sound.url],loop:this.loop,volume:this.volume,autoplay:!0,mute:this.muted,onend:()=>{this.status=P_,this.handlePlayingChange(),e.loop||this.unloadAudio(),this.resetProgressInterval()},onplay:()=>{this.status=S_,this.handlePlayingChange(),this.trackDuration&&this.initProgressInterval()},onpause:()=>{this.status=E_,this.handlePlayingChange(),this.resetProgressInterval()},onstop:()=>{this.status=T_,this.handlePlayingChange(),this.resetProgressInterval()},onplayerror:this.onPlayError});e.play(),this.soundObject=e}})}onPlayError(){this.soundObject&&this.soundObject.once("unlock",this.play)}stop(){return St(this,void 0,void 0,function*(){this.soundObject&&this.soundObject.stop(),this.unloadAudio()})}toggle(){return St(this,arguments,void 0,function*(e=!1){this.isPlaying()?this.pause(e):this.play()})}changeVolume(e=1){e=this.volume*e,this.soundObject&&this.soundObject.fade(this.volume,e,1e3)}isPlaying(){return this.status===S_}isPaused(){return this.status===E_}setPosition(e){var t=this.getSoundObject();t&&t.seek(e)}}class C_ extends O_{constructor(e){super(e),this.type="TOUR_BG",this.autoStart=!0,this.onPlayingChange=e=>{this.signals.backgroundSoundClick.dispatch(e)},this.startAuto=this.startAuto.bind(this)}startAuto(){return St(this,void 0,void 0,function*(){this.play()})}}class A_{constructor(e){var t;this.scenarioPlayer=null,this.scenes=[],this.autoplayReplay=!1,this.draggingMouse=!1,this.viewVLookAt=0,this.viewHLookAt=0,this.canChangeScene=!0,this.keepViewOnSceneChanged=!1,this.showNavigationHotspotLabels=!1,this.showLabel=!1,this.zoomable=!1,this.mwheel=!0,this.allPoiVisible=!0,this.singleClick=Se,this.loadingScene=!1,this.webGLSupported=!1,this.showNavigationHotspots=!1,this.showNavigationWithoutMovingHotspot=!1,this.navigationHotspotsVisible=!0,this.disabledAGTProgressBar=!1,this.startingSceneLoaded=!1,this.soundEnabled=!0,this.moveToClosestSceneDisabled=!1,this.backgroundVolumeDuringAGT=0,this.timeout=null,this.onViewChangeFuncs=[],this.onPreCheckViewChangeFuncs=[],this.hiddenLabelTypes=[],this.poiMap={},this.getBlendValue=()=>{let e=ce.DEFAULT,t=se.NORMAL;return this.blendSpeed&&se[this.blendSpeed]&&(t=se[this.blendSpeed]),this.blendMode&&ce[this.blendMode]?ce[this.blendMode].replace("{level}",t.toString()):e},this.setCanChangeScene=e=>{!this.canChangeScene&&e?setTimeout(()=>{this.canChangeScene=!0},1e3):this.canChangeScene=!1},this.getMouse=()=>this.krpano?this.krpano.get("mouse"):null,this.getPoi=(e,t)=>(e=this.getSceneById(e))?e.getPoiByCode(t):null,this.getPoiOfCurrentScene=e=>{var t=this.getActiveScene();return t?t.getPoiByCode(e):null},this.getSceneById=e=>this.scenes.find(t=>t.id===""+e)||null,this.getSceneByCode=e=>this.scenes.find(t=>t.code===e)||null,this.fireOnSceneCompleted=e=>{if(this.krpano){let t=()=>{var e,t,n;this.krpano&&(console.log(this.signals.finishLoadingScene),this.signals.finishLoadingScene.dispatch(),this.startingSceneLoaded=!0,e=this.getActiveScene())&&((t=this.krpano.get("view"))&&(n=Dt(this.krpano),t.fovtype=n.fovtype,t.fov=n.fov,this.krpano.set("display.framebufferscale",1)),e.setViewLimit(),e.loadPois(),this.toggleLabels(this.showLabel,e.code),this.krpano.set("view.maxpixelzoom",2),this.krpano.set("view.fovmax",e.props.fovmax||120),this.zoomable||this.krpano.set("control.fovspeed",0))};this.krpano.set("events.onblendcomplete",()=>{this.startingSceneLoaded&&t()}),this.krpano.set("events.onloadcomplete",()=>{e&&e(),this.handleOnSceneLoaded&&(this.handleOnSceneLoaded(),this.handleOnSceneLoaded=void 0),this.startingSceneLoaded||t()}),this.krpano.set("events.keep",!0)}},this.stopCurrentSceneMedia=e=>{var t=this.getActiveScene();t&&t.pois.forEach(t=>{e&&e===t.code||!(t instanceof Wy||t instanceof Gy)||t.stop()})},this.pauseCurrentSceneMedia=()=>{var e=this.getActiveScene();e&&e.pois.forEach(e=>{(e instanceof Wy||e instanceof Gy)&&e.pause()})},this.pauseBackgroundSound=()=>{this.backgroundSound&&this.backgroundSound.isPlaying()&&this.backgroundSound.pause()},this.resumeBackgroundSound=()=>{this.backgroundSound&&!this.backgroundSound.isPlaying()&&this.backgroundSound.isPaused()&&this.backgroundSound.play()},this.getViewChangedValues=(e,t)=>{var n=this.getActiveScene();if(n)return{hChanged:e-n.north,vChanged:t}},this.switchScene=e=>{this.moveToScene(e,{keepViewAfterMoving:!0,blendMode:"BLEND(0.5, easeInCubic)",useNonOffsetView:!0})},this.moveToScene=(e,t)=>{if(this.krpano){let i,r,a,s=0;if(void 0!==(null==t?void 0:t.hLookAt)&&null!==(null==t?void 0:t.hLookAt)&&void 0!==(null==t?void 0:t.vLookAt)&&null!==(null==t?void 0:t.vLookAt)&&(r=null==t?void 0:t.hLookAt,a=null==t?void 0:t.vLookAt,null!=t&&t.lookAtBeforeMoving)){var n=this.krpano.getView();let e=n.hlookat<0?n.hlookat+360:n.hlookat;var o=(null==t?void 0:t.hLookAt)<0?(null==t?void 0:t.hLookAt)+360:null==t?void 0:t.hLookAt;o=Math.abs(e-o);s=(o=Math.max(Math.min(Math.round(o/60),1),.5))+.2,this.krpano.call(`lookto(${null==t?void 0:t.hLookAt}, ${null==t?void 0:t.vLookAt}, ${n.fov}, tween(linear, ${o}));`)}null!=t&&t.lookAtBeforeMoving||(n=null!=t&&t.useNonOffsetView?this.krpano.getOriginalView():this.krpano.getView())&&(r=n.hlookat,a=n.vlookat),(null!=t&&t.keepViewAfterMoving||this.keepViewOnSceneChanged)&&void 0!==r&&void 0!==a&&(i=this.getViewChangedValues(r,a)),this.loadScene(e,s,i,null==t?void 0:t.blendMode)}},this.setupSoundPlugin=()=>{var e=!!this.props.scenes.find(e=>!!e.pois.find(e=>e.type===te.SOUND));this.props.bgSound&&this.props.bgSound.enable||this.props.tourScenario||e?(this.plugins.sound=new Iy({krpano:this.krpano,signals:this.signals}),this.plugins.sound.load(this.handleOnSoundPluginLoaded)):this.signals.soundReady.dispatch()},this.handleOnMouseUp=()=>{var e;this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.draggingMouse&&(this.signals.backgroundGrab.dispatch(!0),(e=this.getActiveScene())&&e.autoShowHotspots(),setTimeout(()=>{this.draggingMouse=!1},500))},this.handleOnMouseDown=()=>{this.toggleLabels(!1),this.allPoiVisible&&(this.timeout=setTimeout(()=>{this.draggingMouse=!0,this.timeout=null,this.signals.backgroundGrab.dispatch(!1)},500))},this.moveToClosestScene=()=>{var e;!this.draggingMouse&&this.canChangeScene&&(e=this.getActiveScene())&&e.moveToClosestPoi()},this.moveByDirection=e=>{var t;this.draggingMouse||(t=this.getActiveScene())&&t.moveWithNavigationPoi(e)},this.configMouseEvents=()=>{if(this.krpano){if(this.singleClick!==ke){let e;switch(this.singleClick){case Se:break;case Ee:e=()=>{this.moveToClosestSceneDisabled?this.moveToClosestSceneDisabled=!1:this.moveToClosestScene()}}e&&(this.krpano.set("events.onsingleclick",()=>{e()}),this.signals.floorPoiClick.add(()=>{e()}))}this.signals.toggleLabels.add(this.toggleLabels),this.krpano.set("events.onmousedown",this.handleOnMouseDown),this.krpano.set("events.onmouseup",this.handleOnMouseUp),this.signals.poiMouseUp.add(this.handleOnMouseUp),this.signals.navigationPoiClick.add(this.moveByDirection)}},this.isViewChanged=e=>{var{hlookat:e,vlookat:t,haschanged:n}=e;return(n||Math.round(e)!==Math.round(this.viewHLookAt)||Math.round(t)!==Math.round(this.viewVLookAt))&&(this.viewHLookAt=e,this.viewVLookAt=t,!0)},this.configViewSignals=()=>{this.krpano&&(this.signals.updateViewChangedEvents.add(e=>{this.onViewChangeFuncs||(this.onViewChangeFuncs=[]),this.onPreCheckViewChangeFuncs||(this.onPreCheckViewChangeFuncs=[]),(e.skipCheck?this.onPreCheckViewChangeFuncs:this.onViewChangeFuncs).push(e.handler)}),this.krpano.set("events.onviewchange",()=>{(this.onPreCheckViewChangeFuncs||[]).forEach(e=>{e()});var e=this.krpano.getView(),{hlookat:t,vlookat:n}=e;this.isViewChanged(e)&&(this.signals.onViewChanged.dispatch({hlookat:t,vlookat:n}),(this.onViewChangeFuncs||[]).forEach(e=>{e()}))}))},this.toggleNavigationHotspotsVisibility=e=>{e=null==e?this.navigationHotspotsVisible:e,this.navigationHotspotsVisible=e,this.toggleNavigationHotspots(e)},this.toggleNavigationHotspotsInAGT=(e=!0)=>{this.toggleNavigationHotspots(e)},this.toggleNavigationHotspots=(e=!0)=>{!this.showNavigationHotspots||!this.navigationHotspotsVisible&&e||this.scenes.forEach(t=>{t.toggleNavigationHotspots(e)})},this.toggleFullscreen=e=>{e?(e=>{e&&(e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.msRequestFullscreen?e.msRequestFullscreen():e.webkitEnterFullscreen&&e.webkitEnterFullscreen())})(document.getElementById("tour-layout")):document.fullscreenElement&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()),this.signals.toggleFullscreen.dispatch(e)},this.updateRadar=e=>{let t=e;(t=e?t:this.getActiveScene()||void 0)&&this.plugins.radar&&this.plugins.radar.updateHeading(-t.north)},this.fireOnPoiOver=e=>{this.signals.poiOver.add(e)},this.fireOnPoiHover=e=>{this.signals.poiHover.add(e)},this.fireOnPoiOut=e=>{this.signals.poiOut.add(e)},this.fireOnPoiClick=e=>{this.signals.poiClick.add(e)},this.fireOnRootPoiClick=e=>{this.signals.poiClicked.add(e)},this.fireOnMovingPoiClicked=e=>{this.signals.movingPoiClick.add(e)},this.fireOnPoiMediaStarted=e=>{this.signals.poiMediaPlayed.add(e)},this.fireOnPoiMediaPaused=e=>{this.signals.poiMediaPaused.add(e)},this.fireOnToggleFullScreen=e=>{this.signals.toggleFullscreen.add(e)},this.fireOnAutoRotateOneRound=e=>{this.signals.autoRotateOneRound.add(e)},this.fireOnBackgroundSoundClick=e=>{this.signals.backgroundSoundClick.add(e)},this.fireOnBackgroundGrab=e=>{this.signals.backgroundGrab.add(e)},this.fireOnLoadedPlugin=e=>{this.signals.onLoadedPlugin.add(e)},this.fireOnStartLoadingScene=e=>{this.signals.startLoadingScene.add(e)},this.fireOnFinishLoadingScene=e=>{this.signals.finishLoadingScene.add(e)},this.fireOnViewChanged=e=>{this.signals.onViewChanged.add(e)},this.fireOnToggleFloorPoi=e=>{this.signals.toggleFloorPoi.add(e)},this.fireOnSoundPlayable=e=>{this.signals.soundReady.add(e)},this.fireOnTexturePoiHover=e=>{this.signals.texturePoiHover.add(e)},this.fireOnTexturePoiClick=e=>{this.signals.texturePoiClick.add(e)},this.fireOnTexturePoiTouched=e=>{this.signals.texturePoiTouched.add(e)},this.fireOnToggleHotspotsVisibility=e=>{this.signals.toggleHotspotsVisibility.add(e)},this.fireOnHotspotNearestToCenter=e=>{this.signals.toggleHotspotNearestToCenter.add(e)},this.fireOnSetSubtitleText=e=>{this.signals.setSubtitleText.add(e)},this.fireOnOpenFuncButton=e=>{this.signals.openFunctionButton.add(e)},this.fireOnOpenMinimap=e=>{this.signals.openMinimap.add(e)},this.fireOnMovingPoiClick=e=>{this.signals.movingPoiClick.add(e)},this.stopCurrentSceneEvents=()=>{var e=this.getActiveScene();e&&(this.onPreCheckViewChangeFuncs=[],this.onViewChangeFuncs=[],e.floorPoi&&e.floorPoi.stopPlacingHotspotAtMouse(),e.toggleNavigationHotspots(!1,!0))},this.getRadarColorParams=e=>({color:"0x"+(null==(e=null==(e=null==e?void 0:e.split("#"))?void 0:e.pop())?void 0:e.slice(0,6)),opacity:e?parseInt(null==e?void 0:e.slice(6),16)/255:0}),this.updateViewOffsets=(e,t,n=!1)=>{var o,i;this.krpano&&(e||t?(({h:o,v:i}=Ht(this.krpano,{x:e||0,y:t||0})),this.krpano.updateOffset(e&&o,t&&i,n)):this.krpano.updateOffset(0,0,n))},this.toggleZoom=(e=!0)=>{this.zoomable&&this.krpano&&this.krpano.set("control.touchzoom",e)},this.createScenarioPlayer=(e={})=>{this.scenarioPlayer=new x_(Object.assign({krpano:this.krpano,tour:this,signals:this.signals,language:this.language,isPrepareDefaultAGT:this.isPrepareDefaultAGT,disabledAGTProgressBar:this.disabledAGTProgressBar,soundEnabled:this.soundEnabled},e))},this.getTourScenario=()=>this.scenarioPlayer?this.scenarioPlayer.getActiveScenario():null,this.togglePlayStepByStepId=e=>{this.scenarioPlayer&&this.scenarioPlayer.togglePlayStepByStepId(e)},this.handleOnSoundPluginLoaded=()=>{this.krpano&&(this.props.bgSound&&this.props.bgSound.enable&&this.props.bgSound.sound&&(this.backgroundSound=new C_(Object.assign(Object.assign({},this.props.bgSound),{soundEnabled:this.soundEnabled,krpano:this.krpano,signals:this.signals,delayAutoStart:this.props.autoplayOnStart,streaming:!0})),this.signals.playingSoundActionExecuted.add(()=>St(this,void 0,void 0,function*(){this.backgroundSound.changeVolume(this.backgroundVolumeDuringAGT/100)})),this.signals.playingSoundActionStopped.add(()=>St(this,void 0,void 0,function*(){this.backgroundSound.changeVolume(1)})),this.setupOnBackgroundSoundClickedSignal()),this.signals.soundReady.dispatch())},this.configHotspotSignals=()=>{this.krpano&&(this.fireOnMovingPoiClicked((e,t,n,o,i)=>{let r,a,s,l=0;if(null!=n&&null!=o&&(a=n,s=o,i)){var c=this.krpano.getView();let e=c.hlookat<0?c.hlookat+360:c.hlookat;var u=Math.abs(e-(n<0?n+360:n));l=(u=Math.max(Math.min(Math.round(u/60),1),.5))+.2,this.krpano.call(`lookto(${n}, ${o}, ${c.fov}, tween(linear, ${u}));`)}i||(n=this.krpano.getView())&&(a=n.hlookat,s=n.vlookat),this.keepViewOnSceneChanged&&void 0!==a&&void 0!==s&&(r=this.getViewChangedValues(a,s)),this.loadScene(e,l,r)}),this.fireOnPoiMediaStarted(e=>{this.stopCurrentSceneMedia(e),this.pauseBackgroundSound()}),this.fireOnPoiMediaPaused(this.resumeBackgroundSound))},this.setupOnBackgroundSoundClickedSignal=()=>{this.signals.backgroundSoundClick.add(e=>{e&&this.pauseCurrentSceneMedia()})},this.configOnBackgroundGrabbedSignal=()=>{this.signals.backgroundGrab.add(e=>{this.allPoiVisible=e,this.togglePoisVisibility(e)})},this.togglePoisVisibility=e=>{var t=this.getActiveScene();t&&t.togglePoisVisibility(e)},this.configSceneSignals=()=>{this.signals.startLoadingScene.add(()=>{this.loadingScene=!0}),this.signals.finishLoadingScene.add(()=>{this.loadingScene=!1})},this.mapKrpanoVars=(e,t,n)=>{let o;var i={startscene:null==(o=e?this.props.scenes.find(t=>t.code===e):o)?void 0:o.code,"view.hlookat":null==o?void 0:o.hlookat,"view.vlookat":null==o?void 0:o.vlookat,"view.fov":null==o?void 0:o.fov,"view.fovmax":null==o?void 0:o.fovmax,"view.fovmin":null==o?void 0:o.fovmin,"display.loadwhilemoving":!0};return Number.isNaN(Number(t))||Number.isNaN(Number(n))||(i["view.hlookat"]=Number(t),i["view.vlookat"]=Number(n)),i.startscene||([o]=this.props.scenes,o&&(i.startscene=o.code,i["view.fov"]=o.fov||0,i["view.fovmax"]=o.fovmax||0,i["view.fovmin"]=o.fovmin||0,Number.isNaN(Number(t))||Number.isNaN(Number(n)))&&(i["view.hlookat"]=o.hlookat||0,i["view.vlookat"]=o.vlookat||0)),i},this.props=e,this.name=e.name,this.code=e.code,this.metadata=e.metadata,this.activeMarkerColor=e.activeMarkerColor,this.language=e.language,this.isPrepareDefaultAGT=!!e.isPrepareDefaultAGT,this.krpano=void 0,this.scenes=[],this.elementId=void 0,this.backgroundSound=void 0,this.hotspotLabelsHidden=!0,this.hotspotAutoDisplayType=e.autoShow||Pe,this.keepViewOnSceneChanged=e.keepView||!1,this.soundEnabled=null==(t=e.soundEnabled)||t,this.backgroundVolumeDuringAGT=null!=(t=e.bgVolumeDuringAGT)?t:0,this.zoomable=!0,void 0!==e.mwheel&&(this.mwheel=e.mwheel),void 0!==e.allPoiVisible&&(this.allPoiVisible=e.allPoiVisible),void 0!==e.singleClick&&(this.singleClick=e.singleClick),this.blendMode=e.blendMode||R.DEFAULT,this.blendSpeed=e.blendSpeed||"NORMAL",this.autoplayReplay=e.autoplayReplay,this.showNavigationHotspots=e.showNavigationHotspots||!1,this.showNavigationWithoutMovingHotspot=e.showNavigationWithoutMovingHotspot||!1,this.showNavigationHotspotLabels=e.showNavigationHotspotLabels||!1,this.disabledAGTProgressBar=e.disabledAGTProgressBar||!1,this.plugins={radar:null,gyro:null,sound:null},this.signals={toggleFullscreen:new My.Signal,backgroundSoundClick:new My.Signal,autoRotateOneRound:new My.Signal,autoRotateStart:new My.Signal,autoRotateStop:new My.Signal,backgroundGrab:new My.Signal,onLoadedPlugin:new My.Signal,startLoadingScene:new My.Signal,finishLoadingScene:new My.Signal,onViewChanged:new My.Signal,soundReady:new My.Signal,toggleHotspotsVisibility:new My.Signal,toggleHotspotNearestToCenter:new My.Signal,setSubtitleText:new My.Signal,playingSoundActionExecuted:new My.Signal,playingSoundActionStopped:new My.Signal,openFunctionButton:new My.Signal,muteSound:new My.Signal,openMinimap:new My.Signal,updateViewChangedEvents:new My.Signal,poiOver:new My.Signal,poiOut:new My.Signal,poiHover:new My.Signal,poiClick:new My.Signal,poiClicked:new My.Signal,movingPoiClick:new My.Signal,poiMediaPlayed:new My.Signal,poiMediaPaused:new My.Signal,poiMouseUp:new My.Signal,floorPoiClick:new My.Signal,navigationPoiClick:new My.Signal,texturePoiHover:new My.Signal,texturePoiClick:new My.Signal,texturePoiTouched:new My.Signal,toggleLabels:new My.Signal,toggleFloorPoi:new My.Signal,stopScenario:new My.Signal},this.getActiveScene=this.getActiveScene.bind(this),this.goToProduct=this.goToProduct.bind(this),this.loadScene=this.loadScene.bind(this),this.load=this.load.bind(this),this.destroy=this.destroy.bind(this),this.getView=this.getView.bind(this)}loadScene(e,t,n,o){return St(this,void 0,void 0,function*(){var i;!this.krpano||(i=this.krpano.get("xml.scene"))&&e&&i.toLowerCase()===e.toLowerCase()||((i=this.getSceneByCode(e))?(this.stopCurrentSceneMedia(),this.stopCurrentSceneEvents(),this.resumeBackgroundSound(),this.signals.startLoadingScene.dispatch(),i.load(t,n,o),t&&(yield gt(1e3*t)),this.updateRadar(i)):console.error("cannot find scene by code: "+e))})}getActiveScene(){if(!this.krpano)return null;let e=this.krpano.get("xml.scene");return e&&this.scenes.find(t=>t.code.toLowerCase()===e.toLowerCase())||null}load(e){let{elementId:t,onLoaded:n,startscene:o,hlookat:i,vlookat:r}=e,a=this.mapKrpanoVars(o,i,r),s=(this.startingScene=a.startscene,{preserveDrawingBuffer:!1,depth:!0,stencil:!0});this.elementId=t,((e,t=()=>{})=>{var n=document.createElement("script");let o=e;o?(o.startsWith("./")&&(o=o.slice(1)),n.src=o.startsWith("http")?""+o:""+origin+o,n.onload=t,document.head.appendChild(n)):t()})(this.props.sourceFolder.url+"/tour.js",()=>{var e=this.props.sourceFolder.url+"/tour.swf",t=""+qt(this.props.sourceXml.url);embedpano({swf:e,xml:t,target:this.elementId,id:this.code,mwheel:this.mwheel,vars:a,consolelog:!1,webglsettings:s,onready:e=>{this.krpano=new Ny(e),this.webGLSupported=this.krpano.get("device.webGL"),this.scenes=this.props.scenes.map(e=>((e=new s_(Object.assign(Object.assign({},e),{krpano:this.krpano,tourUrl:this.props.sourceFolder.url,signals:this.signals,theme:this.props.theme,metadata:this.props.metadata,allPoiVisible:this.allPoiVisible,singleClick:this.singleClick,autoShow:this.hotspotAutoDisplayType,tourName:this.name,tourCode:this.code,showNavigationHotspots:this.showNavigationHotspots,showNavigationWithoutMovingHotspot:this.showNavigationWithoutMovingHotspot,showNavigationHotspotLabels:this.showNavigationHotspotLabels,blend:this.getBlendValue()}))).pois.forEach(e=>{e.hasDetailModal()&&(this.poiMap[e.code]=e)}),e)),this.configHotspotSignals(),this.configMouseEvents(),this.configOnBackgroundGrabbedSignal(),this.configSceneSignals(),this.configViewSignals(),this.setupSoundPlugin(),setTimeout(()=>{this.updateContextMenu(),this.setupNonSoundPlugins()},500),n&&n()},onerror:e=>{throw new Error(e)}})})}destroy(){try{removepano(this.props.id)}catch(e){console.warn("Unmount error",e)}}toggleLabels(e=!1,t){let n=this.getActiveScene();t&&(n=this.getSceneByCode(t)),this.showLabel=e,n&&n.pois&&n.pois.length&&n.pois.forEach(e=>{(e instanceof Vy||e instanceof Fy)&&e.show&&(this.showLabel?e.show():e.hide())})}screenshot(e=0,t=0,n=!1,o="jpeg",i=1){this.webGLSupported&&this.krpano&&(e=this.krpano.get("global").webGL.makeScreenshot(e,t,n,o,i),(t=document.createElement("a")).href=e,t.download=`screenshot-${(new Date).getTime()}.`+o,t.click())}toggleFloorPois(e){this.scenes.forEach(t=>t.toggleFloorPoiVisibility(e))}getPoiByCodeFromScenes(e){try{return this.scenes.flatMap(e=>e.pois).find(t=>t.code===e)}catch(t){return console.error("Cannot find poi by code "+e),null}}initializeRadarPlugin(e){var t;this.krpano&&(t=this.getRadarColorParams(this.activeMarkerColor).color,e)&&0<e.length&&e.some(e=>!!e.enabledRadar)&&(this.plugins.radar=new Ry({krpano:this.krpano,url:fe.RADAR,keep:!0,fillcolor:t,linecolor:t,signals:this.signals}),this.updateRadar())}toggleLabelVisibility(e=!0,t){t?e?this.hiddenLabelTypes=this.hiddenLabelTypes.filter(e=>e!==t):this.hiddenLabelTypes.push(t):this.hiddenLabelTypes=e?[]:[...Object.keys(ne)],this.scenes.forEach(e=>{var t;null!=(t=e.toggleLabelVisibility)&&t.call(e,this.hiddenLabelTypes)}),(e=this.getActiveScene())&&e.showHotspotNearestToCenter()}getPoiByCode(e){return this.poiMap[e]}getView(){var e;return null==(e=this.krpano)?void 0:e.getView()}goToProduct(e){return St(this,void 0,void 0,function*(){var t;if(!e)return!1;let n=this.getActiveScene();if(!n)return!1;var o,i=[...this.scenes],r=i.findIndex(e=>e.code===n.code),a=(0!==r&&(i.splice(r,1),i.unshift(n)),e.toUpperCase());let s=null,l=null;for(o of i)for(var c of o.pois)if(c.type===te.ITEM_INFO){if(c.itemInfoCode&&a===c.itemInfoCode.toUpperCase()){s=c,l=o;break}if(null!=(t=c.itemInfo)&&t.name&&a===c.itemInfo.name.toUpperCase()){s=c,l=o;break}}return!(!s||!l||(n.code!==l.code&&(yield this.loadScene(l.code,.2)),s.lookAt(),this.signals.poiClick.dispatch(s.props),0))})}updateContextMenu(){this.krpano&&this.krpano.call("\n set(contextmenu.fullscreen, false);\n set(contextmenu.versioninfo, false);\n ")}setupNonSoundPlugins(){this.plugins.gyro=new Dy({krpano:this.krpano,signals:this.signals}),this.plugins.gyro.load()}}let M_=()=>{(()=>{let e,{elementId:t,listeners:n,overrideConfigs:o={}}=nb(),{language:i="vi"}=o,{isMobileDevice:r,tourData:a,metadata:s,tourSoundPlaying:l,activeScenario:c,soundReady:u,showSplashScreen:h,autoPlaying:d,playingTempScenario:p,playingHotspotSound:f,showSlideIn:m,bottomSheetMiddleHeight:g,activePoiCode:v,activePoi:b,tourReady:y,focusingOnVisualizer:_,backgroundSoundPlaying:w,muted:x,viewRotating:k,floorplans:S,setActiveScene:E,setLoading:T,setBackgroundSoundPlaying:P,setSoundReady:C,setTourReady:A,setActiveFloorplan:M,setActivePoi:N,setActivePoiCoords:L,setLoadingScene:D,setPoiCodeNearestToCenter:R,setViewRotating:I,setActiveTourPlugin:$}=tr(),[F,V]=O.useState(!1),[j,H]=O.useState(!1),[z,B]=O.useState(!1),[U,Y]=O.useState(null),W=O.useRef(null),G=O.useRef(!1),X=d&&!p,q=()=>{if(U){let t=U.getActiveScene();var e;t&&(null!=n&&n.onSceneChanged&&n.onSceneChanged(t),t.showHotspotNearestToCenter(),E(t),F||(e=S.find(e=>e.markers&&e.markers.find(e=>e.toScene&&e.toScene.code===t.code)))&&M(e),V(!0))}},K=(e=!0)=>{if(!U)return!1;var t=r?Be.DYNAMIC_VERTICAL(g):Be.HORIZONTAL;m?U.updateViewOffsets(t.x,t.y,e):U.updateViewOffsets(0,0,e)},Z=()=>{U&&(U.fireOnSceneCompleted(q),setTimeout(()=>{St(void 0,void 0,void 0,function*(){if(U&&a)try{let e=U.startingScene;a.scenes.find(t=>t.code===e)}catch(e){console.error("Preloading start scene failed")}finally{H(!0)}else H(!0)}),U.fireOnPoiOver(({poiData:e,coords:t})=>{N(e),L(t)}),U.fireOnPoiHover(e=>{L(e)}),U.fireOnPoiOut(()=>{N(null),L(null)}),U.fireOnPoiClick(e=>{if(null!=n&&n.onPoiClicked&&n.onPoiClicked(),e)switch(e.type){case te.VIDEO:case te.GALLERY:case te.MOVING:case te.PROMOTION:break;case te.ITEM_INFO:null!=e&&e.itemInfo,N(null),L(null)}}),U.fireOnBackgroundSoundClick(e=>{P(e)}),U.fireOnBackgroundGrab(e=>{}),U.fireOnLoadedPlugin((e,t)=>{$({pluginName:e,state:!!t})}),U.fireOnMovingPoiClick((e,t)=>{var n=S.find(e=>e.code===t);n&&M(n)}),U.fireOnStartLoadingScene(()=>{D(!0),G.current=!0,console.log("fireOnStartLoadingScene")}),U.fireOnFinishLoadingScene(()=>{D(!1),G.current=!1,console.log("fireOnFinishLoadingScene")}),U.fireOnViewChanged(e=>{k||I(!0),Q(U.getView())}),U.fireOnTexturePoiHover(e=>{}),U.fireOnTexturePoiTouched(e=>{}),U.fireOnTexturePoiClick(e=>{}),U.fireOnHotspotNearestToCenter(e=>{R(e)}),U.fireOnSetSubtitleText(e=>{}),U.fireOnOpenFuncButton(e=>{}),U.fireOnOpenMinimap(e=>{}),U.initializeRadarPlugin(S),null!=n&&n.onTourLoaded&&n.onTourLoaded(U),T(!1)},500))},Q=Oy(e=>{},500);O.useEffect(()=>{if(a&&t){let e=new A_(Object.assign(Object.assign({},a),{language:i,metadata:s||void 0,soundEnabled:l}));e.fireOnSoundPlayable(()=>{var t=a.tourScenario,n=t&&c&&c.code===t?null:c;e.createScenarioPlayer({defaultScenario:n||t,defaultScenarioCode:null==n?void 0:n.code}),C(!0)}),Y(e)}},[a,t]),O.useEffect(()=>{if(U){U.load({elementId:t,onLoaded:Z});let n=e=>{e.touches.length||U.handleOnMouseUp()};var e;return r&&(e=document.getElementById(t))&&e.addEventListener("touchend",n,{passive:!1}),()=>{var e;U&&U.destroy(),r&&(e=document.getElementById(t))&&e.removeEventListener("touchend",n)}}},[U]),O.useEffect(()=>{if(X)try{W.current&&clearTimeout(W.current),G.current=!0,W.current=setTimeout(()=>{G.current=!1},300)}catch(e){console.error("PreventedUpdateTourView has error",e)}},[X]),O.useEffect(()=>{X||f?K(!1):null!=W&&W.current?K(!!v):setTimeout(()=>{K()},200)},[X,f,m]),O.useEffect(()=>{F&&u&&j&&A(!0)},[F,u,j]),O.useEffect(()=>{console.log("soundReady",u),!h&&u&&U&&U.backgroundSound&&U.backgroundSound.startAuto()},[h,u,U]),O.useEffect(()=>{var e;U&&b&&!d&&(e=U.getPoiByCode(null==b?void 0:b.code))&&(null==e?void 0:e.type)===te.MOVING&&null!=e&&e.onOut()},[d,U]),O.useEffect(()=>{var e;y&&U&&(e=U.getActiveScene())&&e.autoShowHotspots()},[y,U]),O.useEffect(()=>{var e;y&&!z&&c&&(null!=(e=null==U?void 0:U.scenarioPlayer)&&e.updateAGTScenario(c,1),B(!0))},[y,c]),O.useEffect(()=>{U&&(U.scenarioPlayer&&U.scenarioPlayer.setSoundStateForActiveScenario(l),U.backgroundSound)&&U.backgroundSound.updateSoundState(l)},[l,U]),O.useEffect(()=>{var e;U&&(_?(U.signals.poiMediaPaused.active=!0,l&&null!=(e=U.backgroundSound)&&e.isPaused()&&null!=(e=U.backgroundSound)&&e.play()):(U.signals.poiMediaPaused.active=!1,U.pauseCurrentSceneMedia(),d&&null!=(e=U.scenarioPlayer)&&e.pauseScenario(),w&&null!=(e=U.backgroundSound)&&e.pause()))},[_]),O.useEffect(()=>{var e;null!=(e=null==U?void 0:U.backgroundSound)&&e.mute&&U.backgroundSound.mute(x)},[x]);var J=null==(e=null==U?void 0:U.getTourScenario())?void 0:e.code;O.useEffect(()=>{setTimeout(()=>{var e;null!=(e=null==U?void 0:U.signals)&&e.muteSound&&U.signals.muteSound.dispatch(x)})},[x,J])})();var e=nb().elementId;return b.jsx("div",{className:"w-full h-full",id:e})},N_=()=>{fy();var e=tr().canInitVisualizer;return b.jsx(b.Fragment,{children:e&&b.jsx(M_,{})})},L_=e=>{let t=O.useContext(st),[n,o]=O.useState(!1);return b.jsxs("div",{className:"w-full h-full",children:[b.jsx("style",{children:'*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Be Vietnam Pro,sans-serif;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:Be Vietnam Pro,sans-serif;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--color-yellow:#f1c40f;--color-blue-on-dark:#3498db;--color-blue-on-light:#2980b9;--color-blue-on-white:#244385;--color-blue-primary:#3585f7;--color-blue-navy:#244385b8;--color-white-8:#ffffff14;--color-white-16:#ffffff29;--color-white-24:#ffffff3d;--color-white-32:#ffffff52;--color-white-48:#ffffff7a;--color-white-64:#ffffffa3;--color-white-72:#ffffffb8;--color-white-88:#ffffffe0;--color-white:#fff;--color-black-0:#0000;--color-black-4:#0000000a;--color-black-8:#00000014;--color-black-16:#00000029;--color-black-24:#0000003d;--color-black-32:#00000052;--color-black-36:#0000005c;--color-black-48:#0000007a;--color-black-64:#000000a3;--color-black-72:#000000b8;--color-black-80:#000c;--color-black:#000;--color-orange-on-light:#e67e22;--color-orange-on-dark:#f39c12;--color-green-on-light:#27ae60;--color-green-on-dark:#2ecc71;--color-green-72-on-dark:#2ecc71b8;--color-red-on-light:#c0392b;--color-red-on-dark:#e74c3c;--color-purple-on-light:#8e44ad;--color-purple-on-dark:#9b59b6;--color-cyan-on-light:#0095c4;--color-cyan-on-dark:#49a8db;--color-gray-1:#1d1d1d;--color-gray-2:#333;--color-gray-3:#ebebeb;--color-gray-4:#666;--color-gray-5:#999;--color-gray-6:#d6d6d6;--color-gold-on-light:#a48456;--color-gold-on-dark:#d1ba83;--color-pink:#ed2e7e;--color-pink-on-light:#c30052;--color-turquoise-on-light:#16a085;--color-turquoise-on-dark:#1abc9c;--color-mint:#00dfe0;--space-2:2px;--space-4:4px;--space-8:8px;--space-10:10px;--space-12:12px;--space-13:13px;--space-14:14px;--space-16:16px;--space-18:18px;--space-20:20px;--space-22:22px;--space-24:24px;--space-28:28px;--space-32:32px;--space-36:36px;--space-40:40px;--space-48:48px;--space-56:56px;--space-60:60px;--space-64:64px;--space-72:72px;--space-80:80px;--space-88:88px;--space-150:150px;--space-limit:640px;--space-infinity:9999px;--number-infinity:9999;--font-family:"Be Vietnam Pro",sans-serif;--font-size-10:10px;--font-size-12:12px;--font-size-13:13px;--font-size-14:14px;--font-size-15:15px;--font-size-16:16px;--font-size-18:18px;--font-size-20:20px;--font-size-24:24px;--font-size-28:28px;--font-size-32:32px;--font-size-34:34px;--font-size-40:40px;--font-size-48:48px;--font-size-54:54px;--font-size-64:64px;--font-style-italic:italic;--font-style-not-italic:normal;--font-weight-hairline:100;--font-weight-thin:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--line-height-13:13px;--line-height-14:14px;--line-height-15:15px;--line-height-16:16px;--line-height-18:18px;--line-height-20:20px;--line-height-22:22px;--line-height-24:24px;--line-height-26:26px;--line-height-28:28px;--line-height-32:32px;--line-height-36:36px;--line-height-40:40px;--line-height-42:42px;--line-height-48:48px;--line-height-60:60px;--letter-spacing-1:1px;--text-shadow:1px 1px 1px var(--color-black);--z-order-mask:1072;--z-order-modal-on-mask:1073;--z-order-action-on-mask:1074;--tour-logo-max-width:0}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.absolute{position:absolute}.relative{position:relative}.-top-0\\.5{top:-2px}.bottom-\\[-14\\.14213562373095px\\]{bottom:-14.14213562373095px}.left-\\[5px\\]{left:5px}.left-\\[calc\\(50\\%_-_7\\.07px\\)\\]{left:calc(50% - 7.07px)}.z-0{z-index:0}.block{display:block}.flex{display:flex}.hidden{display:none}.h-2\\.5{height:10px}.h-\\[14\\.14213562373095px\\]{height:14.14213562373095px}.h-full{height:100%}.w-2\\.5{width:10px}.w-\\[14\\.14213562373095px\\]{width:14.14213562373095px}.w-full{width:100%}.min-w-\\[60px\\]{min-width:60px}.-translate-x-2\\/4{--tw-translate-x:-50%}.-translate-x-2\\/4,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.rotate-45{--tw-rotate:45deg}.rotate-45,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.overflow-hidden{overflow:hidden}.rounded{border-radius:4px}.rounded-md{border-radius:6px}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.6\\)\\]{background-color:#0009}.p-0{padding:0}.px-3{padding-left:12px;padding-right:12px}.py-2{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-base{font-size:16px;line-height:24px}.font-normal{font-weight:400}.leading-5{line-height:20px}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.shadow-\\[0_1px_2px_-2px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.16\\)\\2c 0_3px_6px_0_rgba\\(0\\2c 0\\2c 0\\2c 0\\.12\\)\\2c 0_5px_12px_4px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.09\\)\\]{--tw-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017;--tw-shadow-colored:0 1px 2px -2px var(--tw-shadow-color),0 3px 6px 0 var(--tw-shadow-color),0 5px 12px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.invert{--tw-invert:invert(100%)}.filter,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.paused{animation-play-state:paused}'}),b.jsx("style",{children:"@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes animation--roll-bottom{0%{opacity:0;transform:translate(-50%,100%)}to{opacity:1;transform:translate(-50%)}}@keyframes animation--roll-left{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes animation--roll-left--half{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(-50%)}}@keyframes animation--roll-right{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes animation--roll-up{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translate(0)}}@keyframes animation--roll-down{0%{opacity:0;transform:translate(-50%,-100%)}to{opacity:1;transform:translate(-50%)}}@keyframes pin-poi-animation{0%{opacity:0}to{opacity:1}}@keyframes poi-item-info-bg-animation{0%{background-color:#0000}to{background-color:#0000007a}}@keyframes poi-item-info-animation{0%{width:0}to{width:100%}}@keyframes straight-pop-animation{0%{width:0}to{width:100%}}@keyframes slash-pop-animation{0%{width:0}to{width:300px}}@keyframes animation-pin-horizontal{0%{background-color:#ffffff3d;width:0}to{background-color:#fff;width:100%}}@keyframes animation-pin-vertical{0%{background-color:#ffffff3d;height:0}to{background-color:#fff;height:100%}}@keyframes animation-popup-content{0%{opacity:0}50%{opacity:0}to{opacity:1}}@keyframes animation-of-content{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes animation-icon{0%{opacity:0;transform:scale(1)}30%{opacity:0;transform:scale(1)}50%{opacity:0;transform:scale(1)}70%{opacity:.4;transform:scale(1)}75%{opacity:.5;transform:scale(1.2)}80%{opacity:.6;transform:scale(.8)}90%{opacity:.8;transform:scale(1.2)}to{opacity:1;transform:scale(1)}}@keyframes hideElement{0%{opacity:1;padding:0 0 0 var(--space-8);width:auto}80%{opacity:1;padding:0 0 0 var(--space-8);width:auto}90%{opacity:0;padding:0 0 0 var(--space-8);width:auto}to{opacity:0;padding:0;width:0}}"}),b.jsx("style",{children:'*{box-sizing:border-box}.rc-select{display:inline-block;font-size:12px;position:relative;width:100px}.rc-select-disabled,.rc-select-disabled input{cursor:not-allowed}.rc-select-disabled .rc-select-selector{opacity:.3}.rc-select-show-arrow.rc-select-loading .rc-select-arrow-icon:after{animation:rcSelectLoadingIcon .5s infinite;border-color:#0000 #999;border-radius:100%;border-style:solid;border-width:2px;box-sizing:border-box;height:12px;margin-top:4px;transform:none;width:12px}.rc-select .rc-select-selection-placeholder{opacity:.4;pointer-events:none}.rc-select .rc-select-selection-search-input{appearance:none}.rc-select .rc-select-selection-search-input::-webkit-search-cancel-button{appearance:none;display:none}.rc-select-single .rc-select-selector{display:flex;position:relative}.rc-select-single .rc-select-selector .rc-select-selection-search,.rc-select-single .rc-select-selector .rc-select-selection-wrap{position:relative;width:100%}.rc-select-single .rc-select-selector .rc-select-selection-search-input{width:100%}.rc-select-single .rc-select-selector .rc-select-selection-item,.rc-select-single .rc-select-selector .rc-select-selection-placeholder{font-weight:400;left:3px;pointer-events:none;position:absolute;top:1px}.rc-select-single:not(.rc-select-customize-input) .rc-select-selector{border:1px solid #000;padding:1px}.rc-select-single:not(.rc-select-customize-input) .rc-select-selector .rc-select-selection-search-input{background:#f003;border:none;outline:none;width:100%}.rc-select-multiple .rc-select-selector{border:1px solid #000;display:flex;padding:1px}.rc-select-multiple .rc-select-selector .rc-select-selection-item{background:#bbb;border-radius:4px;flex:none;margin-right:2px;padding:0 8px}.rc-select-multiple .rc-select-selector .rc-select-selection-item-disabled{cursor:not-allowed;opacity:.5}.rc-select-multiple .rc-select-selector .rc-select-selection-overflow{display:flex;flex-wrap:wrap}.rc-select-multiple .rc-select-selector .rc-select-selection-overflow-item{flex:none;max-width:100%}.rc-select-multiple .rc-select-selector .rc-select-selection-search{max-width:100%;position:relative}.rc-select-multiple .rc-select-selector .rc-select-selection-search-input,.rc-select-multiple .rc-select-selector .rc-select-selection-search-mirror{font-family:system-ui;padding:1px}.rc-select-multiple .rc-select-selector .rc-select-selection-search-mirror{left:0;position:absolute;position:none;top:0;visibility:hidden;white-space:nowrap;z-index:999}.rc-select-multiple .rc-select-selector .rc-select-selection-search-input{background:#f003;border:none;outline:none;width:100%}.rc-select-allow-clear.rc-select-multiple .rc-select-selector{padding-right:20px}.rc-select-allow-clear .rc-select-clear{position:absolute;right:20px;top:0}.rc-select-show-arrow.rc-select-multiple .rc-select-selector{padding-right:20px}.rc-select-show-arrow .rc-select-arrow{pointer-events:none;position:absolute;right:5px;top:0}.rc-select-show-arrow .rc-select-arrow-icon:after{border:5px solid #0000;border-top-color:#999;content:"";display:inline-block;height:0;transform:translateY(5px);width:0}.rc-select-focused .rc-select-selector{border-color:blue!important}.rc-select-dropdown{background:#fff;border:1px solid green;min-height:100px;position:absolute}.rc-select-dropdown-hidden{display:none}.rc-select-item{font-size:16px;line-height:1.5;padding:4px 16px}.rc-select-item-group{color:#999;font-size:80%;font-weight:700}.rc-select-item-option{position:relative}.rc-select-item-option-grouped{padding-left:24px}.rc-select-item-option .rc-select-item-option-state{pointer-events:none;position:absolute;right:0;top:4px}.rc-select-item-option-active{background:#ddd}.rc-select-item-option-disabled{color:#999}.rc-select-item-empty{color:#999;text-align:center}.rc-select-selection__choice-zoom{transition:all .3s}.rc-select-selection__choice-zoom-appear{opacity:0;transform:scale(.5)}.rc-select-selection__choice-zoom-appear.rc-select-selection__choice-zoom-appear-active,.rc-select-selection__choice-zoom-leave{opacity:1;transform:scale(1)}.rc-select-selection__choice-zoom-leave.rc-select-selection__choice-zoom-leave-active{opacity:0;transform:scale(.5)}.rc-select-dropdown-slide-up-appear,.rc-select-dropdown-slide-up-enter{animation-duration:.3s;animation-fill-mode:both;animation-play-state:paused;animation-timing-function:cubic-bezier(.08,.82,.17,1);opacity:0;transform-origin:0 0}.rc-select-dropdown-slide-up-leave{animation-duration:.3s;animation-fill-mode:both;animation-play-state:paused;animation-timing-function:cubic-bezier(.6,.04,.98,.34);opacity:1;transform-origin:0 0}.rc-select-dropdown-slide-up-appear.rc-select-dropdown-slide-up-appear-active.rc-select-dropdown-placement-bottomLeft,.rc-select-dropdown-slide-up-appear.rc-select-dropdown-slide-up-appear-active.rc-select-dropdown-placement-bottomRight,.rc-select-dropdown-slide-up-enter.rc-select-dropdown-slide-up-enter-active.rc-select-dropdown-placement-bottomLeft,.rc-select-dropdown-slide-up-enter.rc-select-dropdown-slide-up-enter-active.rc-select-dropdown-placement-bottomRight{animation-name:rcSelectDropdownSlideUpIn;animation-play-state:running}.rc-select-dropdown-slide-up-leave.rc-select-dropdown-slide-up-leave-active.rc-select-dropdown-placement-bottomLeft,.rc-select-dropdown-slide-up-leave.rc-select-dropdown-slide-up-leave-active.rc-select-dropdown-placement-bottomRight{animation-name:rcSelectDropdownSlideUpOut;animation-play-state:running}.rc-select-dropdown-slide-up-appear.rc-select-dropdown-slide-up-appear-active.rc-select-dropdown-placement-topLeft,.rc-select-dropdown-slide-up-appear.rc-select-dropdown-slide-up-appear-active.rc-select-dropdown-placement-topRight,.rc-select-dropdown-slide-up-enter.rc-select-dropdown-slide-up-enter-active.rc-select-dropdown-placement-topLeft,.rc-select-dropdown-slide-up-enter.rc-select-dropdown-slide-up-enter-active.rc-select-dropdown-placement-topRight{animation-name:rcSelectDropdownSlideDownIn;animation-play-state:running}.rc-select-dropdown-slide-up-leave.rc-select-dropdown-slide-up-leave-active.rc-select-dropdown-placement-topLeft,.rc-select-dropdown-slide-up-leave.rc-select-dropdown-slide-up-leave-active.rc-select-dropdown-placement-topRight{animation-name:rcSelectDropdownSlideDownOut;animation-play-state:running}@keyframes rcSelectDropdownSlideUpIn{0%{opacity:0;transform:scaleY(0);transform-origin:0 0}to{opacity:1;transform:scaleY(1);transform-origin:0 0}}@keyframes rcSelectDropdownSlideUpOut{0%{opacity:1;transform:scaleY(1);transform-origin:0 0}to{opacity:0;transform:scaleY(0);transform-origin:0 0}}@keyframes rcSelectDropdownSlideDownIn{0%{opacity:0;transform:scaleY(0);transform-origin:100% 100%}to{opacity:1;transform:scaleY(1);transform-origin:100% 100%}}@keyframes rcSelectDropdownSlideDownOut{0%{opacity:1;transform:scaleY(1);transform-origin:100% 100%}to{opacity:0;transform:scaleY(0);transform-origin:100% 100%}}@keyframes rcSelectLoadingIcon{0%{transform:rotate(0)}to{transform:rotate(1turn)}}'}),b.jsx("style",{children:".ant-btn{--tw-shadow:0 2px 0 rgba(0,0,0,.015);--tw-shadow-colored:0 2px 0 var(--tw-shadow-color);animation-duration:.3s;animation-timing-function:cubic-bezier(.4,0,.2,1);background-color:#0000003d;background-image:none;border:1px solid #0000;border-radius:25px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:#000000d9;cursor:pointer;display:inline-block;font-size:13px;font-weight:400;height:32px;line-height:1.5715;padding:4.8px 15px;position:relative;text-align:center;touch-action:manipulation;transition-duration:.3s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;white-space:nowrap}.ant-btn:hover{background:var(--color-black-24)}.ant-btn:hover,.ant-btn:not([disabled]):hover{text-decoration:none}.ant-btn-icon-only{border-radius:25px;font-size:15px;height:32px;padding:3.2px 0;vertical-align:-1px;width:32px}"}),b.jsx("style",{children:'@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:local("icomoon"),url(fonts/icomoon.eot?o0athh#iefix) format("embedded-opentype"),url(fonts/icomoon.ttf?o0athh) format("truetype"),url(fonts/icomoon.woff?o0athh) format("woff"),url(fonts/icomoon.svg?o0athh#icomoon) format("svg")}[class*=" icon-"],[class^=icon-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-size:24px;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}[class*=" icon-"]:before,[class^=icon-]:before{color:#1d1d1d;font-size:1em}'}),b.jsx("style",{children:'.icon-person-pin-circle-off_24x24:before{color:#fff;content:"\\eb55"}.icon-clik-rotation-on_24x24:before{content:"\\eb4e"}.icon-clik-rotation-off_24x24:before{content:"\\eb4f"}.icon-map:before{content:"\\eb4d"}.icon-person_pin_circle_24x24:before{content:"\\eb4a"}.icon-vrpano-galery_24x24:before{content:"\\eb4b"}.icon-union_24x24:before{content:"\\eb4c"}.icon-logo-clik-white-64x64:before{color:#fff;content:"\\eb48"}.icon-joystick_24x24:before{color:#007aff;content:"\\eb47"}.icon-door_24x24:before{content:"\\eb49"}.icon-new-bulb_24x24:before{color:#fff;content:"\\eb46"}.icon-show-ai_24x24:before{content:"\\eb45"}.icon-language-cn-circle_24x24 .path1:before{color:#ee1c25;content:"\\eb17"}.icon-language-cn-circle_24x24 .path2:before{color:#ff0;content:"\\eb18";margin-left:-1em}.icon-language-cn-circle_24x24 .path3:before{color:#ff0;content:"\\eb19";margin-left:-1em}.icon-language-cn-circle_24x24 .path4:before{color:#ff0;content:"\\eb1a";margin-left:-1em}.icon-language-cn-circle_24x24 .path5:before{color:#ff0;content:"\\eb1b";margin-left:-1em}.icon-language-cn-circle_24x24 .path6:before{color:#ff0;content:"\\eb1c";margin-left:-1em}.icon-language-en-circle_24x24 .path1:before{color:#fff;content:"\\eb1d"}.icon-language-en-circle_24x24 .path2:before{color:#012169;content:"\\eb1e";margin-left:-1em}.icon-language-en-circle_24x24 .path3:before{color:#012169;content:"\\eb1f";margin-left:-1em}.icon-language-en-circle_24x24 .path4:before{color:#012169;content:"\\eb20";margin-left:-1em}.icon-language-en-circle_24x24 .path5:before{color:#012169;content:"\\eb21";margin-left:-1em}.icon-language-en-circle_24x24 .path6:before{color:#012169;content:"\\eb22";margin-left:-1em}.icon-language-en-circle_24x24 .path7:before{color:#012169;content:"\\eb23";margin-left:-1em}.icon-language-en-circle_24x24 .path8:before{color:#012169;content:"\\eb24";margin-left:-1em}.icon-language-en-circle_24x24 .path9:before{color:#012169;content:"\\eb25";margin-left:-1em}.icon-language-en-circle_24x24 .path10:before{color:#c8102e;content:"\\eb26";margin-left:-1em}.icon-language-en-circle_24x24 .path11:before{color:#c8102e;content:"\\eb27";margin-left:-1em}.icon-language-en-circle_24x24 .path12:before{color:#c8102e;content:"\\eb28";margin-left:-1em}.icon-language-en-circle_24x24 .path13:before{color:#c8102e;content:"\\eb29";margin-left:-1em}.icon-language-en-circle_24x24 .path14:before{color:#c8102e;content:"\\eb2a";margin-left:-1em}.icon-language-jp-circle_24x24 .path1:before{color:#fff;content:"\\eb2b"}.icon-language-jp-circle_24x24 .path2:before{color:#bc002d;content:"\\eb2c";margin-left:-1em}.icon-language-kr-circle_24x24 .path1:before{color:#fff;content:"\\eb2d"}.icon-language-kr-circle_24x24 .path2:before{color:#cd2e3a;content:"\\eb2e";margin-left:-1em}.icon-language-kr-circle_24x24 .path3:before{color:#0047a0;content:"\\eb2f";margin-left:-1em}.icon-language-kr-circle_24x24 .path4:before{color:#cd2e3a;content:"\\eb30";margin-left:-1em}.icon-language-kr-circle_24x24 .path5:before{color:#181b34;content:"\\eb31";margin-left:-1em}.icon-language-kr-circle_24x24 .path6:before{color:#181b34;content:"\\eb32";margin-left:-1em}.icon-language-kr-circle_24x24 .path7:before{color:#181b34;content:"\\eb33";margin-left:-1em}.icon-language-kr-circle_24x24 .path8:before{color:#181b34;content:"\\eb34";margin-left:-1em}.icon-language-kr-circle_24x24 .path9:before{color:#181b34;content:"\\eb35";margin-left:-1em}.icon-language-kr-circle_24x24 .path10:before{color:#181b34;content:"\\eb36";margin-left:-1em}.icon-language-kr-circle_24x24 .path11:before{color:#181b34;content:"\\eb37";margin-left:-1em}.icon-language-kr-circle_24x24 .path12:before{color:#181b34;content:"\\eb38";margin-left:-1em}.icon-language-kr-circle_24x24 .path13:before{color:#181b34;content:"\\eb39";margin-left:-1em}.icon-language-kr-circle_24x24 .path14:before{color:#181b34;content:"\\eb3a";margin-left:-1em}.icon-language-kr-circle_24x24 .path15:before{color:#181b34;content:"\\eb3b";margin-left:-1em}.icon-language-kr-circle_24x24 .path16:before{color:#181b34;content:"\\eb3c";margin-left:-1em}.icon-language-kr-circle_24x24 .path17:before{color:#181b34;content:"\\eb3d";margin-left:-1em}.icon-language-kr-circle_24x24 .path18:before{color:#181b34;content:"\\eb3e";margin-left:-1em}.icon-language-kr-circle_24x24 .path19:before{color:#181b34;content:"\\eb3f";margin-left:-1em}.icon-language-kr-circle_24x24 .path20:before{color:#181b34;content:"\\eb40";margin-left:-1em}.icon-language-kr-circle_24x24 .path21:before{color:#181b34;content:"\\eb41";margin-left:-1em}.icon-language-kr-circle_24x24 .path22:before{color:#181b34;content:"\\eb42";margin-left:-1em}.icon-language-vn-circle_24x24 .path1:before{color:#da251d;content:"\\eb43"}.icon-language-vn-circle_24x24 .path2:before{color:#ff0;content:"\\eb44";margin-left:-1em}.icon-action_open_with_close_24x24:before{content:"\\eb16"}.icon-action_open_with_24x24:before{content:"\\eb14"}.icon-action_translate_24x24:before{content:"\\eb15"}.icon-clik-expand-arrow-up:before{content:"\\eb13"}.icon-volume_off_round-24x24:before{content:"\\eb08"}.icon-volume_up_round-24x24:before{content:"\\eb09"}.icon-clik_share_ios_outlined-24x24:before{content:"\\eb0a"}.icon-hotspot_video_on_outlined-24x24:before{content:"\\eb0b"}.icon-hotspot_facility_on_outlined-24x24:before{content:"\\eb0c"}.icon-hotspot_location_on_outlined-24x24:before{content:"\\eb0d"}.icon-hotspot_brand_on_outlined-24x24:before{content:"\\eb0e"}.icon-hotspot_feature_on_outlined-24x24:before{content:"\\eb0f"}.icon-hotspot_scene_on_outlined-24x24:before{content:"\\eb10"}.icon-functions_others_view_hotspot__off_outlined-24x24:before{content:"\\eb11"}.icon-functions_others_view_hotspot__on_outlined-24x24:before{content:"\\eb12"}.icon-play_youtube_24x24:before{content:"\\eb07"}.icon-grid_on_24x24:before{content:"\\eb05"}.icon-grid_off_24x24:before{content:"\\eb06"}.icon-subtitles_24x24:before{content:"\\eb03"}.icon-subtitles_off_24x24:before{content:"\\eb04"}.icon-push_pin_24x24:before{content:"\\eaff"}.icon-push_pin_outline_24x24:before{content:"\\eb00"}.icon-layout_off_24x24:before{content:"\\eb01"}.icon-layout_on_24x24:before{content:"\\eb02"}.icon-remove_red_eye_24x24:before{content:"\\eafc"}.icon-visibility_off_24x24:before{content:"\\eafd"}.icon-remove_red_eye_filled_24x24:before{content:"\\eafe"}.icon-loyalty_24x24:before{content:"\\eaf2"}.icon-local_activity_outline_24x24:before{content:"\\eaf9"}.icon-arrow_back_24x24:before{content:"\\eafa"}.icon-playlist_play_24x24:before{content:"\\eafb"}.icon-navigation_24x24:before{content:"\\eaf5"}.icon-deblur_24x24:before{content:"\\eaf6"}.icon-palette_24x24:before{content:"\\eaf7"}.icon-slideshow_24x24:before{content:"\\eaf8"}.icon-widgets_24x24:before{content:"\\eaf4"}.icon-gift_24x24:before{content:"\\eaf3"}.icon-closed_caption_disabled_24x24:before{content:"\\eaf1"}.icon-logo_clik_123x40:before{content:"\\eaee"}.icon-3D_24x24:before{content:"\\eaed"}.icon-floor_plan_24x24:before{content:"\\eaec"}.icon-camera_24x24:before{content:"\\eaeb"}.icon-device_screen_lock_rotation_24x24:before{content:"\\eae5"}.icon-device_screen_rotation_24x24:before{content:"\\eae6"}.icon-action_label_off_24x24:before{content:"\\eae7"}.icon-action_label_24x24:before{content:"\\eae8"}.icon-image_music_off_24x24:before{content:"\\eae9"}.icon-image_music_note_24x24:before{content:"\\eaea"}.icon-image_burst_mode_24x24:before{content:"\\eae1"}.icon-av_playlist_add_check_24x24:before{content:"\\eae2"}.icon-communication_list-alt_24x24:before{content:"\\eae3"}.icon-communication_support_24x24:before{content:"\\eae4"}.icon-navigation_fullscreen_exit_24x24:before{content:"\\eae0"}.icon-gyro_100x100:before{content:"\\eadf"}.icon-navigation_fullscreen_24x24:before{content:"\\eade"}.icon-slow_motion_video_24x24:before{content:"\\eadc"}.icon-directions_walk_24X24:before{content:"\\eadd"}.icon-toggle_star_24x24:before{content:"\\ead9"}.icon-toggle_star_half_24x24:before{content:"\\eada"}.icon-toggle_star_outline_24x24:before{content:"\\eadb"}.icon-home_finance_24x24:before{content:"\\ead8"}.icon-logo_clik_60x68 .path1:before{color:#1e6eb4;content:"\\ead6"}.icon-logo_clik_60x68 .path2:before{color:#28c8f0;content:"\\ead7";margin-left:-.8828125em}.icon-home_compass_25x25:before{content:"\\ead5"}.icon-home_assets_air_24x24:before{content:"\\eac7"}.icon-home_assets_area_24x24:before{content:"\\eac8"}.icon-home_assets_bath_tub_24x24:before{content:"\\eac9"}.icon-home_assets_bed_24x24:before{content:"\\eaca"}.icon-home_assets_ceiling_24x24:before{content:"\\eacb"}.icon-home_assets_door_24x24:before{content:"\\eacc"}.icon-home_assets_electrical_24x24:before{content:"\\eacd"}.icon-home_assets_floor_24x24:before{content:"\\eace"}.icon-home_assets_layout_24x24:before{content:"\\eacf"}.icon-home_assets_smart_home_24x24:before{content:"\\ead0"}.icon-home_assets_sofa_single_24x24:before{content:"\\ead1"}.icon-home_assets_wall_24x24:before{content:"\\ead2"}.icon-home_room_dinning_room_24x24:before{content:"\\ead3"}.icon-home_room_kitchen_24x24:before{content:"\\ead4"}.icon-iphone_rotate_300x300:before{content:"\\eac6"}.icon-ipad_rotate_300x300:before{content:"\\eac5"}.icon-flag_en_512x512 .path1:before{color:#f0f0f0;content:"\\eab5"}.icon-flag_en_512x512 .path2:before{color:#0052b4;content:"\\eab6";margin-left:-1em}.icon-flag_en_512x512 .path3:before{color:#0052b4;content:"\\eab7";margin-left:-1em}.icon-flag_en_512x512 .path4:before{color:#0052b4;content:"\\eab8";margin-left:-1em}.icon-flag_en_512x512 .path5:before{color:#0052b4;content:"\\eab9";margin-left:-1em}.icon-flag_en_512x512 .path6:before{color:#0052b4;content:"\\eaba";margin-left:-1em}.icon-flag_en_512x512 .path7:before{color:#0052b4;content:"\\eabb";margin-left:-1em}.icon-flag_en_512x512 .path8:before{color:#0052b4;content:"\\eabc";margin-left:-1em}.icon-flag_en_512x512 .path9:before{color:#0052b4;content:"\\eabd";margin-left:-1em}.icon-flag_en_512x512 .path10:before{color:#d80027;content:"\\eabe";margin-left:-1em}.icon-flag_en_512x512 .path11:before{color:#d80027;content:"\\eabf";margin-left:-1em}.icon-flag_en_512x512 .path12:before{color:#d80027;content:"\\eac0";margin-left:-1em}.icon-flag_en_512x512 .path13:before{color:#d80027;content:"\\eac1";margin-left:-1em}.icon-flag_en_512x512 .path14:before{color:#d80027;content:"\\eac2";margin-left:-1em}.icon-flag_vi_512x512 .path1:before{color:#d80027;content:"\\eac3"}.icon-flag_vi_512x512 .path2:before{color:#ffda44;content:"\\eac4";margin-left:-1em}.icon-toggle_background_32x120:before{content:"\\eab4"}.icon-logo_clik_44x18:before{content:"\\e900"}.icon-marker_pick_11x18:before{content:"\\eab2"}.icon-marker_close_14x14:before{content:"\\ea3b"}.icon-marker_pin_12x24:before{content:"\\ea3c"}.icon-sound-off_24x24:before{content:"\\e901"}.icon-pause_circle_outline_24x24:before{content:"\\e902"}.icon-skip_next_24x24:before{content:"\\e903"}.icon-cast_24x24:before{content:"\\e904"}.icon-sound-on_24x24:before{content:"\\e905"}.icon-play_circle_filled_24x24:before{content:"\\e906"}.icon-skip_previous_24x24:before{content:"\\e907"}.icon-shuffle_24x24:before{content:"\\e908"}.icon-pause_circle_filled_24x24 .path1:before{color:#000;content:"\\e909"}.icon-pause_circle_filled_24x24 .path2:before{color:#fff;content:"\\eab3";margin-left:-1em}.icon-fast_forward_24x24:before{content:"\\e90a"}.icon-fast_rewind_24x24:before{content:"\\e90b"}.icon-play_arrow_24x24:before{content:"\\e90c"}.icon-repeat_24x24:before{content:"\\e90d"}.icon-pause_single_24x24:before{content:"\\e90e"}.icon-airplay_24x24:before{content:"\\e90f"}.icon-play_circle_outline_24x24:before{content:"\\e910"}.icon-search_small_minus_24x24:before{content:"\\e911"}.icon-search_small_plus_24x24:before{content:"\\e912"}.icon-text_align_center_24x24:before{content:"\\e913"}.icon-plus_circle_outline_24x24:before{content:"\\e914"}.icon-search_24x24:before{content:"\\e915"}.icon-minus_24x24:before{content:"\\e916"}.icon-plus_24x24:before{content:"\\e917"}.icon-edit_compass_en_24x24:before{content:"\\e918"}.icon-text_align_right_24x24:before{content:"\\e919"}.icon-list_check_24x24:before{content:"\\e91a"}.icon-text_align_justify_24x24:before{content:"\\e91b"}.icon-minus_circle_outline_24x24:before{content:"\\e91c"}.icon-show_24x24:before{content:"\\e91d"}.icon-copy_24x24:before{content:"\\e91e"}.icon-add_to_queue_24x24:before{content:"\\e91f"}.icon-comment_minus_24x24:before{content:"\\e920"}.icon-select_multiple_24x24:before{content:"\\e921"}.icon-list_ol_24x24:before{content:"\\e922"}.icon-minus_circle_24x24:before{content:"\\e923"}.icon-move_24x24:before{content:"\\e924"}.icon-comment_plus_24x24:before{content:"\\e925"}.icon-hide_24x24:before{content:"\\e926"}.icon-move_horizontal_24x24:before{content:"\\e927"}.icon-text_align_left_24x24:before{content:"\\e928"}.icon-search_small_24x24:before{content:"\\e929"}.icon-move_vertical_24x24:before{content:"\\e92a"}.icon-minus_square_24x24:before{content:"\\e92b"}.icon-edit_24x24:before{content:"\\e92c"}.icon-comment_check_24x24:before{content:"\\e92d"}.icon-plus_circle_24x24:before{content:"\\e92e"}.icon-comment_24x24:before{content:"\\e92f"}.icon-list_ul_24x24:before{content:"\\e930"}.icon-plus_square_24x24:before{content:"\\e931"}.icon-list_plus_24x24:before{content:"\\e932"}.icon-list_minus_24x24:before{content:"\\e933"}.icon-device_monitor_24x24:before{content:"\\e934"}.icon-device_mobile_alt_24x24:before{content:"\\e935"}.icon-devices:before{content:"\\e936"}.icon-device_tablet_24x24:before{content:"\\e937"}.icon-device_mobile_24x24:before{content:"\\e938"}.icon-device_laptop_24x24:before{content:"\\e939"}.icon-home_building_24x24:before{content:"\\e93a"}.icon-home_alt_fill_24x24:before{content:"\\e93b"}.icon-home_heart_24x24:before{content:"\\e93c"}.icon-home_check_24x24:before{content:"\\e93d"}.icon-home_plus_24x24:before{content:"\\e93e"}.icon-home_alt_minus_24x24:before{content:"\\e93f"}.icon-home_x_24x24:before{content:"\\e940"}.icon-home_outline_24x24:before{content:"\\e941"}.icon-home_alt_plus_24x24:before{content:"\\e942"}.icon-home_alt_x_24x24:before{content:"\\e943"}.icon-home_alt_outline_24x24:before{content:"\\e944"}.icon-home_alt_check_24x24:before{content:"\\e945"}.icon-home_minus_24x24:before{content:"\\e946"}.icon-home_heart-1_24x24:before{content:"\\e947"}.icon-home_fill_24x24:before{content:"\\e948"}.icon-transfer_24x24:before{content:"\\e949"}.icon-cylinder_24x24:before{content:"\\e94a"}.icon-bar_right_24x24:before{content:"\\e94b"}.icon-window_check_24x24:before{content:"\\e94c"}.icon-data_24x24:before{content:"\\e94d"}.icon-window_sidebar_24x24:before{content:"\\e94e"}.icon-window_terminal_24x24:before{content:"\\e94f"}.icon-bar_left_24x24:before{content:"\\e950"}.icon-code_24x24:before{content:"\\e951"}.icon-window_close_24x24:before{content:"\\e952"}.icon-window_24x24:before{content:"\\e953"}.icon-bar_bottom_24x24:before{content:"\\e954"}.icon-window_code_block_24x24:before{content:"\\e955"}.icon-bar_top_24x24:before{content:"\\e956"}.icon-terminal_24x24:before{content:"\\e957"}.icon-user_id_card_24x24:before{content:"\\e958"}.icon-user_x_24x24:before{content:"\\e959"}.icon-user_minus_24x24:before{content:"\\e95a"}.icon-user_circle_24x24:before{content:"\\e95b"}.icon-user_plus_24x24:before{content:"\\e95c"}.icon-user_voice_24x24:before{content:"\\e95d"}.icon-user_24x24:before{content:"\\e95e"}.icon-user_check_24x24:before{content:"\\e95f"}.icon-user_pin_24x24:before{content:"\\e960"}.icon-calendar_event_24x24:before{content:"\\e961"}.icon-calendar_x_24x24:before{content:"\\e962"}.icon-calendar_minus_24x24:before{content:"\\e963"}.icon-calendar_week_24x24:before{content:"\\e964"}.icon-calendar_calendar_24x24:before{content:"\\e965"}.icon-calendar_edit_24x24:before{content:"\\e966"}.icon-calendar_plus_24x24:before{content:"\\e967"}.icon-calendar_check_24x24:before{content:"\\e968"}.icon-calendar_24x24:before{content:"\\e969"}.icon-bar_chart_alt_24x24:before{content:"\\e96a"}.icon-pie_chart_outline_24x24:before{content:"\\e96b"}.icon-trending_down_24x24:before{content:"\\e96c"}.icon-line_chart_down_24x24:before{content:"\\e96d"}.icon-pie_chart_25_24x24:before{content:"\\e96e"}.icon-pie_chart_75_24x24:before{content:"\\e96f"}.icon-doughnut_chart_24x24:before{content:"\\e970"}.icon-pie_chart_outline_25_24x24:before{content:"\\e971"}.icon-bar_chart_square_24x24:before{content:"\\e972"}.icon-bar_chart_24x24:before{content:"\\e973"}.icon-bar_chart_horizontal_24x24:before{content:"\\e974"}.icon-trending_up_24x24:before{content:"\\e975"}.icon-line_chart_up_24x24:before{content:"\\e976"}.icon-pie_chart_50_24x24:before{content:"\\e977"}.icon-menu_more_vertical_24x24:before{content:"\\e978"}.icon-grid_big_round_24x24:before{content:"\\e979"}.icon-grid_small_24x24:before{content:"\\e97a"}.icon-menu_duo_24x24:before{content:"\\e97b"}.icon-grid_small_round_24x24:before{content:"\\e97c"}.icon-navigation_slide_stick_24x24:before{content:"\\e97d"}.icon-menu_close_big_24x24:before{content:"\\e97e"}.icon-grid_dashboard_24x24:before{content:"\\e97f"}.icon-grid_big_24x24:before{content:"\\e980"}.icon-menu_add_collapse_24x24:before{content:"\\e981"}.icon-menu_alt_01_24x24:before{content:"\\e982"}.icon-grid_dashboard_02_24x24:before{content:"\\e983"}.icon-grid_round_24x24:before{content:"\\e984"}.icon-menu_close_small_24x24:before{content:"\\e985"}.icon-grid_horizontal_24x24:before{content:"\\e986"}.icon-menu_alt_04_24x24:before{content:"\\e987"}.icon-menu_more_horizontal_24x24:before{content:"\\e988"}.icon-menu_alt_02_24x24:before{content:"\\e989"}.icon-menu_add_expand_24x24:before{content:"\\e98a"}.icon-menu_hamburger_24x24:before{content:"\\e98b"}.icon-grid_vertical_24x24:before{content:"\\e98c"}.icon-menu_alt_05_24x24:before{content:"\\e98d"}.icon-grid_horizontal_round_24x24:before{content:"\\e98e"}.icon-grid_24x24:before{content:"\\e98f"}.icon-menu_alt_03_24x24:before{content:"\\e990"}.icon-grid_vertical_round_24x24:before{content:"\\e991"}.icon-warning_outline_24x24:before{content:"\\e992"}.icon-error_outline_24x24:before{content:"\\e993"}.icon-warning_24x24:before{content:"\\e994"}.icon-info_circle_24x24:before{content:"\\e995"}.icon-info_square_24x24:before{content:"\\e996"}.icon-info_square_outline_24x24:before{content:"\\e997"}.icon-info_circle_outline_24x24:before{content:"\\e998"}.icon-error_24x24:before{content:"\\e999"}.icon-notification_24x24:before{content:"\\e99a"}.icon-notification_active_24x24:before{content:"\\e99b"}.icon-notification_deactivated_24x24:before{content:"\\e99c"}.icon-notification_dot_24x24:before{content:"\\e99d"}.icon-notification_minus_24x24:before{content:"\\e99e"}.icon-notification_outline_24x24:before{content:"\\e99f"}.icon-notification_outline_dot_24x24:before{content:"\\e9a0"}.icon-notification_outline_minus_24x24:before{content:"\\e9a1"}.icon-notification_outline_plus_24x24:before{content:"\\e9a2"}.icon-notification_plus_24x24:before{content:"\\e9a3"}.icon-dot_03_m_24x24:before{content:"\\e9a4"}.icon-dot_05_xl_24x24:before{content:"\\e9a5"}.icon-line_sx_24x24:before{content:"\\e9a6"}.icon-dot_04_l_24x24:before{content:"\\e9a7"}.icon-line_l_24x24:before{content:"\\e9a8"}.icon-dot_02_s_24x24:before{content:"\\e9a9"}.icon-line_m_24x24:before{content:"\\e9aa"}.icon-dot_01_xs_24x24:before{content:"\\e9ab"}.icon-line_xl_24x24:before{content:"\\e9ac"}.icon-line_s_24x24:before{content:"\\e9ad"}.icon-google_24x24:before{content:"\\e9ae"}.icon-reddit_24x24:before{content:"\\e9af"}.icon-linkedIn_24x24:before{content:"\\e9b0"}.icon-zalo_24x24:before{content:"\\e9b1"}.icon-messenger_24x24:before{content:"\\e9b2"}.icon-css3_24x24:before{content:"\\e9b3"}.icon-instagram_24x24:before{content:"\\e9b4"}.icon-dropbox_24x24:before{content:"\\e9b5"}.icon-unsplash_24x24:before{content:"\\e9b6"}.icon-behance_24x24:before{content:"\\e9b7"}.icon-adobe_xd_24x24:before{content:"\\e9b8"}.icon-slack_24x24:before{content:"\\e9b9"}.icon-javascript_24x24:before{content:"\\e9ba"}.icon-figma_24x24:before{content:"\\e9bb"}.icon-discord_24x24:before{content:"\\e9bc"}.icon-github_24x24:before{content:"\\e9bd"}.icon-spotify_24x24:before{content:"\\e9be"}.icon-paypal_24x24:before{content:"\\e9bf"}.icon-app_store_24x24:before{content:"\\e9c0"}.icon-spectrum_24x24:before{content:"\\e9c1"}.icon-twitter_24x24:before{content:"\\e9c2"}.icon-facebook_24x24:before{content:"\\e9c3"}.icon-apple_24x24:before{content:"\\e9c4"}.icon-trello_24x24:before{content:"\\e9c5"}.icon-linkpath_24x24:before{content:"\\e9c6"}.icon-play_store_24x24:before{content:"\\e9c7"}.icon-html5_24x24:before{content:"\\e9c8"}.icon-stack_overflow_24x24:before{content:"\\e9c9"}.icon-dribbble_24x24:before{content:"\\e9ca"}.icon-invision_24x24:before{content:"\\e9cb"}.icon-snapchat_24x24:before{content:"\\e9cc"}.icon-youtube_24x24:before{content:"\\e9cd"}.icon-sketch_24x24:before{content:"\\e9ce"}.icon-coolicons_24x24:before{content:"\\e9cf"}.icon-file_image_24x24:before{content:"\\e9d0"}.icon-file_blank_outline_24x24:before{content:"\\e9d1"}.icon-note_24x24:before{content:"\\e9d2"}.icon-cloud_close_24x24:before{content:"\\e9d3"}.icon-cloud_up_24x24:before{content:"\\e9d4"}.icon-file_js_24x24:before{content:"\\e9d5"}.icon-file_png_24x24:before{content:"\\e9d6"}.icon-file_find_24x24:before{content:"\\e9d7"}.icon-folder_open_24x24:before{content:"\\e9d8"}.icon-file_jpg_24x24:before{content:"\\e9d9"}.icon-file_pdf_24x24:before{content:"\\e9da"}.icon-folder_plus_24x24:before{content:"\\e9db"}.icon-file_html_24x24:before{content:"\\e9dc"}.icon-cloud_check_24x24:before{content:"\\e9dd"}.icon-file_new_24x24:before{content:"\\e9de"}.icon-cloud_down_24x24:before{content:"\\e9df"}.icon-folder_24x24:before{content:"\\e9e0"}.icon-file_css_24x24:before{content:"\\e9e1"}.icon-file_archive_24x24:before{content:"\\e9e2"}.icon-cloud_off_24x24:before{content:"\\e9e3"}.icon-file_svg_24x24:before{content:"\\e9e4"}.icon-file_blank_fill_24x24:before{content:"\\e9e5"}.icon-cloud_24x24:before{content:"\\e9e6"}.icon-cloud_outline_24x24:before{content:"\\e9e7"}.icon-file_minus_24x24:before{content:"\\e9e8"}.icon-folder_minus_24x24:before{content:"\\e9e9"}.icon-clock_24x24:before{content:"\\e9ea"}.icon-refresh_02_24x24:before{content:"\\e9eb"}.icon-download_done_24x24:before{content:"\\e9ec"}.icon-layers_alt_24x24:before{content:"\\e9ed"}.icon-slider_01_24x24:before{content:"\\e9ee"}.icon-trash_empty_24x24:before{content:"\\e9ef"}.icon-location_outline_24x24:before{content:"\\e9f0"}.icon-log_out_24x24:before{content:"\\e9f1"}.icon-help_circle_outline_24x24:before{content:"\\e9f2"}.icon-settings_24x24:before{content:"\\e9f3"}.icon-done_all_24x24:before{content:"\\e9f4"}.icon-location_map_24x24:before{content:"\\e9f5"}.icon-off_outline_close_24x24:before{content:"\\e9f6"}.icon-alarm_24x24:before{content:"\\e9f7"}.icon-checkbox_24x24:before{content:"\\e9f8"}.icon-tag-outline_24x24:before{content:"\\e9f9"}.icon-flag_fill_24x24:before{content:"\\e9fa"}.icon-cookie_24x24:before{content:"\\e9fb"}.icon-color_24x24:before{content:"\\e9fc"}.icon-share_24x24:before{content:"\\e9fd"}.icon-map_24x24:before{content:"\\e9fe"}.icon-radio_filled_24x24:before{content:"\\e9ff"}.icon-briefcase_24x24:before{content:"\\ea00"}.icon-settings_filled_24x24:before{content:"\\ea01"}.icon-mail_24x24:before{content:"\\ea02"}.icon-flag_outline_24x24:before{content:"\\ea03"}.icon-radio_24x24:before{content:"\\ea04"}.icon-external_link_24x24:before{content:"\\ea05"}.icon-trash_full_24x24:before{content:"\\ea06"}.icon-unlink_24x24:before{content:"\\ea07"}.icon-slider_03_24x24:before{content:"\\ea08"}.icon-circle_check_outline_24x24:before{content:"\\ea09"}.icon-sad_24x24:before{content:"\\ea0a"}.icon-happy_24x24:before{content:"\\ea0b"}.icon-layers_24x24:before{content:"\\ea0c"}.icon-help_circle_24x24:before{content:"\\ea0d"}.icon-settings_future_24x24:before{content:"\\ea0e"}.icon-stopwatch_24x24:before{content:"\\ea0f"}.icon-off_close_24x24:before{content:"\\ea10"}.icon-tag_24x24:before{content:"\\ea11"}.icon-location_24x24:before{content:"\\ea12"}.icon-credit_card_24x24:before{content:"\\ea13"}.icon-exit_24x24:before{content:"\\ea14"}.icon-circle_checked_24x24:before{content:"\\ea15"}.icon-command_24x24:before{content:"\\ea16"}.icon-circle_check_24x24:before{content:"\\ea17"}.icon-path_24x24:before{content:"\\ea18"}.icon-phone_24x24:before{content:"\\ea19"}.icon-label_24x24:before{content:"\\ea1a"}.icon-checkbox_square_24x24:before{content:"\\ea1b"}.icon-slider_02_24x24:before{content:"\\ea1c"}.icon-mail_open_24x24:before{content:"\\ea1d"}.icon-confused_24x24:before{content:"\\ea1e"}.icon-image_alt_24x24:before{content:"\\ea1f"}.icon-heart_outline_24x24:before{content:"\\ea20"}.icon-download_24x24:before{content:"\\ea21"}.icon-share_outline_24x24:before{content:"\\ea22"}.icon-loading_24x24:before{content:"\\ea23"}.icon-bulb_24x24:before{content:"\\ea24"}.icon-heart_fill_24x24:before{content:"\\ea25"}.icon-link_24x24:before{content:"\\ea26"}.icon-refresh_24x24:before{content:"\\ea27"}.icon-checkbox_checked_24x24:before{content:"\\ea28"}.icon-done_24x24:before{content:"\\ea29"}.icon-alarm_add_24x24:before{content:"\\ea2a"}.icon-credit_card_alt_24x24:before{content:"\\ea2b"}.icon-help_questionmark_24x24:before{content:"\\ea2c"}.icon-link_02_24x24:before{content:"\\ea2d"}.icon-deg_720_24x24:before{content:"\\ea2e"}.icon-ar_24x24:before{content:"\\ea2f"}.icon-image_slide_24x24:before{content:"\\ea30"}.icon-info_24x24:before{content:"\\ea31"}.icon-language_24x24:before{content:"\\ea32"}.icon-layout_24x24:before{content:"\\ea33"}.icon-money_24x24:before{content:"\\ea34"}.icon-navigator_24x24:before{content:"\\ea35"}.icon-panorama_24x24:before{content:"\\ea36"}.icon-rental_24x24:before{content:"\\ea38"}.icon-deg_360_24x24:before{content:"\\ea37"}.icon-mode_2D_24x24:before{content:"\\ea39"}.icon-mode_3D_24x24:before{content:"\\ea3a"}.icon-click_24x24:before{content:"\\ea3d"}.icon-touch_24x24:before{content:"\\ea3e"}.icon-number_1_24x24:before{content:"\\ea3f"}.icon-number_2_24x24:before{content:"\\ea40"}.icon-number_3_24x24:before{content:"\\ea41"}.icon-number_4_24x24:before{content:"\\ea42"}.icon-number_5_24x24:before{content:"\\ea43"}.icon-number_6_24x24:before{content:"\\ea44"}.icon-number_7_24x24:before{content:"\\ea45"}.icon-number_8_24x24:before{content:"\\ea46"}.icon-number_9_24x24:before{content:"\\ea47"}.icon-sport_24x24:before{content:"\\ea48"}.icon-gym_24x24:before{content:"\\ea49"}.icon-shopping_center_24x24:before{content:"\\ea4a"}.icon-bridge_24x24:before{content:"\\ea4b"}.icon-kid_playground_24x24:before{content:"\\ea4c"}.icon-yacht_24x24:before{content:"\\ea4d"}.icon-hospital_24x24:before{content:"\\ea4e"}.icon-culture_24x24:before{content:"\\ea4f"}.icon-museum_24x24:before{content:"\\ea50"}.icon-club_house_24x24:before{content:"\\ea51"}.icon-tree_24x24:before{content:"\\ea52"}.icon-hotel_24x24:before{content:"\\ea53"}.icon-swimming_pool_24x24:before{content:"\\ea54"}.icon-building_24x24:before{content:"\\ea55"}.icon-community_24x24:before{content:"\\ea56"}.icon-city_24x24:before{content:"\\ea57"}.icon-water_24x24:before{content:"\\ea58"}.icon-villa_24x24:before{content:"\\ea59"}.icon-golf_24x24:before{content:"\\ea5a"}.icon-school_24x24:before{content:"\\ea5b"}.icon-wooden_floor_24x24:before{content:"\\ea5c"}.icon-grocery_24x24:before{content:"\\ea5d"}.icon-park_24x24:before{content:"\\ea5e"}.icon-coffee_24x24:before{content:"\\ea5f"}.icon-hotspot_collapse_24x24:before{content:"\\ea60"}.icon-walk_24x24:before{content:"\\ea61"}.icon-parking_24x24:before{content:"\\ea62"}.icon-airpot_24x24:before{content:"\\ea63"}.icon-restaurant_24x24:before{content:"\\ea64"}.icon-market_24x24:before{content:"\\ea65"}.icon-scene_day_24x24:before{content:"\\ea66"}.icon-view_aerial_24x24:before{content:"\\ea67"}.icon-stair_up_24x24:before{content:"\\ea68"}.icon-elevator_up_24x24:before{content:"\\ea69"}.icon-elevator_normal_24x24:before{content:"\\ea6a"}.icon-scene_night_24x24:before{content:"\\ea6b"}.icon-stair_down_24x24:before{content:"\\ea6c"}.icon-view_walking_24x24:before{content:"\\ea6d"}.icon-elevator_down_24x24:before{content:"\\ea6e"}.icon-hotspot_place_24x24:before{content:"\\ea6f"}.icon-transport_motorbike_24x24:before{content:"\\ea70"}.icon-transport_car_24x24:before{content:"\\ea71"}.icon-transport_bicycle_24x24:before{content:"\\ea72"}.icon-transport_bus_24x24:before{content:"\\ea73"}.icon-transport_walk_24x24:before{content:"\\ea74"}.icon-small_long_down_24x24:before{content:"\\ea75"}.icon-thin_long_left_24x24:before{content:"\\ea76"}.icon-circle_chevron_right_24x24:before{content:"\\ea77"}.icon-long_down_24x24:before{content:"\\ea78"}.icon-short_up_24x24:before{content:"\\ea79"}.icon-thin_long_02_down_24x24:before{content:"\\ea7a"}.icon-chevron_big_right_24x24:before{content:"\\ea7b"}.icon-thin_long_up_24x24:before{content:"\\ea7c"}.icon-long_up_left_24x24:before{content:"\\ea7d"}.icon-chevron_down_24x24:before{content:"\\ea7e"}.icon-thin_long_02_left_24x24:before{content:"\\ea7f"}.icon-long_bottom_down_24x24:before{content:"\\ea80"}.icon-chevron_right_24x24:before{content:"\\ea81"}.icon-chevron_left_24x24:before{content:"\\ea82"}.icon-small_long_left_24x24:before{content:"\\ea83"}.icon-chevron_up_24x24:before{content:"\\ea84"}.icon-thin_long_down_24x24:before{content:"\\ea85"}.icon-long_left_24x24:before{content:"\\ea86"}.icon-circle_chevron_down_24x24:before{content:"\\ea87"}.icon-shrink_24x24:before{content:"\\ea88"}.icon-thin_long_02_up_24x24:before{content:"\\ea89"}.icon-chevron_duo_left_24x24:before{content:"\\ea8a"}.icon-sub_right_24x24:before{content:"\\ea8b"}.icon-thin_big_up_24x24:before{content:"\\ea8c"}.icon-caret_right_24x24:before{content:"\\ea8d"}.icon-chevron_duo_up_24x24:before{content:"\\ea8e"}.icon-chevron_duo_down_24x24:before{content:"\\ea8f"}.icon-short_right_24x24:before{content:"\\ea90"}.icon-caret_up_24x24:before{content:"\\ea91"}.icon-circle_chevron_left_24x24:before{content:"\\ea92"}.icon-circle_right_24x24:before{content:"\\ea93"}.icon-chevron_duo_right_24x24:before{content:"\\ea94"}.icon-circle_down_24x24:before{content:"\\ea95"}.icon-short_left_24x24:before{content:"\\ea96"}.icon-small_long_right_24x24:before{content:"\\ea97"}.icon-circle_chevron_up_24x24:before{content:"\\ea98"}.icon-chevron_big_up_24x24:before{content:"\\ea99"}.icon-rotate_24x24:before{content:"\\ea9a"}.icon-chevron_big_down_24x24:before{content:"\\ea9b"}.icon-long_up_24x24:before{content:"\\ea9c"}.icon-long_up_right_24x24:before{content:"\\ea9d"}.icon-caret_down_24x24:before{content:"\\ea9e"}.icon-thin_long_02_right_24x24:before{content:"\\ea9f"}.icon-long_bottom_up_24x24:before{content:"\\eaa0"}.icon-long_right_24x24:before{content:"\\eaa1"}.icon-caret_left_24x24:before{content:"\\eaa2"}.icon-small_long_up_24x24:before{content:"\\eaa3"}.icon-circle_up_24x24:before{content:"\\eaa4"}.icon-short_down_24x24:before{content:"\\eaa5"}.icon-circle_left_24x24:before{content:"\\eaa6"}.icon-chevron_big_left_24x24:before{content:"\\eaa7"}.icon-first_page_24x24:before{content:"\\eaa8"}.icon-unfold_more_24x24:before{content:"\\eaa9"}.icon-sub_left_24x24:before{content:"\\eaaa"}.icon-thin_big_left_24x24:before{content:"\\eaab"}.icon-last_page_24x24:before{content:"\\eaac"}.icon-thin_big_right_24x24:before{content:"\\eaad"}.icon-expand_24x24:before{content:"\\eaae"}.icon-unfold_less_24x24:before{content:"\\eaaf"}.icon-thin_big_down_24x24:before{content:"\\eab0"}.icon-thin_long_right_24x24:before{content:"\\eab1"}.icon-near-me_24x24:before{content:"\\eaef"}.icon-near-me-disabled_24x24:before{content:"\\eaf0"}.icon-video_library_24x24:before{content:"\\eb50"}.icon-clik-sound_24x24:before{content:"\\eb51"}.icon-repeat-off_24x24:before{content:"\\eb52"}.icon-pause_circle_24x24:before{content:"\\eb53"}.icon-ar:before{content:"\\eb54"}.icon-clik-sound:before{content:"\\eb56"}'}),b.jsx("style",{children:".cvtv-moving-label-poi{--tw-text-opacity:1;--tw-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017;--tw-shadow-colored:0 1px 2px -2px var(--tw-shadow-color),0 3px 6px 0 var(--tw-shadow-color),0 5px 12px 4px var(--tw-shadow-color);background-color:#0009;border-radius:4px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(255 255 255/var(--tw-text-opacity,1));cursor:pointer;font-size:16px;font-weight:400;line-height:20px;min-width:60px;padding:8px 12px;pointer-events:auto;text-align:center}.cvtv-moving-label-poi__inner{border-radius:6px;height:100%;overflow:hidden;width:100%}.cvtv-moving-label-poi__arrow{bottom:-14.14213562373095px;height:14.14213562373095px;left:calc(50% - 7.07px);overflow:hidden;position:absolute;width:14.14213562373095px;z-index:0}.cvtv-moving-label-poi__arrow__content{--tw-translate-x:-50%;--tw-translate-y:0px;--tw-rotate:45deg;background-color:#0009;display:block;height:10px;left:5px;position:relative;top:-7px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));width:10px}.cvtv-product-info-poi__marker{background-color:#0000;border:1px solid #0000;border-radius:100px;position:relative}.cvtv-product-info-poi__marker--label{padding:11px}.cvtv-product-info-poi__marker .info-poi{align-items:center;display:flex;justify-content:center;position:relative;width:0}.cvtv-product-info-poi__marker .info-poi__icon{left:-11px;position:absolute;top:0}.cvtv-product-info-poi__marker .info-poi__label{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative;width:0}.cvtv-product-info-poi__marker .info-poi__label .text{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-family:bold;font-size:14px;line-height:20px;max-width:200px;overflow:hidden;padding-left:20px;text-overflow:ellipsis;white-space:nowrap}.cvtv-product-info-poi__marker .info-poi__label .chevron{padding-left:20px}.cvtv-product-info-poi__marker .info-poi__label .chevron:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));content:var(--tw-content)}@keyframes poi-item-info-bg-animation{0%{background-color:#0000}to{background-color:#0000007a}}.cvtv-product-info-poi__marker--visible{--tw-backdrop-blur:blur(24px);--tw-backdrop-brightness:brightness(1);--tw-backdrop-opacity:opacity(1);animation:poi-item-info-bg-animation .5s ease 0s 1 normal forwards;animation-duration:1s;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);background-color:#0000003d;transition-duration:1s;transition-property:background;transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes poi-item-info-animation{0%{width:0}to{width:100%}}.cvtv-product-info-poi__marker--visible .info-poi{animation:poi-item-info-animation .5s ease 0s 1 normal forwards;overflow:hidden}.cvtv-product-info-poi__marker--visible .info-poi__icon{position:static}.cvtv-product-info-poi__marker--visible .info-poi__label{width:auto}"}),b.jsx("style",{children:'.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow,.cvtv-poi-laser-tooltip .cvtv-poi-laser-tooltip__line-wrap__slash-line{animation:slash-pop-animation .15s linear 0s forwards;-webkit-animation:slash-pop-animation .15s linear 0s forwards}.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__straight-line,.cvtv-poi-laser-tooltip\n.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{animation:straight-pop-animation .15s linear .15s forwards;-webkit-animation:straight-pop-animation .15s linear .15s forwards;left:212px;top:-213px}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header,.cvtv-poi-laser-tooltip-content__image{animation:animation-of-content + .2s .2s ease .15s forwards;opacity:0;width:150px}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__footer [class*=icon-]:before,.cvtv-poi-laser-tooltip-content__header{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.cvtv-poi-laser-tooltip-content__body__main,.cvtv-poi-laser-tooltip-content__body__sub,.cvtv-poi-laser-tooltip-content__header{-webkit-box-orient:vertical;-webkit-line-clamp:5;display:-webkit-box;max-height:16px * 5;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap;word-break:break-word}.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header{text-transform:uppercase}.cvtv-poi-laser-tooltip-content__body,.cvtv-poi-laser-tooltip-content__footer,.cvtv-poi-laser-tooltip-content__header{--tw-translate-y:4px;font-size:12px;line-height:16px;text-shadow:1px 1px 1px #000;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:normal}.cvtv-poi-laser-tooltip-content__header{margin-bottom:4px;margin-left:2px}.cvtv-poi-laser-tooltip-content__image{--tw-shadow:0 1px 8px #0000003d;--tw-shadow-colored:0 1px 8px var(--tw-shadow-color);background-color:#ffffff7a;border-radius:8px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);max-height:640px;object-fit:contain;pointer-events:auto;width:150px}.cvtv-poi-laser-tooltip-content__body{margin-bottom:4px;padding:4px 0 8px 2px}.cvtv-poi-laser-tooltip-content__body__main,.cvtv-poi-laser-tooltip-content__body__sub{padding:4px 0 0}.cvtv-poi-laser-tooltip-content__body__main{font-weight:700;text-transform:uppercase}.cvtv-poi-laser-tooltip-content__footer{align-items:center;display:flex;display:-ms-flexbox;font-weight:700;height:20px;justify-content:end;padding:4px 0 0 16px}.cvtv-poi-laser-tooltip-content__footer__icon,.cvtv-poi-laser-tooltip-content__footer__text{pointer-events:auto}.cvtv-poi-laser-tooltip-content__footer__icon{font-size:14px;line-height:20px;margin-top:2px}.cvtv-poi-laser-tooltip-content .bds-poi-gallery{display:flex;flex-wrap:wrap;height:150px - 2px;pointer-events:auto;position:relative;width:150px - 2px}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));height:100%;width:100%}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item img,.cvtv-poi-laser-tooltip-content .bds-poi-gallery__item video{--tw-bg-opacity:1;background-color:rgb(214 214 214/var(--tw-bg-opacity,1));height:100%;object-fit:cover;width:100%}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__mask{align-items:center;background-color:#0000007a;bottom:0;display:flex;font-size:20px;height:50%;justify-content:center;line-height:28px;position:absolute;right:0;width:33.33%;z-index:1}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-next,.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-prev{--tw-translate-y:-50%;cursor:pointer;position:absolute;text-shadow:none;top:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-prev{left:0}.cvtv-poi-laser-tooltip-content .bds-poi-gallery__btn-next{right:0}.cvtv-poi-laser-tooltip{--tw-translate-x:-0.5px;--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip__focusing-point,.cvtv-poi-laser-tooltip__point{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));border-radius:9999px}.cvtv-poi-laser-tooltip__point{--tw-shadow:0 0 1px #000;--tw-shadow-colored:0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:7px;width:7px}.cvtv-poi-laser-tooltip__focusing-point{height:11px;width:11px}.cvtv-poi-laser-tooltip__body{animation-duration:.5s;animation-timing-function:cubic-bezier(.4,0,.2,1);bottom:0;left:0;pointer-events:none;position:absolute;text-shadow:0 1px 4px #00000040;transition-duration:.5s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.cvtv-poi-laser-tooltip__line-wrap{bottom:2px;left:2px;position:absolute;width:100%}.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow,.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{--tw-shadow:0 0 1px #000;--tw-shadow-colored:0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.cvtv-poi-laser-tooltip__line-wrap__slash-line,.cvtv-poi-laser-tooltip__line-wrap__straight-line{z-index:1}.cvtv-poi-laser-tooltip__line-wrap__slash-line,.cvtv-poi-laser-tooltip__line-wrap__slash-line-shadow{--tw-rotate:-45deg;background:#fff;height:1px;left:1px;position:absolute;top:-1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform-origin:left bottom;width:0}.cvtv-poi-laser-tooltip__line-wrap__straight-line,.cvtv-poi-laser-tooltip__line-wrap__straight-line-shadow{background:linear-gradient(90deg,#fff,#ffffff1a);height:1px;position:absolute;width:0}.cvtv-poi-laser-tooltip-content{align-items:center;display:flex;gap:12px;justify-content:center;pointer-events:auto;position:relative}.cvtv-poi-laser-tooltip-content__popup{animation:animation-popup-content 1s linear forwards;-webkit-animation:animation-popup-content 1s linear forwards;display:flex;flex-direction:column;pointer-events:auto;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__image{margin-bottom:8px}.cvtv-poi-laser-tooltip-content__popup .popup__image,.cvtv-poi-laser-tooltip-content__popup .popup__video{--tw-shadow:0 1px 8px #0000003d;--tw-shadow-colored:0 1px 8px var(--tw-shadow-color);border-radius:16px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__video{filter:drop-shadow(0 1px 8px rgba(0,0,0,.32));position:relative}.cvtv-poi-laser-tooltip-content__popup .popup__video .video__content{border-radius:16px;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__video .video__icon{--tw-translate-x:-50%;--tw-translate-y:-50%;left:50%;position:absolute;top:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__popup\n.popup__video>[class^=icon-]:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.cvtv-poi-laser-tooltip-content__popup .popup__info{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center;width:100%}.cvtv-poi-laser-tooltip-content__popup .popup__info .info__title{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-size:12px;font-weight:700;line-height:15px;margin-bottom:2px;text-shadow:1px 1px 1px #000;white-space:normal}.cvtv-poi-laser-tooltip-content__popup .popup__info .info__subtitle{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));font-size:10px;font-weight:500;line-height:13px;text-shadow:1px 1px 1px #000;white-space:normal}.cvtv-poi-laser-tooltip-content__popup--small{align-items:center;display:flex;flex-direction:column;justify-content:center;width:116px}.cvtv-poi-laser-tooltip-content__popup--small .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:80px}.cvtv-poi-laser-tooltip-content__popup--small .popup__video{width:80px}.cvtv-poi-laser-tooltip-content__popup--medium .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:160px}.cvtv-poi-laser-tooltip-content__popup--medium .popup__video{width:160px}.cvtv-poi-laser-tooltip-content__popup--large .popup__image{--tw-bg-opacity:1;background-color:rgb(235 235 235/var(--tw-bg-opacity,1));height:auto;object-fit:contain;width:240px}.cvtv-poi-laser-tooltip-content__popup--large .popup__video{width:240px}.cvtv-poi-laser-tooltip-content__pin{align-items:center;display:flex;justify-content:center;position:relative}.cvtv-poi-laser-tooltip-content__pin .pin__content{border-radius:4px;display:flex;overflow:hidden;position:relative}.cvtv-poi-laser-tooltip-content__pin .pin__content:after{--tw-content:"";border-radius:4px;content:var(--tw-content);left:0;position:absolute;top:0}.cvtv-poi-laser-tooltip-content__pin .pin__icon{--tw-shadow:0px 1px 8px #00000052;--tw-shadow-colored:0px 1px 8px var(--tw-shadow-color);animation:animation-icon 1s linear;-webkit-animation:animation-icon 1s linear;border-radius:50%;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:flex;height:32px;overflow:hidden;width:32px}.cvtv-poi-laser-tooltip-content__pin .pin__icon .icon__image,.cvtv-poi-laser-tooltip-content__pin .pin__icon .icon__image-strip{height:100%;width:100%}.cvtv-poi-laser-tooltip-content__pin\n.pin__icon\n.icon__image-strip\n.image-strip__content{background-size:var(--width-image-trip) var(--height-image-trip);height:100%;width:100%}.cvtv-poi-laser-tooltip-content__pin--bottom,.cvtv-poi-laser-tooltip-content__pin--top{flex-direction:column}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content,.cvtv-poi-laser-tooltip-content__pin--top .pin__content{height:var(--size-pin-content);width:1px}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content:after,.cvtv-poi-laser-tooltip-content__pin--top .pin__content:after{animation:animation-pin-vertical .5s linear forwards;-webkit-animation:animation-pin-vertical .5s linear forwards;height:0;width:100%}.cvtv-poi-laser-tooltip-content__pin--left,.cvtv-poi-laser-tooltip-content__pin--right{flex-direction:row}.cvtv-poi-laser-tooltip-content__pin--left .pin__content,.cvtv-poi-laser-tooltip-content__pin--right .pin__content{height:1px;width:var(--size-pin-content)}.cvtv-poi-laser-tooltip-content__pin--left .pin__content:after,.cvtv-poi-laser-tooltip-content__pin--right .pin__content:after{animation:animation-pin-horizontal .5s linear forwards;-webkit-animation:animation-pin-horizontal .5s linear forwards;height:100%;width:0}.cvtv-poi-laser-tooltip-content__pin--left .pin__content,.cvtv-poi-laser-tooltip-content__pin--top .pin__content{--tw-rotate:180deg;order:2;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__pin--left .pin__icon,.cvtv-poi-laser-tooltip-content__pin--top .pin__icon{order:1}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__content,.cvtv-poi-laser-tooltip-content__pin--right .pin__content{--tw-rotate:0deg;order:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cvtv-poi-laser-tooltip-content__pin--bottom .pin__icon,.cvtv-poi-laser-tooltip-content__pin--right .pin__icon{order:2}'}),b.jsx("style",{children:'.cvtc__onBoarding-screen-loading{background-color:var(--color-gray-1);height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:9999}.cvtc__onBoarding-screen-loading .onBoarding-screen__background-container{background-attachment:fixed;background-position:50%;background-repeat:no-repeat;background-size:cover;bottom:0;left:0;position:fixed;right:0;top:0}.cvtc__onBoarding-screen-loading .onBoarding-screen__background-backdrop{backdrop-filter:blur(var(--space-24)) opacity(1) brightness(1);background:var(--color-white-24);height:100%;width:100%}.cvtc__onBoarding-screen-loading .onBoarding-screen__content{align-items:center;bottom:50%;color:var(--color-white);display:flex;flex-direction:column;font-size:var(--font-size-16);gap:16px;justify-content:center;left:50%;line-height:var(--line-height-20);position:absolute;text-align:center;transform:translate(-50%,calc(-50% - 25px));width:100%}.cvtc__onBoarding-screen-loading .onBoarding-screen__content .content__tour-title{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--color-white);display:-webkit-box;font-size:var(--font-size-24);font-weight:var(--font-weight-bold);line-height:var(--line-height-32);margin:0 auto var(--space-16);max-width:488px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-shadow:0 2px 3px #000c;word-break:break-word}.cvtc__onBoarding-screen-loading .onBoarding-screen__content .content__tour-list{align-items:center;display:inline-flex!important;flex-direction:column;gap:var(--space-8);justify-content:center;max-width:488px;padding:var(--space-24) var(--space-16);position:relative;width:50%}.cvtc__onBoarding-screen-loading .onBoarding-screen__content .content__tour-list--mobile{width:100%}.cover-spin{bottom:0;display:none;left:0;position:fixed;right:0;top:0;width:100%;z-index:9999}.cover-spin.loading{display:block}.cover-spin:after{animation:spin .8s linear infinite;border:4px solid #000;border-radius:50%;border-top-color:#0000;content:"";display:block;height:40px;position:absolute;width:40px}@media (max-width:576px){.cvtc__onBoarding-screen-loading .onBoarding-screen__content{width:calc(100% - var(--space-16))}.cvtc__onBoarding-screen-loading .onBoarding-screen__content .content__tour-title{font-size:var(--font-size-20);line-height:var(--line-height-28);max-width:unset}}'}),b.jsx("style",{children:".cvtv-ui-layout__tour-logo{align-items:center;display:flex;filter:drop-shadow(0 var(--space-2) var(--space-16) var(--color-black-16));left:var(--space-16);max-width:var(--tour-logo-max-width);position:absolute;top:var(--space-16);z-index:1}.cvtv-ui-layout__tour-logo span{color:var(--color-white);overflow:hidden;padding:var(--space-2) var(--space-8);text-overflow:ellipsis;text-shadow:0 2px 8px var(--color-black-72);text-transform:uppercase;white-space:nowrap}.cvtv-ui-layout__tour-logo img{max-height:40px;max-width:120px}.cvtc-beta-tour__group-pin-action\n.cvtc-auto-play-menu-bar,.cvtc-beta-tour__group-pin-action\n.cvtc-pin-actions,.cvtc-beta-tour__group-pin-action\n.cvtc-show-ai-menu-bar{pointer-events:auto}.cvtc-pin-actions,.cvtc-pin-actions__button{align-items:center;display:flex;justify-content:center}.cvtc-pin-actions__button{background:#0000;box-shadow:unset;height:40px;transition:all .3s ease-in-out;width:40px}.cvtc-pin-actions__button:hover{border-color:#0000}.cvtc-pin-actions__button>[class^=icon-]:before{color:var(--color-white);text-shadow:0 2px 8px var(--color-black-64)}.cvtc-beta-tour__group-pin-action,.cvtc-pin-actions{flex-direction:column;gap:var(--space-8)}.cvtc-beta-tour__group-pin-action{align-items:end;bottom:var(--space-16);display:flex;pointer-events:none;position:absolute;right:var(--space-16)}"}),b.jsx(tb,{config:{apiHost:e.apiHost,elementId:e.elementId,overrideConfigs:e.config,listeners:{onTourLoaded:n=>{t.tour=n,o(!0),e.onLoaded&&(n={goToProduct:n.goToProduct,goToScene:n.loadScene},e.onLoaded(n))},onPoiClicked:e.onPoiClicked}},children:b.jsxs(er,{config:{mobile:e.mobile},children:[b.jsx(N_,{}),n&&b.jsx(dy,{})]})})]})};class D_ extends HTMLElement{constructor(){super(),this.mobile=!1,this.updateAttributes=this.updateAttributes.bind(this)}updateAttributes(e){this.elementId=e.elementId,this.apiHost=e.apiHost,this.config=e.config,this.mobile=e.mobile||!1,this.onLoaded=e.onLoaded,this.onPoiClicked=e.onPoiClicked,this.render()}connectedCallback(){this.apiHost&&this.render()}render(){T.render(b.jsx(L_,{elementId:this.elementId,apiHost:this.apiHost||"",config:this.config||{tourCode:""},mobile:this.mobile,onLoaded:this.onLoaded,onPoiClicked:this.onPoiClicked}),this)}}let R_=e=>{var n=e.id?document.getElementById(e.id):document.querySelector(t);if(!n)throw new Error(t+" element not found.");customElements.get(t)?n.updateAttributes(e):(Object.assign(n,e),"undefined"==typeof window||customElements.get(t)||customElements.define(t,D_))},I_={initVisualizer:R_,destroy:()=>{}};(e=>{"undefined"!=typeof window&&(window.ShowroomVisualizer=Object.assign({},e))})(I_);export{I_ as default};