@ohif/app 3.12.11 → 3.12.18

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 (39) hide show
  1. package/dist/{147.bundle.47af018b91121924a12c.js → 147.bundle.4f6c4b2f06c64d34ddf7.js} +2 -2
  2. package/dist/{1608.bundle.b9abbf4ed6cc2e491dc3.js → 1608.bundle.b937300c52a2b8676e50.js} +2 -2
  3. package/dist/{1730.bundle.2a0a2b1add1748311889.js → 1730.bundle.529dce8e8340059b9ed3.js} +2 -2
  4. package/dist/{1933.bundle.f13c9da3885ad9c19479.js → 1933.bundle.32109000c6d22f6fbfc1.js} +4 -4
  5. package/dist/{213.bundle.1e49414bb6d03e363502.js → 213.bundle.d6bf3e06e4f7a9cad04c.js} +2 -2
  6. package/dist/{2701.bundle.58a6a580073edbb4cc04.js → 2701.bundle.54392a815cb5434534dd.js} +2 -2
  7. package/dist/{2851.bundle.66123d05dfa222a059c8.js → 2851.bundle.cda8d63df28fd6db644f.js} +10 -10
  8. package/dist/{3081.bundle.550fe13c55efd70b390f.js → 3081.bundle.4dcdfebe88148589c520.js} +10 -10
  9. package/dist/{3461.bundle.0c73bb990182139609e5.js → 3461.bundle.72a5f02836647ecc5e68.js} +2 -2
  10. package/dist/{4202.bundle.4f76d3a50d6cf819fba0.js → 4202.bundle.89d2c6f27e2168c1eaf0.js} +1 -1
  11. package/dist/4291.bundle.80f9c614ba358607a571.js +464 -0
  12. package/dist/{4775.bundle.601151a8eac638263a19.js → 4775.bundle.d7934011a28d548f4a8d.js} +2 -2
  13. package/dist/{4819.bundle.e51e52f6727024e69b5b.js → 4819.bundle.cb4b34e4e0186d48663b.js} +4 -4
  14. package/dist/{5028.bundle.087f343f3010ea5baaa3.js → 5028.bundle.270476526d411e1736e7.js} +2 -2
  15. package/dist/{5802.bundle.ae4d88742c353de462c2.js → 5802.bundle.e4154ef85ac25664a583.js} +2 -2
  16. package/dist/5802.css +2 -2
  17. package/dist/7159.bundle.4e35c02553d018f079c8.js +154 -0
  18. package/dist/{8305.bundle.b945ebe7f221f3cc2349.js → 8305.bundle.bc827add8a13f2fd82af.js} +4 -4
  19. package/dist/{8558.bundle.2b8a2ba2264b459e58b0.js → 8558.bundle.6efd49ae8af07ea9219f.js} +2 -2
  20. package/dist/{8583.bundle.e69257af5557d79cdeb5.js → 8583.bundle.747d3af2f3999764317d.js} +4 -4
  21. package/dist/{9845.bundle.31f3e7e2d28fa6033ee5.js → 9845.bundle.8de3f0dd985f18df8668.js} +2 -2
  22. package/dist/{9862.bundle.73ea2a7703bf1bb96275.js → 9862.bundle.700d686f2de51c3a3291.js} +1 -1
  23. package/dist/{app.bundle.1c26e8324dc7782f62d9.js → app.bundle.c5ec540e13e5237c97d9.js} +363 -3574
  24. package/dist/app.bundle.css +8 -8
  25. package/dist/index.html +1 -1
  26. package/dist/sw.js +1 -1
  27. package/package.json +21 -22
  28. package/dist/2424.bundle.dd003e83eb29592ae2a9.js +0 -150
  29. package/dist/7159.bundle.a5991a5d4f0dd8f1c95f.js +0 -85
  30. /package/dist/{1403.bundle.db8ef67d63949b4af72b.js → 1403.bundle.f98313d845a2d793f838.js} +0 -0
  31. /package/dist/{1459.bundle.77654dada16c827f1a5a.js → 1459.bundle.500bfd5ff0ee1344e526.js} +0 -0
  32. /package/dist/{2018.bundle.ceba4527a7734383f332.js → 2018.bundle.322200afa4cb3925b05e.js} +0 -0
  33. /package/dist/{5457.bundle.a19090f18fe4eb839892.js → 5457.bundle.a312cb836e9ee9ae5b71.js} +0 -0
  34. /package/dist/{5485.bundle.8bfbab52e592d30491b4.js → 5485.bundle.26bacdd739c56f92d367.js} +0 -0
  35. /package/dist/{6027.bundle.93d6b429b7e4bb76769c.js → 6027.bundle.6748abce57182c8d5ed3.js} +0 -0
  36. /package/dist/{6163.bundle.ca6f88d139cd765f76d4.js → 6163.bundle.4c8c7da038961117f3df.js} +0 -0
  37. /package/dist/{7639.bundle.776e33d4900903701e23.js → 7639.bundle.f7ed9648dd1b8af9c1d8.js} +0 -0
  38. /package/dist/{85.bundle.3d381d8069283d131485.js → 85.bundle.71701281e6e3cff02973.js} +0 -0
  39. /package/dist/{9927.bundle.58b00ab1062232370613.js → 9927.bundle.9c2714c36b762bf5b38f.js} +0 -0
@@ -78580,7 +78580,7 @@ function uuidv4() {
78580
78580
 
78581
78581
  /***/ },
78582
78582
 
78583
- /***/ 89010
78583
+ /***/ 31863
78584
78584
  (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
78585
78585
 
78586
78586
  "use strict";
@@ -79643,7 +79643,7 @@ const detectionOptions = {
79643
79643
  }
79644
79644
  });
79645
79645
  ;// ../../i18n/package.json
79646
- const package_namespaceObject = {"rE":"3.12.10"};
79646
+ const package_namespaceObject = {"rE":"3.12.18"};
79647
79647
  ;// ../../i18n/src/utils.js
