@fluidattacks/design 3.1.11 → 3.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
- package/dist/components/@core/index.js +18 -1
- package/dist/components/accordion/accordion-content/index.js +22 -1
- package/dist/components/accordion/index.js +78 -1
- package/dist/components/alert/index.js +162 -4
- package/dist/components/button/index.js +69 -1
- package/dist/components/card/card-header/index.js +83 -1
- package/dist/components/card/card-with-image/index.js +93 -1
- package/dist/components/card/card-with-input/index.js +106 -3
- package/dist/components/card/card-with-selector/index.js +71 -1
- package/dist/components/card/card-with-switch/index.js +50 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +62 -10
- package/dist/components/checkbox/index.js +118 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +72 -1
- package/dist/components/code-snippet/location-code/index.js +171 -1
- package/dist/components/colors/index.js +224 -1
- package/dist/components/confirm-dialog/index.js +46 -1
- package/dist/components/container/index.js +51 -3
- package/dist/components/content-card/category-tag/index.js +42 -1
- package/dist/components/content-card/event-date/index.js +61 -1
- package/dist/components/content-card/index.js +168 -3
- package/dist/components/content-card-carousel/index.js +95 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +25 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +58 -8
- package/dist/components/file-preview/index.js +31 -3
- package/dist/components/form/index.js +63 -3
- package/dist/components/grid-container/index.js +46 -5
- package/dist/components/group-selector/index.js +135 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +102 -4
- package/dist/components/icon-button/index.js +76 -3
- package/dist/components/indicator-card/index.js +74 -1
- package/dist/components/info-sidebar/index.js +116 -1
- package/dist/components/inputs/fields/combobox/index.js +146 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
- package/dist/components/inputs/fields/date/calendar/index.js +30 -1
- package/dist/components/inputs/fields/date/index.js +68 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
- package/dist/components/inputs/fields/date-range/index.js +108 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
- package/dist/components/inputs/fields/date-time/index.js +69 -1
- package/dist/components/inputs/fields/editable/index.js +28 -1
- package/dist/components/inputs/fields/input/index.js +77 -1
- package/dist/components/inputs/fields/input-file/index.js +117 -4
- package/dist/components/inputs/fields/input-tags/index.js +63 -2
- package/dist/components/inputs/fields/number/index.js +57 -1
- package/dist/components/inputs/fields/number-range/index.js +49 -1
- package/dist/components/inputs/fields/phone/index.js +574 -11
- package/dist/components/inputs/fields/text-area/index.js +81 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +38 -1
- package/dist/components/inputs/outline-container/index.js +104 -1
- package/dist/components/inputs/utils/action-button/index.js +31 -1
- package/dist/components/inputs/utils/calendar-button/index.js +37 -1
- package/dist/components/inputs/utils/date-selector/index.js +62 -1
- package/dist/components/inputs/utils/date-time-field/index.js +133 -1
- package/dist/components/inputs/utils/dialog/index.js +14 -1
- package/dist/components/inputs/utils/number-field/index.js +86 -1
- package/dist/components/inputs/utils/popover/index.js +44 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +118 -1
- package/dist/components/language-selector/index.js +37 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +106 -7
- package/dist/components/list-item/index.js +67 -1
- package/dist/components/little-flag/index.js +32 -3
- package/dist/components/loading/index.js +55 -14
- package/dist/components/logo/index.js +13 -1
- package/dist/components/logo-carousel/index.js +45 -4
- package/dist/components/lottie/index.js +20 -3
- package/dist/components/menu/index.js +67 -1
- package/dist/components/message-banner/index.js +87 -4
- package/dist/components/modal/index.js +65 -1
- package/dist/components/modal/modal-confirm/index.js +51 -1
- package/dist/components/modal/modal-footer/index.js +25 -1
- package/dist/components/modal/modal-header/index.js +51 -1
- package/dist/components/notification/index.js +113 -5
- package/dist/components/notification-sign/index.js +43 -6
- package/dist/components/number-input/index.js +62 -7
- package/dist/components/oauth-selector/index.js +100 -1
- package/dist/components/oauth-selector/option-container/index.js +76 -1
- package/dist/components/plan-card/index.js +155 -5
- package/dist/components/plan-card/recommended-tag/index.js +31 -1
- package/dist/components/pop-up/description/index.js +51 -1
- package/dist/components/pop-up/index.js +152 -1
- package/dist/components/premium-feature/index.js +85 -3
- package/dist/components/priority-score/index.js +29 -1
- package/dist/components/progress/index.js +36 -3
- package/dist/components/progress-bar/index.js +153 -5
- package/dist/components/radio-button/index.js +125 -3
- package/dist/components/scroll-button/index.js +38 -2
- package/dist/components/search/index.js +105 -7
- package/dist/components/search-bar/index.js +219 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +74 -1
- package/dist/components/severity-overview/badge/index.js +69 -1
- package/dist/components/severity-overview/index.js +17 -1
- package/dist/components/show-on-hover/index.js +31 -3
- package/dist/components/slide-out-menu/index.js +3456 -3
- package/dist/components/slide-out-menu/menu-item/index.js +67 -1
- package/dist/components/slider/index.js +124 -7
- package/dist/components/slider/thumb/index.js +17 -1
- package/dist/components/step-lapse/index.js +153 -9
- package/dist/components/table-button/index.js +97 -3
- package/dist/components/tabs/fixed-tabs/index.js +29 -1
- package/dist/components/tabs/index.js +57 -1
- package/dist/components/tabs/tab/index.js +39 -1
- package/dist/components/tag/index.js +184 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +17 -1
- package/dist/components/toggle/index.js +85 -14
- package/dist/components/toggle-buttons/index.js +103 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +4549 -4
- package/dist/components/typography/heading/index.js +47 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +41 -1
- package/dist/components/typography/text/index.js +47 -1
- package/dist/components/web-form/index.js +68 -7
- package/dist/hooks/index.js +13 -1
- package/dist/index-BMHVi812.mjs +234 -0
- package/dist/index-BzAniA2J.mjs +135 -0
- package/dist/index-C6LbClYh.mjs +146 -0
- package/dist/index-CAIe8hBv.mjs +130 -0
- package/dist/index-CUQBAqt_.mjs +75 -0
- package/dist/index-CWlrSlUk.mjs +68 -0
- package/dist/index-Ckmu1TfV.mjs +86 -0
- package/dist/index-DwznImvK.mjs +1678 -0
- package/dist/index-maWH3JYC.mjs +3561 -0
- package/dist/index.js +206 -1
- package/dist/styles-B2N0JLw1.mjs +114 -0
- package/dist/styles-B64DVBIF.mjs +115 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
- package/dist/styles-BZQOqe8p.mjs +141 -0
- package/dist/styles-Bdque9TT.mjs +65 -0
- package/dist/styles-BlHspTrz.mjs +144 -0
- package/dist/styles-CROOwXEH.mjs +76 -0
- package/dist/styles-CplEd2kw.mjs +228 -0
- package/dist/styles-D1eTIklB.mjs +110 -0
- package/dist/styles-ePGii_9g.mjs +74 -0
- package/dist/use-carousel-CgAF78h3.mjs +23 -0
- package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
- package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
- package/dist/use-modal-CtgexKnf.mjs +14 -0
- package/dist/use-search-Dj47QDw9.mjs +15 -0
- package/dist/utils-V0EumEPM.mjs +6 -0
- package/package.json +1 -3
- package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
- package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
- package/dist/index-BH27NQKA.mjs +0 -2311
- package/dist/index-Bcw2vW_n.mjs +0 -75
- package/dist/index-C0_LPuYU.mjs +0 -106
- package/dist/index-C8zdgAVH.mjs +0 -82
- package/dist/index-CA_9DXWd.js +0 -5
- package/dist/index-CmylnDrF.js +0 -14
- package/dist/index-DUMgwAbO.js +0 -26
- package/dist/index-DpQYiwGu.js +0 -5
- package/dist/index-Dy8ZUIYs.js +0 -5
- package/dist/index-JPf5Yzg6.js +0 -17
- package/dist/index-OBZtKZuT.mjs +0 -1021
- package/dist/index-SsXlDjK4.mjs +0 -122
- package/dist/index-TKLFHcRp.js +0 -18
- package/dist/index-TnyKqJHo.mjs +0 -61
- package/dist/index-Yr95Cb7Z.mjs +0 -54
- package/dist/index-h9-U5wxq.mjs +0 -209
- package/dist/index-qCiUU4sZ.js +0 -9
- package/dist/index-qe0nJwzl.js +0 -15
- package/dist/styles--Elze-LV.js +0 -3
- package/dist/styles-3pR4Xdvy.js +0 -33
- package/dist/styles-59h91S9m.mjs +0 -65
- package/dist/styles-BCwLWpC3.mjs +0 -126
- package/dist/styles-BJ7-0I5X.mjs +0 -74
- package/dist/styles-BKObp9bh.mjs +0 -76
- package/dist/styles-BWVdbvFu.js +0 -5
- package/dist/styles-Bl-CstrT.js +0 -5
- package/dist/styles-Bn42XCW5.js +0 -7
- package/dist/styles-C2CoGJl7.js +0 -33
- package/dist/styles-CNzziAXG.js +0 -5
- package/dist/styles-CdD9waPD.js +0 -29
- package/dist/styles-CnKTwnFk.mjs +0 -110
- package/dist/styles-D4R-eerv.mjs +0 -77
- package/dist/styles-DNIIhyRC.mjs +0 -144
- package/dist/styles-DV8yOaqV.mjs +0 -131
- package/dist/styles-DYoftbd3.js +0 -42
- package/dist/styles-DlmKLhPh.js +0 -7
- package/dist/styles-be8gOdgy.mjs +0 -106
- package/dist/use-carousel-64dKFW4E.js +0 -1
- package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
- package/dist/use-click-outside-BqkLISED.js +0 -1
- package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
- package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
- package/dist/use-cloudinary-image-YMMafagv.js +0 -1
- package/dist/use-modal-CNbLSSQb.mjs +0 -14
- package/dist/use-modal-_bYY6M_n.js +0 -1
- package/dist/use-search-75ip5xR-.mjs +0 -12
- package/dist/use-search-DeL4UDMh.js +0 -1
- package/dist/utils-C2whpEd3.js +0 -1
- package/dist/utils-Da0qL35u.mjs +0 -4
|
@@ -1,4 +1,563 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("lodash"),n=require("react"),r=require("../../_commonjsHelpers-C37NGDzP.js"),o=require("react-dom");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const s=i(n),a=i(o);function l(e){return t=>typeof t===e}var c=l("function"),u=e=>"RegExp"===Object.prototype.toString.call(e).slice(8,-1),p=e=>!f(e)&&!(e=>null===e)(e)&&(c(e)||"object"==typeof e),f=l("undefined");function d(e,t){if(e===t)return!0;if(e&&p(e)&&t&&p(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;0!=r--;)if(!d(e[r],t[r]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!d(n[1],t.get(n[0])))return!1;return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let o=e.byteLength;for(;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}(e,t);if(u(e)&&u(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e=n.length;0!=e--;)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let o=n.length;0!=o--;){const r=n[o];if(!("_owner"===r&&e.$$typeof||d(e[r],t[r])))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}var h=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],y=["bigint","boolean","null","number","string","symbol","undefined"];function m(e){const t=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(t)?"HTMLElement":(n=t,h.includes(n)?t:void 0);var n}function b(e){return t=>m(t)===e}function g(e){return t=>typeof t===e}var v=["innerHTML","ownerDocument","style","attributes","nodeValue"];function w(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(w.array(e))return"Array";if(w.plainFunction(e))return"Function";return m(e)||"Object"}w.array=Array.isArray,w.arrayOf=(e,t)=>!(!w.array(e)&&!w.function(t))&&e.every((e=>t(e))),w.asyncGeneratorFunction=e=>"AsyncGeneratorFunction"===m(e),w.asyncFunction=b("AsyncFunction"),w.bigint=g("bigint"),w.boolean=e=>!0===e||!1===e,w.date=b("Date"),w.defined=e=>!w.undefined(e),w.domElement=e=>w.object(e)&&!w.plainObject(e)&&1===e.nodeType&&w.string(e.nodeName)&&v.every((t=>t in e)),w.empty=e=>w.string(e)&&0===e.length||w.array(e)&&0===e.length||w.object(e)&&!w.map(e)&&!w.set(e)&&0===Object.keys(e).length||w.set(e)&&0===e.size||w.map(e)&&0===e.size,w.error=b("Error"),w.function=g("function"),w.generator=e=>w.iterable(e)&&w.function(e.next)&&w.function(e.throw),w.generatorFunction=b("GeneratorFunction"),w.instanceOf=(e,t)=>!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype,w.iterable=e=>!w.nullOrUndefined(e)&&w.function(e[Symbol.iterator]),w.map=b("Map"),w.nan=e=>Number.isNaN(e),w.null=e=>null===e,w.nullOrUndefined=e=>w.null(e)||w.undefined(e),w.number=e=>g("number")(e)&&!w.nan(e),w.numericString=e=>w.string(e)&&e.length>0&&!Number.isNaN(Number(e)),w.object=e=>!w.nullOrUndefined(e)&&(w.function(e)||"object"==typeof e),w.oneOf=(e,t)=>!!w.array(e)&&e.indexOf(t)>-1,w.plainFunction=b("Function"),w.plainObject=e=>{if("Object"!==m(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},w.primitive=e=>{return w.null(e)||(t=typeof e,y.includes(t));var t},w.promise=b("Promise"),w.propertyOf=(e,t,n)=>{if(!w.object(e)||!t)return!1;const r=e[t];return w.function(n)?n(r):w.defined(r)},w.regexp=b("RegExp"),w.set=b("Set"),w.string=g("string"),w.symbol=g("symbol"),w.undefined=g("undefined"),w.weakMap=b("WeakMap"),w.weakSet=b("WeakSet");var O,E,S=w;function x(e,t,n){const{actual:r,key:o,previous:i,type:s}=n,a=R(e,o),l=R(t,o);let c=[a,l].every(S.number)&&("increased"===s?a<l:a>l);return S.undefined(r)||(c=c&&l===r),S.undefined(i)||(c=c&&a===i),c}function T(e,t,n){const{key:r,type:o,value:i}=n,s=R(e,r),a=R(t,r),l="added"===o?s:a,c="added"===o?a:s;return S.nullOrUndefined(i)?[s,a].every(S.array)?!c.every(j(l)):[s,a].every(S.plainObject)?(u=Object.keys(l),Object.keys(c).some((e=>!u.includes(e)))):![s,a].every((e=>S.primitive(e)&&S.defined(e)))&&("added"===o?!S.defined(s)&&S.defined(a):S.defined(s)&&!S.defined(a)):S.defined(l)?!(!S.array(l)&&!S.plainObject(l))&&function(e,t,n){return!!I(e,t)&&([e,t].every(S.array)?!e.some(N(n))&&t.some(N(n)):[e,t].every(S.plainObject)?!Object.entries(e).some(P(n))&&Object.entries(t).some(P(n)):t===n)}(l,c,i):d(c,i);var u}function k(e,t,{key:n}={}){let r=R(e,n),o=R(t,n);if(!I(r,o))throw new TypeError("Inputs have different types");if(!function(...e){return e.every((e=>S.string(e)||S.array(e)||S.plainObject(e)))}(r,o))throw new TypeError("Inputs don't have length");return[r,o].every(S.plainObject)&&(r=Object.keys(r),o=Object.keys(o)),[r,o]}function P(e){return([t,n])=>S.array(e)?d(e,n)||e.some((e=>d(e,n)||S.array(n)&&j(n)(e))):S.plainObject(e)&&e[t]?!!e[t]&&d(e[t],n):d(e,n)}function N(e){return t=>S.array(e)?e.some((e=>d(e,t)||S.array(t)&&j(t)(e))):d(e,t)}function C(e,t){return S.array(e)?e.some((e=>d(e,t))):d(e,t)}function j(e){return t=>e.some((e=>d(e,t)))}function I(...e){return e.every(S.array)||e.every(S.number)||e.every(S.plainObject)||e.every(S.string)}function R(e,t){return S.plainObject(e)||S.array(e)?S.string(t)?t.split(".").reduce(((e,t)=>e&&e[t]),e):S.number(t)?e[t]:e:e}function L(e,t){if([e,t].some(S.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every((e=>S.plainObject(e)||S.array(e))))throw new Error("Expected plain objects or array");return{added:(n,r)=>{try{return T(e,t,{key:n,type:"added",value:r})}catch{return!1}},changed:(n,r,o)=>{try{const i=R(e,n),s=R(t,n),a=S.defined(r),l=S.defined(o);if(a||l){const e=l?C(o,i):!C(r,i),t=C(r,s);return e&&t}return[i,s].every(S.array)||[i,s].every(S.plainObject)?!d(i,s):i!==s}catch{return!1}},changedFrom:(n,r,o)=>{if(!S.defined(n))return!1;try{const i=R(e,n),s=R(t,n),a=S.defined(o);return C(r,i)&&(a?C(o,s):!a)}catch{return!1}},decreased:(n,r,o)=>{if(!S.defined(n))return!1;try{return x(e,t,{key:n,actual:r,previous:o,type:"decreased"})}catch{return!1}},emptied:n=>{try{const[r,o]=k(e,t,{key:n});return!!r.length&&!o.length}catch{return!1}},filled:n=>{try{const[r,o]=k(e,t,{key:n});return!r.length&&!!o.length}catch{return!1}},increased:(n,r,o)=>{if(!S.defined(n))return!1;try{return x(e,t,{key:n,actual:r,previous:o,type:"increased"})}catch{return!1}},removed:(n,r)=>{try{return T(e,t,{key:n,type:"removed",value:r})}catch{return!1}}}}var A=function(){if(E)return O;E=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;function o(o){return function(a,l,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=s);var p=r(),f=a[o],d=c.ease||i,h=isNaN(c.duration)?350:+c.duration,y=!1;return f===l?u(e,a[o]):requestAnimationFrame((function e(i){if(y)return u(t,a[o]);var s=r(),c=n(1,(s-p)/h),m=d(c);a[o]=m*(l-f)+f,c<1?requestAnimationFrame(e):requestAnimationFrame((function(){u(null,a[o])}))})),function(){y=!0}}}function i(e){return.5*(1-Math.cos(Math.PI*e))}function s(){}return O={left:o("scrollLeft"),top:o("scrollTop")}}();const M=r.getDefaultExportFromCjs(A);var D,F,_,B,W={exports:{}},z=(D||(D=1,_=W.exports,B=function(){function e(e){var t=getComputedStyle(e,null).getPropertyValue("overflow");return t.indexOf("scroll")>-1||t.indexOf("auto")>-1}return function(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var n=t.parentNode;n.parentNode;){if(e(n))return n;n=n.parentNode}return document.scrollingElement||document.documentElement}}},(F=W).exports?F.exports=B():_.Scrollparent=B()),W.exports);const H=r.getDefaultExportFromCjs(z);var U,$,V=function(){if($)return U;$=1;var e=function(e,n){return e+t(n)},t=function(n){return null===n||"boolean"==typeof n||void 0===n?"":"number"==typeof n?n.toString():"string"==typeof n?n:Array.isArray(n)?n.reduce(e,""):(r=n,Object.prototype.hasOwnProperty.call(r,"props")&&Object.prototype.hasOwnProperty.call(n.props,"children")?t(n.props.children):"");var r};return t.default=t,U=t}();const q=r.getDefaultExportFromCjs(V);var G,Y,K=function(){if(Y)return G;Y=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&(n=e,!("[object RegExp]"===(r=Object.prototype.toString.call(n))||"[object Date]"===r||n.$$typeof===t));var n,r},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]));var t}function i(e,t){try{return t in e}catch(n){return!1}}function s(t,a,l){(l=l||{}).arrayMerge=l.arrayMerge||r,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(a);return c===Array.isArray(t)?c?l.arrayMerge(t,a,l):function(e,t,r){var a={};return r.isMergeableObject(e)&&o(e).forEach((function(t){a[t]=n(e[t],r)})),o(t).forEach((function(o){var l,c;i(l=e,c=o)&&(!Object.hasOwnProperty.call(l,c)||!Object.propertyIsEnumerable.call(l,c))||(i(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,r)(e[o],t[o],r):a[o]=n(t[o],r))})),a}(t,a,l):n(a,l)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})},G=s}();const J=r.getDefaultExportFromCjs(K);var X,Z,Q,ee,te,ne,re,oe,ie,se,ae,le,ce,ue,pe,fe,de={exports:{}},he={exports:{}},ye={},me={};
|
|
1
|
+
import { jsx as mn } from "react/jsx-runtime";
|
|
2
|
+
import { isUndefined as vn } from "lodash";
|
|
3
|
+
import * as W from "react";
|
|
4
|
+
import _, { isValidElement as _r, cloneElement as Bt, useState as Ut, useCallback as gn } from "react";
|
|
5
|
+
import { g as Fe } from "../../_commonjsHelpers-C6fGbg64.mjs";
|
|
6
|
+
import * as pt from "react-dom";
|
|
7
|
+
import Qe, { createPortal as bn } from "react-dom";
|
|
8
|
+
function Ar(e) {
|
|
9
|
+
return (t) => typeof t === e;
|
|
10
|
+
}
|
|
11
|
+
var En = Ar("function"), On = (e) => e === null, zt = (e) => Object.prototype.toString.call(e).slice(8, -1) === "RegExp", qt = (e) => !wn(e) && !On(e) && (En(e) || typeof e == "object"), wn = Ar("undefined");
|
|
12
|
+
function Sn(e, t) {
|
|
13
|
+
const { length: r } = e;
|
|
14
|
+
if (r !== t.length)
|
|
15
|
+
return !1;
|
|
16
|
+
for (let n = r; n-- !== 0; )
|
|
17
|
+
if (!X(e[n], t[n]))
|
|
18
|
+
return !1;
|
|
19
|
+
return !0;
|
|
20
|
+
}
|
|
21
|
+
function Tn(e, t) {
|
|
22
|
+
if (e.byteLength !== t.byteLength)
|
|
23
|
+
return !1;
|
|
24
|
+
const r = new DataView(e.buffer), n = new DataView(t.buffer);
|
|
25
|
+
let o = e.byteLength;
|
|
26
|
+
for (; o--; )
|
|
27
|
+
if (r.getUint8(o) !== n.getUint8(o))
|
|
28
|
+
return !1;
|
|
29
|
+
return !0;
|
|
30
|
+
}
|
|
31
|
+
function Pn(e, t) {
|
|
32
|
+
if (e.size !== t.size)
|
|
33
|
+
return !1;
|
|
34
|
+
for (const r of e.entries())
|
|
35
|
+
if (!t.has(r[0]))
|
|
36
|
+
return !1;
|
|
37
|
+
for (const r of e.entries())
|
|
38
|
+
if (!X(r[1], t.get(r[0])))
|
|
39
|
+
return !1;
|
|
40
|
+
return !0;
|
|
41
|
+
}
|
|
42
|
+
function xn(e, t) {
|
|
43
|
+
if (e.size !== t.size)
|
|
44
|
+
return !1;
|
|
45
|
+
for (const r of e.entries())
|
|
46
|
+
if (!t.has(r[0]))
|
|
47
|
+
return !1;
|
|
48
|
+
return !0;
|
|
49
|
+
}
|
|
50
|
+
function X(e, t) {
|
|
51
|
+
if (e === t)
|
|
52
|
+
return !0;
|
|
53
|
+
if (e && qt(e) && t && qt(t)) {
|
|
54
|
+
if (e.constructor !== t.constructor)
|
|
55
|
+
return !1;
|
|
56
|
+
if (Array.isArray(e) && Array.isArray(t))
|
|
57
|
+
return Sn(e, t);
|
|
58
|
+
if (e instanceof Map && t instanceof Map)
|
|
59
|
+
return Pn(e, t);
|
|
60
|
+
if (e instanceof Set && t instanceof Set)
|
|
61
|
+
return xn(e, t);
|
|
62
|
+
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t))
|
|
63
|
+
return Tn(e, t);
|
|
64
|
+
if (zt(e) && zt(t))
|
|
65
|
+
return e.source === t.source && e.flags === t.flags;
|
|
66
|
+
if (e.valueOf !== Object.prototype.valueOf)
|
|
67
|
+
return e.valueOf() === t.valueOf();
|
|
68
|
+
if (e.toString !== Object.prototype.toString)
|
|
69
|
+
return e.toString() === t.toString();
|
|
70
|
+
const r = Object.keys(e), n = Object.keys(t);
|
|
71
|
+
if (r.length !== n.length)
|
|
72
|
+
return !1;
|
|
73
|
+
for (let o = r.length; o-- !== 0; )
|
|
74
|
+
if (!Object.prototype.hasOwnProperty.call(t, r[o]))
|
|
75
|
+
return !1;
|
|
76
|
+
for (let o = r.length; o-- !== 0; ) {
|
|
77
|
+
const i = r[o];
|
|
78
|
+
if (!(i === "_owner" && e.$$typeof) && !X(e[i], t[i]))
|
|
79
|
+
return !1;
|
|
80
|
+
}
|
|
81
|
+
return !0;
|
|
82
|
+
}
|
|
83
|
+
return Number.isNaN(e) && Number.isNaN(t) ? !0 : e === t;
|
|
84
|
+
}
|
|
85
|
+
var Cn = [
|
|
86
|
+
"Array",
|
|
87
|
+
"ArrayBuffer",
|
|
88
|
+
"AsyncFunction",
|
|
89
|
+
"AsyncGenerator",
|
|
90
|
+
"AsyncGeneratorFunction",
|
|
91
|
+
"Date",
|
|
92
|
+
"Error",
|
|
93
|
+
"Function",
|
|
94
|
+
"Generator",
|
|
95
|
+
"GeneratorFunction",
|
|
96
|
+
"HTMLElement",
|
|
97
|
+
"Map",
|
|
98
|
+
"Object",
|
|
99
|
+
"Promise",
|
|
100
|
+
"RegExp",
|
|
101
|
+
"Set",
|
|
102
|
+
"WeakMap",
|
|
103
|
+
"WeakSet"
|
|
104
|
+
], Rn = [
|
|
105
|
+
"bigint",
|
|
106
|
+
"boolean",
|
|
107
|
+
"null",
|
|
108
|
+
"number",
|
|
109
|
+
"string",
|
|
110
|
+
"symbol",
|
|
111
|
+
"undefined"
|
|
112
|
+
];
|
|
113
|
+
function st(e) {
|
|
114
|
+
const t = Object.prototype.toString.call(e).slice(8, -1);
|
|
115
|
+
if (/HTML\w+Element/.test(t))
|
|
116
|
+
return "HTMLElement";
|
|
117
|
+
if (Nn(t))
|
|
118
|
+
return t;
|
|
119
|
+
}
|
|
120
|
+
function oe(e) {
|
|
121
|
+
return (t) => st(t) === e;
|
|
122
|
+
}
|
|
123
|
+
function Nn(e) {
|
|
124
|
+
return Cn.includes(e);
|
|
125
|
+
}
|
|
126
|
+
function Ce(e) {
|
|
127
|
+
return (t) => typeof t === e;
|
|
128
|
+
}
|
|
129
|
+
function In(e) {
|
|
130
|
+
return Rn.includes(e);
|
|
131
|
+
}
|
|
132
|
+
var _n = [
|
|
133
|
+
"innerHTML",
|
|
134
|
+
"ownerDocument",
|
|
135
|
+
"style",
|
|
136
|
+
"attributes",
|
|
137
|
+
"nodeValue"
|
|
138
|
+
];
|
|
139
|
+
function P(e) {
|
|
140
|
+
if (e === null)
|
|
141
|
+
return "null";
|
|
142
|
+
switch (typeof e) {
|
|
143
|
+
case "bigint":
|
|
144
|
+
return "bigint";
|
|
145
|
+
case "boolean":
|
|
146
|
+
return "boolean";
|
|
147
|
+
case "number":
|
|
148
|
+
return "number";
|
|
149
|
+
case "string":
|
|
150
|
+
return "string";
|
|
151
|
+
case "symbol":
|
|
152
|
+
return "symbol";
|
|
153
|
+
case "undefined":
|
|
154
|
+
return "undefined";
|
|
155
|
+
}
|
|
156
|
+
if (P.array(e))
|
|
157
|
+
return "Array";
|
|
158
|
+
if (P.plainFunction(e))
|
|
159
|
+
return "Function";
|
|
160
|
+
const t = st(e);
|
|
161
|
+
return t || "Object";
|
|
162
|
+
}
|
|
163
|
+
P.array = Array.isArray;
|
|
164
|
+
P.arrayOf = (e, t) => !P.array(e) && !P.function(t) ? !1 : e.every((r) => t(r));
|
|
165
|
+
P.asyncGeneratorFunction = (e) => st(e) === "AsyncGeneratorFunction";
|
|
166
|
+
P.asyncFunction = oe("AsyncFunction");
|
|
167
|
+
P.bigint = Ce("bigint");
|
|
168
|
+
P.boolean = (e) => e === !0 || e === !1;
|
|
169
|
+
P.date = oe("Date");
|
|
170
|
+
P.defined = (e) => !P.undefined(e);
|
|
171
|
+
P.domElement = (e) => P.object(e) && !P.plainObject(e) && e.nodeType === 1 && P.string(e.nodeName) && _n.every((t) => t in e);
|
|
172
|
+
P.empty = (e) => P.string(e) && e.length === 0 || P.array(e) && e.length === 0 || P.object(e) && !P.map(e) && !P.set(e) && Object.keys(e).length === 0 || P.set(e) && e.size === 0 || P.map(e) && e.size === 0;
|
|
173
|
+
P.error = oe("Error");
|
|
174
|
+
P.function = Ce("function");
|
|
175
|
+
P.generator = (e) => P.iterable(e) && P.function(e.next) && P.function(e.throw);
|
|
176
|
+
P.generatorFunction = oe("GeneratorFunction");
|
|
177
|
+
P.instanceOf = (e, t) => !e || !t ? !1 : Object.getPrototypeOf(e) === t.prototype;
|
|
178
|
+
P.iterable = (e) => !P.nullOrUndefined(e) && P.function(e[Symbol.iterator]);
|
|
179
|
+
P.map = oe("Map");
|
|
180
|
+
P.nan = (e) => Number.isNaN(e);
|
|
181
|
+
P.null = (e) => e === null;
|
|
182
|
+
P.nullOrUndefined = (e) => P.null(e) || P.undefined(e);
|
|
183
|
+
P.number = (e) => Ce("number")(e) && !P.nan(e);
|
|
184
|
+
P.numericString = (e) => P.string(e) && e.length > 0 && !Number.isNaN(Number(e));
|
|
185
|
+
P.object = (e) => !P.nullOrUndefined(e) && (P.function(e) || typeof e == "object");
|
|
186
|
+
P.oneOf = (e, t) => P.array(e) ? e.indexOf(t) > -1 : !1;
|
|
187
|
+
P.plainFunction = oe("Function");
|
|
188
|
+
P.plainObject = (e) => {
|
|
189
|
+
if (st(e) !== "Object")
|
|
190
|
+
return !1;
|
|
191
|
+
const t = Object.getPrototypeOf(e);
|
|
192
|
+
return t === null || t === Object.getPrototypeOf({});
|
|
193
|
+
};
|
|
194
|
+
P.primitive = (e) => P.null(e) || In(typeof e);
|
|
195
|
+
P.promise = oe("Promise");
|
|
196
|
+
P.propertyOf = (e, t, r) => {
|
|
197
|
+
if (!P.object(e) || !t)
|
|
198
|
+
return !1;
|
|
199
|
+
const n = e[t];
|
|
200
|
+
return P.function(r) ? r(n) : P.defined(n);
|
|
201
|
+
};
|
|
202
|
+
P.regexp = oe("RegExp");
|
|
203
|
+
P.set = oe("Set");
|
|
204
|
+
P.string = Ce("string");
|
|
205
|
+
P.symbol = Ce("symbol");
|
|
206
|
+
P.undefined = Ce("undefined");
|
|
207
|
+
P.weakMap = oe("WeakMap");
|
|
208
|
+
P.weakSet = oe("WeakSet");
|
|
209
|
+
var x = P;
|
|
210
|
+
function An(...e) {
|
|
211
|
+
return e.every((t) => x.string(t) || x.array(t) || x.plainObject(t));
|
|
212
|
+
}
|
|
213
|
+
function kn(e, t, r) {
|
|
214
|
+
return kr(e, t) ? [e, t].every(x.array) ? !e.some(Kt(r)) && t.some(Kt(r)) : [e, t].every(x.plainObject) ? !Object.entries(e).some(Yt(r)) && Object.entries(t).some(Yt(r)) : t === r : !1;
|
|
215
|
+
}
|
|
216
|
+
function Ht(e, t, r) {
|
|
217
|
+
const { actual: n, key: o, previous: i, type: s } = r, a = fe(e, o), l = fe(t, o);
|
|
218
|
+
let u = [a, l].every(x.number) && (s === "increased" ? a < l : a > l);
|
|
219
|
+
return x.undefined(n) || (u = u && l === n), x.undefined(i) || (u = u && a === i), u;
|
|
220
|
+
}
|
|
221
|
+
function Vt(e, t, r) {
|
|
222
|
+
const { key: n, type: o, value: i } = r, s = fe(e, n), a = fe(t, n), l = o === "added" ? s : a, u = o === "added" ? a : s;
|
|
223
|
+
if (!x.nullOrUndefined(i)) {
|
|
224
|
+
if (x.defined(l)) {
|
|
225
|
+
if (x.array(l) || x.plainObject(l))
|
|
226
|
+
return kn(l, u, i);
|
|
227
|
+
} else
|
|
228
|
+
return X(u, i);
|
|
229
|
+
return !1;
|
|
230
|
+
}
|
|
231
|
+
return [s, a].every(x.array) ? !u.every(_t(l)) : [s, a].every(x.plainObject) ? jn(Object.keys(l), Object.keys(u)) : ![s, a].every((f) => x.primitive(f) && x.defined(f)) && (o === "added" ? !x.defined(s) && x.defined(a) : x.defined(s) && !x.defined(a));
|
|
232
|
+
}
|
|
233
|
+
function Gt(e, t, { key: r } = {}) {
|
|
234
|
+
let n = fe(e, r), o = fe(t, r);
|
|
235
|
+
if (!kr(n, o))
|
|
236
|
+
throw new TypeError("Inputs have different types");
|
|
237
|
+
if (!An(n, o))
|
|
238
|
+
throw new TypeError("Inputs don't have length");
|
|
239
|
+
return [n, o].every(x.plainObject) && (n = Object.keys(n), o = Object.keys(o)), [n, o];
|
|
240
|
+
}
|
|
241
|
+
function Yt(e) {
|
|
242
|
+
return ([t, r]) => x.array(e) ? X(e, r) || e.some((n) => X(n, r) || x.array(r) && _t(r)(n)) : x.plainObject(e) && e[t] ? !!e[t] && X(e[t], r) : X(e, r);
|
|
243
|
+
}
|
|
244
|
+
function jn(e, t) {
|
|
245
|
+
return t.some((r) => !e.includes(r));
|
|
246
|
+
}
|
|
247
|
+
function Kt(e) {
|
|
248
|
+
return (t) => x.array(e) ? e.some((r) => X(r, t) || x.array(t) && _t(t)(r)) : X(e, t);
|
|
249
|
+
}
|
|
250
|
+
function Ie(e, t) {
|
|
251
|
+
return x.array(e) ? e.some((r) => X(r, t)) : X(e, t);
|
|
252
|
+
}
|
|
253
|
+
function _t(e) {
|
|
254
|
+
return (t) => e.some((r) => X(r, t));
|
|
255
|
+
}
|
|
256
|
+
function kr(...e) {
|
|
257
|
+
return e.every(x.array) || e.every(x.number) || e.every(x.plainObject) || e.every(x.string);
|
|
258
|
+
}
|
|
259
|
+
function fe(e, t) {
|
|
260
|
+
return x.plainObject(e) || x.array(e) ? x.string(t) ? t.split(".").reduce((n, o) => n && n[o], e) : x.number(t) ? e[t] : e : e;
|
|
261
|
+
}
|
|
262
|
+
function rt(e, t) {
|
|
263
|
+
if ([e, t].some(x.nullOrUndefined))
|
|
264
|
+
throw new Error("Missing required parameters");
|
|
265
|
+
if (![e, t].every((f) => x.plainObject(f) || x.array(f)))
|
|
266
|
+
throw new Error("Expected plain objects or array");
|
|
267
|
+
return { added: (f, c) => {
|
|
268
|
+
try {
|
|
269
|
+
return Vt(e, t, { key: f, type: "added", value: c });
|
|
270
|
+
} catch {
|
|
271
|
+
return !1;
|
|
272
|
+
}
|
|
273
|
+
}, changed: (f, c, p) => {
|
|
274
|
+
try {
|
|
275
|
+
const d = fe(e, f), h = fe(t, f), m = x.defined(c), w = x.defined(p);
|
|
276
|
+
if (m || w) {
|
|
277
|
+
const g = w ? Ie(p, d) : !Ie(c, d), v = Ie(c, h);
|
|
278
|
+
return g && v;
|
|
279
|
+
}
|
|
280
|
+
return [d, h].every(x.array) || [d, h].every(x.plainObject) ? !X(d, h) : d !== h;
|
|
281
|
+
} catch {
|
|
282
|
+
return !1;
|
|
283
|
+
}
|
|
284
|
+
}, changedFrom: (f, c, p) => {
|
|
285
|
+
if (!x.defined(f))
|
|
286
|
+
return !1;
|
|
287
|
+
try {
|
|
288
|
+
const d = fe(e, f), h = fe(t, f), m = x.defined(p);
|
|
289
|
+
return Ie(c, d) && (m ? Ie(p, h) : !m);
|
|
290
|
+
} catch {
|
|
291
|
+
return !1;
|
|
292
|
+
}
|
|
293
|
+
}, decreased: (f, c, p) => {
|
|
294
|
+
if (!x.defined(f))
|
|
295
|
+
return !1;
|
|
296
|
+
try {
|
|
297
|
+
return Ht(e, t, { key: f, actual: c, previous: p, type: "decreased" });
|
|
298
|
+
} catch {
|
|
299
|
+
return !1;
|
|
300
|
+
}
|
|
301
|
+
}, emptied: (f) => {
|
|
302
|
+
try {
|
|
303
|
+
const [c, p] = Gt(e, t, { key: f });
|
|
304
|
+
return !!c.length && !p.length;
|
|
305
|
+
} catch {
|
|
306
|
+
return !1;
|
|
307
|
+
}
|
|
308
|
+
}, filled: (f) => {
|
|
309
|
+
try {
|
|
310
|
+
const [c, p] = Gt(e, t, { key: f });
|
|
311
|
+
return !c.length && !!p.length;
|
|
312
|
+
} catch {
|
|
313
|
+
return !1;
|
|
314
|
+
}
|
|
315
|
+
}, increased: (f, c, p) => {
|
|
316
|
+
if (!x.defined(f))
|
|
317
|
+
return !1;
|
|
318
|
+
try {
|
|
319
|
+
return Ht(e, t, { key: f, actual: c, previous: p, type: "increased" });
|
|
320
|
+
} catch {
|
|
321
|
+
return !1;
|
|
322
|
+
}
|
|
323
|
+
}, removed: (f, c) => {
|
|
324
|
+
try {
|
|
325
|
+
return Vt(e, t, { key: f, type: "removed", value: c });
|
|
326
|
+
} catch {
|
|
327
|
+
return !1;
|
|
328
|
+
}
|
|
329
|
+
} };
|
|
330
|
+
}
|
|
331
|
+
var dt, Jt;
|
|
332
|
+
function Ln() {
|
|
333
|
+
if (Jt) return dt;
|
|
334
|
+
Jt = 1;
|
|
335
|
+
var e = new Error("Element already at target scroll position"), t = new Error("Scroll cancelled"), r = Math.min, n = Date.now;
|
|
336
|
+
dt = {
|
|
337
|
+
left: o("scrollLeft"),
|
|
338
|
+
top: o("scrollTop")
|
|
339
|
+
};
|
|
340
|
+
function o(a) {
|
|
341
|
+
return function(u, f, c, p) {
|
|
342
|
+
c = c || {}, typeof c == "function" && (p = c, c = {}), typeof p != "function" && (p = s);
|
|
343
|
+
var d = n(), h = u[a], m = c.ease || i, w = isNaN(c.duration) ? 350 : +c.duration, g = !1;
|
|
344
|
+
return h === f ? p(e, u[a]) : requestAnimationFrame(S), v;
|
|
345
|
+
function v() {
|
|
346
|
+
g = !0;
|
|
347
|
+
}
|
|
348
|
+
function S(N) {
|
|
349
|
+
if (g) return p(t, u[a]);
|
|
350
|
+
var b = n(), j = r(1, (b - d) / w), K = m(j);
|
|
351
|
+
u[a] = K * (f - h) + h, j < 1 ? requestAnimationFrame(S) : requestAnimationFrame(function() {
|
|
352
|
+
p(null, u[a]);
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
function i(a) {
|
|
358
|
+
return 0.5 * (1 - Math.cos(Math.PI * a));
|
|
359
|
+
}
|
|
360
|
+
function s() {
|
|
361
|
+
}
|
|
362
|
+
return dt;
|
|
363
|
+
}
|
|
364
|
+
var Mn = Ln();
|
|
365
|
+
const Fn = /* @__PURE__ */ Fe(Mn);
|
|
366
|
+
var et = { exports: {} }, Dn = et.exports, Xt;
|
|
367
|
+
function $n() {
|
|
368
|
+
return Xt || (Xt = 1, function(e) {
|
|
369
|
+
(function(t, r) {
|
|
370
|
+
e.exports ? e.exports = r() : t.Scrollparent = r();
|
|
371
|
+
})(Dn, function() {
|
|
372
|
+
function t(n) {
|
|
373
|
+
var o = getComputedStyle(n, null).getPropertyValue("overflow");
|
|
374
|
+
return o.indexOf("scroll") > -1 || o.indexOf("auto") > -1;
|
|
375
|
+
}
|
|
376
|
+
function r(n) {
|
|
377
|
+
if (n instanceof HTMLElement || n instanceof SVGElement) {
|
|
378
|
+
for (var o = n.parentNode; o.parentNode; ) {
|
|
379
|
+
if (t(o))
|
|
380
|
+
return o;
|
|
381
|
+
o = o.parentNode;
|
|
382
|
+
}
|
|
383
|
+
return document.scrollingElement || document.documentElement;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return r;
|
|
387
|
+
});
|
|
388
|
+
}(et)), et.exports;
|
|
389
|
+
}
|
|
390
|
+
var Wn = $n();
|
|
391
|
+
const jr = /* @__PURE__ */ Fe(Wn);
|
|
392
|
+
var ht, Zt;
|
|
393
|
+
function Bn() {
|
|
394
|
+
if (Zt) return ht;
|
|
395
|
+
Zt = 1;
|
|
396
|
+
var e = function(n) {
|
|
397
|
+
return Object.prototype.hasOwnProperty.call(n, "props");
|
|
398
|
+
}, t = function(n, o) {
|
|
399
|
+
return n + r(o);
|
|
400
|
+
}, r = function(n) {
|
|
401
|
+
return n === null || typeof n == "boolean" || typeof n > "u" ? "" : typeof n == "number" ? n.toString() : typeof n == "string" ? n : Array.isArray(n) ? n.reduce(t, "") : e(n) && Object.prototype.hasOwnProperty.call(n.props, "children") ? r(n.props.children) : "";
|
|
402
|
+
};
|
|
403
|
+
return r.default = r, ht = r, ht;
|
|
404
|
+
}
|
|
405
|
+
var Un = Bn();
|
|
406
|
+
const Qt = /* @__PURE__ */ Fe(Un);
|
|
407
|
+
var yt, er;
|
|
408
|
+
function zn() {
|
|
409
|
+
if (er) return yt;
|
|
410
|
+
er = 1;
|
|
411
|
+
var e = function(v) {
|
|
412
|
+
return t(v) && !r(v);
|
|
413
|
+
};
|
|
414
|
+
function t(g) {
|
|
415
|
+
return !!g && typeof g == "object";
|
|
416
|
+
}
|
|
417
|
+
function r(g) {
|
|
418
|
+
var v = Object.prototype.toString.call(g);
|
|
419
|
+
return v === "[object RegExp]" || v === "[object Date]" || i(g);
|
|
420
|
+
}
|
|
421
|
+
var n = typeof Symbol == "function" && Symbol.for, o = n ? Symbol.for("react.element") : 60103;
|
|
422
|
+
function i(g) {
|
|
423
|
+
return g.$$typeof === o;
|
|
424
|
+
}
|
|
425
|
+
function s(g) {
|
|
426
|
+
return Array.isArray(g) ? [] : {};
|
|
427
|
+
}
|
|
428
|
+
function a(g, v) {
|
|
429
|
+
return v.clone !== !1 && v.isMergeableObject(g) ? m(s(g), g, v) : g;
|
|
430
|
+
}
|
|
431
|
+
function l(g, v, S) {
|
|
432
|
+
return g.concat(v).map(function(N) {
|
|
433
|
+
return a(N, S);
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
function u(g, v) {
|
|
437
|
+
if (!v.customMerge)
|
|
438
|
+
return m;
|
|
439
|
+
var S = v.customMerge(g);
|
|
440
|
+
return typeof S == "function" ? S : m;
|
|
441
|
+
}
|
|
442
|
+
function f(g) {
|
|
443
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(g).filter(function(v) {
|
|
444
|
+
return Object.propertyIsEnumerable.call(g, v);
|
|
445
|
+
}) : [];
|
|
446
|
+
}
|
|
447
|
+
function c(g) {
|
|
448
|
+
return Object.keys(g).concat(f(g));
|
|
449
|
+
}
|
|
450
|
+
function p(g, v) {
|
|
451
|
+
try {
|
|
452
|
+
return v in g;
|
|
453
|
+
} catch {
|
|
454
|
+
return !1;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
function d(g, v) {
|
|
458
|
+
return p(g, v) && !(Object.hasOwnProperty.call(g, v) && Object.propertyIsEnumerable.call(g, v));
|
|
459
|
+
}
|
|
460
|
+
function h(g, v, S) {
|
|
461
|
+
var N = {};
|
|
462
|
+
return S.isMergeableObject(g) && c(g).forEach(function(b) {
|
|
463
|
+
N[b] = a(g[b], S);
|
|
464
|
+
}), c(v).forEach(function(b) {
|
|
465
|
+
d(g, b) || (p(g, b) && S.isMergeableObject(v[b]) ? N[b] = u(b, S)(g[b], v[b], S) : N[b] = a(v[b], S));
|
|
466
|
+
}), N;
|
|
467
|
+
}
|
|
468
|
+
function m(g, v, S) {
|
|
469
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || e, S.cloneUnlessOtherwiseSpecified = a;
|
|
470
|
+
var N = Array.isArray(v), b = Array.isArray(g), j = N === b;
|
|
471
|
+
return j ? N ? S.arrayMerge(g, v, S) : h(g, v, S) : a(v, S);
|
|
472
|
+
}
|
|
473
|
+
m.all = function(v, S) {
|
|
474
|
+
if (!Array.isArray(v))
|
|
475
|
+
throw new Error("first argument should be an array");
|
|
476
|
+
return v.reduce(function(N, b) {
|
|
477
|
+
return m(N, b, S);
|
|
478
|
+
}, {});
|
|
479
|
+
};
|
|
480
|
+
var w = m;
|
|
481
|
+
return yt = w, yt;
|
|
482
|
+
}
|
|
483
|
+
var qn = zn();
|
|
484
|
+
const ne = /* @__PURE__ */ Fe(qn);
|
|
485
|
+
var Je = { exports: {} }, Xe = { exports: {} }, H = {};
|
|
486
|
+
/** @license React v16.13.1
|
|
487
|
+
* react-is.production.min.js
|
|
488
|
+
*
|
|
489
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
490
|
+
*
|
|
491
|
+
* This source code is licensed under the MIT license found in the
|
|
492
|
+
* LICENSE file in the root directory of this source tree.
|
|
493
|
+
*/
|
|
494
|
+
var tr;
|
|
495
|
+
function Hn() {
|
|
496
|
+
if (tr) return H;
|
|
497
|
+
tr = 1;
|
|
498
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
499
|
+
function S(b) {
|
|
500
|
+
if (typeof b == "object" && b !== null) {
|
|
501
|
+
var j = b.$$typeof;
|
|
502
|
+
switch (j) {
|
|
503
|
+
case t:
|
|
504
|
+
switch (b = b.type, b) {
|
|
505
|
+
case l:
|
|
506
|
+
case u:
|
|
507
|
+
case n:
|
|
508
|
+
case i:
|
|
509
|
+
case o:
|
|
510
|
+
case c:
|
|
511
|
+
return b;
|
|
512
|
+
default:
|
|
513
|
+
switch (b = b && b.$$typeof, b) {
|
|
514
|
+
case a:
|
|
515
|
+
case f:
|
|
516
|
+
case h:
|
|
517
|
+
case d:
|
|
518
|
+
case s:
|
|
519
|
+
return b;
|
|
520
|
+
default:
|
|
521
|
+
return j;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
case r:
|
|
525
|
+
return j;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
function N(b) {
|
|
530
|
+
return S(b) === u;
|
|
531
|
+
}
|
|
532
|
+
return H.AsyncMode = l, H.ConcurrentMode = u, H.ContextConsumer = a, H.ContextProvider = s, H.Element = t, H.ForwardRef = f, H.Fragment = n, H.Lazy = h, H.Memo = d, H.Portal = r, H.Profiler = i, H.StrictMode = o, H.Suspense = c, H.isAsyncMode = function(b) {
|
|
533
|
+
return N(b) || S(b) === l;
|
|
534
|
+
}, H.isConcurrentMode = N, H.isContextConsumer = function(b) {
|
|
535
|
+
return S(b) === a;
|
|
536
|
+
}, H.isContextProvider = function(b) {
|
|
537
|
+
return S(b) === s;
|
|
538
|
+
}, H.isElement = function(b) {
|
|
539
|
+
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
540
|
+
}, H.isForwardRef = function(b) {
|
|
541
|
+
return S(b) === f;
|
|
542
|
+
}, H.isFragment = function(b) {
|
|
543
|
+
return S(b) === n;
|
|
544
|
+
}, H.isLazy = function(b) {
|
|
545
|
+
return S(b) === h;
|
|
546
|
+
}, H.isMemo = function(b) {
|
|
547
|
+
return S(b) === d;
|
|
548
|
+
}, H.isPortal = function(b) {
|
|
549
|
+
return S(b) === r;
|
|
550
|
+
}, H.isProfiler = function(b) {
|
|
551
|
+
return S(b) === i;
|
|
552
|
+
}, H.isStrictMode = function(b) {
|
|
553
|
+
return S(b) === o;
|
|
554
|
+
}, H.isSuspense = function(b) {
|
|
555
|
+
return S(b) === c;
|
|
556
|
+
}, H.isValidElementType = function(b) {
|
|
557
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === u || b === i || b === o || b === c || b === p || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === d || b.$$typeof === s || b.$$typeof === a || b.$$typeof === f || b.$$typeof === w || b.$$typeof === g || b.$$typeof === v || b.$$typeof === m);
|
|
558
|
+
}, H.typeOf = S, H;
|
|
559
|
+
}
|
|
560
|
+
var V = {};
|
|
2
561
|
/** @license React v16.13.1
|
|
3
562
|
* react-is.development.js
|
|
4
563
|
*
|
|
@@ -7,12 +566,585 @@
|
|
|
7
566
|
* This source code is licensed under the MIT license found in the
|
|
8
567
|
* LICENSE file in the root directory of this source tree.
|
|
9
568
|
*/
|
|
10
|
-
|
|
569
|
+
var rr;
|
|
570
|
+
function Vn() {
|
|
571
|
+
return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
572
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
573
|
+
function S(T) {
|
|
574
|
+
return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
575
|
+
T === n || T === u || T === i || T === o || T === c || T === p || typeof T == "object" && T !== null && (T.$$typeof === h || T.$$typeof === d || T.$$typeof === s || T.$$typeof === a || T.$$typeof === f || T.$$typeof === w || T.$$typeof === g || T.$$typeof === v || T.$$typeof === m);
|
|
576
|
+
}
|
|
577
|
+
function N(T) {
|
|
578
|
+
if (typeof T == "object" && T !== null) {
|
|
579
|
+
var le = T.$$typeof;
|
|
580
|
+
switch (le) {
|
|
581
|
+
case t:
|
|
582
|
+
var Ke = T.type;
|
|
583
|
+
switch (Ke) {
|
|
584
|
+
case l:
|
|
585
|
+
case u:
|
|
586
|
+
case n:
|
|
587
|
+
case i:
|
|
588
|
+
case o:
|
|
589
|
+
case c:
|
|
590
|
+
return Ke;
|
|
591
|
+
default:
|
|
592
|
+
var Wt = Ke && Ke.$$typeof;
|
|
593
|
+
switch (Wt) {
|
|
594
|
+
case a:
|
|
595
|
+
case f:
|
|
596
|
+
case h:
|
|
597
|
+
case d:
|
|
598
|
+
case s:
|
|
599
|
+
return Wt;
|
|
600
|
+
default:
|
|
601
|
+
return le;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
case r:
|
|
605
|
+
return le;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
var b = l, j = u, K = a, se = s, Ve = t, re = f, Ge = n, lt = h, ct = d, Oe = r, ut = i, ae = o, ge = c, Ye = !1;
|
|
610
|
+
function ft(T) {
|
|
611
|
+
return Ye || (Ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), E(T) || N(T) === l;
|
|
612
|
+
}
|
|
613
|
+
function E(T) {
|
|
614
|
+
return N(T) === u;
|
|
615
|
+
}
|
|
616
|
+
function R(T) {
|
|
617
|
+
return N(T) === a;
|
|
618
|
+
}
|
|
619
|
+
function D(T) {
|
|
620
|
+
return N(T) === s;
|
|
621
|
+
}
|
|
622
|
+
function M(T) {
|
|
623
|
+
return typeof T == "object" && T !== null && T.$$typeof === t;
|
|
624
|
+
}
|
|
625
|
+
function A(T) {
|
|
626
|
+
return N(T) === f;
|
|
627
|
+
}
|
|
628
|
+
function B(T) {
|
|
629
|
+
return N(T) === n;
|
|
630
|
+
}
|
|
631
|
+
function L(T) {
|
|
632
|
+
return N(T) === h;
|
|
633
|
+
}
|
|
634
|
+
function F(T) {
|
|
635
|
+
return N(T) === d;
|
|
636
|
+
}
|
|
637
|
+
function U(T) {
|
|
638
|
+
return N(T) === r;
|
|
639
|
+
}
|
|
640
|
+
function G(T) {
|
|
641
|
+
return N(T) === i;
|
|
642
|
+
}
|
|
643
|
+
function z(T) {
|
|
644
|
+
return N(T) === o;
|
|
645
|
+
}
|
|
646
|
+
function Z(T) {
|
|
647
|
+
return N(T) === c;
|
|
648
|
+
}
|
|
649
|
+
V.AsyncMode = b, V.ConcurrentMode = j, V.ContextConsumer = K, V.ContextProvider = se, V.Element = Ve, V.ForwardRef = re, V.Fragment = Ge, V.Lazy = lt, V.Memo = ct, V.Portal = Oe, V.Profiler = ut, V.StrictMode = ae, V.Suspense = ge, V.isAsyncMode = ft, V.isConcurrentMode = E, V.isContextConsumer = R, V.isContextProvider = D, V.isElement = M, V.isForwardRef = A, V.isFragment = B, V.isLazy = L, V.isMemo = F, V.isPortal = U, V.isProfiler = G, V.isStrictMode = z, V.isSuspense = Z, V.isValidElementType = S, V.typeOf = N;
|
|
650
|
+
}()), V;
|
|
651
|
+
}
|
|
652
|
+
var nr;
|
|
653
|
+
function Lr() {
|
|
654
|
+
return nr || (nr = 1, process.env.NODE_ENV === "production" ? Xe.exports = Hn() : Xe.exports = Vn()), Xe.exports;
|
|
655
|
+
}
|
|
11
656
|
/*
|
|
12
657
|
object-assign
|
|
13
658
|
(c) Sindre Sorhus
|
|
14
659
|
@license MIT
|
|
15
|
-
*/
|
|
660
|
+
*/
|
|
661
|
+
var mt, or;
|
|
662
|
+
function Gn() {
|
|
663
|
+
if (or) return mt;
|
|
664
|
+
or = 1;
|
|
665
|
+
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
666
|
+
function n(i) {
|
|
667
|
+
if (i == null)
|
|
668
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
669
|
+
return Object(i);
|
|
670
|
+
}
|
|
671
|
+
function o() {
|
|
672
|
+
try {
|
|
673
|
+
if (!Object.assign)
|
|
674
|
+
return !1;
|
|
675
|
+
var i = new String("abc");
|
|
676
|
+
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
677
|
+
return !1;
|
|
678
|
+
for (var s = {}, a = 0; a < 10; a++)
|
|
679
|
+
s["_" + String.fromCharCode(a)] = a;
|
|
680
|
+
var l = Object.getOwnPropertyNames(s).map(function(f) {
|
|
681
|
+
return s[f];
|
|
682
|
+
});
|
|
683
|
+
if (l.join("") !== "0123456789")
|
|
684
|
+
return !1;
|
|
685
|
+
var u = {};
|
|
686
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(f) {
|
|
687
|
+
u[f] = f;
|
|
688
|
+
}), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
|
|
689
|
+
} catch {
|
|
690
|
+
return !1;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
return mt = o() ? Object.assign : function(i, s) {
|
|
694
|
+
for (var a, l = n(i), u, f = 1; f < arguments.length; f++) {
|
|
695
|
+
a = Object(arguments[f]);
|
|
696
|
+
for (var c in a)
|
|
697
|
+
t.call(a, c) && (l[c] = a[c]);
|
|
698
|
+
if (e) {
|
|
699
|
+
u = e(a);
|
|
700
|
+
for (var p = 0; p < u.length; p++)
|
|
701
|
+
r.call(a, u[p]) && (l[u[p]] = a[u[p]]);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
return l;
|
|
705
|
+
}, mt;
|
|
706
|
+
}
|
|
707
|
+
var vt, ir;
|
|
708
|
+
function At() {
|
|
709
|
+
if (ir) return vt;
|
|
710
|
+
ir = 1;
|
|
711
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
712
|
+
return vt = e, vt;
|
|
713
|
+
}
|
|
714
|
+
var gt, sr;
|
|
715
|
+
function Mr() {
|
|
716
|
+
return sr || (sr = 1, gt = Function.call.bind(Object.prototype.hasOwnProperty)), gt;
|
|
717
|
+
}
|
|
718
|
+
var bt, ar;
|
|
719
|
+
function Yn() {
|
|
720
|
+
if (ar) return bt;
|
|
721
|
+
ar = 1;
|
|
722
|
+
var e = function() {
|
|
723
|
+
};
|
|
724
|
+
if (process.env.NODE_ENV !== "production") {
|
|
725
|
+
var t = /* @__PURE__ */ At(), r = {}, n = /* @__PURE__ */ Mr();
|
|
726
|
+
e = function(i) {
|
|
727
|
+
var s = "Warning: " + i;
|
|
728
|
+
typeof console < "u" && console.error(s);
|
|
729
|
+
try {
|
|
730
|
+
throw new Error(s);
|
|
731
|
+
} catch {
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
function o(i, s, a, l, u) {
|
|
736
|
+
if (process.env.NODE_ENV !== "production") {
|
|
737
|
+
for (var f in i)
|
|
738
|
+
if (n(i, f)) {
|
|
739
|
+
var c;
|
|
740
|
+
try {
|
|
741
|
+
if (typeof i[f] != "function") {
|
|
742
|
+
var p = Error(
|
|
743
|
+
(l || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
744
|
+
);
|
|
745
|
+
throw p.name = "Invariant Violation", p;
|
|
746
|
+
}
|
|
747
|
+
c = i[f](s, f, l, a, null, t);
|
|
748
|
+
} catch (h) {
|
|
749
|
+
c = h;
|
|
750
|
+
}
|
|
751
|
+
if (c && !(c instanceof Error) && e(
|
|
752
|
+
(l || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
753
|
+
), c instanceof Error && !(c.message in r)) {
|
|
754
|
+
r[c.message] = !0;
|
|
755
|
+
var d = u ? u() : "";
|
|
756
|
+
e(
|
|
757
|
+
"Failed " + a + " type: " + c.message + (d ?? "")
|
|
758
|
+
);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
return o.resetWarningCache = function() {
|
|
764
|
+
process.env.NODE_ENV !== "production" && (r = {});
|
|
765
|
+
}, bt = o, bt;
|
|
766
|
+
}
|
|
767
|
+
var Et, lr;
|
|
768
|
+
function Kn() {
|
|
769
|
+
if (lr) return Et;
|
|
770
|
+
lr = 1;
|
|
771
|
+
var e = Lr(), t = Gn(), r = /* @__PURE__ */ At(), n = /* @__PURE__ */ Mr(), o = /* @__PURE__ */ Yn(), i = function() {
|
|
772
|
+
};
|
|
773
|
+
process.env.NODE_ENV !== "production" && (i = function(a) {
|
|
774
|
+
var l = "Warning: " + a;
|
|
775
|
+
typeof console < "u" && console.error(l);
|
|
776
|
+
try {
|
|
777
|
+
throw new Error(l);
|
|
778
|
+
} catch {
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
function s() {
|
|
782
|
+
return null;
|
|
783
|
+
}
|
|
784
|
+
return Et = function(a, l) {
|
|
785
|
+
var u = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
786
|
+
function c(E) {
|
|
787
|
+
var R = E && (u && E[u] || E[f]);
|
|
788
|
+
if (typeof R == "function")
|
|
789
|
+
return R;
|
|
790
|
+
}
|
|
791
|
+
var p = "<<anonymous>>", d = {
|
|
792
|
+
array: g("array"),
|
|
793
|
+
bigint: g("bigint"),
|
|
794
|
+
bool: g("boolean"),
|
|
795
|
+
func: g("function"),
|
|
796
|
+
number: g("number"),
|
|
797
|
+
object: g("object"),
|
|
798
|
+
string: g("string"),
|
|
799
|
+
symbol: g("symbol"),
|
|
800
|
+
any: v(),
|
|
801
|
+
arrayOf: S,
|
|
802
|
+
element: N(),
|
|
803
|
+
elementType: b(),
|
|
804
|
+
instanceOf: j,
|
|
805
|
+
node: re(),
|
|
806
|
+
objectOf: se,
|
|
807
|
+
oneOf: K,
|
|
808
|
+
oneOfType: Ve,
|
|
809
|
+
shape: lt,
|
|
810
|
+
exact: ct
|
|
811
|
+
};
|
|
812
|
+
function h(E, R) {
|
|
813
|
+
return E === R ? E !== 0 || 1 / E === 1 / R : E !== E && R !== R;
|
|
814
|
+
}
|
|
815
|
+
function m(E, R) {
|
|
816
|
+
this.message = E, this.data = R && typeof R == "object" ? R : {}, this.stack = "";
|
|
817
|
+
}
|
|
818
|
+
m.prototype = Error.prototype;
|
|
819
|
+
function w(E) {
|
|
820
|
+
if (process.env.NODE_ENV !== "production")
|
|
821
|
+
var R = {}, D = 0;
|
|
822
|
+
function M(B, L, F, U, G, z, Z) {
|
|
823
|
+
if (U = U || p, z = z || F, Z !== r) {
|
|
824
|
+
if (l) {
|
|
825
|
+
var T = new Error(
|
|
826
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
827
|
+
);
|
|
828
|
+
throw T.name = "Invariant Violation", T;
|
|
829
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
830
|
+
var le = U + ":" + F;
|
|
831
|
+
!R[le] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
832
|
+
D < 3 && (i(
|
|
833
|
+
"You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
834
|
+
), R[le] = !0, D++);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
return L[F] == null ? B ? L[F] === null ? new m("The " + G + " `" + z + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new m("The " + G + " `" + z + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : E(L, F, U, G, z);
|
|
838
|
+
}
|
|
839
|
+
var A = M.bind(null, !1);
|
|
840
|
+
return A.isRequired = M.bind(null, !0), A;
|
|
841
|
+
}
|
|
842
|
+
function g(E) {
|
|
843
|
+
function R(D, M, A, B, L, F) {
|
|
844
|
+
var U = D[M], G = ae(U);
|
|
845
|
+
if (G !== E) {
|
|
846
|
+
var z = ge(U);
|
|
847
|
+
return new m(
|
|
848
|
+
"Invalid " + B + " `" + L + "` of type " + ("`" + z + "` supplied to `" + A + "`, expected ") + ("`" + E + "`."),
|
|
849
|
+
{ expectedType: E }
|
|
850
|
+
);
|
|
851
|
+
}
|
|
852
|
+
return null;
|
|
853
|
+
}
|
|
854
|
+
return w(R);
|
|
855
|
+
}
|
|
856
|
+
function v() {
|
|
857
|
+
return w(s);
|
|
858
|
+
}
|
|
859
|
+
function S(E) {
|
|
860
|
+
function R(D, M, A, B, L) {
|
|
861
|
+
if (typeof E != "function")
|
|
862
|
+
return new m("Property `" + L + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
|
|
863
|
+
var F = D[M];
|
|
864
|
+
if (!Array.isArray(F)) {
|
|
865
|
+
var U = ae(F);
|
|
866
|
+
return new m("Invalid " + B + " `" + L + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected an array."));
|
|
867
|
+
}
|
|
868
|
+
for (var G = 0; G < F.length; G++) {
|
|
869
|
+
var z = E(F, G, A, B, L + "[" + G + "]", r);
|
|
870
|
+
if (z instanceof Error)
|
|
871
|
+
return z;
|
|
872
|
+
}
|
|
873
|
+
return null;
|
|
874
|
+
}
|
|
875
|
+
return w(R);
|
|
876
|
+
}
|
|
877
|
+
function N() {
|
|
878
|
+
function E(R, D, M, A, B) {
|
|
879
|
+
var L = R[D];
|
|
880
|
+
if (!a(L)) {
|
|
881
|
+
var F = ae(L);
|
|
882
|
+
return new m("Invalid " + A + " `" + B + "` of type " + ("`" + F + "` supplied to `" + M + "`, expected a single ReactElement."));
|
|
883
|
+
}
|
|
884
|
+
return null;
|
|
885
|
+
}
|
|
886
|
+
return w(E);
|
|
887
|
+
}
|
|
888
|
+
function b() {
|
|
889
|
+
function E(R, D, M, A, B) {
|
|
890
|
+
var L = R[D];
|
|
891
|
+
if (!e.isValidElementType(L)) {
|
|
892
|
+
var F = ae(L);
|
|
893
|
+
return new m("Invalid " + A + " `" + B + "` of type " + ("`" + F + "` supplied to `" + M + "`, expected a single ReactElement type."));
|
|
894
|
+
}
|
|
895
|
+
return null;
|
|
896
|
+
}
|
|
897
|
+
return w(E);
|
|
898
|
+
}
|
|
899
|
+
function j(E) {
|
|
900
|
+
function R(D, M, A, B, L) {
|
|
901
|
+
if (!(D[M] instanceof E)) {
|
|
902
|
+
var F = E.name || p, U = ft(D[M]);
|
|
903
|
+
return new m("Invalid " + B + " `" + L + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected ") + ("instance of `" + F + "`."));
|
|
904
|
+
}
|
|
905
|
+
return null;
|
|
906
|
+
}
|
|
907
|
+
return w(R);
|
|
908
|
+
}
|
|
909
|
+
function K(E) {
|
|
910
|
+
if (!Array.isArray(E))
|
|
911
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
912
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
913
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
914
|
+
function R(D, M, A, B, L) {
|
|
915
|
+
for (var F = D[M], U = 0; U < E.length; U++)
|
|
916
|
+
if (h(F, E[U]))
|
|
917
|
+
return null;
|
|
918
|
+
var G = JSON.stringify(E, function(Z, T) {
|
|
919
|
+
var le = ge(T);
|
|
920
|
+
return le === "symbol" ? String(T) : T;
|
|
921
|
+
});
|
|
922
|
+
return new m("Invalid " + B + " `" + L + "` of value `" + String(F) + "` " + ("supplied to `" + A + "`, expected one of " + G + "."));
|
|
923
|
+
}
|
|
924
|
+
return w(R);
|
|
925
|
+
}
|
|
926
|
+
function se(E) {
|
|
927
|
+
function R(D, M, A, B, L) {
|
|
928
|
+
if (typeof E != "function")
|
|
929
|
+
return new m("Property `" + L + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
|
|
930
|
+
var F = D[M], U = ae(F);
|
|
931
|
+
if (U !== "object")
|
|
932
|
+
return new m("Invalid " + B + " `" + L + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected an object."));
|
|
933
|
+
for (var G in F)
|
|
934
|
+
if (n(F, G)) {
|
|
935
|
+
var z = E(F, G, A, B, L + "." + G, r);
|
|
936
|
+
if (z instanceof Error)
|
|
937
|
+
return z;
|
|
938
|
+
}
|
|
939
|
+
return null;
|
|
940
|
+
}
|
|
941
|
+
return w(R);
|
|
942
|
+
}
|
|
943
|
+
function Ve(E) {
|
|
944
|
+
if (!Array.isArray(E))
|
|
945
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
946
|
+
for (var R = 0; R < E.length; R++) {
|
|
947
|
+
var D = E[R];
|
|
948
|
+
if (typeof D != "function")
|
|
949
|
+
return i(
|
|
950
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ye(D) + " at index " + R + "."
|
|
951
|
+
), s;
|
|
952
|
+
}
|
|
953
|
+
function M(A, B, L, F, U) {
|
|
954
|
+
for (var G = [], z = 0; z < E.length; z++) {
|
|
955
|
+
var Z = E[z], T = Z(A, B, L, F, U, r);
|
|
956
|
+
if (T == null)
|
|
957
|
+
return null;
|
|
958
|
+
T.data && n(T.data, "expectedType") && G.push(T.data.expectedType);
|
|
959
|
+
}
|
|
960
|
+
var le = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
|
|
961
|
+
return new m("Invalid " + F + " `" + U + "` supplied to " + ("`" + L + "`" + le + "."));
|
|
962
|
+
}
|
|
963
|
+
return w(M);
|
|
964
|
+
}
|
|
965
|
+
function re() {
|
|
966
|
+
function E(R, D, M, A, B) {
|
|
967
|
+
return Oe(R[D]) ? null : new m("Invalid " + A + " `" + B + "` supplied to " + ("`" + M + "`, expected a ReactNode."));
|
|
968
|
+
}
|
|
969
|
+
return w(E);
|
|
970
|
+
}
|
|
971
|
+
function Ge(E, R, D, M, A) {
|
|
972
|
+
return new m(
|
|
973
|
+
(E || "React class") + ": " + R + " type `" + D + "." + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
|
|
974
|
+
);
|
|
975
|
+
}
|
|
976
|
+
function lt(E) {
|
|
977
|
+
function R(D, M, A, B, L) {
|
|
978
|
+
var F = D[M], U = ae(F);
|
|
979
|
+
if (U !== "object")
|
|
980
|
+
return new m("Invalid " + B + " `" + L + "` of type `" + U + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
981
|
+
for (var G in E) {
|
|
982
|
+
var z = E[G];
|
|
983
|
+
if (typeof z != "function")
|
|
984
|
+
return Ge(A, B, L, G, ge(z));
|
|
985
|
+
var Z = z(F, G, A, B, L + "." + G, r);
|
|
986
|
+
if (Z)
|
|
987
|
+
return Z;
|
|
988
|
+
}
|
|
989
|
+
return null;
|
|
990
|
+
}
|
|
991
|
+
return w(R);
|
|
992
|
+
}
|
|
993
|
+
function ct(E) {
|
|
994
|
+
function R(D, M, A, B, L) {
|
|
995
|
+
var F = D[M], U = ae(F);
|
|
996
|
+
if (U !== "object")
|
|
997
|
+
return new m("Invalid " + B + " `" + L + "` of type `" + U + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
998
|
+
var G = t({}, D[M], E);
|
|
999
|
+
for (var z in G) {
|
|
1000
|
+
var Z = E[z];
|
|
1001
|
+
if (n(E, z) && typeof Z != "function")
|
|
1002
|
+
return Ge(A, B, L, z, ge(Z));
|
|
1003
|
+
if (!Z)
|
|
1004
|
+
return new m(
|
|
1005
|
+
"Invalid " + B + " `" + L + "` key `" + z + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(D[M], null, " ") + `
|
|
1006
|
+
Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
1007
|
+
);
|
|
1008
|
+
var T = Z(F, z, A, B, L + "." + z, r);
|
|
1009
|
+
if (T)
|
|
1010
|
+
return T;
|
|
1011
|
+
}
|
|
1012
|
+
return null;
|
|
1013
|
+
}
|
|
1014
|
+
return w(R);
|
|
1015
|
+
}
|
|
1016
|
+
function Oe(E) {
|
|
1017
|
+
switch (typeof E) {
|
|
1018
|
+
case "number":
|
|
1019
|
+
case "string":
|
|
1020
|
+
case "undefined":
|
|
1021
|
+
return !0;
|
|
1022
|
+
case "boolean":
|
|
1023
|
+
return !E;
|
|
1024
|
+
case "object":
|
|
1025
|
+
if (Array.isArray(E))
|
|
1026
|
+
return E.every(Oe);
|
|
1027
|
+
if (E === null || a(E))
|
|
1028
|
+
return !0;
|
|
1029
|
+
var R = c(E);
|
|
1030
|
+
if (R) {
|
|
1031
|
+
var D = R.call(E), M;
|
|
1032
|
+
if (R !== E.entries) {
|
|
1033
|
+
for (; !(M = D.next()).done; )
|
|
1034
|
+
if (!Oe(M.value))
|
|
1035
|
+
return !1;
|
|
1036
|
+
} else
|
|
1037
|
+
for (; !(M = D.next()).done; ) {
|
|
1038
|
+
var A = M.value;
|
|
1039
|
+
if (A && !Oe(A[1]))
|
|
1040
|
+
return !1;
|
|
1041
|
+
}
|
|
1042
|
+
} else
|
|
1043
|
+
return !1;
|
|
1044
|
+
return !0;
|
|
1045
|
+
default:
|
|
1046
|
+
return !1;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
function ut(E, R) {
|
|
1050
|
+
return E === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
|
|
1051
|
+
}
|
|
1052
|
+
function ae(E) {
|
|
1053
|
+
var R = typeof E;
|
|
1054
|
+
return Array.isArray(E) ? "array" : E instanceof RegExp ? "object" : ut(R, E) ? "symbol" : R;
|
|
1055
|
+
}
|
|
1056
|
+
function ge(E) {
|
|
1057
|
+
if (typeof E > "u" || E === null)
|
|
1058
|
+
return "" + E;
|
|
1059
|
+
var R = ae(E);
|
|
1060
|
+
if (R === "object") {
|
|
1061
|
+
if (E instanceof Date)
|
|
1062
|
+
return "date";
|
|
1063
|
+
if (E instanceof RegExp)
|
|
1064
|
+
return "regexp";
|
|
1065
|
+
}
|
|
1066
|
+
return R;
|
|
1067
|
+
}
|
|
1068
|
+
function Ye(E) {
|
|
1069
|
+
var R = ge(E);
|
|
1070
|
+
switch (R) {
|
|
1071
|
+
case "array":
|
|
1072
|
+
case "object":
|
|
1073
|
+
return "an " + R;
|
|
1074
|
+
case "boolean":
|
|
1075
|
+
case "date":
|
|
1076
|
+
case "regexp":
|
|
1077
|
+
return "a " + R;
|
|
1078
|
+
default:
|
|
1079
|
+
return R;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
function ft(E) {
|
|
1083
|
+
return !E.constructor || !E.constructor.name ? p : E.constructor.name;
|
|
1084
|
+
}
|
|
1085
|
+
return d.checkPropTypes = o, d.resetWarningCache = o.resetWarningCache, d.PropTypes = d, d;
|
|
1086
|
+
}, Et;
|
|
1087
|
+
}
|
|
1088
|
+
var Ot, cr;
|
|
1089
|
+
function Jn() {
|
|
1090
|
+
if (cr) return Ot;
|
|
1091
|
+
cr = 1;
|
|
1092
|
+
var e = /* @__PURE__ */ At();
|
|
1093
|
+
function t() {
|
|
1094
|
+
}
|
|
1095
|
+
function r() {
|
|
1096
|
+
}
|
|
1097
|
+
return r.resetWarningCache = t, Ot = function() {
|
|
1098
|
+
function n(s, a, l, u, f, c) {
|
|
1099
|
+
if (c !== e) {
|
|
1100
|
+
var p = new Error(
|
|
1101
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1102
|
+
);
|
|
1103
|
+
throw p.name = "Invariant Violation", p;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
n.isRequired = n;
|
|
1107
|
+
function o() {
|
|
1108
|
+
return n;
|
|
1109
|
+
}
|
|
1110
|
+
var i = {
|
|
1111
|
+
array: n,
|
|
1112
|
+
bigint: n,
|
|
1113
|
+
bool: n,
|
|
1114
|
+
func: n,
|
|
1115
|
+
number: n,
|
|
1116
|
+
object: n,
|
|
1117
|
+
string: n,
|
|
1118
|
+
symbol: n,
|
|
1119
|
+
any: n,
|
|
1120
|
+
arrayOf: o,
|
|
1121
|
+
element: n,
|
|
1122
|
+
elementType: n,
|
|
1123
|
+
instanceOf: o,
|
|
1124
|
+
node: n,
|
|
1125
|
+
objectOf: o,
|
|
1126
|
+
oneOf: o,
|
|
1127
|
+
oneOfType: o,
|
|
1128
|
+
shape: o,
|
|
1129
|
+
exact: o,
|
|
1130
|
+
checkPropTypes: r,
|
|
1131
|
+
resetWarningCache: t
|
|
1132
|
+
};
|
|
1133
|
+
return i.PropTypes = i, i;
|
|
1134
|
+
}, Ot;
|
|
1135
|
+
}
|
|
1136
|
+
var ur;
|
|
1137
|
+
function Xn() {
|
|
1138
|
+
if (ur) return Je.exports;
|
|
1139
|
+
if (ur = 1, process.env.NODE_ENV !== "production") {
|
|
1140
|
+
var e = Lr(), t = !0;
|
|
1141
|
+
Je.exports = /* @__PURE__ */ Kn()(e.isElement, t);
|
|
1142
|
+
} else
|
|
1143
|
+
Je.exports = /* @__PURE__ */ Jn()();
|
|
1144
|
+
return Je.exports;
|
|
1145
|
+
}
|
|
1146
|
+
var Zn = /* @__PURE__ */ Xn();
|
|
1147
|
+
const O = /* @__PURE__ */ Fe(Zn);
|
|
16
1148
|
/**!
|
|
17
1149
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
18
1150
|
* @version 1.16.1
|
|
@@ -36,4 +1168,3417 @@ object-assign
|
|
|
36
1168
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
37
1169
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
38
1170
|
* SOFTWARE.
|
|
39
|
-
*/var Se="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,xe=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Se&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),Te=Se&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),xe))}};function ke(e){return e&&"[object Function]"==={}.toString.call(e)}function Pe(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ne(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Ce(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Pe(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Ce(Ne(e))}function je(e){return e&&e.referenceNode?e.referenceNode:e}var Ie=Se&&!(!window.MSInputMethodContext||!document.documentMode),Re=Se&&/MSIE 10/.test(navigator.userAgent);function Le(e){return 11===e?Ie:10===e?Re:Ie||Re}function Ae(e){if(!e)return document.documentElement;for(var t=Le(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Pe(n,"position")?Ae(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Me(e){return null!==e.parentNode?Me(e.parentNode):e}function De(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var s,a,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&Ae(s.firstElementChild)!==s?Ae(l):l;var c=Me(e);return c.host?De(c.host,t):De(e,Me(t).host)}function Fe(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function _e(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Be(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Le(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function We(e){var t=e.body,n=e.documentElement,r=Le(10)&&getComputedStyle(n);return{height:Be("Height",t,n,r),width:Be("Width",t,n,r)}}var ze=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),He=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function $e(e){return Ue({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Ve(e){var t={};try{if(Le(10)){t=e.getBoundingClientRect();var n=Fe(e,"top"),r=Fe(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(p){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?We(e.ownerDocument):{},s=i.width||e.clientWidth||o.width,a=i.height||e.clientHeight||o.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var u=Pe(e);l-=_e(u,"x"),c-=_e(u,"y"),o.width-=l,o.height-=c}return $e(o)}function qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Le(10),o="HTML"===t.nodeName,i=Ve(e),s=Ve(t),a=Ce(e),l=Pe(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=$e({top:i.top-s.top-c,left:i.left-s.left-u,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!r&&o){var f=parseFloat(l.marginTop),d=parseFloat(l.marginLeft);p.top-=c-f,p.bottom-=c-f,p.left-=u-d,p.right-=u-d,p.marginTop=f,p.marginLeft=d}return(r&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Fe(t,"top"),o=Fe(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(p,t)),p}function Ge(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Pe(e,"position"))return!0;var n=Ne(e);return!!n&&Ge(n)}function Ye(e){if(!e||!e.parentElement||Le())return document.documentElement;for(var t=e.parentElement;t&&"none"===Pe(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ke(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},s=o?Ye(e):De(e,je(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=qe(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:Fe(n),a=t?0:Fe(n,"left");return $e({top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:o,height:i})}(s,o);else{var a=void 0;"scrollParent"===r?"BODY"===(a=Ce(Ne(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r;var l=qe(a,s,o);if("HTML"!==a.nodeName||Ge(s))i=l;else{var c=We(e.ownerDocument),u=c.height,p=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=p+l.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function Je(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=Ke(n,r,i,o),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map((function(e){return Ue({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function Xe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return qe(n,r?Ye(t):De(t,je(n)),r)}function Ze(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Qe(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function et(e,t,n){n=n.split("-")[0];var r=Ze(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),s=i?"top":"left",a=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[s]=t[s]+t[l]/2-r[l]/2,o[a]=n===a?t[a]-r[c]:t[Qe(a)],o}function tt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function nt(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=tt(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function;var n=e.function||e.fn;e.enabled&&ke(n)&&(t.offsets.popper=$e(t.offsets.popper),t.offsets.reference=$e(t.offsets.reference),t=n(t,e))})),t}function rt(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Xe(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Je(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=et(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=nt(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ot(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function it(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function st(){return this.state.isDestroyed=!0,ot(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[it("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function at(e){var t=e.ownerDocument;return t?t.defaultView:window}function lt(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||lt(Ce(i.parentNode),t,n,r),r.push(i)}function ct(e,t,n,r){n.updateBound=r,at(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Ce(e);return lt(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function ut(){this.state.eventsEnabled||(this.state=ct(this.reference,this.options,this.state,this.scheduleUpdate))}function pt(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,at(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function ft(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function dt(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ft(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ht=Se&&/Firefox/i.test(navigator.userAgent);function yt(e,t,n){var r=tt(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o);return o}var mt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],bt=mt.slice(3);function gt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=bt.indexOf(e),r=bt.slice(n+1).concat(bt.slice(0,n));return t?r.reverse():r}var vt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:He({},l,i[l]),end:He({},l,i[l]+i[c]-s[c])};e.offsets.popper=Ue({},s,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,o=e.placement,i=e.offsets,s=i.popper,a=i.reference,l=o.split("-")[0];return n=ft(+r)?[+r,0]:function(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(tt(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&s[a].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return i=o,s=t,a=n,c=+(l=(r=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],u=l[2],c?0===u.indexOf("%")?$e("%p"===u?s:a)[i]/100*c:"vh"===u||"vw"===u?("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*c:c:r;var r,i,s,a,l,c,u}))}))).forEach((function(e,t){e.forEach((function(n,r){ft(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}(r,s,a,l),"left"===l?(s.top+=n[0],s.left-=n[1]):"right"===l?(s.top+=n[0],s.left+=n[1]):"top"===l?(s.left+=n[0],s.top-=n[1]):"bottom"===l&&(s.left+=n[0],s.top+=n[1]),e.popper=s,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Ae(e.instance.popper);e.instance.reference===n&&(n=Ae(n));var r=it("transform"),o=e.instance.popper.style,i=o.top,s=o.left,a=o[r];o.top="",o.left="",o[r]="";var l=Ke(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=s,o[r]=a,t.boundaries=l;var c=t.priority,u=e.offsets.popper,p={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),He({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),He({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Ue({},u,p[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[a])&&(e.offsets.popper[l]=i(r[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!yt(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return e;var o=e.placement.split("-")[0],i=e.offsets,s=i.popper,a=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",p=u.toLowerCase(),f=l?"left":"top",d=l?"bottom":"right",h=Ze(r)[c];a[d]-h<s[p]&&(e.offsets.popper[p]-=s[p]-(a[d]-h)),a[p]+h>s[d]&&(e.offsets.popper[p]+=a[p]+h-s[d]),e.offsets.popper=$e(e.offsets.popper);var y=a[p]+a[c]/2-h/2,m=Pe(e.instance.popper),b=parseFloat(m["margin"+u]),g=parseFloat(m["border"+u+"Width"]),v=y-e.offsets.popper[p]-b-g;return v=Math.max(Math.min(s[c]-h,v),0),e.arrowElement=r,e.offsets.arrow=(He(n={},p,Math.round(v)),He(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(ot(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Ke(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Qe(r),i=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case"flip":s=[r,o];break;case"clockwise":s=gt(r);break;case"counterclockwise":s=gt(r,!0);break;default:s=t.behavior}return s.forEach((function(a,l){if(r!==a||s.length===l+1)return e;r=e.placement.split("-")[0],o=Qe(r);var c=e.offsets.popper,u=e.offsets.reference,p=Math.floor,f="left"===r&&p(c.right)>p(u.left)||"right"===r&&p(c.left)<p(u.right)||"top"===r&&p(c.bottom)>p(u.top)||"bottom"===r&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),h=p(c.right)>p(n.right),y=p(c.top)<p(n.top),m=p(c.bottom)>p(n.bottom),b="left"===r&&d||"right"===r&&h||"top"===r&&y||"bottom"===r&&m,g=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(g&&"start"===i&&d||g&&"end"===i&&h||!g&&"start"===i&&y||!g&&"end"===i&&m),w=!!t.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&d||!g&&"start"===i&&m||!g&&"end"===i&&y),O=v||w;(f||b||O)&&(e.flipped=!0,(f||b)&&(r=s[l+1]),O&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=Ue({},e.offsets.popper,et(e.instance.popper,e.offsets.reference,e.placement)),e=nt(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=i[n]-(a?o[s?"width":"height"]:0),e.placement=Qe(t),e.offsets.popper=$e(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!yt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=tt(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n,r,o,i,s,a,l,c,u,p,f,d,h,y,m,b,g=t.x,v=t.y,w=e.offsets.popper,O=tt(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration,E=void 0!==O?O:t.gpuAcceleration,S=Ae(e.instance.popper),x=Ve(S),T={position:w.position},k=(o=e,i=window.devicePixelRatio<2||!ht,s=o.offsets,a=s.popper,l=s.reference,c=Math.round,u=Math.floor,p=function(e){return e},f=c(l.width),d=c(a.width),h=-1!==["left","right"].indexOf(o.placement),y=-1!==o.placement.indexOf("-"),b=i?c:p,{left:(m=i?h||y||f%2==d%2?c:u:p)(f%2==1&&d%2==1&&!y&&i?a.left-1:a.left),top:b(a.top),bottom:b(a.bottom),right:m(a.right)}),P="bottom"===g?"top":"bottom",N="right"===v?"left":"right",C=it("transform");if(r="bottom"===P?"HTML"===S.nodeName?-S.clientHeight+k.bottom:-x.height+k.bottom:k.top,n="right"===N?"HTML"===S.nodeName?-S.clientWidth+k.right:-x.width+k.right:k.left,E&&C)T[C]="translate3d("+n+"px, "+r+"px, 0)",T[P]=0,T[N]=0,T.willChange="transform";else{var j="bottom"===P?-1:1,I="right"===N?-1:1;T[P]=r*j,T[N]=n*I,T.willChange=P+", "+N}var R={"x-placement":e.placement};return e.attributes=Ue({},R,e.attributes),e.styles=Ue({},T,e.styles),e.arrowStyles=Ue({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return dt(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&dt(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=Xe(o,t,e,n.positionFixed),s=Je(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),dt(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},wt=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Te(this.update.bind(this)),this.options=Ue({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Ue({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=Ue({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Ue({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&ke(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return ze(e,[{key:"update",value:function(){return rt.call(this)}},{key:"destroy",value:function(){return st.call(this)}},{key:"enableEventListeners",value:function(){return ut.call(this)}},{key:"disableEventListeners",value:function(){return pt.call(this)}}]),e}();wt.Utils=("undefined"!=typeof window?window:global).PopperUtils,wt.placements=mt,wt.Defaults=vt;var Ot=["innerHTML","ownerDocument","style","attributes","nodeValue"],Et=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],St=["bigint","boolean","null","number","string","symbol","undefined"];function xt(e){var t,n=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(t=n,Et.includes(t)?n:void 0)}function Tt(e){return function(t){return xt(t)===e}}function kt(e){return function(t){return typeof t===e}}function Pt(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return Pt.array(e)?"Array":Pt.plainFunction(e)?"Function":xt(e)||"Object"}function Nt(e){return function(t){return typeof t===e}}Pt.array=Array.isArray,Pt.arrayOf=function(e,t){return!(!Pt.array(e)&&!Pt.function(t))&&e.every((function(e){return t(e)}))},Pt.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===xt(e)},Pt.asyncFunction=Tt("AsyncFunction"),Pt.bigint=kt("bigint"),Pt.boolean=function(e){return!0===e||!1===e},Pt.date=Tt("Date"),Pt.defined=function(e){return!Pt.undefined(e)},Pt.domElement=function(e){return Pt.object(e)&&!Pt.plainObject(e)&&1===e.nodeType&&Pt.string(e.nodeName)&&Ot.every((function(t){return t in e}))},Pt.empty=function(e){return Pt.string(e)&&0===e.length||Pt.array(e)&&0===e.length||Pt.object(e)&&!Pt.map(e)&&!Pt.set(e)&&0===Object.keys(e).length||Pt.set(e)&&0===e.size||Pt.map(e)&&0===e.size},Pt.error=Tt("Error"),Pt.function=kt("function"),Pt.generator=function(e){return Pt.iterable(e)&&Pt.function(e.next)&&Pt.function(e.throw)},Pt.generatorFunction=Tt("GeneratorFunction"),Pt.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},Pt.iterable=function(e){return!Pt.nullOrUndefined(e)&&Pt.function(e[Symbol.iterator])},Pt.map=Tt("Map"),Pt.nan=function(e){return Number.isNaN(e)},Pt.null=function(e){return null===e},Pt.nullOrUndefined=function(e){return Pt.null(e)||Pt.undefined(e)},Pt.number=function(e){return kt("number")(e)&&!Pt.nan(e)},Pt.numericString=function(e){return Pt.string(e)&&e.length>0&&!Number.isNaN(Number(e))},Pt.object=function(e){return!Pt.nullOrUndefined(e)&&(Pt.function(e)||"object"==typeof e)},Pt.oneOf=function(e,t){return!!Pt.array(e)&&e.indexOf(t)>-1},Pt.plainFunction=Tt("Function"),Pt.plainObject=function(e){if("Object"!==xt(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},Pt.primitive=function(e){return Pt.null(e)||(t=typeof e,St.includes(t));var t},Pt.promise=Tt("Promise"),Pt.propertyOf=function(e,t,n){if(!Pt.object(e)||!t)return!1;var r=e[t];return Pt.function(n)?n(r):Pt.defined(r)},Pt.regexp=Tt("RegExp"),Pt.set=Tt("Set"),Pt.string=kt("string"),Pt.symbol=kt("symbol"),Pt.undefined=kt("undefined"),Pt.weakMap=Tt("WeakMap"),Pt.weakSet=Tt("WeakSet");var Ct=Nt("function"),jt=function(e){return"RegExp"===Object.prototype.toString.call(e).slice(8,-1)},It=function(e){return!Rt(e)&&!function(e){return null===e}(e)&&(Ct(e)||"object"==typeof e)},Rt=Nt("undefined"),Lt=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function At(e,t){if(e===t)return!0;if(e&&It(e)&&t&&It(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;0!=r--;)if(!At(e[r],t[r]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){var n,r,o,i;if(e.size!==t.size)return!1;try{for(var s=Lt(e.entries()),a=s.next();!a.done;a=s.next()){var l=a.value;if(!t.has(l[0]))return!1}}catch(p){n={error:p}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var c=Lt(e.entries()),u=c.next();!u.done;u=c.next())if(!At((l=u.value)[1],t.get(l[0])))return!1}catch(p){o={error:p}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var o=Lt(e.entries()),i=o.next();!i.done;i=o.next()){var s=i.value;if(!t.has(s[0]))return!1}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),o=e.byteLength;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}(e,t);if(jt(e)&&jt(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=n.length;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=n.length;0!=o--;){var i=n[o];if(!("_owner"===i&&e.$$typeof||At(e[i],t[i])))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}function Mt(e,t,n){var r=n.actual,o=n.key,i=n.previous,s=n.type,a=Ut(e,o),l=Ut(t,o),c=[a,l].every(Pt.number)&&("increased"===s?a<l:a>l);return Pt.undefined(r)||(c=c&&l===r),Pt.undefined(i)||(c=c&&a===i),c}function Dt(e,t,n){var r,o=n.key,i=n.type,s=n.value,a=Ut(e,o),l=Ut(t,o),c="added"===i?a:l,u="added"===i?l:a;return Pt.nullOrUndefined(s)?[a,l].every(Pt.array)?!u.every(zt(c)):[a,l].every(Pt.plainObject)?(r=Object.keys(c),Object.keys(u).some((function(e){return!r.includes(e)}))):![a,l].every((function(e){return Pt.primitive(e)&&Pt.defined(e)}))&&("added"===i?!Pt.defined(a)&&Pt.defined(l):Pt.defined(a)&&!Pt.defined(l)):Pt.defined(c)?!(!Pt.array(c)&&!Pt.plainObject(c))&&function(e,t,n){return!!Ht(e,t)&&([e,t].every(Pt.array)?!e.some(Bt(n))&&t.some(Bt(n)):[e,t].every(Pt.plainObject)?!Object.entries(e).some(_t(n))&&Object.entries(t).some(_t(n)):t===n)}(c,u,s):At(u,s)}function Ft(e,t,n){var r=(void 0===n?{}:n).key,o=Ut(e,r),i=Ut(t,r);if(!Ht(o,i))throw new TypeError("Inputs have different types");if(!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every((function(e){return Pt.string(e)||Pt.array(e)||Pt.plainObject(e)}))}(o,i))throw new TypeError("Inputs don't have length");return[o,i].every(Pt.plainObject)&&(o=Object.keys(o),i=Object.keys(i)),[o,i]}function _t(e){return function(t){var n=t[0],r=t[1];return Pt.array(e)?At(e,r)||e.some((function(e){return At(e,r)||Pt.array(r)&&zt(r)(e)})):Pt.plainObject(e)&&e[n]?!!e[n]&&At(e[n],r):At(e,r)}}function Bt(e){return function(t){return Pt.array(e)?e.some((function(e){return At(e,t)||Pt.array(t)&&zt(t)(e)})):At(e,t)}}function Wt(e,t){return Pt.array(e)?e.some((function(e){return At(e,t)})):At(e,t)}function zt(e){return function(t){return e.some((function(e){return At(e,t)}))}}function Ht(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(Pt.array)||e.every(Pt.number)||e.every(Pt.plainObject)||e.every(Pt.string)}function Ut(e,t){return Pt.plainObject(e)||Pt.array(e)?Pt.string(t)?t.split(".").reduce((function(e,t){return e&&e[t]}),e):Pt.number(t)?e[t]:e:e}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){Yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gt(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tn(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yt(e,t,n){return(t=tn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}function Jt(e){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xt(e,t){return(Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Zt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jt(e);if(t){var o=Jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qt(e)}(this,n)}}function tn(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var nn={flip:{padding:20},preventOverflow:{padding:10}};function rn(e,t,n){return function(e,t){if("function"!=typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(Boolean(t))throw new TypeError("The error message is optional, but must be a string if provided.")}(e,n),function(n,r,o){for(var i=arguments.length,s=new Array(i>3?i-3:0),a=3;a<i;a++)s[a-3]=arguments[a];return c=n,u=r,p=o,("boolean"==typeof(l=t)?l:"function"==typeof l?l(c,u,p):!0===Boolean(l)&&Boolean(l))?function(e,t){return Object.hasOwnProperty.call(e,t)}(n,r)?e.apply(void 0,[n,r,o].concat(s)):function(e,t,n){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}(n,r,o):e.apply(void 0,[n,r,o].concat(s));var l,c,u,p}}var on={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},sn=void 0!==o.createPortal;function an(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function ln(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function cn(e){var t=e.title,n=e.data,r=e.warn,o=void 0!==r&&r,i=e.debug,s=void 0!==i&&i,a=o?console.warn||console.error:console.log;s&&t&&n&&(Array.isArray(n)?n.forEach((function(e){Pt.plainObject(e)&&e.key?a.apply(console,[e.key,e.value]):a.apply(console,[e])})):a.apply(console,[n]))}function un(){}var pn=function(){Kt(t,n.Component);var e=en(t);function t(){return qt(this,t),e.apply(this,arguments)}return Gt(t,[{key:"componentDidMount",value:function(){an()&&(this.node||this.appendNode(),sn||this.renderPortal())}},{key:"componentDidUpdate",value:function(){an()&&(sn||this.renderPortal())}},{key:"componentWillUnmount",value:function(){an()&&this.node&&(sn||o.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var e=this.props,t=e.id,n=e.zIndex;this.node||(this.node=document.createElement("div"),t&&(this.node.id=t),n&&(this.node.style.zIndex=n),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!an())return null;var e=this.props,t=e.children,r=e.setRef;return this.node||this.appendNode(),sn?o.createPortal(t,this.node):(r(o.unstable_renderSubtreeIntoContainer(this,t.length>1?n.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,r=e.target;return t||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return sn?this.renderReact16():null}}]),t}();Yt(pn,"propTypes",{children:Ee.oneOfType([Ee.element,Ee.array]),hasChildren:Ee.bool,id:Ee.oneOfType([Ee.string,Ee.number]),placement:Ee.string,setRef:Ee.func.isRequired,target:Ee.oneOfType([Ee.object,Ee.string]),zIndex:Ee.number});var fn=function(){Kt(t,n.Component);var e=en(t);function t(){return qt(this,t),e.apply(this,arguments)}return Gt(t,[{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,r={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):t.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):t.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):t.startsWith("right")&&(r.left=0,r.top=0),r}},{key:"render",value:function(){var e,t=this.props,r=t.placement,o=t.setArrowRef,i=t.styles.arrow,s=i.color,a=i.display,l=i.length,c=i.margin,u=i.position,p=i.spread,f={display:a,position:u},d=p,h=l;return r.startsWith("top")?(e="0,0 ".concat(d/2,",").concat(h," ").concat(d,",0"),f.bottom=0,f.marginLeft=c,f.marginRight=c):r.startsWith("bottom")?(e="".concat(d,",").concat(h," ").concat(d/2,",0 0,").concat(h),f.top=0,f.marginLeft=c,f.marginRight=c):r.startsWith("left")?(h=p,e="0,0 ".concat(d=l,",").concat(h/2," 0,").concat(h),f.right=0,f.marginTop=c,f.marginBottom=c):r.startsWith("right")&&(h=p,e="".concat(d=l,",").concat(h," ").concat(d,",0 0,").concat(h/2),f.left=0,f.marginTop=c,f.marginBottom=c),n.createElement("div",{className:"__floater__arrow",style:this.parentStyle},n.createElement("span",{ref:o,style:f},n.createElement("svg",{width:d,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n.createElement("polygon",{points:e,fill:s}))))}}]),t}();Yt(fn,"propTypes",{placement:Ee.string.isRequired,setArrowRef:Ee.func.isRequired,styles:Ee.object.isRequired});var dn=["color","height","width"];function hn(e){var t=e.handleClick,r=e.styles,o=r.color,i=r.height,s=r.width,a=Zt(r,dn);return n.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},n.createElement("svg",{width:"".concat(s,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},n.createElement("g",null,n.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))}function yn(e){var t=e.content,r=e.footer,o=e.handleClick,i=e.open,s=e.positionWrapper,a=e.showCloseButton,l=e.title,c=e.styles,u={content:n.isValidElement(t)?t:n.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=n.isValidElement(l)?l:n.createElement("div",{className:"__floater__title",style:c.title},l)),r&&(u.footer=n.isValidElement(r)?r:n.createElement("div",{className:"__floater__footer",style:c.footer},r)),!a&&!s||Pt.boolean(i)||(u.close=n.createElement(hn,{styles:c.close,handleClick:o})),n.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)}hn.propTypes={handleClick:Ee.func.isRequired,styles:Ee.object.isRequired},yn.propTypes={content:Ee.node.isRequired,footer:Ee.node,handleClick:Ee.func.isRequired,open:Ee.bool,positionWrapper:Ee.bool.isRequired,showCloseButton:Ee.bool.isRequired,styles:Ee.object.isRequired,title:Ee.node};var mn=function(){Kt(t,n.Component);var e=en(t);function t(){return qt(this,t),e.apply(this,arguments)}return Gt(t,[{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,r=e.placement,o=e.hideArrow,i=e.status,s=e.styles,a=s.arrow.length,l=s.floater,c=s.floaterCentered,u=s.floaterClosing,p=s.floaterOpening,f=s.floaterWithAnimation,d=s.floaterWithComponent,h={};return o||(r.startsWith("top")?h.padding="0 0 ".concat(a,"px"):r.startsWith("bottom")?h.padding="".concat(a,"px 0 0"):r.startsWith("left")?h.padding="0 ".concat(a,"px 0 0"):r.startsWith("right")&&(h.padding="0 0 0 ".concat(a,"px"))),-1!==[on.OPENING,on.OPEN].indexOf(i)&&(h=Vt(Vt({},h),p)),i===on.CLOSING&&(h=Vt(Vt({},h),u)),i!==on.OPEN||t||(h=Vt(Vt({},h),f)),"center"===r&&(h=Vt(Vt({},h),c)),n&&(h=Vt(Vt({},h),d)),Vt(Vt({},l),h)}},{key:"render",value:function(){var e=this.props,t=e.component,r=e.handleClick,o=e.hideArrow,i=e.setFloaterRef,s=e.status,a={},l=["__floater"];return a.content=t?n.isValidElement(t)?n.cloneElement(t,{closeFn:r}):t({closeFn:r}):n.createElement(yn,this.props),s===on.OPEN&&l.push("__floater__open"),o||(a.arrow=n.createElement(fn,this.props)),n.createElement("div",{ref:i,className:l.join(" "),style:this.style},n.createElement("div",{className:"__floater__body"},a.content,a.arrow))}}]),t}();Yt(mn,"propTypes",{component:Ee.oneOfType([Ee.func,Ee.element]),content:Ee.node,disableAnimation:Ee.bool.isRequired,footer:Ee.node,handleClick:Ee.func.isRequired,hideArrow:Ee.bool.isRequired,open:Ee.bool,placement:Ee.string.isRequired,positionWrapper:Ee.bool.isRequired,setArrowRef:Ee.func.isRequired,setFloaterRef:Ee.func.isRequired,showCloseButton:Ee.bool,status:Ee.string.isRequired,styles:Ee.object.isRequired,title:Ee.node});var bn=function(){Kt(t,n.Component);var e=en(t);function t(){return qt(this,t),e.apply(this,arguments)}return Gt(t,[{key:"render",value:function(){var e,t=this.props,r=t.children,o=t.handleClick,i=t.handleMouseEnter,s=t.handleMouseLeave,a=t.setChildRef,l=t.setWrapperRef,c=t.style,u=t.styles;if(r)if(1===n.Children.count(r))if(n.isValidElement(r)){var p=Pt.function(r.type)?"innerRef":"ref";e=n.cloneElement(n.Children.only(r),Yt({},p,a))}else e=n.createElement("span",null,r);else e=r;return e?n.createElement("span",{ref:l,style:Vt(Vt({},u),c),onClick:o,onMouseEnter:i,onMouseLeave:s},e):null}}]),t}();Yt(bn,"propTypes",{children:Ee.node,handleClick:Ee.func.isRequired,handleMouseEnter:Ee.func.isRequired,handleMouseLeave:Ee.func.isRequired,setChildRef:Ee.func.isRequired,setWrapperRef:Ee.func.isRequired,style:Ee.object,styles:Ee.object.isRequired});var gn={zIndex:100},vn=["arrow","flip","offset"],wn=["position","top","right","bottom","left"],On=function(){Kt(t,n.Component);var e=en(t);function t(n){var r;return qt(this,t),Yt(Qt(r=e.call(this,n)),"setArrowRef",(function(e){r.arrowRef=e})),Yt(Qt(r),"setChildRef",(function(e){r.childRef=e})),Yt(Qt(r),"setFloaterRef",(function(e){r.floaterRef=e})),Yt(Qt(r),"setWrapperRef",(function(e){r.wrapperRef=e})),Yt(Qt(r),"handleTransitionEnd",(function(){var e=r.state.status,t=r.props.callback;r.wrapperPopper&&r.wrapperPopper.instance.update(),r.setState({status:e===on.OPENING?on.OPEN:on.IDLE},(function(){var e=r.state.status;t(e===on.OPEN?"open":"close",r.props)}))})),Yt(Qt(r),"handleClick",(function(){var e=r.props,t=e.event,n=e.open;if(!Pt.boolean(n)){var o=r.state,i=o.positionWrapper,s=o.status;("click"===r.event||"hover"===r.event&&i)&&(cn({title:"click",data:[{event:t,status:s===on.OPEN?"closing":"opening"}],debug:r.debug}),r.toggle())}})),Yt(Qt(r),"handleMouseEnter",(function(){var e=r.props,t=e.event,n=e.open;if(!Pt.boolean(n)&&!ln()){var o=r.state.status;"hover"===r.event&&o===on.IDLE&&(cn({title:"mouseEnter",data:[{key:"originalEvent",value:t}],debug:r.debug}),clearTimeout(r.eventDelayTimeout),r.toggle())}})),Yt(Qt(r),"handleMouseLeave",(function(){var e=r.props,t=e.event,n=e.eventDelay,o=e.open;if(!Pt.boolean(o)&&!ln()){var i=r.state,s=i.status,a=i.positionWrapper;"hover"===r.event&&(cn({title:"mouseLeave",data:[{key:"originalEvent",value:t}],debug:r.debug}),n?-1===[on.OPENING,on.OPEN].indexOf(s)||a||r.eventDelayTimeout||(r.eventDelayTimeout=setTimeout((function(){delete r.eventDelayTimeout,r.toggle()}),1e3*n)):r.toggle(on.IDLE))}})),r.state={currentPlacement:n.placement,needsUpdate:!1,positionWrapper:n.wrapperOptions.position&&!!n.target,status:on.INIT,statusWrapper:on.INIT},r._isMounted=!1,r.hasMounted=!1,an()&&window.addEventListener("load",(function(){r.popper&&r.popper.instance.update(),r.wrapperPopper&&r.wrapperPopper.instance.update()})),r}return Gt(t,[{key:"componentDidMount",value:function(){if(an()){var e=this.state.positionWrapper,t=this.props,n=t.children,r=t.open,o=t.target;this._isMounted=!0,cn({title:"init",data:{hasChildren:!!n,hasTarget:!!o,isControlled:Pt.boolean(r),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!n&&o&&Pt.boolean(r)}}},{key:"componentDidUpdate",value:function(e,t){if(an()){var n,r=this.props,o=r.autoOpen,i=r.open,s=r.target,a=r.wrapperOptions,l=function(e,t){if([e,t].some(Pt.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every((function(e){return Pt.plainObject(e)||Pt.array(e)})))throw new Error("Expected plain objects or array");var n=function(n,r,o){try{var i=Ut(e,n),s=Ut(t,n),a=Pt.defined(r),l=Pt.defined(o);if(a||l){var c=l?Wt(o,i):!Wt(r,i),u=Wt(r,s);return c&&u}return[i,s].every(Pt.array)||[i,s].every(Pt.plainObject)?!At(i,s):i!==s}catch(p){return!1}};return{added:function(n,r){try{return Dt(e,t,{key:n,type:"added",value:r})}catch(o){return!1}},changed:n,changedFrom:function(n,r,o){if(!Pt.defined(n))return!1;try{var i=Ut(e,n),s=Ut(t,n),a=Pt.defined(o);return Wt(r,i)&&(a?Wt(o,s):!a)}catch(l){return!1}},changedTo:function(e,t){return!!Pt.defined(e)&&(process.env.NODE_ENV,n(e,t))},decreased:function(n,r,o){if(!Pt.defined(n))return!1;try{return Mt(e,t,{key:n,actual:r,previous:o,type:"decreased"})}catch(i){return!1}},emptied:function(n){try{var r=Ft(e,t,{key:n}),o=r[0],i=r[1];return!!o.length&&!i.length}catch(s){return!1}},filled:function(n){try{var r=Ft(e,t,{key:n}),o=r[0],i=r[1];return!o.length&&!!i.length}catch(s){return!1}},increased:function(n,r,o){if(!Pt.defined(n))return!1;try{return Mt(e,t,{key:n,actual:r,previous:o,type:"increased"})}catch(i){return!1}},removed:function(n,r){try{return Dt(e,t,{key:n,type:"removed",value:r})}catch(o){return!1}}}}(t,this.state),c=l.changedFrom,u=l.changed;e.open!==i&&(Pt.boolean(i)&&(n=i?on.OPENING:on.CLOSING),this.toggle(n)),e.wrapperOptions.position===a.position&&e.target===s||this.changeWrapperPosition(this.props),(u("status",on.IDLE)&&i||c("status",on.INIT,on.IDLE)&&o)&&this.toggle(on.OPEN),this.popper&&u("status",on.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",on.OPENING)||u("status",on.CLOSING))&&function(e,t,n){var r;r=function(o){n(o),function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}(e,t,r)},function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,r)}(e,t,r,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd),u("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){an()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,o=r.disableFlip,i=r.getPopper,s=r.hideArrow,a=r.offset,l=r.placement,c=r.wrapperOptions,u="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:on.IDLE});else if(t&&this.floaterRef){var p=this.options,f=p.arrow,d=p.flip,h=p.offset,y=Zt(p,vn);new wt(t,this.floaterRef,{placement:l,modifiers:Vt({arrow:Vt({enabled:!s,element:this.arrowRef},f),flip:Vt({enabled:!o,behavior:u},d),offset:Vt({offset:"0, ".concat(a,"px")},h)},y),onCreate:function(t){var n;e.popper=t,null!==(n=e.floaterRef)&&void 0!==n&&n.isConnected?(i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:on.IDLE}),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)):e.setState({needsUpdate:!0})},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var m=Pt.undefined(c.offset)?0:c.offset;new wt(this.target,this.wrapperRef,{placement:c.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(m,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:on.IDLE}),i(t,"wrapper"),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"rebuildPopper",value:function(){var e=this;this.floaterRefInterval=setInterval((function(){var t;null!==(t=e.floaterRef)&&void 0!==t&&t.isConnected&&(clearInterval(e.floaterRefInterval),e.setState({needsUpdate:!1}),e.initPopper())}),50)}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===on.OPEN?on.CLOSING:on.OPENING;Pt.undefined(e)||(t=e),this.setState({status:t})}},{key:"debug",get:function(){return this.props.debug||an()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&ln()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return J(nn,e||{})}},{key:"styles",get:function(){var e,t,n=this,r=this.state,o=r.status,i=r.positionWrapper,s=r.statusWrapper,a=this.props.styles,l=J({wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:(t=J(gn,a.options||{})).zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t},a);if(i&&(e=-1===[on.IDLE].indexOf(o)||-1===[on.IDLE].indexOf(s)?l.wrapperPosition:this.wrapperPopper.styles,l.wrapper=Vt(Vt({},l.wrapper),e)),this.target){var c=window.getComputedStyle(this.target);this.wrapperStyles?l.wrapper=Vt(Vt({},l.wrapper),this.wrapperStyles):-1===["relative","static"].indexOf(c.position)&&(this.wrapperStyles={},i||(wn.forEach((function(e){n.wrapperStyles[e]=c[e]})),l.wrapper=Vt(Vt({},l.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return l}},{key:"target",get:function(){if(!an())return null;var e=this.props.target;return e?Pt.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,r=e.positionWrapper,o=e.status,i=this.props,s=i.children,a=i.component,l=i.content,c=i.disableAnimation,u=i.footer,p=i.hideArrow,f=i.id,d=i.open,h=i.showCloseButton,y=i.style,m=i.target,b=i.title,g=n.createElement(bn,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},s),v={};return r?v.wrapperInPortal=g:v.wrapperAsChildren=g,n.createElement("span",null,n.createElement(pn,{hasChildren:!!s,id:f,placement:t,setRef:this.setFloaterRef,target:m,zIndex:this.styles.options.zIndex},n.createElement(mn,{component:a,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===t,open:d,placement:t,positionWrapper:r,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:o,styles:this.styles,title:b}),v.wrapperInPortal),v.wrapperAsChildren)}}]),t}();Yt(On,"propTypes",{autoOpen:Ee.bool,callback:Ee.func,children:Ee.node,component:rn(Ee.oneOfType([Ee.func,Ee.element]),(function(e){return!e.content})),content:rn(Ee.node,(function(e){return!e.component})),debug:Ee.bool,disableAnimation:Ee.bool,disableFlip:Ee.bool,disableHoverToClick:Ee.bool,event:Ee.oneOf(["hover","click"]),eventDelay:Ee.number,footer:Ee.node,getPopper:Ee.func,hideArrow:Ee.bool,id:Ee.oneOfType([Ee.string,Ee.number]),offset:Ee.number,open:Ee.bool,options:Ee.object,placement:Ee.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Ee.bool,style:Ee.object,styles:Ee.object,target:Ee.oneOfType([Ee.object,Ee.string]),title:Ee.node,wrapperOptions:Ee.shape({offset:Ee.number,placement:Ee.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Ee.bool})}),Yt(On,"defaultProps",{autoOpen:!1,callback:un,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:un,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var En=Object.defineProperty,Sn=(e,t,n)=>{return i=n,(o="symbol"!=typeof t?t+"":t)in(r=e)?En(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var r,o,i},xn="start",Tn="stop",kn="reset",Pn="prev",Nn="next",Cn="close",jn="skip",In="update",Rn={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},Ln={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},An={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function Mn(){var e;return!("undefined"==typeof window||!(null==(e=window.document)?void 0:e.createElement))}function Dn(e){return e?e.getBoundingClientRect():null}function Fn(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const e=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort(((e,t)=>e-t)),r=Math.floor(e.length/2);return e.length%2==0?(e[r-1]+e[r])/2:e[r]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function _n(e){if("string"==typeof e)try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV,null}return e}function Bn(e,t,n){if(!e)return Hn();const r=H(e);if(r){if(r.isSameNode(Hn()))return n?document:Hn();if(!(r.scrollHeight>r.offsetHeight||t))return r.style.overflow="initial",Hn()}return r}function Wn(e,t){if(!e)return!1;const n=Bn(e,t);return!!n&&!n.isSameNode(Hn())}function zn(e,t="fixed"){if(!(e&&e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=(o=e)&&1===o.nodeType?getComputedStyle(o):null;var o;return"BODY"!==n&&"HTML"!==n&&(!(!r||r.position!==t)||!!e.parentNode&&zn(e.parentNode,t))}function Hn(){var e;return null!=(e=document.scrollingElement)?e:document.documentElement}var Un=void 0!==o.createPortal;function $n(e=navigator.userAgent){let t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.includes(" OPR/")?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Vn(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function qn(e,t={}){const{defaultValue:r,step:o,steps:i}=t;let s=q(e);return s?(s.includes("{step}")||s.includes("{steps}"))&&o&&i&&(s=s.replace("{step}",o.toString()).replace("{steps}",i.toString())):s=n.isValidElement(e)&&!Object.values(e.props).length&&"function"===Vn(e.type)?qn(e.type({}),t):q(r),s}function Gn(e){const t=e.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,((e,t,n,r)=>t+t+n+n+r+r)),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function Yn(e){return e.disableBeacon||"center"===e.placement}function Kn(){return!["chrome","safari","firefox","opera"].includes($n())}function Jn({data:e,debug:t=!1,title:n,warn:r=!1}){const o=r?console.warn||console.error:console.log;t&&n&&e&&(Array.isArray(e)?e.forEach((e=>{S.plainObject(e)&&e.key?o.apply(console,[e.key,e.value]):o.apply(console,[e])})):o.apply(console,[e]))}function Xn(e,...t){if(!S.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function Zn(e,t,r){const o=e=>e.replace("{step}",String(t)).replace("{steps}",String(r));if("string"===Vn(e))return o(e);if(!n.isValidElement(e))return e;const{children:i}=e.props;return"string"===Vn(i)&&i.includes("{step}")?n.cloneElement(e,{children:o(i)}):Array.isArray(i)?n.cloneElement(e,{children:i.map((e=>"string"==typeof e?o(e):Zn(e,t,r)))}):"function"!==Vn(e.type)||Object.values(e.props).length?e:Zn(e.type({}),t,r)}var Qn={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},er={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},tr={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:er,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},nr={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},rr={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},or={borderRadius:4,position:"absolute"};function ir(e){return function(e,...t){if(!S.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function sr(e,t){var n,r,o,i,s,a;const l=null!=t?t:{},c=J.all([tr,ir(e),l],{isMergeableObject:S.plainObject}),u=function(e,t){var n,r,o,i,s;const{floaterProps:a,styles:l}=e,c=J(null!=(n=t.floaterProps)?n:{},null!=a?a:{}),u=J(null!=l?l:{},null!=(r=t.styles)?r:{}),p=J(nr,u.options||{}),f="center"===t.placement||t.disableBeacon;let{width:d}=p;window.innerWidth>480&&(d=380),"width"in p&&(d="number"==typeof p.width&&window.innerWidth<p.width?window.innerWidth-30:p.width);const h={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:p.zIndex},y={beacon:{...rr,display:f?"none":"inline-block",height:p.beaconSize,position:"relative",width:p.beaconSize,zIndex:p.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:p.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Gn(p.primaryColor).join(",")}, 0.2)`,border:`2px solid ${p.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:p.backgroundColor,borderRadius:5,boxSizing:"border-box",color:p.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:d},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...rr,backgroundColor:p.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...rr,color:p.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...rr,color:p.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...rr,color:p.textColor,fontSize:14},overlay:{...h,backgroundColor:p.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...h},overlayLegacyCenter:{...h,backgroundColor:p.overlayColor},spotlight:{...or,backgroundColor:"gray"},spotlightLegacy:{...or,boxShadow:`0 0 0 9999px ${p.overlayColor}, ${p.spotlightShadow}`},floaterStyles:{arrow:{color:null!=(s=null==(i=null==(o=null==c?void 0:c.styles)?void 0:o.arrow)?void 0:i.color)?s:p.arrowColor},options:{zIndex:p.zIndex+100}},options:p};return J(y,u)}(e,c),p=Wn(_n(c.target),c.disableScrollParentFix),f=J.all([Qn,null!=(n=e.floaterProps)?n:{},null!=(r=c.floaterProps)?r:{}]);return f.offset=c.offset,f.styles=J(null!=(o=f.styles)?o:{},u.floaterStyles),f.offset+=null!=(s=null!=(i=e.spotlightPadding)?i:c.spotlightPadding)?s:0,c.placementBeacon&&f.wrapperOptions&&(f.wrapperOptions.placement=c.placementBeacon),p&&f.options.preventOverflow&&(f.options.preventOverflow.boundariesElement="window"),{...c,locale:J.all([er,null!=(a=e.locale)?a:{},c.locale||{}]),floaterProps:f,styles:Xn(u,"floaterStyles")}}function ar(e,t=!1){return S.plainObject(e)?!!e.target||(Jn({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Jn({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function lr(e,t=!1){return S.array(e)?e.every((e=>ar(e,t))):(Jn({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var cr,ur={action:"init",controlled:!1,index:0,lifecycle:Ln.INIT,origin:null,size:0,status:An.IDLE},pr=(cr=Xn(ur,"controlled","size"),Object.keys(cr)),fr=class{constructor(e){Sn(this,"beaconPopper"),Sn(this,"tooltipPopper"),Sn(this,"data",new Map),Sn(this,"listener"),Sn(this,"store",new Map),Sn(this,"addListener",(e=>{this.listener=e})),Sn(this,"setSteps",(e=>{const{size:t,status:n}=this.getState(),r={size:e.length,status:n};this.data.set("steps",e),n===An.WAITING&&!t&&e.length&&(r.status=An.RUNNING),this.setState(r)})),Sn(this,"getPopper",(e=>"beacon"===e?this.beaconPopper:this.tooltipPopper)),Sn(this,"setPopper",((e,t)=>{"beacon"===e?this.beaconPopper=t:this.tooltipPopper=t})),Sn(this,"cleanupPoppers",(()=>{this.beaconPopper=null,this.tooltipPopper=null})),Sn(this,"close",((e=null)=>{const{index:t,status:n}=this.getState();n===An.RUNNING&&this.setState({...this.getNextState({action:Cn,index:t+1,origin:e})})})),Sn(this,"go",(e=>{const{controlled:t,status:n}=this.getState();if(t||n!==An.RUNNING)return;const r=this.getSteps()[e];this.setState({...this.getNextState({action:"go",index:e}),status:r?n:An.FINISHED})})),Sn(this,"info",(()=>this.getState())),Sn(this,"next",(()=>{const{index:e,status:t}=this.getState();t===An.RUNNING&&this.setState(this.getNextState({action:Nn,index:e+1}))})),Sn(this,"open",(()=>{const{status:e}=this.getState();e===An.RUNNING&&this.setState({...this.getNextState({action:In,lifecycle:Ln.TOOLTIP})})})),Sn(this,"prev",(()=>{const{index:e,status:t}=this.getState();t===An.RUNNING&&this.setState({...this.getNextState({action:Pn,index:e-1})})})),Sn(this,"reset",((e=!1)=>{const{controlled:t}=this.getState();t||this.setState({...this.getNextState({action:kn,index:0}),status:e?An.RUNNING:An.READY})})),Sn(this,"skip",(()=>{const{status:e}=this.getState();e===An.RUNNING&&this.setState({action:jn,lifecycle:Ln.INIT,status:An.SKIPPED})})),Sn(this,"start",(e=>{const{index:t,size:n}=this.getState();this.setState({...this.getNextState({action:xn,index:S.number(e)?e:t},!0),status:n?An.RUNNING:An.WAITING})})),Sn(this,"stop",((e=!1)=>{const{index:t,status:n}=this.getState();[An.FINISHED,An.SKIPPED].includes(n)||this.setState({...this.getNextState({action:Tn,index:t+(e?1:0)}),status:An.PAUSED})})),Sn(this,"update",(e=>{var t,n,r,o;if(r=e,o=pr,!(S.plainObject(r)&&S.array(o)&&Object.keys(r).every((e=>o.includes(e)))))throw new Error(`State is not valid. Valid keys: ${pr.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...e,action:null!=(t=e.action)?t:In,origin:null!=(n=e.origin)?n:null},!0)})}));const{continuous:t=!1,stepIndex:n,steps:r=[]}=null!=e?e:{};this.setState({action:"init",controlled:S.number(n),continuous:t,index:S.number(n)?n:0,lifecycle:Ln.INIT,origin:null,status:r.length?An.READY:An.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...ur}}getNextState(e,t=!1){var n,r,o,i,s;const{action:a,controlled:l,index:c,size:u,status:p}=this.getState(),f=S.number(e.index)?e.index:c,d=l&&!t?c:Math.min(Math.max(f,0),u);return{action:null!=(n=e.action)?n:a,controlled:l,index:d,lifecycle:null!=(r=e.lifecycle)?r:Ln.INIT,origin:null!=(o=e.origin)?o:null,size:null!=(i=e.size)?i:u,status:d===u?An.FINISHED:null!=(s=e.status)?s:p}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}setState(e,t=!1){const n=this.getState(),{action:r,index:o,lifecycle:i,origin:s=null,size:a,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",o),this.store.set("lifecycle",i),this.store.set("origin",s),this.store.set("size",a),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}},dr=function({styles:e}){return s.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})},hr=class extends s.Component{constructor(){super(...arguments),Sn(this,"isActive",!1),Sn(this,"resizeTimeout"),Sn(this,"scrollTimeout"),Sn(this,"scrollParent"),Sn(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Sn(this,"hideSpotlight",(()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Ln.INIT,Ln.BEACON,Ln.COMPLETE,Ln.ERROR];return t||(e?r.includes(n):n!==Ln.TOOLTIP)})),Sn(this,"handleMouseMove",(e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:o,top:i,width:s}=this.spotlightStyles,a="fixed"===o?e.clientY:e.pageY,l="fixed"===o?e.clientX:e.pageX,c=l>=r&&l<=r+s&&a>=i&&a<=i+n;c!==t&&this.updateState({mouseOverSpotlight:c})})),Sn(this,"handleScroll",(()=>{const{target:e}=this.props,t=_n(e);if(this.scrollParent!==document){const{isScrolling:e}=this.state;e||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.updateState({isScrolling:!1,showSpotlight:!0})}),50)}else zn(t,"sticky")&&this.updateState({})})),Sn(this,"handleResize",(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.isActive&&this.forceUpdate()}),100)}))}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,o=_n(r);this.scrollParent=Bn(null!=o?o:document.body,n,!0),this.isActive=!0,"production"!==process.env.NODE_ENV&&!t&&Wn(o,!0)&&Jn({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:o,target:i}=this.props,{changed:s}=L(e,this.props);if(s("target")||s("disableScrollParentFix")){const e=_n(i);this.scrollParent=Bn(null!=e?e:document.body,n,!0)}s("lifecycle",Ln.TOOLTIP)&&(null==(t=this.scrollParent)||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((()=>{const{isScrolling:e}=this.state;e||this.updateState({showSpotlight:!0})}),100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(o&&r===Ln.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ln.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),null==(e=this.scrollParent)||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let o=r.overlay;return Kn()&&(o="center"===n?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Fn(),pointerEvents:e?"none":"auto",...o}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:o=!1,spotlightClicks:i,spotlightPadding:s=0,styles:a,target:l}=this.props,c=_n(l),u=Dn(c),p=zn(c),f=function(e,t,n){var r,o,i;const s=Dn(e),a=Bn(e,n),l=Wn(e,n),c=zn(e);let u=0,p=null!=(r=null==s?void 0:s.top)?r:0;return l&&c?p=(null!=(o=null==e?void 0:e.offsetTop)?o:0)-(null!=(i=null==a?void 0:a.scrollTop)?i:0):a instanceof HTMLElement&&(u=a.scrollTop,l||zn(e)||(p+=u),a.isSameNode(Hn())||(p+=Hn().scrollTop)),Math.floor(p-t)}(c,s,o);return{...Kn()?a.spotlightLegacy:a.spotlight,height:Math.round((null!=(e=null==u?void 0:u.height)?e:0)+2*s),left:Math.round((null!=(t=null==u?void 0:u.left)?t:0)-s),opacity:r?1:0,pointerEvents:i?"none":"auto",position:p?"fixed":"absolute",top:f,transition:"opacity 0.2s",width:Math.round((null!=(n=null==u?void 0:u.width)?n:0)+2*s)}}updateState(e){this.isActive&&this.setState((t=>({...t,...e})))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:o,spotlightStyles:i}=this;if(r())return null;let a="center"!==n&&e&&s.createElement(dr,{styles:i});if("safari"===$n()){const{mixBlendMode:e,zIndex:t,...n}=o;a=s.createElement("div",{style:{...n}},a),delete o.backgroundColor}return s.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:o},a)}},yr=class extends s.Component{constructor(){super(...arguments),Sn(this,"node",null)}componentDidMount(){const{id:e}=this.props;Mn()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Un||this.renderReact15())}componentDidUpdate(){Mn()&&(Un||this.renderReact15())}componentWillUnmount(){Mn()&&this.node&&(Un||a.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Mn())return;const{children:e}=this.props;this.node&&a.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Mn()||!Un)return null;const{children:e}=this.props;return this.node?a.createPortal(e,this.node):null}render(){return Un?this.renderReact16():null}},mr=class{constructor(e,t){if(Sn(this,"element"),Sn(this,"options"),Sn(this,"canBeTabbed",(e=>{const{tabIndex:t}=e;return!(null===t||t<0)&&this.canHaveFocus(e)})),Sn(this,"canHaveFocus",(e=>{const t=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(t)&&!e.getAttribute("disabled")||"a"===t&&!!e.getAttribute("href"))&&this.isVisible(e)})),Sn(this,"findValidTabElements",(()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed))),Sn(this,"handleKeyDown",(e=>{const{code:t="Tab"}=this.options;e.code===t&&this.interceptTab(e)})),Sn(this,"interceptTab",(e=>{e.preventDefault();const t=this.findValidTabElements(),{shiftKey:n}=e;if(!t.length)return;let r=document.activeElement?t.indexOf(document.activeElement):0;-1===r||!n&&r+1===t.length?r=0:n&&0===r?r=t.length-1:r+=n?-1:1,t[r].focus()})),Sn(this,"isHidden",(e=>{const t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display")})),Sn(this,"isVisible",(e=>{let t=e;for(;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(this.isHidden(t))return!1;t=t.parentNode}return!0})),Sn(this,"removeScope",(()=>{window.removeEventListener("keydown",this.handleKeyDown)})),Sn(this,"checkFocus",(e=>{document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((()=>this.checkFocus(e))))})),Sn(this,"setFocus",(()=>{const{selector:e}=this.options;if(!e)return;const t=this.element.querySelector(e);t&&window.requestAnimationFrame((()=>this.checkFocus(t)))})),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},br=class extends s.Component{constructor(e){if(super(e),Sn(this,"beacon",null),Sn(this,"setBeaconRef",(e=>{this.beacon=e})),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;"production"!==process.env.NODE_ENV&&S.domElement(this.beacon),setTimeout((()=>{S.domElement(this.beacon)&&e&&this.beacon.focus()}),0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:o,onClickOrHover:i,size:a,step:l,styles:c}=this.props,u=qn(o.open),p={"aria-label":u,onClick:i,onMouseEnter:i,ref:this.setBeaconRef,title:u};let f;if(e){const o=e;f=s.createElement(o,{continuous:t,index:n,isLastStep:r,size:a,step:l,...p})}else f=s.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...p},s.createElement("span",{style:c.beaconInner}),s.createElement("span",{style:c.beaconOuter}));return f}},gr=function({styles:e,...t}){const{color:r,height:o,width:i,...s}=e;return n.createElement("button",{style:s,type:"button",...t},n.createElement("svg",{height:"number"==typeof o?`${o}px`:o,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:"number"==typeof i?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",null,n.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))},vr=function(e){const{backProps:t,closeProps:n,index:r,isLastStep:o,primaryProps:i,skipProps:a,step:l,tooltipProps:c}=e,{content:u,hideBackButton:p,hideCloseButton:f,hideFooter:d,showSkipButton:h,styles:y,title:m}=l,b={};return b.primary=s.createElement("button",{"data-test-id":"button-primary",style:y.buttonNext,type:"button",...i}),h&&!o&&(b.skip=s.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:y.buttonSkip,type:"button",...a})),!p&&r>0&&(b.back=s.createElement("button",{"data-test-id":"button-back",style:y.buttonBack,type:"button",...t})),b.close=!f&&s.createElement(gr,{"data-test-id":"button-close",styles:y.buttonClose,...n}),s.createElement("div",{key:"JoyrideTooltip","aria-label":qn(null!=m?m:u),className:"react-joyride__tooltip",style:y.tooltip,...c},s.createElement("div",{style:y.tooltipContainer},m&&s.createElement("h1",{"aria-label":qn(m),style:y.tooltipTitle},m),s.createElement("div",{style:y.tooltipContent},u)),!d&&s.createElement("div",{style:y.tooltipFooter},s.createElement("div",{style:y.tooltipFooterSpacer},b.skip),b.back,b.primary),b.close)},wr=class extends s.Component{constructor(){super(...arguments),Sn(this,"handleClickBack",(e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()})),Sn(this,"handleClickClose",(e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")})),Sn(this,"handleClickPrimary",(e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;t?n.next():n.close("button_primary")})),Sn(this,"handleClickSkip",(e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()})),Sn(this,"getElementsProps",(()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:o,step:i}=this.props,{back:s,close:a,last:l,next:c,nextLabelWithProgress:u,skip:p}=i.locale,f=qn(s),d=qn(a),h=qn(l),y=qn(c),m=qn(p);let b=a,g=d;if(e){if(b=c,g=y,i.showProgress&&!n){const e=qn(u,{step:t+1,steps:o});b=Zn(u,t+1,o),g=e}n&&(b=l,g=h)}return{backProps:{"aria-label":f,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:f},closeProps:{"aria-label":d,children:a,"data-action":"close",onClick:this.handleClickClose,role:"button",title:d},primaryProps:{"aria-label":g,children:b,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:g},skipProps:{"aria-label":m,children:p,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:m},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}}))}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:o,step:i}=this.props,{beaconComponent:a,tooltipComponent:l,...c}=i;let u;if(l){const i={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:o,step:c,setTooltipRef:r},a=l;u=s.createElement(a,{...i})}else u=s.createElement(vr,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:o,step:i});return u}},Or=class extends s.Component{constructor(){super(...arguments),Sn(this,"scope",null),Sn(this,"tooltip",null),Sn(this,"handleClickHoverBeacon",(e=>{const{step:t,store:n}=this.props;"mouseenter"===e.type&&"hover"!==t.event||n.update({lifecycle:Ln.TOOLTIP})})),Sn(this,"setTooltipRef",(e=>{this.tooltip=e})),Sn(this,"setPopper",((e,t)=>{var n;const{action:r,lifecycle:o,step:i,store:s}=this.props;"wrapper"===t?s.setPopper("beacon",e):s.setPopper("tooltip",e),s.getPopper("beacon")&&(s.getPopper("tooltip")||"center"===i.placement)&&o===Ln.INIT&&s.update({action:r,lifecycle:Ln.READY}),(null==(n=i.floaterProps)?void 0:n.getPopper)&&i.floaterProps.getPopper(e,t)})),Sn(this,"renderTooltip",(e=>{const{continuous:t,helpers:n,index:r,size:o,step:i}=this.props;return s.createElement(wr,{continuous:t,helpers:n,index:r,isLastStep:r+1===o,setTooltipRef:this.setTooltipRef,size:o,step:i,...e})}))}componentDidMount(){const{debug:e,index:t}=this.props;Jn({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:o,controlled:i,debug:s,helpers:a,index:l,lifecycle:c,shouldScroll:u,status:p,step:f,store:d}=this.props,{changed:h,changedFrom:y}=L(e,this.props),m=a.info(),b=o&&n!==Cn&&(l>0||n===Pn),g=h("action")||h("index")||h("lifecycle")||h("status"),v=y("lifecycle",[Ln.TOOLTIP,Ln.INIT],Ln.INIT),w=h("action",[Nn,Pn,jn,Cn]),O=i&&l===e.index;if(w&&(v||O)&&r({...m,index:e.index,lifecycle:Ln.COMPLETE,step:e.step,type:Rn.STEP_AFTER}),"center"===f.placement&&p===An.RUNNING&&h("index")&&n!==xn&&c===Ln.INIT&&d.update({lifecycle:Ln.READY}),g){const e=_n(f.target);!!e&&function(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:e,visibility:t}=getComputedStyle(n);if("none"===e||"hidden"===t)return!1}n=null!=(t=n.parentElement)?t:null}return!0}(e)?(y("status",An.READY,An.RUNNING)||y("lifecycle",Ln.INIT,Ln.READY))&&r({...m,step:f,type:Rn.STEP_BEFORE}):(r({...m,type:Rn.TARGET_NOT_FOUND,step:f}),i||d.update({index:l+(n===Pn?-1:1)}))}y("lifecycle",Ln.INIT,Ln.READY)&&d.update({lifecycle:Yn(f)||b?Ln.TOOLTIP:Ln.BEACON}),h("index")&&Jn({title:`step:${c}`,data:[{key:"props",value:this.props}],debug:s}),h("lifecycle",Ln.BEACON)&&r({...m,step:f,type:Rn.BEACON}),h("lifecycle",Ln.TOOLTIP)&&(r({...m,step:f,type:Rn.TOOLTIP}),u&&this.tooltip&&(this.scope=new mr(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),y("lifecycle",[Ln.TOOLTIP,Ln.INIT],Ln.INIT)&&(null==(t=this.scope)||t.removeScope(),d.cleanupPoppers())}componentWillUnmount(){var e;null==(e=this.scope)||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return Yn(t)||e===Ln.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:o,size:i,step:a}=this.props,l=_n(a.target);return ar(a)&&S.domElement(l)?s.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},s.createElement(On,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},s.createElement(br,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===i,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:o,size:i,step:a,styles:a.styles}))):null}},Er=class extends s.Component{constructor(e){super(e),Sn(this,"helpers"),Sn(this,"store"),Sn(this,"callback",(e=>{const{callback:t}=this.props;S.function(t)&&t(e)})),Sn(this,"handleKeyboard",(e=>{const{index:t,lifecycle:n}=this.state,{steps:r}=this.props,o=r[t];n===Ln.TOOLTIP&&"Escape"===e.code&&o&&!o.disableCloseOnEsc&&this.store.close("keyboard")})),Sn(this,"handleClickOverlay",(()=>{const{index:e}=this.state,{steps:t}=this.props;sr(this.props,t[e]).disableOverlayClose||this.helpers.close("overlay")})),Sn(this,"syncState",(e=>{this.setState(e)}));const{debug:t,getHelpers:n,run:r=!0,stepIndex:o}=e;var i;this.store=(i={...e,controlled:r&&S.number(o)},new fr(i)),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;Jn({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),s(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Mn())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:o}=this.store;lr(r,e)&&n&&o(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Mn())return;const{action:n,controlled:r,index:o,status:i}=this.state,{debug:s,run:a,stepIndex:l,steps:c}=this.props,{stepIndex:u,steps:p}=e,{reset:f,setSteps:h,start:y,stop:m,update:b}=this.store,{changed:g}=L(e,this.props),{changed:v,changedFrom:w}=L(t,this.state),O=sr(this.props,c[o]),E=!d(p,c),x=S.number(l)&&g("stepIndex"),T=_n(O.target);if(E&&(lr(c,s)&&h(c)),g("run")&&(a?y(l):m()),x){let e=S.number(u)&&u<l?Nn:Pn;n===Tn&&(e=xn),[An.FINISHED,An.SKIPPED].includes(i)||b({action:n===Cn?Cn:e,index:l,lifecycle:Ln.INIT})}r||i!==An.RUNNING||0!==o||T||(this.store.update({index:o+1}),this.callback({...this.state,type:Rn.TARGET_NOT_FOUND,step:O}));const k={...this.state,index:o,step:O};if(v("action",[Nn,Pn,jn,Cn])&&v("status",An.PAUSED)){const e=sr(this.props,c[t.index]);this.callback({...k,index:t.index,lifecycle:Ln.COMPLETE,step:e,type:Rn.STEP_AFTER})}if(v("status",[An.FINISHED,An.SKIPPED])){const e=sr(this.props,c[t.index]);r||this.callback({...k,index:t.index,lifecycle:Ln.COMPLETE,step:e,type:Rn.STEP_AFTER}),this.callback({...k,type:Rn.TOUR_END,step:e,index:t.index}),f()}else w("status",[An.IDLE,An.READY],An.RUNNING)?this.callback({...k,type:Rn.TOUR_START}):(v("status")||v("action",kn))&&this.callback({...k,type:Rn.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:o,disableScrollParentFix:i=!1,scrollDuration:s,scrollOffset:a=20,scrollToFirstStep:l=!1,steps:c}=this.props,u=sr(this.props,c[t]),p=_n(u.target),f=function(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:o,step:i,target:s}=e;return!i.disableScrolling&&(!t||o||n===Ln.TOOLTIP)&&"center"!==i.placement&&(!i.isFixed||!zn(s))&&r!==n&&[Ln.BEACON,Ln.TOOLTIP].includes(n)}({isFirstStep:0===t,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:u,target:p});if(r===An.RUNNING&&f){const e=Wn(p,i),l=Bn(p,i);let c=Math.floor(function(e,t,n){var r;if(!e)return 0;const{offsetTop:o=0,scrollTop:i=0}=null!=(r=H(e))?r:{};let s=e.getBoundingClientRect().top+i;o&&(Wn(e,n)||e.offsetParent!==document.body)&&(s-=o);const a=Math.floor(s-t);return a<0?0:a}(p,a,i))||0;Jn({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:o});const f=this.store.getPopper("beacon"),d=this.store.getPopper("tooltip");if(n===Ln.BEACON&&f){const{offsets:t,placement:n}=f;["bottom"].includes(n)||e||(c=Math.floor(t.popper.top-a))}else if(n===Ln.TOOLTIP&&d){const{flipped:t,offsets:n,placement:r}=d;!["top","right","left"].includes(r)||t||e?c-=u.spotlightPadding:c=Math.floor(n.popper.top-a)}c=c>=0?c:0,r===An.RUNNING&&function(e,t){const{duration:n,element:r}=t;return new Promise(((t,o)=>{const{scrollTop:i}=r,s=e>i?e-i:i-e;M.top(r,e,{duration:s<100?50:n},(e=>e&&"Element already at target scroll position"!==e.message?o(e):t()))}))}(c,{element:l,duration:s}).then((()=>{setTimeout((()=>{var e;null==(e=this.store.getPopper("tooltip"))||e.instance.update()}),10)}))}}render(){if(!Mn())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:o=!1,nonce:i,scrollToFirstStep:a=!1,steps:l}=this.props,c={};if(n===An.RUNNING&&l[e]){const n=sr(this.props,l[e]);c.step=s.createElement(Or,{...this.state,callback:this.callback,continuous:r,debug:o,helpers:this.helpers,nonce:i,shouldScroll:!n.disableScrolling&&(0!==e||a),step:n,store:this.store}),c.overlay=s.createElement(yr,{id:"react-joyride-portal"},s.createElement(hr,{...n,continuous:r,debug:o,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return s.createElement("div",{className:"react-joyride"},c.step,c.overlay)}};Sn(Er,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var Sr=Er;exports.Tour=({run:r,steps:o,onFinish:i})=>{const[s,a]=n.useState(r),[l,c]=n.useState(0),u=n.useCallback((e=>{const{action:n,index:r,status:o,type:s}=e;[Rn.STEP_AFTER,Rn.TARGET_NOT_FOUND].includes(s)?c(r+(n===Pn?-1:1)):([An.FINISHED,An.SKIPPED].includes(o)||"close"===n)&&(a(!1),t.isUndefined(i)||i())}),[i]);return e.jsx(Sr,{callback:u,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:s,spotlightClicks:!0,stepIndex:l,steps:o,styles:{buttonNext:{display:l===o.length-1?"none":"block"},options:{zIndex:9999}}})},exports.baseStep={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""};
|
|
1171
|
+
*/
|
|
1172
|
+
var De = typeof window < "u" && typeof document < "u" && typeof navigator < "u", Qn = function() {
|
|
1173
|
+
for (var e = ["Edge", "Trident", "Firefox"], t = 0; t < e.length; t += 1)
|
|
1174
|
+
if (De && navigator.userAgent.indexOf(e[t]) >= 0)
|
|
1175
|
+
return 1;
|
|
1176
|
+
return 0;
|
|
1177
|
+
}();
|
|
1178
|
+
function eo(e) {
|
|
1179
|
+
var t = !1;
|
|
1180
|
+
return function() {
|
|
1181
|
+
t || (t = !0, window.Promise.resolve().then(function() {
|
|
1182
|
+
t = !1, e();
|
|
1183
|
+
}));
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
function to(e) {
|
|
1187
|
+
var t = !1;
|
|
1188
|
+
return function() {
|
|
1189
|
+
t || (t = !0, setTimeout(function() {
|
|
1190
|
+
t = !1, e();
|
|
1191
|
+
}, Qn));
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
var ro = De && window.Promise, no = ro ? eo : to;
|
|
1195
|
+
function Fr(e) {
|
|
1196
|
+
var t = {};
|
|
1197
|
+
return e && t.toString.call(e) === "[object Function]";
|
|
1198
|
+
}
|
|
1199
|
+
function Ee(e, t) {
|
|
1200
|
+
if (e.nodeType !== 1)
|
|
1201
|
+
return [];
|
|
1202
|
+
var r = e.ownerDocument.defaultView, n = r.getComputedStyle(e, null);
|
|
1203
|
+
return t ? n[t] : n;
|
|
1204
|
+
}
|
|
1205
|
+
function kt(e) {
|
|
1206
|
+
return e.nodeName === "HTML" ? e : e.parentNode || e.host;
|
|
1207
|
+
}
|
|
1208
|
+
function $e(e) {
|
|
1209
|
+
if (!e)
|
|
1210
|
+
return document.body;
|
|
1211
|
+
switch (e.nodeName) {
|
|
1212
|
+
case "HTML":
|
|
1213
|
+
case "BODY":
|
|
1214
|
+
return e.ownerDocument.body;
|
|
1215
|
+
case "#document":
|
|
1216
|
+
return e.body;
|
|
1217
|
+
}
|
|
1218
|
+
var t = Ee(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
1219
|
+
return /(auto|scroll|overlay)/.test(r + o + n) ? e : $e(kt(e));
|
|
1220
|
+
}
|
|
1221
|
+
function Dr(e) {
|
|
1222
|
+
return e && e.referenceNode ? e.referenceNode : e;
|
|
1223
|
+
}
|
|
1224
|
+
var fr = De && !!(window.MSInputMethodContext && document.documentMode), pr = De && /MSIE 10/.test(navigator.userAgent);
|
|
1225
|
+
function Re(e) {
|
|
1226
|
+
return e === 11 ? fr : e === 10 ? pr : fr || pr;
|
|
1227
|
+
}
|
|
1228
|
+
function Se(e) {
|
|
1229
|
+
if (!e)
|
|
1230
|
+
return document.documentElement;
|
|
1231
|
+
for (var t = Re(10) ? document.body : null, r = e.offsetParent || null; r === t && e.nextElementSibling; )
|
|
1232
|
+
r = (e = e.nextElementSibling).offsetParent;
|
|
1233
|
+
var n = r && r.nodeName;
|
|
1234
|
+
return !n || n === "BODY" || n === "HTML" ? e ? e.ownerDocument.documentElement : document.documentElement : ["TH", "TD", "TABLE"].indexOf(r.nodeName) !== -1 && Ee(r, "position") === "static" ? Se(r) : r;
|
|
1235
|
+
}
|
|
1236
|
+
function oo(e) {
|
|
1237
|
+
var t = e.nodeName;
|
|
1238
|
+
return t === "BODY" ? !1 : t === "HTML" || Se(e.firstElementChild) === e;
|
|
1239
|
+
}
|
|
1240
|
+
function Pt(e) {
|
|
1241
|
+
return e.parentNode !== null ? Pt(e.parentNode) : e;
|
|
1242
|
+
}
|
|
1243
|
+
function nt(e, t) {
|
|
1244
|
+
if (!e || !e.nodeType || !t || !t.nodeType)
|
|
1245
|
+
return document.documentElement;
|
|
1246
|
+
var r = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING, n = r ? e : t, o = r ? t : e, i = document.createRange();
|
|
1247
|
+
i.setStart(n, 0), i.setEnd(o, 0);
|
|
1248
|
+
var s = i.commonAncestorContainer;
|
|
1249
|
+
if (e !== s && t !== s || n.contains(o))
|
|
1250
|
+
return oo(s) ? s : Se(s);
|
|
1251
|
+
var a = Pt(e);
|
|
1252
|
+
return a.host ? nt(a.host, t) : nt(e, Pt(t).host);
|
|
1253
|
+
}
|
|
1254
|
+
function Te(e) {
|
|
1255
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "top", r = t === "top" ? "scrollTop" : "scrollLeft", n = e.nodeName;
|
|
1256
|
+
if (n === "BODY" || n === "HTML") {
|
|
1257
|
+
var o = e.ownerDocument.documentElement, i = e.ownerDocument.scrollingElement || o;
|
|
1258
|
+
return i[r];
|
|
1259
|
+
}
|
|
1260
|
+
return e[r];
|
|
1261
|
+
}
|
|
1262
|
+
function io(e, t) {
|
|
1263
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = Te(t, "top"), o = Te(t, "left"), i = r ? -1 : 1;
|
|
1264
|
+
return e.top += n * i, e.bottom += n * i, e.left += o * i, e.right += o * i, e;
|
|
1265
|
+
}
|
|
1266
|
+
function dr(e, t) {
|
|
1267
|
+
var r = t === "x" ? "Left" : "Top", n = r === "Left" ? "Right" : "Bottom";
|
|
1268
|
+
return parseFloat(e["border" + r + "Width"]) + parseFloat(e["border" + n + "Width"]);
|
|
1269
|
+
}
|
|
1270
|
+
function hr(e, t, r, n) {
|
|
1271
|
+
return Math.max(t["offset" + e], t["scroll" + e], r["client" + e], r["offset" + e], r["scroll" + e], Re(10) ? parseInt(r["offset" + e]) + parseInt(n["margin" + (e === "Height" ? "Top" : "Left")]) + parseInt(n["margin" + (e === "Height" ? "Bottom" : "Right")]) : 0);
|
|
1272
|
+
}
|
|
1273
|
+
function $r(e) {
|
|
1274
|
+
var t = e.body, r = e.documentElement, n = Re(10) && getComputedStyle(r);
|
|
1275
|
+
return {
|
|
1276
|
+
height: hr("Height", t, r, n),
|
|
1277
|
+
width: hr("Width", t, r, n)
|
|
1278
|
+
};
|
|
1279
|
+
}
|
|
1280
|
+
var so = function(e, t) {
|
|
1281
|
+
if (!(e instanceof t))
|
|
1282
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1283
|
+
}, ao = /* @__PURE__ */ function() {
|
|
1284
|
+
function e(t, r) {
|
|
1285
|
+
for (var n = 0; n < r.length; n++) {
|
|
1286
|
+
var o = r[n];
|
|
1287
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
return function(t, r, n) {
|
|
1291
|
+
return r && e(t.prototype, r), n && e(t, n), t;
|
|
1292
|
+
};
|
|
1293
|
+
}(), Pe = function(e, t, r) {
|
|
1294
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
1295
|
+
value: r,
|
|
1296
|
+
enumerable: !0,
|
|
1297
|
+
configurable: !0,
|
|
1298
|
+
writable: !0
|
|
1299
|
+
}) : e[t] = r, e;
|
|
1300
|
+
}, te = Object.assign || function(e) {
|
|
1301
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1302
|
+
var r = arguments[t];
|
|
1303
|
+
for (var n in r)
|
|
1304
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
1305
|
+
}
|
|
1306
|
+
return e;
|
|
1307
|
+
};
|
|
1308
|
+
function me(e) {
|
|
1309
|
+
return te({}, e, {
|
|
1310
|
+
right: e.left + e.width,
|
|
1311
|
+
bottom: e.top + e.height
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
function xt(e) {
|
|
1315
|
+
var t = {};
|
|
1316
|
+
try {
|
|
1317
|
+
if (Re(10)) {
|
|
1318
|
+
t = e.getBoundingClientRect();
|
|
1319
|
+
var r = Te(e, "top"), n = Te(e, "left");
|
|
1320
|
+
t.top += r, t.left += n, t.bottom += r, t.right += n;
|
|
1321
|
+
} else
|
|
1322
|
+
t = e.getBoundingClientRect();
|
|
1323
|
+
} catch {
|
|
1324
|
+
}
|
|
1325
|
+
var o = {
|
|
1326
|
+
left: t.left,
|
|
1327
|
+
top: t.top,
|
|
1328
|
+
width: t.right - t.left,
|
|
1329
|
+
height: t.bottom - t.top
|
|
1330
|
+
}, i = e.nodeName === "HTML" ? $r(e.ownerDocument) : {}, s = i.width || e.clientWidth || o.width, a = i.height || e.clientHeight || o.height, l = e.offsetWidth - s, u = e.offsetHeight - a;
|
|
1331
|
+
if (l || u) {
|
|
1332
|
+
var f = Ee(e);
|
|
1333
|
+
l -= dr(f, "x"), u -= dr(f, "y"), o.width -= l, o.height -= u;
|
|
1334
|
+
}
|
|
1335
|
+
return me(o);
|
|
1336
|
+
}
|
|
1337
|
+
function jt(e, t) {
|
|
1338
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = Re(10), o = t.nodeName === "HTML", i = xt(e), s = xt(t), a = $e(e), l = Ee(t), u = parseFloat(l.borderTopWidth), f = parseFloat(l.borderLeftWidth);
|
|
1339
|
+
r && o && (s.top = Math.max(s.top, 0), s.left = Math.max(s.left, 0));
|
|
1340
|
+
var c = me({
|
|
1341
|
+
top: i.top - s.top - u,
|
|
1342
|
+
left: i.left - s.left - f,
|
|
1343
|
+
width: i.width,
|
|
1344
|
+
height: i.height
|
|
1345
|
+
});
|
|
1346
|
+
if (c.marginTop = 0, c.marginLeft = 0, !n && o) {
|
|
1347
|
+
var p = parseFloat(l.marginTop), d = parseFloat(l.marginLeft);
|
|
1348
|
+
c.top -= u - p, c.bottom -= u - p, c.left -= f - d, c.right -= f - d, c.marginTop = p, c.marginLeft = d;
|
|
1349
|
+
}
|
|
1350
|
+
return (n && !r ? t.contains(a) : t === a && a.nodeName !== "BODY") && (c = io(c, t)), c;
|
|
1351
|
+
}
|
|
1352
|
+
function lo(e) {
|
|
1353
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = e.ownerDocument.documentElement, n = jt(e, r), o = Math.max(r.clientWidth, window.innerWidth || 0), i = Math.max(r.clientHeight, window.innerHeight || 0), s = t ? 0 : Te(r), a = t ? 0 : Te(r, "left"), l = {
|
|
1354
|
+
top: s - n.top + n.marginTop,
|
|
1355
|
+
left: a - n.left + n.marginLeft,
|
|
1356
|
+
width: o,
|
|
1357
|
+
height: i
|
|
1358
|
+
};
|
|
1359
|
+
return me(l);
|
|
1360
|
+
}
|
|
1361
|
+
function Wr(e) {
|
|
1362
|
+
var t = e.nodeName;
|
|
1363
|
+
if (t === "BODY" || t === "HTML")
|
|
1364
|
+
return !1;
|
|
1365
|
+
if (Ee(e, "position") === "fixed")
|
|
1366
|
+
return !0;
|
|
1367
|
+
var r = kt(e);
|
|
1368
|
+
return r ? Wr(r) : !1;
|
|
1369
|
+
}
|
|
1370
|
+
function Br(e) {
|
|
1371
|
+
if (!e || !e.parentElement || Re())
|
|
1372
|
+
return document.documentElement;
|
|
1373
|
+
for (var t = e.parentElement; t && Ee(t, "transform") === "none"; )
|
|
1374
|
+
t = t.parentElement;
|
|
1375
|
+
return t || document.documentElement;
|
|
1376
|
+
}
|
|
1377
|
+
function Lt(e, t, r, n) {
|
|
1378
|
+
var o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, i = { top: 0, left: 0 }, s = o ? Br(e) : nt(e, Dr(t));
|
|
1379
|
+
if (n === "viewport")
|
|
1380
|
+
i = lo(s, o);
|
|
1381
|
+
else {
|
|
1382
|
+
var a = void 0;
|
|
1383
|
+
n === "scrollParent" ? (a = $e(kt(t)), a.nodeName === "BODY" && (a = e.ownerDocument.documentElement)) : n === "window" ? a = e.ownerDocument.documentElement : a = n;
|
|
1384
|
+
var l = jt(a, s, o);
|
|
1385
|
+
if (a.nodeName === "HTML" && !Wr(s)) {
|
|
1386
|
+
var u = $r(e.ownerDocument), f = u.height, c = u.width;
|
|
1387
|
+
i.top += l.top - l.marginTop, i.bottom = f + l.top, i.left += l.left - l.marginLeft, i.right = c + l.left;
|
|
1388
|
+
} else
|
|
1389
|
+
i = l;
|
|
1390
|
+
}
|
|
1391
|
+
r = r || 0;
|
|
1392
|
+
var p = typeof r == "number";
|
|
1393
|
+
return i.left += p ? r : r.left || 0, i.top += p ? r : r.top || 0, i.right -= p ? r : r.right || 0, i.bottom -= p ? r : r.bottom || 0, i;
|
|
1394
|
+
}
|
|
1395
|
+
function co(e) {
|
|
1396
|
+
var t = e.width, r = e.height;
|
|
1397
|
+
return t * r;
|
|
1398
|
+
}
|
|
1399
|
+
function Ur(e, t, r, n, o) {
|
|
1400
|
+
var i = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
|
|
1401
|
+
if (e.indexOf("auto") === -1)
|
|
1402
|
+
return e;
|
|
1403
|
+
var s = Lt(r, n, i, o), a = {
|
|
1404
|
+
top: {
|
|
1405
|
+
width: s.width,
|
|
1406
|
+
height: t.top - s.top
|
|
1407
|
+
},
|
|
1408
|
+
right: {
|
|
1409
|
+
width: s.right - t.right,
|
|
1410
|
+
height: s.height
|
|
1411
|
+
},
|
|
1412
|
+
bottom: {
|
|
1413
|
+
width: s.width,
|
|
1414
|
+
height: s.bottom - t.bottom
|
|
1415
|
+
},
|
|
1416
|
+
left: {
|
|
1417
|
+
width: t.left - s.left,
|
|
1418
|
+
height: s.height
|
|
1419
|
+
}
|
|
1420
|
+
}, l = Object.keys(a).map(function(p) {
|
|
1421
|
+
return te({
|
|
1422
|
+
key: p
|
|
1423
|
+
}, a[p], {
|
|
1424
|
+
area: co(a[p])
|
|
1425
|
+
});
|
|
1426
|
+
}).sort(function(p, d) {
|
|
1427
|
+
return d.area - p.area;
|
|
1428
|
+
}), u = l.filter(function(p) {
|
|
1429
|
+
var d = p.width, h = p.height;
|
|
1430
|
+
return d >= r.clientWidth && h >= r.clientHeight;
|
|
1431
|
+
}), f = u.length > 0 ? u[0].key : l[0].key, c = e.split("-")[1];
|
|
1432
|
+
return f + (c ? "-" + c : "");
|
|
1433
|
+
}
|
|
1434
|
+
function zr(e, t, r) {
|
|
1435
|
+
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, o = n ? Br(t) : nt(t, Dr(r));
|
|
1436
|
+
return jt(r, o, n);
|
|
1437
|
+
}
|
|
1438
|
+
function qr(e) {
|
|
1439
|
+
var t = e.ownerDocument.defaultView, r = t.getComputedStyle(e), n = parseFloat(r.marginTop || 0) + parseFloat(r.marginBottom || 0), o = parseFloat(r.marginLeft || 0) + parseFloat(r.marginRight || 0), i = {
|
|
1440
|
+
width: e.offsetWidth + o,
|
|
1441
|
+
height: e.offsetHeight + n
|
|
1442
|
+
};
|
|
1443
|
+
return i;
|
|
1444
|
+
}
|
|
1445
|
+
function ot(e) {
|
|
1446
|
+
var t = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
1447
|
+
return e.replace(/left|right|bottom|top/g, function(r) {
|
|
1448
|
+
return t[r];
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
function Hr(e, t, r) {
|
|
1452
|
+
r = r.split("-")[0];
|
|
1453
|
+
var n = qr(e), o = {
|
|
1454
|
+
width: n.width,
|
|
1455
|
+
height: n.height
|
|
1456
|
+
}, i = ["right", "left"].indexOf(r) !== -1, s = i ? "top" : "left", a = i ? "left" : "top", l = i ? "height" : "width", u = i ? "width" : "height";
|
|
1457
|
+
return o[s] = t[s] + t[l] / 2 - n[l] / 2, r === a ? o[a] = t[a] - n[u] : o[a] = t[ot(a)], o;
|
|
1458
|
+
}
|
|
1459
|
+
function We(e, t) {
|
|
1460
|
+
return Array.prototype.find ? e.find(t) : e.filter(t)[0];
|
|
1461
|
+
}
|
|
1462
|
+
function uo(e, t, r) {
|
|
1463
|
+
if (Array.prototype.findIndex)
|
|
1464
|
+
return e.findIndex(function(o) {
|
|
1465
|
+
return o[t] === r;
|
|
1466
|
+
});
|
|
1467
|
+
var n = We(e, function(o) {
|
|
1468
|
+
return o[t] === r;
|
|
1469
|
+
});
|
|
1470
|
+
return e.indexOf(n);
|
|
1471
|
+
}
|
|
1472
|
+
function Vr(e, t, r) {
|
|
1473
|
+
var n = r === void 0 ? e : e.slice(0, uo(e, "name", r));
|
|
1474
|
+
return n.forEach(function(o) {
|
|
1475
|
+
o.function && console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
|
|
1476
|
+
var i = o.function || o.fn;
|
|
1477
|
+
o.enabled && Fr(i) && (t.offsets.popper = me(t.offsets.popper), t.offsets.reference = me(t.offsets.reference), t = i(t, o));
|
|
1478
|
+
}), t;
|
|
1479
|
+
}
|
|
1480
|
+
function fo() {
|
|
1481
|
+
if (!this.state.isDestroyed) {
|
|
1482
|
+
var e = {
|
|
1483
|
+
instance: this,
|
|
1484
|
+
styles: {},
|
|
1485
|
+
arrowStyles: {},
|
|
1486
|
+
attributes: {},
|
|
1487
|
+
flipped: !1,
|
|
1488
|
+
offsets: {}
|
|
1489
|
+
};
|
|
1490
|
+
e.offsets.reference = zr(this.state, this.popper, this.reference, this.options.positionFixed), e.placement = Ur(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.positionFixed = this.options.positionFixed, e.offsets.popper = Hr(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = this.options.positionFixed ? "fixed" : "absolute", e = Vr(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e));
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
function Gr(e, t) {
|
|
1494
|
+
return e.some(function(r) {
|
|
1495
|
+
var n = r.name, o = r.enabled;
|
|
1496
|
+
return o && n === t;
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
function Mt(e) {
|
|
1500
|
+
for (var t = [!1, "ms", "Webkit", "Moz", "O"], r = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < t.length; n++) {
|
|
1501
|
+
var o = t[n], i = o ? "" + o + r : e;
|
|
1502
|
+
if (typeof document.body.style[i] < "u")
|
|
1503
|
+
return i;
|
|
1504
|
+
}
|
|
1505
|
+
return null;
|
|
1506
|
+
}
|
|
1507
|
+
function po() {
|
|
1508
|
+
return this.state.isDestroyed = !0, Gr(this.modifiers, "applyStyle") && (this.popper.removeAttribute("x-placement"), this.popper.style.position = "", this.popper.style.top = "", this.popper.style.left = "", this.popper.style.right = "", this.popper.style.bottom = "", this.popper.style.willChange = "", this.popper.style[Mt("transform")] = ""), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this;
|
|
1509
|
+
}
|
|
1510
|
+
function Yr(e) {
|
|
1511
|
+
var t = e.ownerDocument;
|
|
1512
|
+
return t ? t.defaultView : window;
|
|
1513
|
+
}
|
|
1514
|
+
function Kr(e, t, r, n) {
|
|
1515
|
+
var o = e.nodeName === "BODY", i = o ? e.ownerDocument.defaultView : e;
|
|
1516
|
+
i.addEventListener(t, r, { passive: !0 }), o || Kr($e(i.parentNode), t, r, n), n.push(i);
|
|
1517
|
+
}
|
|
1518
|
+
function ho(e, t, r, n) {
|
|
1519
|
+
r.updateBound = n, Yr(e).addEventListener("resize", r.updateBound, { passive: !0 });
|
|
1520
|
+
var o = $e(e);
|
|
1521
|
+
return Kr(o, "scroll", r.updateBound, r.scrollParents), r.scrollElement = o, r.eventsEnabled = !0, r;
|
|
1522
|
+
}
|
|
1523
|
+
function yo() {
|
|
1524
|
+
this.state.eventsEnabled || (this.state = ho(this.reference, this.options, this.state, this.scheduleUpdate));
|
|
1525
|
+
}
|
|
1526
|
+
function mo(e, t) {
|
|
1527
|
+
return Yr(e).removeEventListener("resize", t.updateBound), t.scrollParents.forEach(function(r) {
|
|
1528
|
+
r.removeEventListener("scroll", t.updateBound);
|
|
1529
|
+
}), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t;
|
|
1530
|
+
}
|
|
1531
|
+
function vo() {
|
|
1532
|
+
this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = mo(this.reference, this.state));
|
|
1533
|
+
}
|
|
1534
|
+
function Ft(e) {
|
|
1535
|
+
return e !== "" && !isNaN(parseFloat(e)) && isFinite(e);
|
|
1536
|
+
}
|
|
1537
|
+
function Ct(e, t) {
|
|
1538
|
+
Object.keys(t).forEach(function(r) {
|
|
1539
|
+
var n = "";
|
|
1540
|
+
["width", "height", "top", "right", "bottom", "left"].indexOf(r) !== -1 && Ft(t[r]) && (n = "px"), e.style[r] = t[r] + n;
|
|
1541
|
+
});
|
|
1542
|
+
}
|
|
1543
|
+
function go(e, t) {
|
|
1544
|
+
Object.keys(t).forEach(function(r) {
|
|
1545
|
+
var n = t[r];
|
|
1546
|
+
n !== !1 ? e.setAttribute(r, t[r]) : e.removeAttribute(r);
|
|
1547
|
+
});
|
|
1548
|
+
}
|
|
1549
|
+
function bo(e) {
|
|
1550
|
+
return Ct(e.instance.popper, e.styles), go(e.instance.popper, e.attributes), e.arrowElement && Object.keys(e.arrowStyles).length && Ct(e.arrowElement, e.arrowStyles), e;
|
|
1551
|
+
}
|
|
1552
|
+
function Eo(e, t, r, n, o) {
|
|
1553
|
+
var i = zr(o, t, e, r.positionFixed), s = Ur(r.placement, i, t, e, r.modifiers.flip.boundariesElement, r.modifiers.flip.padding);
|
|
1554
|
+
return t.setAttribute("x-placement", s), Ct(t, { position: r.positionFixed ? "fixed" : "absolute" }), r;
|
|
1555
|
+
}
|
|
1556
|
+
function Oo(e, t) {
|
|
1557
|
+
var r = e.offsets, n = r.popper, o = r.reference, i = Math.round, s = Math.floor, a = function(g) {
|
|
1558
|
+
return g;
|
|
1559
|
+
}, l = i(o.width), u = i(n.width), f = ["left", "right"].indexOf(e.placement) !== -1, c = e.placement.indexOf("-") !== -1, p = l % 2 === u % 2, d = l % 2 === 1 && u % 2 === 1, h = t ? f || c || p ? i : s : a, m = t ? i : a;
|
|
1560
|
+
return {
|
|
1561
|
+
left: h(d && !c && t ? n.left - 1 : n.left),
|
|
1562
|
+
top: m(n.top),
|
|
1563
|
+
bottom: m(n.bottom),
|
|
1564
|
+
right: h(n.right)
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
var wo = De && /Firefox/i.test(navigator.userAgent);
|
|
1568
|
+
function So(e, t) {
|
|
1569
|
+
var r = t.x, n = t.y, o = e.offsets.popper, i = We(e.instance.modifiers, function(S) {
|
|
1570
|
+
return S.name === "applyStyle";
|
|
1571
|
+
}).gpuAcceleration;
|
|
1572
|
+
i !== void 0 && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
|
|
1573
|
+
var s = i !== void 0 ? i : t.gpuAcceleration, a = Se(e.instance.popper), l = xt(a), u = {
|
|
1574
|
+
position: o.position
|
|
1575
|
+
}, f = Oo(e, window.devicePixelRatio < 2 || !wo), c = r === "bottom" ? "top" : "bottom", p = n === "right" ? "left" : "right", d = Mt("transform"), h = void 0, m = void 0;
|
|
1576
|
+
if (c === "bottom" ? a.nodeName === "HTML" ? m = -a.clientHeight + f.bottom : m = -l.height + f.bottom : m = f.top, p === "right" ? a.nodeName === "HTML" ? h = -a.clientWidth + f.right : h = -l.width + f.right : h = f.left, s && d)
|
|
1577
|
+
u[d] = "translate3d(" + h + "px, " + m + "px, 0)", u[c] = 0, u[p] = 0, u.willChange = "transform";
|
|
1578
|
+
else {
|
|
1579
|
+
var w = c === "bottom" ? -1 : 1, g = p === "right" ? -1 : 1;
|
|
1580
|
+
u[c] = m * w, u[p] = h * g, u.willChange = c + ", " + p;
|
|
1581
|
+
}
|
|
1582
|
+
var v = {
|
|
1583
|
+
"x-placement": e.placement
|
|
1584
|
+
};
|
|
1585
|
+
return e.attributes = te({}, v, e.attributes), e.styles = te({}, u, e.styles), e.arrowStyles = te({}, e.offsets.arrow, e.arrowStyles), e;
|
|
1586
|
+
}
|
|
1587
|
+
function Jr(e, t, r) {
|
|
1588
|
+
var n = We(e, function(a) {
|
|
1589
|
+
var l = a.name;
|
|
1590
|
+
return l === t;
|
|
1591
|
+
}), o = !!n && e.some(function(a) {
|
|
1592
|
+
return a.name === r && a.enabled && a.order < n.order;
|
|
1593
|
+
});
|
|
1594
|
+
if (!o) {
|
|
1595
|
+
var i = "`" + t + "`", s = "`" + r + "`";
|
|
1596
|
+
console.warn(s + " modifier is required by " + i + " modifier in order to work, be sure to include it before " + i + "!");
|
|
1597
|
+
}
|
|
1598
|
+
return o;
|
|
1599
|
+
}
|
|
1600
|
+
function To(e, t) {
|
|
1601
|
+
var r;
|
|
1602
|
+
if (!Jr(e.instance.modifiers, "arrow", "keepTogether"))
|
|
1603
|
+
return e;
|
|
1604
|
+
var n = t.element;
|
|
1605
|
+
if (typeof n == "string") {
|
|
1606
|
+
if (n = e.instance.popper.querySelector(n), !n)
|
|
1607
|
+
return e;
|
|
1608
|
+
} else if (!e.instance.popper.contains(n))
|
|
1609
|
+
return console.warn("WARNING: `arrow.element` must be child of its popper element!"), e;
|
|
1610
|
+
var o = e.placement.split("-")[0], i = e.offsets, s = i.popper, a = i.reference, l = ["left", "right"].indexOf(o) !== -1, u = l ? "height" : "width", f = l ? "Top" : "Left", c = f.toLowerCase(), p = l ? "left" : "top", d = l ? "bottom" : "right", h = qr(n)[u];
|
|
1611
|
+
a[d] - h < s[c] && (e.offsets.popper[c] -= s[c] - (a[d] - h)), a[c] + h > s[d] && (e.offsets.popper[c] += a[c] + h - s[d]), e.offsets.popper = me(e.offsets.popper);
|
|
1612
|
+
var m = a[c] + a[u] / 2 - h / 2, w = Ee(e.instance.popper), g = parseFloat(w["margin" + f]), v = parseFloat(w["border" + f + "Width"]), S = m - e.offsets.popper[c] - g - v;
|
|
1613
|
+
return S = Math.max(Math.min(s[u] - h, S), 0), e.arrowElement = n, e.offsets.arrow = (r = {}, Pe(r, c, Math.round(S)), Pe(r, p, ""), r), e;
|
|
1614
|
+
}
|
|
1615
|
+
function Po(e) {
|
|
1616
|
+
return e === "end" ? "start" : e === "start" ? "end" : e;
|
|
1617
|
+
}
|
|
1618
|
+
var Xr = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"], wt = Xr.slice(3);
|
|
1619
|
+
function yr(e) {
|
|
1620
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = wt.indexOf(e), n = wt.slice(r + 1).concat(wt.slice(0, r));
|
|
1621
|
+
return t ? n.reverse() : n;
|
|
1622
|
+
}
|
|
1623
|
+
var St = {
|
|
1624
|
+
FLIP: "flip",
|
|
1625
|
+
CLOCKWISE: "clockwise",
|
|
1626
|
+
COUNTERCLOCKWISE: "counterclockwise"
|
|
1627
|
+
};
|
|
1628
|
+
function xo(e, t) {
|
|
1629
|
+
if (Gr(e.instance.modifiers, "inner") || e.flipped && e.placement === e.originalPlacement)
|
|
1630
|
+
return e;
|
|
1631
|
+
var r = Lt(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement, e.positionFixed), n = e.placement.split("-")[0], o = ot(n), i = e.placement.split("-")[1] || "", s = [];
|
|
1632
|
+
switch (t.behavior) {
|
|
1633
|
+
case St.FLIP:
|
|
1634
|
+
s = [n, o];
|
|
1635
|
+
break;
|
|
1636
|
+
case St.CLOCKWISE:
|
|
1637
|
+
s = yr(n);
|
|
1638
|
+
break;
|
|
1639
|
+
case St.COUNTERCLOCKWISE:
|
|
1640
|
+
s = yr(n, !0);
|
|
1641
|
+
break;
|
|
1642
|
+
default:
|
|
1643
|
+
s = t.behavior;
|
|
1644
|
+
}
|
|
1645
|
+
return s.forEach(function(a, l) {
|
|
1646
|
+
if (n !== a || s.length === l + 1)
|
|
1647
|
+
return e;
|
|
1648
|
+
n = e.placement.split("-")[0], o = ot(n);
|
|
1649
|
+
var u = e.offsets.popper, f = e.offsets.reference, c = Math.floor, p = n === "left" && c(u.right) > c(f.left) || n === "right" && c(u.left) < c(f.right) || n === "top" && c(u.bottom) > c(f.top) || n === "bottom" && c(u.top) < c(f.bottom), d = c(u.left) < c(r.left), h = c(u.right) > c(r.right), m = c(u.top) < c(r.top), w = c(u.bottom) > c(r.bottom), g = n === "left" && d || n === "right" && h || n === "top" && m || n === "bottom" && w, v = ["top", "bottom"].indexOf(n) !== -1, S = !!t.flipVariations && (v && i === "start" && d || v && i === "end" && h || !v && i === "start" && m || !v && i === "end" && w), N = !!t.flipVariationsByContent && (v && i === "start" && h || v && i === "end" && d || !v && i === "start" && w || !v && i === "end" && m), b = S || N;
|
|
1650
|
+
(p || g || b) && (e.flipped = !0, (p || g) && (n = s[l + 1]), b && (i = Po(i)), e.placement = n + (i ? "-" + i : ""), e.offsets.popper = te({}, e.offsets.popper, Hr(e.instance.popper, e.offsets.reference, e.placement)), e = Vr(e.instance.modifiers, e, "flip"));
|
|
1651
|
+
}), e;
|
|
1652
|
+
}
|
|
1653
|
+
function Co(e) {
|
|
1654
|
+
var t = e.offsets, r = t.popper, n = t.reference, o = e.placement.split("-")[0], i = Math.floor, s = ["top", "bottom"].indexOf(o) !== -1, a = s ? "right" : "bottom", l = s ? "left" : "top", u = s ? "width" : "height";
|
|
1655
|
+
return r[a] < i(n[l]) && (e.offsets.popper[l] = i(n[l]) - r[u]), r[l] > i(n[a]) && (e.offsets.popper[l] = i(n[a])), e;
|
|
1656
|
+
}
|
|
1657
|
+
function Ro(e, t, r, n) {
|
|
1658
|
+
var o = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), i = +o[1], s = o[2];
|
|
1659
|
+
if (!i)
|
|
1660
|
+
return e;
|
|
1661
|
+
if (s.indexOf("%") === 0) {
|
|
1662
|
+
var a = void 0;
|
|
1663
|
+
switch (s) {
|
|
1664
|
+
case "%p":
|
|
1665
|
+
a = r;
|
|
1666
|
+
break;
|
|
1667
|
+
case "%":
|
|
1668
|
+
case "%r":
|
|
1669
|
+
default:
|
|
1670
|
+
a = n;
|
|
1671
|
+
}
|
|
1672
|
+
var l = me(a);
|
|
1673
|
+
return l[t] / 100 * i;
|
|
1674
|
+
} else if (s === "vh" || s === "vw") {
|
|
1675
|
+
var u = void 0;
|
|
1676
|
+
return s === "vh" ? u = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) : u = Math.max(document.documentElement.clientWidth, window.innerWidth || 0), u / 100 * i;
|
|
1677
|
+
} else
|
|
1678
|
+
return i;
|
|
1679
|
+
}
|
|
1680
|
+
function No(e, t, r, n) {
|
|
1681
|
+
var o = [0, 0], i = ["right", "left"].indexOf(n) !== -1, s = e.split(/(\+|\-)/).map(function(f) {
|
|
1682
|
+
return f.trim();
|
|
1683
|
+
}), a = s.indexOf(We(s, function(f) {
|
|
1684
|
+
return f.search(/,|\s/) !== -1;
|
|
1685
|
+
}));
|
|
1686
|
+
s[a] && s[a].indexOf(",") === -1 && console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");
|
|
1687
|
+
var l = /\s*,\s*|\s+/, u = a !== -1 ? [s.slice(0, a).concat([s[a].split(l)[0]]), [s[a].split(l)[1]].concat(s.slice(a + 1))] : [s];
|
|
1688
|
+
return u = u.map(function(f, c) {
|
|
1689
|
+
var p = (c === 1 ? !i : i) ? "height" : "width", d = !1;
|
|
1690
|
+
return f.reduce(function(h, m) {
|
|
1691
|
+
return h[h.length - 1] === "" && ["+", "-"].indexOf(m) !== -1 ? (h[h.length - 1] = m, d = !0, h) : d ? (h[h.length - 1] += m, d = !1, h) : h.concat(m);
|
|
1692
|
+
}, []).map(function(h) {
|
|
1693
|
+
return Ro(h, p, t, r);
|
|
1694
|
+
});
|
|
1695
|
+
}), u.forEach(function(f, c) {
|
|
1696
|
+
f.forEach(function(p, d) {
|
|
1697
|
+
Ft(p) && (o[c] += p * (f[d - 1] === "-" ? -1 : 1));
|
|
1698
|
+
});
|
|
1699
|
+
}), o;
|
|
1700
|
+
}
|
|
1701
|
+
function Io(e, t) {
|
|
1702
|
+
var r = t.offset, n = e.placement, o = e.offsets, i = o.popper, s = o.reference, a = n.split("-")[0], l = void 0;
|
|
1703
|
+
return Ft(+r) ? l = [+r, 0] : l = No(r, i, s, a), a === "left" ? (i.top += l[0], i.left -= l[1]) : a === "right" ? (i.top += l[0], i.left += l[1]) : a === "top" ? (i.left += l[0], i.top -= l[1]) : a === "bottom" && (i.left += l[0], i.top += l[1]), e.popper = i, e;
|
|
1704
|
+
}
|
|
1705
|
+
function _o(e, t) {
|
|
1706
|
+
var r = t.boundariesElement || Se(e.instance.popper);
|
|
1707
|
+
e.instance.reference === r && (r = Se(r));
|
|
1708
|
+
var n = Mt("transform"), o = e.instance.popper.style, i = o.top, s = o.left, a = o[n];
|
|
1709
|
+
o.top = "", o.left = "", o[n] = "";
|
|
1710
|
+
var l = Lt(e.instance.popper, e.instance.reference, t.padding, r, e.positionFixed);
|
|
1711
|
+
o.top = i, o.left = s, o[n] = a, t.boundaries = l;
|
|
1712
|
+
var u = t.priority, f = e.offsets.popper, c = {
|
|
1713
|
+
primary: function(d) {
|
|
1714
|
+
var h = f[d];
|
|
1715
|
+
return f[d] < l[d] && !t.escapeWithReference && (h = Math.max(f[d], l[d])), Pe({}, d, h);
|
|
1716
|
+
},
|
|
1717
|
+
secondary: function(d) {
|
|
1718
|
+
var h = d === "right" ? "left" : "top", m = f[h];
|
|
1719
|
+
return f[d] > l[d] && !t.escapeWithReference && (m = Math.min(f[h], l[d] - (d === "right" ? f.width : f.height))), Pe({}, h, m);
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1722
|
+
return u.forEach(function(p) {
|
|
1723
|
+
var d = ["left", "top"].indexOf(p) !== -1 ? "primary" : "secondary";
|
|
1724
|
+
f = te({}, f, c[d](p));
|
|
1725
|
+
}), e.offsets.popper = f, e;
|
|
1726
|
+
}
|
|
1727
|
+
function Ao(e) {
|
|
1728
|
+
var t = e.placement, r = t.split("-")[0], n = t.split("-")[1];
|
|
1729
|
+
if (n) {
|
|
1730
|
+
var o = e.offsets, i = o.reference, s = o.popper, a = ["bottom", "top"].indexOf(r) !== -1, l = a ? "left" : "top", u = a ? "width" : "height", f = {
|
|
1731
|
+
start: Pe({}, l, i[l]),
|
|
1732
|
+
end: Pe({}, l, i[l] + i[u] - s[u])
|
|
1733
|
+
};
|
|
1734
|
+
e.offsets.popper = te({}, s, f[n]);
|
|
1735
|
+
}
|
|
1736
|
+
return e;
|
|
1737
|
+
}
|
|
1738
|
+
function ko(e) {
|
|
1739
|
+
if (!Jr(e.instance.modifiers, "hide", "preventOverflow"))
|
|
1740
|
+
return e;
|
|
1741
|
+
var t = e.offsets.reference, r = We(e.instance.modifiers, function(n) {
|
|
1742
|
+
return n.name === "preventOverflow";
|
|
1743
|
+
}).boundaries;
|
|
1744
|
+
if (t.bottom < r.top || t.left > r.right || t.top > r.bottom || t.right < r.left) {
|
|
1745
|
+
if (e.hide === !0)
|
|
1746
|
+
return e;
|
|
1747
|
+
e.hide = !0, e.attributes["x-out-of-boundaries"] = "";
|
|
1748
|
+
} else {
|
|
1749
|
+
if (e.hide === !1)
|
|
1750
|
+
return e;
|
|
1751
|
+
e.hide = !1, e.attributes["x-out-of-boundaries"] = !1;
|
|
1752
|
+
}
|
|
1753
|
+
return e;
|
|
1754
|
+
}
|
|
1755
|
+
function jo(e) {
|
|
1756
|
+
var t = e.placement, r = t.split("-")[0], n = e.offsets, o = n.popper, i = n.reference, s = ["left", "right"].indexOf(r) !== -1, a = ["top", "left"].indexOf(r) === -1;
|
|
1757
|
+
return o[s ? "left" : "top"] = i[r] - (a ? o[s ? "width" : "height"] : 0), e.placement = ot(t), e.offsets.popper = me(o), e;
|
|
1758
|
+
}
|
|
1759
|
+
var Lo = {
|
|
1760
|
+
/**
|
|
1761
|
+
* Modifier used to shift the popper on the start or end of its reference
|
|
1762
|
+
* element.<br />
|
|
1763
|
+
* It will read the variation of the `placement` property.<br />
|
|
1764
|
+
* It can be one either `-end` or `-start`.
|
|
1765
|
+
* @memberof modifiers
|
|
1766
|
+
* @inner
|
|
1767
|
+
*/
|
|
1768
|
+
shift: {
|
|
1769
|
+
/** @prop {number} order=100 - Index used to define the order of execution */
|
|
1770
|
+
order: 100,
|
|
1771
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1772
|
+
enabled: !0,
|
|
1773
|
+
/** @prop {ModifierFn} */
|
|
1774
|
+
fn: Ao
|
|
1775
|
+
},
|
|
1776
|
+
/**
|
|
1777
|
+
* The `offset` modifier can shift your popper on both its axis.
|
|
1778
|
+
*
|
|
1779
|
+
* It accepts the following units:
|
|
1780
|
+
* - `px` or unit-less, interpreted as pixels
|
|
1781
|
+
* - `%` or `%r`, percentage relative to the length of the reference element
|
|
1782
|
+
* - `%p`, percentage relative to the length of the popper element
|
|
1783
|
+
* - `vw`, CSS viewport width unit
|
|
1784
|
+
* - `vh`, CSS viewport height unit
|
|
1785
|
+
*
|
|
1786
|
+
* For length is intended the main axis relative to the placement of the popper.<br />
|
|
1787
|
+
* This means that if the placement is `top` or `bottom`, the length will be the
|
|
1788
|
+
* `width`. In case of `left` or `right`, it will be the `height`.
|
|
1789
|
+
*
|
|
1790
|
+
* You can provide a single value (as `Number` or `String`), or a pair of values
|
|
1791
|
+
* as `String` divided by a comma or one (or more) white spaces.<br />
|
|
1792
|
+
* The latter is a deprecated method because it leads to confusion and will be
|
|
1793
|
+
* removed in v2.<br />
|
|
1794
|
+
* Additionally, it accepts additions and subtractions between different units.
|
|
1795
|
+
* Note that multiplications and divisions aren't supported.
|
|
1796
|
+
*
|
|
1797
|
+
* Valid examples are:
|
|
1798
|
+
* ```
|
|
1799
|
+
* 10
|
|
1800
|
+
* '10%'
|
|
1801
|
+
* '10, 10'
|
|
1802
|
+
* '10%, 10'
|
|
1803
|
+
* '10 + 10%'
|
|
1804
|
+
* '10 - 5vh + 3%'
|
|
1805
|
+
* '-10px + 5vh, 5px - 6%'
|
|
1806
|
+
* ```
|
|
1807
|
+
* > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
|
|
1808
|
+
* > with their reference element, unfortunately, you will have to disable the `flip` modifier.
|
|
1809
|
+
* > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
|
|
1810
|
+
*
|
|
1811
|
+
* @memberof modifiers
|
|
1812
|
+
* @inner
|
|
1813
|
+
*/
|
|
1814
|
+
offset: {
|
|
1815
|
+
/** @prop {number} order=200 - Index used to define the order of execution */
|
|
1816
|
+
order: 200,
|
|
1817
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1818
|
+
enabled: !0,
|
|
1819
|
+
/** @prop {ModifierFn} */
|
|
1820
|
+
fn: Io,
|
|
1821
|
+
/** @prop {Number|String} offset=0
|
|
1822
|
+
* The offset value as described in the modifier description
|
|
1823
|
+
*/
|
|
1824
|
+
offset: 0
|
|
1825
|
+
},
|
|
1826
|
+
/**
|
|
1827
|
+
* Modifier used to prevent the popper from being positioned outside the boundary.
|
|
1828
|
+
*
|
|
1829
|
+
* A scenario exists where the reference itself is not within the boundaries.<br />
|
|
1830
|
+
* We can say it has "escaped the boundaries" — or just "escaped".<br />
|
|
1831
|
+
* In this case we need to decide whether the popper should either:
|
|
1832
|
+
*
|
|
1833
|
+
* - detach from the reference and remain "trapped" in the boundaries, or
|
|
1834
|
+
* - if it should ignore the boundary and "escape with its reference"
|
|
1835
|
+
*
|
|
1836
|
+
* When `escapeWithReference` is set to`true` and reference is completely
|
|
1837
|
+
* outside its boundaries, the popper will overflow (or completely leave)
|
|
1838
|
+
* the boundaries in order to remain attached to the edge of the reference.
|
|
1839
|
+
*
|
|
1840
|
+
* @memberof modifiers
|
|
1841
|
+
* @inner
|
|
1842
|
+
*/
|
|
1843
|
+
preventOverflow: {
|
|
1844
|
+
/** @prop {number} order=300 - Index used to define the order of execution */
|
|
1845
|
+
order: 300,
|
|
1846
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1847
|
+
enabled: !0,
|
|
1848
|
+
/** @prop {ModifierFn} */
|
|
1849
|
+
fn: _o,
|
|
1850
|
+
/**
|
|
1851
|
+
* @prop {Array} [priority=['left','right','top','bottom']]
|
|
1852
|
+
* Popper will try to prevent overflow following these priorities by default,
|
|
1853
|
+
* then, it could overflow on the left and on top of the `boundariesElement`
|
|
1854
|
+
*/
|
|
1855
|
+
priority: ["left", "right", "top", "bottom"],
|
|
1856
|
+
/**
|
|
1857
|
+
* @prop {number} padding=5
|
|
1858
|
+
* Amount of pixel used to define a minimum distance between the boundaries
|
|
1859
|
+
* and the popper. This makes sure the popper always has a little padding
|
|
1860
|
+
* between the edges of its container
|
|
1861
|
+
*/
|
|
1862
|
+
padding: 5,
|
|
1863
|
+
/**
|
|
1864
|
+
* @prop {String|HTMLElement} boundariesElement='scrollParent'
|
|
1865
|
+
* Boundaries used by the modifier. Can be `scrollParent`, `window`,
|
|
1866
|
+
* `viewport` or any DOM element.
|
|
1867
|
+
*/
|
|
1868
|
+
boundariesElement: "scrollParent"
|
|
1869
|
+
},
|
|
1870
|
+
/**
|
|
1871
|
+
* Modifier used to make sure the reference and its popper stay near each other
|
|
1872
|
+
* without leaving any gap between the two. Especially useful when the arrow is
|
|
1873
|
+
* enabled and you want to ensure that it points to its reference element.
|
|
1874
|
+
* It cares only about the first axis. You can still have poppers with margin
|
|
1875
|
+
* between the popper and its reference element.
|
|
1876
|
+
* @memberof modifiers
|
|
1877
|
+
* @inner
|
|
1878
|
+
*/
|
|
1879
|
+
keepTogether: {
|
|
1880
|
+
/** @prop {number} order=400 - Index used to define the order of execution */
|
|
1881
|
+
order: 400,
|
|
1882
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1883
|
+
enabled: !0,
|
|
1884
|
+
/** @prop {ModifierFn} */
|
|
1885
|
+
fn: Co
|
|
1886
|
+
},
|
|
1887
|
+
/**
|
|
1888
|
+
* This modifier is used to move the `arrowElement` of the popper to make
|
|
1889
|
+
* sure it is positioned between the reference element and its popper element.
|
|
1890
|
+
* It will read the outer size of the `arrowElement` node to detect how many
|
|
1891
|
+
* pixels of conjunction are needed.
|
|
1892
|
+
*
|
|
1893
|
+
* It has no effect if no `arrowElement` is provided.
|
|
1894
|
+
* @memberof modifiers
|
|
1895
|
+
* @inner
|
|
1896
|
+
*/
|
|
1897
|
+
arrow: {
|
|
1898
|
+
/** @prop {number} order=500 - Index used to define the order of execution */
|
|
1899
|
+
order: 500,
|
|
1900
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1901
|
+
enabled: !0,
|
|
1902
|
+
/** @prop {ModifierFn} */
|
|
1903
|
+
fn: To,
|
|
1904
|
+
/** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */
|
|
1905
|
+
element: "[x-arrow]"
|
|
1906
|
+
},
|
|
1907
|
+
/**
|
|
1908
|
+
* Modifier used to flip the popper's placement when it starts to overlap its
|
|
1909
|
+
* reference element.
|
|
1910
|
+
*
|
|
1911
|
+
* Requires the `preventOverflow` modifier before it in order to work.
|
|
1912
|
+
*
|
|
1913
|
+
* **NOTE:** this modifier will interrupt the current update cycle and will
|
|
1914
|
+
* restart it if it detects the need to flip the placement.
|
|
1915
|
+
* @memberof modifiers
|
|
1916
|
+
* @inner
|
|
1917
|
+
*/
|
|
1918
|
+
flip: {
|
|
1919
|
+
/** @prop {number} order=600 - Index used to define the order of execution */
|
|
1920
|
+
order: 600,
|
|
1921
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1922
|
+
enabled: !0,
|
|
1923
|
+
/** @prop {ModifierFn} */
|
|
1924
|
+
fn: xo,
|
|
1925
|
+
/**
|
|
1926
|
+
* @prop {String|Array} behavior='flip'
|
|
1927
|
+
* The behavior used to change the popper's placement. It can be one of
|
|
1928
|
+
* `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
|
|
1929
|
+
* placements (with optional variations)
|
|
1930
|
+
*/
|
|
1931
|
+
behavior: "flip",
|
|
1932
|
+
/**
|
|
1933
|
+
* @prop {number} padding=5
|
|
1934
|
+
* The popper will flip if it hits the edges of the `boundariesElement`
|
|
1935
|
+
*/
|
|
1936
|
+
padding: 5,
|
|
1937
|
+
/**
|
|
1938
|
+
* @prop {String|HTMLElement} boundariesElement='viewport'
|
|
1939
|
+
* The element which will define the boundaries of the popper position.
|
|
1940
|
+
* The popper will never be placed outside of the defined boundaries
|
|
1941
|
+
* (except if `keepTogether` is enabled)
|
|
1942
|
+
*/
|
|
1943
|
+
boundariesElement: "viewport",
|
|
1944
|
+
/**
|
|
1945
|
+
* @prop {Boolean} flipVariations=false
|
|
1946
|
+
* The popper will switch placement variation between `-start` and `-end` when
|
|
1947
|
+
* the reference element overlaps its boundaries.
|
|
1948
|
+
*
|
|
1949
|
+
* The original placement should have a set variation.
|
|
1950
|
+
*/
|
|
1951
|
+
flipVariations: !1,
|
|
1952
|
+
/**
|
|
1953
|
+
* @prop {Boolean} flipVariationsByContent=false
|
|
1954
|
+
* The popper will switch placement variation between `-start` and `-end` when
|
|
1955
|
+
* the popper element overlaps its reference boundaries.
|
|
1956
|
+
*
|
|
1957
|
+
* The original placement should have a set variation.
|
|
1958
|
+
*/
|
|
1959
|
+
flipVariationsByContent: !1
|
|
1960
|
+
},
|
|
1961
|
+
/**
|
|
1962
|
+
* Modifier used to make the popper flow toward the inner of the reference element.
|
|
1963
|
+
* By default, when this modifier is disabled, the popper will be placed outside
|
|
1964
|
+
* the reference element.
|
|
1965
|
+
* @memberof modifiers
|
|
1966
|
+
* @inner
|
|
1967
|
+
*/
|
|
1968
|
+
inner: {
|
|
1969
|
+
/** @prop {number} order=700 - Index used to define the order of execution */
|
|
1970
|
+
order: 700,
|
|
1971
|
+
/** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */
|
|
1972
|
+
enabled: !1,
|
|
1973
|
+
/** @prop {ModifierFn} */
|
|
1974
|
+
fn: jo
|
|
1975
|
+
},
|
|
1976
|
+
/**
|
|
1977
|
+
* Modifier used to hide the popper when its reference element is outside of the
|
|
1978
|
+
* popper boundaries. It will set a `x-out-of-boundaries` attribute which can
|
|
1979
|
+
* be used to hide with a CSS selector the popper when its reference is
|
|
1980
|
+
* out of boundaries.
|
|
1981
|
+
*
|
|
1982
|
+
* Requires the `preventOverflow` modifier before it in order to work.
|
|
1983
|
+
* @memberof modifiers
|
|
1984
|
+
* @inner
|
|
1985
|
+
*/
|
|
1986
|
+
hide: {
|
|
1987
|
+
/** @prop {number} order=800 - Index used to define the order of execution */
|
|
1988
|
+
order: 800,
|
|
1989
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1990
|
+
enabled: !0,
|
|
1991
|
+
/** @prop {ModifierFn} */
|
|
1992
|
+
fn: ko
|
|
1993
|
+
},
|
|
1994
|
+
/**
|
|
1995
|
+
* Computes the style that will be applied to the popper element to gets
|
|
1996
|
+
* properly positioned.
|
|
1997
|
+
*
|
|
1998
|
+
* Note that this modifier will not touch the DOM, it just prepares the styles
|
|
1999
|
+
* so that `applyStyle` modifier can apply it. This separation is useful
|
|
2000
|
+
* in case you need to replace `applyStyle` with a custom implementation.
|
|
2001
|
+
*
|
|
2002
|
+
* This modifier has `850` as `order` value to maintain backward compatibility
|
|
2003
|
+
* with previous versions of Popper.js. Expect the modifiers ordering method
|
|
2004
|
+
* to change in future major versions of the library.
|
|
2005
|
+
*
|
|
2006
|
+
* @memberof modifiers
|
|
2007
|
+
* @inner
|
|
2008
|
+
*/
|
|
2009
|
+
computeStyle: {
|
|
2010
|
+
/** @prop {number} order=850 - Index used to define the order of execution */
|
|
2011
|
+
order: 850,
|
|
2012
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
2013
|
+
enabled: !0,
|
|
2014
|
+
/** @prop {ModifierFn} */
|
|
2015
|
+
fn: So,
|
|
2016
|
+
/**
|
|
2017
|
+
* @prop {Boolean} gpuAcceleration=true
|
|
2018
|
+
* If true, it uses the CSS 3D transformation to position the popper.
|
|
2019
|
+
* Otherwise, it will use the `top` and `left` properties
|
|
2020
|
+
*/
|
|
2021
|
+
gpuAcceleration: !0,
|
|
2022
|
+
/**
|
|
2023
|
+
* @prop {string} [x='bottom']
|
|
2024
|
+
* Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.
|
|
2025
|
+
* Change this if your popper should grow in a direction different from `bottom`
|
|
2026
|
+
*/
|
|
2027
|
+
x: "bottom",
|
|
2028
|
+
/**
|
|
2029
|
+
* @prop {string} [x='left']
|
|
2030
|
+
* Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.
|
|
2031
|
+
* Change this if your popper should grow in a direction different from `right`
|
|
2032
|
+
*/
|
|
2033
|
+
y: "right"
|
|
2034
|
+
},
|
|
2035
|
+
/**
|
|
2036
|
+
* Applies the computed styles to the popper element.
|
|
2037
|
+
*
|
|
2038
|
+
* All the DOM manipulations are limited to this modifier. This is useful in case
|
|
2039
|
+
* you want to integrate Popper.js inside a framework or view library and you
|
|
2040
|
+
* want to delegate all the DOM manipulations to it.
|
|
2041
|
+
*
|
|
2042
|
+
* Note that if you disable this modifier, you must make sure the popper element
|
|
2043
|
+
* has its position set to `absolute` before Popper.js can do its work!
|
|
2044
|
+
*
|
|
2045
|
+
* Just disable this modifier and define your own to achieve the desired effect.
|
|
2046
|
+
*
|
|
2047
|
+
* @memberof modifiers
|
|
2048
|
+
* @inner
|
|
2049
|
+
*/
|
|
2050
|
+
applyStyle: {
|
|
2051
|
+
/** @prop {number} order=900 - Index used to define the order of execution */
|
|
2052
|
+
order: 900,
|
|
2053
|
+
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
2054
|
+
enabled: !0,
|
|
2055
|
+
/** @prop {ModifierFn} */
|
|
2056
|
+
fn: bo,
|
|
2057
|
+
/** @prop {Function} */
|
|
2058
|
+
onLoad: Eo,
|
|
2059
|
+
/**
|
|
2060
|
+
* @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
|
|
2061
|
+
* @prop {Boolean} gpuAcceleration=true
|
|
2062
|
+
* If true, it uses the CSS 3D transformation to position the popper.
|
|
2063
|
+
* Otherwise, it will use the `top` and `left` properties
|
|
2064
|
+
*/
|
|
2065
|
+
gpuAcceleration: void 0
|
|
2066
|
+
}
|
|
2067
|
+
}, Mo = {
|
|
2068
|
+
/**
|
|
2069
|
+
* Popper's placement.
|
|
2070
|
+
* @prop {Popper.placements} placement='bottom'
|
|
2071
|
+
*/
|
|
2072
|
+
placement: "bottom",
|
|
2073
|
+
/**
|
|
2074
|
+
* Set this to true if you want popper to position it self in 'fixed' mode
|
|
2075
|
+
* @prop {Boolean} positionFixed=false
|
|
2076
|
+
*/
|
|
2077
|
+
positionFixed: !1,
|
|
2078
|
+
/**
|
|
2079
|
+
* Whether events (resize, scroll) are initially enabled.
|
|
2080
|
+
* @prop {Boolean} eventsEnabled=true
|
|
2081
|
+
*/
|
|
2082
|
+
eventsEnabled: !0,
|
|
2083
|
+
/**
|
|
2084
|
+
* Set to true if you want to automatically remove the popper when
|
|
2085
|
+
* you call the `destroy` method.
|
|
2086
|
+
* @prop {Boolean} removeOnDestroy=false
|
|
2087
|
+
*/
|
|
2088
|
+
removeOnDestroy: !1,
|
|
2089
|
+
/**
|
|
2090
|
+
* Callback called when the popper is created.<br />
|
|
2091
|
+
* By default, it is set to no-op.<br />
|
|
2092
|
+
* Access Popper.js instance with `data.instance`.
|
|
2093
|
+
* @prop {onCreate}
|
|
2094
|
+
*/
|
|
2095
|
+
onCreate: function() {
|
|
2096
|
+
},
|
|
2097
|
+
/**
|
|
2098
|
+
* Callback called when the popper is updated. This callback is not called
|
|
2099
|
+
* on the initialization/creation of the popper, but only on subsequent
|
|
2100
|
+
* updates.<br />
|
|
2101
|
+
* By default, it is set to no-op.<br />
|
|
2102
|
+
* Access Popper.js instance with `data.instance`.
|
|
2103
|
+
* @prop {onUpdate}
|
|
2104
|
+
*/
|
|
2105
|
+
onUpdate: function() {
|
|
2106
|
+
},
|
|
2107
|
+
/**
|
|
2108
|
+
* List of modifiers used to modify the offsets before they are applied to the popper.
|
|
2109
|
+
* They provide most of the functionalities of Popper.js.
|
|
2110
|
+
* @prop {modifiers}
|
|
2111
|
+
*/
|
|
2112
|
+
modifiers: Lo
|
|
2113
|
+
}, Le = function() {
|
|
2114
|
+
function e(t, r) {
|
|
2115
|
+
var n = this, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2116
|
+
so(this, e), this.scheduleUpdate = function() {
|
|
2117
|
+
return requestAnimationFrame(n.update);
|
|
2118
|
+
}, this.update = no(this.update.bind(this)), this.options = te({}, e.Defaults, o), this.state = {
|
|
2119
|
+
isDestroyed: !1,
|
|
2120
|
+
isCreated: !1,
|
|
2121
|
+
scrollParents: []
|
|
2122
|
+
}, this.reference = t && t.jquery ? t[0] : t, this.popper = r && r.jquery ? r[0] : r, this.options.modifiers = {}, Object.keys(te({}, e.Defaults.modifiers, o.modifiers)).forEach(function(s) {
|
|
2123
|
+
n.options.modifiers[s] = te({}, e.Defaults.modifiers[s] || {}, o.modifiers ? o.modifiers[s] : {});
|
|
2124
|
+
}), this.modifiers = Object.keys(this.options.modifiers).map(function(s) {
|
|
2125
|
+
return te({
|
|
2126
|
+
name: s
|
|
2127
|
+
}, n.options.modifiers[s]);
|
|
2128
|
+
}).sort(function(s, a) {
|
|
2129
|
+
return s.order - a.order;
|
|
2130
|
+
}), this.modifiers.forEach(function(s) {
|
|
2131
|
+
s.enabled && Fr(s.onLoad) && s.onLoad(n.reference, n.popper, n.options, s, n.state);
|
|
2132
|
+
}), this.update();
|
|
2133
|
+
var i = this.options.eventsEnabled;
|
|
2134
|
+
i && this.enableEventListeners(), this.state.eventsEnabled = i;
|
|
2135
|
+
}
|
|
2136
|
+
return ao(e, [{
|
|
2137
|
+
key: "update",
|
|
2138
|
+
value: function() {
|
|
2139
|
+
return fo.call(this);
|
|
2140
|
+
}
|
|
2141
|
+
}, {
|
|
2142
|
+
key: "destroy",
|
|
2143
|
+
value: function() {
|
|
2144
|
+
return po.call(this);
|
|
2145
|
+
}
|
|
2146
|
+
}, {
|
|
2147
|
+
key: "enableEventListeners",
|
|
2148
|
+
value: function() {
|
|
2149
|
+
return yo.call(this);
|
|
2150
|
+
}
|
|
2151
|
+
}, {
|
|
2152
|
+
key: "disableEventListeners",
|
|
2153
|
+
value: function() {
|
|
2154
|
+
return vo.call(this);
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* Schedules an update. It will run on the next UI update available.
|
|
2158
|
+
* @method scheduleUpdate
|
|
2159
|
+
* @memberof Popper
|
|
2160
|
+
*/
|
|
2161
|
+
/**
|
|
2162
|
+
* Collection of utilities useful when writing custom modifiers.
|
|
2163
|
+
* Starting from version 1.7, this method is available only if you
|
|
2164
|
+
* include `popper-utils.js` before `popper.js`.
|
|
2165
|
+
*
|
|
2166
|
+
* **DEPRECATION**: This way to access PopperUtils is deprecated
|
|
2167
|
+
* and will be removed in v2! Use the PopperUtils module directly instead.
|
|
2168
|
+
* Due to the high instability of the methods contained in Utils, we can't
|
|
2169
|
+
* guarantee them to follow semver. Use them at your own risk!
|
|
2170
|
+
* @static
|
|
2171
|
+
* @private
|
|
2172
|
+
* @type {Object}
|
|
2173
|
+
* @deprecated since version 1.8
|
|
2174
|
+
* @member Utils
|
|
2175
|
+
* @memberof Popper
|
|
2176
|
+
*/
|
|
2177
|
+
}]), e;
|
|
2178
|
+
}();
|
|
2179
|
+
Le.Utils = (typeof window < "u" ? window : global).PopperUtils;
|
|
2180
|
+
Le.placements = Xr;
|
|
2181
|
+
Le.Defaults = Mo;
|
|
2182
|
+
var Fo = [
|
|
2183
|
+
"innerHTML",
|
|
2184
|
+
"ownerDocument",
|
|
2185
|
+
"style",
|
|
2186
|
+
"attributes",
|
|
2187
|
+
"nodeValue"
|
|
2188
|
+
], Do = [
|
|
2189
|
+
"Array",
|
|
2190
|
+
"ArrayBuffer",
|
|
2191
|
+
"AsyncFunction",
|
|
2192
|
+
"AsyncGenerator",
|
|
2193
|
+
"AsyncGeneratorFunction",
|
|
2194
|
+
"Date",
|
|
2195
|
+
"Error",
|
|
2196
|
+
"Function",
|
|
2197
|
+
"Generator",
|
|
2198
|
+
"GeneratorFunction",
|
|
2199
|
+
"HTMLElement",
|
|
2200
|
+
"Map",
|
|
2201
|
+
"Object",
|
|
2202
|
+
"Promise",
|
|
2203
|
+
"RegExp",
|
|
2204
|
+
"Set",
|
|
2205
|
+
"WeakMap",
|
|
2206
|
+
"WeakSet"
|
|
2207
|
+
], $o = [
|
|
2208
|
+
"bigint",
|
|
2209
|
+
"boolean",
|
|
2210
|
+
"null",
|
|
2211
|
+
"number",
|
|
2212
|
+
"string",
|
|
2213
|
+
"symbol",
|
|
2214
|
+
"undefined"
|
|
2215
|
+
];
|
|
2216
|
+
function at(e) {
|
|
2217
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
2218
|
+
if (/HTML\w+Element/.test(t))
|
|
2219
|
+
return "HTMLElement";
|
|
2220
|
+
if (Wo(t))
|
|
2221
|
+
return t;
|
|
2222
|
+
}
|
|
2223
|
+
function ie(e) {
|
|
2224
|
+
return function(t) {
|
|
2225
|
+
return at(t) === e;
|
|
2226
|
+
};
|
|
2227
|
+
}
|
|
2228
|
+
function Wo(e) {
|
|
2229
|
+
return Do.includes(e);
|
|
2230
|
+
}
|
|
2231
|
+
function Ne(e) {
|
|
2232
|
+
return function(t) {
|
|
2233
|
+
return typeof t === e;
|
|
2234
|
+
};
|
|
2235
|
+
}
|
|
2236
|
+
function Bo(e) {
|
|
2237
|
+
return $o.includes(e);
|
|
2238
|
+
}
|
|
2239
|
+
function y(e) {
|
|
2240
|
+
if (e === null)
|
|
2241
|
+
return "null";
|
|
2242
|
+
switch (typeof e) {
|
|
2243
|
+
case "bigint":
|
|
2244
|
+
return "bigint";
|
|
2245
|
+
case "boolean":
|
|
2246
|
+
return "boolean";
|
|
2247
|
+
case "number":
|
|
2248
|
+
return "number";
|
|
2249
|
+
case "string":
|
|
2250
|
+
return "string";
|
|
2251
|
+
case "symbol":
|
|
2252
|
+
return "symbol";
|
|
2253
|
+
case "undefined":
|
|
2254
|
+
return "undefined";
|
|
2255
|
+
}
|
|
2256
|
+
if (y.array(e))
|
|
2257
|
+
return "Array";
|
|
2258
|
+
if (y.plainFunction(e))
|
|
2259
|
+
return "Function";
|
|
2260
|
+
var t = at(e);
|
|
2261
|
+
return t || "Object";
|
|
2262
|
+
}
|
|
2263
|
+
y.array = Array.isArray;
|
|
2264
|
+
y.arrayOf = function(e, t) {
|
|
2265
|
+
return !y.array(e) && !y.function(t) ? !1 : e.every(function(r) {
|
|
2266
|
+
return t(r);
|
|
2267
|
+
});
|
|
2268
|
+
};
|
|
2269
|
+
y.asyncGeneratorFunction = function(e) {
|
|
2270
|
+
return at(e) === "AsyncGeneratorFunction";
|
|
2271
|
+
};
|
|
2272
|
+
y.asyncFunction = ie("AsyncFunction");
|
|
2273
|
+
y.bigint = Ne("bigint");
|
|
2274
|
+
y.boolean = function(e) {
|
|
2275
|
+
return e === !0 || e === !1;
|
|
2276
|
+
};
|
|
2277
|
+
y.date = ie("Date");
|
|
2278
|
+
y.defined = function(e) {
|
|
2279
|
+
return !y.undefined(e);
|
|
2280
|
+
};
|
|
2281
|
+
y.domElement = function(e) {
|
|
2282
|
+
return y.object(e) && !y.plainObject(e) && e.nodeType === 1 && y.string(e.nodeName) && Fo.every(function(t) {
|
|
2283
|
+
return t in e;
|
|
2284
|
+
});
|
|
2285
|
+
};
|
|
2286
|
+
y.empty = function(e) {
|
|
2287
|
+
return y.string(e) && e.length === 0 || y.array(e) && e.length === 0 || y.object(e) && !y.map(e) && !y.set(e) && Object.keys(e).length === 0 || y.set(e) && e.size === 0 || y.map(e) && e.size === 0;
|
|
2288
|
+
};
|
|
2289
|
+
y.error = ie("Error");
|
|
2290
|
+
y.function = Ne("function");
|
|
2291
|
+
y.generator = function(e) {
|
|
2292
|
+
return y.iterable(e) && y.function(e.next) && y.function(e.throw);
|
|
2293
|
+
};
|
|
2294
|
+
y.generatorFunction = ie("GeneratorFunction");
|
|
2295
|
+
y.instanceOf = function(e, t) {
|
|
2296
|
+
return !e || !t ? !1 : Object.getPrototypeOf(e) === t.prototype;
|
|
2297
|
+
};
|
|
2298
|
+
y.iterable = function(e) {
|
|
2299
|
+
return !y.nullOrUndefined(e) && y.function(e[Symbol.iterator]);
|
|
2300
|
+
};
|
|
2301
|
+
y.map = ie("Map");
|
|
2302
|
+
y.nan = function(e) {
|
|
2303
|
+
return Number.isNaN(e);
|
|
2304
|
+
};
|
|
2305
|
+
y.null = function(e) {
|
|
2306
|
+
return e === null;
|
|
2307
|
+
};
|
|
2308
|
+
y.nullOrUndefined = function(e) {
|
|
2309
|
+
return y.null(e) || y.undefined(e);
|
|
2310
|
+
};
|
|
2311
|
+
y.number = function(e) {
|
|
2312
|
+
return Ne("number")(e) && !y.nan(e);
|
|
2313
|
+
};
|
|
2314
|
+
y.numericString = function(e) {
|
|
2315
|
+
return y.string(e) && e.length > 0 && !Number.isNaN(Number(e));
|
|
2316
|
+
};
|
|
2317
|
+
y.object = function(e) {
|
|
2318
|
+
return !y.nullOrUndefined(e) && (y.function(e) || typeof e == "object");
|
|
2319
|
+
};
|
|
2320
|
+
y.oneOf = function(e, t) {
|
|
2321
|
+
return y.array(e) ? e.indexOf(t) > -1 : !1;
|
|
2322
|
+
};
|
|
2323
|
+
y.plainFunction = ie("Function");
|
|
2324
|
+
y.plainObject = function(e) {
|
|
2325
|
+
if (at(e) !== "Object")
|
|
2326
|
+
return !1;
|
|
2327
|
+
var t = Object.getPrototypeOf(e);
|
|
2328
|
+
return t === null || t === Object.getPrototypeOf({});
|
|
2329
|
+
};
|
|
2330
|
+
y.primitive = function(e) {
|
|
2331
|
+
return y.null(e) || Bo(typeof e);
|
|
2332
|
+
};
|
|
2333
|
+
y.promise = ie("Promise");
|
|
2334
|
+
y.propertyOf = function(e, t, r) {
|
|
2335
|
+
if (!y.object(e) || !t)
|
|
2336
|
+
return !1;
|
|
2337
|
+
var n = e[t];
|
|
2338
|
+
return y.function(r) ? r(n) : y.defined(n);
|
|
2339
|
+
};
|
|
2340
|
+
y.regexp = ie("RegExp");
|
|
2341
|
+
y.set = ie("Set");
|
|
2342
|
+
y.string = Ne("string");
|
|
2343
|
+
y.symbol = Ne("symbol");
|
|
2344
|
+
y.undefined = Ne("undefined");
|
|
2345
|
+
y.weakMap = ie("WeakMap");
|
|
2346
|
+
y.weakSet = ie("WeakSet");
|
|
2347
|
+
function Zr(e) {
|
|
2348
|
+
return function(t) {
|
|
2349
|
+
return typeof t === e;
|
|
2350
|
+
};
|
|
2351
|
+
}
|
|
2352
|
+
var Uo = Zr("function"), zo = function(e) {
|
|
2353
|
+
return e === null;
|
|
2354
|
+
}, mr = function(e) {
|
|
2355
|
+
return Object.prototype.toString.call(e).slice(8, -1) === "RegExp";
|
|
2356
|
+
}, vr = function(e) {
|
|
2357
|
+
return !qo(e) && !zo(e) && (Uo(e) || typeof e == "object");
|
|
2358
|
+
}, qo = Zr("undefined"), Rt = function(e) {
|
|
2359
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
2360
|
+
if (r) return r.call(e);
|
|
2361
|
+
if (e && typeof e.length == "number") return {
|
|
2362
|
+
next: function() {
|
|
2363
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
2364
|
+
}
|
|
2365
|
+
};
|
|
2366
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2367
|
+
};
|
|
2368
|
+
function Ho(e, t) {
|
|
2369
|
+
var r = e.length;
|
|
2370
|
+
if (r !== t.length)
|
|
2371
|
+
return !1;
|
|
2372
|
+
for (var n = r; n-- !== 0; )
|
|
2373
|
+
if (!Q(e[n], t[n]))
|
|
2374
|
+
return !1;
|
|
2375
|
+
return !0;
|
|
2376
|
+
}
|
|
2377
|
+
function Vo(e, t) {
|
|
2378
|
+
if (e.byteLength !== t.byteLength)
|
|
2379
|
+
return !1;
|
|
2380
|
+
for (var r = new DataView(e.buffer), n = new DataView(t.buffer), o = e.byteLength; o--; )
|
|
2381
|
+
if (r.getUint8(o) !== n.getUint8(o))
|
|
2382
|
+
return !1;
|
|
2383
|
+
return !0;
|
|
2384
|
+
}
|
|
2385
|
+
function Go(e, t) {
|
|
2386
|
+
var r, n, o, i;
|
|
2387
|
+
if (e.size !== t.size)
|
|
2388
|
+
return !1;
|
|
2389
|
+
try {
|
|
2390
|
+
for (var s = Rt(e.entries()), a = s.next(); !a.done; a = s.next()) {
|
|
2391
|
+
var l = a.value;
|
|
2392
|
+
if (!t.has(l[0]))
|
|
2393
|
+
return !1;
|
|
2394
|
+
}
|
|
2395
|
+
} catch (c) {
|
|
2396
|
+
r = { error: c };
|
|
2397
|
+
} finally {
|
|
2398
|
+
try {
|
|
2399
|
+
a && !a.done && (n = s.return) && n.call(s);
|
|
2400
|
+
} finally {
|
|
2401
|
+
if (r) throw r.error;
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
try {
|
|
2405
|
+
for (var u = Rt(e.entries()), f = u.next(); !f.done; f = u.next()) {
|
|
2406
|
+
var l = f.value;
|
|
2407
|
+
if (!Q(l[1], t.get(l[0])))
|
|
2408
|
+
return !1;
|
|
2409
|
+
}
|
|
2410
|
+
} catch (c) {
|
|
2411
|
+
o = { error: c };
|
|
2412
|
+
} finally {
|
|
2413
|
+
try {
|
|
2414
|
+
f && !f.done && (i = u.return) && i.call(u);
|
|
2415
|
+
} finally {
|
|
2416
|
+
if (o) throw o.error;
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
return !0;
|
|
2420
|
+
}
|
|
2421
|
+
function Yo(e, t) {
|
|
2422
|
+
var r, n;
|
|
2423
|
+
if (e.size !== t.size)
|
|
2424
|
+
return !1;
|
|
2425
|
+
try {
|
|
2426
|
+
for (var o = Rt(e.entries()), i = o.next(); !i.done; i = o.next()) {
|
|
2427
|
+
var s = i.value;
|
|
2428
|
+
if (!t.has(s[0]))
|
|
2429
|
+
return !1;
|
|
2430
|
+
}
|
|
2431
|
+
} catch (a) {
|
|
2432
|
+
r = { error: a };
|
|
2433
|
+
} finally {
|
|
2434
|
+
try {
|
|
2435
|
+
i && !i.done && (n = o.return) && n.call(o);
|
|
2436
|
+
} finally {
|
|
2437
|
+
if (r) throw r.error;
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
return !0;
|
|
2441
|
+
}
|
|
2442
|
+
function Q(e, t) {
|
|
2443
|
+
if (e === t)
|
|
2444
|
+
return !0;
|
|
2445
|
+
if (e && vr(e) && t && vr(t)) {
|
|
2446
|
+
if (e.constructor !== t.constructor)
|
|
2447
|
+
return !1;
|
|
2448
|
+
if (Array.isArray(e) && Array.isArray(t))
|
|
2449
|
+
return Ho(e, t);
|
|
2450
|
+
if (e instanceof Map && t instanceof Map)
|
|
2451
|
+
return Go(e, t);
|
|
2452
|
+
if (e instanceof Set && t instanceof Set)
|
|
2453
|
+
return Yo(e, t);
|
|
2454
|
+
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t))
|
|
2455
|
+
return Vo(e, t);
|
|
2456
|
+
if (mr(e) && mr(t))
|
|
2457
|
+
return e.source === t.source && e.flags === t.flags;
|
|
2458
|
+
if (e.valueOf !== Object.prototype.valueOf)
|
|
2459
|
+
return e.valueOf() === t.valueOf();
|
|
2460
|
+
if (e.toString !== Object.prototype.toString)
|
|
2461
|
+
return e.toString() === t.toString();
|
|
2462
|
+
var r = Object.keys(e), n = Object.keys(t);
|
|
2463
|
+
if (r.length !== n.length)
|
|
2464
|
+
return !1;
|
|
2465
|
+
for (var o = r.length; o-- !== 0; )
|
|
2466
|
+
if (!Object.prototype.hasOwnProperty.call(t, r[o]))
|
|
2467
|
+
return !1;
|
|
2468
|
+
for (var o = r.length; o-- !== 0; ) {
|
|
2469
|
+
var i = r[o];
|
|
2470
|
+
if (!(i === "_owner" && e.$$typeof) && !Q(e[i], t[i]))
|
|
2471
|
+
return !1;
|
|
2472
|
+
}
|
|
2473
|
+
return !0;
|
|
2474
|
+
}
|
|
2475
|
+
return Number.isNaN(e) && Number.isNaN(t) ? !0 : e === t;
|
|
2476
|
+
}
|
|
2477
|
+
function Ko() {
|
|
2478
|
+
for (var e = [], t = 0; t < arguments.length; t++)
|
|
2479
|
+
e[t] = arguments[t];
|
|
2480
|
+
return e.every(function(r) {
|
|
2481
|
+
return y.string(r) || y.array(r) || y.plainObject(r);
|
|
2482
|
+
});
|
|
2483
|
+
}
|
|
2484
|
+
function Jo(e, t, r) {
|
|
2485
|
+
return Qr(e, t) ? [e, t].every(y.array) ? !e.some(wr(r)) && t.some(wr(r)) : [e, t].every(y.plainObject) ? !Object.entries(e).some(Or(r)) && Object.entries(t).some(Or(r)) : t === r : !1;
|
|
2486
|
+
}
|
|
2487
|
+
function gr(e, t, r) {
|
|
2488
|
+
var n = r.actual, o = r.key, i = r.previous, s = r.type, a = pe(e, o), l = pe(t, o), u = [a, l].every(y.number) && (s === "increased" ? a < l : a > l);
|
|
2489
|
+
return y.undefined(n) || (u = u && l === n), y.undefined(i) || (u = u && a === i), u;
|
|
2490
|
+
}
|
|
2491
|
+
function br(e, t, r) {
|
|
2492
|
+
var n = r.key, o = r.type, i = r.value, s = pe(e, n), a = pe(t, n), l = o === "added" ? s : a, u = o === "added" ? a : s;
|
|
2493
|
+
if (!y.nullOrUndefined(i)) {
|
|
2494
|
+
if (y.defined(l)) {
|
|
2495
|
+
if (y.array(l) || y.plainObject(l))
|
|
2496
|
+
return Jo(l, u, i);
|
|
2497
|
+
} else
|
|
2498
|
+
return Q(u, i);
|
|
2499
|
+
return !1;
|
|
2500
|
+
}
|
|
2501
|
+
return [s, a].every(y.array) ? !u.every(Dt(l)) : [s, a].every(y.plainObject) ? Xo(Object.keys(l), Object.keys(u)) : ![s, a].every(function(f) {
|
|
2502
|
+
return y.primitive(f) && y.defined(f);
|
|
2503
|
+
}) && (o === "added" ? !y.defined(s) && y.defined(a) : y.defined(s) && !y.defined(a));
|
|
2504
|
+
}
|
|
2505
|
+
function Er(e, t, r) {
|
|
2506
|
+
var n = r === void 0 ? {} : r, o = n.key, i = pe(e, o), s = pe(t, o);
|
|
2507
|
+
if (!Qr(i, s))
|
|
2508
|
+
throw new TypeError("Inputs have different types");
|
|
2509
|
+
if (!Ko(i, s))
|
|
2510
|
+
throw new TypeError("Inputs don't have length");
|
|
2511
|
+
return [i, s].every(y.plainObject) && (i = Object.keys(i), s = Object.keys(s)), [i, s];
|
|
2512
|
+
}
|
|
2513
|
+
function Or(e) {
|
|
2514
|
+
return function(t) {
|
|
2515
|
+
var r = t[0], n = t[1];
|
|
2516
|
+
return y.array(e) ? Q(e, n) || e.some(function(o) {
|
|
2517
|
+
return Q(o, n) || y.array(n) && Dt(n)(o);
|
|
2518
|
+
}) : y.plainObject(e) && e[r] ? !!e[r] && Q(e[r], n) : Q(e, n);
|
|
2519
|
+
};
|
|
2520
|
+
}
|
|
2521
|
+
function Xo(e, t) {
|
|
2522
|
+
return t.some(function(r) {
|
|
2523
|
+
return !e.includes(r);
|
|
2524
|
+
});
|
|
2525
|
+
}
|
|
2526
|
+
function wr(e) {
|
|
2527
|
+
return function(t) {
|
|
2528
|
+
return y.array(e) ? e.some(function(r) {
|
|
2529
|
+
return Q(r, t) || y.array(t) && Dt(t)(r);
|
|
2530
|
+
}) : Q(e, t);
|
|
2531
|
+
};
|
|
2532
|
+
}
|
|
2533
|
+
function _e(e, t) {
|
|
2534
|
+
return y.array(e) ? e.some(function(r) {
|
|
2535
|
+
return Q(r, t);
|
|
2536
|
+
}) : Q(e, t);
|
|
2537
|
+
}
|
|
2538
|
+
function Dt(e) {
|
|
2539
|
+
return function(t) {
|
|
2540
|
+
return e.some(function(r) {
|
|
2541
|
+
return Q(r, t);
|
|
2542
|
+
});
|
|
2543
|
+
};
|
|
2544
|
+
}
|
|
2545
|
+
function Qr() {
|
|
2546
|
+
for (var e = [], t = 0; t < arguments.length; t++)
|
|
2547
|
+
e[t] = arguments[t];
|
|
2548
|
+
return e.every(y.array) || e.every(y.number) || e.every(y.plainObject) || e.every(y.string);
|
|
2549
|
+
}
|
|
2550
|
+
function pe(e, t) {
|
|
2551
|
+
if (y.plainObject(e) || y.array(e)) {
|
|
2552
|
+
if (y.string(t)) {
|
|
2553
|
+
var r = t.split(".");
|
|
2554
|
+
return r.reduce(function(n, o) {
|
|
2555
|
+
return n && n[o];
|
|
2556
|
+
}, e);
|
|
2557
|
+
}
|
|
2558
|
+
return y.number(t) ? e[t] : e;
|
|
2559
|
+
}
|
|
2560
|
+
return e;
|
|
2561
|
+
}
|
|
2562
|
+
function Zo(e, t) {
|
|
2563
|
+
if ([e, t].some(y.nullOrUndefined))
|
|
2564
|
+
throw new Error("Missing required parameters");
|
|
2565
|
+
if (![e, t].every(function(c) {
|
|
2566
|
+
return y.plainObject(c) || y.array(c);
|
|
2567
|
+
}))
|
|
2568
|
+
throw new Error("Expected plain objects or array");
|
|
2569
|
+
var r = function(c, p) {
|
|
2570
|
+
try {
|
|
2571
|
+
return br(e, t, { key: c, type: "added", value: p });
|
|
2572
|
+
} catch {
|
|
2573
|
+
return !1;
|
|
2574
|
+
}
|
|
2575
|
+
}, n = function(c, p, d) {
|
|
2576
|
+
try {
|
|
2577
|
+
var h = pe(e, c), m = pe(t, c), w = y.defined(p), g = y.defined(d);
|
|
2578
|
+
if (w || g) {
|
|
2579
|
+
var v = g ? _e(d, h) : !_e(p, h), S = _e(p, m);
|
|
2580
|
+
return v && S;
|
|
2581
|
+
}
|
|
2582
|
+
return [h, m].every(y.array) || [h, m].every(y.plainObject) ? !Q(h, m) : h !== m;
|
|
2583
|
+
} catch {
|
|
2584
|
+
return !1;
|
|
2585
|
+
}
|
|
2586
|
+
}, o = function(c, p, d) {
|
|
2587
|
+
if (!y.defined(c))
|
|
2588
|
+
return !1;
|
|
2589
|
+
try {
|
|
2590
|
+
var h = pe(e, c), m = pe(t, c), w = y.defined(d);
|
|
2591
|
+
return _e(p, h) && (w ? _e(d, m) : !w);
|
|
2592
|
+
} catch {
|
|
2593
|
+
return !1;
|
|
2594
|
+
}
|
|
2595
|
+
}, i = function(c, p) {
|
|
2596
|
+
return y.defined(c) ? (process.env.NODE_ENV === "development" && console.warn("`changedTo` is deprecated! Replace it with `change`"), n(c, p)) : !1;
|
|
2597
|
+
}, s = function(c, p, d) {
|
|
2598
|
+
if (!y.defined(c))
|
|
2599
|
+
return !1;
|
|
2600
|
+
try {
|
|
2601
|
+
return gr(e, t, { key: c, actual: p, previous: d, type: "decreased" });
|
|
2602
|
+
} catch {
|
|
2603
|
+
return !1;
|
|
2604
|
+
}
|
|
2605
|
+
}, a = function(c) {
|
|
2606
|
+
try {
|
|
2607
|
+
var p = Er(e, t, { key: c }), d = p[0], h = p[1];
|
|
2608
|
+
return !!d.length && !h.length;
|
|
2609
|
+
} catch {
|
|
2610
|
+
return !1;
|
|
2611
|
+
}
|
|
2612
|
+
}, l = function(c) {
|
|
2613
|
+
try {
|
|
2614
|
+
var p = Er(e, t, { key: c }), d = p[0], h = p[1];
|
|
2615
|
+
return !d.length && !!h.length;
|
|
2616
|
+
} catch {
|
|
2617
|
+
return !1;
|
|
2618
|
+
}
|
|
2619
|
+
}, u = function(c, p, d) {
|
|
2620
|
+
if (!y.defined(c))
|
|
2621
|
+
return !1;
|
|
2622
|
+
try {
|
|
2623
|
+
return gr(e, t, { key: c, actual: p, previous: d, type: "increased" });
|
|
2624
|
+
} catch {
|
|
2625
|
+
return !1;
|
|
2626
|
+
}
|
|
2627
|
+
}, f = function(c, p) {
|
|
2628
|
+
try {
|
|
2629
|
+
return br(e, t, { key: c, type: "removed", value: p });
|
|
2630
|
+
} catch {
|
|
2631
|
+
return !1;
|
|
2632
|
+
}
|
|
2633
|
+
};
|
|
2634
|
+
return { added: r, changed: n, changedFrom: o, changedTo: i, decreased: s, emptied: a, filled: l, increased: u, removed: f };
|
|
2635
|
+
}
|
|
2636
|
+
function Sr(e, t) {
|
|
2637
|
+
var r = Object.keys(e);
|
|
2638
|
+
if (Object.getOwnPropertySymbols) {
|
|
2639
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
2640
|
+
t && (n = n.filter(function(o) {
|
|
2641
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
2642
|
+
})), r.push.apply(r, n);
|
|
2643
|
+
}
|
|
2644
|
+
return r;
|
|
2645
|
+
}
|
|
2646
|
+
function Y(e) {
|
|
2647
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2648
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
2649
|
+
t % 2 ? Sr(Object(r), !0).forEach(function(n) {
|
|
2650
|
+
J(e, n, r[n]);
|
|
2651
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Sr(Object(r)).forEach(function(n) {
|
|
2652
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2653
|
+
});
|
|
2654
|
+
}
|
|
2655
|
+
return e;
|
|
2656
|
+
}
|
|
2657
|
+
function Be(e, t) {
|
|
2658
|
+
if (!(e instanceof t))
|
|
2659
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2660
|
+
}
|
|
2661
|
+
function Qo(e, t) {
|
|
2662
|
+
for (var r = 0; r < t.length; r++) {
|
|
2663
|
+
var n = t[r];
|
|
2664
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, tn(n.key), n);
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
function Ue(e, t, r) {
|
|
2668
|
+
return t && Qo(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
2669
|
+
writable: !1
|
|
2670
|
+
}), e;
|
|
2671
|
+
}
|
|
2672
|
+
function J(e, t, r) {
|
|
2673
|
+
return t = tn(t), t in e ? Object.defineProperty(e, t, {
|
|
2674
|
+
value: r,
|
|
2675
|
+
enumerable: !0,
|
|
2676
|
+
configurable: !0,
|
|
2677
|
+
writable: !0
|
|
2678
|
+
}) : e[t] = r, e;
|
|
2679
|
+
}
|
|
2680
|
+
function ze(e, t) {
|
|
2681
|
+
if (typeof t != "function" && t !== null)
|
|
2682
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
2683
|
+
e.prototype = Object.create(t && t.prototype, {
|
|
2684
|
+
constructor: {
|
|
2685
|
+
value: e,
|
|
2686
|
+
writable: !0,
|
|
2687
|
+
configurable: !0
|
|
2688
|
+
}
|
|
2689
|
+
}), Object.defineProperty(e, "prototype", {
|
|
2690
|
+
writable: !1
|
|
2691
|
+
}), t && Nt(e, t);
|
|
2692
|
+
}
|
|
2693
|
+
function it(e) {
|
|
2694
|
+
return it = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
2695
|
+
return r.__proto__ || Object.getPrototypeOf(r);
|
|
2696
|
+
}, it(e);
|
|
2697
|
+
}
|
|
2698
|
+
function Nt(e, t) {
|
|
2699
|
+
return Nt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
|
|
2700
|
+
return n.__proto__ = o, n;
|
|
2701
|
+
}, Nt(e, t);
|
|
2702
|
+
}
|
|
2703
|
+
function ei() {
|
|
2704
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
2705
|
+
if (typeof Proxy == "function") return !0;
|
|
2706
|
+
try {
|
|
2707
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2708
|
+
})), !0;
|
|
2709
|
+
} catch {
|
|
2710
|
+
return !1;
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
function ti(e, t) {
|
|
2714
|
+
if (e == null) return {};
|
|
2715
|
+
var r = {}, n = Object.keys(e), o, i;
|
|
2716
|
+
for (i = 0; i < n.length; i++)
|
|
2717
|
+
o = n[i], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
2718
|
+
return r;
|
|
2719
|
+
}
|
|
2720
|
+
function en(e, t) {
|
|
2721
|
+
if (e == null) return {};
|
|
2722
|
+
var r = ti(e, t), n, o;
|
|
2723
|
+
if (Object.getOwnPropertySymbols) {
|
|
2724
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
2725
|
+
for (o = 0; o < i.length; o++)
|
|
2726
|
+
n = i[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
2727
|
+
}
|
|
2728
|
+
return r;
|
|
2729
|
+
}
|
|
2730
|
+
function de(e) {
|
|
2731
|
+
if (e === void 0)
|
|
2732
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2733
|
+
return e;
|
|
2734
|
+
}
|
|
2735
|
+
function ri(e, t) {
|
|
2736
|
+
if (t && (typeof t == "object" || typeof t == "function"))
|
|
2737
|
+
return t;
|
|
2738
|
+
if (t !== void 0)
|
|
2739
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2740
|
+
return de(e);
|
|
2741
|
+
}
|
|
2742
|
+
function qe(e) {
|
|
2743
|
+
var t = ei();
|
|
2744
|
+
return function() {
|
|
2745
|
+
var n = it(e), o;
|
|
2746
|
+
if (t) {
|
|
2747
|
+
var i = it(this).constructor;
|
|
2748
|
+
o = Reflect.construct(n, arguments, i);
|
|
2749
|
+
} else
|
|
2750
|
+
o = n.apply(this, arguments);
|
|
2751
|
+
return ri(this, o);
|
|
2752
|
+
};
|
|
2753
|
+
}
|
|
2754
|
+
function ni(e, t) {
|
|
2755
|
+
if (typeof e != "object" || e === null) return e;
|
|
2756
|
+
var r = e[Symbol.toPrimitive];
|
|
2757
|
+
if (r !== void 0) {
|
|
2758
|
+
var n = r.call(e, t || "default");
|
|
2759
|
+
if (typeof n != "object") return n;
|
|
2760
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2761
|
+
}
|
|
2762
|
+
return (t === "string" ? String : Number)(e);
|
|
2763
|
+
}
|
|
2764
|
+
function tn(e) {
|
|
2765
|
+
var t = ni(e, "string");
|
|
2766
|
+
return typeof t == "symbol" ? t : String(t);
|
|
2767
|
+
}
|
|
2768
|
+
var oi = { flip: { padding: 20 }, preventOverflow: { padding: 10 } }, ii = "The typeValidator argument must be a function with the signature function(props, propName, componentName).", si = "The error message is optional, but must be a string if provided.";
|
|
2769
|
+
function ai(e, t, r, n) {
|
|
2770
|
+
return typeof e == "boolean" ? e : typeof e == "function" ? e(t, r, n) : e ? !!e : !1;
|
|
2771
|
+
}
|
|
2772
|
+
function li(e, t) {
|
|
2773
|
+
return Object.hasOwnProperty.call(e, t);
|
|
2774
|
+
}
|
|
2775
|
+
function ci(e, t, r, n) {
|
|
2776
|
+
return new Error("Required ".concat(e[t], " `").concat(t, "` was not specified in `").concat(r, "`."));
|
|
2777
|
+
}
|
|
2778
|
+
function ui(e, t) {
|
|
2779
|
+
if (typeof e != "function")
|
|
2780
|
+
throw new TypeError(ii);
|
|
2781
|
+
if (t)
|
|
2782
|
+
throw new TypeError(si);
|
|
2783
|
+
}
|
|
2784
|
+
function Tr(e, t, r) {
|
|
2785
|
+
return ui(e, r), function(n, o, i) {
|
|
2786
|
+
for (var s = arguments.length, a = new Array(s > 3 ? s - 3 : 0), l = 3; l < s; l++)
|
|
2787
|
+
a[l - 3] = arguments[l];
|
|
2788
|
+
return ai(t, n, o, i) ? li(n, o) ? e.apply(void 0, [n, o, i].concat(a)) : ci(n, o, i) : e.apply(void 0, [n, o, i].concat(a));
|
|
2789
|
+
};
|
|
2790
|
+
}
|
|
2791
|
+
var $ = { INIT: "init", IDLE: "idle", OPENING: "opening", OPEN: "open", CLOSING: "closing", ERROR: "error" }, Ae = Qe.createPortal !== void 0;
|
|
2792
|
+
function ce() {
|
|
2793
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2794
|
+
}
|
|
2795
|
+
function Tt() {
|
|
2796
|
+
return "ontouchstart" in window && /Mobi/.test(navigator.userAgent);
|
|
2797
|
+
}
|
|
2798
|
+
function Ze(e) {
|
|
2799
|
+
var t = e.title, r = e.data, n = e.warn, o = n === void 0 ? !1 : n, i = e.debug, s = i === void 0 ? !1 : i, a = o ? console.warn || console.error : console.log;
|
|
2800
|
+
s && t && r && (console.groupCollapsed("%creact-floater: ".concat(t), "color: #9b00ff; font-weight: bold; font-size: 12px;"), Array.isArray(r) ? r.forEach(function(l) {
|
|
2801
|
+
y.plainObject(l) && l.key ? a.apply(console, [l.key, l.value]) : a.apply(console, [l]);
|
|
2802
|
+
}) : a.apply(console, [r]), console.groupEnd());
|
|
2803
|
+
}
|
|
2804
|
+
function fi(e, t, r) {
|
|
2805
|
+
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
2806
|
+
e.addEventListener(t, r, n);
|
|
2807
|
+
}
|
|
2808
|
+
function pi(e, t, r) {
|
|
2809
|
+
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
2810
|
+
e.removeEventListener(t, r, n);
|
|
2811
|
+
}
|
|
2812
|
+
function di(e, t, r) {
|
|
2813
|
+
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, o;
|
|
2814
|
+
o = function(s) {
|
|
2815
|
+
r(s), pi(e, t, o);
|
|
2816
|
+
}, fi(e, t, o, n);
|
|
2817
|
+
}
|
|
2818
|
+
function Pr() {
|
|
2819
|
+
}
|
|
2820
|
+
var rn = /* @__PURE__ */ function(e) {
|
|
2821
|
+
ze(r, e);
|
|
2822
|
+
var t = qe(r);
|
|
2823
|
+
function r() {
|
|
2824
|
+
return Be(this, r), t.apply(this, arguments);
|
|
2825
|
+
}
|
|
2826
|
+
return Ue(r, [{ key: "componentDidMount", value: function() {
|
|
2827
|
+
ce() && (this.node || this.appendNode(), Ae || this.renderPortal());
|
|
2828
|
+
} }, { key: "componentDidUpdate", value: function() {
|
|
2829
|
+
ce() && (Ae || this.renderPortal());
|
|
2830
|
+
} }, { key: "componentWillUnmount", value: function() {
|
|
2831
|
+
!ce() || !this.node || (Ae || Qe.unmountComponentAtNode(this.node), this.node && this.node.parentNode === document.body && (document.body.removeChild(this.node), this.node = void 0));
|
|
2832
|
+
} }, { key: "appendNode", value: function() {
|
|
2833
|
+
var o = this.props, i = o.id, s = o.zIndex;
|
|
2834
|
+
this.node || (this.node = document.createElement("div"), i && (this.node.id = i), s && (this.node.style.zIndex = s), document.body.appendChild(this.node));
|
|
2835
|
+
} }, { key: "renderPortal", value: function() {
|
|
2836
|
+
if (!ce()) return null;
|
|
2837
|
+
var o = this.props, i = o.children, s = o.setRef;
|
|
2838
|
+
if (this.node || this.appendNode(), Ae)
|
|
2839
|
+
return /* @__PURE__ */ Qe.createPortal(i, this.node);
|
|
2840
|
+
var a = Qe.unstable_renderSubtreeIntoContainer(this, i.length > 1 ? /* @__PURE__ */ _.createElement("div", null, i) : i[0], this.node);
|
|
2841
|
+
return s(a), null;
|
|
2842
|
+
} }, { key: "renderReact16", value: function() {
|
|
2843
|
+
var o = this.props, i = o.hasChildren, s = o.placement, a = o.target;
|
|
2844
|
+
return i ? this.renderPortal() : a || s === "center" ? this.renderPortal() : null;
|
|
2845
|
+
} }, { key: "render", value: function() {
|
|
2846
|
+
return Ae ? this.renderReact16() : null;
|
|
2847
|
+
} }]), r;
|
|
2848
|
+
}(_.Component);
|
|
2849
|
+
J(rn, "propTypes", { children: O.oneOfType([O.element, O.array]), hasChildren: O.bool, id: O.oneOfType([O.string, O.number]), placement: O.string, setRef: O.func.isRequired, target: O.oneOfType([O.object, O.string]), zIndex: O.number });
|
|
2850
|
+
var nn = /* @__PURE__ */ function(e) {
|
|
2851
|
+
ze(r, e);
|
|
2852
|
+
var t = qe(r);
|
|
2853
|
+
function r() {
|
|
2854
|
+
return Be(this, r), t.apply(this, arguments);
|
|
2855
|
+
}
|
|
2856
|
+
return Ue(r, [{ key: "parentStyle", get: function() {
|
|
2857
|
+
var o = this.props, i = o.placement, s = o.styles, a = s.arrow.length, l = { pointerEvents: "none", position: "absolute", width: "100%" };
|
|
2858
|
+
return i.startsWith("top") ? (l.bottom = 0, l.left = 0, l.right = 0, l.height = a) : i.startsWith("bottom") ? (l.left = 0, l.right = 0, l.top = 0, l.height = a) : i.startsWith("left") ? (l.right = 0, l.top = 0, l.bottom = 0) : i.startsWith("right") && (l.left = 0, l.top = 0), l;
|
|
2859
|
+
} }, { key: "render", value: function() {
|
|
2860
|
+
var o = this.props, i = o.placement, s = o.setArrowRef, a = o.styles, l = a.arrow, u = l.color, f = l.display, c = l.length, p = l.margin, d = l.position, h = l.spread, m = { display: f, position: d }, w, g = h, v = c;
|
|
2861
|
+
return i.startsWith("top") ? (w = "0,0 ".concat(g / 2, ",").concat(v, " ").concat(g, ",0"), m.bottom = 0, m.marginLeft = p, m.marginRight = p) : i.startsWith("bottom") ? (w = "".concat(g, ",").concat(v, " ").concat(g / 2, ",0 0,").concat(v), m.top = 0, m.marginLeft = p, m.marginRight = p) : i.startsWith("left") ? (v = h, g = c, w = "0,0 ".concat(g, ",").concat(v / 2, " 0,").concat(v), m.right = 0, m.marginTop = p, m.marginBottom = p) : i.startsWith("right") && (v = h, g = c, w = "".concat(g, ",").concat(v, " ").concat(g, ",0 0,").concat(v / 2), m.left = 0, m.marginTop = p, m.marginBottom = p), /* @__PURE__ */ _.createElement("div", { className: "__floater__arrow", style: this.parentStyle }, /* @__PURE__ */ _.createElement("span", { ref: s, style: m }, /* @__PURE__ */ _.createElement("svg", { width: g, height: v, version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ _.createElement("polygon", { points: w, fill: u }))));
|
|
2862
|
+
} }]), r;
|
|
2863
|
+
}(_.Component);
|
|
2864
|
+
J(nn, "propTypes", { placement: O.string.isRequired, setArrowRef: O.func.isRequired, styles: O.object.isRequired });
|
|
2865
|
+
var hi = ["color", "height", "width"];
|
|
2866
|
+
function on(e) {
|
|
2867
|
+
var t = e.handleClick, r = e.styles, n = r.color, o = r.height, i = r.width, s = en(r, hi);
|
|
2868
|
+
return /* @__PURE__ */ _.createElement("button", { "aria-label": "close", onClick: t, style: s, type: "button" }, /* @__PURE__ */ _.createElement("svg", { width: "".concat(i, "px"), height: "".concat(o, "px"), viewBox: "0 0 18 18", version: "1.1", xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "xMidYMid" }, /* @__PURE__ */ _.createElement("g", null, /* @__PURE__ */ _.createElement("path", { d: "M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z", fill: n }))));
|
|
2869
|
+
}
|
|
2870
|
+
on.propTypes = { handleClick: O.func.isRequired, styles: O.object.isRequired };
|
|
2871
|
+
function sn(e) {
|
|
2872
|
+
var t = e.content, r = e.footer, n = e.handleClick, o = e.open, i = e.positionWrapper, s = e.showCloseButton, a = e.title, l = e.styles, u = { content: /* @__PURE__ */ _.isValidElement(t) ? t : /* @__PURE__ */ _.createElement("div", { className: "__floater__content", style: l.content }, t) };
|
|
2873
|
+
return a && (u.title = /* @__PURE__ */ _.isValidElement(a) ? a : /* @__PURE__ */ _.createElement("div", { className: "__floater__title", style: l.title }, a)), r && (u.footer = /* @__PURE__ */ _.isValidElement(r) ? r : /* @__PURE__ */ _.createElement("div", { className: "__floater__footer", style: l.footer }, r)), (s || i) && !y.boolean(o) && (u.close = /* @__PURE__ */ _.createElement(on, { styles: l.close, handleClick: n })), /* @__PURE__ */ _.createElement("div", { className: "__floater__container", style: l.container }, u.close, u.title, u.content, u.footer);
|
|
2874
|
+
}
|
|
2875
|
+
sn.propTypes = { content: O.node.isRequired, footer: O.node, handleClick: O.func.isRequired, open: O.bool, positionWrapper: O.bool.isRequired, showCloseButton: O.bool.isRequired, styles: O.object.isRequired, title: O.node };
|
|
2876
|
+
var an = /* @__PURE__ */ function(e) {
|
|
2877
|
+
ze(r, e);
|
|
2878
|
+
var t = qe(r);
|
|
2879
|
+
function r() {
|
|
2880
|
+
return Be(this, r), t.apply(this, arguments);
|
|
2881
|
+
}
|
|
2882
|
+
return Ue(r, [{ key: "style", get: function() {
|
|
2883
|
+
var o = this.props, i = o.disableAnimation, s = o.component, a = o.placement, l = o.hideArrow, u = o.status, f = o.styles, c = f.arrow.length, p = f.floater, d = f.floaterCentered, h = f.floaterClosing, m = f.floaterOpening, w = f.floaterWithAnimation, g = f.floaterWithComponent, v = {};
|
|
2884
|
+
return l || (a.startsWith("top") ? v.padding = "0 0 ".concat(c, "px") : a.startsWith("bottom") ? v.padding = "".concat(c, "px 0 0") : a.startsWith("left") ? v.padding = "0 ".concat(c, "px 0 0") : a.startsWith("right") && (v.padding = "0 0 0 ".concat(c, "px"))), [$.OPENING, $.OPEN].indexOf(u) !== -1 && (v = Y(Y({}, v), m)), u === $.CLOSING && (v = Y(Y({}, v), h)), u === $.OPEN && !i && (v = Y(Y({}, v), w)), a === "center" && (v = Y(Y({}, v), d)), s && (v = Y(Y({}, v), g)), Y(Y({}, p), v);
|
|
2885
|
+
} }, { key: "render", value: function() {
|
|
2886
|
+
var o = this.props, i = o.component, s = o.handleClick, a = o.hideArrow, l = o.setFloaterRef, u = o.status, f = {}, c = ["__floater"];
|
|
2887
|
+
return i ? /* @__PURE__ */ _.isValidElement(i) ? f.content = /* @__PURE__ */ _.cloneElement(i, { closeFn: s }) : f.content = i({ closeFn: s }) : f.content = /* @__PURE__ */ _.createElement(sn, this.props), u === $.OPEN && c.push("__floater__open"), a || (f.arrow = /* @__PURE__ */ _.createElement(nn, this.props)), /* @__PURE__ */ _.createElement("div", { ref: l, className: c.join(" "), style: this.style }, /* @__PURE__ */ _.createElement("div", { className: "__floater__body" }, f.content, f.arrow));
|
|
2888
|
+
} }]), r;
|
|
2889
|
+
}(_.Component);
|
|
2890
|
+
J(an, "propTypes", { component: O.oneOfType([O.func, O.element]), content: O.node, disableAnimation: O.bool.isRequired, footer: O.node, handleClick: O.func.isRequired, hideArrow: O.bool.isRequired, open: O.bool, placement: O.string.isRequired, positionWrapper: O.bool.isRequired, setArrowRef: O.func.isRequired, setFloaterRef: O.func.isRequired, showCloseButton: O.bool, status: O.string.isRequired, styles: O.object.isRequired, title: O.node });
|
|
2891
|
+
var ln = /* @__PURE__ */ function(e) {
|
|
2892
|
+
ze(r, e);
|
|
2893
|
+
var t = qe(r);
|
|
2894
|
+
function r() {
|
|
2895
|
+
return Be(this, r), t.apply(this, arguments);
|
|
2896
|
+
}
|
|
2897
|
+
return Ue(r, [{ key: "render", value: function() {
|
|
2898
|
+
var o = this.props, i = o.children, s = o.handleClick, a = o.handleMouseEnter, l = o.handleMouseLeave, u = o.setChildRef, f = o.setWrapperRef, c = o.style, p = o.styles, d;
|
|
2899
|
+
if (i)
|
|
2900
|
+
if (_.Children.count(i) === 1)
|
|
2901
|
+
if (!/* @__PURE__ */ _.isValidElement(i))
|
|
2902
|
+
d = /* @__PURE__ */ _.createElement("span", null, i);
|
|
2903
|
+
else {
|
|
2904
|
+
var h = y.function(i.type) ? "innerRef" : "ref";
|
|
2905
|
+
d = /* @__PURE__ */ _.cloneElement(_.Children.only(i), J({}, h, u));
|
|
2906
|
+
}
|
|
2907
|
+
else
|
|
2908
|
+
d = i;
|
|
2909
|
+
return d ? /* @__PURE__ */ _.createElement("span", { ref: f, style: Y(Y({}, p), c), onClick: s, onMouseEnter: a, onMouseLeave: l }, d) : null;
|
|
2910
|
+
} }]), r;
|
|
2911
|
+
}(_.Component);
|
|
2912
|
+
J(ln, "propTypes", { children: O.node, handleClick: O.func.isRequired, handleMouseEnter: O.func.isRequired, handleMouseLeave: O.func.isRequired, setChildRef: O.func.isRequired, setWrapperRef: O.func.isRequired, style: O.object, styles: O.object.isRequired });
|
|
2913
|
+
var yi = { zIndex: 100 };
|
|
2914
|
+
function mi(e) {
|
|
2915
|
+
var t = ne(yi, e.options || {});
|
|
2916
|
+
return { wrapper: { cursor: "help", display: "inline-flex", flexDirection: "column", zIndex: t.zIndex }, wrapperPosition: { left: -1e3, position: "absolute", top: -1e3, visibility: "hidden" }, floater: { display: "inline-block", filter: "drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))", maxWidth: 300, opacity: 0, position: "relative", transition: "opacity 0.3s", visibility: "hidden", zIndex: t.zIndex }, floaterOpening: { opacity: 1, visibility: "visible" }, floaterWithAnimation: { opacity: 1, transition: "opacity 0.3s, transform 0.2s", visibility: "visible" }, floaterWithComponent: { maxWidth: "100%" }, floaterClosing: { opacity: 0, visibility: "visible" }, floaterCentered: { left: "50%", position: "fixed", top: "50%", transform: "translate(-50%, -50%)" }, container: { backgroundColor: "#fff", color: "#666", minHeight: 60, minWidth: 200, padding: 20, position: "relative", zIndex: 10 }, title: { borderBottom: "1px solid #555", color: "#555", fontSize: 18, marginBottom: 5, paddingBottom: 6, paddingRight: 18 }, content: { fontSize: 15 }, close: { backgroundColor: "transparent", border: 0, borderRadius: 0, color: "#555", fontSize: 0, height: 15, outline: "none", padding: 10, position: "absolute", right: 0, top: 0, width: 15, WebkitAppearance: "none" }, footer: { borderTop: "1px solid #ccc", fontSize: 13, marginTop: 10, paddingTop: 5 }, arrow: { color: "#fff", display: "inline-flex", length: 16, margin: 8, position: "absolute", spread: 32 }, options: t };
|
|
2917
|
+
}
|
|
2918
|
+
var vi = ["arrow", "flip", "offset"], gi = ["position", "top", "right", "bottom", "left"], $t = /* @__PURE__ */ function(e) {
|
|
2919
|
+
ze(r, e);
|
|
2920
|
+
var t = qe(r);
|
|
2921
|
+
function r(n) {
|
|
2922
|
+
var o;
|
|
2923
|
+
return Be(this, r), o = t.call(this, n), J(de(o), "setArrowRef", function(i) {
|
|
2924
|
+
o.arrowRef = i;
|
|
2925
|
+
}), J(de(o), "setChildRef", function(i) {
|
|
2926
|
+
o.childRef = i;
|
|
2927
|
+
}), J(de(o), "setFloaterRef", function(i) {
|
|
2928
|
+
o.floaterRef = i;
|
|
2929
|
+
}), J(de(o), "setWrapperRef", function(i) {
|
|
2930
|
+
o.wrapperRef = i;
|
|
2931
|
+
}), J(de(o), "handleTransitionEnd", function() {
|
|
2932
|
+
var i = o.state.status, s = o.props.callback;
|
|
2933
|
+
o.wrapperPopper && o.wrapperPopper.instance.update(), o.setState({ status: i === $.OPENING ? $.OPEN : $.IDLE }, function() {
|
|
2934
|
+
var a = o.state.status;
|
|
2935
|
+
s(a === $.OPEN ? "open" : "close", o.props);
|
|
2936
|
+
});
|
|
2937
|
+
}), J(de(o), "handleClick", function() {
|
|
2938
|
+
var i = o.props, s = i.event, a = i.open;
|
|
2939
|
+
if (!y.boolean(a)) {
|
|
2940
|
+
var l = o.state, u = l.positionWrapper, f = l.status;
|
|
2941
|
+
(o.event === "click" || o.event === "hover" && u) && (Ze({ title: "click", data: [{ event: s, status: f === $.OPEN ? "closing" : "opening" }], debug: o.debug }), o.toggle());
|
|
2942
|
+
}
|
|
2943
|
+
}), J(de(o), "handleMouseEnter", function() {
|
|
2944
|
+
var i = o.props, s = i.event, a = i.open;
|
|
2945
|
+
if (!(y.boolean(a) || Tt())) {
|
|
2946
|
+
var l = o.state.status;
|
|
2947
|
+
o.event === "hover" && l === $.IDLE && (Ze({ title: "mouseEnter", data: [{ key: "originalEvent", value: s }], debug: o.debug }), clearTimeout(o.eventDelayTimeout), o.toggle());
|
|
2948
|
+
}
|
|
2949
|
+
}), J(de(o), "handleMouseLeave", function() {
|
|
2950
|
+
var i = o.props, s = i.event, a = i.eventDelay, l = i.open;
|
|
2951
|
+
if (!(y.boolean(l) || Tt())) {
|
|
2952
|
+
var u = o.state, f = u.status, c = u.positionWrapper;
|
|
2953
|
+
o.event === "hover" && (Ze({ title: "mouseLeave", data: [{ key: "originalEvent", value: s }], debug: o.debug }), a ? [$.OPENING, $.OPEN].indexOf(f) !== -1 && !c && !o.eventDelayTimeout && (o.eventDelayTimeout = setTimeout(function() {
|
|
2954
|
+
delete o.eventDelayTimeout, o.toggle();
|
|
2955
|
+
}, a * 1e3)) : o.toggle($.IDLE));
|
|
2956
|
+
}
|
|
2957
|
+
}), o.state = { currentPlacement: n.placement, needsUpdate: !1, positionWrapper: n.wrapperOptions.position && !!n.target, status: $.INIT, statusWrapper: $.INIT }, o._isMounted = !1, o.hasMounted = !1, ce() && window.addEventListener("load", function() {
|
|
2958
|
+
o.popper && o.popper.instance.update(), o.wrapperPopper && o.wrapperPopper.instance.update();
|
|
2959
|
+
}), o;
|
|
2960
|
+
}
|
|
2961
|
+
return Ue(r, [{ key: "componentDidMount", value: function() {
|
|
2962
|
+
if (ce()) {
|
|
2963
|
+
var o = this.state.positionWrapper, i = this.props, s = i.children, a = i.open, l = i.target;
|
|
2964
|
+
this._isMounted = !0, Ze({ title: "init", data: { hasChildren: !!s, hasTarget: !!l, isControlled: y.boolean(a), positionWrapper: o, target: this.target, floater: this.floaterRef }, debug: this.debug }), this.hasMounted || (this.initPopper(), this.hasMounted = !0), !s && l && y.boolean(a);
|
|
2965
|
+
}
|
|
2966
|
+
} }, { key: "componentDidUpdate", value: function(o, i) {
|
|
2967
|
+
if (ce()) {
|
|
2968
|
+
var s = this.props, a = s.autoOpen, l = s.open, u = s.target, f = s.wrapperOptions, c = Zo(i, this.state), p = c.changedFrom, d = c.changed;
|
|
2969
|
+
if (o.open !== l) {
|
|
2970
|
+
var h;
|
|
2971
|
+
y.boolean(l) && (h = l ? $.OPENING : $.CLOSING), this.toggle(h);
|
|
2972
|
+
}
|
|
2973
|
+
(o.wrapperOptions.position !== f.position || o.target !== u) && this.changeWrapperPosition(this.props), d("status", $.IDLE) && l ? this.toggle($.OPEN) : p("status", $.INIT, $.IDLE) && a && this.toggle($.OPEN), this.popper && d("status", $.OPENING) && this.popper.instance.update(), this.floaterRef && (d("status", $.OPENING) || d("status", $.CLOSING)) && di(this.floaterRef, "transitionend", this.handleTransitionEnd), d("needsUpdate", !0) && this.rebuildPopper();
|
|
2974
|
+
}
|
|
2975
|
+
} }, { key: "componentWillUnmount", value: function() {
|
|
2976
|
+
ce() && (this._isMounted = !1, this.popper && this.popper.instance.destroy(), this.wrapperPopper && this.wrapperPopper.instance.destroy());
|
|
2977
|
+
} }, { key: "initPopper", value: function() {
|
|
2978
|
+
var o = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.target, s = this.state.positionWrapper, a = this.props, l = a.disableFlip, u = a.getPopper, f = a.hideArrow, c = a.offset, p = a.placement, d = a.wrapperOptions, h = p === "top" || p === "bottom" ? "flip" : ["right", "bottom-end", "top-end", "left", "top-start", "bottom-start"];
|
|
2979
|
+
if (p === "center")
|
|
2980
|
+
this.setState({ status: $.IDLE });
|
|
2981
|
+
else if (i && this.floaterRef) {
|
|
2982
|
+
var m = this.options, w = m.arrow, g = m.flip, v = m.offset, S = en(m, vi);
|
|
2983
|
+
new Le(i, this.floaterRef, { placement: p, modifiers: Y({ arrow: Y({ enabled: !f, element: this.arrowRef }, w), flip: Y({ enabled: !l, behavior: h }, g), offset: Y({ offset: "0, ".concat(c, "px") }, v) }, S), onCreate: function(j) {
|
|
2984
|
+
var K;
|
|
2985
|
+
if (o.popper = j, !((K = o.floaterRef) !== null && K !== void 0 && K.isConnected)) {
|
|
2986
|
+
o.setState({ needsUpdate: !0 });
|
|
2987
|
+
return;
|
|
2988
|
+
}
|
|
2989
|
+
u(j, "floater"), o._isMounted && o.setState({ currentPlacement: j.placement, status: $.IDLE }), p !== j.placement && setTimeout(function() {
|
|
2990
|
+
j.instance.update();
|
|
2991
|
+
}, 1);
|
|
2992
|
+
}, onUpdate: function(j) {
|
|
2993
|
+
o.popper = j;
|
|
2994
|
+
var K = o.state.currentPlacement;
|
|
2995
|
+
o._isMounted && j.placement !== K && o.setState({ currentPlacement: j.placement });
|
|
2996
|
+
} });
|
|
2997
|
+
}
|
|
2998
|
+
if (s) {
|
|
2999
|
+
var N = y.undefined(d.offset) ? 0 : d.offset;
|
|
3000
|
+
new Le(this.target, this.wrapperRef, { placement: d.placement || p, modifiers: { arrow: { enabled: !1 }, offset: { offset: "0, ".concat(N, "px") }, flip: { enabled: !1 } }, onCreate: function(j) {
|
|
3001
|
+
o.wrapperPopper = j, o._isMounted && o.setState({ statusWrapper: $.IDLE }), u(j, "wrapper"), p !== j.placement && setTimeout(function() {
|
|
3002
|
+
j.instance.update();
|
|
3003
|
+
}, 1);
|
|
3004
|
+
} });
|
|
3005
|
+
}
|
|
3006
|
+
} }, { key: "rebuildPopper", value: function() {
|
|
3007
|
+
var o = this;
|
|
3008
|
+
this.floaterRefInterval = setInterval(function() {
|
|
3009
|
+
var i;
|
|
3010
|
+
(i = o.floaterRef) !== null && i !== void 0 && i.isConnected && (clearInterval(o.floaterRefInterval), o.setState({ needsUpdate: !1 }), o.initPopper());
|
|
3011
|
+
}, 50);
|
|
3012
|
+
} }, { key: "changeWrapperPosition", value: function(o) {
|
|
3013
|
+
var i = o.target, s = o.wrapperOptions;
|
|
3014
|
+
this.setState({ positionWrapper: s.position && !!i });
|
|
3015
|
+
} }, { key: "toggle", value: function(o) {
|
|
3016
|
+
var i = this.state.status, s = i === $.OPEN ? $.CLOSING : $.OPENING;
|
|
3017
|
+
y.undefined(o) || (s = o), this.setState({ status: s });
|
|
3018
|
+
} }, { key: "debug", get: function() {
|
|
3019
|
+
var o = this.props.debug;
|
|
3020
|
+
return o || ce() && "ReactFloaterDebug" in window && !!window.ReactFloaterDebug;
|
|
3021
|
+
} }, { key: "event", get: function() {
|
|
3022
|
+
var o = this.props, i = o.disableHoverToClick, s = o.event;
|
|
3023
|
+
return s === "hover" && Tt() && !i ? "click" : s;
|
|
3024
|
+
} }, { key: "options", get: function() {
|
|
3025
|
+
var o = this.props.options;
|
|
3026
|
+
return ne(oi, o || {});
|
|
3027
|
+
} }, { key: "styles", get: function() {
|
|
3028
|
+
var o = this, i = this.state, s = i.status, a = i.positionWrapper, l = i.statusWrapper, u = this.props.styles, f = ne(mi(u), u);
|
|
3029
|
+
if (a) {
|
|
3030
|
+
var c;
|
|
3031
|
+
[$.IDLE].indexOf(s) === -1 || [$.IDLE].indexOf(l) === -1 ? c = f.wrapperPosition : c = this.wrapperPopper.styles, f.wrapper = Y(Y({}, f.wrapper), c);
|
|
3032
|
+
}
|
|
3033
|
+
if (this.target) {
|
|
3034
|
+
var p = window.getComputedStyle(this.target);
|
|
3035
|
+
this.wrapperStyles ? f.wrapper = Y(Y({}, f.wrapper), this.wrapperStyles) : ["relative", "static"].indexOf(p.position) === -1 && (this.wrapperStyles = {}, a || (gi.forEach(function(d) {
|
|
3036
|
+
o.wrapperStyles[d] = p[d];
|
|
3037
|
+
}), f.wrapper = Y(Y({}, f.wrapper), this.wrapperStyles), this.target.style.position = "relative", this.target.style.top = "auto", this.target.style.right = "auto", this.target.style.bottom = "auto", this.target.style.left = "auto"));
|
|
3038
|
+
}
|
|
3039
|
+
return f;
|
|
3040
|
+
} }, { key: "target", get: function() {
|
|
3041
|
+
if (!ce()) return null;
|
|
3042
|
+
var o = this.props.target;
|
|
3043
|
+
return o ? y.domElement(o) ? o : document.querySelector(o) : this.childRef || this.wrapperRef;
|
|
3044
|
+
} }, { key: "render", value: function() {
|
|
3045
|
+
var o = this.state, i = o.currentPlacement, s = o.positionWrapper, a = o.status, l = this.props, u = l.children, f = l.component, c = l.content, p = l.disableAnimation, d = l.footer, h = l.hideArrow, m = l.id, w = l.open, g = l.showCloseButton, v = l.style, S = l.target, N = l.title, b = /* @__PURE__ */ _.createElement(ln, { handleClick: this.handleClick, handleMouseEnter: this.handleMouseEnter, handleMouseLeave: this.handleMouseLeave, setChildRef: this.setChildRef, setWrapperRef: this.setWrapperRef, style: v, styles: this.styles.wrapper }, u), j = {};
|
|
3046
|
+
return s ? j.wrapperInPortal = b : j.wrapperAsChildren = b, /* @__PURE__ */ _.createElement("span", null, /* @__PURE__ */ _.createElement(rn, { hasChildren: !!u, id: m, placement: i, setRef: this.setFloaterRef, target: S, zIndex: this.styles.options.zIndex }, /* @__PURE__ */ _.createElement(an, { component: f, content: c, disableAnimation: p, footer: d, handleClick: this.handleClick, hideArrow: h || i === "center", open: w, placement: i, positionWrapper: s, setArrowRef: this.setArrowRef, setFloaterRef: this.setFloaterRef, showCloseButton: g, status: a, styles: this.styles, title: N }), j.wrapperInPortal), j.wrapperAsChildren);
|
|
3047
|
+
} }]), r;
|
|
3048
|
+
}(_.Component);
|
|
3049
|
+
J($t, "propTypes", { autoOpen: O.bool, callback: O.func, children: O.node, component: Tr(O.oneOfType([O.func, O.element]), function(e) {
|
|
3050
|
+
return !e.content;
|
|
3051
|
+
}), content: Tr(O.node, function(e) {
|
|
3052
|
+
return !e.component;
|
|
3053
|
+
}), debug: O.bool, disableAnimation: O.bool, disableFlip: O.bool, disableHoverToClick: O.bool, event: O.oneOf(["hover", "click"]), eventDelay: O.number, footer: O.node, getPopper: O.func, hideArrow: O.bool, id: O.oneOfType([O.string, O.number]), offset: O.number, open: O.bool, options: O.object, placement: O.oneOf(["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "auto", "center"]), showCloseButton: O.bool, style: O.object, styles: O.object, target: O.oneOfType([O.object, O.string]), title: O.node, wrapperOptions: O.shape({ offset: O.number, placement: O.oneOf(["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "auto"]), position: O.bool }) });
|
|
3054
|
+
J($t, "defaultProps", { autoOpen: !1, callback: Pr, debug: !1, disableAnimation: !1, disableFlip: !1, disableHoverToClick: !1, event: "click", eventDelay: 0.4, getPopper: Pr, hideArrow: !1, offset: 15, placement: "bottom", showCloseButton: !1, styles: {}, target: null, wrapperOptions: { position: !1 } });
|
|
3055
|
+
var bi = Object.defineProperty, Ei = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, C = (e, t, r) => Ei(e, typeof t != "symbol" ? t + "" : t, r), q = {
|
|
3056
|
+
INIT: "init",
|
|
3057
|
+
START: "start",
|
|
3058
|
+
STOP: "stop",
|
|
3059
|
+
RESET: "reset",
|
|
3060
|
+
PREV: "prev",
|
|
3061
|
+
NEXT: "next",
|
|
3062
|
+
GO: "go",
|
|
3063
|
+
CLOSE: "close",
|
|
3064
|
+
SKIP: "skip",
|
|
3065
|
+
UPDATE: "update"
|
|
3066
|
+
}, ee = {
|
|
3067
|
+
TOUR_START: "tour:start",
|
|
3068
|
+
STEP_BEFORE: "step:before",
|
|
3069
|
+
BEACON: "beacon",
|
|
3070
|
+
TOOLTIP: "tooltip",
|
|
3071
|
+
STEP_AFTER: "step:after",
|
|
3072
|
+
TOUR_END: "tour:end",
|
|
3073
|
+
TOUR_STATUS: "tour:status",
|
|
3074
|
+
TARGET_NOT_FOUND: "error:target_not_found",
|
|
3075
|
+
ERROR: "error"
|
|
3076
|
+
}, I = {
|
|
3077
|
+
INIT: "init",
|
|
3078
|
+
READY: "ready",
|
|
3079
|
+
BEACON: "beacon",
|
|
3080
|
+
TOOLTIP: "tooltip",
|
|
3081
|
+
COMPLETE: "complete",
|
|
3082
|
+
ERROR: "error"
|
|
3083
|
+
}, k = {
|
|
3084
|
+
IDLE: "idle",
|
|
3085
|
+
READY: "ready",
|
|
3086
|
+
WAITING: "waiting",
|
|
3087
|
+
RUNNING: "running",
|
|
3088
|
+
PAUSED: "paused",
|
|
3089
|
+
SKIPPED: "skipped",
|
|
3090
|
+
FINISHED: "finished",
|
|
3091
|
+
ERROR: "error"
|
|
3092
|
+
};
|
|
3093
|
+
function ye() {
|
|
3094
|
+
var e;
|
|
3095
|
+
return !!(typeof window < "u" && ((e = window.document) != null && e.createElement));
|
|
3096
|
+
}
|
|
3097
|
+
function cn(e) {
|
|
3098
|
+
return e ? e.getBoundingClientRect() : null;
|
|
3099
|
+
}
|
|
3100
|
+
function Oi(e = !1) {
|
|
3101
|
+
const { body: t, documentElement: r } = document;
|
|
3102
|
+
if (!t || !r)
|
|
3103
|
+
return 0;
|
|
3104
|
+
if (e) {
|
|
3105
|
+
const n = [
|
|
3106
|
+
t.scrollHeight,
|
|
3107
|
+
t.offsetHeight,
|
|
3108
|
+
r.clientHeight,
|
|
3109
|
+
r.scrollHeight,
|
|
3110
|
+
r.offsetHeight
|
|
3111
|
+
].sort((i, s) => i - s), o = Math.floor(n.length / 2);
|
|
3112
|
+
return n.length % 2 === 0 ? (n[o - 1] + n[o]) / 2 : n[o];
|
|
3113
|
+
}
|
|
3114
|
+
return Math.max(
|
|
3115
|
+
t.scrollHeight,
|
|
3116
|
+
t.offsetHeight,
|
|
3117
|
+
r.clientHeight,
|
|
3118
|
+
r.scrollHeight,
|
|
3119
|
+
r.offsetHeight
|
|
3120
|
+
);
|
|
3121
|
+
}
|
|
3122
|
+
function he(e) {
|
|
3123
|
+
if (typeof e == "string")
|
|
3124
|
+
try {
|
|
3125
|
+
return document.querySelector(e);
|
|
3126
|
+
} catch (t) {
|
|
3127
|
+
return process.env.NODE_ENV !== "production" && console.error(t), null;
|
|
3128
|
+
}
|
|
3129
|
+
return e;
|
|
3130
|
+
}
|
|
3131
|
+
function wi(e) {
|
|
3132
|
+
return !e || e.nodeType !== 1 ? null : getComputedStyle(e);
|
|
3133
|
+
}
|
|
3134
|
+
function Me(e, t, r) {
|
|
3135
|
+
if (!e)
|
|
3136
|
+
return be();
|
|
3137
|
+
const n = jr(e);
|
|
3138
|
+
if (n) {
|
|
3139
|
+
if (n.isSameNode(be()))
|
|
3140
|
+
return r ? document : be();
|
|
3141
|
+
if (!(n.scrollHeight > n.offsetHeight) && !t)
|
|
3142
|
+
return n.style.overflow = "initial", be();
|
|
3143
|
+
}
|
|
3144
|
+
return n;
|
|
3145
|
+
}
|
|
3146
|
+
function He(e, t) {
|
|
3147
|
+
if (!e)
|
|
3148
|
+
return !1;
|
|
3149
|
+
const r = Me(e, t);
|
|
3150
|
+
return r ? !r.isSameNode(be()) : !1;
|
|
3151
|
+
}
|
|
3152
|
+
function Si(e) {
|
|
3153
|
+
return e.offsetParent !== document.body;
|
|
3154
|
+
}
|
|
3155
|
+
function xe(e, t = "fixed") {
|
|
3156
|
+
if (!e || !(e instanceof HTMLElement))
|
|
3157
|
+
return !1;
|
|
3158
|
+
const { nodeName: r } = e, n = wi(e);
|
|
3159
|
+
return r === "BODY" || r === "HTML" ? !1 : n && n.position === t ? !0 : e.parentNode ? xe(e.parentNode, t) : !1;
|
|
3160
|
+
}
|
|
3161
|
+
function Ti(e) {
|
|
3162
|
+
var t;
|
|
3163
|
+
if (!e)
|
|
3164
|
+
return !1;
|
|
3165
|
+
let r = e;
|
|
3166
|
+
for (; r && r !== document.body; ) {
|
|
3167
|
+
if (r instanceof HTMLElement) {
|
|
3168
|
+
const { display: n, visibility: o } = getComputedStyle(r);
|
|
3169
|
+
if (n === "none" || o === "hidden")
|
|
3170
|
+
return !1;
|
|
3171
|
+
}
|
|
3172
|
+
r = (t = r.parentElement) != null ? t : null;
|
|
3173
|
+
}
|
|
3174
|
+
return !0;
|
|
3175
|
+
}
|
|
3176
|
+
function Pi(e, t, r) {
|
|
3177
|
+
var n, o, i;
|
|
3178
|
+
const s = cn(e), a = Me(e, r), l = He(e, r), u = xe(e);
|
|
3179
|
+
let f = 0, c = (n = s == null ? void 0 : s.top) != null ? n : 0;
|
|
3180
|
+
if (l && u) {
|
|
3181
|
+
const p = (o = e == null ? void 0 : e.offsetTop) != null ? o : 0, d = (i = a == null ? void 0 : a.scrollTop) != null ? i : 0;
|
|
3182
|
+
c = p - d;
|
|
3183
|
+
} else a instanceof HTMLElement && (f = a.scrollTop, !l && !xe(e) && (c += f), a.isSameNode(be()) || (c += be().scrollTop));
|
|
3184
|
+
return Math.floor(c - t);
|
|
3185
|
+
}
|
|
3186
|
+
function xi(e, t, r) {
|
|
3187
|
+
var n;
|
|
3188
|
+
if (!e)
|
|
3189
|
+
return 0;
|
|
3190
|
+
const { offsetTop: o = 0, scrollTop: i = 0 } = (n = jr(e)) != null ? n : {};
|
|
3191
|
+
let s = e.getBoundingClientRect().top + i;
|
|
3192
|
+
o && (He(e, r) || Si(e)) && (s -= o);
|
|
3193
|
+
const a = Math.floor(s - t);
|
|
3194
|
+
return a < 0 ? 0 : a;
|
|
3195
|
+
}
|
|
3196
|
+
function be() {
|
|
3197
|
+
var e;
|
|
3198
|
+
return (e = document.scrollingElement) != null ? e : document.documentElement;
|
|
3199
|
+
}
|
|
3200
|
+
function Ci(e, t) {
|
|
3201
|
+
const { duration: r, element: n } = t;
|
|
3202
|
+
return new Promise((o, i) => {
|
|
3203
|
+
const { scrollTop: s } = n, a = e > s ? e - s : s - e;
|
|
3204
|
+
Fn.top(n, e, { duration: a < 100 ? 50 : r }, (l) => l && l.message !== "Element already at target scroll position" ? i(l) : o());
|
|
3205
|
+
});
|
|
3206
|
+
}
|
|
3207
|
+
var ke = bn !== void 0;
|
|
3208
|
+
function un(e = navigator.userAgent) {
|
|
3209
|
+
let t = e;
|
|
3210
|
+
return typeof window > "u" ? t = "node" : document.documentMode ? t = "ie" : /Edge/.test(e) ? t = "edge" : window.opera || e.includes(" OPR/") ? t = "opera" : typeof window.InstallTrigger < "u" ? t = "firefox" : window.chrome ? t = "chrome" : /(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e) && (t = "safari"), t;
|
|
3211
|
+
}
|
|
3212
|
+
function tt(e) {
|
|
3213
|
+
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
|
|
3214
|
+
}
|
|
3215
|
+
function ue(e, t = {}) {
|
|
3216
|
+
const { defaultValue: r, step: n, steps: o } = t;
|
|
3217
|
+
let i = Qt(e);
|
|
3218
|
+
if (i)
|
|
3219
|
+
(i.includes("{step}") || i.includes("{steps}")) && n && o && (i = i.replace("{step}", n.toString()).replace("{steps}", o.toString()));
|
|
3220
|
+
else if (_r(e) && !Object.values(e.props).length && tt(e.type) === "function") {
|
|
3221
|
+
const s = e.type({});
|
|
3222
|
+
i = ue(s, t);
|
|
3223
|
+
} else
|
|
3224
|
+
i = Qt(r);
|
|
3225
|
+
return i;
|
|
3226
|
+
}
|
|
3227
|
+
function Ri(e, t) {
|
|
3228
|
+
return !x.plainObject(e) || !x.array(t) ? !1 : Object.keys(e).every((r) => t.includes(r));
|
|
3229
|
+
}
|
|
3230
|
+
function Ni(e) {
|
|
3231
|
+
const t = /^#?([\da-f])([\da-f])([\da-f])$/i, r = e.replace(t, (o, i, s, a) => i + i + s + s + a + a), n = /^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(r);
|
|
3232
|
+
return n ? [parseInt(n[1], 16), parseInt(n[2], 16), parseInt(n[3], 16)] : [];
|
|
3233
|
+
}
|
|
3234
|
+
function xr(e) {
|
|
3235
|
+
return e.disableBeacon || e.placement === "center";
|
|
3236
|
+
}
|
|
3237
|
+
function Cr() {
|
|
3238
|
+
return !["chrome", "safari", "firefox", "opera"].includes(un());
|
|
3239
|
+
}
|
|
3240
|
+
function ve({ data: e, debug: t = !1, title: r, warn: n = !1 }) {
|
|
3241
|
+
const o = n ? console.warn || console.error : console.log;
|
|
3242
|
+
t && (r && e ? (console.groupCollapsed(
|
|
3243
|
+
`%creact-joyride: ${r}`,
|
|
3244
|
+
"color: #ff0044; font-weight: bold; font-size: 12px;"
|
|
3245
|
+
), Array.isArray(e) ? e.forEach((i) => {
|
|
3246
|
+
x.plainObject(i) && i.key ? o.apply(console, [i.key, i.value]) : o.apply(console, [i]);
|
|
3247
|
+
}) : o.apply(console, [e]), console.groupEnd()) : console.error("Missing title or data props"));
|
|
3248
|
+
}
|
|
3249
|
+
function Ii(e) {
|
|
3250
|
+
return Object.keys(e);
|
|
3251
|
+
}
|
|
3252
|
+
function fn(e, ...t) {
|
|
3253
|
+
if (!x.plainObject(e))
|
|
3254
|
+
throw new TypeError("Expected an object");
|
|
3255
|
+
const r = {};
|
|
3256
|
+
for (const n in e)
|
|
3257
|
+
({}).hasOwnProperty.call(e, n) && (t.includes(n) || (r[n] = e[n]));
|
|
3258
|
+
return r;
|
|
3259
|
+
}
|
|
3260
|
+
function _i(e, ...t) {
|
|
3261
|
+
if (!x.plainObject(e))
|
|
3262
|
+
throw new TypeError("Expected an object");
|
|
3263
|
+
if (!t.length)
|
|
3264
|
+
return e;
|
|
3265
|
+
const r = {};
|
|
3266
|
+
for (const n in e)
|
|
3267
|
+
({}).hasOwnProperty.call(e, n) && t.includes(n) && (r[n] = e[n]);
|
|
3268
|
+
return r;
|
|
3269
|
+
}
|
|
3270
|
+
function It(e, t, r) {
|
|
3271
|
+
const n = (i) => i.replace("{step}", String(t)).replace("{steps}", String(r));
|
|
3272
|
+
if (tt(e) === "string")
|
|
3273
|
+
return n(e);
|
|
3274
|
+
if (!_r(e))
|
|
3275
|
+
return e;
|
|
3276
|
+
const { children: o } = e.props;
|
|
3277
|
+
if (tt(o) === "string" && o.includes("{step}"))
|
|
3278
|
+
return Bt(e, {
|
|
3279
|
+
children: n(o)
|
|
3280
|
+
});
|
|
3281
|
+
if (Array.isArray(o))
|
|
3282
|
+
return Bt(e, {
|
|
3283
|
+
children: o.map((i) => typeof i == "string" ? n(i) : It(i, t, r))
|
|
3284
|
+
});
|
|
3285
|
+
if (tt(e.type) === "function" && !Object.values(e.props).length) {
|
|
3286
|
+
const i = e.type({});
|
|
3287
|
+
return It(i, t, r);
|
|
3288
|
+
}
|
|
3289
|
+
return e;
|
|
3290
|
+
}
|
|
3291
|
+
function Ai(e) {
|
|
3292
|
+
const { isFirstStep: t, lifecycle: r, previousLifecycle: n, scrollToFirstStep: o, step: i, target: s } = e;
|
|
3293
|
+
return !i.disableScrolling && (!t || o || r === I.TOOLTIP) && i.placement !== "center" && (!i.isFixed || !xe(s)) && // fixed steps don't need to scroll
|
|
3294
|
+
n !== r && [I.BEACON, I.TOOLTIP].includes(r);
|
|
3295
|
+
}
|
|
3296
|
+
var ki = {
|
|
3297
|
+
options: {
|
|
3298
|
+
preventOverflow: {
|
|
3299
|
+
boundariesElement: "scrollParent"
|
|
3300
|
+
}
|
|
3301
|
+
},
|
|
3302
|
+
wrapperOptions: {
|
|
3303
|
+
offset: -18,
|
|
3304
|
+
position: !0
|
|
3305
|
+
}
|
|
3306
|
+
}, pn = {
|
|
3307
|
+
back: "Back",
|
|
3308
|
+
close: "Close",
|
|
3309
|
+
last: "Last",
|
|
3310
|
+
next: "Next",
|
|
3311
|
+
nextLabelWithProgress: "Next (Step {step} of {steps})",
|
|
3312
|
+
open: "Open the dialog",
|
|
3313
|
+
skip: "Skip"
|
|
3314
|
+
}, ji = {
|
|
3315
|
+
event: "click",
|
|
3316
|
+
placement: "bottom",
|
|
3317
|
+
offset: 10,
|
|
3318
|
+
disableBeacon: !1,
|
|
3319
|
+
disableCloseOnEsc: !1,
|
|
3320
|
+
disableOverlay: !1,
|
|
3321
|
+
disableOverlayClose: !1,
|
|
3322
|
+
disableScrollParentFix: !1,
|
|
3323
|
+
disableScrolling: !1,
|
|
3324
|
+
hideBackButton: !1,
|
|
3325
|
+
hideCloseButton: !1,
|
|
3326
|
+
hideFooter: !1,
|
|
3327
|
+
isFixed: !1,
|
|
3328
|
+
locale: pn,
|
|
3329
|
+
showProgress: !1,
|
|
3330
|
+
showSkipButton: !1,
|
|
3331
|
+
spotlightClicks: !1,
|
|
3332
|
+
spotlightPadding: 10
|
|
3333
|
+
}, Li = {
|
|
3334
|
+
continuous: !1,
|
|
3335
|
+
debug: !1,
|
|
3336
|
+
disableCloseOnEsc: !1,
|
|
3337
|
+
disableOverlay: !1,
|
|
3338
|
+
disableOverlayClose: !1,
|
|
3339
|
+
disableScrolling: !1,
|
|
3340
|
+
disableScrollParentFix: !1,
|
|
3341
|
+
getHelpers: void 0,
|
|
3342
|
+
hideBackButton: !1,
|
|
3343
|
+
run: !0,
|
|
3344
|
+
scrollOffset: 20,
|
|
3345
|
+
scrollDuration: 300,
|
|
3346
|
+
scrollToFirstStep: !1,
|
|
3347
|
+
showSkipButton: !1,
|
|
3348
|
+
showProgress: !1,
|
|
3349
|
+
spotlightClicks: !1,
|
|
3350
|
+
spotlightPadding: 10,
|
|
3351
|
+
steps: []
|
|
3352
|
+
}, Mi = {
|
|
3353
|
+
arrowColor: "#fff",
|
|
3354
|
+
backgroundColor: "#fff",
|
|
3355
|
+
beaconSize: 36,
|
|
3356
|
+
overlayColor: "rgba(0, 0, 0, 0.5)",
|
|
3357
|
+
primaryColor: "#f04",
|
|
3358
|
+
spotlightShadow: "0 0 15px rgba(0, 0, 0, 0.5)",
|
|
3359
|
+
textColor: "#333",
|
|
3360
|
+
width: 380,
|
|
3361
|
+
zIndex: 100
|
|
3362
|
+
}, je = {
|
|
3363
|
+
backgroundColor: "transparent",
|
|
3364
|
+
border: 0,
|
|
3365
|
+
borderRadius: 0,
|
|
3366
|
+
color: "#555",
|
|
3367
|
+
cursor: "pointer",
|
|
3368
|
+
fontSize: 16,
|
|
3369
|
+
lineHeight: 1,
|
|
3370
|
+
padding: 8,
|
|
3371
|
+
WebkitAppearance: "none"
|
|
3372
|
+
}, Rr = {
|
|
3373
|
+
borderRadius: 4,
|
|
3374
|
+
position: "absolute"
|
|
3375
|
+
};
|
|
3376
|
+
function Fi(e, t) {
|
|
3377
|
+
var r, n, o, i, s;
|
|
3378
|
+
const { floaterProps: a, styles: l } = e, u = ne((r = t.floaterProps) != null ? r : {}, a ?? {}), f = ne(l ?? {}, (n = t.styles) != null ? n : {}), c = ne(Mi, f.options || {}), p = t.placement === "center" || t.disableBeacon;
|
|
3379
|
+
let { width: d } = c;
|
|
3380
|
+
window.innerWidth > 480 && (d = 380), "width" in c && (d = typeof c.width == "number" && window.innerWidth < c.width ? window.innerWidth - 30 : c.width);
|
|
3381
|
+
const h = {
|
|
3382
|
+
bottom: 0,
|
|
3383
|
+
left: 0,
|
|
3384
|
+
overflow: "hidden",
|
|
3385
|
+
position: "absolute",
|
|
3386
|
+
right: 0,
|
|
3387
|
+
top: 0,
|
|
3388
|
+
zIndex: c.zIndex
|
|
3389
|
+
}, m = {
|
|
3390
|
+
beacon: {
|
|
3391
|
+
...je,
|
|
3392
|
+
display: p ? "none" : "inline-block",
|
|
3393
|
+
height: c.beaconSize,
|
|
3394
|
+
position: "relative",
|
|
3395
|
+
width: c.beaconSize,
|
|
3396
|
+
zIndex: c.zIndex
|
|
3397
|
+
},
|
|
3398
|
+
beaconInner: {
|
|
3399
|
+
animation: "joyride-beacon-inner 1.2s infinite ease-in-out",
|
|
3400
|
+
backgroundColor: c.primaryColor,
|
|
3401
|
+
borderRadius: "50%",
|
|
3402
|
+
display: "block",
|
|
3403
|
+
height: "50%",
|
|
3404
|
+
left: "50%",
|
|
3405
|
+
opacity: 0.7,
|
|
3406
|
+
position: "absolute",
|
|
3407
|
+
top: "50%",
|
|
3408
|
+
transform: "translate(-50%, -50%)",
|
|
3409
|
+
width: "50%"
|
|
3410
|
+
},
|
|
3411
|
+
beaconOuter: {
|
|
3412
|
+
animation: "joyride-beacon-outer 1.2s infinite ease-in-out",
|
|
3413
|
+
backgroundColor: `rgba(${Ni(c.primaryColor).join(",")}, 0.2)`,
|
|
3414
|
+
border: `2px solid ${c.primaryColor}`,
|
|
3415
|
+
borderRadius: "50%",
|
|
3416
|
+
boxSizing: "border-box",
|
|
3417
|
+
display: "block",
|
|
3418
|
+
height: "100%",
|
|
3419
|
+
left: 0,
|
|
3420
|
+
opacity: 0.9,
|
|
3421
|
+
position: "absolute",
|
|
3422
|
+
top: 0,
|
|
3423
|
+
transformOrigin: "center",
|
|
3424
|
+
width: "100%"
|
|
3425
|
+
},
|
|
3426
|
+
tooltip: {
|
|
3427
|
+
backgroundColor: c.backgroundColor,
|
|
3428
|
+
borderRadius: 5,
|
|
3429
|
+
boxSizing: "border-box",
|
|
3430
|
+
color: c.textColor,
|
|
3431
|
+
fontSize: 16,
|
|
3432
|
+
maxWidth: "100%",
|
|
3433
|
+
padding: 15,
|
|
3434
|
+
position: "relative",
|
|
3435
|
+
width: d
|
|
3436
|
+
},
|
|
3437
|
+
tooltipContainer: {
|
|
3438
|
+
lineHeight: 1.4,
|
|
3439
|
+
textAlign: "center"
|
|
3440
|
+
},
|
|
3441
|
+
tooltipTitle: {
|
|
3442
|
+
fontSize: 18,
|
|
3443
|
+
margin: 0
|
|
3444
|
+
},
|
|
3445
|
+
tooltipContent: {
|
|
3446
|
+
padding: "20px 10px"
|
|
3447
|
+
},
|
|
3448
|
+
tooltipFooter: {
|
|
3449
|
+
alignItems: "center",
|
|
3450
|
+
display: "flex",
|
|
3451
|
+
justifyContent: "flex-end",
|
|
3452
|
+
marginTop: 15
|
|
3453
|
+
},
|
|
3454
|
+
tooltipFooterSpacer: {
|
|
3455
|
+
flex: 1
|
|
3456
|
+
},
|
|
3457
|
+
buttonNext: {
|
|
3458
|
+
...je,
|
|
3459
|
+
backgroundColor: c.primaryColor,
|
|
3460
|
+
borderRadius: 4,
|
|
3461
|
+
color: "#fff"
|
|
3462
|
+
},
|
|
3463
|
+
buttonBack: {
|
|
3464
|
+
...je,
|
|
3465
|
+
color: c.primaryColor,
|
|
3466
|
+
marginLeft: "auto",
|
|
3467
|
+
marginRight: 5
|
|
3468
|
+
},
|
|
3469
|
+
buttonClose: {
|
|
3470
|
+
...je,
|
|
3471
|
+
color: c.textColor,
|
|
3472
|
+
height: 14,
|
|
3473
|
+
padding: 15,
|
|
3474
|
+
position: "absolute",
|
|
3475
|
+
right: 0,
|
|
3476
|
+
top: 0,
|
|
3477
|
+
width: 14
|
|
3478
|
+
},
|
|
3479
|
+
buttonSkip: {
|
|
3480
|
+
...je,
|
|
3481
|
+
color: c.textColor,
|
|
3482
|
+
fontSize: 14
|
|
3483
|
+
},
|
|
3484
|
+
overlay: {
|
|
3485
|
+
...h,
|
|
3486
|
+
backgroundColor: c.overlayColor,
|
|
3487
|
+
mixBlendMode: "hard-light"
|
|
3488
|
+
},
|
|
3489
|
+
overlayLegacy: {
|
|
3490
|
+
...h
|
|
3491
|
+
},
|
|
3492
|
+
overlayLegacyCenter: {
|
|
3493
|
+
...h,
|
|
3494
|
+
backgroundColor: c.overlayColor
|
|
3495
|
+
},
|
|
3496
|
+
spotlight: {
|
|
3497
|
+
...Rr,
|
|
3498
|
+
backgroundColor: "gray"
|
|
3499
|
+
},
|
|
3500
|
+
spotlightLegacy: {
|
|
3501
|
+
...Rr,
|
|
3502
|
+
boxShadow: `0 0 0 9999px ${c.overlayColor}, ${c.spotlightShadow}`
|
|
3503
|
+
},
|
|
3504
|
+
floaterStyles: {
|
|
3505
|
+
arrow: {
|
|
3506
|
+
color: (s = (i = (o = u == null ? void 0 : u.styles) == null ? void 0 : o.arrow) == null ? void 0 : i.color) != null ? s : c.arrowColor
|
|
3507
|
+
},
|
|
3508
|
+
options: {
|
|
3509
|
+
zIndex: c.zIndex + 100
|
|
3510
|
+
}
|
|
3511
|
+
},
|
|
3512
|
+
options: c
|
|
3513
|
+
};
|
|
3514
|
+
return ne(m, f);
|
|
3515
|
+
}
|
|
3516
|
+
function Di(e) {
|
|
3517
|
+
return _i(
|
|
3518
|
+
e,
|
|
3519
|
+
"beaconComponent",
|
|
3520
|
+
"disableCloseOnEsc",
|
|
3521
|
+
"disableOverlay",
|
|
3522
|
+
"disableOverlayClose",
|
|
3523
|
+
"disableScrolling",
|
|
3524
|
+
"disableScrollParentFix",
|
|
3525
|
+
"floaterProps",
|
|
3526
|
+
"hideBackButton",
|
|
3527
|
+
"hideCloseButton",
|
|
3528
|
+
"locale",
|
|
3529
|
+
"showProgress",
|
|
3530
|
+
"showSkipButton",
|
|
3531
|
+
"spotlightClicks",
|
|
3532
|
+
"spotlightPadding",
|
|
3533
|
+
"styles",
|
|
3534
|
+
"tooltipComponent"
|
|
3535
|
+
);
|
|
3536
|
+
}
|
|
3537
|
+
function we(e, t) {
|
|
3538
|
+
var r, n, o, i, s, a;
|
|
3539
|
+
const l = t ?? {}, u = ne.all([ji, Di(e), l], {
|
|
3540
|
+
isMergeableObject: x.plainObject
|
|
3541
|
+
}), f = Fi(e, u), c = He(
|
|
3542
|
+
he(u.target),
|
|
3543
|
+
u.disableScrollParentFix
|
|
3544
|
+
), p = ne.all([
|
|
3545
|
+
ki,
|
|
3546
|
+
(r = e.floaterProps) != null ? r : {},
|
|
3547
|
+
(n = u.floaterProps) != null ? n : {}
|
|
3548
|
+
]);
|
|
3549
|
+
return p.offset = u.offset, p.styles = ne((o = p.styles) != null ? o : {}, f.floaterStyles), p.offset += (s = (i = e.spotlightPadding) != null ? i : u.spotlightPadding) != null ? s : 0, u.placementBeacon && p.wrapperOptions && (p.wrapperOptions.placement = u.placementBeacon), c && p.options.preventOverflow && (p.options.preventOverflow.boundariesElement = "window"), {
|
|
3550
|
+
...u,
|
|
3551
|
+
locale: ne.all([pn, (a = e.locale) != null ? a : {}, u.locale || {}]),
|
|
3552
|
+
floaterProps: p,
|
|
3553
|
+
styles: fn(f, "floaterStyles")
|
|
3554
|
+
};
|
|
3555
|
+
}
|
|
3556
|
+
function dn(e, t = !1) {
|
|
3557
|
+
return x.plainObject(e) ? e.target ? !0 : (ve({
|
|
3558
|
+
title: "validateStep",
|
|
3559
|
+
data: "target is missing from the step",
|
|
3560
|
+
warn: !0,
|
|
3561
|
+
debug: t
|
|
3562
|
+
}), !1) : (ve({
|
|
3563
|
+
title: "validateStep",
|
|
3564
|
+
data: "step must be an object",
|
|
3565
|
+
warn: !0,
|
|
3566
|
+
debug: t
|
|
3567
|
+
}), !1);
|
|
3568
|
+
}
|
|
3569
|
+
function Nr(e, t = !1) {
|
|
3570
|
+
return x.array(e) ? e.every((r) => dn(r, t)) : (ve({
|
|
3571
|
+
title: "validateSteps",
|
|
3572
|
+
data: "steps must be an array",
|
|
3573
|
+
warn: !0,
|
|
3574
|
+
debug: t
|
|
3575
|
+
}), !1);
|
|
3576
|
+
}
|
|
3577
|
+
var hn = {
|
|
3578
|
+
action: "init",
|
|
3579
|
+
controlled: !1,
|
|
3580
|
+
index: 0,
|
|
3581
|
+
lifecycle: I.INIT,
|
|
3582
|
+
origin: null,
|
|
3583
|
+
size: 0,
|
|
3584
|
+
status: k.IDLE
|
|
3585
|
+
}, Ir = Ii(fn(hn, "controlled", "size")), $i = class {
|
|
3586
|
+
constructor(e) {
|
|
3587
|
+
C(this, "beaconPopper"), C(this, "tooltipPopper"), C(this, "data", /* @__PURE__ */ new Map()), C(this, "listener"), C(this, "store", /* @__PURE__ */ new Map()), C(this, "addListener", (o) => {
|
|
3588
|
+
this.listener = o;
|
|
3589
|
+
}), C(this, "setSteps", (o) => {
|
|
3590
|
+
const { size: i, status: s } = this.getState(), a = {
|
|
3591
|
+
size: o.length,
|
|
3592
|
+
status: s
|
|
3593
|
+
};
|
|
3594
|
+
this.data.set("steps", o), s === k.WAITING && !i && o.length && (a.status = k.RUNNING), this.setState(a);
|
|
3595
|
+
}), C(this, "getPopper", (o) => o === "beacon" ? this.beaconPopper : this.tooltipPopper), C(this, "setPopper", (o, i) => {
|
|
3596
|
+
o === "beacon" ? this.beaconPopper = i : this.tooltipPopper = i;
|
|
3597
|
+
}), C(this, "cleanupPoppers", () => {
|
|
3598
|
+
this.beaconPopper = null, this.tooltipPopper = null;
|
|
3599
|
+
}), C(this, "close", (o = null) => {
|
|
3600
|
+
const { index: i, status: s } = this.getState();
|
|
3601
|
+
s === k.RUNNING && this.setState({
|
|
3602
|
+
...this.getNextState({ action: q.CLOSE, index: i + 1, origin: o })
|
|
3603
|
+
});
|
|
3604
|
+
}), C(this, "go", (o) => {
|
|
3605
|
+
const { controlled: i, status: s } = this.getState();
|
|
3606
|
+
if (i || s !== k.RUNNING)
|
|
3607
|
+
return;
|
|
3608
|
+
const a = this.getSteps()[o];
|
|
3609
|
+
this.setState({
|
|
3610
|
+
...this.getNextState({ action: q.GO, index: o }),
|
|
3611
|
+
status: a ? s : k.FINISHED
|
|
3612
|
+
});
|
|
3613
|
+
}), C(this, "info", () => this.getState()), C(this, "next", () => {
|
|
3614
|
+
const { index: o, status: i } = this.getState();
|
|
3615
|
+
i === k.RUNNING && this.setState(this.getNextState({ action: q.NEXT, index: o + 1 }));
|
|
3616
|
+
}), C(this, "open", () => {
|
|
3617
|
+
const { status: o } = this.getState();
|
|
3618
|
+
o === k.RUNNING && this.setState({
|
|
3619
|
+
...this.getNextState({ action: q.UPDATE, lifecycle: I.TOOLTIP })
|
|
3620
|
+
});
|
|
3621
|
+
}), C(this, "prev", () => {
|
|
3622
|
+
const { index: o, status: i } = this.getState();
|
|
3623
|
+
i === k.RUNNING && this.setState({
|
|
3624
|
+
...this.getNextState({ action: q.PREV, index: o - 1 })
|
|
3625
|
+
});
|
|
3626
|
+
}), C(this, "reset", (o = !1) => {
|
|
3627
|
+
const { controlled: i } = this.getState();
|
|
3628
|
+
i || this.setState({
|
|
3629
|
+
...this.getNextState({ action: q.RESET, index: 0 }),
|
|
3630
|
+
status: o ? k.RUNNING : k.READY
|
|
3631
|
+
});
|
|
3632
|
+
}), C(this, "skip", () => {
|
|
3633
|
+
const { status: o } = this.getState();
|
|
3634
|
+
o === k.RUNNING && this.setState({
|
|
3635
|
+
action: q.SKIP,
|
|
3636
|
+
lifecycle: I.INIT,
|
|
3637
|
+
status: k.SKIPPED
|
|
3638
|
+
});
|
|
3639
|
+
}), C(this, "start", (o) => {
|
|
3640
|
+
const { index: i, size: s } = this.getState();
|
|
3641
|
+
this.setState({
|
|
3642
|
+
...this.getNextState(
|
|
3643
|
+
{
|
|
3644
|
+
action: q.START,
|
|
3645
|
+
index: x.number(o) ? o : i
|
|
3646
|
+
},
|
|
3647
|
+
!0
|
|
3648
|
+
),
|
|
3649
|
+
status: s ? k.RUNNING : k.WAITING
|
|
3650
|
+
});
|
|
3651
|
+
}), C(this, "stop", (o = !1) => {
|
|
3652
|
+
const { index: i, status: s } = this.getState();
|
|
3653
|
+
[k.FINISHED, k.SKIPPED].includes(s) || this.setState({
|
|
3654
|
+
...this.getNextState({ action: q.STOP, index: i + (o ? 1 : 0) }),
|
|
3655
|
+
status: k.PAUSED
|
|
3656
|
+
});
|
|
3657
|
+
}), C(this, "update", (o) => {
|
|
3658
|
+
var i, s;
|
|
3659
|
+
if (!Ri(o, Ir))
|
|
3660
|
+
throw new Error(`State is not valid. Valid keys: ${Ir.join(", ")}`);
|
|
3661
|
+
this.setState({
|
|
3662
|
+
...this.getNextState(
|
|
3663
|
+
{
|
|
3664
|
+
...this.getState(),
|
|
3665
|
+
...o,
|
|
3666
|
+
action: (i = o.action) != null ? i : q.UPDATE,
|
|
3667
|
+
origin: (s = o.origin) != null ? s : null
|
|
3668
|
+
},
|
|
3669
|
+
!0
|
|
3670
|
+
)
|
|
3671
|
+
});
|
|
3672
|
+
});
|
|
3673
|
+
const { continuous: t = !1, stepIndex: r, steps: n = [] } = e ?? {};
|
|
3674
|
+
this.setState(
|
|
3675
|
+
{
|
|
3676
|
+
action: q.INIT,
|
|
3677
|
+
controlled: x.number(r),
|
|
3678
|
+
continuous: t,
|
|
3679
|
+
index: x.number(r) ? r : 0,
|
|
3680
|
+
lifecycle: I.INIT,
|
|
3681
|
+
origin: null,
|
|
3682
|
+
status: n.length ? k.READY : k.IDLE
|
|
3683
|
+
},
|
|
3684
|
+
!0
|
|
3685
|
+
), this.beaconPopper = null, this.tooltipPopper = null, this.listener = null, this.setSteps(n);
|
|
3686
|
+
}
|
|
3687
|
+
getState() {
|
|
3688
|
+
return this.store.size ? {
|
|
3689
|
+
action: this.store.get("action") || "",
|
|
3690
|
+
controlled: this.store.get("controlled") || !1,
|
|
3691
|
+
index: parseInt(this.store.get("index"), 10),
|
|
3692
|
+
lifecycle: this.store.get("lifecycle") || "",
|
|
3693
|
+
origin: this.store.get("origin") || null,
|
|
3694
|
+
size: this.store.get("size") || 0,
|
|
3695
|
+
status: this.store.get("status") || ""
|
|
3696
|
+
} : { ...hn };
|
|
3697
|
+
}
|
|
3698
|
+
getNextState(e, t = !1) {
|
|
3699
|
+
var r, n, o, i, s;
|
|
3700
|
+
const { action: a, controlled: l, index: u, size: f, status: c } = this.getState(), p = x.number(e.index) ? e.index : u, d = l && !t ? u : Math.min(Math.max(p, 0), f);
|
|
3701
|
+
return {
|
|
3702
|
+
action: (r = e.action) != null ? r : a,
|
|
3703
|
+
controlled: l,
|
|
3704
|
+
index: d,
|
|
3705
|
+
lifecycle: (n = e.lifecycle) != null ? n : I.INIT,
|
|
3706
|
+
origin: (o = e.origin) != null ? o : null,
|
|
3707
|
+
size: (i = e.size) != null ? i : f,
|
|
3708
|
+
status: d === f ? k.FINISHED : (s = e.status) != null ? s : c
|
|
3709
|
+
};
|
|
3710
|
+
}
|
|
3711
|
+
getSteps() {
|
|
3712
|
+
const e = this.data.get("steps");
|
|
3713
|
+
return Array.isArray(e) ? e : [];
|
|
3714
|
+
}
|
|
3715
|
+
hasUpdatedState(e) {
|
|
3716
|
+
const t = JSON.stringify(e), r = JSON.stringify(this.getState());
|
|
3717
|
+
return t !== r;
|
|
3718
|
+
}
|
|
3719
|
+
setState(e, t = !1) {
|
|
3720
|
+
const r = this.getState(), {
|
|
3721
|
+
action: n,
|
|
3722
|
+
index: o,
|
|
3723
|
+
lifecycle: i,
|
|
3724
|
+
origin: s = null,
|
|
3725
|
+
size: a,
|
|
3726
|
+
status: l
|
|
3727
|
+
} = {
|
|
3728
|
+
...r,
|
|
3729
|
+
...e
|
|
3730
|
+
};
|
|
3731
|
+
this.store.set("action", n), this.store.set("index", o), this.store.set("lifecycle", i), this.store.set("origin", s), this.store.set("size", a), this.store.set("status", l), t && (this.store.set("controlled", e.controlled), this.store.set("continuous", e.continuous)), this.listener && this.hasUpdatedState(r) && this.listener(this.getState());
|
|
3732
|
+
}
|
|
3733
|
+
getHelpers() {
|
|
3734
|
+
return {
|
|
3735
|
+
close: this.close,
|
|
3736
|
+
go: this.go,
|
|
3737
|
+
info: this.info,
|
|
3738
|
+
next: this.next,
|
|
3739
|
+
open: this.open,
|
|
3740
|
+
prev: this.prev,
|
|
3741
|
+
reset: this.reset,
|
|
3742
|
+
skip: this.skip
|
|
3743
|
+
};
|
|
3744
|
+
}
|
|
3745
|
+
};
|
|
3746
|
+
function Wi(e) {
|
|
3747
|
+
return new $i(e);
|
|
3748
|
+
}
|
|
3749
|
+
function Bi({ styles: e }) {
|
|
3750
|
+
return /* @__PURE__ */ W.createElement(
|
|
3751
|
+
"div",
|
|
3752
|
+
{
|
|
3753
|
+
key: "JoyrideSpotlight",
|
|
3754
|
+
className: "react-joyride__spotlight",
|
|
3755
|
+
"data-test-id": "spotlight",
|
|
3756
|
+
style: e
|
|
3757
|
+
}
|
|
3758
|
+
);
|
|
3759
|
+
}
|
|
3760
|
+
var Ui = Bi, zi = class extends W.Component {
|
|
3761
|
+
constructor() {
|
|
3762
|
+
super(...arguments), C(this, "isActive", !1), C(this, "resizeTimeout"), C(this, "scrollTimeout"), C(this, "scrollParent"), C(this, "state", {
|
|
3763
|
+
isScrolling: !1,
|
|
3764
|
+
mouseOverSpotlight: !1,
|
|
3765
|
+
showSpotlight: !0
|
|
3766
|
+
}), C(this, "hideSpotlight", () => {
|
|
3767
|
+
const { continuous: e, disableOverlay: t, lifecycle: r } = this.props, n = [
|
|
3768
|
+
I.INIT,
|
|
3769
|
+
I.BEACON,
|
|
3770
|
+
I.COMPLETE,
|
|
3771
|
+
I.ERROR
|
|
3772
|
+
];
|
|
3773
|
+
return t || (e ? n.includes(r) : r !== I.TOOLTIP);
|
|
3774
|
+
}), C(this, "handleMouseMove", (e) => {
|
|
3775
|
+
const { mouseOverSpotlight: t } = this.state, { height: r, left: n, position: o, top: i, width: s } = this.spotlightStyles, a = o === "fixed" ? e.clientY : e.pageY, l = o === "fixed" ? e.clientX : e.pageX, u = a >= i && a <= i + r, c = l >= n && l <= n + s && u;
|
|
3776
|
+
c !== t && this.updateState({ mouseOverSpotlight: c });
|
|
3777
|
+
}), C(this, "handleScroll", () => {
|
|
3778
|
+
const { target: e } = this.props, t = he(e);
|
|
3779
|
+
if (this.scrollParent !== document) {
|
|
3780
|
+
const { isScrolling: r } = this.state;
|
|
3781
|
+
r || this.updateState({ isScrolling: !0, showSpotlight: !1 }), clearTimeout(this.scrollTimeout), this.scrollTimeout = window.setTimeout(() => {
|
|
3782
|
+
this.updateState({ isScrolling: !1, showSpotlight: !0 });
|
|
3783
|
+
}, 50);
|
|
3784
|
+
} else xe(t, "sticky") && this.updateState({});
|
|
3785
|
+
}), C(this, "handleResize", () => {
|
|
3786
|
+
clearTimeout(this.resizeTimeout), this.resizeTimeout = window.setTimeout(() => {
|
|
3787
|
+
this.isActive && this.forceUpdate();
|
|
3788
|
+
}, 100);
|
|
3789
|
+
});
|
|
3790
|
+
}
|
|
3791
|
+
componentDidMount() {
|
|
3792
|
+
const { debug: e, disableScrolling: t, disableScrollParentFix: r = !1, target: n } = this.props, o = he(n);
|
|
3793
|
+
this.scrollParent = Me(o ?? document.body, r, !0), this.isActive = !0, process.env.NODE_ENV !== "production" && !t && He(o, !0) && ve({
|
|
3794
|
+
title: "step has a custom scroll parent and can cause trouble with scrolling",
|
|
3795
|
+
data: [{ key: "parent", value: this.scrollParent }],
|
|
3796
|
+
debug: e
|
|
3797
|
+
}), window.addEventListener("resize", this.handleResize);
|
|
3798
|
+
}
|
|
3799
|
+
componentDidUpdate(e) {
|
|
3800
|
+
var t;
|
|
3801
|
+
const { disableScrollParentFix: r, lifecycle: n, spotlightClicks: o, target: i } = this.props, { changed: s } = rt(e, this.props);
|
|
3802
|
+
if (s("target") || s("disableScrollParentFix")) {
|
|
3803
|
+
const a = he(i);
|
|
3804
|
+
this.scrollParent = Me(a ?? document.body, r, !0);
|
|
3805
|
+
}
|
|
3806
|
+
s("lifecycle", I.TOOLTIP) && ((t = this.scrollParent) == null || t.addEventListener("scroll", this.handleScroll, { passive: !0 }), setTimeout(() => {
|
|
3807
|
+
const { isScrolling: a } = this.state;
|
|
3808
|
+
a || this.updateState({ showSpotlight: !0 });
|
|
3809
|
+
}, 100)), (s("spotlightClicks") || s("disableOverlay") || s("lifecycle")) && (o && n === I.TOOLTIP ? window.addEventListener("mousemove", this.handleMouseMove, !1) : n !== I.TOOLTIP && window.removeEventListener("mousemove", this.handleMouseMove));
|
|
3810
|
+
}
|
|
3811
|
+
componentWillUnmount() {
|
|
3812
|
+
var e;
|
|
3813
|
+
this.isActive = !1, window.removeEventListener("mousemove", this.handleMouseMove), window.removeEventListener("resize", this.handleResize), clearTimeout(this.resizeTimeout), clearTimeout(this.scrollTimeout), (e = this.scrollParent) == null || e.removeEventListener("scroll", this.handleScroll);
|
|
3814
|
+
}
|
|
3815
|
+
get overlayStyles() {
|
|
3816
|
+
const { mouseOverSpotlight: e } = this.state, { disableOverlayClose: t, placement: r, styles: n } = this.props;
|
|
3817
|
+
let o = n.overlay;
|
|
3818
|
+
return Cr() && (o = r === "center" ? n.overlayLegacyCenter : n.overlayLegacy), {
|
|
3819
|
+
cursor: t ? "default" : "pointer",
|
|
3820
|
+
height: Oi(),
|
|
3821
|
+
pointerEvents: e ? "none" : "auto",
|
|
3822
|
+
...o
|
|
3823
|
+
};
|
|
3824
|
+
}
|
|
3825
|
+
get spotlightStyles() {
|
|
3826
|
+
var e, t, r;
|
|
3827
|
+
const { showSpotlight: n } = this.state, {
|
|
3828
|
+
disableScrollParentFix: o = !1,
|
|
3829
|
+
spotlightClicks: i,
|
|
3830
|
+
spotlightPadding: s = 0,
|
|
3831
|
+
styles: a,
|
|
3832
|
+
target: l
|
|
3833
|
+
} = this.props, u = he(l), f = cn(u), c = xe(u), p = Pi(u, s, o);
|
|
3834
|
+
return {
|
|
3835
|
+
...Cr() ? a.spotlightLegacy : a.spotlight,
|
|
3836
|
+
height: Math.round(((e = f == null ? void 0 : f.height) != null ? e : 0) + s * 2),
|
|
3837
|
+
left: Math.round(((t = f == null ? void 0 : f.left) != null ? t : 0) - s),
|
|
3838
|
+
opacity: n ? 1 : 0,
|
|
3839
|
+
pointerEvents: i ? "none" : "auto",
|
|
3840
|
+
position: c ? "fixed" : "absolute",
|
|
3841
|
+
top: p,
|
|
3842
|
+
transition: "opacity 0.2s",
|
|
3843
|
+
width: Math.round(((r = f == null ? void 0 : f.width) != null ? r : 0) + s * 2)
|
|
3844
|
+
};
|
|
3845
|
+
}
|
|
3846
|
+
updateState(e) {
|
|
3847
|
+
this.isActive && this.setState((t) => ({ ...t, ...e }));
|
|
3848
|
+
}
|
|
3849
|
+
render() {
|
|
3850
|
+
const { showSpotlight: e } = this.state, { onClickOverlay: t, placement: r } = this.props, { hideSpotlight: n, overlayStyles: o, spotlightStyles: i } = this;
|
|
3851
|
+
if (n())
|
|
3852
|
+
return null;
|
|
3853
|
+
let s = r !== "center" && e && /* @__PURE__ */ W.createElement(Ui, { styles: i });
|
|
3854
|
+
if (un() === "safari") {
|
|
3855
|
+
const { mixBlendMode: a, zIndex: l, ...u } = o;
|
|
3856
|
+
s = /* @__PURE__ */ W.createElement("div", { style: { ...u } }, s), delete o.backgroundColor;
|
|
3857
|
+
}
|
|
3858
|
+
return /* @__PURE__ */ W.createElement(
|
|
3859
|
+
"div",
|
|
3860
|
+
{
|
|
3861
|
+
className: "react-joyride__overlay",
|
|
3862
|
+
"data-test-id": "overlay",
|
|
3863
|
+
onClick: t,
|
|
3864
|
+
role: "presentation",
|
|
3865
|
+
style: o
|
|
3866
|
+
},
|
|
3867
|
+
s
|
|
3868
|
+
);
|
|
3869
|
+
}
|
|
3870
|
+
}, qi = class extends W.Component {
|
|
3871
|
+
constructor() {
|
|
3872
|
+
super(...arguments), C(this, "node", null);
|
|
3873
|
+
}
|
|
3874
|
+
componentDidMount() {
|
|
3875
|
+
const { id: e } = this.props;
|
|
3876
|
+
ye() && (this.node = document.createElement("div"), this.node.id = e, document.body.appendChild(this.node), ke || this.renderReact15());
|
|
3877
|
+
}
|
|
3878
|
+
componentDidUpdate() {
|
|
3879
|
+
ye() && (ke || this.renderReact15());
|
|
3880
|
+
}
|
|
3881
|
+
componentWillUnmount() {
|
|
3882
|
+
!ye() || !this.node || (ke || pt.unmountComponentAtNode(this.node), this.node.parentNode === document.body && (document.body.removeChild(this.node), this.node = null));
|
|
3883
|
+
}
|
|
3884
|
+
renderReact15() {
|
|
3885
|
+
if (!ye())
|
|
3886
|
+
return;
|
|
3887
|
+
const { children: e } = this.props;
|
|
3888
|
+
this.node && pt.unstable_renderSubtreeIntoContainer(this, e, this.node);
|
|
3889
|
+
}
|
|
3890
|
+
renderReact16() {
|
|
3891
|
+
if (!ye() || !ke)
|
|
3892
|
+
return null;
|
|
3893
|
+
const { children: e } = this.props;
|
|
3894
|
+
return this.node ? pt.createPortal(e, this.node) : null;
|
|
3895
|
+
}
|
|
3896
|
+
render() {
|
|
3897
|
+
return ke ? this.renderReact16() : null;
|
|
3898
|
+
}
|
|
3899
|
+
}, Hi = class {
|
|
3900
|
+
constructor(e, t) {
|
|
3901
|
+
if (C(this, "element"), C(this, "options"), C(this, "canBeTabbed", (r) => {
|
|
3902
|
+
const { tabIndex: n } = r;
|
|
3903
|
+
return n === null || n < 0 ? !1 : this.canHaveFocus(r);
|
|
3904
|
+
}), C(this, "canHaveFocus", (r) => {
|
|
3905
|
+
const n = /input|select|textarea|button|object/, o = r.nodeName.toLowerCase();
|
|
3906
|
+
return (n.test(o) && !r.getAttribute("disabled") || o === "a" && !!r.getAttribute("href")) && this.isVisible(r);
|
|
3907
|
+
}), C(this, "findValidTabElements", () => [].slice.call(this.element.querySelectorAll("*"), 0).filter(this.canBeTabbed)), C(this, "handleKeyDown", (r) => {
|
|
3908
|
+
const { code: n = "Tab" } = this.options;
|
|
3909
|
+
r.code === n && this.interceptTab(r);
|
|
3910
|
+
}), C(this, "interceptTab", (r) => {
|
|
3911
|
+
r.preventDefault();
|
|
3912
|
+
const n = this.findValidTabElements(), { shiftKey: o } = r;
|
|
3913
|
+
if (!n.length)
|
|
3914
|
+
return;
|
|
3915
|
+
let i = document.activeElement ? n.indexOf(document.activeElement) : 0;
|
|
3916
|
+
i === -1 || !o && i + 1 === n.length ? i = 0 : o && i === 0 ? i = n.length - 1 : i += o ? -1 : 1, n[i].focus();
|
|
3917
|
+
}), C(this, "isHidden", (r) => {
|
|
3918
|
+
const n = r.offsetWidth <= 0 && r.offsetHeight <= 0, o = window.getComputedStyle(r);
|
|
3919
|
+
return n && !r.innerHTML ? !0 : n && o.getPropertyValue("overflow") !== "visible" || o.getPropertyValue("display") === "none";
|
|
3920
|
+
}), C(this, "isVisible", (r) => {
|
|
3921
|
+
let n = r;
|
|
3922
|
+
for (; n; )
|
|
3923
|
+
if (n instanceof HTMLElement) {
|
|
3924
|
+
if (n === document.body)
|
|
3925
|
+
break;
|
|
3926
|
+
if (this.isHidden(n))
|
|
3927
|
+
return !1;
|
|
3928
|
+
n = n.parentNode;
|
|
3929
|
+
}
|
|
3930
|
+
return !0;
|
|
3931
|
+
}), C(this, "removeScope", () => {
|
|
3932
|
+
window.removeEventListener("keydown", this.handleKeyDown);
|
|
3933
|
+
}), C(this, "checkFocus", (r) => {
|
|
3934
|
+
document.activeElement !== r && (r.focus(), window.requestAnimationFrame(() => this.checkFocus(r)));
|
|
3935
|
+
}), C(this, "setFocus", () => {
|
|
3936
|
+
const { selector: r } = this.options;
|
|
3937
|
+
if (!r)
|
|
3938
|
+
return;
|
|
3939
|
+
const n = this.element.querySelector(r);
|
|
3940
|
+
n && window.requestAnimationFrame(() => this.checkFocus(n));
|
|
3941
|
+
}), !(e instanceof HTMLElement))
|
|
3942
|
+
throw new TypeError("Invalid parameter: element must be an HTMLElement");
|
|
3943
|
+
this.element = e, this.options = t, window.addEventListener("keydown", this.handleKeyDown, !1), this.setFocus();
|
|
3944
|
+
}
|
|
3945
|
+
}, Vi = class extends W.Component {
|
|
3946
|
+
constructor(e) {
|
|
3947
|
+
if (super(e), C(this, "beacon", null), C(this, "setBeaconRef", (o) => {
|
|
3948
|
+
this.beacon = o;
|
|
3949
|
+
}), e.beaconComponent)
|
|
3950
|
+
return;
|
|
3951
|
+
const t = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
|
|
3952
|
+
r.id = "joyride-beacon-animation", e.nonce && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode(`
|
|
3953
|
+
@keyframes joyride-beacon-inner {
|
|
3954
|
+
20% {
|
|
3955
|
+
opacity: 0.9;
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3958
|
+
90% {
|
|
3959
|
+
opacity: 0.7;
|
|
3960
|
+
}
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3963
|
+
@keyframes joyride-beacon-outer {
|
|
3964
|
+
0% {
|
|
3965
|
+
transform: scale(1);
|
|
3966
|
+
}
|
|
3967
|
+
|
|
3968
|
+
45% {
|
|
3969
|
+
opacity: 0.7;
|
|
3970
|
+
transform: scale(0.75);
|
|
3971
|
+
}
|
|
3972
|
+
|
|
3973
|
+
100% {
|
|
3974
|
+
opacity: 0.9;
|
|
3975
|
+
transform: scale(1);
|
|
3976
|
+
}
|
|
3977
|
+
}
|
|
3978
|
+
`)), t.appendChild(r);
|
|
3979
|
+
}
|
|
3980
|
+
componentDidMount() {
|
|
3981
|
+
const { shouldFocus: e } = this.props;
|
|
3982
|
+
process.env.NODE_ENV !== "production" && (x.domElement(this.beacon) || console.warn("beacon is not a valid DOM element")), setTimeout(() => {
|
|
3983
|
+
x.domElement(this.beacon) && e && this.beacon.focus();
|
|
3984
|
+
}, 0);
|
|
3985
|
+
}
|
|
3986
|
+
componentWillUnmount() {
|
|
3987
|
+
const e = document.getElementById("joyride-beacon-animation");
|
|
3988
|
+
e != null && e.parentNode && e.parentNode.removeChild(e);
|
|
3989
|
+
}
|
|
3990
|
+
render() {
|
|
3991
|
+
const {
|
|
3992
|
+
beaconComponent: e,
|
|
3993
|
+
continuous: t,
|
|
3994
|
+
index: r,
|
|
3995
|
+
isLastStep: n,
|
|
3996
|
+
locale: o,
|
|
3997
|
+
onClickOrHover: i,
|
|
3998
|
+
size: s,
|
|
3999
|
+
step: a,
|
|
4000
|
+
styles: l
|
|
4001
|
+
} = this.props, u = ue(o.open), f = {
|
|
4002
|
+
"aria-label": u,
|
|
4003
|
+
onClick: i,
|
|
4004
|
+
onMouseEnter: i,
|
|
4005
|
+
ref: this.setBeaconRef,
|
|
4006
|
+
title: u
|
|
4007
|
+
};
|
|
4008
|
+
let c;
|
|
4009
|
+
if (e) {
|
|
4010
|
+
const p = e;
|
|
4011
|
+
c = /* @__PURE__ */ W.createElement(
|
|
4012
|
+
p,
|
|
4013
|
+
{
|
|
4014
|
+
continuous: t,
|
|
4015
|
+
index: r,
|
|
4016
|
+
isLastStep: n,
|
|
4017
|
+
size: s,
|
|
4018
|
+
step: a,
|
|
4019
|
+
...f
|
|
4020
|
+
}
|
|
4021
|
+
);
|
|
4022
|
+
} else
|
|
4023
|
+
c = /* @__PURE__ */ W.createElement(
|
|
4024
|
+
"button",
|
|
4025
|
+
{
|
|
4026
|
+
key: "JoyrideBeacon",
|
|
4027
|
+
className: "react-joyride__beacon",
|
|
4028
|
+
"data-test-id": "button-beacon",
|
|
4029
|
+
style: l.beacon,
|
|
4030
|
+
type: "button",
|
|
4031
|
+
...f
|
|
4032
|
+
},
|
|
4033
|
+
/* @__PURE__ */ W.createElement("span", { style: l.beaconInner }),
|
|
4034
|
+
/* @__PURE__ */ W.createElement("span", { style: l.beaconOuter })
|
|
4035
|
+
);
|
|
4036
|
+
return c;
|
|
4037
|
+
}
|
|
4038
|
+
};
|
|
4039
|
+
function Gi({ styles: e, ...t }) {
|
|
4040
|
+
const { color: r, height: n, width: o, ...i } = e;
|
|
4041
|
+
return /* @__PURE__ */ _.createElement("button", { style: i, type: "button", ...t }, /* @__PURE__ */ _.createElement(
|
|
4042
|
+
"svg",
|
|
4043
|
+
{
|
|
4044
|
+
height: typeof n == "number" ? `${n}px` : n,
|
|
4045
|
+
preserveAspectRatio: "xMidYMid",
|
|
4046
|
+
version: "1.1",
|
|
4047
|
+
viewBox: "0 0 18 18",
|
|
4048
|
+
width: typeof o == "number" ? `${o}px` : o,
|
|
4049
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4050
|
+
},
|
|
4051
|
+
/* @__PURE__ */ _.createElement("g", null, /* @__PURE__ */ _.createElement(
|
|
4052
|
+
"path",
|
|
4053
|
+
{
|
|
4054
|
+
d: "M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",
|
|
4055
|
+
fill: r
|
|
4056
|
+
}
|
|
4057
|
+
))
|
|
4058
|
+
));
|
|
4059
|
+
}
|
|
4060
|
+
var Yi = Gi;
|
|
4061
|
+
function Ki(e) {
|
|
4062
|
+
const { backProps: t, closeProps: r, index: n, isLastStep: o, primaryProps: i, skipProps: s, step: a, tooltipProps: l } = e, { content: u, hideBackButton: f, hideCloseButton: c, hideFooter: p, showSkipButton: d, styles: h, title: m } = a, w = {};
|
|
4063
|
+
return w.primary = /* @__PURE__ */ W.createElement(
|
|
4064
|
+
"button",
|
|
4065
|
+
{
|
|
4066
|
+
"data-test-id": "button-primary",
|
|
4067
|
+
style: h.buttonNext,
|
|
4068
|
+
type: "button",
|
|
4069
|
+
...i
|
|
4070
|
+
}
|
|
4071
|
+
), d && !o && (w.skip = /* @__PURE__ */ W.createElement(
|
|
4072
|
+
"button",
|
|
4073
|
+
{
|
|
4074
|
+
"aria-live": "off",
|
|
4075
|
+
"data-test-id": "button-skip",
|
|
4076
|
+
style: h.buttonSkip,
|
|
4077
|
+
type: "button",
|
|
4078
|
+
...s
|
|
4079
|
+
}
|
|
4080
|
+
)), !f && n > 0 && (w.back = /* @__PURE__ */ W.createElement("button", { "data-test-id": "button-back", style: h.buttonBack, type: "button", ...t })), w.close = !c && /* @__PURE__ */ W.createElement(Yi, { "data-test-id": "button-close", styles: h.buttonClose, ...r }), /* @__PURE__ */ W.createElement(
|
|
4081
|
+
"div",
|
|
4082
|
+
{
|
|
4083
|
+
key: "JoyrideTooltip",
|
|
4084
|
+
"aria-label": ue(m ?? u),
|
|
4085
|
+
className: "react-joyride__tooltip",
|
|
4086
|
+
style: h.tooltip,
|
|
4087
|
+
...l
|
|
4088
|
+
},
|
|
4089
|
+
/* @__PURE__ */ W.createElement("div", { style: h.tooltipContainer }, m && /* @__PURE__ */ W.createElement("h1", { "aria-label": ue(m), style: h.tooltipTitle }, m), /* @__PURE__ */ W.createElement("div", { style: h.tooltipContent }, u)),
|
|
4090
|
+
!p && /* @__PURE__ */ W.createElement("div", { style: h.tooltipFooter }, /* @__PURE__ */ W.createElement("div", { style: h.tooltipFooterSpacer }, w.skip), w.back, w.primary),
|
|
4091
|
+
w.close
|
|
4092
|
+
);
|
|
4093
|
+
}
|
|
4094
|
+
var Ji = Ki, Xi = class extends W.Component {
|
|
4095
|
+
constructor() {
|
|
4096
|
+
super(...arguments), C(this, "handleClickBack", (e) => {
|
|
4097
|
+
e.preventDefault();
|
|
4098
|
+
const { helpers: t } = this.props;
|
|
4099
|
+
t.prev();
|
|
4100
|
+
}), C(this, "handleClickClose", (e) => {
|
|
4101
|
+
e.preventDefault();
|
|
4102
|
+
const { helpers: t } = this.props;
|
|
4103
|
+
t.close("button_close");
|
|
4104
|
+
}), C(this, "handleClickPrimary", (e) => {
|
|
4105
|
+
e.preventDefault();
|
|
4106
|
+
const { continuous: t, helpers: r } = this.props;
|
|
4107
|
+
if (!t) {
|
|
4108
|
+
r.close("button_primary");
|
|
4109
|
+
return;
|
|
4110
|
+
}
|
|
4111
|
+
r.next();
|
|
4112
|
+
}), C(this, "handleClickSkip", (e) => {
|
|
4113
|
+
e.preventDefault();
|
|
4114
|
+
const { helpers: t } = this.props;
|
|
4115
|
+
t.skip();
|
|
4116
|
+
}), C(this, "getElementsProps", () => {
|
|
4117
|
+
const { continuous: e, index: t, isLastStep: r, setTooltipRef: n, size: o, step: i } = this.props, { back: s, close: a, last: l, next: u, nextLabelWithProgress: f, skip: c } = i.locale, p = ue(s), d = ue(a), h = ue(l), m = ue(u), w = ue(c);
|
|
4118
|
+
let g = a, v = d;
|
|
4119
|
+
if (e) {
|
|
4120
|
+
if (g = u, v = m, i.showProgress && !r) {
|
|
4121
|
+
const S = ue(f, {
|
|
4122
|
+
step: t + 1,
|
|
4123
|
+
steps: o
|
|
4124
|
+
});
|
|
4125
|
+
g = It(f, t + 1, o), v = S;
|
|
4126
|
+
}
|
|
4127
|
+
r && (g = l, v = h);
|
|
4128
|
+
}
|
|
4129
|
+
return {
|
|
4130
|
+
backProps: {
|
|
4131
|
+
"aria-label": p,
|
|
4132
|
+
children: s,
|
|
4133
|
+
"data-action": "back",
|
|
4134
|
+
onClick: this.handleClickBack,
|
|
4135
|
+
role: "button",
|
|
4136
|
+
title: p
|
|
4137
|
+
},
|
|
4138
|
+
closeProps: {
|
|
4139
|
+
"aria-label": d,
|
|
4140
|
+
children: a,
|
|
4141
|
+
"data-action": "close",
|
|
4142
|
+
onClick: this.handleClickClose,
|
|
4143
|
+
role: "button",
|
|
4144
|
+
title: d
|
|
4145
|
+
},
|
|
4146
|
+
primaryProps: {
|
|
4147
|
+
"aria-label": v,
|
|
4148
|
+
children: g,
|
|
4149
|
+
"data-action": "primary",
|
|
4150
|
+
onClick: this.handleClickPrimary,
|
|
4151
|
+
role: "button",
|
|
4152
|
+
title: v
|
|
4153
|
+
},
|
|
4154
|
+
skipProps: {
|
|
4155
|
+
"aria-label": w,
|
|
4156
|
+
children: c,
|
|
4157
|
+
"data-action": "skip",
|
|
4158
|
+
onClick: this.handleClickSkip,
|
|
4159
|
+
role: "button",
|
|
4160
|
+
title: w
|
|
4161
|
+
},
|
|
4162
|
+
tooltipProps: {
|
|
4163
|
+
"aria-modal": !0,
|
|
4164
|
+
ref: n,
|
|
4165
|
+
role: "alertdialog"
|
|
4166
|
+
}
|
|
4167
|
+
};
|
|
4168
|
+
});
|
|
4169
|
+
}
|
|
4170
|
+
render() {
|
|
4171
|
+
const { continuous: e, index: t, isLastStep: r, setTooltipRef: n, size: o, step: i } = this.props, { beaconComponent: s, tooltipComponent: a, ...l } = i;
|
|
4172
|
+
let u;
|
|
4173
|
+
if (a) {
|
|
4174
|
+
const f = {
|
|
4175
|
+
...this.getElementsProps(),
|
|
4176
|
+
continuous: e,
|
|
4177
|
+
index: t,
|
|
4178
|
+
isLastStep: r,
|
|
4179
|
+
size: o,
|
|
4180
|
+
step: l,
|
|
4181
|
+
setTooltipRef: n
|
|
4182
|
+
}, c = a;
|
|
4183
|
+
u = /* @__PURE__ */ W.createElement(c, { ...f });
|
|
4184
|
+
} else
|
|
4185
|
+
u = /* @__PURE__ */ W.createElement(
|
|
4186
|
+
Ji,
|
|
4187
|
+
{
|
|
4188
|
+
...this.getElementsProps(),
|
|
4189
|
+
continuous: e,
|
|
4190
|
+
index: t,
|
|
4191
|
+
isLastStep: r,
|
|
4192
|
+
size: o,
|
|
4193
|
+
step: i
|
|
4194
|
+
}
|
|
4195
|
+
);
|
|
4196
|
+
return u;
|
|
4197
|
+
}
|
|
4198
|
+
}, Zi = class extends W.Component {
|
|
4199
|
+
constructor() {
|
|
4200
|
+
super(...arguments), C(this, "scope", null), C(this, "tooltip", null), C(this, "handleClickHoverBeacon", (e) => {
|
|
4201
|
+
const { step: t, store: r } = this.props;
|
|
4202
|
+
e.type === "mouseenter" && t.event !== "hover" || r.update({ lifecycle: I.TOOLTIP });
|
|
4203
|
+
}), C(this, "setTooltipRef", (e) => {
|
|
4204
|
+
this.tooltip = e;
|
|
4205
|
+
}), C(this, "setPopper", (e, t) => {
|
|
4206
|
+
var r;
|
|
4207
|
+
const { action: n, lifecycle: o, step: i, store: s } = this.props;
|
|
4208
|
+
t === "wrapper" ? s.setPopper("beacon", e) : s.setPopper("tooltip", e), s.getPopper("beacon") && (s.getPopper("tooltip") || i.placement === "center") && o === I.INIT && s.update({
|
|
4209
|
+
action: n,
|
|
4210
|
+
lifecycle: I.READY
|
|
4211
|
+
}), (r = i.floaterProps) != null && r.getPopper && i.floaterProps.getPopper(e, t);
|
|
4212
|
+
}), C(this, "renderTooltip", (e) => {
|
|
4213
|
+
const { continuous: t, helpers: r, index: n, size: o, step: i } = this.props;
|
|
4214
|
+
return /* @__PURE__ */ W.createElement(
|
|
4215
|
+
Xi,
|
|
4216
|
+
{
|
|
4217
|
+
continuous: t,
|
|
4218
|
+
helpers: r,
|
|
4219
|
+
index: n,
|
|
4220
|
+
isLastStep: n + 1 === o,
|
|
4221
|
+
setTooltipRef: this.setTooltipRef,
|
|
4222
|
+
size: o,
|
|
4223
|
+
step: i,
|
|
4224
|
+
...e
|
|
4225
|
+
}
|
|
4226
|
+
);
|
|
4227
|
+
});
|
|
4228
|
+
}
|
|
4229
|
+
componentDidMount() {
|
|
4230
|
+
const { debug: e, index: t } = this.props;
|
|
4231
|
+
ve({
|
|
4232
|
+
title: `step:${t}`,
|
|
4233
|
+
data: [{ key: "props", value: this.props }],
|
|
4234
|
+
debug: e
|
|
4235
|
+
});
|
|
4236
|
+
}
|
|
4237
|
+
componentDidUpdate(e) {
|
|
4238
|
+
var t;
|
|
4239
|
+
const {
|
|
4240
|
+
action: r,
|
|
4241
|
+
callback: n,
|
|
4242
|
+
continuous: o,
|
|
4243
|
+
controlled: i,
|
|
4244
|
+
debug: s,
|
|
4245
|
+
helpers: a,
|
|
4246
|
+
index: l,
|
|
4247
|
+
lifecycle: u,
|
|
4248
|
+
shouldScroll: f,
|
|
4249
|
+
status: c,
|
|
4250
|
+
step: p,
|
|
4251
|
+
store: d
|
|
4252
|
+
} = this.props, { changed: h, changedFrom: m } = rt(e, this.props), w = a.info(), g = o && r !== q.CLOSE && (l > 0 || r === q.PREV), v = h("action") || h("index") || h("lifecycle") || h("status"), S = m("lifecycle", [I.TOOLTIP, I.INIT], I.INIT), N = h("action", [
|
|
4253
|
+
q.NEXT,
|
|
4254
|
+
q.PREV,
|
|
4255
|
+
q.SKIP,
|
|
4256
|
+
q.CLOSE
|
|
4257
|
+
]), b = i && l === e.index;
|
|
4258
|
+
if (N && (S || b) && n({
|
|
4259
|
+
...w,
|
|
4260
|
+
index: e.index,
|
|
4261
|
+
lifecycle: I.COMPLETE,
|
|
4262
|
+
step: e.step,
|
|
4263
|
+
type: ee.STEP_AFTER
|
|
4264
|
+
}), p.placement === "center" && c === k.RUNNING && h("index") && r !== q.START && u === I.INIT && d.update({ lifecycle: I.READY }), v) {
|
|
4265
|
+
const j = he(p.target), K = !!j;
|
|
4266
|
+
K && Ti(j) ? (m("status", k.READY, k.RUNNING) || m("lifecycle", I.INIT, I.READY)) && n({
|
|
4267
|
+
...w,
|
|
4268
|
+
step: p,
|
|
4269
|
+
type: ee.STEP_BEFORE
|
|
4270
|
+
}) : (console.warn(K ? "Target not visible" : "Target not mounted", p), n({
|
|
4271
|
+
...w,
|
|
4272
|
+
type: ee.TARGET_NOT_FOUND,
|
|
4273
|
+
step: p
|
|
4274
|
+
}), i || d.update({ index: l + (r === q.PREV ? -1 : 1) }));
|
|
4275
|
+
}
|
|
4276
|
+
m("lifecycle", I.INIT, I.READY) && d.update({
|
|
4277
|
+
lifecycle: xr(p) || g ? I.TOOLTIP : I.BEACON
|
|
4278
|
+
}), h("index") && ve({
|
|
4279
|
+
title: `step:${u}`,
|
|
4280
|
+
data: [{ key: "props", value: this.props }],
|
|
4281
|
+
debug: s
|
|
4282
|
+
}), h("lifecycle", I.BEACON) && n({
|
|
4283
|
+
...w,
|
|
4284
|
+
step: p,
|
|
4285
|
+
type: ee.BEACON
|
|
4286
|
+
}), h("lifecycle", I.TOOLTIP) && (n({
|
|
4287
|
+
...w,
|
|
4288
|
+
step: p,
|
|
4289
|
+
type: ee.TOOLTIP
|
|
4290
|
+
}), f && this.tooltip && (this.scope = new Hi(this.tooltip, { selector: "[data-action=primary]" }), this.scope.setFocus())), m("lifecycle", [I.TOOLTIP, I.INIT], I.INIT) && ((t = this.scope) == null || t.removeScope(), d.cleanupPoppers());
|
|
4291
|
+
}
|
|
4292
|
+
componentWillUnmount() {
|
|
4293
|
+
var e;
|
|
4294
|
+
(e = this.scope) == null || e.removeScope();
|
|
4295
|
+
}
|
|
4296
|
+
get open() {
|
|
4297
|
+
const { lifecycle: e, step: t } = this.props;
|
|
4298
|
+
return xr(t) || e === I.TOOLTIP;
|
|
4299
|
+
}
|
|
4300
|
+
render() {
|
|
4301
|
+
const { continuous: e, debug: t, index: r, nonce: n, shouldScroll: o, size: i, step: s } = this.props, a = he(s.target);
|
|
4302
|
+
return !dn(s) || !x.domElement(a) ? null : /* @__PURE__ */ W.createElement("div", { key: `JoyrideStep-${r}`, className: "react-joyride__step" }, /* @__PURE__ */ W.createElement(
|
|
4303
|
+
$t,
|
|
4304
|
+
{
|
|
4305
|
+
...s.floaterProps,
|
|
4306
|
+
component: this.renderTooltip,
|
|
4307
|
+
debug: t,
|
|
4308
|
+
getPopper: this.setPopper,
|
|
4309
|
+
id: `react-joyride-step-${r}`,
|
|
4310
|
+
open: this.open,
|
|
4311
|
+
placement: s.placement,
|
|
4312
|
+
target: s.target
|
|
4313
|
+
},
|
|
4314
|
+
/* @__PURE__ */ W.createElement(
|
|
4315
|
+
Vi,
|
|
4316
|
+
{
|
|
4317
|
+
beaconComponent: s.beaconComponent,
|
|
4318
|
+
continuous: e,
|
|
4319
|
+
index: r,
|
|
4320
|
+
isLastStep: r + 1 === i,
|
|
4321
|
+
locale: s.locale,
|
|
4322
|
+
nonce: n,
|
|
4323
|
+
onClickOrHover: this.handleClickHoverBeacon,
|
|
4324
|
+
shouldFocus: o,
|
|
4325
|
+
size: i,
|
|
4326
|
+
step: s,
|
|
4327
|
+
styles: s.styles
|
|
4328
|
+
}
|
|
4329
|
+
)
|
|
4330
|
+
));
|
|
4331
|
+
}
|
|
4332
|
+
}, yn = class extends W.Component {
|
|
4333
|
+
constructor(e) {
|
|
4334
|
+
super(e), C(this, "helpers"), C(this, "store"), C(this, "callback", (s) => {
|
|
4335
|
+
const { callback: a } = this.props;
|
|
4336
|
+
x.function(a) && a(s);
|
|
4337
|
+
}), C(this, "handleKeyboard", (s) => {
|
|
4338
|
+
const { index: a, lifecycle: l } = this.state, { steps: u } = this.props, f = u[a];
|
|
4339
|
+
l === I.TOOLTIP && s.code === "Escape" && f && !f.disableCloseOnEsc && this.store.close("keyboard");
|
|
4340
|
+
}), C(this, "handleClickOverlay", () => {
|
|
4341
|
+
const { index: s } = this.state, { steps: a } = this.props;
|
|
4342
|
+
we(this.props, a[s]).disableOverlayClose || this.helpers.close("overlay");
|
|
4343
|
+
}), C(this, "syncState", (s) => {
|
|
4344
|
+
this.setState(s);
|
|
4345
|
+
});
|
|
4346
|
+
const { debug: t, getHelpers: r, run: n = !0, stepIndex: o } = e;
|
|
4347
|
+
this.store = Wi({
|
|
4348
|
+
...e,
|
|
4349
|
+
controlled: n && x.number(o)
|
|
4350
|
+
}), this.helpers = this.store.getHelpers();
|
|
4351
|
+
const { addListener: i } = this.store;
|
|
4352
|
+
ve({
|
|
4353
|
+
title: "init",
|
|
4354
|
+
data: [
|
|
4355
|
+
{ key: "props", value: this.props },
|
|
4356
|
+
{ key: "state", value: this.state }
|
|
4357
|
+
],
|
|
4358
|
+
debug: t
|
|
4359
|
+
}), i(this.syncState), r && r(this.helpers), this.state = this.store.getState();
|
|
4360
|
+
}
|
|
4361
|
+
componentDidMount() {
|
|
4362
|
+
if (!ye())
|
|
4363
|
+
return;
|
|
4364
|
+
const { debug: e, disableCloseOnEsc: t, run: r, steps: n } = this.props, { start: o } = this.store;
|
|
4365
|
+
Nr(n, e) && r && o(), t || document.body.addEventListener("keydown", this.handleKeyboard, { passive: !0 });
|
|
4366
|
+
}
|
|
4367
|
+
componentDidUpdate(e, t) {
|
|
4368
|
+
if (!ye())
|
|
4369
|
+
return;
|
|
4370
|
+
const { action: r, controlled: n, index: o, status: i } = this.state, { debug: s, run: a, stepIndex: l, steps: u } = this.props, { stepIndex: f, steps: c } = e, { reset: p, setSteps: d, start: h, stop: m, update: w } = this.store, { changed: g } = rt(e, this.props), { changed: v, changedFrom: S } = rt(t, this.state), N = we(this.props, u[o]), b = !X(c, u), j = x.number(l) && g("stepIndex"), K = he(N.target);
|
|
4371
|
+
if (b && (Nr(u, s) ? d(u) : console.warn("Steps are not valid", u)), g("run") && (a ? h(l) : m()), j) {
|
|
4372
|
+
let re = x.number(f) && f < l ? q.NEXT : q.PREV;
|
|
4373
|
+
r === q.STOP && (re = q.START), [k.FINISHED, k.SKIPPED].includes(i) || w({
|
|
4374
|
+
action: r === q.CLOSE ? q.CLOSE : re,
|
|
4375
|
+
index: l,
|
|
4376
|
+
lifecycle: I.INIT
|
|
4377
|
+
});
|
|
4378
|
+
}
|
|
4379
|
+
!n && i === k.RUNNING && o === 0 && !K && (this.store.update({ index: o + 1 }), this.callback({
|
|
4380
|
+
...this.state,
|
|
4381
|
+
type: ee.TARGET_NOT_FOUND,
|
|
4382
|
+
step: N
|
|
4383
|
+
}));
|
|
4384
|
+
const se = {
|
|
4385
|
+
...this.state,
|
|
4386
|
+
index: o,
|
|
4387
|
+
step: N
|
|
4388
|
+
};
|
|
4389
|
+
if (v("action", [
|
|
4390
|
+
q.NEXT,
|
|
4391
|
+
q.PREV,
|
|
4392
|
+
q.SKIP,
|
|
4393
|
+
q.CLOSE
|
|
4394
|
+
]) && v("status", k.PAUSED)) {
|
|
4395
|
+
const re = we(this.props, u[t.index]);
|
|
4396
|
+
this.callback({
|
|
4397
|
+
...se,
|
|
4398
|
+
index: t.index,
|
|
4399
|
+
lifecycle: I.COMPLETE,
|
|
4400
|
+
step: re,
|
|
4401
|
+
type: ee.STEP_AFTER
|
|
4402
|
+
});
|
|
4403
|
+
}
|
|
4404
|
+
if (v("status", [k.FINISHED, k.SKIPPED])) {
|
|
4405
|
+
const re = we(this.props, u[t.index]);
|
|
4406
|
+
n || this.callback({
|
|
4407
|
+
...se,
|
|
4408
|
+
index: t.index,
|
|
4409
|
+
lifecycle: I.COMPLETE,
|
|
4410
|
+
step: re,
|
|
4411
|
+
type: ee.STEP_AFTER
|
|
4412
|
+
}), this.callback({
|
|
4413
|
+
...se,
|
|
4414
|
+
type: ee.TOUR_END,
|
|
4415
|
+
// Return the last step when the tour is finished
|
|
4416
|
+
step: re,
|
|
4417
|
+
index: t.index
|
|
4418
|
+
}), p();
|
|
4419
|
+
} else S("status", [k.IDLE, k.READY], k.RUNNING) ? this.callback({
|
|
4420
|
+
...se,
|
|
4421
|
+
type: ee.TOUR_START
|
|
4422
|
+
}) : (v("status") || v("action", q.RESET)) && this.callback({
|
|
4423
|
+
...se,
|
|
4424
|
+
type: ee.TOUR_STATUS
|
|
4425
|
+
});
|
|
4426
|
+
this.scrollToStep(t);
|
|
4427
|
+
}
|
|
4428
|
+
componentWillUnmount() {
|
|
4429
|
+
const { disableCloseOnEsc: e } = this.props;
|
|
4430
|
+
e || document.body.removeEventListener("keydown", this.handleKeyboard);
|
|
4431
|
+
}
|
|
4432
|
+
scrollToStep(e) {
|
|
4433
|
+
const { index: t, lifecycle: r, status: n } = this.state, {
|
|
4434
|
+
debug: o,
|
|
4435
|
+
disableScrollParentFix: i = !1,
|
|
4436
|
+
scrollDuration: s,
|
|
4437
|
+
scrollOffset: a = 20,
|
|
4438
|
+
scrollToFirstStep: l = !1,
|
|
4439
|
+
steps: u
|
|
4440
|
+
} = this.props, f = we(this.props, u[t]), c = he(f.target), p = Ai({
|
|
4441
|
+
isFirstStep: t === 0,
|
|
4442
|
+
lifecycle: r,
|
|
4443
|
+
previousLifecycle: e.lifecycle,
|
|
4444
|
+
scrollToFirstStep: l,
|
|
4445
|
+
step: f,
|
|
4446
|
+
target: c
|
|
4447
|
+
});
|
|
4448
|
+
if (n === k.RUNNING && p) {
|
|
4449
|
+
const d = He(c, i), h = Me(c, i);
|
|
4450
|
+
let m = Math.floor(xi(c, a, i)) || 0;
|
|
4451
|
+
ve({
|
|
4452
|
+
title: "scrollToStep",
|
|
4453
|
+
data: [
|
|
4454
|
+
{ key: "index", value: t },
|
|
4455
|
+
{ key: "lifecycle", value: r },
|
|
4456
|
+
{ key: "status", value: n }
|
|
4457
|
+
],
|
|
4458
|
+
debug: o
|
|
4459
|
+
});
|
|
4460
|
+
const w = this.store.getPopper("beacon"), g = this.store.getPopper("tooltip");
|
|
4461
|
+
if (r === I.BEACON && w) {
|
|
4462
|
+
const { offsets: v, placement: S } = w;
|
|
4463
|
+
!["bottom"].includes(S) && !d && (m = Math.floor(v.popper.top - a));
|
|
4464
|
+
} else if (r === I.TOOLTIP && g) {
|
|
4465
|
+
const { flipped: v, offsets: S, placement: N } = g;
|
|
4466
|
+
["top", "right", "left"].includes(N) && !v && !d ? m = Math.floor(S.popper.top - a) : m -= f.spotlightPadding;
|
|
4467
|
+
}
|
|
4468
|
+
m = m >= 0 ? m : 0, n === k.RUNNING && Ci(m, { element: h, duration: s }).then(
|
|
4469
|
+
() => {
|
|
4470
|
+
setTimeout(() => {
|
|
4471
|
+
var v;
|
|
4472
|
+
(v = this.store.getPopper("tooltip")) == null || v.instance.update();
|
|
4473
|
+
}, 10);
|
|
4474
|
+
}
|
|
4475
|
+
);
|
|
4476
|
+
}
|
|
4477
|
+
}
|
|
4478
|
+
render() {
|
|
4479
|
+
if (!ye())
|
|
4480
|
+
return null;
|
|
4481
|
+
const { index: e, lifecycle: t, status: r } = this.state, {
|
|
4482
|
+
continuous: n = !1,
|
|
4483
|
+
debug: o = !1,
|
|
4484
|
+
nonce: i,
|
|
4485
|
+
scrollToFirstStep: s = !1,
|
|
4486
|
+
steps: a
|
|
4487
|
+
} = this.props, l = r === k.RUNNING, u = {};
|
|
4488
|
+
if (l && a[e]) {
|
|
4489
|
+
const f = we(this.props, a[e]);
|
|
4490
|
+
u.step = /* @__PURE__ */ W.createElement(
|
|
4491
|
+
Zi,
|
|
4492
|
+
{
|
|
4493
|
+
...this.state,
|
|
4494
|
+
callback: this.callback,
|
|
4495
|
+
continuous: n,
|
|
4496
|
+
debug: o,
|
|
4497
|
+
helpers: this.helpers,
|
|
4498
|
+
nonce: i,
|
|
4499
|
+
shouldScroll: !f.disableScrolling && (e !== 0 || s),
|
|
4500
|
+
step: f,
|
|
4501
|
+
store: this.store
|
|
4502
|
+
}
|
|
4503
|
+
), u.overlay = /* @__PURE__ */ W.createElement(qi, { id: "react-joyride-portal" }, /* @__PURE__ */ W.createElement(
|
|
4504
|
+
zi,
|
|
4505
|
+
{
|
|
4506
|
+
...f,
|
|
4507
|
+
continuous: n,
|
|
4508
|
+
debug: o,
|
|
4509
|
+
lifecycle: t,
|
|
4510
|
+
onClickOverlay: this.handleClickOverlay
|
|
4511
|
+
}
|
|
4512
|
+
));
|
|
4513
|
+
}
|
|
4514
|
+
return /* @__PURE__ */ W.createElement("div", { className: "react-joyride" }, u.step, u.overlay);
|
|
4515
|
+
}
|
|
4516
|
+
};
|
|
4517
|
+
C(yn, "defaultProps", Li);
|
|
4518
|
+
var Qi = yn;
|
|
4519
|
+
const is = {
|
|
4520
|
+
content: "",
|
|
4521
|
+
disableBeacon: !0,
|
|
4522
|
+
hideCloseButton: !1,
|
|
4523
|
+
locale: {
|
|
4524
|
+
back: "Back",
|
|
4525
|
+
close: "Close",
|
|
4526
|
+
last: "Close",
|
|
4527
|
+
next: "Next",
|
|
4528
|
+
open: "Open the dialog",
|
|
4529
|
+
skip: "Skip"
|
|
4530
|
+
},
|
|
4531
|
+
showSkipButton: !0,
|
|
4532
|
+
styles: {
|
|
4533
|
+
buttonBack: {
|
|
4534
|
+
fontFamily: "roboto"
|
|
4535
|
+
},
|
|
4536
|
+
buttonNext: {
|
|
4537
|
+
fontFamily: "roboto"
|
|
4538
|
+
},
|
|
4539
|
+
buttonSkip: {
|
|
4540
|
+
fontFamily: "roboto"
|
|
4541
|
+
},
|
|
4542
|
+
options: {
|
|
4543
|
+
zIndex: 9999
|
|
4544
|
+
},
|
|
4545
|
+
tooltipContainer: {
|
|
4546
|
+
fontFamily: "roboto",
|
|
4547
|
+
textAlign: "left"
|
|
4548
|
+
}
|
|
4549
|
+
},
|
|
4550
|
+
target: ""
|
|
4551
|
+
}, ss = ({ run: e, steps: t, onFinish: r }) => {
|
|
4552
|
+
const [n, o] = Ut(e), [i, s] = Ut(0), a = gn(
|
|
4553
|
+
(l) => {
|
|
4554
|
+
const { action: u, index: f, status: c, type: p } = l;
|
|
4555
|
+
[ee.STEP_AFTER, ee.TARGET_NOT_FOUND].includes(
|
|
4556
|
+
p
|
|
4557
|
+
) ? s(f + (u === q.PREV ? -1 : 1)) : ([k.FINISHED, k.SKIPPED].includes(c) || u === "close") && (o(!1), vn(r) || r());
|
|
4558
|
+
},
|
|
4559
|
+
[r]
|
|
4560
|
+
);
|
|
4561
|
+
return /* @__PURE__ */ mn(
|
|
4562
|
+
Qi,
|
|
4563
|
+
{
|
|
4564
|
+
callback: a,
|
|
4565
|
+
continuous: !0,
|
|
4566
|
+
disableOverlayClose: !0,
|
|
4567
|
+
disableScrollParentFix: !0,
|
|
4568
|
+
run: n,
|
|
4569
|
+
spotlightClicks: !0,
|
|
4570
|
+
stepIndex: i,
|
|
4571
|
+
steps: t,
|
|
4572
|
+
styles: {
|
|
4573
|
+
buttonNext: {
|
|
4574
|
+
display: i === t.length - 1 ? "none" : "block"
|
|
4575
|
+
},
|
|
4576
|
+
options: { zIndex: 9999 }
|
|
4577
|
+
}
|
|
4578
|
+
}
|
|
4579
|
+
);
|
|
4580
|
+
};
|
|
4581
|
+
export {
|
|
4582
|
+
ss as Tour,
|
|
4583
|
+
is as baseStep
|
|
4584
|
+
};
|