79648
79648
  const languagesMap = {
79649
79649
  ar: 'Arabic',
@@ -79983,6 +79983,8 @@ const PanelSUV_namespaceObject = /*#__PURE__*/JSON.parse('{"Patient Information"
79983
79983
  const ROIThresholdConfiguration_namespaceObject = /*#__PURE__*/JSON.parse('{"Max":"Max","Range":"Range","Start":"Start","End":"End","Percentage of Max SUV":"Percentage of Max SUV","Lower & Upper Ranges":"Lower & Upper Ranges","Run":"Run","Threshold Tools":"Threshold Tools","ThresholdRange":"Threshold Range"}');
79984
79984
  ;// ../../i18n/src/locales/en-US/USAnnotationPanel.json
79985
79985
  const USAnnotationPanel_namespaceObject = /*#__PURE__*/JSON.parse('{"Workflow":"Workflow","Depth guide toggle":"Depth guide toggle","Show pleura percentage":"Show pleura percentage","Sector Annotations":"Sector Annotations","Pleura line":"Pleura line","B-line":"B-line","B-line annotation":"B-line annotation","Pleura annotation":"Pleura annotation","Show Overlay":"Show Overlay","Annotated Frames":"Annotated Frames","Frame":"Frame","Pleura lines":"Pleura lines","B-lines":"B-lines","JSON":"JSON","Annotations":"Annotations"}');
79986
+ ;// ../../i18n/src/locales/en-US/EncapsulatedDocument.json
79987
+ const EncapsulatedDocument_namespaceObject = /*#__PURE__*/JSON.parse('{"Loading document...":"Loading document...","This document type cannot be displayed":"This document type cannot be displayed","Document content does not match its declared type":"Document content does not match its declared type","Unable to retrieve this document":"Unable to retrieve this document","No viewer installed for {{mimeType}}":"No viewer installed for {{mimeType}}","Encapsulated document":"Encapsulated document"}');
79986
79988
  ;// ../../i18n/src/locales/en-US/index.js
79987
79989
 
79988
79990
 
@@ -80015,6 +80017,7 @@ const USAnnotationPanel_namespaceObject = /*#__PURE__*/JSON.parse('{"Workflow":"
80015
80017
 
80016
80018
 
80017
80019
 
80020
+
80018
80021
 
80019
80022
 
80020
80023
  /* harmony default export */ const en_US = ({
@@ -80051,7 +80054,8 @@ const USAnnotationPanel_namespaceObject = /*#__PURE__*/JSON.parse('{"Workflow":"
80051
80054
  Colormaps: Colormaps_namespaceObject,
80052
80055
  PanelSUV: PanelSUV_namespaceObject,
80053
80056
  ROIThresholdConfiguration: ROIThresholdConfiguration_namespaceObject,
80054
- USAnnotationPanel: USAnnotationPanel_namespaceObject
80057
+ USAnnotationPanel: USAnnotationPanel_namespaceObject,
80058
+ EncapsulatedDocument: EncapsulatedDocument_namespaceObject
80055
80059
  }
80056
80060
  });
80057
80061
  ;// ../../i18n/src/locales/es/AboutModal.json
@@ -80762,6 +80766,8 @@ const test_LNG_Hps_namespaceObject = /*#__PURE__*/JSON.parse('{"MPR":"Test MPR",
80762
80766
  const test_LNG_ToolbarLayoutSelector_namespaceObject = /*#__PURE__*/JSON.parse('{"Change layout":"Test Change layout","Common":"Test Common","Advanced":"Test Advanced","Custom":"Test Custom","Hover to select":"Test Hover to select","rows and columns":"Test rows and columns","Click to apply":"Test Click to apply"}');
80763
80767
  ;// ../../i18n/src/locales/test-LNG/USAnnotationPanel.json
80764
80768
  const test_LNG_USAnnotationPanel_namespaceObject = /*#__PURE__*/JSON.parse('{"Workflow":"Test Workflow","Depth guide toggle":"Test Depth guide toggle","Show pleura percentage":"Test Show pleura percentage","Sector Annotations":"Test Sector Annotations","Pleura line":"Test Pleura line","B-line":"Test B-line","B-line annotation":"Test B-line annotation","Pleura annotation":"Test Pleura annotation","Show Overlay":"Test Show Overlay","Annotated Frames":"Test Annotated Frames","Frame":"Test Frame","Pleura lines":"Test Pleura lines","B-lines":"Test B-lines","JSON":"Test JSON","Annotations":"Test Annotations"}');
80769
+ ;// ../../i18n/src/locales/test-LNG/EncapsulatedDocument.json
80770
+ const test_LNG_EncapsulatedDocument_namespaceObject = /*#__PURE__*/JSON.parse('{"Loading document...":"Test Loading document...","This document type cannot be displayed":"Test This document type cannot be displayed","Document content does not match its declared type":"Test Document content does not match its declared type","Unable to retrieve this document":"Test Unable to retrieve this document","No viewer installed for {{mimeType}}":"Test No viewer installed for {{mimeType}}","Encapsulated document":"Test Encapsulated document"}');
80765
80771
  ;// ../../i18n/src/locales/test-LNG/index.js
80766
80772
 
80767
80773
 
@@ -80797,6 +80803,7 @@ const test_LNG_USAnnotationPanel_namespaceObject = /*#__PURE__*/JSON.parse('{"Wo
80797
80803
 
80798
80804
 
80799
80805
 
80806
+
80800
80807
 
80801
80808
 
80802
80809
  /* harmony default export */ const test_LNG = ({
@@ -80836,7 +80843,8 @@ const test_LNG_USAnnotationPanel_namespaceObject = /*#__PURE__*/JSON.parse('{"Wo
80836
80843
  Tools: test_LNG_Tools_namespaceObject,
80837
80844
  Hps: test_LNG_Hps_namespaceObject,
80838
80845
  ToolbarLayoutSelector: test_LNG_ToolbarLayoutSelector_namespaceObject,
80839
- USAnnotationPanel: test_LNG_USAnnotationPanel_namespaceObject
80846
+ USAnnotationPanel: test_LNG_USAnnotationPanel_namespaceObject,
80847
+ EncapsulatedDocument: test_LNG_EncapsulatedDocument_namespaceObject
80840
80848
  }
80841
80849
  });
80842
80850
  ;// ../../i18n/src/locales/index.js
@@ -81012,7 +81020,7 @@ i18next/* default */.A.currentLanguage = () => ({
81012
81020
 
81013
81021
  /***/ },
81014
81022
 
81015
- /***/ 12517
81023
+ /***/ 92082
81016
81024
  (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
81017
81025
 
81018
81026
  "use strict";
@@ -215048,10 +215056,13 @@ const ViewportDialog = ({
215048
215056
  ;// ../../ui-next/src/components/DropdownMenu/index.ts
215049
215057
 
215050
215058
 
215051
- // EXTERNAL MODULE: ../../../node_modules/react-shepherd/dist/index.js
215052
- var dist = __webpack_require__(93854);
215059
+ ;// ../../../node_modules/shepherd.js/dist/js/shepherd.mjs
215060
+ /*! shepherd.js 15.3.0 */
215061
+ function t(t){return t instanceof HTMLElement}function e(t){return"function"==typeof t}function n(t){return"string"==typeof t}function o(t){return void 0===t}class i{on(t,e,n,i=!1){var r;return o(this.bindings)&&(this.bindings={}),o(this.bindings[t])&&(this.bindings[t]=[]),null==(r=this.bindings[t])||r.push({handler:e,ctx:n,once:i}),this}once(t,e,n){return this.on(t,e,n,!0)}off(t,e){var n;const i=null==(n=this.bindings)?void 0:n[t];return o(i)||(o(e)?delete this.bindings[t]:this.bindings[t]=i.filter(t=>t.handler!==e)),this}trigger(t,...e){var n;const i=null==(n=this.bindings)?void 0:n[t];if(o(i))return this;for(const n of i.slice()){const{ctx:o,handler:i,once:c}=n,a=o||this;if(i.apply(a,e),c){var r,s;const e=null!=(r=null==(s=this.bindings[t])?void 0:s.indexOf(n))?r:-1;var l;if(-1!==e)null==(l=this.bindings[t])||l.splice(e,1)}}return this}}function shepherd_r(){return shepherd_r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},shepherd_r.apply(null,arguments)}function s(t,e){if(null==t)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(-1!==e.indexOf(o))continue;n[o]=t[o]}return n}const l={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function c(t,e){const n={key:e.key,parents:e.parents,values:e.values,result:e.result},o=null==t?void 0:t.hierarchy;return shepherd_r({},n,{hierarchy:void 0===o?[n]:[...o,n]})}function a(t,e){return t.includes(void 0)?t.filter(t=>void 0!==t):t}function shepherd_u(t,e,n){return n===l.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions[e]!==t.defaultMergeFunctions[e]}function h(t,e){return shepherd_r({},e,Object.fromEntries(Object.entries(t).filter(([t])=>Object.hasOwn(e,t)).map(([t,n])=>!1===n?[t,e.mergeOthers]:"function"==typeof n?[t,n]:[t,e[t]])))}var f;function d(t){return"object"!=typeof t||null===t?f.NOT:Array.isArray(t)?f.ARRAY:function(t){const e=Object.getPrototypeOf(t);if(null===e||e===Object.prototype)return!0;const n=Object.prototype.toString.call(t);if("[object Object]"!==n&&"[object Module]"!==n)return!1;const{constructor:o}=t;if(void 0===o)return!0;const i=o.prototype;if(null===i||"object"!=typeof i)return!1;const r=Object.prototype.toString.call(i);if("[object Object]"!==r&&"[object Module]"!==r)return!1;if(!Object.hasOwn(i,"isPrototypeOf"))return!1;return!0}(t)?f.RECORD:t instanceof Set?f.SET:t instanceof Map?f.MAP:f.OTHER}function shepherd_p(t){const e=Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e));return[...Object.keys(t),...e]}function shepherd_m(t,e){return"object"==typeof t&&Object.prototype.propertyIsEnumerable.call(t,e)}function g(t,e,n){if(void 0===e||0===e.length)return 0;let o=1;for(let i=e.length-1;i>=0;i--){const{parents:r}=e[i];if(r[n]===t||r.includes(t))return o;o+=1}return 0}function v(t){return null==t?void 0:t.hierarchy}function y(t,e,n){if("object"!=typeof t||null===t)return t;const o=v(n),i=g(t,o,0);var r;if(i>0&&void 0!==o)return null==(r=o[o.length-i])?void 0:r.result;if(d(t)===f.RECORD){const o=t;let i=!1;const r={};for(const t of shepherd_p(o)){const s=o[t],l=e.metaDataUpdater(n,{key:t,parents:[o],values:[s],result:r}),c=y(s,e,l);c!==s&&(i=!0),"__proto__"===t?Object.defineProperty(r,t,{value:c,configurable:!0,enumerable:!0,writable:!0}):r[t]=c}return i?r:t}return t}!function(t){t[t.NOT=0]="NOT",t[t.RECORD=1]="RECORD",t[t.ARRAY=2]="ARRAY",t[t.SET=3]="SET",t[t.MAP=4]="MAP",t[t.OTHER=5]="OTHER"}(f||(f={}));const b={mergeRecords:function(t,e,n){if(2===t.length){const o={},i=(i,r)=>{const s=e.metaDataUpdater(n,{key:i,parents:t,values:r,result:o}),c=E(r,e,s);c!==l.skip&&("__proto__"===i?Object.defineProperty(o,i,{value:c,configurable:!0,enumerable:!0,writable:!0}):o[i]=c)},r=t[0],s=t[1];for(const t of shepherd_p(r))i(t,shepherd_m(s,t)?[r[t],s[t]]:[r[t]]);for(const t of shepherd_p(s))shepherd_m(r,t)||i(t,[s[t]]);return o}return function(t,e,n){const o={};for(const i of function(t){const e=new Set;for(const n of t){const t=Object.keys(n);for(const n of t)e.add(n);const o=Object.getOwnPropertySymbols(n);if(o.length>0)for(const t of o)Object.prototype.propertyIsEnumerable.call(n,t)&&e.add(t)}return e}(t)){const r=[];for(const e of t)shepherd_m(e,i)&&r.push(e[i]);const s=e.metaDataUpdater(n,{key:i,parents:t,values:r,result:o}),c=E(r,e,s);c!==l.skip&&("__proto__"===i?Object.defineProperty(o,i,{value:c,configurable:!0,enumerable:!0,writable:!0}):o[i]=c)}return o}(t,e,n)},mergeArrays:function(t,e,n){return t.flat()},mergeSets:function(t,e,n){const o=new Set;for(const e of t)for(const t of e)o.add(t);return o},mergeMaps:function(t,e,n){const o=new Map,i=new Map;for(const e of t)for(const[t,n]of e){const e=i.get(t);void 0===e?i.set(t,[n]):e.push(n)}for(const[r,s]of i){const i=e.metaDataUpdater(n,{key:r,parents:t,values:s,result:o}),c=E(s,e,i);c!==l.skip&&o.set(r,c)}return o},mergeCircularReferences:function(t,e,n,o){var i;const r=e[0],s=v(o);for(let i=1;i<t.length;i++)if(e[i]!==r){var l;const i=e.at(-1);return 0===i?y(t.at(-1),n,o):null==s||null==(l=s[s.length-i])?void 0:l.result}return null==s||null==(i=s[s.length-r])?void 0:i.result},mergeOthers:function(t,e,n){return t.at(-1)}},w=O();function x(...t){return w(...t)}function O(t={},e){const n=function(t,e){var n;const o=c;return{defaultMergeFunctions:b,mergeFunctions:h(t,b),metaDataUpdater:"function"==typeof t.metaDataUpdater?t.metaDataUpdater:o,deepmerge:e,useImplicitDefaultMerging:null!=(n=t.enableImplicitDefaultMerging)&&n,filterValues:!1===t.filterValues?void 0:"function"==typeof t.filterValues?t.filterValues:a,maxDepth:"number"==typeof t.maxDepth&&!Number.isNaN(t.maxDepth)&&t.maxDepth>=0?t.maxDepth:1e3,actions:l}}(t,o);function o(...t){return E(t,n,null!=e?e:void 0)}return o}function E(t,e,n){var o,i,r;const s=null!=(o=null==e.filterValues?void 0:e.filterValues(t,n))?o:t;if(0===s.length)return;const l=v(n),c=null!=(i=null==l?void 0:l.length)?i:"number"==typeof n?n:null!=(r=null==n?void 0:n.depth)?r:0;if(void 0!==e.maxDepth&&c>=e.maxDepth)return S(s,e,n);if(1===s.length){if(void 0!==l){const t=g(s[0],l,0);var a,h,p;if(t>0)return null!=(a=null==(h=l[l.length-t])?void 0:h.result)?a:null==(p=l[l.length-t])?void 0:p.parents[0]}return S(s,e,n)}const m=d(s[0]);if(m!==f.NOT&&m!==f.OTHER)if(2===s.length){if(d(s[1])!==m)return S(s,e,n);const t=g(s[0],l,0),o=g(s[1],l,1);if(0!==t||0!==o)return shepherd_T(s,[t,o],e,n)}else{const t=new Array(s.length);t[0]=g(s[0],l,0);for(let o=1;o<s.length;o++){if(d(s[o])!==m)return S(s,e,n);t[o]=g(s[o],l,o)}if(t.some(t=>0!==t))return shepherd_T(s,t,e,n)}switch(m){case f.RECORD:return function(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);if(shepherd_u(e,"mergeRecords",o))return e.defaultMergeFunctions.mergeRecords(t,e,n);return o}(s,e,n);case f.ARRAY:return function(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);if(shepherd_u(e,"mergeArrays",o))return e.defaultMergeFunctions.mergeArrays(t);return o}(s,e,n);case f.SET:return function(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);if(shepherd_u(e,"mergeSets",o))return e.defaultMergeFunctions.mergeSets(t);return o}(s,e,n);case f.MAP:return function(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);if(shepherd_u(e,"mergeMaps",o))return e.defaultMergeFunctions.mergeMaps(t,e,n);return o}(s,e,n);default:return S(s,e,n)}}function shepherd_T(t,e,n,o){const i=n.mergeFunctions.mergeCircularReferences(t,e,n,o);return shepherd_u(n,"mergeCircularReferences",i)?n.defaultMergeFunctions.mergeCircularReferences(t,e,n,o):i}function S(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return shepherd_u(e,"mergeOthers",o)?e.defaultMergeFunctions.mergeOthers(t):o}function _(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],i=t[o];"constructor"!==o&&"function"==typeof i&&(t[o]=i.bind(t))}return t}function A(t){const{event:e,selector:n}=t.options.advanceOn||{};if(!e)return;const i=function(t,e){return n=>{if(t.isOpen()){const i=t.el&&n.currentTarget===t.el;(!o(e)&&n.currentTarget.matches(e)||i)&&t.tour.next()}}}(t,n);if(!o(n)){const t=document.querySelector(n);if(!t)return;return t.addEventListener(e,i),()=>t.removeEventListener(e,i)}return document.body.addEventListener(e,i,!0),()=>document.body.removeEventListener(e,i,!0)}function R(t){return n(t)&&""!==t?"-"!==t.charAt(t.length-1)?`${t}-`:t:""}function shepherd_L(t){const o=t.options.attachTo||{};let i=e(o.element)?o.element.call(t):o.element;if(n(i))try{i=document.querySelector(i)}catch(t){i=null}return i||null}function C(t){return null==t||(!t.element||!t.on)}function shepherd_P(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)})}const M=["start","end"],shepherd_k=["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-"+M[0],e+"-"+M[1]),[]),shepherd_D=Math.min,shepherd_$=Math.max,j=Math.round,shepherd_H=Math.floor,I=t=>({x:t,y:t}),F={left:"right",right:"left",bottom:"top",top:"bottom"};function shepherd_B(t,e,n){return shepherd_$(t,shepherd_D(e,n))}function V(t,e){return"function"==typeof t?t(e):t}function shepherd_N(t){return t.split("-")[0]}function shepherd_W(t){return t.split("-")[1]}function q(t){return"x"===t?"y":"x"}function shepherd_U(t){return"y"===t?"height":"width"}function z(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function shepherd_Y(t){return q(z(t))}function shepherd_G(t,e,n){void 0===n&&(n=!1);const o=shepherd_W(t),i=shepherd_Y(t),r=shepherd_U(i);let s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=shepherd_et(s)),[s,shepherd_et(s)]}function shepherd_X(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const shepherd_Z=["left","right"],shepherd_K=["right","left"],shepherd_J=["top","bottom"],Q=["bottom","top"];function tt(t,e,n,o){const i=shepherd_W(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?shepherd_K:shepherd_Z:e?shepherd_Z:shepherd_K;case"left":case"right":return e?shepherd_J:Q;default:return[]}}(shepherd_N(t),"start"===n,o);return i&&(r=r.map(t=>t+"-"+i),e&&(r=r.concat(r.map(shepherd_X)))),r}function shepherd_et(t){const e=shepherd_N(t);return F[e]+t.slice(e.length)}function nt(t){return"number"!=typeof t?function(t){var e,n,o,i;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(o=t.bottom)?o:0,left:null!=(i=t.left)?i:0}}(t):{top:t,right:t,bottom:t,left:t}}function ot(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}const shepherd_it=["crossAxis","alignment","allowedPlacements","autoAlignment"],rt=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],st=["mainAxis","crossAxis","limiter"];function shepherd_lt(t,e,n){let{reference:o,floating:i}=t;const r=z(e),s=shepherd_Y(e),l=shepherd_U(s),c=shepherd_N(e),a="y"===r,u=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,f=o[l]/2-i[l]/2;let d;switch(c){case"top":d={x:u,y:o.y-i.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:h};break;case"left":d={x:o.x-i.width,y:h};break;default:d={x:o.x,y:o.y}}const p=shepherd_W(e);return p&&(d[s]+=f*("end"===p?1:-1)*(n&&a?-1:1)),d}async function ct(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=V(e,t),p=nt(d),m=l[f?"floating"===h?"reference":"floating":h],g=ot(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:a,rootBoundary:u,strategy:c})),v="floating"===h?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),b=await(null==r.isElement?void 0:r.isElement(y))&&await(null==r.getScale?void 0:r.getScale(y))||{x:1,y:1},w=ot(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:c}):v);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}const shepherd_at=new Set(["left","top"]);function ut(){return"undefined"!=typeof window}function shepherd_ht(t){return shepherd_pt(t)?(t.nodeName||"").toLowerCase():"#document"}function ft(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function dt(t){var e;return null==(e=(shepherd_pt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function shepherd_pt(t){return!!ut()&&(t instanceof Node||t instanceof ft(t).Node)}function shepherd_mt(t){return!!ut()&&(t instanceof Element||t instanceof ft(t).Element)}function gt(t){return!!ut()&&(t instanceof HTMLElement||t instanceof ft(t).HTMLElement)}function vt(t){return!(!ut()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof ft(t).ShadowRoot)}function yt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=Rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&"inline"!==i&&"contents"!==i}function bt(t){return/^(table|td|th)$/.test(shepherd_ht(t))}function wt(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const xt=/transform|translate|scale|rotate|perspective|filter/,Ot=/paint|layout|strict|content/,Et=t=>!!t&&"none"!==t;let Tt;function St(t){const e=shepherd_mt(t)?Rt(t):t;return Et(e.transform)||Et(e.translate)||Et(e.scale)||Et(e.rotate)||Et(e.perspective)||!_t()&&(Et(e.backdropFilter)||Et(e.filter))||xt.test(e.willChange||"")||Ot.test(e.contain||"")}function _t(){return null==Tt&&(Tt="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Tt}function At(t){return/^(html|body|#document)$/.test(shepherd_ht(t))}function Rt(t){return ft(t).getComputedStyle(t)}function Lt(t){return shepherd_mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ct(t){if("html"===shepherd_ht(t))return t;const e=t.assignedSlot||t.parentNode||vt(t)&&t.host||dt(t);return vt(e)?e.host:e}function Pt(t){const e=Ct(t);return At(e)?(t.ownerDocument||t).body:gt(e)&&yt(e)?e:Pt(e)}function Mt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=Pt(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),s=ft(i);if(r){const t=kt(s);return e.concat(s,s.visualViewport||[],yt(i)?i:[],t&&n?Mt(t):[])}return e.concat(i,Mt(i,[],n))}function kt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Dt(t){const e=Rt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=gt(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,l=j(n)!==r||j(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function $t(t){return shepherd_mt(t)?t:t.contextElement}function jt(t){const e=$t(t);if(!gt(e))return I(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Dt(e);let s=(r?j(n.width):n.width)/o,l=(r?j(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const Ht=I(0);function It(t){const e=ft(t);return _t()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ht}function Ft(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=$t(t);let s=I(1);e&&(o?shepherd_mt(o)&&(s=jt(o)):s=jt(t));const l=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===ft(t)}(r,n,o)?It(r):I(0);let c=(i.left+l.x)/s.x,a=(i.top+l.y)/s.y,u=i.width/s.x,h=i.height/s.y;if(r&&o){const t=ft(r),e=shepherd_mt(o)?ft(o):o;let n=t,i=kt(n);for(;i&&e!==n;){const t=jt(i),e=i.getBoundingClientRect(),o=Rt(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,a*=t.y,u*=t.x,h*=t.y,c+=r,a+=s,n=ft(i),i=kt(n)}}return ot({width:u,height:h,x:c,y:a})}function Bt(t,e){const n=Lt(t).scrollLeft;return e?e.left+n:Ft(dt(t)).left+n}function Vt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-Bt(t,n),y:n.top+e.scrollTop}}function Nt(t,e,n){let o;if("viewport"===e||"layoutViewport"===e)o=function(t,e,n){void 0===n&&(n="viewport");const o="layoutViewport"===n,i=ft(t),r=dt(t),s=i.visualViewport;let l=r.clientWidth,c=r.clientHeight,a=0,u=0;if(s){const t=!_t()||"fixed"===e;o?t||(a=-s.offsetLeft,u=-s.offsetTop):(l=s.width,c=s.height,t&&(a=s.offsetLeft,u=s.offsetTop))}if(Bt(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),o="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-e.clientWidth-o),s="stable both-edges"===getComputedStyle(r).scrollbarGutter?i/2:i;s<=25&&(l-=s)}return{width:l,height:c,x:a,y:u}}(t,n,e);else if("document"===e)o=function(t){const e=Lt(t),n=t.ownerDocument.body,o=shepherd_$(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=shepherd_$(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+Bt(t);const s=-e.scrollTop;return"rtl"===Rt(n).direction&&(r+=shepherd_$(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:r,y:s}}(dt(t));else if(shepherd_mt(e))o=function(t,e){const n=Ft(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=jt(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=It(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ot(o)}function Wt(t,e,n){const o=gt(e),i=dt(e),r="fixed"===n,s=Ft(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const c=I(0);if((o||!r)&&(("body"!==shepherd_ht(e)||yt(i))&&(l=Lt(e)),o)){const t=Ft(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}!o&&i&&(c.x=Bt(i));const a=!i||o||r?I(0):Vt(i,l);return{x:s.left+l.scrollLeft-c.x-a.x,y:s.top+l.scrollTop-c.y-a.y,width:s.width,height:s.height}}function qt(t){return"static"===Rt(t).position}function Ut(t,e){if(!gt(t)||"fixed"===Rt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return dt(t)===n&&(n=n.ownerDocument.body),n}function zt(t,e){const n=ft(t);if(wt(t))return n;if(!gt(t)){let e=Ct(t);for(;e&&!At(e);){if(shepherd_mt(e)&&!qt(e))return e;e=Ct(e)}return n}let o=Ut(t,e);for(;o&&bt(o)&&qt(o);)o=Ut(o,e);return o&&At(o)&&qt(o)&&!St(o)?n:o||function(t){let e=Ct(t);for(;gt(e)&&!At(e);){if(St(e))return e;if(wt(e))return null;e=Ct(e)}return null}(t)||n}const Yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,s=dt(o),l=!!e&&wt(e.floating);if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},a=I(1);const u=I(0),h=gt(o);if((h||!r)&&(("body"!==shepherd_ht(o)||yt(s))&&(c=Lt(o)),h)){const t=Ft(o);a=jt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const f=!s||h||r?I(0):Vt(s,c);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+u.x+f.x,y:n.y*a.y-c.scrollTop*a.y+u.y+f.y}},getDocumentElement:dt,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?wt(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=Mt(t,[],!1).filter(t=>shepherd_mt(t)&&"body"!==shepherd_ht(t)),i=null;const r="fixed"===Rt(t).position;let s=r?Ct(t):t;for(;shepherd_mt(s)&&!At(s);){const t=Rt(s),e=St(s),n=i?i.position:r?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?i=t:o=o.filter(t=>t!==s),s=Ct(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=Nt(e,r[0],i);let l=s.top,c=s.right,a=s.bottom,u=s.left;for(let t=1;t<r.length;t++){const n=Nt(e,r[t],i);l=shepherd_$(n.top,l),c=shepherd_D(n.right,c),a=shepherd_D(n.bottom,a),u=shepherd_$(n.left,u)}return{width:c-u,height:a-l,x:u,y:l}},getOffsetParent:zt,getElementRects:async function(t){const e=this.getOffsetParent||zt,n=this.getDimensions,o=await n(t.floating);return{reference:Wt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=Dt(t);return{width:e,height:n}},getScale:jt,isElement:shepherd_mt,isRTL:function(t){return"rtl"===Rt(t).direction}};function Gt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Xt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,u=$t(t),h=i||s?[...u?Mt(u):[],...e?Mt(e):[]]:[];h.forEach(t=>{i&&t.addEventListener("scroll",n),s&&t.addEventListener("resize",n)});const f=u&&c?function(t,e,n){let o,i=null;const s=dt(t);function l(){var t;clearTimeout(o),null==(t=i)||t.disconnect(),i=null}function c(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),l();const u=t.getBoundingClientRect(),{left:h,top:f,width:d,height:p}=u;if(n||e(),!d||!p)return;const m={rootMargin:-shepherd_H(f)+"px "+-shepherd_H(s.clientWidth-(h+d))+"px "+-shepherd_H(s.clientHeight-(f+p))+"px "+-shepherd_H(h)+"px",threshold:shepherd_$(0,shepherd_D(1,a))||1};let g=!0;function v(e){const n=e[0].intersectionRatio;if(!Gt(u,t.getBoundingClientRect()))return c();if(n!==a){if(!g)return c();n?c(!1,n):o=setTimeout(()=>{c(!1,1e-7)},1e3)}g=!1}try{i=new IntersectionObserver(v,shepherd_r({},m,{root:s.ownerDocument}))}catch(t){i=new IntersectionObserver(v,m)}i.observe(t)}const a=ft(t),u=()=>c(n);return a.addEventListener("resize",u),c(!0),()=>{a.removeEventListener("resize",u),l()}}(u,n,s):null;let d,p=-1,m=null;l&&(m=new ResizeObserver(t=>{let[o]=t;o&&o.target===u&&m&&e&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var t;null==(t=m)||t.observe(e)})),n()}),u&&!a&&m.observe(u),e&&m.observe(e));let g=a?Ft(t):null;return a&&function e(){const o=Ft(t);g&&!Gt(g,o)&&n();g=o,d=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{i&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)}),null==f||f(),null==(t=m)||t.disconnect(),m=null,a&&cancelAnimationFrame(d)}}const Zt=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;const{rects:r,middlewareData:l,placement:c,platform:a,elements:u}=e,h=V(t,e),{crossAxis:f=!1,alignment:d,allowedPlacements:p=shepherd_k,autoAlignment:m=!0}=h,g=s(h,shepherd_it),v=void 0!==d||p===shepherd_k?function(t,e,n){return(t?[...n.filter(e=>shepherd_W(e)===t),...n.filter(e=>shepherd_W(e)!==t)]:n.filter(t=>shepherd_N(t)===t)).filter(n=>!t||shepherd_W(n)===t||!!e&&shepherd_X(n)!==n)}(d||null,m,p):p,y=(null==(n=l.autoPlacement)?void 0:n.index)||0,b=v[y];if(null==b)return{};if(c!==b)return{reset:{placement:v[0]}};const w=await a.detectOverflow(e,g),x=shepherd_G(b,r,await(null==a.isRTL?void 0:a.isRTL(u.floating))),O=[w[shepherd_N(b)],w[x[0]],w[x[1]]],E=[...(null==(o=l.autoPlacement)?void 0:o.overflows)||[],{placement:b,overflows:O}],T=v[y+1];if(T)return{data:{index:y+1,overflows:E},reset:{placement:T}};const S=E.map(t=>{const e=shepherd_W(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),_=(null==(i=S.filter(t=>t[2].slice(0,shepherd_W(t[0])?2:3).every(t=>t<=0))[0])?void 0:i[0])||S[0][0];return _!==c?{data:{index:y+1,overflows:E},reset:{placement:_}}:{}}}},Kt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:l}=e,c=V(t,e),{mainAxis:a=!0,crossAxis:u=!1,limiter:h={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}}}=c,f=s(c,st),d={x:n,y:o},p=await l.detectOverflow(e,f),m=z(i),g=q(m);let v=d[g],y=d[m];const b=(t,e)=>shepherd_B(e+p["y"===t?"top":"left"],e,e-p["y"===t?"bottom":"right"]);a&&(v=b(g,v)),u&&(y=b(m,y));const w=h.fn(shepherd_r({},e,{[g]:v,[m]:y}));return shepherd_r({},w,{data:{x:w.x-n,y:w.y-o,enabled:{[g]:a,[m]:u}}})}}},Jt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:a,elements:u}=e,h=V(t,e),{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0}=h,y=s(h,rt);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const b=shepherd_N(i),w=z(c),x=shepherd_N(c)===c,O=await(null==a.isRTL?void 0:a.isRTL(u.floating)),E=p||(x||!v?[shepherd_et(c)]:function(t){const e=shepherd_et(t);return[shepherd_X(t),e,shepherd_X(e)]}(c)),T="none"!==g;!p&&T&&E.push(...tt(c,v,g,O));const S=[c,...E],_=await a.detectOverflow(e,y),A=[];let R=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&A.push(_[b]),d){const t=shepherd_G(i,l,O);A.push(_[t[0]],_[t[1]])}if(R=[...R,{placement:i,overflows:A}],!A.every(t=>t<=0)){var L,C;const t=((null==(L=r.flip)?void 0:L.index)||0)+1,e=S[t];if(e){if(!("alignment"===d&&w!==z(e))||R.every(t=>z(t.placement)!==w||t.overflows[0]>0))return{data:{index:t,overflows:R},reset:{placement:e}}}let n=null==(C=R.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:C.placement;if(!n)switch(m){case"bestFit":{var P;const t=null==(P=R.filter(t=>{if(T){const e=z(t.placement);return e===w||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:P[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},Qt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:s,platform:l,elements:c,middlewareData:a}=e,{element:u,padding:h=0}=V(t,e)||{};if(null==u)return{};const f=nt(h),d={x:n,y:o},p=shepherd_Y(i),m=shepherd_U(p),g=await l.getDimensions(u),v="y"===p,y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=s.reference[m]+s.reference[p]-d[p]-s.floating[m],O=d[p]-s.reference[p],E=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let T=E?E[w]:0;T&&await(null==l.isElement?void 0:l.isElement(E))||(T=c.floating[w]||s.floating[m]);const S=x/2-O/2,_=T/2-g[m]/2-1,A=shepherd_D(f[y],_),R=shepherd_D(f[b],_),L=T-g[m]-R,C=T/2-g[m]/2+S,P=shepherd_B(A,C,L),M=!a.arrow&&null!=shepherd_W(i)&&C!==P&&s.reference[m]/2-(C<A?A:R)-g[m]/2<0,k=M?C<A?C-A:C-L:0;return{[p]:d[p]+k,data:shepherd_r({[p]:P,centerOffset:C-P-k},M&&{alignmentOffset:k}),reset:M}}}),shepherd_te=function(t){return void 0===t&&(t={}),{options:t,fn(e){var n,o;const{x:i,y:r,placement:s,rects:l,middlewareData:c}=e,{offset:a=0,mainAxis:u=!0,crossAxis:h=!0}=V(t,e),f={x:i,y:r},d=z(s),p=q(d);let m=f[p],g=f[d];const v=V(a,e),y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:null!=(n=v.mainAxis)?n:0,crossAxis:null!=(o=v.crossAxis)?o:0};if(u){const t="y"===p?"height":"width",e=l.reference[p]-l.floating[t]+y.mainAxis,n=l.reference[p]+l.reference[t]-y.mainAxis;m<e?m=e:m>n&&(m=n)}if(h){var b,w;const t="y"===p?"width":"height",e=shepherd_at.has(shepherd_N(s)),n=l.reference[d]-l.floating[t]+(e&&(null==(b=c.offset)?void 0:b[d])||0)+(e?0:y.crossAxis),o=l.reference[d]+l.reference[t]+(e?0:(null==(w=c.offset)?void 0:w[d])||0)-(e?y.crossAxis:0);g<n?g=n:g>o&&(g=o)}return{[p]:m,[d]:g}}}},shepherd_ee=(t,e,n)=>{const o=new Map,i=null!=n?n:{},s=shepherd_r({},Yt,i.platform,{_c:o});return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,c=l.detectOverflow?l:shepherd_r({},l,{detectOverflow:ct}),a=await(null==l.isRTL?void 0:l.isRTL(e));let u=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:f}=shepherd_lt(u,o,a),d=o,p=0;const m={};for(let n=0;n<s.length;n++){const g=s[n];if(!g)continue;const{name:v,fn:y}=g,{x:b,y:w,data:x,reset:O}=await y({x:h,y:f,initialPlacement:o,placement:d,strategy:i,middlewareData:m,rects:u,platform:c,elements:{reference:t,floating:e}});h=null!=b?b:h,f=null!=w?w:f,m[v]=shepherd_r({},m[v],x),O&&p<50&&(p++,"object"==typeof O&&(O.placement&&(d=O.placement),O.rects&&(u=!0===O.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):O.rects),({x:h,y:f}=shepherd_lt(u,d,a))),n=-1)}return{x:h,y:f,placement:d,strategy:i,middlewareData:m}})(t,e,shepherd_r({},i,{platform:s}))};function ne(e){e.cleanup&&e.cleanup();const n=e._getResolvedAttachToOptions();let o=n.element;const i=function(t,e){var n,o,i;const r={strategy:"absolute",middleware:[]},s=function(t){if(t.options.arrow&&t.el)return t.el.querySelector(".shepherd-arrow");return!1}(e),l=C(t),c=null==(n=t.on)?void 0:n.includes("auto"),a=(null==t||null==(o=t.on)?void 0:o.includes("-start"))||(null==t||null==(i=t.on)?void 0:i.includes("-end"));if(!l){var u;if(c)r.middleware.push(Zt({crossAxis:!0,alignment:a?null==t||null==(u=t.on)?void 0:u.split("-").pop():null}));else r.middleware.push(Jt());r.middleware.push(Kt({limiter:shepherd_te(),crossAxis:!0})),c||(r.placement=t.on)}const h=x(r,e.options.floatingUIOptions||{});if(!l&&s&&(d=h.middleware,!Boolean(null==d?void 0:d.some(t=>function(t){return Boolean(t)}(t)&&"arrow"===t.name)))){var f;const t="object"==typeof e.options.arrow?e.options.arrow:{padding:4};h.middleware=[...null!=(f=h.middleware)?f:[],Qt({element:s,padding:a?t.padding:0})]}var d;return h}(n,e),r=C(n);if(r){var s;o=document.body;const t=null==(s=e.shepherdElementComponent)?void 0:s.element;null==t||t.classList.add("shepherd-centered")}return e.cleanup=Xt(o,e.el,()=>{e.el?function(e,n,o,i){shepherd_ee(e,n.el,o).then(function(e,n){return({x:o,y:i,strategy:r,placement:s,middlewareData:l})=>e.el?(n?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:r,left:`${o}px`,top:`${i}px`}),e.el.dataset.popperPlacement=s,function(e,n){const o=e.querySelector(".shepherd-arrow");if(t(o)&&n.arrow){const{x:t,y:e}=n.arrow;Object.assign(o.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:""})}}(e.el,l),e):e}(n,i)).then(t=>new Promise(e=>{setTimeout(()=>e(t),300)})).then(t=>{null!=t&&t.el&&(t.el.tabIndex=0,t.el.focus({preventScroll:!0}))})}(o,e,i,r):null==e.cleanup||e.cleanup()}),e.target=n.element,i}function oe(t,e,...n){const o=document.createElement(t);return re(o,e),shepherd_se(o,n),o}function ie(t,e,...n){const o=document.createElementNS("http://www.w3.org/2000/svg",t);return re(o,e),shepherd_se(o,n),o}function re(t,e){if(e)for(const[n,o]of Object.entries(e))null!=o&&!1!==o&&(n.startsWith("on")&&"function"==typeof o?t.addEventListener(n.slice(2).toLowerCase(),o):"disabled"===n&&!0===o?t.disabled=!0:t.setAttribute(n,String(o)))}function shepherd_se(t,e){for(const n of e)null!=n&&!1!==n&&t.append("string"==typeof n?document.createTextNode(n):n)}function shepherd_le(t,n){return e(t)?t.call(n):t}function shepherd_ce(t,e){const n=t.action?t.action.bind(e.tour):null,o=!!t.disabled&&shepherd_le(t.disabled,e),i=t.label?shepherd_le(t.label,e):null,s=t.text?shepherd_le(t.text,e):null,l=oe("button",shepherd_r({},t.attrs||{},{"aria-label":i||null,class:`${t.classes||""} shepherd-button ${t.secondary?"shepherd-button-secondary":""}`,disabled:o||null,onclick:n,tabindex:"0",type:"button"}));return s&&(l.innerHTML=s),l}function ae(t,n){const o=oe("header",{class:"shepherd-header"});return n.options.title&&o.append(function(t,n){const o=oe("h3",{id:t,class:"shepherd-title"}),i=e(n)?n():n;return o.innerHTML=i,o}(t,n.options.title)),n.options.cancelIcon&&n.options.cancelIcon.enabled&&o.append(function(t,e){return oe("button",shepherd_r({},t.attrs||{},{"aria-label":t.label?t.label:"Close Tour",class:"shepherd-cancel-icon",onclick:t=>{t.preventDefault(),e.cancel()},type:"button"}),oe("span",{"aria-hidden":"true"},"×"))}(n.options.cancelIcon,n)),o}function shepherd_ue(n,i,r){const s=oe("div",{class:"shepherd-content"});return(!o(r.options.title)||r.options.cancelIcon&&r.options.cancelIcon.enabled)&&s.append(ae(i,r)),o(r.options.text)||s.append(function(n,o){const i=oe("div",{class:"shepherd-text",id:n});let r=o.options.text;return e(r)&&(r=r.call(o)),t(r)?i.appendChild(r):i.innerHTML=r,i}(n,r)),Array.isArray(r.options.buttons)&&r.options.buttons.length&&s.append(function(t){const e=oe("footer",{class:"shepherd-footer"});if(t.options.buttons)for(const n of t.options.buttons)e.append(shepherd_ce(n,t));return e}(r)),s}class shepherd_he extends i{constructor(t,e={}){return super(),this._advanceOnCleanup=void 0,this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this._originalTabIndexes=void 0,this.classPrefix=void 0,this.el=void 0,this.shepherdElementComponent=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?R(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,this._originalTabIndexes=new Map,_(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){this._teardownElements(),this.trigger("destroy")}_teardownElements(){var e;this._advanceOnCleanup&&(this._advanceOnCleanup(),this._advanceOnCleanup=null),(e=this).cleanup&&e.cleanup(),e.cleanup=null,this.shepherdElementComponent&&(this.shepherdElementComponent.cleanup(),this.shepherdElementComponent=void 0),t(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this._originalTabIndexes.clear()}getTour(){return this.tour}hide(){var t;null==(t=this.tour.modal)||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){var t;return this._resolvedExtraHighlightElements=(t=this).options.extraHighlights?t.options.extraHighlights.flatMap(t=>Array.from(document.querySelectorAll(t))):[],this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=function(t){const o=t.options.attachTo||{},i=Object.assign({},o);if(e(i.element)&&(i.element=i.element.call(t)),n(i.element)){try{i.element=document.querySelector(i.element)}catch(t){}!i.element&&t.options.skipMissingElement}return i}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return Boolean(this.el&&!this.el.hidden)}show(){return e(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.el&&(this._teardownElements(),this._setupElements())}getElement(){return this.el}getTarget(){return this.target}_storeOriginalTabIndex(t){const e=t.getAttribute("tabindex");null!==e&&this._originalTabIndexes.set(t,e)}_restoreOriginalTabIndexes(){const t=this.target;t&&(this._originalTabIndexes.has(t)?t.setAttribute("tabindex",this._originalTabIndexes.get(t)):t.removeAttribute("tabindex"))}_createTooltipContent(){const t=`${this.id}-description`,i=`${this.id}-label`;this.shepherdElementComponent=function(t){var i,r,s,l;const{classPrefix:c,descriptionId:a,labelId:u,step:h}=t;let f,d,p,m,g,v,y;const b=null!=(i=null==(r=h.options)||null==(r=r.cancelIcon)?void 0:r.enabled)&&i,w=null!=(s=null==(l=h.options)?void 0:l.title)&&s,x=w?void 0:e(h.options.label)?h.options.label.call(h):h.options.label,O=n(x)&&x.trim()?x:null,E=t=>{const{tour:e}=h;switch(t.keyCode){case 9:if((!d||0===d.length)&&v&&0===v.length){t.preventDefault();break}var n,o,i;if(t.shiftKey){if(document.activeElement===g||null!=(n=document.activeElement)&&n.classList.contains("shepherd-element"))t.preventDefault(),null==(o=null!=m?m:y)||o.focus();else if(document.activeElement===p){var r;t.preventDefault(),null==(r=y)||r.focus()}}else if(document.activeElement===y)t.preventDefault(),null==(i=null!=p?p:g)||i.focus();else if(document.activeElement===m){var s;t.preventDefault(),null==(s=g)||s.focus()}break;case 27:e.options.exitOnEsc&&(t.preventDefault(),t.stopPropagation(),h.cancel());break;case 37:e.options.keyboardNavigation&&(t.preventDefault(),t.stopPropagation(),e.back());break;case 39:e.options.keyboardNavigation&&(t.preventDefault(),t.stopPropagation(),e.next())}},T=oe("dialog",{"aria-describedby":o(h.options.text)?null:a,"aria-label":O,"aria-labelledby":h.options.title?u:null,class:["shepherd-element",b?"shepherd-has-cancel-icon":"",w?"shepherd-has-title":""].filter(Boolean).join(" "),[`data-${c}shepherd-step-id`]:h.id,onkeydown:E,open:"true"});if(h.options.arrow&&h.options.attachTo&&h.options.attachTo.element&&h.options.attachTo.on&&T.append(oe("div",{class:"shepherd-arrow","data-popper-arrow":""})),T.append(shepherd_ue(a,u,h)),n(h.options.classes)){const t=h.options.classes.split(" ").filter(t=>!!t.length);t.length&&T.classList.add(...t)}const S='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]';v=[...T.querySelectorAll(S)],g=v[0],y=v[v.length-1];const _=h._getResolvedAttachToOptions();return null!=_&&_.element&&(f=_.element,h._storeOriginalTabIndex(f),f.tabIndex=0,d=[f,...f.querySelectorAll(S)],p=d[0],m=d[d.length-1],f.addEventListener("keydown",E)),{element:T,cleanup:()=>{var t;null==(t=f)||t.removeEventListener("keydown",E)}}}({classPrefix:this.classPrefix,descriptionId:t,labelId:i,step:this});return(this.tour.options.stepsContainer||document.body).append(this.shepherdElementComponent.element),this.shepherdElementComponent.element}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();e(this.options.scrollToHandler)?this.options.scrollToHandler(n):n instanceof Element&&"function"==typeof n.scrollIntoView&&n.scrollIntoView(t)}_getClassOptions(t){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",o=e&&e.classes?e.classes:"",i=[...n.split(" "),...o.split(" ")],r=new Set(i);return Array.from(r).join(" ").trim()}_setOptions(t={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=x({},e||{}),this.options=Object.assign({arrow:!0},e,t,function(t,e){return{floatingUIOptions:x(t.floatingUIOptions||{},e.floatingUIOptions||{})}}(e,t));const{when:n}=this.options;this.options.classes=this._getClassOptions(t),this._teardownElements(),this.id=this.options.id||`step-${shepherd_P()}`,n&&Object.keys(n).forEach(t=>{this.on(t,n[t],this)})}_setupElements(){var e;(t(this.el)&&this._teardownElements(),this.el=this._createTooltipContent(),this.options.advanceOn)&&(this._advanceOnCleanup=null!=(e=A(this))?e:null);ne(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),null==(t=this.tour.modal)||t.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const e=this.shepherdElementComponent.element,n=this.target||document.body,o=this._resolvedExtraHighlightElements;n.classList.add(`${this.classPrefix}shepherd-enabled`),n.classList.add(`${this.classPrefix}shepherd-target`),e.classList.add("shepherd-enabled"),null==o||o.forEach(t=>{t.classList.add(`${this.classPrefix}shepherd-enabled`),t.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(t){const e=t.target,n=t._resolvedExtraHighlightElements;if(!e)return;const o=t.options.highlightClass;o&&(e.classList.add(o),null==n||n.forEach(t=>t.classList.add(o))),e.classList.remove("shepherd-target-click-disabled"),null==n||n.forEach(t=>t.classList.remove("shepherd-target-click-disabled")),!1===t.options.canClickTarget&&(e.classList.add("shepherd-target-click-disabled"),null==n||n.forEach(t=>t.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){const t=this.target||document.body,e=this._resolvedExtraHighlightElements,n=this.options.highlightClass;n&&(t.classList.remove(n),null==e||e.forEach(t=>t.classList.remove(n))),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),null==e||e.forEach(t=>{t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}),this._restoreOriginalTabIndexes()}}function shepherd_fe(t){let e,n=new WeakMap,o=[{width:0,height:0,x:0,y:0,r:0}];const i=ie("path"),r=ie("svg",{class:"shepherd-modal-overlay-container"},i);function s(){i.setAttribute("d",function(t){let e="";const{innerWidth:n,innerHeight:o}=window;return t.forEach(t=>{const{width:n,height:o,x:i=0,y:r=0,r:s=0}=t,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:u=0}="number"==typeof s?{topLeft:s,topRight:s,bottomRight:s,bottomLeft:s}:s;e+=`M${i+l},${r}a${l},${l},0,0,0-${l},${l}V`+(o+r-u)+`a${u},${u},0,0,0,${u},${u}H`+(n+i-a)+`a${a},${a},0,0,0,${a}-${a}`+`V${r+c}`+`a${c},${c},0,0,0-${c}-${c}Z`}),`M${n},${o}H0V0H${n}V${o}Z${e}`.replace(/\s/g,"")}(o))}function l(){o=[{width:0,height:0,x:0,y:0,r:0}],s()}function c(){r.classList.remove("shepherd-modal-is-visible"),d()}function a(){r.classList.add("shepherd-modal-is-visible")}function u(t=0,e=0,n=0,i=0,r,c,a){if(c){{const s=[c,...a||[]],l=[],u=r?[r,...g(r.parentElement)]:[],h=t=>t===c?u:g(t);for(const o of s){if(!o)continue;if(s.indexOf(o)!==s.lastIndexOf(o))continue;const{y:r,height:c}=v(o,h(o)),{x:a,width:u,left:f}=o.getBoundingClientRect();s.some(t=>{if(t===o)return!1;const e=t.getBoundingClientRect(),{y:n,height:i}=v(t,h(t));return a>=e.left&&a+u<=e.left+e.width&&r>=n&&r+c<=n+i})||l.push({width:u+2*t,height:c+2*t,x:(a||f)+n-t,y:r+i-t,r:e})}o=l}s()}else l()}function h(t){t.stopPropagation()}r.addEventListener("touchmove",h),s(),t.append(r);const f=t=>{t.preventDefault()};function d(){e&&(cancelAnimationFrame(e),e=void 0),n=new WeakMap,window.removeEventListener("touchmove",f,{passive:!1})}function p(t,e){const{overflowY:n}=e;return"hidden"!==n&&"visible"!==n&&t.scrollHeight>=t.clientHeight}function m(t){if(!(t instanceof HTMLElement))return[];const{position:e}=window.getComputedStyle(t);if("fixed"===e)return[];const n=[];let o="absolute"!==e;for(let e=t;e;e=e.parentElement){const i=window.getComputedStyle(e);o||e===t||"static"===i.position||(o=!0),o&&p(e,i)&&n.push(e)}return n}function g(t){if(!t)return[];const e=n.get(t);if(e)return e;const o=m(t);return n.set(t,o),o}function v(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,i=n.bottom||o+n.height;for(const t of e){const e=t.getBoundingClientRect(),n=e.y||e.top,r=e.bottom||n+e.height;o=Math.max(o,n),i=Math.min(i,r)}return{y:o,height:Math.max(i-o,0)}}return{closeModalOpening:l,destroy:function(){d(),r.removeEventListener("touchmove",h),r.remove()},hide:c,positionModal:u,setupForStep:function(t){d(),t.tour.options.useModalOverlay?(!function(t){const{modalOverlayOpeningPadding:n,modalOverlayOpeningRadius:o,modalOverlayOpeningXOffset:i=0,modalOverlayOpeningYOffset:r=0}=t.options,s=function(t){const e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;try{for(;n&&n!==window.top;){var o;const t=null==(o=n)?void 0:o.frameElement;if(t){const n=t.getBoundingClientRect();e.top+=n.top+t.scrollTop,e.left+=n.left+t.scrollLeft}n=n.parent}}catch(t){}return e}(t.target),l=(a=t.target,null!=(h=m(a)[0])?h:null),c=()=>{e=void 0,u(n,o,i+s.left,r+s.top,l,t.target,t._resolvedExtraHighlightElements),e=requestAnimationFrame(c)};var a,h;c(),window.addEventListener("touchmove",f,{passive:!1})}(t),a()):c()},show:a,getElement:function(){return r}}}class shepherd_de extends i{constructor(){super(),this.activeTour=void 0,_(this)}}const shepherd_pe=new shepherd_de,shepherd_me="undefined"==typeof window;shepherd_pe.Step=shepherd_me?class{constructor(t){}}:shepherd_he,shepherd_pe.Tour=shepherd_me?class{constructor(t,e){}}:class extends i{constructor(t={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,this._showGeneration=0,_(this);this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},t),this.classPrefix=R(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps);return["active","cancel","complete","inactive","show","start"].map(t=>{(t=>{this.on(t,e=>{(e=e||{}).tour=this,shepherd_pe.trigger(t,e)})})(t)}),this._setTourID(t.id),this}addStep(t,e){let n=t;return n instanceof shepherd_he?n.tour=this:n=new shepherd_he(this,n),o(e)?this.steps.push(n):this.steps.splice(e,0,n),n}addSteps(t){return Array.isArray(t)&&t.forEach(t=>{this.addStep(t)}),this}back(){const t=this.steps.indexOf(this.currentStep);return this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;n=e(this.options.confirmCancel)?await this.options.confirmCancel():window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(e=>e.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return shepherd_pe.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);if(t!==this.steps.length-1)return this.show(t+1,!0);this.complete()}removeStep(t){const e=this.getCurrentStep();this.steps.some((e,n)=>{if(e.id===t)return e.isOpen()&&e.hide(),e.destroy(),this.steps.splice(n,1),!0}),e&&e.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,o=!0){const i=n(t)?this.getById(t):this.steps[t];if(!i)return;this._updateStateBeforeShow();const r=++this._showGeneration;if(e(i.options.showOn)&&!i.options.showOn())return this._skipStep(i,o);const{skipMissingElement:s,waitForElement:l}=i.options,c=i.options.attachTo&&i.options.attachTo.element,a="number"==typeof l&&l>0?l:0;if((n(c)||e(c))&&(s||a>0)&&!shepherd_L(i)){if(a>0)return function(t,e){return new Promise(n=>{const o=shepherd_L(t);if(o||!(e>0))return void n(o);let i=null,r=null,s=null;const l=t=>{var e;null==(e=i)||e.disconnect(),null!==r&&clearInterval(r),null!==s&&clearTimeout(s),n(t)},c=()=>{const e=shepherd_L(t);e&&l(e)};s=setTimeout(()=>l(null),e),"undefined"!=typeof MutationObserver?(i=new MutationObserver(c),i.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})):r=setInterval(c,50)})}(i,a).then(t=>{if(r===this._showGeneration&&this.isActive())return!t&&s?this._skipStep(i,o):void this._showStep(i)});if(s)return this._skipStep(i,o)}this._showStep(i)}_showStep(t){var e;const n=null!=(e=this.currentStep)?e:null;this.currentStep=t,this.trigger("show",{step:t,previous:n}),t.show()}async start(){return this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(t=>t.destroy()),function(e){if(e){const{steps:n}=e;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&(t(e.target)&&e.target.classList.remove("shepherd-target-click-disabled"),e._resolvedExtraHighlightElements&&e._resolvedExtraHighlightElements.forEach(e=>{t(e)&&e.classList.remove("shepherd-target-click-disabled")}))})}}(this),this.trigger(e,{index:n}),shepherd_pe.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),"cancel"!==e&&"complete"!==e||this.modal&&(this.modal.destroy(),this.modal=null),t(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),shepherd_pe.activeTour=this}setupModal(){const t=this.options.modalContainer||document.body;this.modal=shepherd_fe(t)}_skipStep(t,e){const n=this.steps.indexOf(t),o=e?n+1:n-1;if(o<0)this.cancel();else{if(!(o>=this.steps.length))return this.show(o,e);this.complete()}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const e=this.options.tourName||"tour",n=t||shepherd_P();this.id=`${e}--${n}`}};
215062
+ //# sourceMappingURL=shepherd.mjs.map
215063
+
215053
215064
  // EXTERNAL MODULE: ../../../node_modules/react-router/dist/index.js
215054
- var react_router_dist = __webpack_require__(42277);
215065
+ var dist = __webpack_require__(42277);
215055
215066
  ;// ../../../node_modules/shepherd.js/dist/css/shepherd.css
215056
215067
  // extracted by mini-css-extract-plugin
215057
215068
 
@@ -215153,8 +215164,7 @@ const middleware = [(0,floating_ui_dom/* offset */.cY)(15), (0,floating_ui_dom/*
215153
215164
  const Onboarding = ({
215154
215165
  tours = []
215155
215166
  }) => {
215156
- const Shepherd = (0,dist/* useShepherd */.jI)();
215157
- const location = (0,react_router_dist/* useLocation */.zy)();
215167
+ const location = (0,dist/* useLocation */.zy)();
215158
215168
 
215159
215169
  /**
215160
215170
  * Show the tour if it hasn't been shown yet based on the current route.
@@ -215168,7 +215178,7 @@ const Onboarding = ({
215168
215178
  if (!matchingTour || hasTourBeenShown(matchingTour.id)) {
215169
215179
  return;
215170
215180
  }
215171
- const tourInstance = new Shepherd.Tour({
215181
+ const tourInstance = new shepherd_pe.Tour({
215172
215182
  ...matchingTour.tourOptions,
215173
215183
  defaultStepOptions: {
215174
215184
  ...matchingTour.tourOptions?.defaultStepOptions,
@@ -215177,14 +215187,14 @@ const Onboarding = ({
215177
215187
  },
215178
215188
  when: {
215179
215189
  ...matchingTour.tourOptions?.defaultStepOptions?.when,
215180
- show: matchingTour.tourOptions?.defaultStepOptions?.when?.show || (() => defaultShowHandler(Shepherd))
215190
+ show: matchingTour.tourOptions?.defaultStepOptions?.when?.show || (() => defaultShowHandler(shepherd_pe))
215181
215191
  }
215182
215192
  }
215183
215193
  });
215184
215194
  matchingTour.steps.forEach(step => tourInstance.addStep(step));
215185
215195
  tourInstance.start();
215186
215196
  markTourAsShown(matchingTour.id);
215187
- }, [Shepherd, tours, location.pathname]);
215197
+ }, [tours, location.pathname]);
215188
215198
  return null;
215189
215199
  };
215190
215200
 
@@ -216574,10 +216584,10 @@ SegmentationTable.AddSegmentRow = AddSegmentRow;
216574
216584
  SegmentationTable.AddSegmentationRow = AddSegmentationRow;
216575
216585
 
216576
216586
  ;// ../../../node_modules/sonner/dist/index.mjs
216577
- /* unused harmony import specifier */ var o;
216578
- /* unused harmony import specifier */ var vt;
216579
- "use client";var jt=n=>{switch(n){case"success":return dist_ee;case"info":return ae;case"warning":return oe;case"error":return dist_se;default:return null}},dist_te=Array(12).fill(0),Yt=({visible:n,className:e})=>react.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":n},react.createElement("div",{className:"sonner-spinner"},dist_te.map((t,a)=>react.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),dist_ee=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),oe=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ae=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),dist_se=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Ot=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},react.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),react.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));var Ft=()=>{let[n,e]=react.useState(document.hidden);return react.useEffect(()=>{let t=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),n};var bt=1,yt=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});this.publish=e=>{this.subscribers.forEach(t=>t(e))};this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};this.create=e=>{var S;let{message:t,...a}=e,u=typeof(e==null?void 0:e.id)=="number"||((S=e.id)==null?void 0:S.length)>0?e.id:bt++,f=this.toasts.find(g=>g.id===u),w=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),f?this.toasts=this.toasts.map(g=>g.id===u?(this.publish({...g,...e,id:u,title:t}),{...g,...e,id:u,dismissible:w,title:t}):g):this.addToast({title:t,...a,dismissible:w,id:u}),u};this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(a=>a({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e);this.message=(e,t)=>this.create({...t,message:e});this.error=(e,t)=>this.create({...t,message:e,type:"error"});this.success=(e,t)=>this.create({...t,type:"success",message:e});this.info=(e,t)=>this.create({...t,type:"info",message:e});this.warning=(e,t)=>this.create({...t,type:"warning",message:e});this.loading=(e,t)=>this.create({...t,type:"loading",message:e});this.promise=(e,t)=>{if(!t)return;let a;t.loading!==void 0&&(a=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let u=e instanceof Promise?e:e(),f=a!==void 0,w,S=u.then(async i=>{if(w=["resolve",i],react.isValidElement(i))f=!1,this.create({id:a,type:"default",message:i});else if(ie(i)&&!i.ok){f=!1;let T=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,F=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:a,type:"error",message:T,description:F})}else if(t.success!==void 0){f=!1;let T=typeof t.success=="function"?await t.success(i):t.success,F=typeof t.description=="function"?await t.description(i):t.description;this.create({id:a,type:"success",message:T,description:F})}}).catch(async i=>{if(w=["reject",i],t.error!==void 0){f=!1;let D=typeof t.error=="function"?await t.error(i):t.error,T=typeof t.description=="function"?await t.description(i):t.description;this.create({id:a,type:"error",message:D,description:T})}}).finally(()=>{var i;f&&(this.dismiss(a),a=void 0),(i=t.finally)==null||i.call(t)}),g=()=>new Promise((i,D)=>S.then(()=>w[0]==="reject"?D(w[1]):i(w[1])).catch(D));return typeof a!="string"&&typeof a!="number"?{unwrap:g}:Object.assign(a,{unwrap:g})};this.custom=(e,t)=>{let a=(t==null?void 0:t.id)||bt++;return this.create({jsx:e(a),id:a,...t}),a};this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id));this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},v=new yt,ne=(n,e)=>{let t=(e==null?void 0:e.id)||bt++;return v.addToast({title:n,...e,id:t}),t},ie=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",dist_le=ne,dist_ce=()=>v.toasts,dist_de=()=>v.getActiveToasts(),dist_ue=Object.assign(dist_le,{success:v.success,info:v.info,warning:v.warning,error:v.error,custom:v.custom,message:v.message,promise:v.promise,dismiss:v.dismiss,loading:v.loading},{getHistory:dist_ce,getToasts:dist_de});function wt(n,{insertAt:e}={}){if(!n||typeof document=="undefined")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e==="top"&&t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n))}wt(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
216580
- `);function tt(n){return n.label!==void 0}var dist_pe=3,dist_me="32px",ge="16px",Wt=4e3,dist_he=356,dist_be=14,dist_ye=20,dist_we=200;function M(...n){return n.filter(Boolean).join(" ")}function dist_xe(n){let[e,t]=n.split("-"),a=[];return e&&a.push(e),t&&a.push(t),a}var dist_ve=n=>{var Dt,Pt,Nt,Bt,Ct,kt,It,Mt,Ht,At,Lt;let{invert:e,toast:t,unstyled:a,interacting:u,setHeights:f,visibleToasts:w,heights:S,index:g,toasts:i,expanded:D,removeToast:T,defaultRichColors:F,closeButton:et,style:ut,cancelButtonStyle:ft,actionButtonStyle:l,className:ot="",descriptionClassName:at="",duration:X,position:st,gap:pt,loadingIcon:rt,expandByDefault:B,classNames:s,icons:P,closeButtonAriaLabel:nt="Close toast",pauseWhenPageIsHidden:it}=n,[Y,C]=react.useState(null),[lt,J]=react.useState(null),[W,H]=react.useState(!1),[A,mt]=react.useState(!1),[L,z]=react.useState(!1),[ct,d]=react.useState(!1),[h,y]=react.useState(!1),[R,j]=react.useState(0),[p,_]=react.useState(0),O=react.useRef(t.duration||X||Wt),G=react.useRef(null),k=react.useRef(null),Vt=g===0,Ut=g+1<=w,N=t.type,V=t.dismissible!==!1,Kt=t.className||"",Xt=t.descriptionClassName||"",dt=react.useMemo(()=>S.findIndex(r=>r.toastId===t.id)||0,[S,t.id]),Jt=react.useMemo(()=>{var r;return(r=t.closeButton)!=null?r:et},[t.closeButton,et]),Tt=react.useMemo(()=>t.duration||X||Wt,[t.duration,X]),gt=react.useRef(0),U=react.useRef(0),St=react.useRef(0),K=react.useRef(null),[Gt,Qt]=st.split("-"),Rt=react.useMemo(()=>S.reduce((r,m,c)=>c>=dt?r:r+m.height,0),[S,dt]),Et=Ft(),qt=t.invert||e,ht=N==="loading";U.current=react.useMemo(()=>dt*pt+Rt,[dt,Rt]),react.useEffect(()=>{O.current=Tt},[Tt]),react.useEffect(()=>{H(!0)},[]),react.useEffect(()=>{let r=k.current;if(r){let m=r.getBoundingClientRect().height;return _(m),f(c=>[{toastId:t.id,height:m,position:t.position},...c]),()=>f(c=>c.filter(b=>b.toastId!==t.id))}},[f,t.id]),react.useLayoutEffect(()=>{if(!W)return;let r=k.current,m=r.style.height;r.style.height="auto";let c=r.getBoundingClientRect().height;r.style.height=m,_(c),f(b=>b.find(x=>x.toastId===t.id)?b.map(x=>x.toastId===t.id?{...x,height:c}:x):[{toastId:t.id,height:c,position:t.position},...b])},[W,t.title,t.description,f,t.id]);let $=react.useCallback(()=>{mt(!0),j(U.current),f(r=>r.filter(m=>m.toastId!==t.id)),setTimeout(()=>{T(t)},dist_we)},[t,T,f,U]);react.useEffect(()=>{if(t.promise&&N==="loading"||t.duration===1/0||t.type==="loading")return;let r;return D||u||it&&Et?(()=>{if(St.current<gt.current){let b=new Date().getTime()-gt.current;O.current=O.current-b}St.current=new Date().getTime()})():(()=>{O.current!==1/0&&(gt.current=new Date().getTime(),r=setTimeout(()=>{var b;(b=t.onAutoClose)==null||b.call(t,t),$()},O.current))})(),()=>clearTimeout(r)},[D,u,t,N,it,Et,$]),react.useEffect(()=>{t.delete&&$()},[$,t.delete]);function Zt(){var r,m,c;return P!=null&&P.loading?react.createElement("div",{className:M(s==null?void 0:s.loader,(r=t==null?void 0:t.classNames)==null?void 0:r.loader,"sonner-loader"),"data-visible":N==="loading"},P.loading):rt?react.createElement("div",{className:M(s==null?void 0:s.loader,(m=t==null?void 0:t.classNames)==null?void 0:m.loader,"sonner-loader"),"data-visible":N==="loading"},rt):react.createElement(Yt,{className:M(s==null?void 0:s.loader,(c=t==null?void 0:t.classNames)==null?void 0:c.loader),visible:N==="loading"})}return react.createElement("li",{tabIndex:0,ref:k,className:M(ot,Kt,s==null?void 0:s.toast,(Dt=t==null?void 0:t.classNames)==null?void 0:Dt.toast,s==null?void 0:s.default,s==null?void 0:s[N],(Pt=t==null?void 0:t.classNames)==null?void 0:Pt[N]),"data-sonner-toast":"","data-rich-colors":(Nt=t.richColors)!=null?Nt:F,"data-styled":!(t.jsx||t.unstyled||a),"data-mounted":W,"data-promise":!!t.promise,"data-swiped":h,"data-removed":A,"data-visible":Ut,"data-y-position":Gt,"data-x-position":Qt,"data-index":g,"data-front":Vt,"data-swiping":L,"data-dismissible":V,"data-type":N,"data-invert":qt,"data-swipe-out":ct,"data-swipe-direction":lt,"data-expanded":!!(D||B&&W),style:{"--index":g,"--toasts-before":g,"--z-index":i.length-g,"--offset":`${A?R:U.current}px`,"--initial-height":B?"auto":`${p}px`,...ut,...t.style},onDragEnd:()=>{z(!1),C(null),K.current=null},onPointerDown:r=>{ht||!V||(G.current=new Date,j(U.current),r.target.setPointerCapture(r.pointerId),r.target.tagName!=="BUTTON"&&(z(!0),K.current={x:r.clientX,y:r.clientY}))},onPointerUp:()=>{var x,Q,q,Z;if(ct||!V)return;K.current=null;let r=Number(((x=k.current)==null?void 0:x.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),m=Number(((Q=k.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),c=new Date().getTime()-((q=G.current)==null?void 0:q.getTime()),b=Y==="x"?r:m,I=Math.abs(b)/c;if(Math.abs(b)>=dist_ye||I>.11){j(U.current),(Z=t.onDismiss)==null||Z.call(t,t),J(Y==="x"?r>0?"right":"left":m>0?"down":"up"),$(),d(!0),y(!1);return}z(!1),C(null)},onPointerMove:r=>{var Q,q,Z,zt;if(!K.current||!V||((Q=window.getSelection())==null?void 0:Q.toString().length)>0)return;let c=r.clientY-K.current.y,b=r.clientX-K.current.x,I=(q=n.swipeDirections)!=null?q:dist_xe(st);!Y&&(Math.abs(b)>1||Math.abs(c)>1)&&C(Math.abs(b)>Math.abs(c)?"x":"y");let x={x:0,y:0};Y==="y"?(I.includes("top")||I.includes("bottom"))&&(I.includes("top")&&c<0||I.includes("bottom")&&c>0)&&(x.y=c):Y==="x"&&(I.includes("left")||I.includes("right"))&&(I.includes("left")&&b<0||I.includes("right")&&b>0)&&(x.x=b),(Math.abs(x.x)>0||Math.abs(x.y)>0)&&y(!0),(Z=k.current)==null||Z.style.setProperty("--swipe-amount-x",`${x.x}px`),(zt=k.current)==null||zt.style.setProperty("--swipe-amount-y",`${x.y}px`)}},Jt&&!t.jsx?react.createElement("button",{"aria-label":nt,"data-disabled":ht,"data-close-button":!0,onClick:ht||!V?()=>{}:()=>{var r;$(),(r=t.onDismiss)==null||r.call(t,t)},className:M(s==null?void 0:s.closeButton,(Bt=t==null?void 0:t.classNames)==null?void 0:Bt.closeButton)},(Ct=P==null?void 0:P.close)!=null?Ct:Ot):null,t.jsx||(0,react.isValidElement)(t.title)?t.jsx?t.jsx:typeof t.title=="function"?t.title():t.title:react.createElement(react.Fragment,null,N||t.icon||t.promise?react.createElement("div",{"data-icon":"",className:M(s==null?void 0:s.icon,(kt=t==null?void 0:t.classNames)==null?void 0:kt.icon)},t.promise||t.type==="loading"&&!t.icon?t.icon||Zt():null,t.type!=="loading"?t.icon||(P==null?void 0:P[N])||jt(N):null):null,react.createElement("div",{"data-content":"",className:M(s==null?void 0:s.content,(It=t==null?void 0:t.classNames)==null?void 0:It.content)},react.createElement("div",{"data-title":"",className:M(s==null?void 0:s.title,(Mt=t==null?void 0:t.classNames)==null?void 0:Mt.title)},typeof t.title=="function"?t.title():t.title),t.description?react.createElement("div",{"data-description":"",className:M(at,Xt,s==null?void 0:s.description,(Ht=t==null?void 0:t.classNames)==null?void 0:Ht.description)},typeof t.description=="function"?t.description():t.description):null),(0,react.isValidElement)(t.cancel)?t.cancel:t.cancel&&tt(t.cancel)?react.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||ft,onClick:r=>{var m,c;tt(t.cancel)&&V&&((c=(m=t.cancel).onClick)==null||c.call(m,r),$())},className:M(s==null?void 0:s.cancelButton,(At=t==null?void 0:t.classNames)==null?void 0:At.cancelButton)},t.cancel.label):null,(0,react.isValidElement)(t.action)?t.action:t.action&&tt(t.action)?react.createElement("button",{"data-button":!0,"data-action":!0,style:t.actionButtonStyle||l,onClick:r=>{var m,c;tt(t.action)&&((c=(m=t.action).onClick)==null||c.call(m,r),!r.defaultPrevented&&$())},className:M(s==null?void 0:s.actionButton,(Lt=t==null?void 0:t.classNames)==null?void 0:Lt.actionButton)},t.action.label):null))};function _t(){if(typeof window=="undefined"||typeof document=="undefined")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function dist_Te(n,e){let t={};return[n,e].forEach((a,u)=>{let f=u===1,w=f?"--mobile-offset":"--offset",S=f?ge:dist_me;function g(i){["top","right","bottom","left"].forEach(D=>{t[`${w}-${D}`]=typeof i=="number"?`${i}px`:i})}typeof a=="number"||typeof a=="string"?g(a):typeof a=="object"?["top","right","bottom","left"].forEach(i=>{a[i]===void 0?t[`${w}-${i}`]=S:t[`${w}-${i}`]=typeof a[i]=="number"?`${a[i]}px`:a[i]}):g(S)}),t}function Oe(){let[n,e]=o.useState([]);return o.useEffect(()=>v.subscribe(t=>{if(t.dismiss){setTimeout(()=>{vt.flushSync(()=>{e(a=>a.filter(u=>u.id!==t.id))})});return}setTimeout(()=>{vt.flushSync(()=>{e(a=>{let u=a.findIndex(f=>f.id===t.id);return u!==-1?[...a.slice(0,u),{...a[u],...t},...a.slice(u+1)]:[t,...a]})})})}),[]),{toasts:n}}var $e=(0,react.forwardRef)(function(e,t){let{invert:a,position:u="bottom-right",hotkey:f=["altKey","KeyT"],expand:w,closeButton:S,className:g,offset:i,mobileOffset:D,theme:T="light",richColors:F,duration:et,style:ut,visibleToasts:ft=dist_pe,toastOptions:l,dir:ot=_t(),gap:at=dist_be,loadingIcon:X,icons:st,containerAriaLabel:pt="Notifications",pauseWhenPageIsHidden:rt}=e,[B,s]=react.useState([]),P=react.useMemo(()=>Array.from(new Set([u].concat(B.filter(d=>d.position).map(d=>d.position)))),[B,u]),[nt,it]=react.useState([]),[Y,C]=react.useState(!1),[lt,J]=react.useState(!1),[W,H]=react.useState(T!=="system"?T:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=react.useRef(null),mt=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=react.useRef(null),z=react.useRef(!1),ct=react.useCallback(d=>{s(h=>{var y;return(y=h.find(R=>R.id===d.id))!=null&&y.delete||v.dismiss(d.id),h.filter(({id:R})=>R!==d.id)})},[]);return react.useEffect(()=>v.subscribe(d=>{if(d.dismiss){s(h=>h.map(y=>y.id===d.id?{...y,delete:!0}:y));return}setTimeout(()=>{react_dom.flushSync(()=>{s(h=>{let y=h.findIndex(R=>R.id===d.id);return y!==-1?[...h.slice(0,y),{...h[y],...d},...h.slice(y+1)]:[d,...h]})})})}),[]),react.useEffect(()=>{if(T!=="system"){H(T);return}if(T==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window=="undefined")return;let d=window.matchMedia("(prefers-color-scheme: dark)");try{d.addEventListener("change",({matches:h})=>{H(h?"dark":"light")})}catch(h){d.addListener(({matches:y})=>{try{H(y?"dark":"light")}catch(R){console.error(R)}})}},[T]),react.useEffect(()=>{B.length<=1&&C(!1)},[B]),react.useEffect(()=>{let d=h=>{var R,j;f.every(p=>h[p]||h.code===p)&&(C(!0),(R=A.current)==null||R.focus()),h.code==="Escape"&&(document.activeElement===A.current||(j=A.current)!=null&&j.contains(document.activeElement))&&C(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[f]),react.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,z.current=!1)}},[A.current]),react.createElement("section",{ref:t,"aria-label":`${pt} ${mt}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((d,h)=>{var j;let[y,R]=d.split("-");return B.length?react.createElement("ol",{key:d,dir:ot==="auto"?_t():ot,tabIndex:-1,ref:A,className:g,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":y,"data-lifted":Y&&B.length>1&&!w,"data-x-position":R,style:{"--front-toast-height":`${((j=nt[0])==null?void 0:j.height)||0}px`,"--width":`${dist_he}px`,"--gap":`${at}px`,...ut,...dist_Te(i,D)},onBlur:p=>{z.current&&!p.currentTarget.contains(p.relatedTarget)&&(z.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||z.current||(z.current=!0,L.current=p.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{lt||C(!1)},onDragEnd:()=>C(!1),onPointerDown:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},B.filter(p=>!p.position&&h===0||p.position===d).map((p,_)=>{var O,G;return react.createElement(dist_ve,{key:p.id,icons:st,index:_,toast:p,defaultRichColors:F,duration:(O=l==null?void 0:l.duration)!=null?O:et,className:l==null?void 0:l.className,descriptionClassName:l==null?void 0:l.descriptionClassName,invert:a,visibleToasts:ft,closeButton:(G=l==null?void 0:l.closeButton)!=null?G:S,interacting:lt,position:d,style:l==null?void 0:l.style,unstyled:l==null?void 0:l.unstyled,classNames:l==null?void 0:l.classNames,cancelButtonStyle:l==null?void 0:l.cancelButtonStyle,actionButtonStyle:l==null?void 0:l.actionButtonStyle,removeToast:ct,toasts:B.filter(k=>k.position==p.position),heights:nt.filter(k=>k.position==p.position),setHeights:it,expandByDefault:w,gap:at,loadingIcon:X,expanded:Y,pauseWhenPageIsHidden:rt,swipeDirections:e.swipeDirections})})):null}))});
216587
+ /* unused harmony import specifier */ var dist_o;
216588
+ /* unused harmony import specifier */ var dist_vt;
216589
+ "use client";var dist_jt=n=>{switch(n){case"success":return dist_ee;case"info":return dist_ae;case"warning":return dist_oe;case"error":return dist_se;default:return null}},dist_te=Array(12).fill(0),dist_Yt=({visible:n,className:e})=>react.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":n},react.createElement("div",{className:"sonner-spinner"},dist_te.map((t,a)=>react.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),dist_ee=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),dist_oe=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),dist_ae=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),dist_se=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),dist_Ot=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},react.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),react.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));var dist_Ft=()=>{let[n,e]=react.useState(document.hidden);return react.useEffect(()=>{let t=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),n};var dist_bt=1,dist_yt=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});this.publish=e=>{this.subscribers.forEach(t=>t(e))};this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};this.create=e=>{var S;let{message:t,...a}=e,u=typeof(e==null?void 0:e.id)=="number"||((S=e.id)==null?void 0:S.length)>0?e.id:dist_bt++,f=this.toasts.find(g=>g.id===u),w=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),f?this.toasts=this.toasts.map(g=>g.id===u?(this.publish({...g,...e,id:u,title:t}),{...g,...e,id:u,dismissible:w,title:t}):g):this.addToast({title:t,...a,dismissible:w,id:u}),u};this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(a=>a({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e);this.message=(e,t)=>this.create({...t,message:e});this.error=(e,t)=>this.create({...t,message:e,type:"error"});this.success=(e,t)=>this.create({...t,type:"success",message:e});this.info=(e,t)=>this.create({...t,type:"info",message:e});this.warning=(e,t)=>this.create({...t,type:"warning",message:e});this.loading=(e,t)=>this.create({...t,type:"loading",message:e});this.promise=(e,t)=>{if(!t)return;let a;t.loading!==void 0&&(a=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let u=e instanceof Promise?e:e(),f=a!==void 0,w,S=u.then(async i=>{if(w=["resolve",i],react.isValidElement(i))f=!1,this.create({id:a,type:"default",message:i});else if(dist_ie(i)&&!i.ok){f=!1;let T=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,F=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:a,type:"error",message:T,description:F})}else if(t.success!==void 0){f=!1;let T=typeof t.success=="function"?await t.success(i):t.success,F=typeof t.description=="function"?await t.description(i):t.description;this.create({id:a,type:"success",message:T,description:F})}}).catch(async i=>{if(w=["reject",i],t.error!==void 0){f=!1;let D=typeof t.error=="function"?await t.error(i):t.error,T=typeof t.description=="function"?await t.description(i):t.description;this.create({id:a,type:"error",message:D,description:T})}}).finally(()=>{var i;f&&(this.dismiss(a),a=void 0),(i=t.finally)==null||i.call(t)}),g=()=>new Promise((i,D)=>S.then(()=>w[0]==="reject"?D(w[1]):i(w[1])).catch(D));return typeof a!="string"&&typeof a!="number"?{unwrap:g}:Object.assign(a,{unwrap:g})};this.custom=(e,t)=>{let a=(t==null?void 0:t.id)||dist_bt++;return this.create({jsx:e(a),id:a,...t}),a};this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id));this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},dist_v=new dist_yt,dist_ne=(n,e)=>{let t=(e==null?void 0:e.id)||dist_bt++;return dist_v.addToast({title:n,...e,id:t}),t},dist_ie=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",dist_le=dist_ne,dist_ce=()=>dist_v.toasts,dist_de=()=>dist_v.getActiveToasts(),dist_ue=Object.assign(dist_le,{success:dist_v.success,info:dist_v.info,warning:dist_v.warning,error:dist_v.error,custom:dist_v.custom,message:dist_v.message,promise:dist_v.promise,dismiss:dist_v.dismiss,loading:dist_v.loading},{getHistory:dist_ce,getToasts:dist_de});function dist_wt(n,{insertAt:e}={}){if(!n||typeof document=="undefined")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e==="top"&&t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n))}dist_wt(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
216590
+ `);function dist_tt(n){return n.label!==void 0}var dist_pe=3,dist_me="32px",ge="16px",dist_Wt=4e3,dist_he=356,dist_be=14,dist_ye=20,dist_we=200;function dist_M(...n){return n.filter(Boolean).join(" ")}function dist_xe(n){let[e,t]=n.split("-"),a=[];return e&&a.push(e),t&&a.push(t),a}var dist_ve=n=>{var Dt,Pt,Nt,Bt,Ct,kt,It,Mt,Ht,At,Lt;let{invert:e,toast:t,unstyled:a,interacting:u,setHeights:f,visibleToasts:w,heights:S,index:g,toasts:i,expanded:D,removeToast:T,defaultRichColors:F,closeButton:et,style:ut,cancelButtonStyle:ft,actionButtonStyle:l,className:ot="",descriptionClassName:at="",duration:X,position:st,gap:pt,loadingIcon:rt,expandByDefault:B,classNames:s,icons:P,closeButtonAriaLabel:nt="Close toast",pauseWhenPageIsHidden:it}=n,[Y,C]=react.useState(null),[lt,J]=react.useState(null),[W,H]=react.useState(!1),[A,mt]=react.useState(!1),[L,z]=react.useState(!1),[ct,d]=react.useState(!1),[h,y]=react.useState(!1),[R,j]=react.useState(0),[p,_]=react.useState(0),O=react.useRef(t.duration||X||dist_Wt),G=react.useRef(null),k=react.useRef(null),Vt=g===0,Ut=g+1<=w,N=t.type,V=t.dismissible!==!1,Kt=t.className||"",Xt=t.descriptionClassName||"",dt=react.useMemo(()=>S.findIndex(r=>r.toastId===t.id)||0,[S,t.id]),Jt=react.useMemo(()=>{var r;return(r=t.closeButton)!=null?r:et},[t.closeButton,et]),Tt=react.useMemo(()=>t.duration||X||dist_Wt,[t.duration,X]),gt=react.useRef(0),U=react.useRef(0),St=react.useRef(0),K=react.useRef(null),[Gt,Qt]=st.split("-"),Rt=react.useMemo(()=>S.reduce((r,m,c)=>c>=dt?r:r+m.height,0),[S,dt]),Et=dist_Ft(),qt=t.invert||e,ht=N==="loading";U.current=react.useMemo(()=>dt*pt+Rt,[dt,Rt]),react.useEffect(()=>{O.current=Tt},[Tt]),react.useEffect(()=>{H(!0)},[]),react.useEffect(()=>{let r=k.current;if(r){let m=r.getBoundingClientRect().height;return _(m),f(c=>[{toastId:t.id,height:m,position:t.position},...c]),()=>f(c=>c.filter(b=>b.toastId!==t.id))}},[f,t.id]),react.useLayoutEffect(()=>{if(!W)return;let r=k.current,m=r.style.height;r.style.height="auto";let c=r.getBoundingClientRect().height;r.style.height=m,_(c),f(b=>b.find(x=>x.toastId===t.id)?b.map(x=>x.toastId===t.id?{...x,height:c}:x):[{toastId:t.id,height:c,position:t.position},...b])},[W,t.title,t.description,f,t.id]);let $=react.useCallback(()=>{mt(!0),j(U.current),f(r=>r.filter(m=>m.toastId!==t.id)),setTimeout(()=>{T(t)},dist_we)},[t,T,f,U]);react.useEffect(()=>{if(t.promise&&N==="loading"||t.duration===1/0||t.type==="loading")return;let r;return D||u||it&&Et?(()=>{if(St.current<gt.current){let b=new Date().getTime()-gt.current;O.current=O.current-b}St.current=new Date().getTime()})():(()=>{O.current!==1/0&&(gt.current=new Date().getTime(),r=setTimeout(()=>{var b;(b=t.onAutoClose)==null||b.call(t,t),$()},O.current))})(),()=>clearTimeout(r)},[D,u,t,N,it,Et,$]),react.useEffect(()=>{t.delete&&$()},[$,t.delete]);function Zt(){var r,m,c;return P!=null&&P.loading?react.createElement("div",{className:dist_M(s==null?void 0:s.loader,(r=t==null?void 0:t.classNames)==null?void 0:r.loader,"sonner-loader"),"data-visible":N==="loading"},P.loading):rt?react.createElement("div",{className:dist_M(s==null?void 0:s.loader,(m=t==null?void 0:t.classNames)==null?void 0:m.loader,"sonner-loader"),"data-visible":N==="loading"},rt):react.createElement(dist_Yt,{className:dist_M(s==null?void 0:s.loader,(c=t==null?void 0:t.classNames)==null?void 0:c.loader),visible:N==="loading"})}return react.createElement("li",{tabIndex:0,ref:k,className:dist_M(ot,Kt,s==null?void 0:s.toast,(Dt=t==null?void 0:t.classNames)==null?void 0:Dt.toast,s==null?void 0:s.default,s==null?void 0:s[N],(Pt=t==null?void 0:t.classNames)==null?void 0:Pt[N]),"data-sonner-toast":"","data-rich-colors":(Nt=t.richColors)!=null?Nt:F,"data-styled":!(t.jsx||t.unstyled||a),"data-mounted":W,"data-promise":!!t.promise,"data-swiped":h,"data-removed":A,"data-visible":Ut,"data-y-position":Gt,"data-x-position":Qt,"data-index":g,"data-front":Vt,"data-swiping":L,"data-dismissible":V,"data-type":N,"data-invert":qt,"data-swipe-out":ct,"data-swipe-direction":lt,"data-expanded":!!(D||B&&W),style:{"--index":g,"--toasts-before":g,"--z-index":i.length-g,"--offset":`${A?R:U.current}px`,"--initial-height":B?"auto":`${p}px`,...ut,...t.style},onDragEnd:()=>{z(!1),C(null),K.current=null},onPointerDown:r=>{ht||!V||(G.current=new Date,j(U.current),r.target.setPointerCapture(r.pointerId),r.target.tagName!=="BUTTON"&&(z(!0),K.current={x:r.clientX,y:r.clientY}))},onPointerUp:()=>{var x,Q,q,Z;if(ct||!V)return;K.current=null;let r=Number(((x=k.current)==null?void 0:x.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),m=Number(((Q=k.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),c=new Date().getTime()-((q=G.current)==null?void 0:q.getTime()),b=Y==="x"?r:m,I=Math.abs(b)/c;if(Math.abs(b)>=dist_ye||I>.11){j(U.current),(Z=t.onDismiss)==null||Z.call(t,t),J(Y==="x"?r>0?"right":"left":m>0?"down":"up"),$(),d(!0),y(!1);return}z(!1),C(null)},onPointerMove:r=>{var Q,q,Z,zt;if(!K.current||!V||((Q=window.getSelection())==null?void 0:Q.toString().length)>0)return;let c=r.clientY-K.current.y,b=r.clientX-K.current.x,I=(q=n.swipeDirections)!=null?q:dist_xe(st);!Y&&(Math.abs(b)>1||Math.abs(c)>1)&&C(Math.abs(b)>Math.abs(c)?"x":"y");let x={x:0,y:0};Y==="y"?(I.includes("top")||I.includes("bottom"))&&(I.includes("top")&&c<0||I.includes("bottom")&&c>0)&&(x.y=c):Y==="x"&&(I.includes("left")||I.includes("right"))&&(I.includes("left")&&b<0||I.includes("right")&&b>0)&&(x.x=b),(Math.abs(x.x)>0||Math.abs(x.y)>0)&&y(!0),(Z=k.current)==null||Z.style.setProperty("--swipe-amount-x",`${x.x}px`),(zt=k.current)==null||zt.style.setProperty("--swipe-amount-y",`${x.y}px`)}},Jt&&!t.jsx?react.createElement("button",{"aria-label":nt,"data-disabled":ht,"data-close-button":!0,onClick:ht||!V?()=>{}:()=>{var r;$(),(r=t.onDismiss)==null||r.call(t,t)},className:dist_M(s==null?void 0:s.closeButton,(Bt=t==null?void 0:t.classNames)==null?void 0:Bt.closeButton)},(Ct=P==null?void 0:P.close)!=null?Ct:dist_Ot):null,t.jsx||(0,react.isValidElement)(t.title)?t.jsx?t.jsx:typeof t.title=="function"?t.title():t.title:react.createElement(react.Fragment,null,N||t.icon||t.promise?react.createElement("div",{"data-icon":"",className:dist_M(s==null?void 0:s.icon,(kt=t==null?void 0:t.classNames)==null?void 0:kt.icon)},t.promise||t.type==="loading"&&!t.icon?t.icon||Zt():null,t.type!=="loading"?t.icon||(P==null?void 0:P[N])||dist_jt(N):null):null,react.createElement("div",{"data-content":"",className:dist_M(s==null?void 0:s.content,(It=t==null?void 0:t.classNames)==null?void 0:It.content)},react.createElement("div",{"data-title":"",className:dist_M(s==null?void 0:s.title,(Mt=t==null?void 0:t.classNames)==null?void 0:Mt.title)},typeof t.title=="function"?t.title():t.title),t.description?react.createElement("div",{"data-description":"",className:dist_M(at,Xt,s==null?void 0:s.description,(Ht=t==null?void 0:t.classNames)==null?void 0:Ht.description)},typeof t.description=="function"?t.description():t.description):null),(0,react.isValidElement)(t.cancel)?t.cancel:t.cancel&&dist_tt(t.cancel)?react.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||ft,onClick:r=>{var m,c;dist_tt(t.cancel)&&V&&((c=(m=t.cancel).onClick)==null||c.call(m,r),$())},className:dist_M(s==null?void 0:s.cancelButton,(At=t==null?void 0:t.classNames)==null?void 0:At.cancelButton)},t.cancel.label):null,(0,react.isValidElement)(t.action)?t.action:t.action&&dist_tt(t.action)?react.createElement("button",{"data-button":!0,"data-action":!0,style:t.actionButtonStyle||l,onClick:r=>{var m,c;dist_tt(t.action)&&((c=(m=t.action).onClick)==null||c.call(m,r),!r.defaultPrevented&&$())},className:dist_M(s==null?void 0:s.actionButton,(Lt=t==null?void 0:t.classNames)==null?void 0:Lt.actionButton)},t.action.label):null))};function dist_t(){if(typeof window=="undefined"||typeof document=="undefined")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function dist_Te(n,e){let t={};return[n,e].forEach((a,u)=>{let f=u===1,w=f?"--mobile-offset":"--offset",S=f?ge:dist_me;function g(i){["top","right","bottom","left"].forEach(D=>{t[`${w}-${D}`]=typeof i=="number"?`${i}px`:i})}typeof a=="number"||typeof a=="string"?g(a):typeof a=="object"?["top","right","bottom","left"].forEach(i=>{a[i]===void 0?t[`${w}-${i}`]=S:t[`${w}-${i}`]=typeof a[i]=="number"?`${a[i]}px`:a[i]}):g(S)}),t}function Oe(){let[n,e]=dist_o.useState([]);return dist_o.useEffect(()=>dist_v.subscribe(t=>{if(t.dismiss){setTimeout(()=>{dist_vt.flushSync(()=>{e(a=>a.filter(u=>u.id!==t.id))})});return}setTimeout(()=>{dist_vt.flushSync(()=>{e(a=>{let u=a.findIndex(f=>f.id===t.id);return u!==-1?[...a.slice(0,u),{...a[u],...t},...a.slice(u+1)]:[t,...a]})})})}),[]),{toasts:n}}var $e=(0,react.forwardRef)(function(e,t){let{invert:a,position:u="bottom-right",hotkey:f=["altKey","KeyT"],expand:w,closeButton:S,className:g,offset:i,mobileOffset:D,theme:T="light",richColors:F,duration:et,style:ut,visibleToasts:ft=dist_pe,toastOptions:l,dir:ot=dist_t(),gap:at=dist_be,loadingIcon:X,icons:st,containerAriaLabel:pt="Notifications",pauseWhenPageIsHidden:rt}=e,[B,s]=react.useState([]),P=react.useMemo(()=>Array.from(new Set([u].concat(B.filter(d=>d.position).map(d=>d.position)))),[B,u]),[nt,it]=react.useState([]),[Y,C]=react.useState(!1),[lt,J]=react.useState(!1),[W,H]=react.useState(T!=="system"?T:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=react.useRef(null),mt=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=react.useRef(null),z=react.useRef(!1),ct=react.useCallback(d=>{s(h=>{var y;return(y=h.find(R=>R.id===d.id))!=null&&y.delete||dist_v.dismiss(d.id),h.filter(({id:R})=>R!==d.id)})},[]);return react.useEffect(()=>dist_v.subscribe(d=>{if(d.dismiss){s(h=>h.map(y=>y.id===d.id?{...y,delete:!0}:y));return}setTimeout(()=>{react_dom.flushSync(()=>{s(h=>{let y=h.findIndex(R=>R.id===d.id);return y!==-1?[...h.slice(0,y),{...h[y],...d},...h.slice(y+1)]:[d,...h]})})})}),[]),react.useEffect(()=>{if(T!=="system"){H(T);return}if(T==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window=="undefined")return;let d=window.matchMedia("(prefers-color-scheme: dark)");try{d.addEventListener("change",({matches:h})=>{H(h?"dark":"light")})}catch(h){d.addListener(({matches:y})=>{try{H(y?"dark":"light")}catch(R){console.error(R)}})}},[T]),react.useEffect(()=>{B.length<=1&&C(!1)},[B]),react.useEffect(()=>{let d=h=>{var R,j;f.every(p=>h[p]||h.code===p)&&(C(!0),(R=A.current)==null||R.focus()),h.code==="Escape"&&(document.activeElement===A.current||(j=A.current)!=null&&j.contains(document.activeElement))&&C(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[f]),react.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,z.current=!1)}},[A.current]),react.createElement("section",{ref:t,"aria-label":`${pt} ${mt}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((d,h)=>{var j;let[y,R]=d.split("-");return B.length?react.createElement("ol",{key:d,dir:ot==="auto"?dist_t():ot,tabIndex:-1,ref:A,className:g,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":y,"data-lifted":Y&&B.length>1&&!w,"data-x-position":R,style:{"--front-toast-height":`${((j=nt[0])==null?void 0:j.height)||0}px`,"--width":`${dist_he}px`,"--gap":`${at}px`,...ut,...dist_Te(i,D)},onBlur:p=>{z.current&&!p.currentTarget.contains(p.relatedTarget)&&(z.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||z.current||(z.current=!0,L.current=p.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{lt||C(!1)},onDragEnd:()=>C(!1),onPointerDown:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},B.filter(p=>!p.position&&h===0||p.position===d).map((p,_)=>{var O,G;return react.createElement(dist_ve,{key:p.id,icons:st,index:_,toast:p,defaultRichColors:F,duration:(O=l==null?void 0:l.duration)!=null?O:et,className:l==null?void 0:l.className,descriptionClassName:l==null?void 0:l.descriptionClassName,invert:a,visibleToasts:ft,closeButton:(G=l==null?void 0:l.closeButton)!=null?G:S,interacting:lt,position:d,style:l==null?void 0:l.style,unstyled:l==null?void 0:l.unstyled,classNames:l==null?void 0:l.classNames,cancelButtonStyle:l==null?void 0:l.cancelButtonStyle,actionButtonStyle:l==null?void 0:l.actionButtonStyle,removeToast:ct,toasts:B.filter(k=>k.position==p.position),heights:nt.filter(k=>k.position==p.position),setHeights:it,expandByDefault:w,gap:at,loadingIcon:X,expanded:Y,pauseWhenPageIsHidden:rt,swipeDirections:e.swipeDirections})})):null}))});
216581
216591
  //# sourceMappingURL=index.mjs.map
216582
216592
  ;// ../../ui-next/src/components/Sonner/Sonner.tsx
216583
216593
  function Sonner_extends() { return Sonner_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, Sonner_extends.apply(null, arguments); }
@@ -223711,15 +223721,15 @@ var warm = (0,d3_interpolate_src/* interpolateCubehelixLong */.Xl)((0,d3_color_s
223711
223721
 
223712
223722
  var cool = (0,d3_interpolate_src/* interpolateCubehelixLong */.Xl)((0,d3_color_src/* cubehelix */.UB)(260, 0.75, 0.35), (0,d3_color_src/* cubehelix */.UB)(80, 1.50, 0.8));
223713
223723
 
223714
- var c = (0,d3_color_src/* cubehelix */.UB)();
223724
+ var rainbow_c = (0,d3_color_src/* cubehelix */.UB)();
223715
223725
 
223716
223726
  /* harmony default export */ function rainbow(t) {
223717
223727
  if (t < 0 || t > 1) t -= Math.floor(t);
223718
223728
  var ts = Math.abs(t - 0.5);
223719
- c.h = 360 * t - 100;
223720
- c.s = 1.5 - 1.5 * ts;
223721
- c.l = 0.8 - 0.9 * ts;
223722
- return c + "";
223729
+ rainbow_c.h = 360 * t - 100;
223730
+ rainbow_c.s = 1.5 - 1.5 * ts;
223731
+ rainbow_c.l = 0.8 - 0.9 * ts;
223732
+ return rainbow_c + "";
223723
223733
  }
223724
223734
 
223725
223735
  ;// ../../../node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js
@@ -225084,25 +225094,25 @@ const triangle2_sqrt3 = sqrt(3);
225084
225094
 
225085
225095
 
225086
225096
  const wye_c = -0.5;
225087
- const s = sqrt(3) / 2;
225097
+ const wye_s = sqrt(3) / 2;
225088
225098
  const wye_k = 1 / sqrt(12);
225089
- const a = (wye_k / 2 + 1) * 3;
225099
+ const wye_a = (wye_k / 2 + 1) * 3;
225090
225100
 
225091
225101
  /* harmony default export */ const wye = ({
225092
225102
  draw(context, size) {
225093
- const r = sqrt(size / a);
225103
+ const r = sqrt(size / wye_a);
225094
225104
  const x0 = r / 2, y0 = r * wye_k;
225095
225105
  const x1 = x0, y1 = r * wye_k + r;
225096
225106
  const x2 = -x1, y2 = y1;
225097
225107
  context.moveTo(x0, y0);
225098
225108
  context.lineTo(x1, y1);
225099
225109
  context.lineTo(x2, y2);
225100
- context.lineTo(wye_c * x0 - s * y0, s * x0 + wye_c * y0);
225101
- context.lineTo(wye_c * x1 - s * y1, s * x1 + wye_c * y1);
225102
- context.lineTo(wye_c * x2 - s * y2, s * x2 + wye_c * y2);
225103
- context.lineTo(wye_c * x0 + s * y0, wye_c * y0 - s * x0);
225104
- context.lineTo(wye_c * x1 + s * y1, wye_c * y1 - s * x1);
225105
- context.lineTo(wye_c * x2 + s * y2, wye_c * y2 - s * x2);
225110
+ context.lineTo(wye_c * x0 - wye_s * y0, wye_s * x0 + wye_c * y0);
225111
+ context.lineTo(wye_c * x1 - wye_s * y1, wye_s * x1 + wye_c * y1);
225112
+ context.lineTo(wye_c * x2 - wye_s * y2, wye_s * x2 + wye_c * y2);
225113
+ context.lineTo(wye_c * x0 + wye_s * y0, wye_c * y0 - wye_s * x0);
225114
+ context.lineTo(wye_c * x1 + wye_s * y1, wye_c * y1 - wye_s * x1);
225115
+ context.lineTo(wye_c * x2 + wye_s * y2, wye_c * y2 - wye_s * x2);
225106
225116
  context.closePath();
225107
225117
  }
225108
225118
  });
@@ -229851,8 +229861,8 @@ Typography.propTypes = {
229851
229861
  ;// ../../ui/src/components/Typography/index.js
229852
229862
 
229853
229863
  /* harmony default export */ const components_Typography = (Typography_Typography);
229854
- // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3075 modules
229855
- var src = __webpack_require__(12517);
229864
+ // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3076 modules
229865
+ var src = __webpack_require__(92082);
229856
229866
  ;// ../../ui/src/components/EmptyStudies/EmptyStudies.tsx
229857
229867
 
229858
229868
 
@@ -238472,8 +238482,8 @@ var react = __webpack_require__(86326);
238472
238482
  // EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
238473
238483
  var prop_types = __webpack_require__(97598);
238474
238484
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
238475
- // EXTERNAL MODULE: ../../i18n/src/index.js + 286 modules
238476
- var src = __webpack_require__(89010);
238485
+ // EXTERNAL MODULE: ../../i18n/src/index.js + 288 modules
238486
+ var src = __webpack_require__(31863);
238477
238487
  // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
238478
238488
  var es = __webpack_require__(99993);
238479
238489
  // EXTERNAL MODULE: ../../../node_modules/react-router-dom/dist/index.js
@@ -238505,8 +238515,8 @@ Compose.propTypes = {
238505
238515
  };
238506
238516
  // EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
238507
238517
  var core_src = __webpack_require__(42356);
238508
- // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3075 modules
238509
- var ui_next_src = __webpack_require__(12517);
238518
+ // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3076 modules
238519
+ var ui_next_src = __webpack_require__(92082);
238510
238520
  // EXTERNAL MODULE: ./state/index.js + 1 modules
238511
238521
  var state = __webpack_require__(45981);
238512
238522
  // EXTERNAL MODULE: ../../../node_modules/react-router/dist/index.js
@@ -240419,7 +240429,7 @@ async function loadModule(module) {
240419
240429
  return imported.default;
240420
240430
  }
240421
240431
  if (module === "@ohif/extension-dicom-pdf") {
240422
- const imported = await __webpack_require__.e(/* import() */ 2424).then(__webpack_require__.bind(__webpack_require__, 12424));
240432
+ const imported = await __webpack_require__.e(/* import() */ 4291).then(__webpack_require__.bind(__webpack_require__, 4291));
240423
240433
  return imported.default;
240424
240434
  }
240425
240435
  if (module === "@ohif/extension-dicom-video") {
@@ -245388,8 +245398,6 @@ function OpenIdConnectRoutes({
245388
245398
  }));
245389
245399
  }
245390
245400
  /* harmony default export */ const utils_OpenIdConnectRoutes = (OpenIdConnectRoutes);
245391
- // EXTERNAL MODULE: ../../../node_modules/react-shepherd/dist/index.js
245392
- var react_shepherd_dist = __webpack_require__(93854);
245393
245401
  ;// ./App.css
245394
245402
  // extracted by mini-css-extract-plugin
245395
245403
 
@@ -245411,7 +245419,6 @@ var react_shepherd_dist = __webpack_require__(93854);
245411
245419
 
245412
245420
 
245413
245421
 
245414
-
245415
245422
  let commandsManager, extensionManager, servicesManager, serviceProvidersManager, hotkeysManager;
245416
245423
  const routerFutureFlags = {
245417
245424
  v7_startTransition: true,
@@ -245508,7 +245515,7 @@ function App({
245508
245515
  }], [ui_next_src/* ModalProvider */.Znq, {
245509
245516
  service: uiModalService,
245510
245517
  modal: ui_next_src/* Modal */.aFV
245511
- }], [react_shepherd_dist/* ShepherdJourneyProvider */.pf]];
245518
+ }]];
245512
245519
 
245513
245520
  // Loop through and register each of the service providers registered with the ServiceProvidersManager.
245514
245521
  const providersFromManager = Object.entries(serviceProvidersManager.providers);
@@ -329356,10 +329363,6 @@ const oppositeSideMap = {
329356
329363
  bottom: 'top',
329357
329364
  top: 'bottom'
329358
329365
  };
329359
- const oppositeAlignmentMap = {
329360
- start: 'end',
329361
- end: 'start'
329362
- };
329363
329366
  function clamp(start, value, end) {
329364
329367
  return max(start, min(value, end));
329365
329368
  }
@@ -329378,9 +329381,9 @@ function getOppositeAxis(axis) {
329378
329381
  function getAxisLength(axis) {
329379
329382
  return axis === 'y' ? 'height' : 'width';
329380
329383
  }
329381
- const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
329382
329384
  function getSideAxis(placement) {
329383
- return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
329385
+ const firstChar = placement[0];
329386
+ return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
329384
329387
  }
329385
329388
  function getAlignmentAxis(placement) {
329386
329389
  return getOppositeAxis(getSideAxis(placement));
@@ -329403,7 +329406,7 @@ function getExpandedPlacements(placement) {
329403
329406
  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
329404
329407
  }
329405
329408
  function getOppositeAlignmentPlacement(placement) {
329406
- return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
329409
+ return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
329407
329410
  }
329408
329411
  const lrPlacement = ['left', 'right'];
329409
329412
  const rlPlacement = ['right', 'left'];
@@ -329434,15 +329437,16 @@ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
329434
329437
  return list;
329435
329438
  }
329436
329439
  function getOppositePlacement(placement) {
329437
- return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
329440
+ const side = getSide(placement);
329441
+ return oppositeSideMap[side] + placement.slice(side.length);
329438
329442
  }
329439
329443
  function expandPaddingObject(padding) {
329444
+ var _padding$top, _padding$right, _padding$bottom, _padding$left;
329440
329445
  return {
329441
- top: 0,
329442
- right: 0,
329443
- bottom: 0,
329444
- left: 0,
329445
- ...padding
329446
+ top: (_padding$top = padding.top) != null ? _padding$top : 0,
329447
+ right: (_padding$right = padding.right) != null ? _padding$right : 0,
329448
+ bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
329449
+ left: (_padding$left = padding.left) != null ? _padding$left : 0
329446
329450
  };
329447
329451
  }
329448
329452
  function getPaddingObject(padding) {
@@ -329534,17 +329538,78 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
329534
329538
  y: reference.y
329535
329539
  };
329536
329540
  }
329537
- switch (getAlignment(placement)) {
329538
- case 'start':
329539
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
329540
- break;
329541
- case 'end':
329542
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
329543
- break;
329541
+ const alignment = getAlignment(placement);
329542
+ if (alignment) {
329543
+ coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);
329544
329544
  }
329545
329545
  return coords;
329546
329546
  }
329547
329547
 
329548
+ /**
329549
+ * Resolves with an object of overflow side offsets that determine how much the
329550
+ * element is overflowing a given clipping boundary on each side.
329551
+ * - positive = overflowing the boundary by that number of pixels
329552
+ * - negative = how many pixels left before it will overflow
329553
+ * - 0 = lies flush with the boundary
329554
+ * @see https://floating-ui.com/docs/detectOverflow
329555
+ */
329556
+ async function detectOverflow(state, options) {
329557
+ var _await$platform$isEle;
329558
+ if (options === void 0) {
329559
+ options = {};
329560
+ }
329561
+ const {
329562
+ x,
329563
+ y,
329564
+ platform,
329565
+ rects,
329566
+ elements,
329567
+ strategy
329568
+ } = state;
329569
+ const {
329570
+ boundary = 'clippingAncestors',
329571
+ rootBoundary = 'viewport',
329572
+ elementContext = 'floating',
329573
+ altBoundary = false,
329574
+ padding = 0
329575
+ } = evaluate(options, state);
329576
+ const paddingObject = getPaddingObject(padding);
329577
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
329578
+ const element = elements[altBoundary ? altContext : elementContext];
329579
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
329580
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
329581
+ boundary,
329582
+ rootBoundary,
329583
+ strategy
329584
+ }));
329585
+ const rect = elementContext === 'floating' ? {
329586
+ x,
329587
+ y,
329588
+ width: rects.floating.width,
329589
+ height: rects.floating.height
329590
+ } : rects.reference;
329591
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
329592
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
329593
+ x: 1,
329594
+ y: 1
329595
+ };
329596
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
329597
+ elements,
329598
+ rect,
329599
+ offsetParent,
329600
+ strategy
329601
+ }) : rect);
329602
+ return {
329603
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
329604
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
329605
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
329606
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
329607
+ };
329608
+ }
329609
+
329610
+ // Maximum number of resets that can occur before bailing to avoid infinite reset loops.
329611
+ const MAX_RESET_COUNT = 50;
329612
+
329548
329613
  /**
329549
329614
  * Computes the `x` and `y` coordinates that will place the floating element
329550
329615
  * next to a given reference element.
@@ -329559,7 +329624,10 @@ const computePosition = async (reference, floating, config) => {
329559
329624
  middleware = [],
329560
329625
  platform
329561
329626
  } = config;
329562
- const validMiddleware = middleware.filter(Boolean);
329627
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
329628
+ ...platform,
329629
+ detectOverflow
329630
+ };
329563
329631
  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
329564
329632
  let rects = await platform.getElementRects({
329565
329633
  reference,
@@ -329571,13 +329639,17 @@ const computePosition = async (reference, floating, config) => {
329571
329639
  y
329572
329640
  } = computeCoordsFromPlacement(rects, placement, rtl);
329573
329641
  let statefulPlacement = placement;
329574
- let middlewareData = {};
329575
329642
  let resetCount = 0;
329576
- for (let i = 0; i < validMiddleware.length; i++) {
329643
+ const middlewareData = {};
329644
+ for (let i = 0; i < middleware.length; i++) {
329645
+ const currentMiddleware = middleware[i];
329646
+ if (!currentMiddleware) {
329647
+ continue;
329648
+ }
329577
329649
  const {
329578
329650
  name,
329579
329651
  fn
329580
- } = validMiddleware[i];
329652
+ } = currentMiddleware;
329581
329653
  const {
329582
329654
  x: nextX,
329583
329655
  y: nextY,
@@ -329591,7 +329663,7 @@ const computePosition = async (reference, floating, config) => {
329591
329663
  strategy,
329592
329664
  middlewareData,
329593
329665
  rects,
329594
- platform,
329666
+ platform: platformWithDetectOverflow,
329595
329667
  elements: {
329596
329668
  reference,
329597
329669
  floating
@@ -329599,14 +329671,11 @@ const computePosition = async (reference, floating, config) => {
329599
329671
  });
329600
329672
  x = nextX != null ? nextX : x;
329601
329673
  y = nextY != null ? nextY : y;
329602
- middlewareData = {
329603
- ...middlewareData,
329604
- [name]: {
329605
- ...middlewareData[name],
329606
- ...data
329607
- }
329674
+ middlewareData[name] = {
329675
+ ...middlewareData[name],
329676
+ ...data
329608
329677
  };
329609
- if (reset && resetCount <= 50) {
329678
+ if (reset && resetCount < MAX_RESET_COUNT) {
329610
329679
  resetCount++;
329611
329680
  if (typeof reset === 'object') {
329612
329681
  if (reset.placement) {
@@ -329636,71 +329705,6 @@ const computePosition = async (reference, floating, config) => {
329636
329705
  };
329637
329706
  };
329638
329707
 
329639
- /**
329640
- * Resolves with an object of overflow side offsets that determine how much the
329641
- * element is overflowing a given clipping boundary on each side.
329642
- * - positive = overflowing the boundary by that number of pixels
329643
- * - negative = how many pixels left before it will overflow
329644
- * - 0 = lies flush with the boundary
329645
- * @see https://floating-ui.com/docs/detectOverflow
329646
- */
329647
- async function detectOverflow(state, options) {
329648
- var _await$platform$isEle;
329649
- if (options === void 0) {
329650
- options = {};
329651
- }
329652
- const {
329653
- x,
329654
- y,
329655
- platform,
329656
- rects,
329657
- elements,
329658
- strategy
329659
- } = state;
329660
- const {
329661
- boundary = 'clippingAncestors',
329662
- rootBoundary = 'viewport',
329663
- elementContext = 'floating',
329664
- altBoundary = false,
329665
- padding = 0
329666
- } = evaluate(options, state);
329667
- const paddingObject = getPaddingObject(padding);
329668
- const altContext = elementContext === 'floating' ? 'reference' : 'floating';
329669
- const element = elements[altBoundary ? altContext : elementContext];
329670
- const clippingClientRect = rectToClientRect(await platform.getClippingRect({
329671
- element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
329672
- boundary,
329673
- rootBoundary,
329674
- strategy
329675
- }));
329676
- const rect = elementContext === 'floating' ? {
329677
- x,
329678
- y,
329679
- width: rects.floating.width,
329680
- height: rects.floating.height
329681
- } : rects.reference;
329682
- const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
329683
- const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
329684
- x: 1,
329685
- y: 1
329686
- } : {
329687
- x: 1,
329688
- y: 1
329689
- };
329690
- const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
329691
- elements,
329692
- rect,
329693
- offsetParent,
329694
- strategy
329695
- }) : rect);
329696
- return {
329697
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
329698
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
329699
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
329700
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
329701
- };
329702
- }
329703
-
329704
329708
  /**
329705
329709
  * Provides data to position an inner element of the floating element so that it
329706
329710
  * appears centered to the reference element.
@@ -329758,17 +329762,16 @@ const arrow = options => ({
329758
329762
 
329759
329763
  // Make sure the arrow doesn't overflow the floating element if the center
329760
329764
  // point is outside the floating element's bounds.
329761
- const min$1 = minPadding;
329762
329765
  const max = clientSize - arrowDimensions[length] - maxPadding;
329763
329766
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
329764
- const offset = clamp(min$1, center, max);
329767
+ const offset = clamp(minPadding, center, max);
329765
329768
 
329766
329769
  // If the reference is small enough that the arrow's padding causes it to
329767
329770
  // to point to nothing for an aligned placement, adjust the offset of the
329768
329771
  // floating element itself. To ensure `shift()` continues to take action,
329769
329772
  // a single reset is performed when this is true.
329770
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
329771
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
329773
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
329774
+ const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;
329772
329775
  return {
329773
329776
  [axis]: coords[axis] + alignmentOffset,
329774
329777
  data: {
@@ -329822,13 +329825,11 @@ const autoPlacement = function (options) {
329822
329825
  ...detectOverflowOptions
329823
329826
  } = floating_ui_core_evaluate(options, state);
329824
329827
  const placements$1 = alignment !== undefined || allowedPlacements === floating_ui_core_placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
329825
- const overflow = await detectOverflow(state, detectOverflowOptions);
329826
329828
  const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
329827
329829
  const currentPlacement = placements$1[currentIndex];
329828
329830
  if (currentPlacement == null) {
329829
329831
  return {};
329830
329832
  }
329831
- const alignmentSides = floating_ui_core_getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
329832
329833
 
329833
329834
  // Make `computeCoords` start from the right place.
329834
329835
  if (placement !== currentPlacement) {
@@ -329838,6 +329839,8 @@ const autoPlacement = function (options) {
329838
329839
  }
329839
329840
  };
329840
329841
  }
329842
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
329843
+ const alignmentSides = floating_ui_core_getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
329841
329844
  const currentOverflows = [overflow[floating_ui_core_getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
329842
329845
  const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
329843
329846
  placement: currentPlacement,
@@ -329936,7 +329939,7 @@ const flip = function (options) {
329936
329939
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
329937
329940
  }
329938
329941
  const placements = [initialPlacement, ...fallbackPlacements];
329939
- const overflow = await detectOverflow(state, detectOverflowOptions);
329942
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
329940
329943
  const overflows = [];
329941
329944
  let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
329942
329945
  if (checkMainAxis) {
@@ -329961,7 +329964,7 @@ const flip = function (options) {
329961
329964
  if (!ignoreCrossAxisOverflow ||
329962
329965
  // We leave the current main axis only if every placement on that axis
329963
329966
  // overflows the main axis.
329964
- overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
329967
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
329965
329968
  // Try next placement and re-run the lifecycle.
329966
329969
  return {
329967
329970
  data: {
@@ -330043,7 +330046,8 @@ const hide = function (options) {
330043
330046
  options,
330044
330047
  async fn(state) {
330045
330048
  const {
330046
- rects
330049
+ rects,
330050
+ platform
330047
330051
  } = state;
330048
330052
  const {
330049
330053
  strategy = 'referenceHidden',
@@ -330052,7 +330056,7 @@ const hide = function (options) {
330052
330056
  switch (strategy) {
330053
330057
  case 'referenceHidden':
330054
330058
  {
330055
- const overflow = await detectOverflow(state, {
330059
+ const overflow = await platform.detectOverflow(state, {
330056
330060
  ...detectOverflowOptions,
330057
330061
  elementContext: 'reference'
330058
330062
  });
@@ -330066,7 +330070,7 @@ const hide = function (options) {
330066
330070
  }
330067
330071
  case 'escaped':
330068
330072
  {
330069
- const overflow = await detectOverflow(state, {
330073
+ const overflow = await platform.detectOverflow(state, {
330070
330074
  ...detectOverflowOptions,
330071
330075
  altBoundary: true
330072
330076
  });
@@ -330143,12 +330147,19 @@ const inline = function (options) {
330143
330147
  y
330144
330148
  } = floating_ui_core_evaluate(options, state);
330145
330149
  const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
330150
+
330151
+ // No rects (e.g. a hidden or detached reference, or a collapsed range) —
330152
+ // keep the existing reference rect rather than resetting to an invalid
330153
+ // one with non-finite values.
330154
+ if (!nativeClientRects.length) {
330155
+ return {};
330156
+ }
330146
330157
  const clientRects = getRectsByLine(nativeClientRects);
330147
330158
  const fallback = floating_ui_core_rectToClientRect(getBoundingRect(nativeClientRects));
330148
330159
  const paddingObject = floating_ui_core_getPaddingObject(padding);
330149
330160
  function getBoundingClientRect() {
330150
330161
  // There are two rects and they are disjoined.
330151
- if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
330162
+ if (clientRects.length === 2 && (clientRects[0].left > clientRects[1].right || clientRects[1].left > clientRects[0].right) && x != null && y != null) {
330152
330163
  // Find the first rect in which the point is fully inside.
330153
330164
  return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
330154
330165
  }
@@ -330163,18 +330174,12 @@ const inline = function (options) {
330163
330174
  const bottom = lastRect.bottom;
330164
330175
  const left = isTop ? firstRect.left : lastRect.left;
330165
330176
  const right = isTop ? firstRect.right : lastRect.right;
330166
- const width = right - left;
330167
- const height = bottom - top;
330168
- return {
330169
- top,
330170
- bottom,
330171
- left,
330172
- right,
330173
- width,
330174
- height,
330177
+ return floating_ui_core_rectToClientRect({
330175
330178
  x: left,
330176
- y: top
330177
- };
330179
+ y: top,
330180
+ width: right - left,
330181
+ height: bottom - top
330182
+ });
330178
330183
  }
330179
330184
  const isLeftSide = floating_ui_core_getSide(placement) === 'left';
330180
330185
  const maxRight = floating_ui_core_max(...clientRects.map(rect => rect.right));
@@ -330182,20 +330187,12 @@ const inline = function (options) {
330182
330187
  const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
330183
330188
  const top = measureRects[0].top;
330184
330189
  const bottom = measureRects[measureRects.length - 1].bottom;
330185
- const left = minLeft;
330186
- const right = maxRight;
330187
- const width = right - left;
330188
- const height = bottom - top;
330189
- return {
330190
- top,
330191
- bottom,
330192
- left,
330193
- right,
330194
- width,
330195
- height,
330196
- x: left,
330197
- y: top
330198
- };
330190
+ return floating_ui_core_rectToClientRect({
330191
+ x: minLeft,
330192
+ y: top,
330193
+ width: maxRight - minLeft,
330194
+ height: bottom - top
330195
+ });
330199
330196
  }
330200
330197
  return fallback;
330201
330198
  }
@@ -330320,7 +330317,8 @@ const shift = function (options) {
330320
330317
  const {
330321
330318
  x,
330322
330319
  y,
330323
- placement
330320
+ placement,
330321
+ platform
330324
330322
  } = state;
330325
330323
  const {
330326
330324
  mainAxis: checkMainAxis = true,
@@ -330343,24 +330341,17 @@ const shift = function (options) {
330343
330341
  x,
330344
330342
  y
330345
330343
  };
330346
- const overflow = await detectOverflow(state, detectOverflowOptions);
330347
- const crossAxis = getSideAxis(getSide(placement));
330344
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
330345
+ const crossAxis = getSideAxis(placement);
330348
330346
  const mainAxis = getOppositeAxis(crossAxis);
330349
330347
  let mainAxisCoord = coords[mainAxis];
330350
330348
  let crossAxisCoord = coords[crossAxis];
330349
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);
330351
330350
  if (checkMainAxis) {
330352
- const minSide = mainAxis === 'y' ? 'top' : 'left';
330353
- const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
330354
- const min = mainAxisCoord + overflow[minSide];
330355
- const max = mainAxisCoord - overflow[maxSide];
330356
- mainAxisCoord = clamp(min, mainAxisCoord, max);
330351
+ mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
330357
330352
  }
330358
330353
  if (checkCrossAxis) {
330359
- const minSide = crossAxis === 'y' ? 'top' : 'left';
330360
- const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
330361
- const min = crossAxisCoord + overflow[minSide];
330362
- const max = crossAxisCoord - overflow[maxSide];
330363
- crossAxisCoord = clamp(min, crossAxisCoord, max);
330354
+ crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
330364
330355
  }
330365
330356
  const limitedCoords = limiter.fn({
330366
330357
  ...state,
@@ -330391,6 +330382,7 @@ const limitShift = function (options) {
330391
330382
  return {
330392
330383
  options,
330393
330384
  fn(state) {
330385
+ var _rawOffset$mainAxis, _rawOffset$crossAxis;
330394
330386
  const {
330395
330387
  x,
330396
330388
  y,
@@ -330416,9 +330408,8 @@ const limitShift = function (options) {
330416
330408
  mainAxis: rawOffset,
330417
330409
  crossAxis: 0
330418
330410
  } : {
330419
- mainAxis: 0,
330420
- crossAxis: 0,
330421
- ...rawOffset
330411
+ mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
330412
+ crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
330422
330413
  };
330423
330414
  if (checkMainAxis) {
330424
330415
  const len = mainAxis === 'y' ? 'height' : 'width';
@@ -330450,6 +330441,12 @@ const limitShift = function (options) {
330450
330441
  };
330451
330442
  };
330452
330443
 
330444
+ // Method syntax keeps callback parameters bivariant, but expressing the
330445
+ // explicit `| undefined` required by `exactOptionalPropertyTypes` needs
330446
+ // property syntax, which is contravariant under `strictFunctionTypes`.
330447
+ // Extracting the function from a method position restores that bivariance so
330448
+ // consumers can still assign callbacks with narrower parameter types.
330449
+
330453
330450
  /**
330454
330451
  * Provides data that allows you to change the size of the floating element —
330455
330452
  * for instance, prevent it from overflowing the clipping boundary or match the
@@ -330464,7 +330461,6 @@ const size = function (options) {
330464
330461
  name: 'size',
330465
330462
  options,
330466
330463
  async fn(state) {
330467
- var _state$middlewareData, _state$middlewareData2;
330468
330464
  const {
330469
330465
  placement,
330470
330466
  rects,
@@ -330475,7 +330471,7 @@ const size = function (options) {
330475
330471
  apply = () => {},
330476
330472
  ...detectOverflowOptions
330477
330473
  } = evaluate(options, state);
330478
- const overflow = await detectOverflow(state, detectOverflowOptions);
330474
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
330479
330475
  const side = getSide(placement);
330480
330476
  const alignment = getAlignment(placement);
330481
330477
  const isYAxis = getSideAxis(placement) === 'y';
@@ -330496,24 +330492,21 @@ const size = function (options) {
330496
330492
  const maximumClippingWidth = width - overflow.left - overflow.right;
330497
330493
  const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
330498
330494
  const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
330499
- const noShift = !state.middlewareData.shift;
330495
+ const shiftData = state.middlewareData.shift;
330496
+ const noShift = !shiftData;
330500
330497
  let availableHeight = overflowAvailableHeight;
330501
330498
  let availableWidth = overflowAvailableWidth;
330502
- if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
330499
+ if (shiftData != null && shiftData.enabled.x) {
330503
330500
  availableWidth = maximumClippingWidth;
330504
330501
  }
330505
- if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
330502
+ if (shiftData != null && shiftData.enabled.y) {
330506
330503
  availableHeight = maximumClippingHeight;
330507
330504
  }
330508
330505
  if (noShift && !alignment) {
330509
- const xMin = max(overflow.left, 0);
330510
- const xMax = max(overflow.right, 0);
330511
- const yMin = max(overflow.top, 0);
330512
- const yMax = max(overflow.bottom, 0);
330513
330506
  if (isYAxis) {
330514
- availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
330507
+ availableWidth = width - 2 * max(overflow.left, overflow.right);
330515
330508
  } else {
330516
- availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
330509
+ availableHeight = height - 2 * max(overflow.top, overflow.bottom);
330517
330510
  }
330518
330511
  }
330519
330512
  await apply({
@@ -330581,40 +330574,42 @@ function isShadowRoot(value) {
330581
330574
  }
330582
330575
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
330583
330576
  }
330584
- const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
330585
330577
  function isOverflowElement(element) {
330586
330578
  const {
330587
330579
  overflow,
330588
330580
  overflowX,
330589
330581
  overflowY,
330590
330582
  display
330591
- } = getComputedStyle(element);
330592
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
330583
+ } = floating_ui_utils_dom_getComputedStyle(element);
330584
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
330593
330585
  }
330594
- const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
330595
330586
  function isTableElement(element) {
330596
- return tableElements.has(getNodeName(element));
330587
+ return /^(table|td|th)$/.test(getNodeName(element));
330597
330588
  }
330598
- const topLayerSelectors = [':popover-open', ':modal'];
330599
330589
  function isTopLayer(element) {
330600
- return topLayerSelectors.some(selector => {
330601
- try {
330602
- return element.matches(selector);
330603
- } catch (_e) {
330604
- return false;
330590
+ try {
330591
+ if (element.matches(':popover-open')) {
330592
+ return true;
330605
330593
  }
330606
- });
330594
+ } catch (_e) {
330595
+ // no-op
330596
+ }
330597
+ try {
330598
+ return element.matches(':modal');
330599
+ } catch (_e) {
330600
+ return false;
330601
+ }
330607
330602
  }
330608
- const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
330609
- const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
330610
- const containValues = ['paint', 'layout', 'strict', 'content'];
330603
+ const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
330604
+ const containRe = /paint|layout|strict|content/;
330605
+ const isNotNone = value => !!value && value !== 'none';
330606
+ let isWebKitValue;
330611
330607
  function isContainingBlock(elementOrCss) {
330612
- const webkit = isWebKit();
330613
- const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
330608
+ const css = isElement(elementOrCss) ? floating_ui_utils_dom_getComputedStyle(elementOrCss) : elementOrCss;
330614
330609
 
330615
330610
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
330616
330611
  // https://drafts.csswg.org/css-transforms-2/#individual-transforms
330617
- return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));
330612
+ return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
330618
330613
  }
330619
330614
  function getContainingBlock(element) {
330620
330615
  let currentNode = getParentNode(element);
@@ -330629,14 +330624,15 @@ function getContainingBlock(element) {
330629
330624
  return null;
330630
330625
  }
330631
330626
  function isWebKit() {
330632
- if (typeof CSS === 'undefined' || !CSS.supports) return false;
330633
- return CSS.supports('-webkit-backdrop-filter', 'none');
330627
+ if (isWebKitValue == null) {
330628
+ isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
330629
+ }
330630
+ return isWebKitValue;
330634
330631
  }
330635
- const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
330636
330632
  function isLastTraversableNode(node) {
330637
- return lastTraversableNodeNames.has(getNodeName(node));
330633
+ return /^(html|body|#document)$/.test(getNodeName(node));
330638
330634
  }
330639
- function getComputedStyle(element) {
330635
+ function floating_ui_utils_dom_getComputedStyle(element) {
330640
330636
  return getWindow(element).getComputedStyle(element);
330641
330637
  }
330642
330638
  function getNodeScroll(element) {
@@ -330669,7 +330665,7 @@ function getParentNode(node) {
330669
330665
  function getNearestOverflowAncestor(node) {
330670
330666
  const parentNode = getParentNode(node);
330671
330667
  if (isLastTraversableNode(parentNode)) {
330672
- return node.ownerDocument ? node.ownerDocument.body : node.body;
330668
+ return (node.ownerDocument || node).body;
330673
330669
  }
330674
330670
  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
330675
330671
  return parentNode;
@@ -330690,8 +330686,9 @@ function getOverflowAncestors(node, list, traverseIframes) {
330690
330686
  if (isBody) {
330691
330687
  const frameElement = getFrameElement(win);
330692
330688
  return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
330689
+ } else {
330690
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
330693
330691
  }
330694
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
330695
330692
  }
330696
330693
  function getFrameElement(win) {
330697
330694
  return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
@@ -330708,7 +330705,7 @@ function getFrameElement(win) {
330708
330705
 
330709
330706
 
330710
330707
  function getCssDimensions(element) {
330711
- const css = getComputedStyle(element);
330708
+ const css = floating_ui_utils_dom_getComputedStyle(element);
330712
330709
  // In testing environments, the `width` and `height` properties are empty
330713
330710
  // strings for SVG elements, returning NaN. Fallback to `0` in this case.
330714
330711
  let width = parseFloat(css.width) || 0;
@@ -330775,10 +330772,7 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
330775
330772
  if (isFixed === void 0) {
330776
330773
  isFixed = false;
330777
330774
  }
330778
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
330779
- return false;
330780
- }
330781
- return isFixed;
330775
+ return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
330782
330776
  }
330783
330777
 
330784
330778
  function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
@@ -330805,15 +330799,15 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
330805
330799
  let y = (clientRect.top + visualOffsets.y) / scale.y;
330806
330800
  let width = clientRect.width / scale.x;
330807
330801
  let height = clientRect.height / scale.y;
330808
- if (domElement) {
330802
+ if (domElement && offsetParent) {
330809
330803
  const win = getWindow(domElement);
330810
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
330804
+ const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
330811
330805
  let currentWin = win;
330812
330806
  let currentIFrame = getFrameElement(currentWin);
330813
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
330807
+ while (currentIFrame && offsetWin !== currentWin) {
330814
330808
  const iframeScale = getScale(currentIFrame);
330815
330809
  const iframeRect = currentIFrame.getBoundingClientRect();
330816
- const css = getComputedStyle(currentIFrame);
330810
+ const css = floating_ui_utils_dom_getComputedStyle(currentIFrame);
330817
330811
  const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
330818
330812
  const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
330819
330813
  x *= iframeScale.x;
@@ -330844,14 +330838,9 @@ function getWindowScrollBarX(element, rect) {
330844
330838
  return rect.left + leftScroll;
330845
330839
  }
330846
330840
 
330847
- function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
330848
- if (ignoreScrollbarX === void 0) {
330849
- ignoreScrollbarX = false;
330850
- }
330841
+ function getHTMLOffset(documentElement, scroll) {
330851
330842
  const htmlRect = documentElement.getBoundingClientRect();
330852
- const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
330853
- // RTL <body> scrollbar.
330854
- getWindowScrollBarX(documentElement, htmlRect));
330843
+ const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
330855
330844
  const y = htmlRect.top + scroll.scrollTop;
330856
330845
  return {
330857
330846
  x,
@@ -330879,18 +330868,18 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
330879
330868
  let scale = createCoords(1);
330880
330869
  const offsets = createCoords(0);
330881
330870
  const isOffsetParentAnElement = isHTMLElement(offsetParent);
330882
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
330871
+ if (isOffsetParentAnElement || !isFixed) {
330883
330872
  if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
330884
330873
  scroll = getNodeScroll(offsetParent);
330885
330874
  }
330886
- if (isHTMLElement(offsetParent)) {
330875
+ if (isOffsetParentAnElement) {
330887
330876
  const offsetRect = getBoundingClientRect(offsetParent);
330888
330877
  scale = getScale(offsetParent);
330889
330878
  offsets.x = offsetRect.x + offsetParent.clientLeft;
330890
330879
  offsets.y = offsetRect.y + offsetParent.clientTop;
330891
330880
  }
330892
330881
  }
330893
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
330882
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
330894
330883
  return {
330895
330884
  width: rect.width * scale.x,
330896
330885
  height: rect.height * scale.y,
@@ -330900,20 +330889,19 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
330900
330889
  }
330901
330890
 
330902
330891
  function getClientRects(element) {
330903
- return Array.from(element.getClientRects());
330892
+ return element.getClientRects ? Array.from(element.getClientRects()) : [];
330904
330893
  }
330905
330894
 
330906
330895
  // Gets the entire size of the scrollable document area, even extending outside
330907
330896
  // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
330908
- function getDocumentRect(element) {
330909
- const html = getDocumentElement(element);
330910
- const scroll = getNodeScroll(element);
330911
- const body = element.ownerDocument.body;
330897
+ function getDocumentRect(html) {
330898
+ const scroll = getNodeScroll(html);
330899
+ const body = html.ownerDocument.body;
330912
330900
  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
330913
330901
  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
330914
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
330902
+ let x = -scroll.scrollLeft + getWindowScrollBarX(html);
330915
330903
  const y = -scroll.scrollTop;
330916
- if (getComputedStyle(body).direction === 'rtl') {
330904
+ if (floating_ui_utils_dom_getComputedStyle(body).direction === 'rtl') {
330917
330905
  x += max(html.clientWidth, body.clientWidth) - width;
330918
330906
  }
330919
330907
  return {
@@ -330924,7 +330912,15 @@ function getDocumentRect(element) {
330924
330912
  };
330925
330913
  }
330926
330914
 
330927
- function getViewportRect(element, strategy) {
330915
+ // Safety check: ensure the scrollbar space is reasonable in case this
330916
+ // calculation is affected by unusual styles.
330917
+ // Most scrollbars leave 15-18px of space.
330918
+ const SCROLLBAR_MAX = 25;
330919
+ function getViewportRect(element, strategy, rootBoundary) {
330920
+ if (rootBoundary === void 0) {
330921
+ rootBoundary = 'viewport';
330922
+ }
330923
+ const isLayoutViewport = rootBoundary === 'layoutViewport';
330928
330924
  const win = getWindow(element);
330929
330925
  const html = getDocumentElement(element);
330930
330926
  const visualViewport = win.visualViewport;
@@ -330933,12 +330929,41 @@ function getViewportRect(element, strategy) {
330933
330929
  let x = 0;
330934
330930
  let y = 0;
330935
330931
  if (visualViewport) {
330936
- width = visualViewport.width;
330937
- height = visualViewport.height;
330938
- const visualViewportBased = isWebKit();
330939
- if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
330940
- x = visualViewport.offsetLeft;
330941
- y = visualViewport.offsetTop;
330932
+ // Client coordinates are relative to the layout viewport, except in
330933
+ // WebKit with an `absolute` strategy, where they are relative to the
330934
+ // visual viewport.
330935
+ const layoutRelativeClientCoords = !isWebKit() || strategy === 'fixed';
330936
+ if (isLayoutViewport) {
330937
+ if (!layoutRelativeClientCoords) {
330938
+ x = -visualViewport.offsetLeft;
330939
+ y = -visualViewport.offsetTop;
330940
+ }
330941
+ } else {
330942
+ width = visualViewport.width;
330943
+ height = visualViewport.height;
330944
+ if (layoutRelativeClientCoords) {
330945
+ x = visualViewport.offsetLeft;
330946
+ y = visualViewport.offsetTop;
330947
+ }
330948
+ }
330949
+ }
330950
+ const windowScrollbarX = getWindowScrollBarX(html);
330951
+ // `scrollbar-gutter: stable` on the <html> reserves gutter space that shrinks
330952
+ // the visual width but isn't reflected in `html.clientWidth`, so subtract it.
330953
+ // Only the inline-end (right) gutter can hold the scrollbar; `both-edges` also
330954
+ // reserves an empty inline-start gutter that clips nothing, so exclude just
330955
+ // the one scrollbar-side gutter — halve the measured (two-gutter) total. A
330956
+ // left-side scrollbar (`windowScrollbarX > 0`) is already handled by
330957
+ // `getHTMLOffset`/`visualViewport.width`; skip it here.
330958
+ if (windowScrollbarX <= 0) {
330959
+ const doc = html.ownerDocument;
330960
+ const body = doc.body;
330961
+ const bodyStyles = getComputedStyle(body);
330962
+ const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
330963
+ const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
330964
+ const gutter = getComputedStyle(html).scrollbarGutter === 'stable both-edges' ? reservedWidth / 2 : reservedWidth;
330965
+ if (gutter <= SCROLLBAR_MAX) {
330966
+ width -= gutter;
330942
330967
  }
330943
330968
  }
330944
330969
  return {
@@ -330949,13 +330974,12 @@ function getViewportRect(element, strategy) {
330949
330974
  };
330950
330975
  }
330951
330976
 
330952
- const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
330953
330977
  // Returns the inner client rect, subtracting scrollbars if present.
330954
330978
  function getInnerBoundingClientRect(element, strategy) {
330955
330979
  const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
330956
330980
  const top = clientRect.top + element.clientTop;
330957
330981
  const left = clientRect.left + element.clientLeft;
330958
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
330982
+ const scale = getScale(element);
330959
330983
  const width = element.clientWidth * scale.x;
330960
330984
  const height = element.clientHeight * scale.y;
330961
330985
  const x = left * scale.x;
@@ -330969,8 +330993,8 @@ function getInnerBoundingClientRect(element, strategy) {
330969
330993
  }
330970
330994
  function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
330971
330995
  let rect;
330972
- if (clippingAncestor === 'viewport') {
330973
- rect = getViewportRect(element, strategy);
330996
+ if (clippingAncestor === 'viewport' || clippingAncestor === 'layoutViewport') {
330997
+ rect = getViewportRect(element, strategy, clippingAncestor);
330974
330998
  } else if (clippingAncestor === 'document') {
330975
330999
  rect = getDocumentRect(getDocumentElement(element));
330976
331000
  } else if (isElement(clippingAncestor)) {
@@ -330986,13 +331010,6 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
330986
331010
  }
330987
331011
  return rectToClientRect(rect);
330988
331012
  }
330989
- function hasFixedPositionAncestor(element, stopNode) {
330990
- const parentNode = getParentNode(element);
330991
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
330992
- return false;
330993
- }
330994
- return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
330995
- }
330996
331013
 
330997
331014
  // A "clipping ancestor" is an `overflow` element with the characteristic of
330998
331015
  // clipping (or hiding) child elements. This returns all clipping ancestors
@@ -331003,24 +331020,28 @@ function getClippingElementAncestors(element, cache) {
331003
331020
  return cachedResult;
331004
331021
  }
331005
331022
  let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
331006
- let currentContainingBlockComputedStyle = null;
331007
- const elementIsFixed = getComputedStyle(element).position === 'fixed';
331023
+ let lastKeptComputedStyle = null;
331024
+ const elementIsFixed = floating_ui_utils_dom_getComputedStyle(element).position === 'fixed';
331008
331025
  let currentNode = elementIsFixed ? getParentNode(element) : element;
331009
331026
 
331010
331027
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
331011
331028
  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
331012
- const computedStyle = getComputedStyle(currentNode);
331029
+ const computedStyle = floating_ui_utils_dom_getComputedStyle(currentNode);
331013
331030
  const currentNodeIsContaining = isContainingBlock(currentNode);
331014
- if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
331015
- currentContainingBlockComputedStyle = null;
331016
- }
331017
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
331031
+ // Position of the containing block chain below the current node. A fixed
331032
+ // element whose containing block hasn't been found yet is a fixed chain.
331033
+ const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? 'fixed' : '';
331034
+
331035
+ // A non-containing ancestor does not clip the element when the chain
331036
+ // below it escapes it: a fixed chain escapes all ancestors up to the
331037
+ // next containing block, an absolute chain escapes static ancestors.
331038
+ const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === 'fixed' || lastPosition === 'absolute' && computedStyle.position === 'static');
331018
331039
  if (shouldDropCurrentNode) {
331019
331040
  // Drop non-containing blocks.
331020
331041
  result = result.filter(ancestor => ancestor !== currentNode);
331021
331042
  } else {
331022
- // Record last containing block for next iteration.
331023
- currentContainingBlockComputedStyle = computedStyle;
331043
+ // The kept node carries the chain position for the next iteration.
331044
+ lastKeptComputedStyle = computedStyle;
331024
331045
  }
331025
331046
  currentNode = getParentNode(currentNode);
331026
331047
  }
@@ -331039,20 +331060,23 @@ function getClippingRect(_ref) {
331039
331060
  } = _ref;
331040
331061
  const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
331041
331062
  const clippingAncestors = [...elementClippingAncestors, rootBoundary];
331042
- const firstClippingAncestor = clippingAncestors[0];
331043
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
331044
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
331045
- accRect.top = max(rect.top, accRect.top);
331046
- accRect.right = min(rect.right, accRect.right);
331047
- accRect.bottom = min(rect.bottom, accRect.bottom);
331048
- accRect.left = max(rect.left, accRect.left);
331049
- return accRect;
331050
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
331063
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
331064
+ let top = firstRect.top;
331065
+ let right = firstRect.right;
331066
+ let bottom = firstRect.bottom;
331067
+ let left = firstRect.left;
331068
+ for (let i = 1; i < clippingAncestors.length; i++) {
331069
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
331070
+ top = max(rect.top, top);
331071
+ right = min(rect.right, right);
331072
+ bottom = min(rect.bottom, bottom);
331073
+ left = max(rect.left, left);
331074
+ }
331051
331075
  return {
331052
- width: clippingRect.right - clippingRect.left,
331053
- height: clippingRect.bottom - clippingRect.top,
331054
- x: clippingRect.left,
331055
- y: clippingRect.top
331076
+ width: right - left,
331077
+ height: bottom - top,
331078
+ x: left,
331079
+ y: top
331056
331080
  };
331057
331081
  }
331058
331082
 
@@ -331077,13 +331101,7 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
331077
331101
  scrollTop: 0
331078
331102
  };
331079
331103
  const offsets = createCoords(0);
331080
-
331081
- // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
331082
- // Firefox with layout.scrollbar.side = 3 in about:config to test this.
331083
- function setLeftRTLScrollbarOffset() {
331084
- offsets.x = getWindowScrollBarX(documentElement);
331085
- }
331086
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
331104
+ if (isOffsetParentAnElement || !isFixed) {
331087
331105
  if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
331088
331106
  scroll = getNodeScroll(offsetParent);
331089
331107
  }
@@ -331091,12 +331109,13 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
331091
331109
  const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
331092
331110
  offsets.x = offsetRect.x + offsetParent.clientLeft;
331093
331111
  offsets.y = offsetRect.y + offsetParent.clientTop;
331094
- } else if (documentElement) {
331095
- setLeftRTLScrollbarOffset();
331096
331112
  }
331097
331113
  }
331098
- if (isFixed && !isOffsetParentAnElement && documentElement) {
331099
- setLeftRTLScrollbarOffset();
331114
+
331115
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
331116
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
331117
+ if (!isOffsetParentAnElement && documentElement) {
331118
+ offsets.x = getWindowScrollBarX(documentElement);
331100
331119
  }
331101
331120
  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
331102
331121
  const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
@@ -331110,11 +331129,11 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
331110
331129
  }
331111
331130
 
331112
331131
  function isStaticPositioned(element) {
331113
- return getComputedStyle(element).position === 'static';
331132
+ return floating_ui_utils_dom_getComputedStyle(element).position === 'static';
331114
331133
  }
331115
331134
 
331116
331135
  function getTrueOffsetParent(element, polyfill) {
331117
- if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
331136
+ if (!isHTMLElement(element) || floating_ui_utils_dom_getComputedStyle(element).position === 'fixed') {
331118
331137
  return null;
331119
331138
  }
331120
331139
  if (polyfill) {
@@ -331175,7 +331194,7 @@ const getElementRects = async function (data) {
331175
331194
  };
331176
331195
 
331177
331196
  function isRTL(element) {
331178
- return getComputedStyle(element).direction === 'rtl';
331197
+ return floating_ui_utils_dom_getComputedStyle(element).direction === 'rtl';
331179
331198
  }
331180
331199
 
331181
331200
  const platform = {
@@ -331196,7 +331215,7 @@ function rectsAreEqual(a, b) {
331196
331215
  }
331197
331216
 
331198
331217
  // https://samthor.au/2021/observing-dom/
331199
- function observeMove(element, onMove) {
331218
+ function observeMove(element, onMove, ancestorResize) {
331200
331219
  let io = null;
331201
331220
  let timeoutId;
331202
331221
  const root = getDocumentElement(element);
@@ -331239,13 +331258,22 @@ function observeMove(element, onMove) {
331239
331258
  let isFirstUpdate = true;
331240
331259
  function handleObserve(entries) {
331241
331260
  const ratio = entries[0].intersectionRatio;
331261
+
331262
+ // The entry is a snapshot, so the reference may have moved since the
331263
+ // intersection was computed (under performance constraints, or between
331264
+ // consecutive frames of a multi-frame layout shift). The reported ratio
331265
+ // and the observed area are stale in that case and cannot be trusted to
331266
+ // detect subsequent movement, so refresh regardless of the ratio.
331267
+ if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
331268
+ return refresh();
331269
+ }
331242
331270
  if (ratio !== threshold) {
331243
331271
  if (!isFirstUpdate) {
331244
331272
  return refresh();
331245
331273
  }
331246
331274
  if (!ratio) {
331247
- // If the reference is clipped, the ratio is 0. Throttle the refresh
331248
- // to prevent an infinite loop of updates.
331275
+ // If the reference is clipped in place, the ratio is 0. Throttle
331276
+ // the refresh to prevent an infinite loop of updates.
331249
331277
  timeoutId = setTimeout(() => {
331250
331278
  refresh(false, 1e-7);
331251
331279
  }, 1000);
@@ -331253,16 +331281,6 @@ function observeMove(element, onMove) {
331253
331281
  refresh(false, ratio);
331254
331282
  }
331255
331283
  }
331256
- if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
331257
- // It's possible that even though the ratio is reported as 1, the
331258
- // element is not actually fully within the IntersectionObserver's root
331259
- // area anymore. This can happen under performance constraints. This may
331260
- // be a bug in the browser's IntersectionObserver implementation. To
331261
- // work around this, we compare the element's bounding rect now with
331262
- // what it was at the time we created the IntersectionObserver. If they
331263
- // are not equal then the element moved, so we refresh.
331264
- refresh();
331265
- }
331266
331284
  isFirstUpdate = false;
331267
331285
  }
331268
331286
 
@@ -331279,8 +331297,18 @@ function observeMove(element, onMove) {
331279
331297
  }
331280
331298
  io.observe(element);
331281
331299
  }
331300
+ const win = getWindow(element);
331301
+ // The window is a resize ancestor, so when `ancestorResize` is enabled its
331302
+ // listener already runs the update on resize. Here we only need to rebuild
331303
+ // the `IntersectionObserver` for the new root size, skipping a redundant
331304
+ // update. When `ancestorResize` is disabled, this becomes the sole update.
331305
+ const handleResize = () => refresh(ancestorResize);
331306
+ win.addEventListener('resize', handleResize);
331282
331307
  refresh(true);
331283
- return cleanup;
331308
+ return () => {
331309
+ win.removeEventListener('resize', handleResize);
331310
+ cleanup();
331311
+ };
331284
331312
  }
331285
331313
 
331286
331314
  /**
@@ -331303,20 +331331,18 @@ function autoUpdate(reference, floating, update, options) {
331303
331331
  animationFrame = false
331304
331332
  } = options;
331305
331333
  const referenceEl = unwrapElement(reference);
331306
- const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
331334
+ const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
331307
331335
  ancestors.forEach(ancestor => {
331308
- ancestorScroll && ancestor.addEventListener('scroll', update, {
331309
- passive: true
331310
- });
331336
+ ancestorScroll && ancestor.addEventListener('scroll', update);
331311
331337
  ancestorResize && ancestor.addEventListener('resize', update);
331312
331338
  });
331313
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
331339
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update, ancestorResize) : null;
331314
331340
  let reobserveFrame = -1;
331315
331341
  let resizeObserver = null;
331316
331342
  if (elementResize) {
331317
331343
  resizeObserver = new ResizeObserver(_ref => {
331318
331344
  let [firstEntry] = _ref;
331319
- if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
331345
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
331320
331346
  // Prevent update loops when using the `size` middleware.
331321
331347
  // https://github.com/floating-ui/floating-ui/issues/1740
331322
331348
  resizeObserver.unobserve(floating);
@@ -331331,7 +331357,9 @@ function autoUpdate(reference, floating, update, options) {
331331
331357
  if (referenceEl && !animationFrame) {
331332
331358
  resizeObserver.observe(referenceEl);
331333
331359
  }
331334
- resizeObserver.observe(floating);
331360
+ if (floating) {
331361
+ resizeObserver.observe(floating);
331362
+ }
331335
331363
  }
331336
331364
  let frameId;
331337
331365
  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
@@ -331447,11 +331475,9 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
331447
331475
  // multiple lifecycle resets re-use the same result. It only lives for a
331448
331476
  // single call. If other functions become expensive, we can add them as well.
331449
331477
  const cache = new Map();
331450
- const mergedOptions = {
331451
- platform,
331452
- ...options
331453
- };
331478
+ const mergedOptions = options != null ? options : {};
331454
331479
  const platformWithCache = {
331480
+ ...platform,
331455
331481
  ...mergedOptions.platform,
331456
331482
  _c: cache
331457
331483
  };
@@ -391635,3243 +391661,6 @@ var selectOrdinal = function selectOrdinal() {
391635
391661
  return '';
391636
391662
  };
391637
391663
 
391638
- /***/ },
391639
-
391640
- /***/ 93854
391641
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
391642
-
391643
- "use strict";
391644
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
391645
- /* harmony export */ jI: () => (/* binding */ Ho),
391646
- /* harmony export */ pf: () => (/* binding */ Uo)
391647
- /* harmony export */ });
391648
- /* unused harmony exports JourneyMethods, ShepherdJourneyContext */
391649
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86326);
391650
-
391651
- var Ct = { exports: {} }, Ye = {};
391652
- /**
391653
- * @license React
391654
- * react-jsx-runtime.production.min.js
391655
- *
391656
- * Copyright (c) Facebook, Inc. and its affiliates.
391657
- *
391658
- * This source code is licensed under the MIT license found in the
391659
- * LICENSE file in the root directory of this source tree.
391660
- */
391661
- var cn;
391662
- function Ar() {
391663
- if (cn) return Ye;
391664
- cn = 1;
391665
- var e = react__WEBPACK_IMPORTED_MODULE_0__, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = 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 };
391666
- function o(c, a, u) {
391667
- var f, h = {}, d = null, g = null;
391668
- u !== void 0 && (d = "" + u), a.key !== void 0 && (d = "" + a.key), a.ref !== void 0 && (g = a.ref);
391669
- for (f in a) r.call(a, f) && !s.hasOwnProperty(f) && (h[f] = a[f]);
391670
- if (c && c.defaultProps) for (f in a = c.defaultProps, a) h[f] === void 0 && (h[f] = a[f]);
391671
- return { $$typeof: t, type: c, key: d, ref: g, props: h, _owner: i.current };
391672
- }
391673
- return Ye.Fragment = n, Ye.jsx = o, Ye.jsxs = o, Ye;
391674
- }
391675
- var ze = {};
391676
- /**
391677
- * @license React
391678
- * react-jsx-runtime.development.js
391679
- *
391680
- * Copyright (c) Facebook, Inc. and its affiliates.
391681
- *
391682
- * This source code is licensed under the MIT license found in the
391683
- * LICENSE file in the root directory of this source tree.
391684
- */
391685
- var an;
391686
- function Pr() {
391687
- return an || (an = 1, false && 0), ze;
391688
- }
391689
- true ? Ct.exports = Ar() : 0;
391690
- var kr = Ct.exports;
391691
- /*! shepherd.js 13.0.3 */
391692
- function Ir(e) {
391693
- return e instanceof Element;
391694
- }
391695
- function Ge(e) {
391696
- return e instanceof HTMLElement;
391697
- }
391698
- function pe(e) {
391699
- return typeof e == "function";
391700
- }
391701
- function Je(e) {
391702
- return typeof e == "string";
391703
- }
391704
- function N(e) {
391705
- return e === void 0;
391706
- }
391707
- class Ft {
391708
- /**
391709
- * Adds an event listener for the given event string.
391710
- *
391711
- * @param {string} event
391712
- * @param {Function} handler
391713
- * @param ctx
391714
- * @param {boolean} once
391715
- * @returns
391716
- */
391717
- on(t, n, r, i = !1) {
391718
- var s;
391719
- return N(this.bindings) && (this.bindings = {}), N(this.bindings[t]) && (this.bindings[t] = []), (s = this.bindings[t]) == null || s.push({
391720
- handler: n,
391721
- ctx: r,
391722
- once: i
391723
- }), this;
391724
- }
391725
- /**
391726
- * Adds an event listener that only fires once for the given event string.
391727
- *
391728
- * @param {string} event
391729
- * @param {Function} handler
391730
- * @param ctx
391731
- * @returns
391732
- */
391733
- once(t, n, r) {
391734
- return this.on(t, n, r, !0);
391735
- }
391736
- /**
391737
- * Removes an event listener for the given event string.
391738
- *
391739
- * @param {string} event
391740
- * @param {Function} handler
391741
- * @returns
391742
- */
391743
- off(t, n) {
391744
- if (N(this.bindings) || N(this.bindings[t]))
391745
- return this;
391746
- if (N(n))
391747
- delete this.bindings[t];
391748
- else {
391749
- var r;
391750
- (r = this.bindings[t]) == null || r.forEach((i, s) => {
391751
- if (i.handler === n) {
391752
- var o;
391753
- (o = this.bindings[t]) == null || o.splice(s, 1);
391754
- }
391755
- });
391756
- }
391757
- return this;
391758
- }
391759
- /**
391760
- * Triggers an event listener for the given event string.
391761
- *
391762
- * @param {string} event
391763
- * @returns
391764
- */
391765
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
391766
- trigger(t, ...n) {
391767
- if (!N(this.bindings) && this.bindings[t]) {
391768
- var r;
391769
- (r = this.bindings[t]) == null || r.forEach((i, s) => {
391770
- const {
391771
- ctx: o,
391772
- handler: c,
391773
- once: a
391774
- } = i, u = o || this;
391775
- if (c.apply(u, n), a) {
391776
- var f;
391777
- (f = this.bindings[t]) == null || f.splice(s, 1);
391778
- }
391779
- });
391780
- }
391781
- return this;
391782
- }
391783
- }
391784
- function V() {
391785
- return V = Object.assign ? Object.assign.bind() : function(e) {
391786
- for (var t = 1; t < arguments.length; t++) {
391787
- var n = arguments[t];
391788
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
391789
- }
391790
- return e;
391791
- }, V.apply(null, arguments);
391792
- }
391793
- function In(e, t) {
391794
- if (e == null) return {};
391795
- var n = {};
391796
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
391797
- if (t.includes(r)) continue;
391798
- n[r] = e[r];
391799
- }
391800
- return n;
391801
- }
391802
- const be = {
391803
- defaultMerge: Symbol("deepmerge-ts: default merge"),
391804
- skip: Symbol("deepmerge-ts: skip")
391805
- };
391806
- be.defaultMerge;
391807
- function Mr(e, t) {
391808
- return t;
391809
- }
391810
- function un(e) {
391811
- return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 : Dr(e) ? 1 : e instanceof Set ? 3 : e instanceof Map ? 4 : 5;
391812
- }
391813
- function Fr(e) {
391814
- const t = /* @__PURE__ */ new Set();
391815
- for (const n of e)
391816
- for (const r of [...Object.keys(n), ...Object.getOwnPropertySymbols(n)])
391817
- t.add(r);
391818
- return t;
391819
- }
391820
- function Lr(e, t) {
391821
- return typeof e == "object" && Object.prototype.propertyIsEnumerable.call(e, t);
391822
- }
391823
- function Mn(e) {
391824
- return {
391825
- // eslint-disable-next-line functional/functional-parameters
391826
- *[Symbol.iterator]() {
391827
- for (const t of e)
391828
- for (const n of t)
391829
- yield n;
391830
- }
391831
- };
391832
- }
391833
- const fn = /* @__PURE__ */ new Set(["[object Object]", "[object Module]"]);
391834
- function Dr(e) {
391835
- if (!fn.has(Object.prototype.toString.call(e)))
391836
- return !1;
391837
- const {
391838
- constructor: t
391839
- } = e;
391840
- if (t === void 0)
391841
- return !0;
391842
- const n = t.prototype;
391843
- return !(n === null || typeof n != "object" || !fn.has(Object.prototype.toString.call(n)) || !n.hasOwnProperty("isPrototypeOf"));
391844
- }
391845
- function jr(e, t, n) {
391846
- const r = {};
391847
- for (const i of Fr(e)) {
391848
- const s = [];
391849
- for (const a of e)
391850
- Lr(a, i) && s.push(a[i]);
391851
- if (s.length === 0)
391852
- continue;
391853
- const o = t.metaDataUpdater(n, {
391854
- key: i,
391855
- parents: e
391856
- }), c = Ln(s, t, o);
391857
- c !== be.skip && (i === "__proto__" ? Object.defineProperty(r, i, {
391858
- value: c,
391859
- configurable: !0,
391860
- enumerable: !0,
391861
- writable: !0
391862
- }) : r[i] = c);
391863
- }
391864
- return r;
391865
- }
391866
- function Br(e) {
391867
- return e.flat();
391868
- }
391869
- function Nr(e) {
391870
- return new Set(Mn(e));
391871
- }
391872
- function Wr(e) {
391873
- return new Map(Mn(e));
391874
- }
391875
- function Fn(e) {
391876
- return e.at(-1);
391877
- }
391878
- var St = /* @__PURE__ */ Object.freeze({
391879
- __proto__: null,
391880
- mergeArrays: Br,
391881
- mergeMaps: Wr,
391882
- mergeOthers: Fn,
391883
- mergeRecords: jr,
391884
- mergeSets: Nr
391885
- });
391886
- function Lt(...e) {
391887
- return $r({})(...e);
391888
- }
391889
- function $r(e, t) {
391890
- const n = Vr(e, r);
391891
- function r(...i) {
391892
- return Ln(i, n, t);
391893
- }
391894
- return r;
391895
- }
391896
- function Vr(e, t) {
391897
- var n, r;
391898
- return {
391899
- defaultMergeFunctions: St,
391900
- mergeFunctions: V({}, St, Object.fromEntries(Object.entries(e).filter(([i, s]) => Object.hasOwn(St, i)).map(([i, s]) => s === !1 ? [i, Fn] : [i, s]))),
391901
- metaDataUpdater: (n = e.metaDataUpdater) != null ? n : Mr,
391902
- deepmerge: t,
391903
- useImplicitDefaultMerging: (r = e.enableImplicitDefaultMerging) != null ? r : !1,
391904
- actions: be
391905
- };
391906
- }
391907
- function Ln(e, t, n) {
391908
- if (e.length === 0)
391909
- return;
391910
- if (e.length === 1)
391911
- return Ot(e, t, n);
391912
- const r = un(e[0]);
391913
- if (r !== 0 && r !== 5) {
391914
- for (let i = 1; i < e.length; i++)
391915
- if (un(e[i]) !== r)
391916
- return Ot(e, t, n);
391917
- }
391918
- switch (r) {
391919
- case 1:
391920
- return Hr(e, t, n);
391921
- case 2:
391922
- return Ur(e, t, n);
391923
- case 3:
391924
- return Yr(e, t, n);
391925
- case 4:
391926
- return zr(e, t, n);
391927
- default:
391928
- return Ot(e, t, n);
391929
- }
391930
- }
391931
- function Hr(e, t, n) {
391932
- const r = t.mergeFunctions.mergeRecords(e, t, n);
391933
- return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeRecords !== t.defaultMergeFunctions.mergeRecords ? t.defaultMergeFunctions.mergeRecords(e, t, n) : r;
391934
- }
391935
- function Ur(e, t, n) {
391936
- const r = t.mergeFunctions.mergeArrays(e, t, n);
391937
- return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeArrays !== t.defaultMergeFunctions.mergeArrays ? t.defaultMergeFunctions.mergeArrays(e) : r;
391938
- }
391939
- function Yr(e, t, n) {
391940
- const r = t.mergeFunctions.mergeSets(e, t, n);
391941
- return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeSets !== t.defaultMergeFunctions.mergeSets ? t.defaultMergeFunctions.mergeSets(e) : r;
391942
- }
391943
- function zr(e, t, n) {
391944
- const r = t.mergeFunctions.mergeMaps(e, t, n);
391945
- return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeMaps !== t.defaultMergeFunctions.mergeMaps ? t.defaultMergeFunctions.mergeMaps(e) : r;
391946
- }
391947
- function Ot(e, t, n) {
391948
- const r = t.mergeFunctions.mergeOthers(e, t, n);
391949
- return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeOthers !== t.defaultMergeFunctions.mergeOthers ? t.defaultMergeFunctions.mergeOthers(e) : r;
391950
- }
391951
- function Dt(e) {
391952
- const t = Object.getOwnPropertyNames(e.constructor.prototype);
391953
- for (let n = 0; n < t.length; n++) {
391954
- const r = t[n], i = e[r];
391955
- r !== "constructor" && typeof i == "function" && (e[r] = i.bind(e));
391956
- }
391957
- return e;
391958
- }
391959
- function qr(e, t) {
391960
- return (n) => {
391961
- if (e.isOpen()) {
391962
- const r = e.el && n.currentTarget === e.el;
391963
- (!N(t) && n.currentTarget.matches(t) || r) && e.tour.next();
391964
- }
391965
- };
391966
- }
391967
- function Jr(e) {
391968
- const {
391969
- event: t,
391970
- selector: n
391971
- } = e.options.advanceOn || {};
391972
- if (t) {
391973
- const r = qr(e, n);
391974
- let i = null;
391975
- if (!N(n) && (i = document.querySelector(n), !i))
391976
- return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);
391977
- i ? (i.addEventListener(t, r), e.on("destroy", () => i.removeEventListener(t, r))) : (document.body.addEventListener(t, r, !0), e.on("destroy", () => document.body.removeEventListener(t, r, !0)));
391978
- } else
391979
- return console.error("advanceOn was defined, but no event name was passed.");
391980
- }
391981
- class Kr {
391982
- constructor(t) {
391983
- }
391984
- }
391985
- class Xr {
391986
- constructor(t, n) {
391987
- }
391988
- }
391989
- function Dn(e) {
391990
- return !Je(e) || e === "" ? "" : e.charAt(e.length - 1) !== "-" ? `${e}-` : e;
391991
- }
391992
- function Gr(e) {
391993
- const t = e.options.attachTo || {}, n = Object.assign({}, t);
391994
- if (pe(n.element) && (n.element = n.element.call(e)), Je(n.element)) {
391995
- try {
391996
- n.element = document.querySelector(n.element);
391997
- } catch {
391998
- }
391999
- n.element || console.error(`The element for this Shepherd step was not found ${t.element}`);
392000
- }
392001
- return n;
392002
- }
392003
- function jn(e) {
392004
- return e == null ? !0 : !e.element || !e.on;
392005
- }
392006
- function Bn() {
392007
- let e = Date.now();
392008
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
392009
- const n = (e + Math.random() * 16) % 16 | 0;
392010
- return e = Math.floor(e / 16), (t == "x" ? n : n & 3 | 8).toString(16);
392011
- });
392012
- }
392013
- const De = Math.min, Ee = Math.max, lt = Math.round, ot = Math.floor, ge = (e) => ({
392014
- x: e,
392015
- y: e
392016
- }), Zr = {
392017
- left: "right",
392018
- right: "left",
392019
- bottom: "top",
392020
- top: "bottom"
392021
- }, Qr = {
392022
- start: "end",
392023
- end: "start"
392024
- };
392025
- function At(e, t, n) {
392026
- return Ee(e, De(t, n));
392027
- }
392028
- function je(e, t) {
392029
- return typeof e == "function" ? e(t) : e;
392030
- }
392031
- function Re(e) {
392032
- return e.split("-")[0];
392033
- }
392034
- function ft(e) {
392035
- return e.split("-")[1];
392036
- }
392037
- function jt(e) {
392038
- return e === "x" ? "y" : "x";
392039
- }
392040
- function Bt(e) {
392041
- return e === "y" ? "height" : "width";
392042
- }
392043
- function Be(e) {
392044
- return ["top", "bottom"].includes(Re(e)) ? "y" : "x";
392045
- }
392046
- function Nt(e) {
392047
- return jt(Be(e));
392048
- }
392049
- function ei(e, t, n) {
392050
- n === void 0 && (n = !1);
392051
- const r = ft(e), i = Nt(e), s = Bt(i);
392052
- let o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
392053
- return t.reference[s] > t.floating[s] && (o = ct(o)), [o, ct(o)];
392054
- }
392055
- function ti(e) {
392056
- const t = ct(e);
392057
- return [Pt(e), t, Pt(t)];
392058
- }
392059
- function Pt(e) {
392060
- return e.replace(/start|end/g, (t) => Qr[t]);
392061
- }
392062
- function ni(e, t, n) {
392063
- const r = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], o = ["bottom", "top"];
392064
- switch (e) {
392065
- case "top":
392066
- case "bottom":
392067
- return n ? t ? i : r : t ? r : i;
392068
- case "left":
392069
- case "right":
392070
- return t ? s : o;
392071
- default:
392072
- return [];
392073
- }
392074
- }
392075
- function ri(e, t, n, r) {
392076
- const i = ft(e);
392077
- let s = ni(Re(e), n === "start", r);
392078
- return i && (s = s.map((o) => o + "-" + i), t && (s = s.concat(s.map(Pt)))), s;
392079
- }
392080
- function ct(e) {
392081
- return e.replace(/left|right|bottom|top/g, (t) => Zr[t]);
392082
- }
392083
- function ii(e) {
392084
- return V({
392085
- top: 0,
392086
- right: 0,
392087
- bottom: 0,
392088
- left: 0
392089
- }, e);
392090
- }
392091
- function Nn(e) {
392092
- return typeof e != "number" ? ii(e) : {
392093
- top: e,
392094
- right: e,
392095
- bottom: e,
392096
- left: e
392097
- };
392098
- }
392099
- function at(e) {
392100
- const {
392101
- x: t,
392102
- y: n,
392103
- width: r,
392104
- height: i
392105
- } = e;
392106
- return {
392107
- width: r,
392108
- height: i,
392109
- top: n,
392110
- left: t,
392111
- right: t + r,
392112
- bottom: n + i,
392113
- x: t,
392114
- y: n
392115
- };
392116
- }
392117
- const oi = ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"], si = ["mainAxis", "crossAxis", "limiter"];
392118
- function dn(e, t, n) {
392119
- let {
392120
- reference: r,
392121
- floating: i
392122
- } = e;
392123
- const s = Be(t), o = Nt(t), c = Bt(o), a = Re(t), u = s === "y", f = r.x + r.width / 2 - i.width / 2, h = r.y + r.height / 2 - i.height / 2, d = r[c] / 2 - i[c] / 2;
392124
- let g;
392125
- switch (a) {
392126
- case "top":
392127
- g = {
392128
- x: f,
392129
- y: r.y - i.height
392130
- };
392131
- break;
392132
- case "bottom":
392133
- g = {
392134
- x: f,
392135
- y: r.y + r.height
392136
- };
392137
- break;
392138
- case "right":
392139
- g = {
392140
- x: r.x + r.width,
392141
- y: h
392142
- };
392143
- break;
392144
- case "left":
392145
- g = {
392146
- x: r.x - i.width,
392147
- y: h
392148
- };
392149
- break;
392150
- default:
392151
- g = {
392152
- x: r.x,
392153
- y: r.y
392154
- };
392155
- }
392156
- switch (ft(t)) {
392157
- case "start":
392158
- g[o] -= d * (n && u ? -1 : 1);
392159
- break;
392160
- case "end":
392161
- g[o] += d * (n && u ? -1 : 1);
392162
- break;
392163
- }
392164
- return g;
392165
- }
392166
- const li = async (e, t, n) => {
392167
- const {
392168
- placement: r = "bottom",
392169
- strategy: i = "absolute",
392170
- middleware: s = [],
392171
- platform: o
392172
- } = n, c = s.filter(Boolean), a = await (o.isRTL == null ? void 0 : o.isRTL(t));
392173
- let u = await o.getElementRects({
392174
- reference: e,
392175
- floating: t,
392176
- strategy: i
392177
- }), {
392178
- x: f,
392179
- y: h
392180
- } = dn(u, r, a), d = r, g = {}, v = 0;
392181
- for (let x = 0; x < c.length; x++) {
392182
- const {
392183
- name: S,
392184
- fn: w
392185
- } = c[x], {
392186
- x: _,
392187
- y: R,
392188
- data: y,
392189
- reset: m
392190
- } = await w({
392191
- x: f,
392192
- y: h,
392193
- initialPlacement: r,
392194
- placement: d,
392195
- strategy: i,
392196
- middlewareData: g,
392197
- rects: u,
392198
- platform: o,
392199
- elements: {
392200
- reference: e,
392201
- floating: t
392202
- }
392203
- });
392204
- f = _ ?? f, h = R ?? h, g = V({}, g, {
392205
- [S]: V({}, g[S], y)
392206
- }), m && v <= 50 && (v++, typeof m == "object" && (m.placement && (d = m.placement), m.rects && (u = m.rects === !0 ? await o.getElementRects({
392207
- reference: e,
392208
- floating: t,
392209
- strategy: i
392210
- }) : m.rects), {
392211
- x: f,
392212
- y: h
392213
- } = dn(u, d, a)), x = -1);
392214
- }
392215
- return {
392216
- x: f,
392217
- y: h,
392218
- placement: d,
392219
- strategy: i,
392220
- middlewareData: g
392221
- };
392222
- };
392223
- async function Wn(e, t) {
392224
- var n;
392225
- t === void 0 && (t = {});
392226
- const {
392227
- x: r,
392228
- y: i,
392229
- platform: s,
392230
- rects: o,
392231
- elements: c,
392232
- strategy: a
392233
- } = e, {
392234
- boundary: u = "clippingAncestors",
392235
- rootBoundary: f = "viewport",
392236
- elementContext: h = "floating",
392237
- altBoundary: d = !1,
392238
- padding: g = 0
392239
- } = je(t, e), v = Nn(g), S = c[d ? h === "floating" ? "reference" : "floating" : h], w = at(await s.getClippingRect({
392240
- element: (n = await (s.isElement == null ? void 0 : s.isElement(S))) == null || n ? S : S.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
392241
- boundary: u,
392242
- rootBoundary: f,
392243
- strategy: a
392244
- })), _ = h === "floating" ? {
392245
- x: r,
392246
- y: i,
392247
- width: o.floating.width,
392248
- height: o.floating.height
392249
- } : o.reference, R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), y = await (s.isElement == null ? void 0 : s.isElement(R)) ? await (s.getScale == null ? void 0 : s.getScale(R)) || {
392250
- x: 1,
392251
- y: 1
392252
- } : {
392253
- x: 1,
392254
- y: 1
392255
- }, m = at(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
392256
- elements: c,
392257
- rect: _,
392258
- offsetParent: R,
392259
- strategy: a
392260
- }) : _);
392261
- return {
392262
- top: (w.top - m.top + v.top) / y.y,
392263
- bottom: (m.bottom - w.bottom + v.bottom) / y.y,
392264
- left: (w.left - m.left + v.left) / y.x,
392265
- right: (m.right - w.right + v.right) / y.x
392266
- };
392267
- }
392268
- const ci = (e) => ({
392269
- name: "arrow",
392270
- options: e,
392271
- async fn(t) {
392272
- const {
392273
- x: n,
392274
- y: r,
392275
- placement: i,
392276
- rects: s,
392277
- platform: o,
392278
- elements: c,
392279
- middlewareData: a
392280
- } = t, {
392281
- element: u,
392282
- padding: f = 0
392283
- } = je(e, t) || {};
392284
- if (u == null)
392285
- return {};
392286
- const h = Nn(f), d = {
392287
- x: n,
392288
- y: r
392289
- }, g = Nt(i), v = Bt(g), x = await o.getDimensions(u), S = g === "y", w = S ? "top" : "left", _ = S ? "bottom" : "right", R = S ? "clientHeight" : "clientWidth", y = s.reference[v] + s.reference[g] - d[g] - s.floating[v], m = d[g] - s.reference[g], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
392290
- let B = T ? T[R] : 0;
392291
- (!B || !await (o.isElement == null ? void 0 : o.isElement(T))) && (B = c.floating[R] || s.floating[v]);
392292
- const ie = y / 2 - m / 2, H = B / 2 - x[v] / 2 - 1, K = De(h[w], H), U = De(h[_], H), W = K, j = B - x[v] - U, L = B / 2 - x[v] / 2 + ie, X = At(W, L, j), Y = !a.arrow && ft(i) != null && L !== X && s.reference[v] / 2 - (L < W ? K : U) - x[v] / 2 < 0, le = Y ? L < W ? L - W : L - j : 0;
392293
- return {
392294
- [g]: d[g] + le,
392295
- data: V({
392296
- [g]: X,
392297
- centerOffset: L - X - le
392298
- }, Y && {
392299
- alignmentOffset: le
392300
- }),
392301
- reset: Y
392302
- };
392303
- }
392304
- }), ai = function(t) {
392305
- return t === void 0 && (t = {}), {
392306
- name: "flip",
392307
- options: t,
392308
- async fn(n) {
392309
- var r, i;
392310
- const {
392311
- placement: s,
392312
- middlewareData: o,
392313
- rects: c,
392314
- initialPlacement: a,
392315
- platform: u,
392316
- elements: f
392317
- } = n, h = je(t, n), {
392318
- mainAxis: d = !0,
392319
- crossAxis: g = !0,
392320
- fallbackPlacements: v,
392321
- fallbackStrategy: x = "bestFit",
392322
- fallbackAxisSideDirection: S = "none",
392323
- flipAlignment: w = !0
392324
- } = h, _ = In(h, oi);
392325
- if ((r = o.arrow) != null && r.alignmentOffset)
392326
- return {};
392327
- const R = Re(s), y = Be(a), m = Re(a) === a, T = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), B = v || (m || !w ? [ct(a)] : ti(a)), ie = S !== "none";
392328
- !v && ie && B.push(...ri(a, w, S, T));
392329
- const H = [a, ...B], K = await Wn(n, _), U = [];
392330
- let W = ((i = o.flip) == null ? void 0 : i.overflows) || [];
392331
- if (d && U.push(K[R]), g) {
392332
- const Y = ei(s, c, T);
392333
- U.push(K[Y[0]], K[Y[1]]);
392334
- }
392335
- if (W = [...W, {
392336
- placement: s,
392337
- overflows: U
392338
- }], !U.every((Y) => Y <= 0)) {
392339
- var j, L;
392340
- const Y = (((j = o.flip) == null ? void 0 : j.index) || 0) + 1, le = H[Y];
392341
- if (le)
392342
- return {
392343
- data: {
392344
- index: Y,
392345
- overflows: W
392346
- },
392347
- reset: {
392348
- placement: le
392349
- }
392350
- };
392351
- let he = (L = W.filter((ce) => ce.overflows[0] <= 0).sort((ce, Q) => ce.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : L.placement;
392352
- if (!he)
392353
- switch (x) {
392354
- case "bestFit": {
392355
- var X;
392356
- const ce = (X = W.filter((Q) => {
392357
- if (ie) {
392358
- const ee = Be(Q.placement);
392359
- return ee === y || // Create a bias to the `y` side axis due to horizontal
392360
- // reading directions favoring greater width.
392361
- ee === "y";
392362
- }
392363
- return !0;
392364
- }).map((Q) => [Q.placement, Q.overflows.filter((ee) => ee > 0).reduce((ee, et) => ee + et, 0)]).sort((Q, ee) => Q[1] - ee[1])[0]) == null ? void 0 : X[0];
392365
- ce && (he = ce);
392366
- break;
392367
- }
392368
- case "initialPlacement":
392369
- he = a;
392370
- break;
392371
- }
392372
- if (s !== he)
392373
- return {
392374
- reset: {
392375
- placement: he
392376
- }
392377
- };
392378
- }
392379
- return {};
392380
- }
392381
- };
392382
- }, ui = function(t) {
392383
- return t === void 0 && (t = {}), {
392384
- name: "shift",
392385
- options: t,
392386
- async fn(n) {
392387
- const {
392388
- x: r,
392389
- y: i,
392390
- placement: s
392391
- } = n, o = je(t, n), {
392392
- mainAxis: c = !0,
392393
- crossAxis: a = !1,
392394
- limiter: u = {
392395
- fn: (_) => {
392396
- let {
392397
- x: R,
392398
- y
392399
- } = _;
392400
- return {
392401
- x: R,
392402
- y
392403
- };
392404
- }
392405
- }
392406
- } = o, f = In(o, si), h = {
392407
- x: r,
392408
- y: i
392409
- }, d = await Wn(n, f), g = Be(Re(s)), v = jt(g);
392410
- let x = h[v], S = h[g];
392411
- if (c) {
392412
- const _ = v === "y" ? "top" : "left", R = v === "y" ? "bottom" : "right", y = x + d[_], m = x - d[R];
392413
- x = At(y, x, m);
392414
- }
392415
- if (a) {
392416
- const _ = g === "y" ? "top" : "left", R = g === "y" ? "bottom" : "right", y = S + d[_], m = S - d[R];
392417
- S = At(y, S, m);
392418
- }
392419
- const w = u.fn(V({}, n, {
392420
- [v]: x,
392421
- [g]: S
392422
- }));
392423
- return V({}, w, {
392424
- data: {
392425
- x: w.x - r,
392426
- y: w.y - i
392427
- }
392428
- });
392429
- }
392430
- };
392431
- }, fi = function(t) {
392432
- return t === void 0 && (t = {}), {
392433
- options: t,
392434
- fn(n) {
392435
- const {
392436
- x: r,
392437
- y: i,
392438
- placement: s,
392439
- rects: o,
392440
- middlewareData: c
392441
- } = n, {
392442
- offset: a = 0,
392443
- mainAxis: u = !0,
392444
- crossAxis: f = !0
392445
- } = je(t, n), h = {
392446
- x: r,
392447
- y: i
392448
- }, d = Be(s), g = jt(d);
392449
- let v = h[g], x = h[d];
392450
- const S = je(a, n), w = typeof S == "number" ? {
392451
- mainAxis: S,
392452
- crossAxis: 0
392453
- } : V({
392454
- mainAxis: 0,
392455
- crossAxis: 0
392456
- }, S);
392457
- if (u) {
392458
- const y = g === "y" ? "height" : "width", m = o.reference[g] - o.floating[y] + w.mainAxis, T = o.reference[g] + o.reference[y] - w.mainAxis;
392459
- v < m ? v = m : v > T && (v = T);
392460
- }
392461
- if (f) {
392462
- var _, R;
392463
- const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(Re(s)), T = o.reference[d] - o.floating[y] + (m && ((_ = c.offset) == null ? void 0 : _[d]) || 0) + (m ? 0 : w.crossAxis), B = o.reference[d] + o.reference[y] + (m ? 0 : ((R = c.offset) == null ? void 0 : R[d]) || 0) - (m ? w.crossAxis : 0);
392464
- x < T ? x = T : x > B && (x = B);
392465
- }
392466
- return {
392467
- [g]: v,
392468
- [d]: x
392469
- };
392470
- }
392471
- };
392472
- };
392473
- function Ve(e) {
392474
- return $n(e) ? (e.nodeName || "").toLowerCase() : "#document";
392475
- }
392476
- function q(e) {
392477
- var t;
392478
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
392479
- }
392480
- function ae(e) {
392481
- var t;
392482
- return (t = ($n(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
392483
- }
392484
- function $n(e) {
392485
- return e instanceof Node || e instanceof q(e).Node;
392486
- }
392487
- function te(e) {
392488
- return e instanceof Element || e instanceof q(e).Element;
392489
- }
392490
- function oe(e) {
392491
- return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
392492
- }
392493
- function hn(e) {
392494
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
392495
- }
392496
- function Ze(e) {
392497
- const {
392498
- overflow: t,
392499
- overflowX: n,
392500
- overflowY: r,
392501
- display: i
392502
- } = ne(e);
392503
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
392504
- }
392505
- function di(e) {
392506
- return ["table", "td", "th"].includes(Ve(e));
392507
- }
392508
- function dt(e) {
392509
- return [":popover-open", ":modal"].some((t) => {
392510
- try {
392511
- return e.matches(t);
392512
- } catch {
392513
- return !1;
392514
- }
392515
- });
392516
- }
392517
- function Wt(e) {
392518
- const t = $t(), n = te(e) ? ne(e) : e;
392519
- return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
392520
- }
392521
- function hi(e) {
392522
- let t = me(e);
392523
- for (; oe(t) && !Ne(t); ) {
392524
- if (Wt(t))
392525
- return t;
392526
- if (dt(t))
392527
- return null;
392528
- t = me(t);
392529
- }
392530
- return null;
392531
- }
392532
- function $t() {
392533
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
392534
- }
392535
- function Ne(e) {
392536
- return ["html", "body", "#document"].includes(Ve(e));
392537
- }
392538
- function ne(e) {
392539
- return q(e).getComputedStyle(e);
392540
- }
392541
- function ht(e) {
392542
- return te(e) ? {
392543
- scrollLeft: e.scrollLeft,
392544
- scrollTop: e.scrollTop
392545
- } : {
392546
- scrollLeft: e.scrollX,
392547
- scrollTop: e.scrollY
392548
- };
392549
- }
392550
- function me(e) {
392551
- if (Ve(e) === "html")
392552
- return e;
392553
- const t = (
392554
- // Step into the shadow DOM of the parent of a slotted node.
392555
- e.assignedSlot || // DOM Element detected.
392556
- e.parentNode || // ShadowRoot detected.
392557
- hn(e) && e.host || // Fallback.
392558
- ae(e)
392559
- );
392560
- return hn(t) ? t.host : t;
392561
- }
392562
- function Vn(e) {
392563
- const t = me(e);
392564
- return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : oe(t) && Ze(t) ? t : Vn(t);
392565
- }
392566
- function Ke(e, t, n) {
392567
- var r;
392568
- t === void 0 && (t = []), n === void 0 && (n = !0);
392569
- const i = Vn(e), s = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = q(i);
392570
- return s ? t.concat(o, o.visualViewport || [], Ze(i) ? i : [], o.frameElement && n ? Ke(o.frameElement) : []) : t.concat(i, Ke(i, [], n));
392571
- }
392572
- function Hn(e) {
392573
- const t = ne(e);
392574
- let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
392575
- const i = oe(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, c = lt(n) !== s || lt(r) !== o;
392576
- return c && (n = s, r = o), {
392577
- width: n,
392578
- height: r,
392579
- $: c
392580
- };
392581
- }
392582
- function Vt(e) {
392583
- return te(e) ? e : e.contextElement;
392584
- }
392585
- function Fe(e) {
392586
- const t = Vt(e);
392587
- if (!oe(t))
392588
- return ge(1);
392589
- const n = t.getBoundingClientRect(), {
392590
- width: r,
392591
- height: i,
392592
- $: s
392593
- } = Hn(t);
392594
- let o = (s ? lt(n.width) : n.width) / r, c = (s ? lt(n.height) : n.height) / i;
392595
- return (!o || !Number.isFinite(o)) && (o = 1), (!c || !Number.isFinite(c)) && (c = 1), {
392596
- x: o,
392597
- y: c
392598
- };
392599
- }
392600
- const pi = /* @__PURE__ */ ge(0);
392601
- function Un(e) {
392602
- const t = q(e);
392603
- return !$t() || !t.visualViewport ? pi : {
392604
- x: t.visualViewport.offsetLeft,
392605
- y: t.visualViewport.offsetTop
392606
- };
392607
- }
392608
- function gi(e, t, n) {
392609
- return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
392610
- }
392611
- function Te(e, t, n, r) {
392612
- t === void 0 && (t = !1), n === void 0 && (n = !1);
392613
- const i = e.getBoundingClientRect(), s = Vt(e);
392614
- let o = ge(1);
392615
- t && (r ? te(r) && (o = Fe(r)) : o = Fe(e));
392616
- const c = gi(s, n, r) ? Un(s) : ge(0);
392617
- let a = (i.left + c.x) / o.x, u = (i.top + c.y) / o.y, f = i.width / o.x, h = i.height / o.y;
392618
- if (s) {
392619
- const d = q(s), g = r && te(r) ? q(r) : r;
392620
- let v = d, x = v.frameElement;
392621
- for (; x && r && g !== v; ) {
392622
- const S = Fe(x), w = x.getBoundingClientRect(), _ = ne(x), R = w.left + (x.clientLeft + parseFloat(_.paddingLeft)) * S.x, y = w.top + (x.clientTop + parseFloat(_.paddingTop)) * S.y;
392623
- a *= S.x, u *= S.y, f *= S.x, h *= S.y, a += R, u += y, v = q(x), x = v.frameElement;
392624
- }
392625
- }
392626
- return at({
392627
- width: f,
392628
- height: h,
392629
- x: a,
392630
- y: u
392631
- });
392632
- }
392633
- function mi(e) {
392634
- let {
392635
- elements: t,
392636
- rect: n,
392637
- offsetParent: r,
392638
- strategy: i
392639
- } = e;
392640
- const s = i === "fixed", o = ae(r), c = t ? dt(t.floating) : !1;
392641
- if (r === o || c && s)
392642
- return n;
392643
- let a = {
392644
- scrollLeft: 0,
392645
- scrollTop: 0
392646
- }, u = ge(1);
392647
- const f = ge(0), h = oe(r);
392648
- if ((h || !h && !s) && ((Ve(r) !== "body" || Ze(o)) && (a = ht(r)), oe(r))) {
392649
- const d = Te(r);
392650
- u = Fe(r), f.x = d.x + r.clientLeft, f.y = d.y + r.clientTop;
392651
- }
392652
- return {
392653
- width: n.width * u.x,
392654
- height: n.height * u.y,
392655
- x: n.x * u.x - a.scrollLeft * u.x + f.x,
392656
- y: n.y * u.y - a.scrollTop * u.y + f.y
392657
- };
392658
- }
392659
- function bi(e) {
392660
- return Array.from(e.getClientRects());
392661
- }
392662
- function Yn(e) {
392663
- return Te(ae(e)).left + ht(e).scrollLeft;
392664
- }
392665
- function vi(e) {
392666
- const t = ae(e), n = ht(e), r = e.ownerDocument.body, i = Ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
392667
- let o = -n.scrollLeft + Yn(e);
392668
- const c = -n.scrollTop;
392669
- return ne(r).direction === "rtl" && (o += Ee(t.clientWidth, r.clientWidth) - i), {
392670
- width: i,
392671
- height: s,
392672
- x: o,
392673
- y: c
392674
- };
392675
- }
392676
- function yi(e, t) {
392677
- const n = q(e), r = ae(e), i = n.visualViewport;
392678
- let s = r.clientWidth, o = r.clientHeight, c = 0, a = 0;
392679
- if (i) {
392680
- s = i.width, o = i.height;
392681
- const u = $t();
392682
- (!u || u && t === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
392683
- }
392684
- return {
392685
- width: s,
392686
- height: o,
392687
- x: c,
392688
- y: a
392689
- };
392690
- }
392691
- function _i(e, t) {
392692
- const n = Te(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, s = oe(e) ? Fe(e) : ge(1), o = e.clientWidth * s.x, c = e.clientHeight * s.y, a = i * s.x, u = r * s.y;
392693
- return {
392694
- width: o,
392695
- height: c,
392696
- x: a,
392697
- y: u
392698
- };
392699
- }
392700
- function pn(e, t, n) {
392701
- let r;
392702
- if (t === "viewport")
392703
- r = yi(e, n);
392704
- else if (t === "document")
392705
- r = vi(ae(e));
392706
- else if (te(t))
392707
- r = _i(t, n);
392708
- else {
392709
- const i = Un(e);
392710
- r = V({}, t, {
392711
- x: t.x - i.x,
392712
- y: t.y - i.y
392713
- });
392714
- }
392715
- return at(r);
392716
- }
392717
- function zn(e, t) {
392718
- const n = me(e);
392719
- return n === t || !te(n) || Ne(n) ? !1 : ne(n).position === "fixed" || zn(n, t);
392720
- }
392721
- function wi(e, t) {
392722
- const n = t.get(e);
392723
- if (n)
392724
- return n;
392725
- let r = Ke(e, [], !1).filter((c) => te(c) && Ve(c) !== "body"), i = null;
392726
- const s = ne(e).position === "fixed";
392727
- let o = s ? me(e) : e;
392728
- for (; te(o) && !Ne(o); ) {
392729
- const c = ne(o), a = Wt(o);
392730
- !a && c.position === "fixed" && (i = null), (s ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ze(o) && !a && zn(e, o)) ? r = r.filter((f) => f !== o) : i = c, o = me(o);
392731
- }
392732
- return t.set(e, r), r;
392733
- }
392734
- function xi(e) {
392735
- let {
392736
- element: t,
392737
- boundary: n,
392738
- rootBoundary: r,
392739
- strategy: i
392740
- } = e;
392741
- const o = [...n === "clippingAncestors" ? dt(t) ? [] : wi(t, this._c) : [].concat(n), r], c = o[0], a = o.reduce((u, f) => {
392742
- const h = pn(t, f, i);
392743
- return u.top = Ee(h.top, u.top), u.right = De(h.right, u.right), u.bottom = De(h.bottom, u.bottom), u.left = Ee(h.left, u.left), u;
392744
- }, pn(t, c, i));
392745
- return {
392746
- width: a.right - a.left,
392747
- height: a.bottom - a.top,
392748
- x: a.left,
392749
- y: a.top
392750
- };
392751
- }
392752
- function Ei(e) {
392753
- const {
392754
- width: t,
392755
- height: n
392756
- } = Hn(e);
392757
- return {
392758
- width: t,
392759
- height: n
392760
- };
392761
- }
392762
- function Si(e, t, n) {
392763
- const r = oe(t), i = ae(t), s = n === "fixed", o = Te(e, !0, s, t);
392764
- let c = {
392765
- scrollLeft: 0,
392766
- scrollTop: 0
392767
- };
392768
- const a = ge(0);
392769
- if (r || !r && !s)
392770
- if ((Ve(t) !== "body" || Ze(i)) && (c = ht(t)), r) {
392771
- const h = Te(t, !0, s, t);
392772
- a.x = h.x + t.clientLeft, a.y = h.y + t.clientTop;
392773
- } else i && (a.x = Yn(i));
392774
- const u = o.left + c.scrollLeft - a.x, f = o.top + c.scrollTop - a.y;
392775
- return {
392776
- x: u,
392777
- y: f,
392778
- width: o.width,
392779
- height: o.height
392780
- };
392781
- }
392782
- function Rt(e) {
392783
- return ne(e).position === "static";
392784
- }
392785
- function gn(e, t) {
392786
- return !oe(e) || ne(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
392787
- }
392788
- function qn(e, t) {
392789
- const n = q(e);
392790
- if (dt(e))
392791
- return n;
392792
- if (!oe(e)) {
392793
- let i = me(e);
392794
- for (; i && !Ne(i); ) {
392795
- if (te(i) && !Rt(i))
392796
- return i;
392797
- i = me(i);
392798
- }
392799
- return n;
392800
- }
392801
- let r = gn(e, t);
392802
- for (; r && di(r) && Rt(r); )
392803
- r = gn(r, t);
392804
- return r && Ne(r) && Rt(r) && !Wt(r) ? n : r || hi(e) || n;
392805
- }
392806
- const Oi = async function(t) {
392807
- const n = this.getOffsetParent || qn, r = this.getDimensions, i = await r(t.floating);
392808
- return {
392809
- reference: Si(t.reference, await n(t.floating), t.strategy),
392810
- floating: {
392811
- x: 0,
392812
- y: 0,
392813
- width: i.width,
392814
- height: i.height
392815
- }
392816
- };
392817
- };
392818
- function Ri(e) {
392819
- return ne(e).direction === "rtl";
392820
- }
392821
- const Ti = {
392822
- convertOffsetParentRelativeRectToViewportRelativeRect: mi,
392823
- getDocumentElement: ae,
392824
- getClippingRect: xi,
392825
- getOffsetParent: qn,
392826
- getElementRects: Oi,
392827
- getClientRects: bi,
392828
- getDimensions: Ei,
392829
- getScale: Fe,
392830
- isElement: te,
392831
- isRTL: Ri
392832
- };
392833
- function Ci(e, t) {
392834
- let n = null, r;
392835
- const i = ae(e);
392836
- function s() {
392837
- var c;
392838
- clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
392839
- }
392840
- function o(c, a) {
392841
- c === void 0 && (c = !1), a === void 0 && (a = 1), s();
392842
- const {
392843
- left: u,
392844
- top: f,
392845
- width: h,
392846
- height: d
392847
- } = e.getBoundingClientRect();
392848
- if (c || t(), !h || !d)
392849
- return;
392850
- const g = ot(f), v = ot(i.clientWidth - (u + h)), x = ot(i.clientHeight - (f + d)), S = ot(u), _ = {
392851
- rootMargin: -g + "px " + -v + "px " + -x + "px " + -S + "px",
392852
- threshold: Ee(0, De(1, a)) || 1
392853
- };
392854
- let R = !0;
392855
- function y(m) {
392856
- const T = m[0].intersectionRatio;
392857
- if (T !== a) {
392858
- if (!R)
392859
- return o();
392860
- T ? o(!1, T) : r = setTimeout(() => {
392861
- o(!1, 1e-7);
392862
- }, 1e3);
392863
- }
392864
- R = !1;
392865
- }
392866
- try {
392867
- n = new IntersectionObserver(y, V({}, _, {
392868
- // Handle <iframe>s
392869
- root: i.ownerDocument
392870
- }));
392871
- } catch {
392872
- n = new IntersectionObserver(y, _);
392873
- }
392874
- n.observe(e);
392875
- }
392876
- return o(!0), s;
392877
- }
392878
- function Ai(e, t, n, r) {
392879
- r === void 0 && (r = {});
392880
- const {
392881
- ancestorScroll: i = !0,
392882
- ancestorResize: s = !0,
392883
- elementResize: o = typeof ResizeObserver == "function",
392884
- layoutShift: c = typeof IntersectionObserver == "function",
392885
- animationFrame: a = !1
392886
- } = r, u = Vt(e), f = i || s ? [...u ? Ke(u) : [], ...Ke(t)] : [];
392887
- f.forEach((w) => {
392888
- i && w.addEventListener("scroll", n, {
392889
- passive: !0
392890
- }), s && w.addEventListener("resize", n);
392891
- });
392892
- const h = u && c ? Ci(u, n) : null;
392893
- let d = -1, g = null;
392894
- o && (g = new ResizeObserver((w) => {
392895
- let [_] = w;
392896
- _ && _.target === u && g && (g.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
392897
- var R;
392898
- (R = g) == null || R.observe(t);
392899
- })), n();
392900
- }), u && !a && g.observe(u), g.observe(t));
392901
- let v, x = a ? Te(e) : null;
392902
- a && S();
392903
- function S() {
392904
- const w = Te(e);
392905
- x && (w.x !== x.x || w.y !== x.y || w.width !== x.width || w.height !== x.height) && n(), x = w, v = requestAnimationFrame(S);
392906
- }
392907
- return n(), () => {
392908
- var w;
392909
- f.forEach((_) => {
392910
- i && _.removeEventListener("scroll", n), s && _.removeEventListener("resize", n);
392911
- }), h == null || h(), (w = g) == null || w.disconnect(), g = null, a && cancelAnimationFrame(v);
392912
- };
392913
- }
392914
- const Pi = ui, ki = ai, Ii = ci, Mi = fi, Fi = (e, t, n) => {
392915
- const r = /* @__PURE__ */ new Map(), i = V({
392916
- platform: Ti
392917
- }, n), s = V({}, i.platform, {
392918
- _c: r
392919
- });
392920
- return li(e, t, V({}, i, {
392921
- platform: s
392922
- }));
392923
- };
392924
- function Li(e) {
392925
- e.cleanup && e.cleanup();
392926
- const t = e._getResolvedAttachToOptions();
392927
- let n = t.element;
392928
- const r = $i(t, e), i = jn(t);
392929
- return i && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup = Ai(n, e.el, () => {
392930
- if (!e.el) {
392931
- e.cleanup == null || e.cleanup();
392932
- return;
392933
- }
392934
- Bi(n, e, r, i);
392935
- }), e.target = t.element, r;
392936
- }
392937
- function Di(e, t) {
392938
- return {
392939
- floatingUIOptions: Lt(e.floatingUIOptions || {}, t.floatingUIOptions || {})
392940
- };
392941
- }
392942
- function ji(e) {
392943
- e.cleanup && e.cleanup(), e.cleanup = null;
392944
- }
392945
- function Bi(e, t, n, r) {
392946
- return Fi(e, t.el, n).then(Ni(t, r)).then((i) => new Promise((s) => {
392947
- setTimeout(() => s(i), 300);
392948
- })).then((i) => {
392949
- i != null && i.el && i.el.focus({
392950
- preventScroll: !0
392951
- });
392952
- });
392953
- }
392954
- function Ni(e, t) {
392955
- return ({
392956
- x: n,
392957
- y: r,
392958
- placement: i,
392959
- middlewareData: s
392960
- }) => (e.el && (t ? Object.assign(e.el.style, {
392961
- position: "fixed",
392962
- left: "50%",
392963
- top: "50%",
392964
- transform: "translate(-50%, -50%)"
392965
- }) : Object.assign(e.el.style, {
392966
- position: "absolute",
392967
- left: `${n}px`,
392968
- top: `${r}px`
392969
- }), e.el.dataset.popperPlacement = i, Wi(e.el, s)), e);
392970
- }
392971
- function Wi(e, t) {
392972
- const n = e.querySelector(".shepherd-arrow");
392973
- if (Ge(n) && t.arrow) {
392974
- const {
392975
- x: r,
392976
- y: i
392977
- } = t.arrow;
392978
- Object.assign(n.style, {
392979
- left: r != null ? `${r}px` : "",
392980
- top: i != null ? `${i}px` : ""
392981
- });
392982
- }
392983
- }
392984
- function $i(e, t) {
392985
- const n = {
392986
- strategy: "absolute"
392987
- };
392988
- n.middleware = [];
392989
- const r = Vi(t);
392990
- if (!jn(e)) {
392991
- if (n.middleware.push(
392992
- ki(),
392993
- // Replicate PopperJS default behavior.
392994
- Pi({
392995
- limiter: Mi(),
392996
- crossAxis: !0
392997
- })
392998
- ), r) {
392999
- var s, o;
393000
- const c = (e == null || (s = e.on) == null ? void 0 : s.includes("-start")) || (e == null || (o = e.on) == null ? void 0 : o.includes("-end"));
393001
- n.middleware.push(Ii({
393002
- element: r,
393003
- padding: c ? 4 : 0
393004
- }));
393005
- }
393006
- n.placement = e.on;
393007
- }
393008
- return Lt(t.options.floatingUIOptions || {}, n);
393009
- }
393010
- function Vi(e) {
393011
- return e.options.arrow && e.el ? e.el.querySelector(".shepherd-arrow") : !1;
393012
- }
393013
- function J() {
393014
- }
393015
- function Hi(e, t) {
393016
- for (const n in t) e[n] = t[n];
393017
- return (
393018
- /** @type {T & S} */
393019
- e
393020
- );
393021
- }
393022
- function Jn(e) {
393023
- return e();
393024
- }
393025
- function mn() {
393026
- return /* @__PURE__ */ Object.create(null);
393027
- }
393028
- function Qe(e) {
393029
- e.forEach(Jn);
393030
- }
393031
- function Ht(e) {
393032
- return typeof e == "function";
393033
- }
393034
- function ue(e, t) {
393035
- return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
393036
- }
393037
- function Ui(e) {
393038
- return Object.keys(e).length === 0;
393039
- }
393040
- function We(e, t) {
393041
- e.appendChild(t);
393042
- }
393043
- function re(e, t, n) {
393044
- e.insertBefore(t, n || null);
393045
- }
393046
- function Z(e) {
393047
- e.parentNode && e.parentNode.removeChild(e);
393048
- }
393049
- function Yi(e, t) {
393050
- for (let n = 0; n < e.length; n += 1)
393051
- e[n] && e[n].d(t);
393052
- }
393053
- function se(e) {
393054
- return document.createElement(e);
393055
- }
393056
- function bn(e) {
393057
- return document.createElementNS("http://www.w3.org/2000/svg", e);
393058
- }
393059
- function Kn(e) {
393060
- return document.createTextNode(e);
393061
- }
393062
- function ut() {
393063
- return Kn(" ");
393064
- }
393065
- function zi() {
393066
- return Kn("");
393067
- }
393068
- function pt(e, t, n, r) {
393069
- return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
393070
- }
393071
- function I(e, t, n) {
393072
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
393073
- }
393074
- const qi = ["width", "height"];
393075
- function vn(e, t) {
393076
- const n = Object.getOwnPropertyDescriptors(e.__proto__);
393077
- for (const r in t)
393078
- t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set && qi.indexOf(r) === -1 ? e[r] = t[r] : I(e, r, t[r]);
393079
- }
393080
- function Ji(e) {
393081
- return Array.from(e.childNodes);
393082
- }
393083
- function ke(e, t, n) {
393084
- e.classList.toggle(t, !!n);
393085
- }
393086
- let Xe;
393087
- function qe(e) {
393088
- Xe = e;
393089
- }
393090
- function Xn() {
393091
- if (!Xe) throw new Error("Function called outside component initialization");
393092
- return Xe;
393093
- }
393094
- function Ki(e) {
393095
- Xn().$$.on_mount.push(e);
393096
- }
393097
- function Ut(e) {
393098
- Xn().$$.after_update.push(e);
393099
- }
393100
- const Me = [], $e = [];
393101
- let Le = [];
393102
- const yn = [], Xi = /* @__PURE__ */ Promise.resolve();
393103
- let kt = !1;
393104
- function Gi() {
393105
- kt || (kt = !0, Xi.then(Gn));
393106
- }
393107
- function It(e) {
393108
- Le.push(e);
393109
- }
393110
- const Tt = /* @__PURE__ */ new Set();
393111
- let Ie = 0;
393112
- function Gn() {
393113
- if (Ie !== 0)
393114
- return;
393115
- const e = Xe;
393116
- do {
393117
- try {
393118
- for (; Ie < Me.length; ) {
393119
- const t = Me[Ie];
393120
- Ie++, qe(t), Zi(t.$$);
393121
- }
393122
- } catch (t) {
393123
- throw Me.length = 0, Ie = 0, t;
393124
- }
393125
- for (qe(null), Me.length = 0, Ie = 0; $e.length; ) $e.pop()();
393126
- for (let t = 0; t < Le.length; t += 1) {
393127
- const n = Le[t];
393128
- Tt.has(n) || (Tt.add(n), n());
393129
- }
393130
- Le.length = 0;
393131
- } while (Me.length);
393132
- for (; yn.length; )
393133
- yn.pop()();
393134
- kt = !1, Tt.clear(), qe(e);
393135
- }
393136
- function Zi(e) {
393137
- if (e.fragment !== null) {
393138
- e.update(), Qe(e.before_update);
393139
- const t = e.dirty;
393140
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(It);
393141
- }
393142
- }
393143
- function Qi(e) {
393144
- const t = [], n = [];
393145
- Le.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Le = t;
393146
- }
393147
- const st = /* @__PURE__ */ new Set();
393148
- let we;
393149
- function Se() {
393150
- we = {
393151
- r: 0,
393152
- c: [],
393153
- p: we
393154
- // parent group
393155
- };
393156
- }
393157
- function Oe() {
393158
- we.r || Qe(we.c), we = we.p;
393159
- }
393160
- function P(e, t) {
393161
- e && e.i && (st.delete(e), e.i(t));
393162
- }
393163
- function F(e, t, n, r) {
393164
- if (e && e.o) {
393165
- if (st.has(e)) return;
393166
- st.add(e), we.c.push(() => {
393167
- st.delete(e), r && (n && e.d(1), r());
393168
- }), e.o(t);
393169
- } else r && r();
393170
- }
393171
- function _n(e) {
393172
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
393173
- }
393174
- function eo(e, t) {
393175
- const n = {}, r = {}, i = {
393176
- $$scope: 1
393177
- };
393178
- let s = e.length;
393179
- for (; s--; ) {
393180
- const o = e[s], c = t[s];
393181
- if (c) {
393182
- for (const a in o)
393183
- a in c || (r[a] = 1);
393184
- for (const a in c)
393185
- i[a] || (n[a] = c[a], i[a] = 1);
393186
- e[s] = c;
393187
- } else
393188
- for (const a in o)
393189
- i[a] = 1;
393190
- }
393191
- for (const o in r)
393192
- o in n || (n[o] = void 0);
393193
- return n;
393194
- }
393195
- function Ce(e) {
393196
- e && e.c();
393197
- }
393198
- function ve(e, t, n) {
393199
- const {
393200
- fragment: r,
393201
- after_update: i
393202
- } = e.$$;
393203
- r && r.m(t, n), It(() => {
393204
- const s = e.$$.on_mount.map(Jn).filter(Ht);
393205
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Qe(s), e.$$.on_mount = [];
393206
- }), i.forEach(It);
393207
- }
393208
- function ye(e, t) {
393209
- const n = e.$$;
393210
- n.fragment !== null && (Qi(n.after_update), Qe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
393211
- }
393212
- function to(e, t) {
393213
- e.$$.dirty[0] === -1 && (Me.push(e), Gi(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
393214
- }
393215
- function fe(e, t, n, r, i, s, o = null, c = [-1]) {
393216
- const a = Xe;
393217
- qe(e);
393218
- const u = e.$$ = {
393219
- fragment: null,
393220
- ctx: [],
393221
- // state
393222
- props: s,
393223
- update: J,
393224
- not_equal: i,
393225
- bound: mn(),
393226
- // lifecycle
393227
- on_mount: [],
393228
- on_destroy: [],
393229
- on_disconnect: [],
393230
- before_update: [],
393231
- after_update: [],
393232
- context: new Map(t.context || (a ? a.$$.context : [])),
393233
- // everything else
393234
- callbacks: mn(),
393235
- dirty: c,
393236
- skip_bound: !1,
393237
- root: t.target || a.$$.root
393238
- };
393239
- o && o(u.root);
393240
- let f = !1;
393241
- if (u.ctx = n ? n(e, t.props || {}, (h, d, ...g) => {
393242
- const v = g.length ? g[0] : d;
393243
- return u.ctx && i(u.ctx[h], u.ctx[h] = v) && (!u.skip_bound && u.bound[h] && u.bound[h](v), f && to(e, h)), d;
393244
- }) : [], u.update(), f = !0, Qe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
393245
- if (t.hydrate) {
393246
- const h = Ji(t.target);
393247
- u.fragment && u.fragment.l(h), h.forEach(Z);
393248
- } else
393249
- u.fragment && u.fragment.c();
393250
- t.intro && P(e.$$.fragment), ve(e, t.target, t.anchor), Gn();
393251
- }
393252
- qe(a);
393253
- }
393254
- class de {
393255
- constructor() {
393256
- this.$$ = void 0, this.$$set = void 0;
393257
- }
393258
- /** @returns {void} */
393259
- $destroy() {
393260
- ye(this, 1), this.$destroy = J;
393261
- }
393262
- /**
393263
- * @template {Extract<keyof Events, string>} K
393264
- * @param {K} type
393265
- * @param {((e: Events[K]) => void) | null | undefined} callback
393266
- * @returns {() => void}
393267
- */
393268
- $on(t, n) {
393269
- if (!Ht(n))
393270
- return J;
393271
- const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
393272
- return r.push(n), () => {
393273
- const i = r.indexOf(n);
393274
- i !== -1 && r.splice(i, 1);
393275
- };
393276
- }
393277
- /**
393278
- * @param {Partial<Props>} props
393279
- * @returns {void}
393280
- */
393281
- $set(t) {
393282
- this.$$set && !Ui(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
393283
- }
393284
- }
393285
- const no = "4";
393286
- typeof window < "u" && (window.__svelte || (window.__svelte = {
393287
- v: /* @__PURE__ */ new Set()
393288
- })).v.add(no);
393289
- function ro(e) {
393290
- let t, n, r, i, s;
393291
- return {
393292
- c() {
393293
- t = se("button"), I(t, "aria-label", n = /*label*/
393294
- e[3] ? (
393295
- /*label*/
393296
- e[3]
393297
- ) : null), I(t, "class", r = `${/*classes*/
393298
- e[1] || ""} shepherd-button ${/*secondary*/
393299
- e[4] ? "shepherd-button-secondary" : ""}`), t.disabled = /*disabled*/
393300
- e[2], I(t, "tabindex", "0"), I(t, "type", "button");
393301
- },
393302
- m(o, c) {
393303
- re(o, t, c), t.innerHTML = /*text*/
393304
- e[5], i || (s = pt(t, "click", function() {
393305
- Ht(
393306
- /*action*/
393307
- e[0]
393308
- ) && e[0].apply(this, arguments);
393309
- }), i = !0);
393310
- },
393311
- p(o, [c]) {
393312
- e = o, c & /*text*/
393313
- 32 && (t.innerHTML = /*text*/
393314
- e[5]), c & /*label*/
393315
- 8 && n !== (n = /*label*/
393316
- e[3] ? (
393317
- /*label*/
393318
- e[3]
393319
- ) : null) && I(t, "aria-label", n), c & /*classes, secondary*/
393320
- 18 && r !== (r = `${/*classes*/
393321
- e[1] || ""} shepherd-button ${/*secondary*/
393322
- e[4] ? "shepherd-button-secondary" : ""}`) && I(t, "class", r), c & /*disabled*/
393323
- 4 && (t.disabled = /*disabled*/
393324
- e[2]);
393325
- },
393326
- i: J,
393327
- o: J,
393328
- d(o) {
393329
- o && Z(t), i = !1, s();
393330
- }
393331
- };
393332
- }
393333
- function io(e, t, n) {
393334
- let {
393335
- config: r,
393336
- step: i
393337
- } = t, s, o, c, a, u, f;
393338
- function h(d) {
393339
- return pe(d) ? d = d.call(i) : d;
393340
- }
393341
- return e.$$set = (d) => {
393342
- "config" in d && n(6, r = d.config), "step" in d && n(7, i = d.step);
393343
- }, e.$$.update = () => {
393344
- e.$$.dirty & /*config, step*/
393345
- 192 && (n(0, s = r.action ? r.action.bind(i.tour) : null), n(1, o = r.classes), n(2, c = r.disabled ? h(r.disabled) : !1), n(3, a = r.label ? h(r.label) : null), n(4, u = r.secondary), n(5, f = r.text ? h(r.text) : null));
393346
- }, [s, o, c, a, u, f, r, i];
393347
- }
393348
- class oo extends de {
393349
- constructor(t) {
393350
- super(), fe(this, t, io, ro, ue, {
393351
- config: 6,
393352
- step: 7
393353
- });
393354
- }
393355
- }
393356
- function wn(e, t, n) {
393357
- const r = e.slice();
393358
- return r[2] = t[n], r;
393359
- }
393360
- function xn(e) {
393361
- let t, n, r = _n(
393362
- /*buttons*/
393363
- e[1]
393364
- ), i = [];
393365
- for (let o = 0; o < r.length; o += 1)
393366
- i[o] = En(wn(e, r, o));
393367
- const s = (o) => F(i[o], 1, 1, () => {
393368
- i[o] = null;
393369
- });
393370
- return {
393371
- c() {
393372
- for (let o = 0; o < i.length; o += 1)
393373
- i[o].c();
393374
- t = zi();
393375
- },
393376
- m(o, c) {
393377
- for (let a = 0; a < i.length; a += 1)
393378
- i[a] && i[a].m(o, c);
393379
- re(o, t, c), n = !0;
393380
- },
393381
- p(o, c) {
393382
- if (c & /*buttons, step*/
393383
- 3) {
393384
- r = _n(
393385
- /*buttons*/
393386
- o[1]
393387
- );
393388
- let a;
393389
- for (a = 0; a < r.length; a += 1) {
393390
- const u = wn(o, r, a);
393391
- i[a] ? (i[a].p(u, c), P(i[a], 1)) : (i[a] = En(u), i[a].c(), P(i[a], 1), i[a].m(t.parentNode, t));
393392
- }
393393
- for (Se(), a = r.length; a < i.length; a += 1)
393394
- s(a);
393395
- Oe();
393396
- }
393397
- },
393398
- i(o) {
393399
- if (!n) {
393400
- for (let c = 0; c < r.length; c += 1)
393401
- P(i[c]);
393402
- n = !0;
393403
- }
393404
- },
393405
- o(o) {
393406
- i = i.filter(Boolean);
393407
- for (let c = 0; c < i.length; c += 1)
393408
- F(i[c]);
393409
- n = !1;
393410
- },
393411
- d(o) {
393412
- o && Z(t), Yi(i, o);
393413
- }
393414
- };
393415
- }
393416
- function En(e) {
393417
- let t, n;
393418
- return t = new oo({
393419
- props: {
393420
- config: (
393421
- /*config*/
393422
- e[2]
393423
- ),
393424
- step: (
393425
- /*step*/
393426
- e[0]
393427
- )
393428
- }
393429
- }), {
393430
- c() {
393431
- Ce(t.$$.fragment);
393432
- },
393433
- m(r, i) {
393434
- ve(t, r, i), n = !0;
393435
- },
393436
- p(r, i) {
393437
- const s = {};
393438
- i & /*buttons*/
393439
- 2 && (s.config = /*config*/
393440
- r[2]), i & /*step*/
393441
- 1 && (s.step = /*step*/
393442
- r[0]), t.$set(s);
393443
- },
393444
- i(r) {
393445
- n || (P(t.$$.fragment, r), n = !0);
393446
- },
393447
- o(r) {
393448
- F(t.$$.fragment, r), n = !1;
393449
- },
393450
- d(r) {
393451
- ye(t, r);
393452
- }
393453
- };
393454
- }
393455
- function so(e) {
393456
- let t, n, r = (
393457
- /*buttons*/
393458
- e[1] && xn(e)
393459
- );
393460
- return {
393461
- c() {
393462
- t = se("footer"), r && r.c(), I(t, "class", "shepherd-footer");
393463
- },
393464
- m(i, s) {
393465
- re(i, t, s), r && r.m(t, null), n = !0;
393466
- },
393467
- p(i, [s]) {
393468
- /*buttons*/
393469
- i[1] ? r ? (r.p(i, s), s & /*buttons*/
393470
- 2 && P(r, 1)) : (r = xn(i), r.c(), P(r, 1), r.m(t, null)) : r && (Se(), F(r, 1, 1, () => {
393471
- r = null;
393472
- }), Oe());
393473
- },
393474
- i(i) {
393475
- n || (P(r), n = !0);
393476
- },
393477
- o(i) {
393478
- F(r), n = !1;
393479
- },
393480
- d(i) {
393481
- i && Z(t), r && r.d();
393482
- }
393483
- };
393484
- }
393485
- function lo(e, t, n) {
393486
- let r, {
393487
- step: i
393488
- } = t;
393489
- return e.$$set = (s) => {
393490
- "step" in s && n(0, i = s.step);
393491
- }, e.$$.update = () => {
393492
- e.$$.dirty & /*step*/
393493
- 1 && n(1, r = i.options.buttons);
393494
- }, [i, r];
393495
- }
393496
- class co extends de {
393497
- constructor(t) {
393498
- super(), fe(this, t, lo, so, ue, {
393499
- step: 0
393500
- });
393501
- }
393502
- }
393503
- function ao(e) {
393504
- let t, n, r, i, s;
393505
- return {
393506
- c() {
393507
- t = se("button"), n = se("span"), n.textContent = "×", I(n, "aria-hidden", "true"), I(t, "aria-label", r = /*cancelIcon*/
393508
- e[0].label ? (
393509
- /*cancelIcon*/
393510
- e[0].label
393511
- ) : "Close Tour"), I(t, "class", "shepherd-cancel-icon"), I(t, "type", "button");
393512
- },
393513
- m(o, c) {
393514
- re(o, t, c), We(t, n), i || (s = pt(
393515
- t,
393516
- "click",
393517
- /*handleCancelClick*/
393518
- e[1]
393519
- ), i = !0);
393520
- },
393521
- p(o, [c]) {
393522
- c & /*cancelIcon*/
393523
- 1 && r !== (r = /*cancelIcon*/
393524
- o[0].label ? (
393525
- /*cancelIcon*/
393526
- o[0].label
393527
- ) : "Close Tour") && I(t, "aria-label", r);
393528
- },
393529
- i: J,
393530
- o: J,
393531
- d(o) {
393532
- o && Z(t), i = !1, s();
393533
- }
393534
- };
393535
- }
393536
- function uo(e, t, n) {
393537
- let {
393538
- cancelIcon: r,
393539
- step: i
393540
- } = t;
393541
- const s = (o) => {
393542
- o.preventDefault(), i.cancel();
393543
- };
393544
- return e.$$set = (o) => {
393545
- "cancelIcon" in o && n(0, r = o.cancelIcon), "step" in o && n(2, i = o.step);
393546
- }, [r, s, i];
393547
- }
393548
- class fo extends de {
393549
- constructor(t) {
393550
- super(), fe(this, t, uo, ao, ue, {
393551
- cancelIcon: 0,
393552
- step: 2
393553
- });
393554
- }
393555
- }
393556
- function ho(e) {
393557
- let t;
393558
- return {
393559
- c() {
393560
- t = se("h3"), I(
393561
- t,
393562
- "id",
393563
- /*labelId*/
393564
- e[1]
393565
- ), I(t, "class", "shepherd-title");
393566
- },
393567
- m(n, r) {
393568
- re(n, t, r), e[3](t);
393569
- },
393570
- p(n, [r]) {
393571
- r & /*labelId*/
393572
- 2 && I(
393573
- t,
393574
- "id",
393575
- /*labelId*/
393576
- n[1]
393577
- );
393578
- },
393579
- i: J,
393580
- o: J,
393581
- d(n) {
393582
- n && Z(t), e[3](null);
393583
- }
393584
- };
393585
- }
393586
- function po(e, t, n) {
393587
- let {
393588
- labelId: r,
393589
- element: i,
393590
- title: s
393591
- } = t;
393592
- Ut(() => {
393593
- pe(s) && n(2, s = s()), n(0, i.innerHTML = s, i);
393594
- });
393595
- function o(c) {
393596
- $e[c ? "unshift" : "push"](() => {
393597
- i = c, n(0, i);
393598
- });
393599
- }
393600
- return e.$$set = (c) => {
393601
- "labelId" in c && n(1, r = c.labelId), "element" in c && n(0, i = c.element), "title" in c && n(2, s = c.title);
393602
- }, [i, r, s, o];
393603
- }
393604
- class go extends de {
393605
- constructor(t) {
393606
- super(), fe(this, t, po, ho, ue, {
393607
- labelId: 1,
393608
- element: 0,
393609
- title: 2
393610
- });
393611
- }
393612
- }
393613
- function Sn(e) {
393614
- let t, n;
393615
- return t = new go({
393616
- props: {
393617
- labelId: (
393618
- /*labelId*/
393619
- e[0]
393620
- ),
393621
- title: (
393622
- /*title*/
393623
- e[2]
393624
- )
393625
- }
393626
- }), {
393627
- c() {
393628
- Ce(t.$$.fragment);
393629
- },
393630
- m(r, i) {
393631
- ve(t, r, i), n = !0;
393632
- },
393633
- p(r, i) {
393634
- const s = {};
393635
- i & /*labelId*/
393636
- 1 && (s.labelId = /*labelId*/
393637
- r[0]), i & /*title*/
393638
- 4 && (s.title = /*title*/
393639
- r[2]), t.$set(s);
393640
- },
393641
- i(r) {
393642
- n || (P(t.$$.fragment, r), n = !0);
393643
- },
393644
- o(r) {
393645
- F(t.$$.fragment, r), n = !1;
393646
- },
393647
- d(r) {
393648
- ye(t, r);
393649
- }
393650
- };
393651
- }
393652
- function On(e) {
393653
- let t, n;
393654
- return t = new fo({
393655
- props: {
393656
- cancelIcon: (
393657
- /*cancelIcon*/
393658
- e[3]
393659
- ),
393660
- step: (
393661
- /*step*/
393662
- e[1]
393663
- )
393664
- }
393665
- }), {
393666
- c() {
393667
- Ce(t.$$.fragment);
393668
- },
393669
- m(r, i) {
393670
- ve(t, r, i), n = !0;
393671
- },
393672
- p(r, i) {
393673
- const s = {};
393674
- i & /*cancelIcon*/
393675
- 8 && (s.cancelIcon = /*cancelIcon*/
393676
- r[3]), i & /*step*/
393677
- 2 && (s.step = /*step*/
393678
- r[1]), t.$set(s);
393679
- },
393680
- i(r) {
393681
- n || (P(t.$$.fragment, r), n = !0);
393682
- },
393683
- o(r) {
393684
- F(t.$$.fragment, r), n = !1;
393685
- },
393686
- d(r) {
393687
- ye(t, r);
393688
- }
393689
- };
393690
- }
393691
- function mo(e) {
393692
- let t, n, r, i = (
393693
- /*title*/
393694
- e[2] && Sn(e)
393695
- ), s = (
393696
- /*cancelIcon*/
393697
- e[3] && /*cancelIcon*/
393698
- e[3].enabled && On(e)
393699
- );
393700
- return {
393701
- c() {
393702
- t = se("header"), i && i.c(), n = ut(), s && s.c(), I(t, "class", "shepherd-header");
393703
- },
393704
- m(o, c) {
393705
- re(o, t, c), i && i.m(t, null), We(t, n), s && s.m(t, null), r = !0;
393706
- },
393707
- p(o, [c]) {
393708
- /*title*/
393709
- o[2] ? i ? (i.p(o, c), c & /*title*/
393710
- 4 && P(i, 1)) : (i = Sn(o), i.c(), P(i, 1), i.m(t, n)) : i && (Se(), F(i, 1, 1, () => {
393711
- i = null;
393712
- }), Oe()), /*cancelIcon*/
393713
- o[3] && /*cancelIcon*/
393714
- o[3].enabled ? s ? (s.p(o, c), c & /*cancelIcon*/
393715
- 8 && P(s, 1)) : (s = On(o), s.c(), P(s, 1), s.m(t, null)) : s && (Se(), F(s, 1, 1, () => {
393716
- s = null;
393717
- }), Oe());
393718
- },
393719
- i(o) {
393720
- r || (P(i), P(s), r = !0);
393721
- },
393722
- o(o) {
393723
- F(i), F(s), r = !1;
393724
- },
393725
- d(o) {
393726
- o && Z(t), i && i.d(), s && s.d();
393727
- }
393728
- };
393729
- }
393730
- function bo(e, t, n) {
393731
- let {
393732
- labelId: r,
393733
- step: i
393734
- } = t, s, o;
393735
- return e.$$set = (c) => {
393736
- "labelId" in c && n(0, r = c.labelId), "step" in c && n(1, i = c.step);
393737
- }, e.$$.update = () => {
393738
- e.$$.dirty & /*step*/
393739
- 2 && (n(2, s = i.options.title), n(3, o = i.options.cancelIcon));
393740
- }, [r, i, s, o];
393741
- }
393742
- class vo extends de {
393743
- constructor(t) {
393744
- super(), fe(this, t, bo, mo, ue, {
393745
- labelId: 0,
393746
- step: 1
393747
- });
393748
- }
393749
- }
393750
- function yo(e) {
393751
- let t;
393752
- return {
393753
- c() {
393754
- t = se("div"), I(t, "class", "shepherd-text"), I(
393755
- t,
393756
- "id",
393757
- /*descriptionId*/
393758
- e[1]
393759
- );
393760
- },
393761
- m(n, r) {
393762
- re(n, t, r), e[3](t);
393763
- },
393764
- p(n, [r]) {
393765
- r & /*descriptionId*/
393766
- 2 && I(
393767
- t,
393768
- "id",
393769
- /*descriptionId*/
393770
- n[1]
393771
- );
393772
- },
393773
- i: J,
393774
- o: J,
393775
- d(n) {
393776
- n && Z(t), e[3](null);
393777
- }
393778
- };
393779
- }
393780
- function _o(e, t, n) {
393781
- let {
393782
- descriptionId: r,
393783
- element: i,
393784
- step: s
393785
- } = t;
393786
- Ut(() => {
393787
- let {
393788
- text: c
393789
- } = s.options;
393790
- pe(c) && (c = c.call(s)), Ge(c) ? i.appendChild(c) : n(0, i.innerHTML = c, i);
393791
- });
393792
- function o(c) {
393793
- $e[c ? "unshift" : "push"](() => {
393794
- i = c, n(0, i);
393795
- });
393796
- }
393797
- return e.$$set = (c) => {
393798
- "descriptionId" in c && n(1, r = c.descriptionId), "element" in c && n(0, i = c.element), "step" in c && n(2, s = c.step);
393799
- }, [i, r, s, o];
393800
- }
393801
- class wo extends de {
393802
- constructor(t) {
393803
- super(), fe(this, t, _o, yo, ue, {
393804
- descriptionId: 1,
393805
- element: 0,
393806
- step: 2
393807
- });
393808
- }
393809
- }
393810
- function Rn(e) {
393811
- let t, n;
393812
- return t = new vo({
393813
- props: {
393814
- labelId: (
393815
- /*labelId*/
393816
- e[1]
393817
- ),
393818
- step: (
393819
- /*step*/
393820
- e[2]
393821
- )
393822
- }
393823
- }), {
393824
- c() {
393825
- Ce(t.$$.fragment);
393826
- },
393827
- m(r, i) {
393828
- ve(t, r, i), n = !0;
393829
- },
393830
- p(r, i) {
393831
- const s = {};
393832
- i & /*labelId*/
393833
- 2 && (s.labelId = /*labelId*/
393834
- r[1]), i & /*step*/
393835
- 4 && (s.step = /*step*/
393836
- r[2]), t.$set(s);
393837
- },
393838
- i(r) {
393839
- n || (P(t.$$.fragment, r), n = !0);
393840
- },
393841
- o(r) {
393842
- F(t.$$.fragment, r), n = !1;
393843
- },
393844
- d(r) {
393845
- ye(t, r);
393846
- }
393847
- };
393848
- }
393849
- function Tn(e) {
393850
- let t, n;
393851
- return t = new wo({
393852
- props: {
393853
- descriptionId: (
393854
- /*descriptionId*/
393855
- e[0]
393856
- ),
393857
- step: (
393858
- /*step*/
393859
- e[2]
393860
- )
393861
- }
393862
- }), {
393863
- c() {
393864
- Ce(t.$$.fragment);
393865
- },
393866
- m(r, i) {
393867
- ve(t, r, i), n = !0;
393868
- },
393869
- p(r, i) {
393870
- const s = {};
393871
- i & /*descriptionId*/
393872
- 1 && (s.descriptionId = /*descriptionId*/
393873
- r[0]), i & /*step*/
393874
- 4 && (s.step = /*step*/
393875
- r[2]), t.$set(s);
393876
- },
393877
- i(r) {
393878
- n || (P(t.$$.fragment, r), n = !0);
393879
- },
393880
- o(r) {
393881
- F(t.$$.fragment, r), n = !1;
393882
- },
393883
- d(r) {
393884
- ye(t, r);
393885
- }
393886
- };
393887
- }
393888
- function Cn(e) {
393889
- let t, n;
393890
- return t = new co({
393891
- props: {
393892
- step: (
393893
- /*step*/
393894
- e[2]
393895
- )
393896
- }
393897
- }), {
393898
- c() {
393899
- Ce(t.$$.fragment);
393900
- },
393901
- m(r, i) {
393902
- ve(t, r, i), n = !0;
393903
- },
393904
- p(r, i) {
393905
- const s = {};
393906
- i & /*step*/
393907
- 4 && (s.step = /*step*/
393908
- r[2]), t.$set(s);
393909
- },
393910
- i(r) {
393911
- n || (P(t.$$.fragment, r), n = !0);
393912
- },
393913
- o(r) {
393914
- F(t.$$.fragment, r), n = !1;
393915
- },
393916
- d(r) {
393917
- ye(t, r);
393918
- }
393919
- };
393920
- }
393921
- function xo(e) {
393922
- let t, n = !N(
393923
- /*step*/
393924
- e[2].options.title
393925
- ) || /*step*/
393926
- e[2].options.cancelIcon && /*step*/
393927
- e[2].options.cancelIcon.enabled, r, i = !N(
393928
- /*step*/
393929
- e[2].options.text
393930
- ), s, o = Array.isArray(
393931
- /*step*/
393932
- e[2].options.buttons
393933
- ) && /*step*/
393934
- e[2].options.buttons.length, c, a = n && Rn(e), u = i && Tn(e), f = o && Cn(e);
393935
- return {
393936
- c() {
393937
- t = se("div"), a && a.c(), r = ut(), u && u.c(), s = ut(), f && f.c(), I(t, "class", "shepherd-content");
393938
- },
393939
- m(h, d) {
393940
- re(h, t, d), a && a.m(t, null), We(t, r), u && u.m(t, null), We(t, s), f && f.m(t, null), c = !0;
393941
- },
393942
- p(h, [d]) {
393943
- d & /*step*/
393944
- 4 && (n = !N(
393945
- /*step*/
393946
- h[2].options.title
393947
- ) || /*step*/
393948
- h[2].options.cancelIcon && /*step*/
393949
- h[2].options.cancelIcon.enabled), n ? a ? (a.p(h, d), d & /*step*/
393950
- 4 && P(a, 1)) : (a = Rn(h), a.c(), P(a, 1), a.m(t, r)) : a && (Se(), F(a, 1, 1, () => {
393951
- a = null;
393952
- }), Oe()), d & /*step*/
393953
- 4 && (i = !N(
393954
- /*step*/
393955
- h[2].options.text
393956
- )), i ? u ? (u.p(h, d), d & /*step*/
393957
- 4 && P(u, 1)) : (u = Tn(h), u.c(), P(u, 1), u.m(t, s)) : u && (Se(), F(u, 1, 1, () => {
393958
- u = null;
393959
- }), Oe()), d & /*step*/
393960
- 4 && (o = Array.isArray(
393961
- /*step*/
393962
- h[2].options.buttons
393963
- ) && /*step*/
393964
- h[2].options.buttons.length), o ? f ? (f.p(h, d), d & /*step*/
393965
- 4 && P(f, 1)) : (f = Cn(h), f.c(), P(f, 1), f.m(t, null)) : f && (Se(), F(f, 1, 1, () => {
393966
- f = null;
393967
- }), Oe());
393968
- },
393969
- i(h) {
393970
- c || (P(a), P(u), P(f), c = !0);
393971
- },
393972
- o(h) {
393973
- F(a), F(u), F(f), c = !1;
393974
- },
393975
- d(h) {
393976
- h && Z(t), a && a.d(), u && u.d(), f && f.d();
393977
- }
393978
- };
393979
- }
393980
- function Eo(e, t, n) {
393981
- let {
393982
- descriptionId: r,
393983
- labelId: i,
393984
- step: s
393985
- } = t;
393986
- return e.$$set = (o) => {
393987
- "descriptionId" in o && n(0, r = o.descriptionId), "labelId" in o && n(1, i = o.labelId), "step" in o && n(2, s = o.step);
393988
- }, [r, i, s];
393989
- }
393990
- class So extends de {
393991
- constructor(t) {
393992
- super(), fe(this, t, Eo, xo, ue, {
393993
- descriptionId: 0,
393994
- labelId: 1,
393995
- step: 2
393996
- });
393997
- }
393998
- }
393999
- function An(e) {
394000
- let t;
394001
- return {
394002
- c() {
394003
- t = se("div"), I(t, "class", "shepherd-arrow"), I(t, "data-popper-arrow", "");
394004
- },
394005
- m(n, r) {
394006
- re(n, t, r);
394007
- },
394008
- d(n) {
394009
- n && Z(t);
394010
- }
394011
- };
394012
- }
394013
- function Oo(e) {
394014
- let t, n, r, i, s, o, c, a, u = (
394015
- /*step*/
394016
- e[4].options.arrow && /*step*/
394017
- e[4].options.attachTo && /*step*/
394018
- e[4].options.attachTo.element && /*step*/
394019
- e[4].options.attachTo.on && An()
394020
- );
394021
- r = new So({
394022
- props: {
394023
- descriptionId: (
394024
- /*descriptionId*/
394025
- e[2]
394026
- ),
394027
- labelId: (
394028
- /*labelId*/
394029
- e[3]
394030
- ),
394031
- step: (
394032
- /*step*/
394033
- e[4]
394034
- )
394035
- }
394036
- });
394037
- let f = [
394038
- {
394039
- "aria-describedby": i = N(
394040
- /*step*/
394041
- e[4].options.text
394042
- ) ? null : (
394043
- /*descriptionId*/
394044
- e[2]
394045
- )
394046
- },
394047
- {
394048
- "aria-labelledby": s = /*step*/
394049
- e[4].options.title ? (
394050
- /*labelId*/
394051
- e[3]
394052
- ) : null
394053
- },
394054
- /*dataStepId*/
394055
- e[1],
394056
- {
394057
- role: "dialog"
394058
- },
394059
- {
394060
- tabindex: "0"
394061
- }
394062
- ], h = {};
394063
- for (let d = 0; d < f.length; d += 1)
394064
- h = Hi(h, f[d]);
394065
- return {
394066
- c() {
394067
- t = se("div"), u && u.c(), n = ut(), Ce(r.$$.fragment), vn(t, h), ke(
394068
- t,
394069
- "shepherd-has-cancel-icon",
394070
- /*hasCancelIcon*/
394071
- e[5]
394072
- ), ke(
394073
- t,
394074
- "shepherd-has-title",
394075
- /*hasTitle*/
394076
- e[6]
394077
- ), ke(t, "shepherd-element", !0);
394078
- },
394079
- m(d, g) {
394080
- re(d, t, g), u && u.m(t, null), We(t, n), ve(r, t, null), e[13](t), o = !0, c || (a = pt(
394081
- t,
394082
- "keydown",
394083
- /*handleKeyDown*/
394084
- e[7]
394085
- ), c = !0);
394086
- },
394087
- p(d, [g]) {
394088
- /*step*/
394089
- d[4].options.arrow && /*step*/
394090
- d[4].options.attachTo && /*step*/
394091
- d[4].options.attachTo.element && /*step*/
394092
- d[4].options.attachTo.on ? u || (u = An(), u.c(), u.m(t, n)) : u && (u.d(1), u = null);
394093
- const v = {};
394094
- g & /*descriptionId*/
394095
- 4 && (v.descriptionId = /*descriptionId*/
394096
- d[2]), g & /*labelId*/
394097
- 8 && (v.labelId = /*labelId*/
394098
- d[3]), g & /*step*/
394099
- 16 && (v.step = /*step*/
394100
- d[4]), r.$set(v), vn(t, h = eo(f, [(!o || g & /*step, descriptionId*/
394101
- 20 && i !== (i = N(
394102
- /*step*/
394103
- d[4].options.text
394104
- ) ? null : (
394105
- /*descriptionId*/
394106
- d[2]
394107
- ))) && {
394108
- "aria-describedby": i
394109
- }, (!o || g & /*step, labelId*/
394110
- 24 && s !== (s = /*step*/
394111
- d[4].options.title ? (
394112
- /*labelId*/
394113
- d[3]
394114
- ) : null)) && {
394115
- "aria-labelledby": s
394116
- }, g & /*dataStepId*/
394117
- 2 && /*dataStepId*/
394118
- d[1], {
394119
- role: "dialog"
394120
- }, {
394121
- tabindex: "0"
394122
- }])), ke(
394123
- t,
394124
- "shepherd-has-cancel-icon",
394125
- /*hasCancelIcon*/
394126
- d[5]
394127
- ), ke(
394128
- t,
394129
- "shepherd-has-title",
394130
- /*hasTitle*/
394131
- d[6]
394132
- ), ke(t, "shepherd-element", !0);
394133
- },
394134
- i(d) {
394135
- o || (P(r.$$.fragment, d), o = !0);
394136
- },
394137
- o(d) {
394138
- F(r.$$.fragment, d), o = !1;
394139
- },
394140
- d(d) {
394141
- d && Z(t), u && u.d(), ye(r), e[13](null), c = !1, a();
394142
- }
394143
- };
394144
- }
394145
- const Ro = 9, To = 27, Co = 37, Ao = 39;
394146
- function Pn(e) {
394147
- return e.split(" ").filter((t) => !!t.length);
394148
- }
394149
- function Po(e, t, n) {
394150
- let {
394151
- classPrefix: r,
394152
- element: i,
394153
- descriptionId: s,
394154
- firstFocusableElement: o,
394155
- focusableElements: c,
394156
- labelId: a,
394157
- lastFocusableElement: u,
394158
- step: f,
394159
- dataStepId: h
394160
- } = t, d, g, v;
394161
- const x = () => i;
394162
- Ki(() => {
394163
- n(1, h = {
394164
- [`data-${r}shepherd-step-id`]: f.id
394165
- }), n(9, c = i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')), n(8, o = c[0]), n(10, u = c[c.length - 1]);
394166
- }), Ut(() => {
394167
- v !== f.options.classes && S();
394168
- });
394169
- function S() {
394170
- w(v), v = f.options.classes, _(v);
394171
- }
394172
- function w(m) {
394173
- if (Je(m)) {
394174
- const T = Pn(m);
394175
- T.length && i.classList.remove(...T);
394176
- }
394177
- }
394178
- function _(m) {
394179
- if (Je(m)) {
394180
- const T = Pn(m);
394181
- T.length && i.classList.add(...T);
394182
- }
394183
- }
394184
- const R = (m) => {
394185
- const {
394186
- tour: T
394187
- } = f;
394188
- switch (m.keyCode) {
394189
- case Ro:
394190
- if (c.length === 0) {
394191
- m.preventDefault();
394192
- break;
394193
- }
394194
- m.shiftKey ? (document.activeElement === o || document.activeElement.classList.contains("shepherd-element")) && (m.preventDefault(), u.focus()) : document.activeElement === u && (m.preventDefault(), o.focus());
394195
- break;
394196
- case To:
394197
- T.options.exitOnEsc && (m.preventDefault(), m.stopPropagation(), f.cancel());
394198
- break;
394199
- case Co:
394200
- T.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), T.back());
394201
- break;
394202
- case Ao:
394203
- T.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), T.next());
394204
- break;
394205
- }
394206
- };
394207
- function y(m) {
394208
- $e[m ? "unshift" : "push"](() => {
394209
- i = m, n(0, i);
394210
- });
394211
- }
394212
- return e.$$set = (m) => {
394213
- "classPrefix" in m && n(11, r = m.classPrefix), "element" in m && n(0, i = m.element), "descriptionId" in m && n(2, s = m.descriptionId), "firstFocusableElement" in m && n(8, o = m.firstFocusableElement), "focusableElements" in m && n(9, c = m.focusableElements), "labelId" in m && n(3, a = m.labelId), "lastFocusableElement" in m && n(10, u = m.lastFocusableElement), "step" in m && n(4, f = m.step), "dataStepId" in m && n(1, h = m.dataStepId);
394214
- }, e.$$.update = () => {
394215
- e.$$.dirty & /*step*/
394216
- 16 && (n(5, d = f.options && f.options.cancelIcon && f.options.cancelIcon.enabled), n(6, g = f.options && f.options.title));
394217
- }, [i, h, s, a, f, d, g, R, o, c, u, r, x, y];
394218
- }
394219
- class ko extends de {
394220
- constructor(t) {
394221
- super(), fe(this, t, Po, Oo, ue, {
394222
- classPrefix: 11,
394223
- element: 0,
394224
- descriptionId: 2,
394225
- firstFocusableElement: 8,
394226
- focusableElements: 9,
394227
- labelId: 3,
394228
- lastFocusableElement: 10,
394229
- step: 4,
394230
- dataStepId: 1,
394231
- getElement: 12
394232
- });
394233
- }
394234
- get getElement() {
394235
- return this.$$.ctx[12];
394236
- }
394237
- }
394238
- class Mt extends Ft {
394239
- constructor(t, n = {}) {
394240
- return super(), this._resolvedAttachTo = void 0, this.classPrefix = void 0, this.el = void 0, this.target = void 0, this.tour = void 0, this.tour = t, this.classPrefix = this.tour.options ? Dn(this.tour.options.classPrefix) : "", this.styles = t.styles, this._resolvedAttachTo = null, Dt(this), this._setOptions(n), this;
394241
- }
394242
- /**
394243
- * Cancel the tour
394244
- * Triggers the `cancel` event
394245
- */
394246
- cancel() {
394247
- this.tour.cancel(), this.trigger("cancel");
394248
- }
394249
- /**
394250
- * Complete the tour
394251
- * Triggers the `complete` event
394252
- */
394253
- complete() {
394254
- this.tour.complete(), this.trigger("complete");
394255
- }
394256
- /**
394257
- * Remove the step, delete the step's element, and destroy the FloatingUI instance for the step.
394258
- * Triggers `destroy` event
394259
- */
394260
- destroy() {
394261
- ji(this), Ge(this.el) && (this.el.remove(), this.el = null), this._updateStepTargetOnHide(), this.trigger("destroy");
394262
- }
394263
- /**
394264
- * Returns the tour for the step
394265
- * @return The tour instance
394266
- */
394267
- getTour() {
394268
- return this.tour;
394269
- }
394270
- /**
394271
- * Hide the step
394272
- */
394273
- hide() {
394274
- var t;
394275
- (t = this.tour.modal) == null || t.hide(), this.trigger("before-hide"), this.el && (this.el.hidden = !0), this._updateStepTargetOnHide(), this.trigger("hide");
394276
- }
394277
- /**
394278
- * Resolves attachTo options.
394279
- * @returns {{}|{element, on}}
394280
- */
394281
- _resolveAttachToOptions() {
394282
- return this._resolvedAttachTo = Gr(this), this._resolvedAttachTo;
394283
- }
394284
- /**
394285
- * A selector for resolved attachTo options.
394286
- * @returns {{}|{element, on}}
394287
- * @private
394288
- */
394289
- _getResolvedAttachToOptions() {
394290
- return this._resolvedAttachTo === null ? this._resolveAttachToOptions() : this._resolvedAttachTo;
394291
- }
394292
- /**
394293
- * Check if the step is open and visible
394294
- * @return True if the step is open and visible
394295
- */
394296
- isOpen() {
394297
- return !!(this.el && !this.el.hidden);
394298
- }
394299
- /**
394300
- * Wraps `_show` and ensures `beforeShowPromise` resolves before calling show
394301
- */
394302
- show() {
394303
- return pe(this.options.beforeShowPromise) ? Promise.resolve(this.options.beforeShowPromise()).then(() => this._show()) : Promise.resolve(this._show());
394304
- }
394305
- /**
394306
- * Updates the options of the step.
394307
- *
394308
- * @param {StepOptions} options The options for the step
394309
- */
394310
- updateStepOptions(t) {
394311
- Object.assign(this.options, t), this.shepherdElementComponent && this.shepherdElementComponent.$set({
394312
- step: this
394313
- });
394314
- }
394315
- /**
394316
- * Returns the element for the step
394317
- * @return {HTMLElement|null|undefined} The element instance. undefined if it has never been shown, null if it has been destroyed
394318
- */
394319
- getElement() {
394320
- return this.el;
394321
- }
394322
- /**
394323
- * Returns the target for the step
394324
- * @return {HTMLElement|null|undefined} The element instance. undefined if it has never been shown, null if query string has not been found
394325
- */
394326
- getTarget() {
394327
- return this.target;
394328
- }
394329
- /**
394330
- * Creates Shepherd element for step based on options
394331
- *
394332
- * @return {HTMLElement} The DOM element for the step tooltip
394333
- * @private
394334
- */
394335
- _createTooltipContent() {
394336
- const t = `${this.id}-description`, n = `${this.id}-label`;
394337
- return this.shepherdElementComponent = new ko({
394338
- target: this.tour.options.stepsContainer || document.body,
394339
- props: {
394340
- classPrefix: this.classPrefix,
394341
- descriptionId: t,
394342
- labelId: n,
394343
- step: this,
394344
- // @ts-expect-error TODO: investigate where styles comes from
394345
- styles: this.styles
394346
- }
394347
- }), this.shepherdElementComponent.getElement();
394348
- }
394349
- /**
394350
- * If a custom scrollToHandler is defined, call that, otherwise do the generic
394351
- * scrollIntoView call.
394352
- *
394353
- * @param {boolean | ScrollIntoViewOptions} scrollToOptions - If true, uses the default `scrollIntoView`,
394354
- * if an object, passes that object as the params to `scrollIntoView` i.e. `{ behavior: 'smooth', block: 'center' }`
394355
- * @private
394356
- */
394357
- _scrollTo(t) {
394358
- const {
394359
- element: n
394360
- } = this._getResolvedAttachToOptions();
394361
- pe(this.options.scrollToHandler) ? this.options.scrollToHandler(n) : Ir(n) && typeof n.scrollIntoView == "function" && n.scrollIntoView(t);
394362
- }
394363
- /**
394364
- * _getClassOptions gets all possible classes for the step
394365
- * @param {StepOptions} stepOptions The step specific options
394366
- * @returns {string} unique string from array of classes
394367
- */
394368
- _getClassOptions(t) {
394369
- const n = this.tour && this.tour.options && this.tour.options.defaultStepOptions, r = t.classes ? t.classes : "", i = n && n.classes ? n.classes : "", s = [...r.split(" "), ...i.split(" ")], o = new Set(s);
394370
- return Array.from(o).join(" ").trim();
394371
- }
394372
- /**
394373
- * Sets the options for the step, maps `when` to events, sets up buttons
394374
- * @param options - The options for the step
394375
- */
394376
- _setOptions(t = {}) {
394377
- let n = this.tour && this.tour.options && this.tour.options.defaultStepOptions;
394378
- n = Lt({}, n || {}), this.options = Object.assign({
394379
- arrow: !0
394380
- }, n, t, Di(n, t));
394381
- const {
394382
- when: r
394383
- } = this.options;
394384
- this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${Bn()}`, r && Object.keys(r).forEach((i) => {
394385
- this.on(i, r[i], this);
394386
- });
394387
- }
394388
- /**
394389
- * Create the element and set up the FloatingUI instance
394390
- * @private
394391
- */
394392
- _setupElements() {
394393
- N(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn && Jr(this), Li(this);
394394
- }
394395
- /**
394396
- * Triggers `before-show`, generates the tooltip DOM content,
394397
- * sets up a FloatingUI instance for the tooltip, then triggers `show`.
394398
- * @private
394399
- */
394400
- _show() {
394401
- var t;
394402
- this.trigger("before-show"), this._resolveAttachToOptions(), this._setupElements(), this.tour.modal || this.tour.setupModal(), (t = this.tour.modal) == null || t.setupForStep(this), this._styleTargetElementForStep(this), this.el && (this.el.hidden = !1), this.options.scrollTo && setTimeout(() => {
394403
- this._scrollTo(this.options.scrollTo);
394404
- }), this.el && (this.el.hidden = !1);
394405
- const n = this.shepherdElementComponent.getElement(), r = this.target || document.body;
394406
- r.classList.add(`${this.classPrefix}shepherd-enabled`), r.classList.add(`${this.classPrefix}shepherd-target`), n.classList.add("shepherd-enabled"), this.trigger("show");
394407
- }
394408
- /**
394409
- * Modulates the styles of the passed step's target element, based on the step's options and
394410
- * the tour's `modal` option, to visually emphasize the element
394411
- *
394412
- * @param {Step} step The step object that attaches to the element
394413
- * @private
394414
- */
394415
- _styleTargetElementForStep(t) {
394416
- const n = t.target;
394417
- n && (t.options.highlightClass && n.classList.add(t.options.highlightClass), n.classList.remove("shepherd-target-click-disabled"), t.options.canClickTarget === !1 && n.classList.add("shepherd-target-click-disabled"));
394418
- }
394419
- /**
394420
- * When a step is hidden, remove the highlightClass and 'shepherd-enabled'
394421
- * and 'shepherd-target' classes
394422
- * @private
394423
- */
394424
- _updateStepTargetOnHide() {
394425
- const t = this.target || document.body;
394426
- this.options.highlightClass && t.classList.remove(this.options.highlightClass), t.classList.remove("shepherd-target-click-disabled", `${this.classPrefix}shepherd-enabled`, `${this.classPrefix}shepherd-target`);
394427
- }
394428
- }
394429
- function Io(e) {
394430
- if (e) {
394431
- const {
394432
- steps: t
394433
- } = e;
394434
- t.forEach((n) => {
394435
- n.options && n.options.canClickTarget === !1 && n.options.attachTo && Ge(n.target) && n.target.classList.remove("shepherd-target-click-disabled");
394436
- });
394437
- }
394438
- }
394439
- function Mo({
394440
- width: e,
394441
- height: t,
394442
- x: n = 0,
394443
- y: r = 0,
394444
- r: i = 0
394445
- }) {
394446
- const {
394447
- innerWidth: s,
394448
- innerHeight: o
394449
- } = window, {
394450
- topLeft: c = 0,
394451
- topRight: a = 0,
394452
- bottomRight: u = 0,
394453
- bottomLeft: f = 0
394454
- } = typeof i == "number" ? {
394455
- topLeft: i,
394456
- topRight: i,
394457
- bottomRight: i,
394458
- bottomLeft: i
394459
- } : i;
394460
- return `M${s},${o}H0V0H${s}V${o}ZM${n + c},${r}a${c},${c},0,0,0-${c},${c}V${t + r - f}a${f},${f},0,0,0,${f},${f}H${e + n - u}a${u},${u},0,0,0,${u}-${u}V${r + a}a${a},${a},0,0,0-${a}-${a}Z`;
394461
- }
394462
- function Fo(e) {
394463
- let t, n, r, i, s;
394464
- return {
394465
- c() {
394466
- t = bn("svg"), n = bn("path"), I(
394467
- n,
394468
- "d",
394469
- /*pathDefinition*/
394470
- e[2]
394471
- ), I(t, "class", r = `${/*modalIsVisible*/
394472
- e[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`);
394473
- },
394474
- m(o, c) {
394475
- re(o, t, c), We(t, n), e[11](t), i || (s = pt(
394476
- t,
394477
- "touchmove",
394478
- /*_preventModalOverlayTouch*/
394479
- e[3]
394480
- ), i = !0);
394481
- },
394482
- p(o, [c]) {
394483
- c & /*pathDefinition*/
394484
- 4 && I(
394485
- n,
394486
- "d",
394487
- /*pathDefinition*/
394488
- o[2]
394489
- ), c & /*modalIsVisible*/
394490
- 2 && r !== (r = `${/*modalIsVisible*/
394491
- o[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) && I(t, "class", r);
394492
- },
394493
- i: J,
394494
- o: J,
394495
- d(o) {
394496
- o && Z(t), e[11](null), i = !1, s();
394497
- }
394498
- };
394499
- }
394500
- function Zn(e) {
394501
- if (!e)
394502
- return null;
394503
- const n = e instanceof HTMLElement && window.getComputedStyle(e).overflowY;
394504
- return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e : Zn(e.parentElement);
394505
- }
394506
- function Lo(e) {
394507
- let t = {
394508
- top: 0,
394509
- left: 0
394510
- };
394511
- if (!e)
394512
- return t;
394513
- let n = e.ownerDocument.defaultView;
394514
- for (; n !== window.top; ) {
394515
- var r;
394516
- const o = (r = n) == null ? void 0 : r.frameElement;
394517
- if (o) {
394518
- var i, s;
394519
- const c = o.getBoundingClientRect();
394520
- t.top += c.top + ((i = c.scrollTop) != null ? i : 0), t.left += c.left + ((s = c.scrollLeft) != null ? s : 0);
394521
- }
394522
- n = n.parent;
394523
- }
394524
- return t;
394525
- }
394526
- function Do(e, t) {
394527
- const n = e.getBoundingClientRect();
394528
- let r = n.y || n.top, i = n.bottom || r + n.height;
394529
- if (t) {
394530
- const o = t.getBoundingClientRect(), c = o.y || o.top, a = o.bottom || c + o.height;
394531
- r = Math.max(r, c), i = Math.min(i, a);
394532
- }
394533
- const s = Math.max(i - r, 0);
394534
- return {
394535
- y: r,
394536
- height: s
394537
- };
394538
- }
394539
- function jo(e, t, n) {
394540
- let {
394541
- element: r,
394542
- openingProperties: i
394543
- } = t, s = !1, o, c;
394544
- u();
394545
- const a = () => r;
394546
- function u() {
394547
- n(4, i = {
394548
- width: 0,
394549
- height: 0,
394550
- x: 0,
394551
- y: 0,
394552
- r: 0
394553
- });
394554
- }
394555
- function f() {
394556
- n(1, s = !1), w();
394557
- }
394558
- function h(y = 0, m = 0, T = 0, B = 0, ie, H) {
394559
- if (H) {
394560
- const {
394561
- y: K,
394562
- height: U
394563
- } = Do(H, ie), {
394564
- x: W,
394565
- width: j,
394566
- left: L
394567
- } = H.getBoundingClientRect();
394568
- n(4, i = {
394569
- width: j + y * 2,
394570
- height: U + y * 2,
394571
- x: (W || L) + T - y,
394572
- y: K + B - y,
394573
- r: m
394574
- });
394575
- } else
394576
- u();
394577
- }
394578
- function d(y) {
394579
- w(), y.tour.options.useModalOverlay ? (_(y), g()) : f();
394580
- }
394581
- function g() {
394582
- n(1, s = !0);
394583
- }
394584
- const v = (y) => {
394585
- y.preventDefault();
394586
- }, x = (y) => {
394587
- y.stopPropagation();
394588
- };
394589
- function S() {
394590
- window.addEventListener("touchmove", v, {
394591
- passive: !1
394592
- });
394593
- }
394594
- function w() {
394595
- o && (cancelAnimationFrame(o), o = void 0), window.removeEventListener("touchmove", v, {
394596
- passive: !1
394597
- });
394598
- }
394599
- function _(y) {
394600
- const {
394601
- modalOverlayOpeningPadding: m,
394602
- modalOverlayOpeningRadius: T,
394603
- modalOverlayOpeningXOffset: B = 0,
394604
- modalOverlayOpeningYOffset: ie = 0
394605
- } = y.options, H = Lo(y.target), K = Zn(y.target), U = () => {
394606
- o = void 0, h(m, T, B + H.left, ie + H.top, K, y.target), o = requestAnimationFrame(U);
394607
- };
394608
- U(), S();
394609
- }
394610
- function R(y) {
394611
- $e[y ? "unshift" : "push"](() => {
394612
- r = y, n(0, r);
394613
- });
394614
- }
394615
- return e.$$set = (y) => {
394616
- "element" in y && n(0, r = y.element), "openingProperties" in y && n(4, i = y.openingProperties);
394617
- }, e.$$.update = () => {
394618
- e.$$.dirty & /*openingProperties*/
394619
- 16 && n(2, c = Mo(i));
394620
- }, [r, s, c, x, i, a, u, f, h, d, g, R];
394621
- }
394622
- class Bo extends de {
394623
- constructor(t) {
394624
- super(), fe(this, t, jo, Fo, ue, {
394625
- element: 0,
394626
- openingProperties: 4,
394627
- getElement: 5,
394628
- closeModalOpening: 6,
394629
- hide: 7,
394630
- positionModal: 8,
394631
- setupForStep: 9,
394632
- show: 10
394633
- });
394634
- }
394635
- get getElement() {
394636
- return this.$$.ctx[5];
394637
- }
394638
- get closeModalOpening() {
394639
- return this.$$.ctx[6];
394640
- }
394641
- get hide() {
394642
- return this.$$.ctx[7];
394643
- }
394644
- get positionModal() {
394645
- return this.$$.ctx[8];
394646
- }
394647
- get setupForStep() {
394648
- return this.$$.ctx[9];
394649
- }
394650
- get show() {
394651
- return this.$$.ctx[10];
394652
- }
394653
- }
394654
- class No extends Ft {
394655
- constructor() {
394656
- super(), this.activeTour = void 0, Dt(this);
394657
- }
394658
- }
394659
- class Wo extends Ft {
394660
- constructor(t = {}) {
394661
- super(), this.trackedEvents = ["active", "cancel", "complete", "show"], this.classPrefix = void 0, this.currentStep = void 0, this.focusedElBeforeOpen = void 0, this.id = void 0, this.modal = void 0, this.options = void 0, this.steps = void 0, Dt(this);
394662
- const n = {
394663
- exitOnEsc: !0,
394664
- keyboardNavigation: !0
394665
- };
394666
- return this.options = Object.assign({}, n, t), this.classPrefix = Dn(this.options.classPrefix), this.steps = [], this.addSteps(this.options.steps), ["active", "cancel", "complete", "inactive", "show", "start"].map((i) => {
394667
- ((s) => {
394668
- this.on(s, (o) => {
394669
- o = o || {}, o.tour = this, xe.trigger(s, o);
394670
- });
394671
- })(i);
394672
- }), this._setTourID(t.id), this;
394673
- }
394674
- /**
394675
- * Adds a new step to the tour
394676
- * @param {StepOptions} options - An object containing step options or a Step instance
394677
- * @param {number | undefined} index - The optional index to insert the step at. If undefined, the step
394678
- * is added to the end of the array.
394679
- * @return The newly added step
394680
- */
394681
- addStep(t, n) {
394682
- let r = t;
394683
- return r instanceof Mt ? r.tour = this : r = new Mt(this, r), N(n) ? this.steps.push(r) : this.steps.splice(n, 0, r), r;
394684
- }
394685
- /**
394686
- * Add multiple steps to the tour
394687
- * @param {Array<StepOptions> | Array<Step> | undefined} steps - The steps to add to the tour
394688
- */
394689
- addSteps(t) {
394690
- return Array.isArray(t) && t.forEach((n) => {
394691
- this.addStep(n);
394692
- }), this;
394693
- }
394694
- /**
394695
- * Go to the previous step in the tour
394696
- */
394697
- back() {
394698
- const t = this.steps.indexOf(this.currentStep);
394699
- this.show(t - 1, !1);
394700
- }
394701
- /**
394702
- * Calls _done() triggering the 'cancel' event
394703
- * If `confirmCancel` is true, will show a window.confirm before cancelling
394704
- * If `confirmCancel` is a function, will call it and wait for the return value,
394705
- * and only cancel when the value returned is true
394706
- */
394707
- async cancel() {
394708
- if (this.options.confirmCancel) {
394709
- const t = this.options.confirmCancelMessage || "Are you sure you want to stop the tour?";
394710
- let n;
394711
- pe(this.options.confirmCancel) ? n = await this.options.confirmCancel() : n = window.confirm(t), n && this._done("cancel");
394712
- } else
394713
- this._done("cancel");
394714
- }
394715
- /**
394716
- * Calls _done() triggering the `complete` event
394717
- */
394718
- complete() {
394719
- this._done("complete");
394720
- }
394721
- /**
394722
- * Gets the step from a given id
394723
- * @param {number | string} id - The id of the step to retrieve
394724
- * @return The step corresponding to the `id`
394725
- */
394726
- getById(t) {
394727
- return this.steps.find((n) => n.id === t);
394728
- }
394729
- /**
394730
- * Gets the current step
394731
- */
394732
- getCurrentStep() {
394733
- return this.currentStep;
394734
- }
394735
- /**
394736
- * Hide the current step
394737
- */
394738
- hide() {
394739
- const t = this.getCurrentStep();
394740
- if (t)
394741
- return t.hide();
394742
- }
394743
- /**
394744
- * Check if the tour is active
394745
- */
394746
- isActive() {
394747
- return xe.activeTour === this;
394748
- }
394749
- /**
394750
- * Go to the next step in the tour
394751
- * If we are at the end, call `complete`
394752
- */
394753
- next() {
394754
- const t = this.steps.indexOf(this.currentStep);
394755
- t === this.steps.length - 1 ? this.complete() : this.show(t + 1, !0);
394756
- }
394757
- /**
394758
- * Removes the step from the tour
394759
- * @param {string} name - The id for the step to remove
394760
- */
394761
- removeStep(t) {
394762
- const n = this.getCurrentStep();
394763
- this.steps.some((r, i) => {
394764
- if (r.id === t)
394765
- return r.isOpen() && r.hide(), r.destroy(), this.steps.splice(i, 1), !0;
394766
- }), n && n.id === t && (this.currentStep = void 0, this.steps.length ? this.show(0) : this.cancel());
394767
- }
394768
- /**
394769
- * Show a specific step in the tour
394770
- * @param {number | string} key - The key to look up the step by
394771
- * @param {boolean} forward - True if we are going forward, false if backward
394772
- */
394773
- show(t = 0, n = !0) {
394774
- const r = Je(t) ? this.getById(t) : this.steps[t];
394775
- r && (this._updateStateBeforeShow(), pe(r.options.showOn) && !r.options.showOn() ? this._skipStep(r, n) : (this.trigger("show", {
394776
- step: r,
394777
- previous: this.currentStep
394778
- }), this.currentStep = r, r.show()));
394779
- }
394780
- /**
394781
- * Start the tour
394782
- */
394783
- async start() {
394784
- this.trigger("start"), this.focusedElBeforeOpen = document.activeElement, this.currentStep = null, this.setupModal(), this._setupActiveTour(), this.next();
394785
- }
394786
- /**
394787
- * Called whenever the tour is cancelled or completed, basically anytime we exit the tour
394788
- * @param {string} event - The event name to trigger
394789
- * @private
394790
- */
394791
- _done(t) {
394792
- const n = this.steps.indexOf(this.currentStep);
394793
- if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()), Io(this), this.trigger(t, {
394794
- index: n
394795
- }), xe.activeTour = null, this.trigger("inactive", {
394796
- tour: this
394797
- }), this.modal && this.modal.hide(), (t === "cancel" || t === "complete") && this.modal) {
394798
- const r = document.querySelector(".shepherd-modal-overlay-container");
394799
- r && (r.remove(), this.modal = null);
394800
- }
394801
- Ge(this.focusedElBeforeOpen) && this.focusedElBeforeOpen.focus();
394802
- }
394803
- /**
394804
- * Make this tour "active"
394805
- */
394806
- _setupActiveTour() {
394807
- this.trigger("active", {
394808
- tour: this
394809
- }), xe.activeTour = this;
394810
- }
394811
- /**
394812
- * setupModal create the modal container and instance
394813
- */
394814
- setupModal() {
394815
- this.modal = new Bo({
394816
- target: this.options.modalContainer || document.body,
394817
- props: {
394818
- // @ts-expect-error TODO: investigate where styles comes from
394819
- styles: this.styles
394820
- }
394821
- });
394822
- }
394823
- /**
394824
- * Called when `showOn` evaluates to false, to skip the step or complete the tour if it's the last step
394825
- * @param {Step} step - The step to skip
394826
- * @param {boolean} forward - True if we are going forward, false if backward
394827
- * @private
394828
- */
394829
- _skipStep(t, n) {
394830
- const r = this.steps.indexOf(t);
394831
- if (r === this.steps.length - 1)
394832
- this.complete();
394833
- else {
394834
- const i = n ? r + 1 : r - 1;
394835
- this.show(i, n);
394836
- }
394837
- }
394838
- /**
394839
- * Before showing, hide the current step and if the tour is not
394840
- * already active, call `this._setupActiveTour`.
394841
- * @private
394842
- */
394843
- _updateStateBeforeShow() {
394844
- this.currentStep && this.currentStep.hide(), this.isActive() || this._setupActiveTour();
394845
- }
394846
- /**
394847
- * Sets this.id to a provided tourName and id or `${tourName}--${uuid}`
394848
- * @param {string} optionsId - True if we are going forward, false if backward
394849
- * @private
394850
- */
394851
- _setTourID(t) {
394852
- const n = this.options.tourName || "tour", r = t || Bn();
394853
- this.id = `${n}--${r}`;
394854
- }
394855
- }
394856
- const xe = new No(), Qn = typeof window > "u";
394857
- xe.Step = Qn ? Kr : Mt;
394858
- xe.Tour = Qn ? Xr : Wo;
394859
- const Yt = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(
394860
- void 0
394861
- ), Vo = Yt.Consumer, Ho = () => {
394862
- const e = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Yt);
394863
- if (!e)
394864
- throw new Error(
394865
- "useShepherd must be used within a ShepherdJourneyProvider"
394866
- );
394867
- const { Shepherd: t } = e;
394868
- return t;
394869
- }, Uo = ({
394870
- children: e
394871
- }) => /* @__PURE__ */ kr.jsx(Yt.Provider, { value: { Shepherd: xe }, children: e });
394872
-
394873
-
394874
-
394875
391664
  /***/ },
394876
391665
 
394877
391666
  /***/ 55823
@@ -395419,7 +392208,7 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
395419
392208
  /******/ // This function allow to reference async chunks
395420
392209
  /******/ __webpack_require__.u = (chunkId) => {
395421
392210
  /******/ // return url for filenames based on template
395422
- /******/ return "" + ({"572":"polySeg","2007":"interpolation","3054":"histogram-worker","3694":"compute"}[chunkId] || chunkId) + ".bundle." + {"85":"3d381d8069283d131485","147":"47af018b91121924a12c","213":"1e49414bb6d03e363502","572":"6373e24bd578ae0d41eb","732":"ea6f9d8504e37e01a208","1403":"db8ef67d63949b4af72b","1459":"77654dada16c827f1a5a","1608":"b9abbf4ed6cc2e491dc3","1730":"2a0a2b1add1748311889","1927":"be67b3aafe238ca9f191","1933":"f13c9da3885ad9c19479","2007":"ae4d1b6dfb6b4bd37159","2018":"ceba4527a7734383f332","2108":"aea8d3b39486dd5ab39e","2199":"974037f21bfd12c4e8af","2424":"dd003e83eb29592ae2a9","2701":"58a6a580073edbb4cc04","2851":"66123d05dfa222a059c8","3054":"5b679ce4142c803c80a4","3081":"550fe13c55efd70b390f","3343":"a4424b8418b8c0c1a9e4","3461":"0c73bb990182139609e5","3694":"73440405025831e0e072","4202":"4f76d3a50d6cf819fba0","4287":"87e14e648f2bce5e4176","4775":"601151a8eac638263a19","4819":"e51e52f6727024e69b5b","5028":"087f343f3010ea5baaa3","5261":"2655560097e9250eac44","5457":"a19090f18fe4eb839892","5462":"d5bb9b3ddc510fea141f","5485":"8bfbab52e592d30491b4","5724":"62ea5c07c7809ab4cd74","5802":"ae4d88742c353de462c2","6027":"93d6b429b7e4bb76769c","6163":"ca6f88d139cd765f76d4","6347":"f8393c20d5159ed41b64","6409":"24edbaa283b7c521b8f7","6939":"41fbdef87597b5172ec6","7159":"a5991a5d4f0dd8f1c95f","7431":"b31ebb4a2625e89d864e","7639":"776e33d4900903701e23","8094":"148a66619607e37cbf19","8305":"b945ebe7f221f3cc2349","8558":"2b8a2ba2264b459e58b0","8583":"e69257af5557d79cdeb5","9205":"2a2f38a4ee23647f5fa4","9845":"31f3e7e2d28fa6033ee5","9862":"73ea2a7703bf1bb96275","9927":"58b00ab1062232370613"}[chunkId] + ".js";
392211
+ /******/ return "" + ({"572":"polySeg","2007":"interpolation","3054":"histogram-worker","3694":"compute"}[chunkId] || chunkId) + ".bundle." + {"85":"71701281e6e3cff02973","147":"4f6c4b2f06c64d34ddf7","213":"d6bf3e06e4f7a9cad04c","572":"6373e24bd578ae0d41eb","732":"ea6f9d8504e37e01a208","1403":"f98313d845a2d793f838","1459":"500bfd5ff0ee1344e526","1608":"b937300c52a2b8676e50","1730":"529dce8e8340059b9ed3","1927":"be67b3aafe238ca9f191","1933":"32109000c6d22f6fbfc1","2007":"ae4d1b6dfb6b4bd37159","2018":"322200afa4cb3925b05e","2108":"aea8d3b39486dd5ab39e","2199":"974037f21bfd12c4e8af","2701":"54392a815cb5434534dd","2851":"cda8d63df28fd6db644f","3054":"5b679ce4142c803c80a4","3081":"4dcdfebe88148589c520","3343":"a4424b8418b8c0c1a9e4","3461":"72a5f02836647ecc5e68","3694":"73440405025831e0e072","4202":"89d2c6f27e2168c1eaf0","4287":"87e14e648f2bce5e4176","4291":"80f9c614ba358607a571","4775":"d7934011a28d548f4a8d","4819":"cb4b34e4e0186d48663b","5028":"270476526d411e1736e7","5261":"2655560097e9250eac44","5457":"a312cb836e9ee9ae5b71","5462":"d5bb9b3ddc510fea141f","5485":"26bacdd739c56f92d367","5724":"62ea5c07c7809ab4cd74","5802":"e4154ef85ac25664a583","6027":"6748abce57182c8d5ed3","6163":"4c8c7da038961117f3df","6347":"f8393c20d5159ed41b64","6409":"24edbaa283b7c521b8f7","6939":"41fbdef87597b5172ec6","7159":"4e35c02553d018f079c8","7431":"b31ebb4a2625e89d864e","7639":"f7ed9648dd1b8af9c1d8","8094":"148a66619607e37cbf19","8305":"bc827add8a13f2fd82af","8558":"6efd49ae8af07ea9219f","8583":"747d3af2f3999764317d","9205":"2a2f38a4ee23647f5fa4","9845":"8de3f0dd985f18df8668","9862":"700d686f2de51c3a3291","9927":"9c2714c36b762bf5b38f"}[chunkId] + ".js";
395423
392212
  /******/ };
395424
392213
  /******/ })();
395425
392214
  /******/
@@ -395739,13 +392528,13 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
395739
392528
  /******/ "1730": [
395740
392529
  /******/ 147
395741
392530
  /******/ ],
395742
- /******/ "2424": [
395743
- /******/ 7159
395744
- /******/ ],
395745
392531
  /******/ "2591": [
395746
392532
  /******/ 147,
395747
392533
  /******/ 2701
395748
392534
  /******/ ],
392535
+ /******/ "4291": [
392536
+ /******/ 7159
392537
+ /******/ ],
395749
392538
  /******/ "4819": [
395750
392539
  /******/ 147,
395751
392540
  /******/ 2701,