@nocobase/app 2.0.0-alpha.2 → 2.0.0-alpha.20
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/client/113.736e29a0.async.js +7 -0
- package/dist/client/1145.0351040a.async.js +3 -0
- package/dist/client/1161.0b3b5766.async.js +40 -0
- package/dist/client/1442.be509f94.async.js +5 -0
- package/dist/client/1595.1827ce7f.async.js +45 -0
- package/dist/client/1758.eeeacf43.async.js +5 -0
- package/dist/client/1883.6ee256ab.async.js +17 -0
- package/dist/client/1905.ff0793ff.async.js +12 -0
- package/dist/client/2042.feb4b9ac.async.js +10 -0
- package/dist/client/2097.5a49892c.async.js +12 -0
- package/dist/client/{2190.90c718a9.async.js → 2190.4f5395e5.async.js} +1 -1
- package/dist/client/2380.900b7a22.async.js +15 -0
- package/dist/client/2612.0865e67e.async.js +19 -0
- package/dist/client/2775.455c3402.async.js +47 -0
- package/dist/client/2936.902710e4.async.js +28 -0
- package/dist/client/3357.be95167c.async.js +28 -0
- package/dist/client/341.fba65e23.async.js +28 -0
- package/dist/client/3451.a9466e73.async.js +24 -0
- package/dist/client/4327.68c0f17b.async.js +16 -0
- package/dist/client/4351.efe05af2.async.js +15 -0
- package/dist/client/4666.fb83d11a.async.js +9 -0
- package/dist/client/4727.0f6df8fb.async.js +1 -0
- package/dist/client/4750.044f647b.async.js +32 -0
- package/dist/client/4926.58238954.async.js +17 -0
- package/dist/client/5013.b14730ba.async.js +3 -0
- package/dist/client/5501.22d50b3a.async.js +23 -0
- package/dist/client/5662.8c643e63.async.js +26 -0
- package/dist/client/5950.179a885e.async.js +4 -0
- package/dist/client/6021.cdefa0d3.async.js +22 -0
- package/dist/client/645.ea6376fe.async.js +60 -0
- package/dist/client/6474.49632e37.async.js +21 -0
- package/dist/client/6534.6ea6468b.async.js +33 -0
- package/dist/client/6747.de538558.async.js +22 -0
- package/dist/client/689.4de33d65.async.js +3 -0
- package/dist/client/6920.497d7e80.async.js +59 -0
- package/dist/client/6939.d7d780b7.async.js +17 -0
- package/dist/client/6996.ae27c9d6.async.js +9 -0
- package/dist/client/703.20003a5c.async.js +17 -0
- package/dist/client/7087.5646e199.async.js +6 -0
- package/dist/client/7197.bb3092b2.async.js +35 -0
- package/dist/client/7482.3924bcd9.async.js +1 -0
- package/dist/client/7483.546ddcb6.async.js +23 -0
- package/dist/client/7534.0d69e071.async.js +34 -0
- package/dist/client/8183.4c6f7e21.async.js +12 -0
- package/dist/client/8408.c0ef773c.async.js +84 -0
- package/dist/client/8805.819c4f44.async.js +20 -0
- package/dist/client/9017.4ae5c322.async.js +6 -0
- package/dist/client/9042.3d21f631.async.js +45 -0
- package/dist/client/908.0e8c8a54.async.js +14 -0
- package/dist/client/9317.fe6ffa9a.async.js +13 -0
- package/dist/client/935.97d45ffa.async.js +27 -0
- package/dist/client/95.24aa76c4.async.js +6 -0
- package/dist/client/9547.a442df93.async.js +25 -0
- package/dist/client/9801.34b13a74.async.js +9 -0
- package/dist/client/9844.6f484975.async.js +37 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/{npm._at_ant-design.0bc226be.async.js → npm._at_ant-design.c2d0554a.async.js} +1 -1
- package/dist/client/npm._at_babel.94b2dd75.async.js +3 -0
- package/dist/client/npm._at_floating-ui.c19fd4ef.async.js +1 -0
- package/dist/client/npm._at_rc-component.fcc6d966.async.js +8 -0
- package/dist/client/npm._at_react-spring.2682ca90.async.js +1 -0
- package/dist/client/{npm._at_umijs.47085d01.async.js → npm._at_umijs.f64c1387.async.js} +1 -1
- package/dist/client/npm._at_use-gesture.c2876964.async.js +1 -0
- package/dist/client/npm.ahooks.9a89c2a5.async.js +6 -0
- package/dist/client/npm.antd-mobile-icons.4b133b6b.async.js +1 -0
- package/dist/client/npm.antd-mobile.1a8a8320.async.js +2 -0
- package/dist/client/{npm.antd.8f85b075.async.js → npm.antd.acf65d87.async.js} +204 -204
- package/dist/client/npm.async-validator.32d9020f.async.js +12 -0
- package/dist/client/{npm.dayjs.772d2a39.async.js → npm.dayjs.549164ec.async.js} +1 -1
- package/dist/client/{npm.highlight.js.c1f693ec.async.js → npm.highlight.js.5db864c8.async.js} +2 -2
- package/dist/client/{npm.htmlparser2.a2f8d64d.async.js → npm.htmlparser2.ee1fb042.async.js} +1 -1
- package/dist/client/{npm.lodash.5dcc1c5e.async.js → npm.lodash.0ff318b3.async.js} +2 -2
- package/dist/client/npm.rc-cascader.641db835.async.js +4 -0
- package/dist/client/npm.rc-field-form.6a3cf561.async.js +1 -0
- package/dist/client/npm.rc-picker.baba6981.async.js +22 -0
- package/dist/client/npm.rc-table.ffbc8feb.async.js +22 -0
- package/dist/client/npm.rc-tree-select.866d1acb.async.js +5 -0
- package/dist/client/npm.rc-util.4aa445e4.async.js +35 -0
- package/dist/client/npm.unknown.1838c8f4.chunk.css +1 -0
- package/dist/client/p__index.1f505ad4.chunk.css +1 -0
- package/dist/client/p__index.330746c1.async.js +2289 -0
- package/dist/client/{umi.ce574f8c.js → umi.6cc1136d.js} +18 -18
- package/package.json +6 -6
- package/dist/client/1145.4029b0be.async.js +0 -3
- package/dist/client/1617.dd671a87.async.js +0 -6
- package/dist/client/1833.82373d30.async.js +0 -6
- package/dist/client/2134.1d86e440.async.js +0 -5
- package/dist/client/2498.be8b1194.async.js +0 -7
- package/dist/client/260.5b02a0a5.async.js +0 -4
- package/dist/client/2953.2e77d77c.async.js +0 -24
- package/dist/client/3130.8c624281.async.js +0 -35
- package/dist/client/3170.6147bd19.async.js +0 -24
- package/dist/client/3255.e6303833.async.js +0 -10
- package/dist/client/3520.81fd6362.async.js +0 -24
- package/dist/client/3522.674f2264.async.js +0 -4
- package/dist/client/4088.0568ef31.async.js +0 -5
- package/dist/client/4205.c3eac46d.async.js +0 -9
- package/dist/client/4644.ae01f8a6.async.js +0 -4
- package/dist/client/4666.d20ff352.async.js +0 -8
- package/dist/client/4840.477401f9.async.js +0 -8
- package/dist/client/5068.72e9d750.async.js +0 -5
- package/dist/client/5087.468f5500.async.js +0 -6
- package/dist/client/5950.b83f8586.async.js +0 -4
- package/dist/client/6416.361c93ff.async.js +0 -4
- package/dist/client/6472.ac05f778.async.js +0 -7
- package/dist/client/6779.47fc1971.async.js +0 -10
- package/dist/client/6816.1ff200ac.async.js +0 -5
- package/dist/client/6996.836a3f7f.async.js +0 -8
- package/dist/client/7463.70ca58ce.async.js +0 -20
- package/dist/client/7522.1f91be5c.async.js +0 -23
- package/dist/client/7596.232a7185.async.js +0 -10
- package/dist/client/7688.85d6d7bb.async.js +0 -4
- package/dist/client/8106.829fd6b5.async.js +0 -10
- package/dist/client/8541.e3110aaa.async.js +0 -8
- package/dist/client/9017.28eacc5a.async.js +0 -6
- package/dist/client/937.a55819ab.async.js +0 -5
- package/dist/client/9489.25ca39a9.async.js +0 -7
- package/dist/client/9663.c04b2ad1.async.js +0 -5
- package/dist/client/9729.0d7a5c47.async.js +0 -8
- package/dist/client/9848.18f8d3db.async.js +0 -4
- package/dist/client/npm._at_babel.aa6aa60c.async.js +0 -3
- package/dist/client/npm._at_rc-component.adfcb69e.async.js +0 -8
- package/dist/client/npm._at_react-spring.47360957.async.js +0 -1
- package/dist/client/npm._at_use-gesture.15164819.async.js +0 -1
- package/dist/client/npm.ahooks.7b545023.async.js +0 -6
- package/dist/client/npm.antd-mobile.9ba7b196.async.js +0 -1
- package/dist/client/npm.antd-style.f89528fc.async.js +0 -1
- package/dist/client/npm.babel-runtime.eed49798.async.js +0 -1
- package/dist/client/npm.rc-cascader.2d4909f4.async.js +0 -4
- package/dist/client/npm.rc-picker.c4dce7bc.async.js +0 -22
- package/dist/client/npm.rc-table.8e9124fe.async.js +0 -22
- package/dist/client/npm.rc-tree-select.c1fbaa19.async.js +0 -5
- package/dist/client/npm.rc-util.7f3dc7bf.async.js +0 -35
- package/dist/client/p__index.5eda2656.chunk.css +0 -1
- package/dist/client/p__index.751f234c.async.js +0 -2316
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[4509],{30266:function(Dt,Fe,d){d.d(Fe,{Z:function(){return Ee}});function F(o){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(o)}function L(o,e){if(F(o)!="object"||!o)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var l=n.call(o,e||"default");if(F(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function oe(o){var e=L(o,"string");return F(e)=="symbol"?e:e+""}function w(o,e,n){return(e=oe(e))in o?Object.defineProperty(o,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[e]=n,o}function W(o,e){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);e&&(l=l.filter(function(v){return Object.getOwnPropertyDescriptor(o,v).enumerable})),n.push.apply(n,l)}return n}function I(o){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W(Object(n),!0).forEach(function(l){w(o,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(n,l))})}return o}function Ze(o,e){(e==null||e>o.length)&&(e=o.length);for(var n=0,l=Array(e);n<e;n++)l[n]=o[n];return l}function p(o){if(Array.isArray(o))return Ze(o)}function _(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function N(o,e){if(o){if(typeof o=="string")return Ze(o,e);var n={}.toString.call(o).slice(8,-1);return n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set"?Array.from(o):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(o,e):void 0}}function D(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(o){return p(o)||_(o)||N(o)||D()}function j(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function K(o,e){for(var n=0;n<e.length;n++){var l=e[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,oe(l.key),l)}}function J(o,e,n){return e&&K(o.prototype,e),n&&K(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}function q(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var C=q();function Ce(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function G(o,e){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n},G(o,e)}function be(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&G(o,e)}function Y(o){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(o)}function he(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(he=function(){return!!o})()}function Pe(o,e){if(e&&(F(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ce(o)}function De(o){var e=he();return function(){var n,l=Y(o);if(e){var v=Y(this).constructor;n=Reflect.construct(l,arguments,v)}else n=l.apply(this,arguments);return Pe(this,n)}}function le(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}function ge(o,e,n){if(he())return Reflect.construct.apply(null,arguments);var l=[null];l.push.apply(l,e);var v=new(o.bind.apply(o,l));return n&&G(v,n.prototype),v}function ne(o){var e=typeof Map=="function"?new Map:void 0;return ne=function(l){if(l===null||!le(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(l))return e.get(l);e.set(l,v)}function v(){return ge(l,arguments,Y(this).constructor)}return v.prototype=Object.create(l.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),G(v,l)},ne(o)}var Te=d(34155),Se=/%[sdj%]/g,ze=function(){};typeof Te<"u";function je(o){if(!o||!o.length)return null;var e={};return o.forEach(function(n){var l=n.field;e[l]=e[l]||[],e[l].push(n)}),e}function xe(o){for(var e=arguments.length,n=new Array(e>1?e-1:0),l=1;l<e;l++)n[l-1]=arguments[l];var v=0,m=n.length;if(typeof o=="function")return o.apply(null,n);if(typeof o=="string"){var y=o.replace(Se,function(S){if(S==="%%")return"%";if(v>=m)return S;switch(S){case"%s":return String(n[v++]);case"%d":return Number(n[v++]);case"%j":try{return JSON.stringify(n[v++])}catch{return"[Circular]"}break;default:return S}});return y}return o}function lt(o){return o==="string"||o==="url"||o==="hex"||o==="email"||o==="date"||o==="pattern"}function Me(o,e){return!!(o==null||e==="array"&&Array.isArray(o)&&!o.length||lt(e)&&typeof o=="string"&&!o)}function bt(o){return Object.keys(o).length===0}function wt(o,e,n){var l=[],v=0,m=o.length;function y(S){l.push.apply(l,R(S||[])),v++,v===m&&n(l)}o.forEach(function(S){e(S,y)})}function Et(o,e,n){var l=0,v=o.length;function m(y){if(y&&y.length){n(y);return}var S=l;l=l+1,S<v?e(o[S],m):n([])}m([])}function St(o){var e=[];return Object.keys(o).forEach(function(n){e.push.apply(e,R(o[n]||[]))}),e}var Ye=function(o){be(n,o);var e=De(n);function n(l,v){var m;return j(this,n),m=e.call(this,"Async Validation Error"),w(Ce(m),"errors",void 0),w(Ce(m),"fields",void 0),m.errors=l,m.fields=v,m}return J(n)}(ne(Error));function Mt(o,e,n,l,v){if(e.first){var m=new Promise(function(Re,Ae){var A=function(we){return l(we),we.length?Ae(new Ye(we,je(we))):Re(v)},Oe=St(o);Et(Oe,n,A)});return m.catch(function(Re){return Re}),m}var y=e.firstFields===!0?Object.keys(o):e.firstFields||[],S=Object.keys(o),se=S.length,$e=0,fe=[],ve=new Promise(function(Re,Ae){var A=function(Z){if(fe.push.apply(fe,Z),$e++,$e===se)return l(fe),fe.length?Ae(new Ye(fe,je(fe))):Re(v)};S.length||(l(fe),Re(v)),S.forEach(function(Oe){var Z=o[Oe];y.indexOf(Oe)!==-1?Et(Z,n,A):wt(Z,n,A)})});return ve.catch(function(Re){return Re}),ve}function U(o){return!!(o&&o.message!==void 0)}function k(o,e){for(var n=o,l=0;l<e.length;l++){if(n==null)return n;n=n[e[l]]}return n}function T(o,e){return function(n){var l;return o.fullFields?l=k(e,o.fullFields):l=e[n.field||o.fullField],U(n)?(n.field=n.field||o.fullField,n.fieldValue=l,n):{message:typeof n=="function"?n():n,fieldValue:l,field:n.field||o.fullField}}}function V(o,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var l=e[n];F(l)==="object"&&F(o[n])==="object"?o[n]=I(I({},o[n]),l):o[n]=l}}return o}var ee="enum",We=function(e,n,l,v,m){e[ee]=Array.isArray(e[ee])?e[ee]:[],e[ee].indexOf(n)===-1&&v.push(xe(m.messages[ee],e.fullField,e[ee].join(", ")))},ke=We,vt=function(e,n,l,v,m){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||v.push(xe(m.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var y=new RegExp(e.pattern);y.test(n)||v.push(xe(m.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},ct=vt,i=function(e,n,l,v,m){var y=typeof e.len=="number",S=typeof e.min=="number",se=typeof e.max=="number",$e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fe=n,ve=null,Re=typeof n=="number",Ae=typeof n=="string",A=Array.isArray(n);if(Re?ve="number":Ae?ve="string":A&&(ve="array"),!ve)return!1;A&&(fe=n.length),Ae&&(fe=n.replace($e,"_").length),y?fe!==e.len&&v.push(xe(m.messages[ve].len,e.fullField,e.len)):S&&!se&&fe<e.min?v.push(xe(m.messages[ve].min,e.fullField,e.min)):se&&!S&&fe>e.max?v.push(xe(m.messages[ve].max,e.fullField,e.max)):S&&se&&(fe<e.min||fe>e.max)&&v.push(xe(m.messages[ve].range,e.fullField,e.min,e.max))},a=i,t=function(e,n,l,v,m,y){e.required&&(!l.hasOwnProperty(e.field)||Me(n,y||e.type))&&v.push(xe(m.messages.required,e.fullField))},r=t,u,s=function(){if(u)return u;var o="[a-fA-F\\d:]",e=function(nt){return nt&&nt.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(o,")|(?<=").concat(o,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",l="[a-fA-F\\d]{1,4}",v=["(?:".concat(l,":){7}(?:").concat(l,"|:)"),"(?:".concat(l,":){6}(?:").concat(n,"|:").concat(l,"|:)"),"(?:".concat(l,":){5}(?::").concat(n,"|(?::").concat(l,"){1,2}|:)"),"(?:".concat(l,":){4}(?:(?::").concat(l,"){0,1}:").concat(n,"|(?::").concat(l,"){1,3}|:)"),"(?:".concat(l,":){3}(?:(?::").concat(l,"){0,2}:").concat(n,"|(?::").concat(l,"){1,4}|:)"),"(?:".concat(l,":){2}(?:(?::").concat(l,"){0,3}:").concat(n,"|(?::").concat(l,"){1,5}|:)"),"(?:".concat(l,":){1}(?:(?::").concat(l,"){0,4}:").concat(n,"|(?::").concat(l,"){1,6}|:)"),"(?::(?:(?::".concat(l,"){0,5}:").concat(n,"|(?::").concat(l,"){1,7}|:))")],m="(?:%[0-9a-zA-Z]{1,})?",y="(?:".concat(v.join("|"),")").concat(m),S=new RegExp("(?:^".concat(n,"$)|(?:^").concat(y,"$)")),se=new RegExp("^".concat(n,"$")),$e=new RegExp("^".concat(y,"$")),fe=function(nt){return nt&&nt.exact?S:new RegExp("(?:".concat(e(nt)).concat(n).concat(e(nt),")|(?:").concat(e(nt)).concat(y).concat(e(nt),")"),"g")};fe.v4=function(Ge){return Ge&&Ge.exact?se:new RegExp("".concat(e(Ge)).concat(n).concat(e(Ge)),"g")},fe.v6=function(Ge){return Ge&&Ge.exact?$e:new RegExp("".concat(e(Ge)).concat(y).concat(e(Ge)),"g")};var ve="(?:(?:[a-z]+:)?//)",Re="(?:\\S+(?::\\S*)?@)?",Ae=fe.v4().source,A=fe.v6().source,Oe="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",Z="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",we="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",Ne="(?::\\d{2,5})?",rt='(?:[/?#][^\\s"]*)?',Be="(?:".concat(ve,"|www\\.)").concat(Re,"(?:localhost|").concat(Ae,"|").concat(A,"|").concat(Oe).concat(Z).concat(we,")").concat(Ne).concat(rt);return u=new RegExp("(?:^".concat(Be,"$)"),"i"),u},g={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},b={integer:function(e){return b.number(e)&&parseInt(e,10)===e},float:function(e){return b.number(e)&&!b.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return F(e)==="object"&&!b.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(g.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(s())},hex:function(e){return typeof e=="string"&&!!e.match(g.hex)}},E=function(e,n,l,v,m){if(e.required&&n===void 0){r(e,n,l,v,m);return}var y=["integer","float","array","regexp","object","method","email","number","date","url","hex"],S=e.type;y.indexOf(S)>-1?b[S](n)||v.push(xe(m.messages.types[S],e.fullField,e.type)):S&&F(n)!==e.type&&v.push(xe(m.messages.types[S],e.fullField,e.type))},x=E,z=function(e,n,l,v,m){(/^\s+$/.test(n)||n==="")&&v.push(xe(m.messages.whitespace,e.fullField))},re=z,P={required:r,whitespace:re,type:x,range:a,enum:ke,pattern:ct},ae=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n)&&!e.required)return l();P.required(e,n,v,y,m)}l(y)},B=ae,ce=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(n==null&&!e.required)return l();P.required(e,n,v,y,m,"array"),n!=null&&(P.type(e,n,v,y,m),P.range(e,n,v,y,m))}l(y)},te=ce,me=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n)&&!e.required)return l();P.required(e,n,v,y,m),n!==void 0&&P.type(e,n,v,y,m)}l(y)},ye=me,Le=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n,"date")&&!e.required)return l();if(P.required(e,n,v,y,m),!Me(n,"date")){var se;n instanceof Date?se=n:se=new Date(n),P.type(e,se,v,y,m),se&&P.range(e,se.getTime(),v,y,m)}}l(y)},Q=Le,ie="enum",Xe=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n)&&!e.required)return l();P.required(e,n,v,y,m),n!==void 0&&P[ie](e,n,v,y,m)}l(y)},qe=Xe,pe=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n)&&!e.required)return l();P.required(e,n,v,y,m),n!==void 0&&(P.type(e,n,v,y,m),P.range(e,n,v,y,m))}l(y)},_e=pe,it=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n)&&!e.required)return l();P.required(e,n,v,y,m),n!==void 0&&(P.type(e,n,v,y,m),P.range(e,n,v,y,m))}l(y)},dt=it,et=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n)&&!e.required)return l();P.required(e,n,v,y,m),n!==void 0&&P.type(e,n,v,y,m)}l(y)},xt=et,Nt=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(n===""&&(n=void 0),Me(n)&&!e.required)return l();P.required(e,n,v,y,m),n!==void 0&&(P.type(e,n,v,y,m),P.range(e,n,v,y,m))}l(y)},Ve=Nt,Pt=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n)&&!e.required)return l();P.required(e,n,v,y,m),n!==void 0&&P.type(e,n,v,y,m)}l(y)},Ft=Pt,tt=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n,"string")&&!e.required)return l();P.required(e,n,v,y,m),Me(n,"string")||P.pattern(e,n,v,y,m)}l(y)},de=tt,Tt=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n)&&!e.required)return l();P.required(e,n,v,y,m),Me(n)||P.type(e,n,v,y,m)}l(y)},Ut=Tt,or=function(e,n,l,v,m){var y=[],S=Array.isArray(n)?"array":F(n);P.required(e,n,v,y,m,S),l(y)},c=or,h=function(e,n,l,v,m){var y=[],S=e.required||!e.required&&v.hasOwnProperty(e.field);if(S){if(Me(n,"string")&&!e.required)return l();P.required(e,n,v,y,m,"string"),Me(n,"string")||(P.type(e,n,v,y,m),P.range(e,n,v,y,m),P.pattern(e,n,v,y,m),e.whitespace===!0&&P.whitespace(e,n,v,y,m))}l(y)},f=h,M=function(e,n,l,v,m){var y=e.type,S=[],se=e.required||!e.required&&v.hasOwnProperty(e.field);if(se){if(Me(n,y)&&!e.required)return l();P.required(e,n,v,S,m,y),Me(n,y)||P.type(e,n,v,S,m)}l(S)},O=M,H={string:f,method:xt,number:Ve,boolean:ye,regexp:Ut,integer:dt,float:_e,array:te,object:Ft,enum:qe,pattern:de,date:Q,url:O,hex:O,email:O,required:c,any:B},X=function(){function o(e){j(this,o),w(this,"rules",null),w(this,"_messages",C),this.define(e)}return J(o,[{key:"define",value:function(n){var l=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(F(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(v){var m=n[v];l.rules[v]=Array.isArray(m)?m:[m]})}},{key:"messages",value:function(n){return n&&(this._messages=V(q(),n)),this._messages}},{key:"validate",value:function(n){var l=this,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},y=n,S=v,se=m;if(typeof S=="function"&&(se=S,S={}),!this.rules||Object.keys(this.rules).length===0)return se&&se(null,y),Promise.resolve(y);function $e(A){var Oe=[],Z={};function we(rt){if(Array.isArray(rt)){var Be;Oe=(Be=Oe).concat.apply(Be,R(rt))}else Oe.push(rt)}for(var Ne=0;Ne<A.length;Ne++)we(A[Ne]);Oe.length?(Z=je(Oe),se(Oe,Z)):se(null,y)}if(S.messages){var fe=this.messages();fe===C&&(fe=q()),V(fe,S.messages),S.messages=fe}else S.messages=this.messages();var ve={},Re=S.keys||Object.keys(this.rules);Re.forEach(function(A){var Oe=l.rules[A],Z=y[A];Oe.forEach(function(we){var Ne=we;typeof Ne.transform=="function"&&(y===n&&(y=I({},y)),Z=y[A]=Ne.transform(Z),Z!=null&&(Ne.type=Ne.type||(Array.isArray(Z)?"array":F(Z)))),typeof Ne=="function"?Ne={validator:Ne}:Ne=I({},Ne),Ne.validator=l.getValidationMethod(Ne),Ne.validator&&(Ne.field=A,Ne.fullField=Ne.fullField||A,Ne.type=l.getType(Ne),ve[A]=ve[A]||[],ve[A].push({rule:Ne,value:Z,source:y,field:A}))})});var Ae={};return Mt(ve,S,function(A,Oe){var Z=A.rule,we=(Z.type==="object"||Z.type==="array")&&(F(Z.fields)==="object"||F(Z.defaultField)==="object");we=we&&(Z.required||!Z.required&&A.value),Z.field=A.field;function Ne(at,ft){return I(I({},ft),{},{fullField:"".concat(Z.fullField,".").concat(at),fullFields:Z.fullFields?[].concat(R(Z.fullFields),[at]):[at]})}function rt(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ft=Array.isArray(at)?at:[at];!S.suppressWarning&&ft.length&&o.warning("async-validator:",ft),ft.length&&Z.message!==void 0&&(ft=[].concat(Z.message));var mt=ft.map(T(Z,y));if(S.first&&mt.length)return Ae[Z.field]=1,Oe(mt);if(!we)Oe(mt);else{if(Z.required&&!A.value)return Z.message!==void 0?mt=[].concat(Z.message).map(T(Z,y)):S.error&&(mt=[S.error(Z,xe(S.messages.required,Z.field))]),Oe(mt);var ot={};Z.defaultField&&Object.keys(A.value).map(function(Ct){ot[Ct]=Z.defaultField}),ot=I(I({},ot),A.rule.fields);var gt={};Object.keys(ot).forEach(function(Ct){var ut=ot[Ct],yt=Array.isArray(ut)?ut:[ut];gt[Ct]=yt.map(Ne.bind(null,Ct))});var Ie=new o(gt);Ie.messages(S.messages),A.rule.options&&(A.rule.options.messages=S.messages,A.rule.options.error=S.error),Ie.validate(A.value,A.rule.options||S,function(Ct){var ut=[];mt&&mt.length&&ut.push.apply(ut,R(mt)),Ct&&Ct.length&&ut.push.apply(ut,R(Ct)),Oe(ut.length?ut:null)})}}var Be;if(Z.asyncValidator)Be=Z.asyncValidator(Z,A.value,rt,A.source,S);else if(Z.validator){try{Be=Z.validator(Z,A.value,rt,A.source,S)}catch(at){var Ge,nt;(Ge=(nt=console).error)===null||Ge===void 0||Ge.call(nt,at),S.suppressValidatorError||setTimeout(function(){throw at},0),rt(at.message)}Be===!0?rt():Be===!1?rt(typeof Z.message=="function"?Z.message(Z.fullField||Z.field):Z.message||"".concat(Z.fullField||Z.field," fails")):Be instanceof Array?rt(Be):Be instanceof Error&&rt(Be.message)}Be&&Be.then&&Be.then(function(){return rt()},function(at){return rt(at)})},function(A){$e(A)},y)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!H.hasOwnProperty(n.type))throw new Error(xe("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var l=Object.keys(n),v=l.indexOf("message");return v!==-1&&l.splice(v,1),l.length===1&&l[0]==="required"?H.required:H[this.getType(n)]||void 0}}]),o}();w(X,"register",function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");H[e]=n}),w(X,"warning",ze),w(X,"messages",C),w(X,"validators",H);var Ee=X},39899:function(Dt,Fe,d){d.r(Fe),d.d(Fe,{Color:function(){return C},ColorBlock:function(){return ge},default:function(){return ct}});var F=d(87462),L=d(4942),oe=d(97685),w=d(67294),W=d(1413),I=d(15671),Ze=d(43144),p=d(32531),_=d(29388),N=d(91),D=d(71002),R=d(24327),j=["b"],K=["v"],J=function(a){return Math.round(Number(a||0))},q=function(a){if(a instanceof R.FastColor)return a;if(a&&(0,D.Z)(a)==="object"&&"h"in a&&"b"in a){var t=a,r=t.b,u=(0,N.Z)(t,j);return(0,W.Z)((0,W.Z)({},u),{},{v:r})}return typeof a=="string"&&/hsb/.test(a)?a.replace(/hsb/,"hsv"):a},C=function(i){(0,p.Z)(t,i);var a=(0,_.Z)(t);function t(r){return(0,I.Z)(this,t),a.call(this,q(r))}return(0,Ze.Z)(t,[{key:"toHsbString",value:function(){var u=this.toHsb(),s=J(u.s*100),g=J(u.b*100),b=J(u.h),E=u.a,x="hsb(".concat(b,", ").concat(s,"%, ").concat(g,"%)"),z="hsba(".concat(b,", ").concat(s,"%, ").concat(g,"%, ").concat(E.toFixed(E===0?0:2),")");return E===1?x:z}},{key:"toHsb",value:function(){var u=this.toHsv(),s=u.v,g=(0,N.Z)(u,K);return(0,W.Z)((0,W.Z)({},g),{},{b:s,a:this.a})}}]),t}(R.FastColor),Ce="rc-color-picker",G=function(a){return a instanceof C?a:new C(a)},be=G("#1677ff"),Y=function(a){var t=a.offset,r=a.targetRef,u=a.containerRef,s=a.color,g=a.type,b=u.current.getBoundingClientRect(),E=b.width,x=b.height,z=r.current.getBoundingClientRect(),re=z.width,P=z.height,ae=re/2,B=P/2,ce=(t.x+ae)/E,te=1-(t.y+B)/x,me=s.toHsb(),ye=ce,Le=(t.x+ae)/E*360;if(g)switch(g){case"hue":return G((0,W.Z)((0,W.Z)({},me),{},{h:Le<=0?0:Le}));case"alpha":return G((0,W.Z)((0,W.Z)({},me),{},{a:ye<=0?0:ye}))}return G({h:me.h,s:ce<=0?0:ce,b:te>=1?1:te,a:me.a})},he=function(a,t){var r=a.toHsb();switch(t){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:a.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},Pe=d(93967),De=d.n(Pe),le=function(a){var t=a.color,r=a.prefixCls,u=a.className,s=a.style,g=a.onClick,b="".concat(r,"-color-block");return w.createElement("div",{className:De()(b,u),style:s,onClick:g},w.createElement("div",{className:"".concat(b,"-inner"),style:{background:t}}))},ge=le;function ne(i){var a="touches"in i?i.touches[0]:i,t=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:a.pageX-t,pageY:a.pageY-r}}function Te(i){var a=i.targetRef,t=i.containerRef,r=i.direction,u=i.onDragChange,s=i.onDragChangeComplete,g=i.calculate,b=i.color,E=i.disabledDrag,x=(0,w.useState)({x:0,y:0}),z=(0,oe.Z)(x,2),re=z[0],P=z[1],ae=(0,w.useRef)(null),B=(0,w.useRef)(null);(0,w.useEffect)(function(){P(g())},[b]),(0,w.useEffect)(function(){return function(){document.removeEventListener("mousemove",ae.current),document.removeEventListener("mouseup",B.current),document.removeEventListener("touchmove",ae.current),document.removeEventListener("touchend",B.current),ae.current=null,B.current=null}},[]);var ce=function(Q){var ie=ne(Q),Xe=ie.pageX,qe=ie.pageY,pe=t.current.getBoundingClientRect(),_e=pe.x,it=pe.y,dt=pe.width,et=pe.height,xt=a.current.getBoundingClientRect(),Nt=xt.width,Ve=xt.height,Pt=Nt/2,Ft=Ve/2,tt=Math.max(0,Math.min(Xe-_e,dt))-Pt,de=Math.max(0,Math.min(qe-it,et))-Ft,Tt={x:tt,y:r==="x"?re.y:de};if(Nt===0&&Ve===0||Nt!==Ve)return!1;u==null||u(Tt)},te=function(Q){Q.preventDefault(),ce(Q)},me=function(Q){Q.preventDefault(),document.removeEventListener("mousemove",ae.current),document.removeEventListener("mouseup",B.current),document.removeEventListener("touchmove",ae.current),document.removeEventListener("touchend",B.current),ae.current=null,B.current=null,s==null||s()},ye=function(Q){document.removeEventListener("mousemove",ae.current),document.removeEventListener("mouseup",B.current),!E&&(ce(Q),document.addEventListener("mousemove",te),document.addEventListener("mouseup",me),document.addEventListener("touchmove",te),document.addEventListener("touchend",me),ae.current=te,B.current=me)};return[re,ye]}var Se=Te,ze=d(36618),je=function(a){var t=a.size,r=t===void 0?"default":t,u=a.color,s=a.prefixCls;return w.createElement("div",{className:De()("".concat(s,"-handler"),(0,L.Z)({},"".concat(s,"-handler-sm"),r==="small")),style:{backgroundColor:u}})},xe=je,lt=function(a){var t=a.children,r=a.style,u=a.prefixCls;return w.createElement("div",{className:"".concat(u,"-palette"),style:(0,W.Z)({position:"relative"},r)},t)},Me=lt,bt=(0,w.forwardRef)(function(i,a){var t=i.children,r=i.x,u=i.y;return w.createElement("div",{ref:a,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(u,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},t)}),wt=bt,Et=function(a){var t=a.color,r=a.onChange,u=a.prefixCls,s=a.onChangeComplete,g=a.disabled,b=(0,w.useRef)(),E=(0,w.useRef)(),x=(0,w.useRef)(t),z=(0,ze.zX)(function(ce){var te=Y({offset:ce,targetRef:E,containerRef:b,color:t});x.current=te,r(te)}),re=Se({color:t,containerRef:b,targetRef:E,calculate:function(){return he(t)},onDragChange:z,onDragChangeComplete:function(){return s==null?void 0:s(x.current)},disabledDrag:g}),P=(0,oe.Z)(re,2),ae=P[0],B=P[1];return w.createElement("div",{ref:b,className:"".concat(u,"-select"),onMouseDown:B,onTouchStart:B},w.createElement(Me,{prefixCls:u},w.createElement(wt,{x:ae.x,y:ae.y,ref:E},w.createElement(xe,{color:t.toRgbString(),prefixCls:u})),w.createElement("div",{className:"".concat(u,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},St=Et,Ye=function(a,t){var r=(0,ze.C8)(a,{value:t}),u=(0,oe.Z)(r,2),s=u[0],g=u[1],b=(0,w.useMemo)(function(){return G(s)},[s]);return[b,g]},Mt=Ye,U=function(a){var t=a.colors,r=a.children,u=a.direction,s=u===void 0?"to right":u,g=a.type,b=a.prefixCls,E=(0,w.useMemo)(function(){return t.map(function(x,z){var re=G(x);return g==="alpha"&&z===t.length-1&&(re=new C(re.setA(1))),re.toRgbString()}).join(",")},[t,g]);return w.createElement("div",{className:"".concat(b,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(s,", ").concat(E,")")}},r)},k=U,T=function(a){var t=a.prefixCls,r=a.colors,u=a.disabled,s=a.onChange,g=a.onChangeComplete,b=a.color,E=a.type,x=(0,w.useRef)(),z=(0,w.useRef)(),re=(0,w.useRef)(b),P=function(ie){return E==="hue"?ie.getHue():ie.a*100},ae=(0,ze.zX)(function(Q){var ie=Y({offset:Q,targetRef:z,containerRef:x,color:b,type:E});re.current=ie,s(P(ie))}),B=Se({color:b,targetRef:z,containerRef:x,calculate:function(){return he(b,E)},onDragChange:ae,onDragChangeComplete:function(){g(P(re.current))},direction:"x",disabledDrag:u}),ce=(0,oe.Z)(B,2),te=ce[0],me=ce[1],ye=w.useMemo(function(){if(E==="hue"){var Q=b.toHsb();Q.s=1,Q.b=1,Q.a=1;var ie=new C(Q);return ie}return b},[b,E]),Le=w.useMemo(function(){return r.map(function(Q){return"".concat(Q.color," ").concat(Q.percent,"%")})},[r]);return w.createElement("div",{ref:x,className:De()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(E)),onMouseDown:me,onTouchStart:me},w.createElement(Me,{prefixCls:t},w.createElement(wt,{x:te.x,y:te.y,ref:z},w.createElement(xe,{size:"small",color:ye.toHexString(),prefixCls:t})),w.createElement(k,{colors:Le,type:E,prefixCls:t})))},V=T;function ee(i){return w.useMemo(function(){var a=i||{},t=a.slider;return[t||V]},[i])}var We=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],ke=(0,w.forwardRef)(function(i,a){var t=i.value,r=i.defaultValue,u=i.prefixCls,s=u===void 0?Ce:u,g=i.onChange,b=i.onChangeComplete,E=i.className,x=i.style,z=i.panelRender,re=i.disabledAlpha,P=re===void 0?!1:re,ae=i.disabled,B=ae===void 0?!1:ae,ce=i.components,te=ee(ce),me=(0,oe.Z)(te,1),ye=me[0],Le=Mt(r||be,t),Q=(0,oe.Z)(Le,2),ie=Q[0],Xe=Q[1],qe=(0,w.useMemo)(function(){return ie.setA(1).toRgbString()},[ie]),pe=function(de,Tt){t||Xe(de),g==null||g(de,Tt)},_e=function(de){return new C(ie.setHue(de))},it=function(de){return new C(ie.setA(de/100))},dt=function(de){pe(_e(de),{type:"hue",value:de})},et=function(de){pe(it(de),{type:"alpha",value:de})},xt=function(de){b&&b(_e(de))},Nt=function(de){b&&b(it(de))},Ve=De()("".concat(s,"-panel"),E,(0,L.Z)({},"".concat(s,"-panel-disabled"),B)),Pt={prefixCls:s,disabled:B,color:ie},Ft=w.createElement(w.Fragment,null,w.createElement(St,(0,F.Z)({onChange:pe},Pt,{onChangeComplete:b})),w.createElement("div",{className:"".concat(s,"-slider-container")},w.createElement("div",{className:De()("".concat(s,"-slider-group"),(0,L.Z)({},"".concat(s,"-slider-group-disabled-alpha"),P))},w.createElement(ye,(0,F.Z)({},Pt,{type:"hue",colors:We,min:0,max:359,value:ie.getHue(),onChange:dt,onChangeComplete:xt})),!P&&w.createElement(ye,(0,F.Z)({},Pt,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:qe}],min:0,max:100,value:ie.a*100,onChange:et,onChangeComplete:Nt}))),w.createElement(ge,{color:ie.toRgbString(),prefixCls:s})));return w.createElement("div",{className:Ve,style:x,ref:a},typeof z=="function"?z(Ft):Ft)}),vt=ke,ct=vt},11157:function(Dt,Fe,d){d.d(Fe,{kr:function(){return Ze},jM:function(){return D},qp:function(){return p}});var F=d(97685),L=d(66680),oe=d(8410),w=d(91881),W=d(67294),I=d(73935);function Ze(q){var C=W.createContext(void 0),Ce=function(be){var Y=be.value,he=be.children,Pe=W.useRef(Y);Pe.current=Y;var De=W.useState(function(){return{getValue:function(){return Pe.current},listeners:new Set}}),le=(0,F.Z)(De,1),ge=le[0];return(0,oe.Z)(function(){(0,I.unstable_batchedUpdates)(function(){ge.listeners.forEach(function(ne){ne(Y)})})},[Y]),W.createElement(C.Provider,{value:ge},he)};return{Context:C,Provider:Ce,defaultValue:q}}function p(q,C){var Ce=(0,L.Z)(typeof C=="function"?C:function(ne){if(C===void 0)return ne;if(!Array.isArray(C))return ne[C];var Te={};return C.forEach(function(Se){Te[Se]=ne[Se]}),Te}),G=W.useContext(q==null?void 0:q.Context),be=G||{},Y=be.listeners,he=be.getValue,Pe=W.useRef();Pe.current=Ce(G?he():q==null?void 0:q.defaultValue);var De=W.useState({}),le=(0,F.Z)(De,2),ge=le[1];return(0,oe.Z)(function(){if(!G)return;function ne(Te){var Se=Ce(Te);(0,w.Z)(Pe.current,Se,!0)||ge({})}return Y.add(ne),function(){Y.delete(ne)}},[G]),Pe.current}var _=d(87462),N=d(42550);function D(){var q=W.createContext(null);function C(){return W.useContext(q)}function Ce(be,Y){var he=(0,N.Yr)(be),Pe=function(le,ge){var ne=he?{ref:ge}:{},Te=W.useRef(0),Se=W.useRef(le),ze=C();return ze!==null?W.createElement(be,(0,_.Z)({},le,ne)):((!Y||Y(Se.current,le))&&(Te.current+=1),Se.current=le,W.createElement(q.Provider,{value:Te.current},W.createElement(be,(0,_.Z)({},le,ne))))};return he?W.forwardRef(Pe):Pe}function G(be,Y){var he=(0,N.Yr)(be),Pe=function(le,ge){var ne=he?{ref:ge}:{};return C(),W.createElement(be,(0,_.Z)({},le,ne))};return he?W.memo(W.forwardRef(Pe),Y):W.memo(Pe,Y)}return{makeImmutable:Ce,responseImmutable:G,useImmutableMark:C}}var R=D(),j=R.makeImmutable,K=R.responseImmutable,J=R.useImmutableMark},8150:function(Dt,Fe,d){d.d(Fe,{ZP:function(){return p},FH:function(){return _}});var F=d(15671),L=d(43144),oe=d(4942),w=d(55252),W=function(){function N(D){if((0,F.Z)(this,N),(0,oe.Z)(this,"origin",""),(0,oe.Z)(this,"negative",void 0),(0,oe.Z)(this,"integer",void 0),(0,oe.Z)(this,"decimal",void 0),(0,oe.Z)(this,"decimalLen",void 0),(0,oe.Z)(this,"empty",void 0),(0,oe.Z)(this,"nan",void 0),(0,w.xb)(D)){this.empty=!0;return}if(this.origin=String(D),D==="-"||Number.isNaN(D)){this.nan=!0;return}var R=D;if((0,w.CC)(R)&&(R=Number(R)),R=typeof R=="string"?R:(0,w.vP)(R),(0,w.mE)(R)){var j=(0,w._V)(R);this.negative=j.negative;var K=j.trimStr.split(".");this.integer=BigInt(K[0]);var J=K[1]||"0";this.decimal=BigInt(J),this.decimalLen=J.length}else this.nan=!0}return(0,L.Z)(N,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(R){var j="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(R,"0"));return BigInt(j)}},{key:"negate",value:function(){var R=new N(this.toString());return R.negative=!R.negative,R}},{key:"cal",value:function(R,j,K){var J=Math.max(this.getDecimalStr().length,R.getDecimalStr().length),q=this.alignDecimal(J),C=R.alignDecimal(J),Ce=j(q,C).toString(),G=K(J),be=(0,w._V)(Ce),Y=be.negativeStr,he=be.trimStr,Pe="".concat(Y).concat(he.padStart(G+1,"0"));return new N("".concat(Pe.slice(0,-G),".").concat(Pe.slice(-G)))}},{key:"add",value:function(R){if(this.isInvalidate())return new N(R);var j=new N(R);return j.isInvalidate()?this:this.cal(j,function(K,J){return K+J},function(K){return K})}},{key:"multi",value:function(R){var j=new N(R);return this.isInvalidate()||j.isInvalidate()?new N(NaN):this.cal(j,function(K,J){return K*J},function(K){return K*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(R){return this.toString()===(R==null?void 0:R.toString())}},{key:"lessEquals",value:function(R){return this.add(R.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return R?this.isInvalidate()?"":(0,w._V)("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),N}(),I=function(){function N(D){if((0,F.Z)(this,N),(0,oe.Z)(this,"origin",""),(0,oe.Z)(this,"number",void 0),(0,oe.Z)(this,"empty",void 0),(0,w.xb)(D)){this.empty=!0;return}this.origin=String(D),this.number=Number(D)}return(0,L.Z)(N,[{key:"negate",value:function(){return new N(-this.toNumber())}},{key:"add",value:function(R){if(this.isInvalidate())return new N(R);var j=Number(R);if(Number.isNaN(j))return this;var K=this.number+j;if(K>Number.MAX_SAFE_INTEGER)return new N(Number.MAX_SAFE_INTEGER);if(K<Number.MIN_SAFE_INTEGER)return new N(Number.MIN_SAFE_INTEGER);var J=Math.max((0,w.NX)(this.number),(0,w.NX)(j));return new N(K.toFixed(J))}},{key:"multi",value:function(R){var j=Number(R);if(this.isInvalidate()||Number.isNaN(j))return new N(NaN);var K=this.number*j;if(K>Number.MAX_SAFE_INTEGER)return new N(Number.MAX_SAFE_INTEGER);if(K<Number.MIN_SAFE_INTEGER)return new N(Number.MIN_SAFE_INTEGER);var J=Math.max((0,w.NX)(this.number),(0,w.NX)(j));return new N(K.toFixed(J))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(R){return this.toNumber()===(R==null?void 0:R.toNumber())}},{key:"lessEquals",value:function(R){return this.add(R.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return R?this.isInvalidate()?"":(0,w.vP)(this.number):this.origin}}]),N}(),Ze=d(10432);function p(N){return(0,Ze.L)()?new W(N):new I(N)}function _(N,D,R){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(N==="")return"";var K=(0,w._V)(N),J=K.negativeStr,q=K.integerStr,C=K.decimalStr,Ce="".concat(D).concat(C),G="".concat(J).concat(q);if(R>=0){var be=Number(C[R]);if(be>=5&&!j){var Y=p(N).add("".concat(J,"0.").concat("0".repeat(R)).concat(10-be));return _(Y.toString(),D,R,j)}return R===0?G:"".concat(G).concat(D).concat(C.padEnd(R,"0").slice(0,R))}return Ce===".0"?G:"".concat(G).concat(Ce)}},98847:function(Dt,Fe,d){var F=d(8150);Fe.ZP=F.ZP},55252:function(Dt,Fe,d){d.d(Fe,{CC:function(){return w},NX:function(){return W},_V:function(){return oe},mE:function(){return Ze},vP:function(){return I},xb:function(){return L}});var F=d(10432);function L(p){return!p&&p!==0&&!Number.isNaN(p)||!String(p).trim()}function oe(p){var _=p.trim(),N=_.startsWith("-");N&&(_=_.slice(1)),_=_.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),_.startsWith(".")&&(_="0".concat(_));var D=_||"0",R=D.split("."),j=R[0]||"0",K=R[1]||"0";j==="0"&&K==="0"&&(N=!1);var J=N?"-":"";return{negative:N,negativeStr:J,trimStr:D,integerStr:j,decimalStr:K,fullStr:"".concat(J).concat(D)}}function w(p){var _=String(p);return!Number.isNaN(Number(_))&&_.includes("e")}function W(p){var _=String(p);if(w(p)){var N=Number(_.slice(_.indexOf("e-")+2)),D=_.match(/\.(\d+)/);return D!=null&&D[1]&&(N+=D[1].length),N}return _.includes(".")&&Ze(_)?_.length-_.indexOf(".")-1:0}function I(p){var _=String(p);if(w(p)){if(p>Number.MAX_SAFE_INTEGER)return String((0,F.L)()?BigInt(p).toString():Number.MAX_SAFE_INTEGER);if(p<Number.MIN_SAFE_INTEGER)return String((0,F.L)()?BigInt(p).toString():Number.MIN_SAFE_INTEGER);_=p.toFixed(W(_))}return oe(_).fullStr}function Ze(p){return typeof p=="number"?!Number.isNaN(p):p?/^\s*-?\d+(\.\d+)?\s*$/.test(p)||/^\s*-?\d+\.\s*$/.test(p)||/^\s*-?\.\d+\s*$/.test(p):!1}},10432:function(Dt,Fe,d){d.d(Fe,{L:function(){return F}});function F(){return typeof BigInt=="function"}},63199:function(Dt,Fe,d){d.r(Fe),d.d(Fe,{default:function(){return Ce},useMutateObserver:function(){return J}});var F=d(97685),L=d(67294),oe=d(8410),w=d(42550),W=d(34203),I=d(66680),Ze=d(15671),p=d(43144),_=d(32531),N=d(29388),D=function(G){(0,_.Z)(Y,G);var be=(0,N.Z)(Y);function Y(){return(0,Ze.Z)(this,Y),be.apply(this,arguments)}return(0,p.Z)(Y,[{key:"render",value:function(){return this.props.children}}]),Y}(L.Component),R=D,j=d(98924),K={subtree:!0,childList:!0,attributeFilter:["style","class"]};function J(G,be){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:K;L.useEffect(function(){if(!(!(0,j.Z)()||!G)){var he,Pe=Array.isArray(G)?G:[G];return"MutationObserver"in window&&(he=new MutationObserver(be),Pe.forEach(function(De){he.observe(De,Y)})),function(){var De,le;(De=he)===null||De===void 0||De.takeRecords(),(le=he)===null||le===void 0||le.disconnect()}}},[Y,G])}var q=function(be){var Y=be.children,he=be.options,Pe=be.onMutate,De=Pe===void 0?function(){}:Pe,le=(0,I.Z)(De),ge=L.useRef(null),ne=L.useRef(null),Te=L.isValidElement(Y)&&(0,w.Yr)(Y),Se=(0,w.x1)(ne,Te?Y.ref:null),ze=L.useState(null),je=(0,F.Z)(ze,2),xe=je[0],lt=je[1];return J(xe,le,he),(0,oe.Z)(function(){lt((0,W.Z)(ne.current)||(0,W.Z)(ge.current))}),Y?L.createElement(R,{ref:ge},Te?L.cloneElement(Y,{ref:Se}):Y):null},C=q,Ce=C},2788:function(Dt,Fe,d){d.d(Fe,{Z:function(){return De}});var F=d(97685),L=d(67294),oe=d(73935),w=d(98924),W=d(80334),I=d(42550),Ze=L.createContext(null),p=Ze,_=d(74902),N=d(8410),D=[];function R(le,ge){var ne=L.useState(function(){if(!(0,w.Z)())return null;var Ye=document.createElement("div");return Ye}),Te=(0,F.Z)(ne,1),Se=Te[0],ze=L.useRef(!1),je=L.useContext(p),xe=L.useState(D),lt=(0,F.Z)(xe,2),Me=lt[0],bt=lt[1],wt=je||(ze.current?void 0:function(Ye){bt(function(Mt){var U=[Ye].concat((0,_.Z)(Mt));return U})});function Et(){Se.parentElement||document.body.appendChild(Se),ze.current=!0}function St(){var Ye;(Ye=Se.parentElement)===null||Ye===void 0||Ye.removeChild(Se),ze.current=!1}return(0,N.Z)(function(){return le?je?je(Et):Et():St(),St},[le]),(0,N.Z)(function(){Me.length&&(Me.forEach(function(Ye){return Ye()}),bt(D))},[Me]),[Se,wt]}var j=d(44958),K=d(74204);function J(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var q="rc-util-locker-".concat(Date.now()),C=0;function Ce(le){var ge=!!le,ne=L.useState(function(){return C+=1,"".concat(q,"_").concat(C)}),Te=(0,F.Z)(ne,1),Se=Te[0];(0,N.Z)(function(){if(ge){var ze=(0,K.o)(document.body).width,je=J();(0,j.hq)(`
|
|
3
|
-
html body {
|
|
4
|
-
overflow-y: hidden;
|
|
5
|
-
`.concat(je?"width: calc(100% - ".concat(ze,"px);"):"",`
|
|
6
|
-
}`),Se)}else(0,j.jL)(Se);return function(){(0,j.jL)(Se)}},[ge,Se])}var G=!1;function be(le){return typeof le=="boolean"&&(G=le),G}var Y=function(ge){return ge===!1?!1:!(0,w.Z)()||!ge?null:typeof ge=="string"?document.querySelector(ge):typeof ge=="function"?ge():ge},he=L.forwardRef(function(le,ge){var ne=le.open,Te=le.autoLock,Se=le.getContainer,ze=le.debug,je=le.autoDestroy,xe=je===void 0?!0:je,lt=le.children,Me=L.useState(ne),bt=(0,F.Z)(Me,2),wt=bt[0],Et=bt[1],St=wt||ne;L.useEffect(function(){(xe||ne)&&Et(ne)},[ne,xe]);var Ye=L.useState(function(){return Y(Se)}),Mt=(0,F.Z)(Ye,2),U=Mt[0],k=Mt[1];L.useEffect(function(){var r=Y(Se);k(r??null)});var T=R(St&&!U,ze),V=(0,F.Z)(T,2),ee=V[0],We=V[1],ke=U??ee;Ce(Te&&ne&&(0,w.Z)()&&(ke===ee||ke===document.body));var vt=null;if(lt&&(0,I.Yr)(lt)&&ge){var ct=lt;vt=ct.ref}var i=(0,I.x1)(vt,ge);if(!St||!(0,w.Z)()||U===void 0)return null;var a=ke===!1||be(),t=lt;return ge&&(t=L.cloneElement(lt,{ref:i})),L.createElement(p.Provider,{value:We},a?t:(0,oe.createPortal)(t,ke))}),Pe=he,De=Pe},92266:function(Dt,Fe,d){d.r(Fe),d.d(Fe,{DEFAULT_BACKGROUND_COLOR:function(){return Pe},DEFAULT_FRONT_COLOR:function(){return De},DEFAULT_IMG_SCALE:function(){return Se},DEFAULT_LEVEL:function(){return he},DEFAULT_MARGIN_SIZE:function(){return Te},DEFAULT_MINVERSION:function(){return ge},DEFAULT_NEED_MARGIN:function(){return le},DEFAULT_SIZE:function(){return Y},ERROR_LEVEL_MAP:function(){return be},QRCodeCanvas:function(){return ke},QRCodeSVG:function(){return ct},SPEC_MARGIN_SIZE:function(){return ne},excavateModules:function(){return je},generatePath:function(){return ze},getImageSettings:function(){return xe},getMarginSize:function(){return lt},isSupportPath2d:function(){return Me}});function F(i,a){(a==null||a>i.length)&&(a=i.length);for(var t=0,r=Array(a);t<a;t++)r[t]=i[t];return r}function L(i,a){if(i){if(typeof i=="string")return F(i,a);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?F(i,a):void 0}}function oe(i,a){var t=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=L(i))||a&&i&&typeof i.length=="number"){t&&(i=t);var r=0,u=function(){};return{s:u,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(x){throw x},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
7
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,g=!0,b=!1;return{s:function(){t=t.call(i)},n:function(){var x=t.next();return g=x.done,x},e:function(x){b=!0,s=x},f:function(){try{g||t.return==null||t.return()}finally{if(b)throw s}}}}function w(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function W(i){"@babel/helpers - typeof";return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},W(i)}function I(i,a){if(W(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,a||"default");if(W(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function Ze(i){var a=I(i,"string");return W(a)=="symbol"?a:a+""}function p(i,a){for(var t=0;t<a.length;t++){var r=a[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Ze(r.key),r)}}function _(i,a,t){return a&&p(i.prototype,a),t&&p(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}function N(i,a,t){return(a=Ze(a))in i?Object.defineProperty(i,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[a]=t,i}var D,R;function j(i,a,t){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(var r=a-1;r>=0;r--)t.push(i>>>r&1)}function K(i,a){return(i>>>a&1)!=0}function J(i){if(!i)throw new Error("Assertion error")}var q=function(){function i(a,t){w(this,i),N(this,"modeBits",void 0),N(this,"numBitsCharCount",void 0),this.modeBits=a,this.numBitsCharCount=t}return _(i,[{key:"numCharCountBits",value:function(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}}]),i}();D=q,N(q,"NUMERIC",new D(1,[10,12,14])),N(q,"ALPHANUMERIC",new D(2,[9,11,13])),N(q,"BYTE",new D(4,[8,16,16])),N(q,"KANJI",new D(8,[8,10,12])),N(q,"ECI",new D(7,[0,0,0]));var C=_(function i(a,t){w(this,i),N(this,"ordinal",void 0),N(this,"formatBits",void 0),this.ordinal=a,this.formatBits=t});R=C,N(C,"LOW",new R(0,1)),N(C,"MEDIUM",new R(1,0)),N(C,"QUARTILE",new R(2,3)),N(C,"HIGH",new R(3,2));var Ce=function(){function i(a,t,r){if(w(this,i),N(this,"mode",void 0),N(this,"numChars",void 0),N(this,"bitData",void 0),this.mode=a,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return _(i,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var r=[],u=oe(t),s;try{for(u.s();!(s=u.n()).done;){var g=s.value;j(g,8,r)}}catch(b){u.e(b)}finally{u.f()}return new i(q.BYTE,t.length,r)}},{key:"makeNumeric",value:function(t){if(!i.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var r=[],u=0;u<t.length;){var s=Math.min(t.length-u,3);j(parseInt(t.substring(u,u+s),10),s*3+1,r),u+=s}return new i(q.NUMERIC,t.length,r)}},{key:"makeAlphanumeric",value:function(t){if(!i.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],u;for(u=0;u+2<=t.length;u+=2){var s=i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(u))*45;s+=i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(u+1)),j(s,11,r)}return u<t.length&&j(i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(u)),6,r),new i(q.ALPHANUMERIC,t.length,r)}},{key:"makeSegments",value:function(t){return t==""?[]:i.isNumeric(t)?[i.makeNumeric(t)]:i.isAlphanumeric(t)?[i.makeAlphanumeric(t)]:[i.makeBytes(i.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)j(t,8,r);else if(t<16384)j(2,2,r),j(t,14,r);else if(t<1e6)j(6,3,r),j(t,21,r);else throw new RangeError("ECI assignment value out of range");return new i(q.ECI,0,r)}},{key:"isNumeric",value:function(t){return i.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return i.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(t,r){var u=0,s=oe(t),g;try{for(s.s();!(g=s.n()).done;){var b=g.value,E=b.mode.numCharCountBits(r);if(b.numChars>=1<<E)return 1/0;u+=4+E+b.bitData.length}}catch(x){s.e(x)}finally{s.f()}return u}},{key:"toUtf8ByteArray",value:function(t){for(var r=encodeURI(t),u=[],s=0;s<r.length;s++)r.charAt(s)!="%"?u.push(r.charCodeAt(s)):(u.push(parseInt(r.substring(s+1,s+3),16)),s+=2);return u}}]),i}();N(Ce,"NUMERIC_REGEX",/^[0-9]*$/),N(Ce,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/),N(Ce,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var G=function(){function i(a,t,r,u){w(this,i),N(this,"size",void 0),N(this,"mask",void 0),N(this,"modules",[]),N(this,"isFunction",[]),N(this,"version",void 0),N(this,"errorCorrectionLevel",void 0);var s=u;if(this.version=a,this.errorCorrectionLevel=t,a<i.MIN_VERSION||a>i.MAX_VERSION)throw new RangeError("Version value out of range");if(s<-1||s>7)throw new RangeError("Mask value out of range");this.size=a*4+17;for(var g=[],b=0;b<this.size;b++)g.push(!1);for(var E=0;E<this.size;E++)this.modules.push(g.slice()),this.isFunction.push(g.slice());this.drawFunctionPatterns();var x=this.addEccAndInterleave(r);if(this.drawCodewords(x),s==-1)for(var z=1e9,re=0;re<8;re++){this.applyMask(re),this.drawFormatBits(re);var P=this.getPenaltyScore();P<z&&(s=re,z=P),this.applyMask(re)}J(0<=s&&s<=7),this.mask=s,this.applyMask(s),this.drawFormatBits(s),this.isFunction=[]}return _(i,[{key:"getModule",value:function(t,r){return 0<=t&&t<this.size&&0<=r&&r<this.size&&this.modules[r][t]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var t=0;t<this.size;t++)this.setFunctionModule(6,t,t%2==0),this.setFunctionModule(t,6,t%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var r=this.getAlignmentPatternPositions(),u=r.length,s=0;s<u;s++)for(var g=0;g<u;g++)s==0&&g==0||s==0&&g==u-1||s==u-1&&g==0||this.drawAlignmentPattern(r[s],r[g]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(t){for(var r=this.errorCorrectionLevel.formatBits<<3|t,u=r,s=0;s<10;s++)u=u<<1^(u>>>9)*1335;var g=(r<<10|u)^21522;J(g>>>15==0);for(var b=0;b<=5;b++)this.setFunctionModule(8,b,K(g,b));this.setFunctionModule(8,7,K(g,6)),this.setFunctionModule(8,8,K(g,7)),this.setFunctionModule(7,8,K(g,8));for(var E=9;E<15;E++)this.setFunctionModule(14-E,8,K(g,E));for(var x=0;x<8;x++)this.setFunctionModule(this.size-1-x,8,K(g,x));for(var z=8;z<15;z++)this.setFunctionModule(8,this.size-15+z,K(g,z));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var t=this.version,r=0;r<12;r++)t=t<<1^(t>>>11)*7973;var u=this.version<<12|t;J(u>>>18==0);for(var s=0;s<18;s++){var g=K(u,s),b=this.size-11+s%3,E=Math.floor(s/3);this.setFunctionModule(b,E,g),this.setFunctionModule(E,b,g)}}}},{key:"drawFinderPattern",value:function(t,r){for(var u=-4;u<=4;u++)for(var s=-4;s<=4;s++){var g=Math.max(Math.abs(s),Math.abs(u)),b=t+s,E=r+u;0<=b&&b<this.size&&0<=E&&E<this.size&&this.setFunctionModule(b,E,g!=2&&g!=4)}}},{key:"drawAlignmentPattern",value:function(t,r){for(var u=-2;u<=2;u++)for(var s=-2;s<=2;s++)this.setFunctionModule(t+s,r+u,Math.max(Math.abs(s),Math.abs(u))!=1)}},{key:"setFunctionModule",value:function(t,r,u){this.modules[r][t]=u,this.isFunction[r][t]=!0}},{key:"addEccAndInterleave",value:function(t){var r=this.version,u=this.errorCorrectionLevel;if(t.length!=i.getNumDataCodewords(r,u))throw new RangeError("Invalid argument");for(var s=i.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][r],g=i.ECC_CODEWORDS_PER_BLOCK[u.ordinal][r],b=Math.floor(i.getNumRawDataModules(r)/8),E=s-b%s,x=Math.floor(b/s),z=[],re=i.reedSolomonComputeDivisor(g),P=0,ae=0;P<s;P++){var B=t.slice(ae,ae+x-g+(P<E?0:1));ae+=B.length;var ce=i.reedSolomonComputeRemainder(B,re);P<E&&B.push(0),z.push(B.concat(ce))}for(var te=[],me=function(Q){z.forEach(function(ie,Xe){(Q!=x-g||Xe>=E)&&te.push(ie[Q])})},ye=0;ye<z[0].length;ye++)me(ye);return J(te.length==b),te}},{key:"drawCodewords",value:function(t){if(t.length!=Math.floor(i.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(var s=0;s<this.size;s++)for(var g=0;g<2;g++){var b=u-g,E=(u+1&2)==0,x=E?this.size-1-s:s;!this.isFunction[x][b]&&r<t.length*8&&(this.modules[x][b]=K(t[r>>>3],7-(r&7)),r++)}}J(r==t.length*8)}},{key:"applyMask",value:function(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(var r=0;r<this.size;r++)for(var u=0;u<this.size;u++){var s=void 0;switch(t){case 0:s=(u+r)%2==0;break;case 1:s=r%2==0;break;case 2:s=u%3==0;break;case 3:s=(u+r)%3==0;break;case 4:s=(Math.floor(u/3)+Math.floor(r/2))%2==0;break;case 5:s=u*r%2+u*r%3==0;break;case 6:s=(u*r%2+u*r%3)%2==0;break;case 7:s=((u+r)%2+u*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][u]&&s&&(this.modules[r][u]=!this.modules[r][u])}}},{key:"getPenaltyScore",value:function(){for(var t=0,r=0;r<this.size;r++){for(var u=!1,s=0,g=[0,0,0,0,0,0,0],b=0;b<this.size;b++)this.modules[r][b]==u?(s++,s==5?t+=i.PENALTY_N1:s>5&&t++):(this.finderPenaltyAddHistory(s,g),u||(t+=this.finderPenaltyCountPatterns(g)*i.PENALTY_N3),u=this.modules[r][b],s=1);t+=this.finderPenaltyTerminateAndCount(u,s,g)*i.PENALTY_N3}for(var E=0;E<this.size;E++){for(var x=!1,z=0,re=[0,0,0,0,0,0,0],P=0;P<this.size;P++)this.modules[P][E]==x?(z++,z==5?t+=i.PENALTY_N1:z>5&&t++):(this.finderPenaltyAddHistory(z,re),x||(t+=this.finderPenaltyCountPatterns(re)*i.PENALTY_N3),x=this.modules[P][E],z=1);t+=this.finderPenaltyTerminateAndCount(x,z,re)*i.PENALTY_N3}for(var ae=0;ae<this.size-1;ae++)for(var B=0;B<this.size-1;B++){var ce=this.modules[ae][B];ce==this.modules[ae][B+1]&&ce==this.modules[ae+1][B]&&ce==this.modules[ae+1][B+1]&&(t+=i.PENALTY_N2)}var te=0,me=oe(this.modules),ye;try{for(me.s();!(ye=me.n()).done;){var Le=ye.value;te=Le.reduce(function(Xe,qe){return Xe+(qe?1:0)},te)}}catch(Xe){me.e(Xe)}finally{me.f()}var Q=this.size*this.size,ie=Math.ceil(Math.abs(te*20-Q*10)/Q)-1;return J(0<=ie&&ie<=9),t+=ie*i.PENALTY_N4,J(0<=t&&t<=2568888),t}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return[];for(var t=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(t*2-2))*2,u=[6],s=this.size-7;u.length<t;s-=r)u.splice(1,0,s);return u}},{key:"finderPenaltyCountPatterns",value:function(t){var r=t[1];J(r<=this.size*3);var u=r>0&&t[2]==r&&t[3]==r*3&&t[4]==r&&t[5]==r;return(u&&t[0]>=r*4&&t[6]>=r?1:0)+(u&&t[6]>=r*4&&t[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(t,r,u){var s=r;return t&&(this.finderPenaltyAddHistory(s,u),s=0),s+=this.size,this.finderPenaltyAddHistory(s,u),this.finderPenaltyCountPatterns(u)}},{key:"finderPenaltyAddHistory",value:function(t,r){var u=t;r[0]==0&&(u+=this.size),r.pop(),r.unshift(u)}}],[{key:"encodeText",value:function(t,r){var u=Ce.makeSegments(t);return i.encodeSegments(u,r)}},{key:"encodeBinary",value:function(t,r){var u=Ce.makeBytes(t);return i.encodeSegments([u],r)}},{key:"encodeSegments",value:function(t,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(i.MIN_VERSION<=u&&u<=s&&s<=i.MAX_VERSION)||g<-1||g>7)throw new RangeError("Invalid value");var E,x;for(E=u;;E++){var z=i.getNumDataCodewords(E,r)*8,re=Ce.getTotalBits(t,E);if(re<=z){x=re;break}if(E>=s)throw new RangeError("Data too long")}for(var P=r,ae=0,B=[C.MEDIUM,C.QUARTILE,C.HIGH];ae<B.length;ae++){var ce=B[ae];b&&x<=i.getNumDataCodewords(E,ce)*8&&(P=ce)}var te=[],me=oe(t),ye;try{for(me.s();!(ye=me.n()).done;){var Le=ye.value;j(Le.mode.modeBits,4,te),j(Le.numChars,Le.mode.numCharCountBits(E),te);var Q=oe(Le.getData()),ie;try{for(Q.s();!(ie=Q.n()).done;){var Xe=ie.value;te.push(Xe)}}catch(it){Q.e(it)}finally{Q.f()}}}catch(it){me.e(it)}finally{me.f()}J(te.length==x);var qe=i.getNumDataCodewords(E,P)*8;J(te.length<=qe),j(0,Math.min(4,qe-te.length),te),j(0,(8-te.length%8)%8,te),J(te.length%8==0);for(var pe=236;te.length<qe;pe^=253)j(pe,8,te);for(var _e=[];_e.length*8<te.length;)_e.push(0);return te.forEach(function(it,dt){return _e[dt>>>3]|=it<<7-(dt&7)}),new i(E,P,_e,g)}},{key:"getNumRawDataModules",value:function(t){if(t<i.MIN_VERSION||t>i.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*t+128)*t+64;if(t>=2){var u=Math.floor(t/7)+2;r-=(25*u-10)*u-55,t>=7&&(r-=36)}return J(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(t,r){return Math.floor(i.getNumRawDataModules(t)/8)-i.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t]*i.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t]}},{key:"reedSolomonComputeDivisor",value:function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var r=[],u=0;u<t-1;u++)r.push(0);r.push(1);for(var s=1,g=0;g<t;g++){for(var b=0;b<r.length;b++)r[b]=i.reedSolomonMultiply(r[b],s),b+1<r.length&&(r[b]^=r[b+1]);s=i.reedSolomonMultiply(s,2)}return r}},{key:"reedSolomonComputeRemainder",value:function(t,r){var u=r.map(function(){return 0}),s=oe(t),g;try{var b=function(){var x=g.value,z=x^u.shift();u.push(0),r.forEach(function(re,P){return u[P]^=i.reedSolomonMultiply(re,z)})};for(s.s();!(g=s.n()).done;)b()}catch(E){s.e(E)}finally{s.f()}return u}},{key:"reedSolomonMultiply",value:function(t,r){if(t>>>8||r>>>8)throw new RangeError("Byte out of range");for(var u=0,s=7;s>=0;s--)u=u<<1^(u>>>7)*285,u^=(r>>>s&1)*t;return J(u>>>8==0),u}}]),i}();N(G,"MIN_VERSION",1),N(G,"MAX_VERSION",40),N(G,"PENALTY_N1",3),N(G,"PENALTY_N2",3),N(G,"PENALTY_N3",40),N(G,"PENALTY_N4",10),N(G,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]),N(G,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var be={L:C.LOW,M:C.MEDIUM,Q:C.QUARTILE,H:C.HIGH},Y=128,he="L",Pe="#FFFFFF",De="#000000",le=!1,ge=1,ne=4,Te=0,Se=.1;function ze(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=[];return i.forEach(function(r,u){var s=null;r.forEach(function(g,b){if(!g&&s!==null){t.push("M".concat(s+a," ").concat(u+a,"h").concat(b-s,"v1H").concat(s+a,"z")),s=null;return}if(b===r.length-1){if(!g)return;s===null?t.push("M".concat(b+a,",").concat(u+a," h1v1H").concat(b+a,"z")):t.push("M".concat(s+a,",").concat(u+a," h").concat(b+1-s,"v1H").concat(s+a,"z"));return}g&&s===null&&(s=b)})}),t.join("")}function je(i,a){return i.slice().map(function(t,r){return r<a.y||r>=a.y+a.h?t:t.map(function(u,s){return s<a.x||s>=a.x+a.w?u:!1})})}function xe(i,a,t,r){if(r==null)return null;var u=i.length+t*2,s=Math.floor(a*Se),g=u/a,b=(r.width||s)*g,E=(r.height||s)*g,x=r.x==null?i.length/2-b/2:r.x*g,z=r.y==null?i.length/2-E/2:r.y*g,re=r.opacity==null?1:r.opacity,P=null;if(r.excavate){var ae=Math.floor(x),B=Math.floor(z),ce=Math.ceil(b+x-ae),te=Math.ceil(E+z-B);P={x:ae,y:B,w:ce,h:te}}var me=r.crossOrigin;return{x,y:z,h:E,w:b,excavation:P,opacity:re,crossOrigin:me}}function lt(i,a){return a!=null?Math.floor(a):i?ne:Te}var Me=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function bt(){return bt=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},bt.apply(null,arguments)}function wt(i,a){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);a&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),t.push.apply(t,r)}return t}function Et(i){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?arguments[a]:{};a%2?wt(Object(t),!0).forEach(function(r){N(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):wt(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function St(i){if(Array.isArray(i))return i}function Ye(i,a){var t=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(t!=null){var r,u,s,g,b=[],E=!0,x=!1;try{if(s=(t=t.call(i)).next,a===0){if(Object(t)!==t)return;E=!1}else for(;!(E=(r=s.call(t)).done)&&(b.push(r.value),b.length!==a);E=!0);}catch(z){x=!0,u=z}finally{try{if(!E&&t.return!=null&&(g=t.return(),Object(g)!==g))return}finally{if(x)throw u}}return b}}function Mt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(i,a){return St(i)||Ye(i,a)||L(i,a)||Mt()}function k(i,a){if(i==null)return{};var t={};for(var r in i)if({}.hasOwnProperty.call(i,r)){if(a.indexOf(r)!==-1)continue;t[r]=i[r]}return t}function T(i,a){if(i==null)return{};var t,r,u=k(i,a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);for(r=0;r<s.length;r++)t=s[r],a.indexOf(t)===-1&&{}.propertyIsEnumerable.call(i,t)&&(u[t]=i[t])}return u}var V=d(67294);function ee(i){var a=i.value,t=i.level,r=i.minVersion,u=i.includeMargin,s=i.marginSize,g=i.imageSettings,b=i.size,E=(0,V.useMemo)(function(){var B=Ce.makeSegments(a);return G.encodeSegments(B,be[t],r)},[a,t,r]),x=(0,V.useMemo)(function(){var B=E.getModules(),ce=lt(u,s),te=B.length+ce*2,me=xe(B,b,ce,g);return{cells:B,margin:ce,numCells:te,calculatedImageSettings:me}},[E,b,g,u,s]),z=x.cells,re=x.margin,P=x.numCells,ae=x.calculatedImageSettings;return{qrcode:E,margin:re,cells:z,numCells:P,calculatedImageSettings:ae}}var We=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],ke=V.forwardRef(function(a,t){var r=a.value,u=a.size,s=u===void 0?Y:u,g=a.level,b=g===void 0?he:g,E=a.bgColor,x=E===void 0?Pe:E,z=a.fgColor,re=z===void 0?De:z,P=a.includeMargin,ae=P===void 0?le:P,B=a.minVersion,ce=B===void 0?ge:B,te=a.marginSize,me=a.style,ye=a.imageSettings,Le=T(a,We),Q=ye==null?void 0:ye.src,ie=(0,V.useRef)(null),Xe=(0,V.useRef)(null),qe=(0,V.useCallback)(function(tt){ie.current=tt,typeof t=="function"?t(tt):t&&(t.current=tt)},[t]),pe=(0,V.useState)(!1),_e=U(pe,2),it=_e[1],dt=ee({value:r,level:b,minVersion:ce,includeMargin:ae,marginSize:te,imageSettings:ye,size:s}),et=dt.margin,xt=dt.cells,Nt=dt.numCells,Ve=dt.calculatedImageSettings;(0,V.useEffect)(function(){if(ie.current!=null){var tt=ie.current,de=tt.getContext("2d");if(!de)return;var Tt=xt,Ut=Xe.current,or=Ve!=null&&Ut!==null&&Ut.complete&&Ut.naturalHeight!==0&&Ut.naturalWidth!==0;or&&Ve.excavation!=null&&(Tt=je(xt,Ve.excavation));var c=window.devicePixelRatio||1;tt.height=tt.width=s*c;var h=s/Nt*c;de.scale(h,h),de.fillStyle=x,de.fillRect(0,0,Nt,Nt),de.fillStyle=re,Me?de.fill(new Path2D(ze(Tt,et))):xt.forEach(function(f,M){f.forEach(function(O,H){O&&de.fillRect(H+et,M+et,1,1)})}),Ve&&(de.globalAlpha=Ve.opacity),or&&de.drawImage(Ut,Ve.x+et,Ve.y+et,Ve.w,Ve.h)}}),(0,V.useEffect)(function(){it(!1)},[Q]);var Pt=Et({height:s,width:s},me),Ft=null;return Q!=null&&(Ft=V.createElement("img",{src:Q,key:Q,style:{display:"none"},onLoad:function(){it(!0)},ref:Xe,crossOrigin:Ve==null?void 0:Ve.crossOrigin})),V.createElement(V.Fragment,null,V.createElement("canvas",bt({style:Pt,height:s,width:s,ref:qe,role:"img"},Le)),Ft)});ke.displayName="QRCodeCanvas";var vt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],ct=V.forwardRef(function(a,t){var r=a.value,u=a.size,s=u===void 0?Y:u,g=a.level,b=g===void 0?he:g,E=a.bgColor,x=E===void 0?Pe:E,z=a.fgColor,re=z===void 0?De:z,P=a.includeMargin,ae=P===void 0?le:P,B=a.minVersion,ce=B===void 0?ge:B,te=a.title,me=a.marginSize,ye=a.imageSettings,Le=T(a,vt),Q=ee({value:r,level:b,minVersion:ce,includeMargin:ae,marginSize:me,imageSettings:ye,size:s}),ie=Q.margin,Xe=Q.cells,qe=Q.numCells,pe=Q.calculatedImageSettings,_e=Xe,it=null;ye!=null&&pe!=null&&(pe.excavation!=null&&(_e=je(Xe,pe.excavation)),it=V.createElement("image",{href:ye.src,height:pe.h,width:pe.w,x:pe.x+ie,y:pe.y+ie,preserveAspectRatio:"none",opacity:pe.opacity,crossOrigin:pe.crossOrigin}));var dt=ze(_e,ie);return V.createElement("svg",bt({height:s,width:s,viewBox:"0 0 ".concat(qe," ").concat(qe),ref:t,role:"img"},Le),!!te&&V.createElement("title",null,te),V.createElement("path",{fill:x,d:"M0,0 h".concat(qe,"v").concat(qe,"H0z"),shapeRendering:"crispEdges"}),V.createElement("path",{fill:re,d:dt,shapeRendering:"crispEdges"}),it)});ct.displayName="QRCodeSVG"},20991:function(Dt,Fe,d){d.r(Fe),d.d(Fe,{default:function(){return Mt}});var F=d(1413),L=d(87462),oe=d(71002),w=d(97685),W=d(91),I=d(67294),Ze=d(2788),p=d(29371),_=d(93967),N=d.n(_),D=d(8410),R=d(21770);function j(U){return U!==null&&(0,oe.Z)(U)==="object"}function K(U,k,T){if(U===!1||k===!1&&(!j(U)||!U.closeIcon))return null;var V=typeof k!="boolean"?k:void 0;if(j(U)){var ee;return(0,F.Z)((0,F.Z)({},U),{},{closeIcon:(ee=U.closeIcon)!==null&&ee!==void 0?ee:V})}return T||U||k?{closeIcon:V}:"empty"}function J(U,k,T,V){return I.useMemo(function(){var ee=K(U,k,!1),We=K(T,V,!0);return ee!=="empty"?ee:We},[T,V,U,k])}var q=d(66680);function C(U){var k=window.innerWidth||document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight,V=U.getBoundingClientRect(),ee=V.top,We=V.right,ke=V.bottom,vt=V.left;return ee>=0&&vt>=0&&We<=k&&ke<=T}function Ce(U,k,T){var V;return(V=T??k)!==null&&V!==void 0?V:U===null?"center":"bottom"}function G(U){return typeof U=="number"&&!Number.isNaN(U)}function be(U,k,T,V){var ee=(0,I.useState)(void 0),We=(0,w.Z)(ee,2),ke=We[0],vt=We[1];(0,D.Z)(function(){var g=typeof U=="function"?U():U;vt(g||null)});var ct=(0,I.useState)(null),i=(0,w.Z)(ct,2),a=i[0],t=i[1],r=(0,q.Z)(function(){if(ke){!C(ke)&&k&&ke.scrollIntoView(V);var g=ke.getBoundingClientRect(),b=g.left,E=g.top,x=g.width,z=g.height,re={left:b,top:E,width:x,height:z,radius:0};t(function(P){return JSON.stringify(P)!==JSON.stringify(re)?re:P})}else t(null)}),u=function(b){var E;return(E=Array.isArray(T==null?void 0:T.offset)?T==null?void 0:T.offset[b]:T==null?void 0:T.offset)!==null&&E!==void 0?E:6};(0,D.Z)(function(){return r(),window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}},[ke,k,r]);var s=(0,I.useMemo)(function(){if(!a)return a;var g=u(0),b=u(1),E=G(T==null?void 0:T.radius)?T==null?void 0:T.radius:2;return{left:a.left-g,top:a.top-b,width:a.width+g*2,height:a.height+b*2,radius:E}},[a,T]);return[s,ke]}var Y=d(7028),he={fill:"transparent",pointerEvents:"auto"},Pe=function(k){var T=k.prefixCls,V=k.rootClassName,ee=k.pos,We=k.showMask,ke=k.style,vt=ke===void 0?{}:ke,ct=k.fill,i=ct===void 0?"rgba(0,0,0,0.5)":ct,a=k.open,t=k.animated,r=k.zIndex,u=k.disabledInteraction,s=(0,Y.Z)(),g="".concat(T,"-mask-").concat(s),b=(0,oe.Z)(t)==="object"?t==null?void 0:t.placeholder:t,E=typeof navigator<"u"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),x=E?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return I.createElement(Ze.Z,{open:a,autoLock:!0},I.createElement("div",{className:N()("".concat(T,"-mask"),V),style:(0,F.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:r,pointerEvents:ee&&!u?"none":"auto"},vt)},We?I.createElement("svg",{style:{width:"100%",height:"100%"}},I.createElement("defs",null,I.createElement("mask",{id:g},I.createElement("rect",(0,L.Z)({x:"0",y:"0"},x,{fill:"white"})),ee&&I.createElement("rect",{x:ee.left,y:ee.top,rx:ee.radius,width:ee.width,height:ee.height,fill:"black",className:b?"".concat(T,"-placeholder-animated"):""}))),I.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:i,mask:"url(#".concat(g,")")}),ee&&I.createElement(I.Fragment,null,I.createElement("rect",(0,L.Z)({},he,{x:"0",y:"0",width:"100%",height:ee.top})),I.createElement("rect",(0,L.Z)({},he,{x:"0",y:"0",width:ee.left,height:"100%"})),I.createElement("rect",(0,L.Z)({},he,{x:"0",y:ee.top+ee.height,width:"100%",height:"calc(100vh - ".concat(ee.top+ee.height,"px)")})),I.createElement("rect",(0,L.Z)({},he,{x:ee.left+ee.width,y:"0",width:"calc(100vw - ".concat(ee.left+ee.width,"px)"),height:"100%"})))):null))},De=Pe,le={adjustX:1,adjustY:1},ge=[0,0],ne={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Te(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,k={};return Object.keys(ne).forEach(function(T){k[T]=(0,F.Z)((0,F.Z)({},ne[T]),{},{autoArrow:U,targetOffset:ge})}),k}var Se=Te(),ze=d(74902),je=d(64217);function xe(U){var k,T=U.prefixCls,V=U.current,ee=U.total,We=U.title,ke=U.description,vt=U.onClose,ct=U.onPrev,i=U.onNext,a=U.onFinish,t=U.className,r=U.closable,u=(0,je.Z)(r||{},!0),s=(k=r==null?void 0:r.closeIcon)!==null&&k!==void 0?k:I.createElement("span",{className:"".concat(T,"-close-x")},"\xD7"),g=!!r;return I.createElement("div",{className:N()("".concat(T,"-content"),t)},I.createElement("div",{className:"".concat(T,"-inner")},g&&I.createElement("button",(0,L.Z)({type:"button",onClick:vt,"aria-label":"Close"},u,{className:"".concat(T,"-close")}),s),I.createElement("div",{className:"".concat(T,"-header")},I.createElement("div",{className:"".concat(T,"-title")},We)),I.createElement("div",{className:"".concat(T,"-description")},ke),I.createElement("div",{className:"".concat(T,"-footer")},I.createElement("div",{className:"".concat(T,"-sliders")},ee>1?(0,ze.Z)(Array.from({length:ee}).keys()).map(function(b,E){return I.createElement("span",{key:b,className:E===V?"active":""})}):null),I.createElement("div",{className:"".concat(T,"-buttons")},V!==0?I.createElement("button",{className:"".concat(T,"-prev-btn"),onClick:ct},"Prev"):null,V===ee-1?I.createElement("button",{className:"".concat(T,"-finish-btn"),onClick:a},"Finish"):I.createElement("button",{className:"".concat(T,"-next-btn"),onClick:i},"Next")))))}var lt=function(k){var T=k.current,V=k.renderPanel;return I.createElement(I.Fragment,null,typeof V=="function"?V(k,T):I.createElement(xe,k))},Me=lt,bt=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],wt={left:"50%",top:"50%",width:1,height:1},Et={block:"center",inline:"center"},St=function(k){var T=k.prefixCls,V=T===void 0?"rc-tour":T,ee=k.steps,We=ee===void 0?[]:ee,ke=k.defaultCurrent,vt=k.current,ct=k.onChange,i=k.onClose,a=k.onFinish,t=k.open,r=k.mask,u=r===void 0?!0:r,s=k.arrow,g=s===void 0?!0:s,b=k.rootClassName,E=k.placement,x=k.renderPanel,z=k.gap,re=k.animated,P=k.scrollIntoViewOptions,ae=P===void 0?Et:P,B=k.zIndex,ce=B===void 0?1001:B,te=k.closeIcon,me=k.closable,ye=k.builtinPlacements,Le=k.disabledInteraction,Q=(0,W.Z)(k,bt),ie=I.useRef(),Xe=(0,R.Z)(0,{value:vt,defaultValue:ke}),qe=(0,w.Z)(Xe,2),pe=qe[0],_e=qe[1],it=(0,R.Z)(void 0,{value:t,postState:function(we){return pe<0||pe>=We.length?!1:we??!0}}),dt=(0,w.Z)(it,2),et=dt[0],xt=dt[1],Nt=I.useState(et),Ve=(0,w.Z)(Nt,2),Pt=Ve[0],Ft=Ve[1],tt=I.useRef(et);(0,D.Z)(function(){et&&(tt.current||_e(0),Ft(!0)),tt.current=et},[et]);var de=We[pe]||{},Tt=de.target,Ut=de.placement,or=de.style,c=de.arrow,h=de.className,f=de.mask,M=de.scrollIntoViewOptions,O=M===void 0?Et:M,H=de.closeIcon,X=de.closable,Ee=J(X,H,me,te),o=et&&(f??u),e=O??ae,n=be(Tt,t,z,e),l=(0,w.Z)(n,2),v=l[0],m=l[1],y=Ce(m,E,Ut),S=m?typeof c>"u"?g:c:!1,se=(0,oe.Z)(S)==="object"?S.pointAtCenter:!1;(0,D.Z)(function(){var Z;(Z=ie.current)===null||Z===void 0||Z.forceAlign()},[se,pe]);var $e=function(we){_e(we),ct==null||ct(we)},fe=(0,I.useMemo)(function(){return ye?typeof ye=="function"?ye({arrowPointAtCenter:se}):ye:Te(se)},[ye,se]);if(m===void 0||!Pt)return null;var ve=function(){xt(!1),i==null||i(pe)},Re=function(){return I.createElement(Me,(0,L.Z)({arrow:S,key:"content",prefixCls:V,total:We.length,renderPanel:x,onPrev:function(){$e(pe-1)},onNext:function(){$e(pe+1)},onClose:ve,current:pe,onFinish:function(){ve(),a==null||a()}},We[pe],{closable:Ee}))},Ae=typeof o=="boolean"?o:!!o,A=typeof o=="boolean"?void 0:o,Oe=function(we){return we||m||document.body};return I.createElement(I.Fragment,null,I.createElement(De,{zIndex:ce,prefixCls:V,pos:v,showMask:Ae,style:A==null?void 0:A.style,fill:A==null?void 0:A.color,open:et,animated:re,rootClassName:b,disabledInteraction:Le}),I.createElement(p.Z,(0,L.Z)({},Q,{builtinPlacements:fe,ref:ie,popupStyle:or,popupPlacement:y,popupVisible:et,popupClassName:N()(b,h),prefixCls:V,popup:Re,forceRender:!1,destroyPopupOnHide:!0,zIndex:ce,getTriggerDOMNode:Oe,arrow:!!S}),I.createElement(Ze.Z,{open:et,autoLock:!0},I.createElement("div",{className:N()(b,"".concat(V,"-target-placeholder")),style:(0,F.Z)((0,F.Z)({},v||wt),{},{position:"fixed",pointerEvents:"none"})}))))},Ye=St,Mt=Ye},29371:function(Dt,Fe,d){d.d(Fe,{Z:function(){return or}});var F=d(1413),L=d(97685),oe=d(91),w=d(2788),W=d(93967),I=d.n(W),Ze=d(48555),p=d(67294),_=d.t(p,2),N=d(73935);function D(c){return c instanceof HTMLElement||c instanceof SVGElement}function R(c){return c&&_typeof(c)==="object"&&D(c.nativeElement)?c.nativeElement:D(c)?c:null}function j(c){var h=R(c);if(h)return h;if(c instanceof React.Component){var f;return(f=ReactDOM.findDOMNode)===null||f===void 0?void 0:f.call(ReactDOM,c)}return null}function K(c){var h;return c==null||(h=c.getRootNode)===null||h===void 0?void 0:h.call(c)}function J(c){return K(c)instanceof ShadowRoot}function q(c){return J(c)?K(c):null}function C(c){var h=p.useRef();h.current=c;var f=p.useCallback(function(){for(var M,O=arguments.length,H=new Array(O),X=0;X<O;X++)H[X]=arguments[X];return(M=h.current)===null||M===void 0?void 0:M.call.apply(M,[h].concat(H))},[]);return f}function Ce(){var c=(0,F.Z)({},_);return c.useId}var G=0;function be(){}var Y=Ce(),he=Y?function(h){var f=Y();return h||f}:function(h){var f=p.useState("ssr-id"),M=(0,L.Z)(f,2),O=M[0],H=M[1];return p.useEffect(function(){var X=G;G+=1,H("rc_unique_".concat(X))},[]),h||O};function Pe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var De=Pe()?p.useLayoutEffect:p.useEffect,le=function(h,f){var M=p.useRef(!0);De(function(){return h(M.current)},f),De(function(){return M.current=!1,function(){M.current=!0}},[])},ge=function(h,f){le(function(M){if(!M)return h()},f)},ne=le,Te=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var c=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(c==null?void 0:c.substr(0,4))},Se=d(87462),ze=d(62874),je=d(71002),xe=d(52481);function lt(c,h,f){var M=p.useRef({});return(!("value"in M.current)||f(M.current.condition,h))&&(M.current.value=c(),M.current.condition=h),M.current.value}var Me=Symbol.for("react.element"),bt=Symbol.for("react.transitional.element"),wt=Symbol.for("react.fragment");function Et(c){return c&&(0,je.Z)(c)==="object"&&(c.$$typeof===Me||c.$$typeof===bt)&&c.type===wt}var St=Number(p.version.split(".")[0]),Ye=function(h,f){typeof h=="function"?h(f):(0,je.Z)(h)==="object"&&h&&"current"in h&&(h.current=f)},Mt=function(){for(var h=arguments.length,f=new Array(h),M=0;M<h;M++)f[M]=arguments[M];var O=f.filter(Boolean);return O.length<=1?O[0]:function(H){f.forEach(function(X){Ye(X,H)})}},U=function(){for(var h=arguments.length,f=new Array(h),M=0;M<h;M++)f[M]=arguments[M];return lt(function(){return Mt.apply(void 0,f)},f,function(O,H){return O.length!==H.length||O.every(function(X,Ee){return X!==H[Ee]})})},k=function(h){var f,M;if(!h)return!1;if(T(h)&&St>=19)return!0;var O=(0,xe.isMemo)(h)?h.type.type:h.type;return!(typeof O=="function"&&!((f=O.prototype)!==null&&f!==void 0&&f.render)&&O.$$typeof!==xe.ForwardRef||typeof h=="function"&&!((M=h.prototype)!==null&&M!==void 0&&M.render)&&h.$$typeof!==xe.ForwardRef)};function T(c){return(0,p.isValidElement)(c)&&!Et(c)}var V=function(h){return T(h)&&k(h)},ee=function(h){if(h&&T(h)){var f=h;return f.props.propertyIsEnumerable("ref")?f.props.ref:f.ref}return null};function We(c){var h=c.prefixCls,f=c.align,M=c.arrow,O=c.arrowPos,H=M||{},X=H.className,Ee=H.content,o=O.x,e=o===void 0?0:o,n=O.y,l=n===void 0?0:n,v=p.useRef();if(!f||!f.points)return null;var m={position:"absolute"};if(f.autoArrow!==!1){var y=f.points[0],S=f.points[1],se=y[0],$e=y[1],fe=S[0],ve=S[1];se===fe||!["t","b"].includes(se)?m.top=l:se==="t"?m.top=0:m.bottom=0,$e===ve||!["l","r"].includes($e)?m.left=e:$e==="l"?m.left=0:m.right=0}return p.createElement("div",{ref:v,className:I()("".concat(h,"-arrow"),X),style:m},Ee)}function ke(c){var h=c.prefixCls,f=c.open,M=c.zIndex,O=c.mask,H=c.motion;return O?p.createElement(ze.ZP,(0,Se.Z)({},H,{motionAppear:!0,visible:f,removeOnLeave:!0}),function(X){var Ee=X.className;return p.createElement("div",{style:{zIndex:M},className:I()("".concat(h,"-mask"),Ee)})}):null}var vt=p.memo(function(c){var h=c.children;return h},function(c,h){return h.cache}),ct=vt,i=p.forwardRef(function(c,h){var f=c.popup,M=c.className,O=c.prefixCls,H=c.style,X=c.target,Ee=c.onVisibleChanged,o=c.open,e=c.keepDom,n=c.fresh,l=c.onClick,v=c.mask,m=c.arrow,y=c.arrowPos,S=c.align,se=c.motion,$e=c.maskMotion,fe=c.forceRender,ve=c.getPopupContainer,Re=c.autoDestroy,Ae=c.portal,A=c.zIndex,Oe=c.onMouseEnter,Z=c.onMouseLeave,we=c.onPointerEnter,Ne=c.onPointerDownCapture,rt=c.ready,Be=c.offsetX,Ge=c.offsetY,nt=c.offsetR,at=c.offsetB,ft=c.onAlign,mt=c.onPrepare,ot=c.stretch,gt=c.targetWidth,Ie=c.targetHeight,Ct=typeof f=="function"?f():f,ut=o||e,yt=(ve==null?void 0:ve.length)>0,He=p.useState(!ve||!yt),Zt=(0,L.Z)(He,2),hr=Zt[0],Or=Zt[1];if(ne(function(){!hr&&yt&&X&&Or(!0)},[hr,yt,X]),!hr)return null;var Jt="auto",kt={left:"-1000vw",top:"-1000vh",right:Jt,bottom:Jt};if(rt||!o){var ur,gr=S.points,$t=S.dynamicInset||((ur=S._experimental)===null||ur===void 0?void 0:ur.dynamicInset),Yt=$t&&gr[0][1]==="r",Wt=$t&&gr[0][0]==="b";Yt?(kt.right=nt,kt.left=Jt):(kt.left=Be,kt.right=Jt),Wt?(kt.bottom=at,kt.top=Jt):(kt.top=Ge,kt.bottom=Jt)}var Ot={};return ot&&(ot.includes("height")&&Ie?Ot.height=Ie:ot.includes("minHeight")&&Ie&&(Ot.minHeight=Ie),ot.includes("width")&>?Ot.width=gt:ot.includes("minWidth")&>&&(Ot.minWidth=gt)),o||(Ot.pointerEvents="none"),p.createElement(Ae,{open:fe||ut,getContainer:ve&&function(){return ve(X)},autoDestroy:Re},p.createElement(ke,{prefixCls:O,open:o,zIndex:A,mask:v,motion:$e}),p.createElement(Ze.Z,{onResize:ft,disabled:!o},function(Fr){return p.createElement(ze.ZP,(0,Se.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:fe,leavedClassName:"".concat(O,"-hidden")},se,{onAppearPrepare:mt,onEnterPrepare:mt,visible:o,onVisibleChanged:function(zt){var Xt;se==null||(Xt=se.onVisibleChanged)===null||Xt===void 0||Xt.call(se,zt),Ee(zt)}}),function(sr,zt){var Xt=sr.className,yr=sr.style,Rt=I()(O,Xt,M);return p.createElement("div",{ref:Mt(Fr,h,zt),className:Rt,style:(0,F.Z)((0,F.Z)((0,F.Z)((0,F.Z)({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},kt),Ot),yr),{},{boxSizing:"border-box",zIndex:A},H),onMouseEnter:Oe,onMouseLeave:Z,onPointerEnter:we,onClick:l,onPointerDownCapture:Ne},m&&p.createElement(We,{prefixCls:O,arrow:m,arrowPos:y,align:S}),p.createElement(ct,{cache:!o&&!n},Ct))})}))}),a=i,t=p.forwardRef(function(c,h){var f=c.children,M=c.getTriggerDOMNode,O=k(f),H=p.useCallback(function(Ee){Ye(h,M?M(Ee):Ee)},[M]),X=U(H,ee(f));return O?p.cloneElement(f,{ref:X}):f}),r=t,u=p.createContext(null),s=u;function g(c){return c?Array.isArray(c)?c:[c]:[]}function b(c,h,f,M){return p.useMemo(function(){var O=g(f??h),H=g(M??h),X=new Set(O),Ee=new Set(H);return c&&(X.has("hover")&&(X.delete("hover"),X.add("click")),Ee.has("hover")&&(Ee.delete("hover"),Ee.add("click"))),[X,Ee]},[c,h,f,M])}var E=function(c){if(!c)return!1;if(c instanceof Element){if(c.offsetParent)return!0;if(c.getBBox){var h=c.getBBox(),f=h.width,M=h.height;if(f||M)return!0}if(c.getBoundingClientRect){var O=c.getBoundingClientRect(),H=O.width,X=O.height;if(H||X)return!0}}return!1};function x(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=arguments.length>2?arguments[2]:void 0;return f?c[0]===h[0]:c[0]===h[0]&&c[1]===h[1]}function z(c,h,f,M){for(var O=f.points,H=Object.keys(c),X=0;X<H.length;X+=1){var Ee,o=H[X];if(x((Ee=c[o])===null||Ee===void 0?void 0:Ee.points,O,M))return"".concat(h,"-placement-").concat(o)}return""}function re(c,h,f,M){return h||(f?{motionName:"".concat(c,"-").concat(f)}:M?{motionName:M}:null)}function P(c){return c.ownerDocument.defaultView}function ae(c){for(var h=[],f=c==null?void 0:c.parentElement,M=["hidden","scroll","clip","auto"];f;){var O=P(f).getComputedStyle(f),H=O.overflowX,X=O.overflowY,Ee=O.overflow;[H,X,Ee].some(function(o){return M.includes(o)})&&h.push(f),f=f.parentElement}return h}function B(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(c)?h:c}function ce(c){return B(parseFloat(c),0)}function te(c,h){var f=(0,F.Z)({},c);return(h||[]).forEach(function(M){if(!(M instanceof HTMLBodyElement||M instanceof HTMLHtmlElement)){var O=P(M).getComputedStyle(M),H=O.overflow,X=O.overflowClipMargin,Ee=O.borderTopWidth,o=O.borderBottomWidth,e=O.borderLeftWidth,n=O.borderRightWidth,l=M.getBoundingClientRect(),v=M.offsetHeight,m=M.clientHeight,y=M.offsetWidth,S=M.clientWidth,se=ce(Ee),$e=ce(o),fe=ce(e),ve=ce(n),Re=B(Math.round(l.width/y*1e3)/1e3),Ae=B(Math.round(l.height/v*1e3)/1e3),A=(y-S-fe-ve)*Re,Oe=(v-m-se-$e)*Ae,Z=se*Ae,we=$e*Ae,Ne=fe*Re,rt=ve*Re,Be=0,Ge=0;if(H==="clip"){var nt=ce(X);Be=nt*Re,Ge=nt*Ae}var at=l.x+Ne-Be,ft=l.y+Z-Ge,mt=at+l.width+2*Be-Ne-rt-A,ot=ft+l.height+2*Ge-Z-we-Oe;f.left=Math.max(f.left,at),f.top=Math.max(f.top,ft),f.right=Math.min(f.right,mt),f.bottom=Math.min(f.bottom,ot)}}),f}function me(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f="".concat(h),M=f.match(/^(.*)\%$/);return M?c*(parseFloat(M[1])/100):parseFloat(f)}function ye(c,h){var f=h||[],M=(0,L.Z)(f,2),O=M[0],H=M[1];return[me(c.width,O),me(c.height,H)]}function Le(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[c[0],c[1]]}function Q(c,h){var f=h[0],M=h[1],O,H;return f==="t"?H=c.y:f==="b"?H=c.y+c.height:H=c.y+c.height/2,M==="l"?O=c.x:M==="r"?O=c.x+c.width:O=c.x+c.width/2,{x:O,y:H}}function ie(c,h){var f={t:"b",b:"t",l:"r",r:"l"};return c.map(function(M,O){return O===h?f[M]||"c":M}).join("")}function Xe(c,h,f,M,O,H,X){var Ee=p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:O[M]||{}}),o=(0,L.Z)(Ee,2),e=o[0],n=o[1],l=p.useRef(0),v=p.useMemo(function(){return h?ae(h):[]},[h]),m=p.useRef({}),y=function(){m.current={}};c||y();var S=C(function(){if(h&&f&&c){let Ht=function(xr,dr){var mr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Br,Vr=He.x+xr,on=He.y+dr,In=Vr+Yt,Dn=on+$t,xn=Math.max(Vr,mr.left),$=Math.max(on,mr.top),ue=Math.min(In,mr.right),Je=Math.min(Dn,mr.bottom);return Math.max(0,(ue-xn)*(Je-$))},an=function(){Er=He.y+Ke,wr=Er+$t,ar=He.x+Ue,Rr=ar+Yt};var fe,ve,Re,Ae,A=h,Oe=A.ownerDocument,Z=P(A),we=Z.getComputedStyle(A),Ne=we.width,rt=we.height,Be=we.position,Ge=A.style.left,nt=A.style.top,at=A.style.right,ft=A.style.bottom,mt=A.style.overflow,ot=(0,F.Z)((0,F.Z)({},O[M]),H),gt=Oe.createElement("div");(fe=A.parentElement)===null||fe===void 0||fe.appendChild(gt),gt.style.left="".concat(A.offsetLeft,"px"),gt.style.top="".concat(A.offsetTop,"px"),gt.style.position=Be,gt.style.height="".concat(A.offsetHeight,"px"),gt.style.width="".concat(A.offsetWidth,"px"),A.style.left="0",A.style.top="0",A.style.right="auto",A.style.bottom="auto",A.style.overflow="hidden";var Ie;if(Array.isArray(f))Ie={x:f[0],y:f[1],width:0,height:0};else{var Ct,ut,yt=f.getBoundingClientRect();yt.x=(Ct=yt.x)!==null&&Ct!==void 0?Ct:yt.left,yt.y=(ut=yt.y)!==null&&ut!==void 0?ut:yt.top,Ie={x:yt.x,y:yt.y,width:yt.width,height:yt.height}}var He=A.getBoundingClientRect();He.x=(ve=He.x)!==null&&ve!==void 0?ve:He.left,He.y=(Re=He.y)!==null&&Re!==void 0?Re:He.top;var Zt=Oe.documentElement,hr=Zt.clientWidth,Or=Zt.clientHeight,Jt=Zt.scrollWidth,kt=Zt.scrollHeight,ur=Zt.scrollTop,gr=Zt.scrollLeft,$t=He.height,Yt=He.width,Wt=Ie.height,Ot=Ie.width,Fr={left:0,top:0,right:hr,bottom:Or},sr={left:-gr,top:-ur,right:Jt-gr,bottom:kt-ur},zt=ot.htmlRegion,Xt="visible",yr="visibleFirst";zt!=="scroll"&&zt!==yr&&(zt=Xt);var Rt=zt===yr,ln=te(sr,v),Qe=te(Fr,v),Br=zt===Xt?Qe:ln,br=Rt?Qe:Br;A.style.left="auto",A.style.top="auto",A.style.right="0",A.style.bottom="0";var At=A.getBoundingClientRect();A.style.left=Ge,A.style.top=nt,A.style.right=at,A.style.bottom=ft,A.style.overflow=mt,(Ae=A.parentElement)===null||Ae===void 0||Ae.removeChild(gt);var lr=B(Math.round(Yt/parseFloat(Ne)*1e3)/1e3),nr=B(Math.round($t/parseFloat(rt)*1e3)/1e3);if(lr===0||nr===0||D(f)&&!E(f))return;var cn=ot.offset,fn=ot.targetOffset,Hr=ye(He,cn),Gt=(0,L.Z)(Hr,2),Qt=Gt[0],jt=Gt[1],vn=ye(Ie,fn),Cr=(0,L.Z)(vn,2),Vt=Cr[0],cr=Cr[1];Ie.x-=Vt,Ie.y-=cr;var dn=ot.points||[],Ur=(0,L.Z)(dn,2),mn=Ur[0],hn=Ur[1],_t=Le(hn),Lt=Le(mn),Zr=Q(Ie,_t),It=Q(He,Lt),fr=(0,F.Z)({},ot),Ue=Zr.x-It.x+Qt,Ke=Zr.y-It.y+jt,Kt=Ht(Ue,Ke),pr=Ht(Ue,Ke,Qe),kr=Q(Ie,["t","l"]),Bt=Q(He,["t","l"]),Wr=Q(Ie,["b","r"]),Lr=Q(He,["b","r"]),vr=ot.overflow||{},Gr=vr.adjustX,gn=vr.adjustY,Tr=vr.shiftX,Pr=vr.shiftY,$r=function(dr){return typeof dr=="boolean"?dr:dr>=0},Er,wr,ar,Rr;an();var Sr=$r(gn),Qr=Lt[0]===_t[0];if(Sr&&Lt[0]==="t"&&(wr>br.bottom||m.current.bt)){var pt=Ke;Qr?pt-=$t-Wt:pt=kr.y-Lr.y-jt;var Kr=Ht(Ue,pt),yn=Ht(Ue,pt,Qe);Kr>Kt||Kr===Kt&&(!Rt||yn>=pr)?(m.current.bt=!0,Ke=pt,jt=-jt,fr.points=[ie(Lt,0),ie(_t,0)]):m.current.bt=!1}if(Sr&&Lt[0]==="b"&&(Er<br.top||m.current.tb)){var Mr=Ke;Qr?Mr+=$t-Wt:Mr=Wr.y-Bt.y-jt;var qr=Ht(Ue,Mr),bn=Ht(Ue,Mr,Qe);qr>Kt||qr===Kt&&(!Rt||bn>=pr)?(m.current.tb=!0,Ke=Mr,jt=-jt,fr.points=[ie(Lt,0),ie(_t,0)]):m.current.tb=!1}var Jr=$r(Gr),Yr=Lt[1]===_t[1];if(Jr&&Lt[1]==="l"&&(Rr>br.right||m.current.rl)){var Nr=Ue;Yr?Nr-=Yt-Ot:Nr=kr.x-Lr.x-Qt;var Xr=Ht(Nr,Ke),Ar=Ht(Nr,Ke,Qe);Xr>Kt||Xr===Kt&&(!Rt||Ar>=pr)?(m.current.rl=!0,Ue=Nr,Qt=-Qt,fr.points=[ie(Lt,1),ie(_t,1)]):m.current.rl=!1}if(Jr&&Lt[1]==="r"&&(ar<br.left||m.current.lr)){var ir=Ue;Yr?ir+=Yt-Ot:ir=Wr.x-Bt.x-Qt;var _r=Ht(ir,Ke),en=Ht(ir,Ke,Qe);_r>Kt||_r===Kt&&(!Rt||en>=pr)?(m.current.lr=!0,Ue=ir,Qt=-Qt,fr.points=[ie(Lt,1),ie(_t,1)]):m.current.lr=!1}an();var er=Tr===!0?0:Tr;typeof er=="number"&&(ar<Qe.left&&(Ue-=ar-Qe.left-Qt,Ie.x+Ot<Qe.left+er&&(Ue+=Ie.x-Qe.left+Ot-er)),Rr>Qe.right&&(Ue-=Rr-Qe.right-Qt,Ie.x>Qe.right-er&&(Ue+=Ie.x-Qe.right+er)));var qt=Pr===!0?0:Pr;typeof qt=="number"&&(Er<Qe.top&&(Ke-=Er-Qe.top-jt,Ie.y+Wt<Qe.top+qt&&(Ke+=Ie.y-Qe.top+Wt-qt)),wr>Qe.bottom&&(Ke-=wr-Qe.bottom-jt,Ie.y>Qe.bottom-qt&&(Ke+=Ie.y-Qe.bottom+qt)));var Ir=He.x+Ue,Dr=Ir+Yt,tr=He.y+Ke,Cn=tr+$t,tn=Ie.x,pn=tn+Ot,zr=Ie.y,En=zr+Wt,wn=Math.max(Ir,tn),Sn=Math.min(Dr,pn),rn=(wn+Sn)/2,Mn=rn-Ir,Nn=Math.max(tr,zr),nn=Math.min(Cn,En),Pn=(Nn+nn)/2,Rn=Pn-tr;X==null||X(h,fr);var jr=At.right-He.x-(Ue+He.width),rr=At.bottom-He.y-(Ke+He.height);lr===1&&(Ue=Math.round(Ue),jr=Math.round(jr)),nr===1&&(Ke=Math.round(Ke),rr=Math.round(rr));var An={ready:!0,offsetX:Ue/lr,offsetY:Ke/nr,offsetR:jr/lr,offsetB:rr/nr,arrowX:Mn/lr,arrowY:Rn/nr,scaleX:lr,scaleY:nr,align:fr};n(An)}}),se=function(){l.current+=1;var ve=l.current;Promise.resolve().then(function(){l.current===ve&&S()})},$e=function(){n(function(ve){return(0,F.Z)((0,F.Z)({},ve),{},{ready:!1})})};return ne($e,[M]),ne(function(){c||$e()},[c]),[e.ready,e.offsetX,e.offsetY,e.offsetR,e.offsetB,e.arrowX,e.arrowY,e.scaleX,e.scaleY,e.align,se]}var qe=d(74902);function pe(c,h,f,M,O){ne(function(){if(c&&h&&f){let l=function(){M(),O()};var H=h,X=f,Ee=ae(H),o=ae(X),e=P(X),n=new Set([e].concat((0,qe.Z)(Ee),(0,qe.Z)(o)));return n.forEach(function(v){v.addEventListener("scroll",l,{passive:!0})}),e.addEventListener("resize",l,{passive:!0}),M(),function(){n.forEach(function(v){v.removeEventListener("scroll",l),e.removeEventListener("resize",l)})}}},[c,h,f])}var _e={},it=[],dt=function(h){it.push(h)};function et(c,h){if(!1)var f}function xt(c,h){if(!1)var f}function Nt(){_e={}}function Ve(c,h,f){!h&&!_e[f]&&(c(!1,f),_e[f]=!0)}function Pt(c,h){Ve(et,c,h)}function Ft(c,h){Ve(xt,c,h)}Pt.preMessage=dt,Pt.resetWarned=Nt,Pt.noteOnce=Ft;var tt=null;function de(c,h,f,M,O,H,X,Ee){var o=p.useRef(c);o.current=c;var e=p.useRef(!1);p.useEffect(function(){if(h&&M&&(!O||H)){var l=function(){e.current=!1},v=function(Re){var Ae;o.current&&!X(((Ae=Re.composedPath)===null||Ae===void 0||(Ae=Ae.call(Re))===null||Ae===void 0?void 0:Ae[0])||Re.target)&&!e.current&&Ee(!1)},m=P(M);m.addEventListener("pointerdown",l,!0),m.addEventListener("mousedown",v,!0),m.addEventListener("contextmenu",v,!0);var y=q(f);if(y&&(y.addEventListener("mousedown",v,!0),y.addEventListener("contextmenu",v,!0)),!1)var S,se,$e,fe;return function(){m.removeEventListener("pointerdown",l,!0),m.removeEventListener("mousedown",v,!0),m.removeEventListener("contextmenu",v,!0),y&&(y.removeEventListener("mousedown",v,!0),y.removeEventListener("contextmenu",v,!0))}}},[h,f,M,O,H]);function n(){e.current=!0}return n}var Tt=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Ut(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w.Z,h=p.forwardRef(function(f,M){var O=f.prefixCls,H=O===void 0?"rc-trigger-popup":O,X=f.children,Ee=f.action,o=Ee===void 0?"hover":Ee,e=f.showAction,n=f.hideAction,l=f.popupVisible,v=f.defaultPopupVisible,m=f.onPopupVisibleChange,y=f.afterPopupVisibleChange,S=f.mouseEnterDelay,se=f.mouseLeaveDelay,$e=se===void 0?.1:se,fe=f.focusDelay,ve=f.blurDelay,Re=f.mask,Ae=f.maskClosable,A=Ae===void 0?!0:Ae,Oe=f.getPopupContainer,Z=f.forceRender,we=f.autoDestroy,Ne=f.destroyPopupOnHide,rt=f.popup,Be=f.popupClassName,Ge=f.popupStyle,nt=f.popupPlacement,at=f.builtinPlacements,ft=at===void 0?{}:at,mt=f.popupAlign,ot=f.zIndex,gt=f.stretch,Ie=f.getPopupClassNameFromAlign,Ct=f.fresh,ut=f.alignPoint,yt=f.onPopupClick,He=f.onPopupAlign,Zt=f.arrow,hr=f.popupMotion,Or=f.maskMotion,Jt=f.popupTransitionName,kt=f.popupAnimation,ur=f.maskTransitionName,gr=f.maskAnimation,$t=f.className,Yt=f.getTriggerDOMNode,Wt=(0,oe.Z)(f,Tt),Ot=we||Ne||!1,Fr=p.useState(!1),sr=(0,L.Z)(Fr,2),zt=sr[0],Xt=sr[1];ne(function(){Xt(Te())},[]);var yr=p.useRef({}),Rt=p.useContext(s),ln=p.useMemo(function(){return{registerSubPopup:function(ue,Je){yr.current[ue]=Je,Rt==null||Rt.registerSubPopup(ue,Je)}}},[Rt]),Qe=he(),Br=p.useState(null),br=(0,L.Z)(Br,2),At=br[0],lr=br[1],nr=p.useRef(null),cn=C(function($){nr.current=$,D($)&&At!==$&&lr($),Rt==null||Rt.registerSubPopup(Qe,$)}),fn=p.useState(null),Hr=(0,L.Z)(fn,2),Gt=Hr[0],Qt=Hr[1],jt=p.useRef(null),vn=C(function($){D($)&&Gt!==$&&(Qt($),jt.current=$)}),Cr=p.Children.only(X),Vt=(Cr==null?void 0:Cr.props)||{},cr={},dn=C(function($){var ue,Je,ht=Gt;return(ht==null?void 0:ht.contains($))||((ue=q(ht))===null||ue===void 0?void 0:ue.host)===$||$===ht||(At==null?void 0:At.contains($))||((Je=q(At))===null||Je===void 0?void 0:Je.host)===$||$===At||Object.values(yr.current).some(function(st){return(st==null?void 0:st.contains($))||$===st})}),Ur=re(H,hr,kt,Jt),mn=re(H,Or,gr,ur),hn=p.useState(v||!1),_t=(0,L.Z)(hn,2),Lt=_t[0],Zr=_t[1],It=l??Lt,fr=C(function($){l===void 0&&Zr($)});ne(function(){Zr(l||!1)},[l]);var Ue=p.useRef(It);Ue.current=It;var Ke=p.useRef([]);Ke.current=[];var Kt=C(function($){var ue;fr($),((ue=Ke.current[Ke.current.length-1])!==null&&ue!==void 0?ue:It)!==$&&(Ke.current.push($),m==null||m($))}),pr=p.useRef(),kr=function(){clearTimeout(pr.current)},Bt=function(ue){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;kr(),Je===0?Kt(ue):pr.current=setTimeout(function(){Kt(ue)},Je*1e3)};p.useEffect(function(){return kr},[]);var Wr=p.useState(!1),Lr=(0,L.Z)(Wr,2),vr=Lr[0],Gr=Lr[1];ne(function($){(!$||It)&&Gr(!0)},[It]);var gn=p.useState(null),Tr=(0,L.Z)(gn,2),Pr=Tr[0],$r=Tr[1],Er=p.useState(null),wr=(0,L.Z)(Er,2),ar=wr[0],Rr=wr[1],Sr=function(ue){Rr([ue.clientX,ue.clientY])},Qr=Xe(It,At,ut&&ar!==null?ar:Gt,nt,ft,mt,He),pt=(0,L.Z)(Qr,11),Kr=pt[0],yn=pt[1],Mr=pt[2],qr=pt[3],bn=pt[4],Jr=pt[5],Yr=pt[6],Nr=pt[7],Xr=pt[8],Ar=pt[9],ir=pt[10],_r=b(zt,o,e,n),en=(0,L.Z)(_r,2),er=en[0],qt=en[1],Ir=er.has("click"),Dr=qt.has("click")||qt.has("contextMenu"),tr=C(function(){vr||ir()}),Cn=function(){Ue.current&&ut&&Dr&&Bt(!1)};pe(It,Gt,At,tr,Cn),ne(function(){tr()},[ar,nt]),ne(function(){It&&!(ft!=null&&ft[nt])&&tr()},[JSON.stringify(mt)]);var tn=p.useMemo(function(){var $=z(ft,H,Ar,ut);return I()($,Ie==null?void 0:Ie(Ar))},[Ar,Ie,ft,H,ut]);p.useImperativeHandle(M,function(){return{nativeElement:jt.current,popupElement:nr.current,forceAlign:tr}});var pn=p.useState(0),zr=(0,L.Z)(pn,2),En=zr[0],wn=zr[1],Sn=p.useState(0),rn=(0,L.Z)(Sn,2),Mn=rn[0],Nn=rn[1],nn=function(){if(gt&&Gt){var ue=Gt.getBoundingClientRect();wn(ue.width),Nn(ue.height)}},Pn=function(){nn(),tr()},Rn=function(ue){Gr(!1),ir(),y==null||y(ue)},jr=function(){return new Promise(function(ue){nn(),$r(function(){return ue})})};ne(function(){Pr&&(ir(),Pr(),$r(null))},[Pr]);function rr($,ue,Je,ht){cr[$]=function(st){var un;ht==null||ht(st),Bt(ue,Je);for(var On=arguments.length,Fn=new Array(On>1?On-1:0),sn=1;sn<On;sn++)Fn[sn-1]=arguments[sn];(un=Vt[$])===null||un===void 0||un.call.apply(un,[Vt,st].concat(Fn))}}(Ir||Dr)&&(cr.onClick=function($){var ue;Ue.current&&Dr?Bt(!1):!Ue.current&&Ir&&(Sr($),Bt(!0));for(var Je=arguments.length,ht=new Array(Je>1?Je-1:0),st=1;st<Je;st++)ht[st-1]=arguments[st];(ue=Vt.onClick)===null||ue===void 0||ue.call.apply(ue,[Vt,$].concat(ht))});var An=de(It,Dr,Gt,At,Re,A,dn,Bt),Ht=er.has("hover"),an=qt.has("hover"),xr,dr;Ht&&(rr("onMouseEnter",!0,S,function($){Sr($)}),rr("onPointerEnter",!0,S,function($){Sr($)}),xr=function(ue){(It||vr)&&At!==null&&At!==void 0&&At.contains(ue.target)&&Bt(!0,S)},ut&&(cr.onMouseMove=function($){var ue;(ue=Vt.onMouseMove)===null||ue===void 0||ue.call(Vt,$)})),an&&(rr("onMouseLeave",!1,$e),rr("onPointerLeave",!1,$e),dr=function(){Bt(!1,$e)}),er.has("focus")&&rr("onFocus",!0,fe),qt.has("focus")&&rr("onBlur",!1,ve),er.has("contextMenu")&&(cr.onContextMenu=function($){var ue;Ue.current&&qt.has("contextMenu")?Bt(!1):(Sr($),Bt(!0)),$.preventDefault();for(var Je=arguments.length,ht=new Array(Je>1?Je-1:0),st=1;st<Je;st++)ht[st-1]=arguments[st];(ue=Vt.onContextMenu)===null||ue===void 0||ue.call.apply(ue,[Vt,$].concat(ht))}),$t&&(cr.className=I()(Vt.className,$t));var mr=(0,F.Z)((0,F.Z)({},Vt),cr),Vr={},on=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];on.forEach(function($){Wt[$]&&(Vr[$]=function(){for(var ue,Je=arguments.length,ht=new Array(Je),st=0;st<Je;st++)ht[st]=arguments[st];(ue=mr[$])===null||ue===void 0||ue.call.apply(ue,[mr].concat(ht)),Wt[$].apply(Wt,ht)})});var In=p.cloneElement(Cr,(0,F.Z)((0,F.Z)({},mr),Vr)),Dn={x:Jr,y:Yr},xn=Zt?(0,F.Z)({},Zt!==!0?Zt:{}):null;return p.createElement(p.Fragment,null,p.createElement(Ze.Z,{disabled:!It,ref:vn,onResize:Pn},p.createElement(r,{getTriggerDOMNode:Yt},In)),p.createElement(s.Provider,{value:ln},p.createElement(a,{portal:c,ref:cn,prefixCls:H,popup:rt,className:I()(Be,tn),style:Ge,target:Gt,onMouseEnter:xr,onMouseLeave:dr,onPointerEnter:xr,zIndex:ot,open:It,keepDom:vr,fresh:Ct,onClick:yt,onPointerDownCapture:An,mask:Re,motion:Ur,maskMotion:mn,onVisibleChanged:Rn,onPrepare:jr,forceRender:Z,autoDestroy:Ot,getPopupContainer:Oe,align:Ar,arrow:xn,arrowPos:Dn,ready:Kr,offsetX:yn,offsetY:Mr,offsetR:qr,offsetB:bn,onAlign:tr,stretch:gt,targetWidth:En/Nr,targetHeight:Mn/Xr})))});return h}var or=Ut(w.Z)},48482:function(Dt,Fe){var d;var F=Symbol.for("react.element"),L=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),Ze=Symbol.for("react.context"),p=Symbol.for("react.server_context"),_=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),J;J=Symbol.for("react.module.reference");function q(C){if(typeof C=="object"&&C!==null){var Ce=C.$$typeof;switch(Ce){case F:switch(C=C.type,C){case oe:case W:case w:case N:case D:return C;default:switch(C=C&&C.$$typeof,C){case p:case Ze:case _:case j:case R:case I:return C;default:return Ce}}case L:return Ce}}}d=Ze,d=I,d=F,Fe.ForwardRef=_,d=oe,d=j,d=R,d=L,d=W,d=w,d=N,d=D,d=function(){return!1},d=function(){return!1},d=function(C){return q(C)===Ze},d=function(C){return q(C)===I},d=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===F},d=function(C){return q(C)===_},d=function(C){return q(C)===oe},d=function(C){return q(C)===j},Fe.isMemo=function(C){return q(C)===R},d=function(C){return q(C)===L},d=function(C){return q(C)===W},d=function(C){return q(C)===w},d=function(C){return q(C)===N},d=function(C){return q(C)===D},d=function(C){return typeof C=="string"||typeof C=="function"||C===oe||C===W||C===w||C===N||C===D||C===K||typeof C=="object"&&C!==null&&(C.$$typeof===j||C.$$typeof===R||C.$$typeof===I||C.$$typeof===Ze||C.$$typeof===_||C.$$typeof===J||C.getModuleId!==void 0)},d=q},52481:function(Dt,Fe,d){Dt.exports=d(48482)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[7314],{95309:function(qn,sn,S){S.d(sn,{He:function(){return he},Ld:function(){return j},eC:function(){return fe},f3:function(){return we},iG:function(){return Ve},rS:function(){return ae},sb:function(){return V},ys:function(){return oe}});var on=S(5574),Le=S.n(on),fn=S(28785),ge=S.n(fn),ln=S(48374),Pe=S.n(ln),cn=S(31996),ke=S.n(cn),Ue=S(26037),L=S.n(Ue),je=S(12444),te=S.n(je),N=S(72004),re=S.n(N),x=S(65736),Oe=S(67294),Se=Symbol.for("Animated:node"),J=function(y){return!!y&&y[Se]===y},oe=function(y){return y&&y[Se]},we=function(y,E){return(0,x.dE)(y,Se,E)},he=function(y){return y&&y[Se]&&y[Se].getPayload()},ve=function(){function P(){te()(this,P),this.payload=void 0,we(this,this)}return re()(P,[{key:"getPayload",value:function(){return this.payload||[]}}]),P}(),Ve=function(P){ke()(E,P);var y=L()(E);function E(A){var m;return te()(this,E),m=y.call(this),m.done=!0,m.elapsedTime=void 0,m.lastPosition=void 0,m.lastVelocity=void 0,m.v0=void 0,m.durationProgress=0,m._value=A,x.is.num(m._value)&&(m.lastPosition=m._value),m}return re()(E,[{key:"getPayload",value:function(){return[this]}},{key:"getValue",value:function(){return this._value}},{key:"setValue",value:function(m,k){return x.is.num(m)&&(this.lastPosition=m,k&&(m=Math.round(m/k)*k,this.done&&(this.lastPosition=m))),this._value===m?!1:(this._value=m,!0)}},{key:"reset",value:function(){var m=this.done;this.done=!1,x.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,m&&(this.lastVelocity=null),this.v0=null)}}],[{key:"create",value:function(m){return new E(m)}}]),E}(ve),fe=function(P){ke()(E,P);var y=L()(E);function E(A){var m;return te()(this,E),m=y.call(this,0),m._string=null,m._toString=void 0,m._toString=(0,x.mD)({output:[A,A]}),m}return re()(E,[{key:"getValue",value:function(){var m=this._string;return m??(this._string=this._toString(this._value))}},{key:"setValue",value:function(m){if(x.is.str(m)){if(m==this._string)return!1;this._string=m,this._value=1}else if(ge()(Pe()(E.prototype),"setValue",this).call(this,m))this._string=null;else return!1;return!0}},{key:"reset",value:function(m){m&&(this._toString=(0,x.mD)({output:[this.getValue(),m]})),this._value=0,ge()(Pe()(E.prototype),"reset",this).call(this)}}],[{key:"create",value:function(m){return new E(m)}}]),E}(Ve),Te={dependencies:null},ae=function(P){ke()(E,P);var y=L()(E);function E(A){var m;return te()(this,E),m=y.call(this),m.source=A,m.setValue(A),m}return re()(E,[{key:"getValue",value:function(m){var k={};return(0,x.rU)(this.source,function($,Q){J($)?k[Q]=$.getValue(m):(0,x.j$)($)?k[Q]=(0,x.je)($):m||(k[Q]=$)}),k}},{key:"setValue",value:function(m){this.source=m,this.payload=this._makePayload(m)}},{key:"reset",value:function(){this.payload&&(0,x.S6)(this.payload,function(m){return m.reset()})}},{key:"_makePayload",value:function(m){if(m){var k=new Set;return(0,x.rU)(m,this._addToPayload,k),Array.from(k)}}},{key:"_addToPayload",value:function(m){var k=this;Te.dependencies&&(0,x.j$)(m)&&Te.dependencies.add(m);var $=he(m);$&&(0,x.S6)($,function(Q){return k.add(Q)})}}]),E}(ve),o=function(P){ke()(E,P);var y=L()(E);function E(A){return te()(this,E),y.call(this,A)}return re()(E,[{key:"getValue",value:function(){return this.source.map(function(m){return m.getValue()})}},{key:"setValue",value:function(m){var k=this.getPayload();return m.length==k.length?k.map(function($,Q){return $.setValue(m[Q])}).some(Boolean):(ge()(Pe()(E.prototype),"setValue",this).call(this,m.map(le)),!0)}}],[{key:"create",value:function(m){return new E(m)}}]),E}(ae);function le(P){var y=(0,x.Df)(P)?fe:Ve;return y.create(P)}function V(P){var y=oe(P);return y?y.constructor:x.is.arr(P)?o:(0,x.Df)(P)?fe:Ve}function B(){return B=Object.assign?Object.assign.bind():function(P){for(var y=1;y<arguments.length;y++){var E=arguments[y];for(var A in E)Object.prototype.hasOwnProperty.call(E,A)&&(P[A]=E[A])}return P},B.apply(this,arguments)}var ee=function(y,E){var A=!x.is.fun(y)||y.prototype&&y.prototype.isReactComponent;return(0,Oe.forwardRef)(function(m,k){var $=(0,Oe.useRef)(null),Q=A&&(0,Oe.useCallback)(function(de){$.current=Ge(k,de)},[k]),ce=Je(m,E),X=Le()(ce,2),K=X[0],H=X[1],U=(0,x.NW)(),me=function(){var Be=$.current;if(!(A&&!Be)){var be=Be?E.applyAnimatedValues(Be,K.getValue(!0)):!1;be===!1&&U()}},Xe=new ie(me,H),Ie=(0,Oe.useRef)();(0,x.LI)(function(){return Ie.current=Xe,(0,x.S6)(H,function(de){return(0,x.UI)(de,Xe)}),function(){Ie.current&&((0,x.S6)(Ie.current.deps,function(de){return(0,x.iL)(de,Ie.current)}),x.Wn.cancel(Ie.current.update))}}),(0,Oe.useEffect)(me,[]),(0,x.tf)(function(){return function(){var de=Ie.current;(0,x.S6)(de.deps,function(Be){return(0,x.iL)(Be,de)})}});var We=E.getComponentProps(K.getValue());return Oe.createElement(y,B({},We,{ref:Q}))})},ie=function(){function P(y,E){te()(this,P),this.update=y,this.deps=E}return re()(P,[{key:"eventObserved",value:function(E){E.type=="change"&&x.Wn.write(this.update)}}]),P}();function Je(P,y){var E=new Set;return Te.dependencies=E,P.style&&(P=B({},P,{style:y.createAnimatedStyle(P.style)})),P=new ae(P),Te.dependencies=null,[P,E]}function Ge(P,y){return P&&(x.is.fun(P)?P(y):P.current=y),y}var qe=Symbol.for("AnimatedComponent"),j=function(y){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=E.applyAnimatedValues,m=A===void 0?function(){return!1}:A,k=E.createAnimatedStyle,$=k===void 0?function(H){return new ae(H)}:k,Q=E.getComponentProps,ce=Q===void 0?function(H){return H}:Q,X={applyAnimatedValues:m,createAnimatedStyle:$,getComponentProps:ce},K=function H(U){var me=D(U)||"Anonymous";return x.is.str(U)?U=H[U]||(H[U]=ee(U,X)):U=U[qe]||(U[qe]=ee(U,X)),U.displayName="Animated(".concat(me,")"),U};return(0,x.rU)(y,function(H,U){x.is.arr(y)&&(U=D(H)),K[U]=K(H)}),{animated:K}},D=function(y){return x.is.str(y)?y:y&&x.is.str(y.displayName)?y.displayName:x.is.fun(y)&&y.name||null}},99799:function(qn,sn,S){S.d(sn,{Globals:function(){return o.OH},useSpring:function(){return Qe}});var on=S(25098),Le=S.n(on),fn=S(19632),ge=S.n(fn),ln=S(5574),Pe=S.n(ln),cn=S(28785),ke=S.n(cn),Ue=S(48374),L=S.n(Ue),je=S(31996),te=S.n(je),N=S(26037),re=S.n(N),x=S(12665),Oe=S.n(x),Se=S(15009),J=S.n(Se),oe=S(99289),we=S.n(oe),he=S(72004),ve=S.n(he),Ve=S(12444),fe=S.n(Ve),Te=S(96695),ae=S.n(Te),o=S(65736),le=S(67294),V=S(95309);function B(){return B=Object.assign?Object.assign.bind():function(u){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(u[s]=n[s])}return u},B.apply(this,arguments)}function ee(u){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return o.is.fun(u)?u.apply(void 0,n):u}var ie=function(r,n){return r===!0||!!(n&&r&&(o.is.fun(r)?r(n):(0,o.qo)(r).includes(n)))},Je=function(r,n){return o.is.obj(r)?n&&r[n]:r},Ge=function(r,n){return r.default===!0?r[n]:r.default?r.default[n]:void 0},qe=function(r){return r},j=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qe,s=D;r.default&&r.default!==!0&&(r=r.default,s=Object.keys(r));var a={},i=ae()(s),l;try{for(i.s();!(l=i.n()).done;){var h=l.value,p=n(r[h],h);o.is.und(p)||(a[h]=p)}}catch(v){i.e(v)}finally{i.f()}return a},D=["config","onProps","onStart","onChange","onPause","onResume","onRest"],P={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function y(u){var r={},n=0;if((0,o.rU)(u,function(s,a){P[a]||(r[a]=s,n++)}),n)return r}function E(u){var r=y(u);if(r){var n={to:r};return(0,o.rU)(u,function(s,a){return a in r||(n[a]=s)}),n}return B({},u)}function A(u){return u=(0,o.je)(u),o.is.arr(u)?u.map(A):(0,o.Df)(u)?o.OH.createStringInterpolator({range:[0,1],output:[u,u]})(1):u}function m(u){for(var r in u)return!0;return!1}function k(u){return o.is.fun(u)||o.is.arr(u)&&o.is.obj(u[0])}function $(u,r){var n;(n=u.ref)==null||n.delete(u),r==null||r.delete(u)}function Q(u,r){if(r&&u.ref!==r){var n;(n=u.ref)==null||n.delete(u),r.add(u),u.ref=r}}function ce(u,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e3;useIsomorphicLayoutEffect(function(){if(r){var s=0;each(u,function(i,l){var h=i.current;if(h.length){var p=n*r[l];isNaN(p)?p=s:s=p,each(h,function(v){each(v.queue,function(R){var I=R.delay;R.delay=function(O){return p+ee(I||0,O)}})}),i.start()}})}else{var a=Promise.resolve();each(u,function(i){var l=i.current;if(l.length){var h=l.map(function(p){var v=p.queue;return p.queue=[],v});a=a.then(function(){return each(l,function(p,v){return each(h[v]||[],function(R){return p.queue.push(R)})}),Promise.all(i.start())})}})}})}var X={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},K=B({},X.default,{mass:1,damping:1,easing:o.Z5.linear,clamp:!1}),H=ve()(function u(){fe()(this,u),this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,K)});function U(u,r,n){n&&(n=B({},n),me(n,r),r=B({},n,r)),me(u,r),Object.assign(u,r);for(var s in K)u[s]==null&&(u[s]=K[s]);var a=u.mass,i=u.frequency,l=u.damping;return o.is.und(i)||(i<.01&&(i=.01),l<0&&(l=0),u.tension=Math.pow(2*Math.PI/i,2)*a,u.friction=4*Math.PI*l*a/i),u}function me(u,r){if(!o.is.und(r.decay))u.duration=void 0;else{var n=!o.is.und(r.tension)||!o.is.und(r.friction);(n||!o.is.und(r.frequency)||!o.is.und(r.damping)||!o.is.und(r.mass))&&(u.duration=void 0,u.decay=void 0),n&&(u.frequency=void 0)}}var Xe=[],Ie=ve()(function u(){fe()(this,u),this.changed=!1,this.values=Xe,this.toValues=null,this.fromValues=Xe,this.to=void 0,this.from=void 0,this.config=new H,this.immediate=!1});function We(u,r){var n=r.key,s=r.props,a=r.defaultProps,i=r.state,l=r.actions;return new Promise(function(h,p){var v,R,I,O=ie((v=s.cancel)!=null?v:a==null?void 0:a.cancel,n);if(O)f();else{o.is.und(s.pause)||(i.paused=ie(s.pause,n));var T=a==null?void 0:a.pause;T!==!0&&(T=i.paused||ie(T,n)),R=ee(s.delay||0,n),T?(i.resumeQueue.add(e),l.pause()):(l.resume(),e())}function t(){i.resumeQueue.add(e),i.timeouts.delete(I),I.cancel(),R=I.time-o.Wn.now()}function e(){R>0&&!o.OH.skipAnimation?(i.delayed=!0,I=o.Wn.setTimeout(f,R),i.pauseQueue.add(t),i.timeouts.add(I)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(t),i.timeouts.delete(I),u<=(i.cancelId||0)&&(O=!0);try{l.start(B({},s,{callId:u,cancel:O}),h)}catch(c){p(c)}}})}var de=function(r,n){return n.length==1?n[0]:n.some(function(s){return s.cancelled})?en(r.get()):n.every(function(s){return s.noop})?Be(r.get()):be(r.get(),n.every(function(s){return s.finished}))},Be=function(r){return{value:r,noop:!0,finished:!0,cancelled:!1}},be=function(r,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return{value:r,finished:n,cancelled:s}},en=function(r){return{value:r,cancelled:!0,finished:!1}};function Ae(u,r,n,s){var a=r.callId,i=r.parentId,l=r.onRest,h=n.asyncTo,p=n.promise;return!i&&u===h&&!r.reset?p:n.promise=we()(J()().mark(function v(){var R,I,O,T,t,e,f,c;return J()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(n.asyncId=a,n.asyncTo=u,R=j(r,function(g,b){return b==="onRest"?void 0:g}),T=new Promise(function(g,b){return I=g,O=b}),t=function(b){var M=a<=(n.cancelId||0)&&en(s)||a!==n.asyncId&&be(s,!1);if(M)throw b.result=M,O(b),b},e=function(b,M){var w=new dn,F=new Fn;return we()(J()().mark(function W(){var Y,z;return J()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(!o.OH.skipAnimation){Z.next=5;break}throw Fe(n),F.result=be(s,!1),O(F),F;case 5:return t(w),Y=o.is.obj(b)?B({},b):B({},M,{to:b}),Y.parentId=a,(0,o.rU)(R,function(Ce,ue){o.is.und(Y[ue])&&(Y[ue]=Ce)}),Z.next=11,s.start(Y);case 11:if(z=Z.sent,t(w),!n.paused){Z.next=16;break}return Z.next=16,new Promise(function(Ce){n.resumeQueue.add(Ce)});case 16:return Z.abrupt("return",z);case 17:case"end":return Z.stop()}},W)}))()},!o.OH.skipAnimation){d.next=9;break}return Fe(n),d.abrupt("return",be(s,!1));case 9:return d.prev=9,o.is.arr(u)?c=function(){var g=we()(J()().mark(function b(M){var w,F,W;return J()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:w=ae()(M),z.prev=1,w.s();case 3:if((F=w.n()).done){z.next=9;break}return W=F.value,z.next=7,e(W);case 7:z.next=3;break;case 9:z.next=14;break;case 11:z.prev=11,z.t0=z.catch(1),w.e(z.t0);case 14:return z.prev=14,w.f(),z.finish(14);case 17:case"end":return z.stop()}},b,null,[[1,11,14,17]])}));return function(b){return g.apply(this,arguments)}}()(u):c=Promise.resolve(u(e,s.stop.bind(s))),d.next=13,Promise.all([c.then(I),T]);case 13:f=be(s.get(),!0,!1),d.next=27;break;case 16:if(d.prev=16,d.t0=d.catch(9),!(d.t0 instanceof dn)){d.next=22;break}f=d.t0.result,d.next=27;break;case 22:if(!(d.t0 instanceof Fn)){d.next=26;break}f=d.t0.result,d.next=27;break;case 26:throw d.t0;case 27:return d.prev=27,a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?h:void 0,n.promise=i?p:void 0),d.finish(27);case 30:return o.is.fun(l)&&o.Wn.batchedUpdates(function(){l(f,s,s.item)}),d.abrupt("return",f);case 32:case"end":return d.stop()}},v,null,[[9,16,27,30]])}))()}function Fe(u,r){(0,o.yl)(u.timeouts,function(n){return n.cancel()}),u.pauseQueue.clear(),u.resumeQueue.clear(),u.asyncId=u.asyncTo=u.promise=void 0,r&&(u.cancelId=r)}var dn=function(u){te()(n,u);var r=re()(n);function n(){var s;return fe()(this,n),s=r.call(this,"An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),s.result=void 0,s}return ve()(n)}(Oe()(Error)),Fn=function(u){te()(n,u);var r=re()(n);function n(){var s;return fe()(this,n),s=r.call(this,"SkipAnimationSignal"),s.result=void 0,s}return ve()(n)}(Oe()(Error)),An=function(r){return r instanceof wn},et=1,wn=function(u){te()(n,u);var r=re()(n);function n(){var s;fe()(this,n);for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return s=r.call.apply(r,[this].concat(i)),s.id=et++,s.key=void 0,s._priority=0,s}return ve()(n,[{key:"priority",get:function(){return this._priority},set:function(a){this._priority!=a&&(this._priority=a,this._onPriorityChange(a))}},{key:"get",value:function(){var a=(0,V.ys)(this);return a&&a.getValue()}},{key:"to",value:function(){for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return o.OH.to(this,i)}},{key:"interpolate",value:function(){(0,o.LW)();for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return o.OH.to(this,i)}},{key:"toJSON",value:function(){return this.get()}},{key:"observerAdded",value:function(a){a==1&&this._attach()}},{key:"observerRemoved",value:function(a){a==0&&this._detach()}},{key:"_attach",value:function(){}},{key:"_detach",value:function(){}},{key:"_onChange",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,o.k0)(this,{type:"change",parent:this,value:a,idle:i})}},{key:"_onPriorityChange",value:function(a){this.idle||o.fT.sort(this),(0,o.k0)(this,{type:"priority",parent:this,priority:a})}}]),n}(o.B0),Ye=Symbol.for("SpringPhase"),Kn=1,In=2,Rn=4,xn=function(r){return(r[Ye]&Kn)>0},Me=function(r){return(r[Ye]&In)>0},nn=function(r){return(r[Ye]&Rn)>0},Ze=function(r,n){return n?r[Ye]|=In|Kn:r[Ye]&=~In},Mn=function(r,n){return n?r[Ye]|=Rn:r[Ye]&=~Rn},Cn=function(u){te()(n,u);var r=re()(n);function n(s,a){var i;if(fe()(this,n),i=r.call(this),i.key=void 0,i.animation=new Ie,i.queue=void 0,i.defaultProps={},i._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},i._pendingCalls=new Set,i._lastCallId=0,i._lastToId=0,i._memoizedDuration=0,!o.is.und(s)||!o.is.und(a)){var l=o.is.obj(s)?B({},s):B({},a,{from:s});o.is.und(l.default)&&(l.default=!0),i.start(l)}return i}return ve()(n,[{key:"idle",get:function(){return!(Me(this)||this._state.asyncTo)||nn(this)}},{key:"goal",get:function(){return(0,o.je)(this.animation.to)}},{key:"velocity",get:function(){var a=(0,V.ys)(this);return a instanceof V.iG?a.lastVelocity||0:a.getPayload().map(function(i){return i.lastVelocity||0})}},{key:"hasAnimated",get:function(){return xn(this)}},{key:"isAnimating",get:function(){return Me(this)}},{key:"isPaused",get:function(){return nn(this)}},{key:"isDelayed",get:function(){return this._state.delayed}},{key:"advance",value:function(a){var i=this,l=!0,h=!1,p=this.animation,v=p.config,R=p.toValues,I=(0,V.He)(p.to);!I&&(0,o.j$)(p.to)&&(R=(0,o.qo)((0,o.je)(p.to))),p.values.forEach(function(e,f){if(!e.done){var c=e.constructor==V.eC?1:I?I[f].lastPosition:R[f],_=p.immediate,d=c;if(!_){if(d=e.lastPosition,v.tension<=0){e.done=!0;return}var g=e.elapsedTime+=a,b=p.fromValues[f],M=e.v0!=null?e.v0:e.v0=o.is.arr(v.velocity)?v.velocity[f]:v.velocity,w,F=v.precision||(b==c?.005:Math.min(1,Math.abs(c-b)*.001));if(o.is.und(v.duration))if(v.decay){var Y=v.decay===!0?.998:v.decay,z=Math.exp(-(1-Y)*g);d=b+M/(1-Y)*(1-z),_=Math.abs(e.lastPosition-d)<=F,w=M*z}else{w=e.lastVelocity==null?M:e.lastVelocity;for(var De=v.restVelocity||F/10,Z=v.clamp?0:v.bounce,Ce=!o.is.und(Z),ue=b==c?e.v0>0:b<c,se,Re=!1,ne=1,mn=Math.ceil(a/ne),pn=0;pn<mn&&(se=Math.abs(w)>De,!(!se&&(_=Math.abs(c-d)<=F,_)));++pn){Ce&&(Re=d==c||d>c==ue,Re&&(w=-w*Z,d=c));var gn=-v.tension*1e-6*(d-c),C=-v.friction*.001*w,G=(gn+C)/v.mass;w=w+G*ne,d=d+w*ne}}else{var W=1;v.duration>0&&(i._memoizedDuration!==v.duration&&(i._memoizedDuration=v.duration,e.durationProgress>0&&(e.elapsedTime=v.duration*e.durationProgress,g=e.elapsedTime+=a)),W=(v.progress||0)+g/i._memoizedDuration,W=W>1?1:W<0?0:W,e.durationProgress=W),d=b+v.easing(W)*(c-b),w=(d-e.lastPosition)/a,_=W==1}e.lastVelocity=w,Number.isNaN(d)&&(console.warn("Got NaN while animating:",i),_=!0)}I&&!I[f].done&&(_=!1),_?e.done=!0:l=!1,e.setValue(d,v.round)&&(h=!0)}});var O=(0,V.ys)(this),T=O.getValue();if(l){var t=(0,o.je)(p.to);(T!==t||h)&&!v.decay?(O.setValue(t),this._onChange(t)):h&&v.decay&&this._onChange(T),this._stop()}else h&&this._onChange(T)}},{key:"set",value:function(a){var i=this;return o.Wn.batchedUpdates(function(){i._stop(),i._focus(a),i._set(a)}),this}},{key:"pause",value:function(){this._update({pause:!0})}},{key:"resume",value:function(){this._update({pause:!1})}},{key:"finish",value:function(){var a=this;if(Me(this)){var i=this.animation,l=i.to,h=i.config;o.Wn.batchedUpdates(function(){a._onStart(),h.decay||a._set(l,!1),a._stop()})}return this}},{key:"update",value:function(a){var i=this.queue||(this.queue=[]);return i.push(a),this}},{key:"start",value:function(a,i){var l=this,h;return o.is.und(a)?(h=this.queue||[],this.queue=[]):h=[o.is.obj(a)?a:B({},i,{to:a})],Promise.all(h.map(function(p){var v=l._update(p);return v})).then(function(p){return de(l,p)})}},{key:"stop",value:function(a){var i=this,l=this.animation.to;return this._focus(this.get()),Fe(this._state,a&&this._lastCallId),o.Wn.batchedUpdates(function(){return i._stop(l,a)}),this}},{key:"reset",value:function(){this._update({reset:!0})}},{key:"eventObserved",value:function(a){a.type=="change"?this._start():a.type=="priority"&&(this.priority=a.priority+1)}},{key:"_prepareNode",value:function(a){var i=this.key||"",l=a.to,h=a.from;l=o.is.obj(l)?l[i]:l,(l==null||k(l))&&(l=void 0),h=o.is.obj(h)?h[i]:h,h==null&&(h=void 0);var p={to:l,from:h};if(!xn(this)){if(a.reverse){var v=[h,l];l=v[0],h=v[1]}h=(0,o.je)(h),o.is.und(h)?(0,V.ys)(this)||this._set(l):this._set(h)}return p}},{key:"_update",value:function(a,i){var l=this,h=B({},a),p=this.key,v=this.defaultProps;h.default&&Object.assign(v,j(h,function(O,T){return/^on/.test(T)?Je(O,p):O})),_n(this,h,"onProps"),$e(this,"onProps",h,this);var R=this._prepareNode(h);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");var I=this._state;return We(++this._lastCallId,{key:p,props:h,defaultProps:v,state:I,actions:{pause:function(){nn(l)||(Mn(l,!0),(0,o.bl)(I.pauseQueue),$e(l,"onPause",be(l,Ke(l,l.animation.to)),l))},resume:function(){nn(l)&&(Mn(l,!1),Me(l)&&l._resume(),(0,o.bl)(I.resumeQueue),$e(l,"onResume",be(l,Ke(l,l.animation.to)),l))},start:this._merge.bind(this,R)}}).then(function(O){if(h.loop&&O.finished&&!(i&&O.noop)){var T=kn(h);if(T)return l._update(T,!0)}return O})}},{key:"_merge",value:function(a,i,l){var h=this;if(i.cancel)return this.stop(!0),l(en(this));var p=!o.is.und(a.to),v=!o.is.und(a.from);if(p||v)if(i.callId>this._lastToId)this._lastToId=i.callId;else return l(en(this));var R=this.key,I=this.defaultProps,O=this.animation,T=O.to,t=O.from,e=a.to,f=e===void 0?T:e,c=a.from,_=c===void 0?t:c;if(v&&!p&&(!i.default||o.is.und(f))&&(f=_),i.reverse){var d=[_,f];f=d[0],_=d[1]}var g=!(0,o.Xy)(_,t);g&&(O.from=_),_=(0,o.je)(_);var b=!(0,o.Xy)(f,T);b&&this._focus(f);var M=k(i.to),w=O.config,F=w.decay,W=w.velocity;(p||v)&&(w.velocity=0),i.config&&!M&&U(w,ee(i.config,R),i.config!==I.config?ee(I.config,R):void 0);var Y=(0,V.ys)(this);if(!Y||o.is.und(f))return l(be(this,!0));var z=o.is.und(i.reset)?v&&!i.default:!o.is.und(_)&&ie(i.reset,R),De=z?_:this.get(),Z=A(f),Ce=o.is.num(Z)||o.is.arr(Z)||(0,o.Df)(Z),ue=!M&&(!Ce||ie(I.immediate||i.immediate,R));if(b){var se=(0,V.sb)(f);if(se!==Y.constructor)if(ue)Y=this._set(Z);else throw Error("Cannot animate between ".concat(Y.constructor.name," and ").concat(se.name,', as the "to" prop suggests'))}var Re=Y.constructor,ne=(0,o.j$)(f),mn=!1;if(!ne){var pn=z||!xn(this)&&g;(b||pn)&&(mn=(0,o.Xy)(A(De),Z),ne=!mn),(!(0,o.Xy)(O.immediate,ue)&&!ue||!(0,o.Xy)(w.decay,F)||!(0,o.Xy)(w.velocity,W))&&(ne=!0)}if(mn&&Me(this)&&(O.changed&&!z?ne=!0:ne||this._stop(T)),!M&&((ne||(0,o.j$)(T))&&(O.values=Y.getPayload(),O.toValues=(0,o.j$)(f)?null:Re==V.eC?[1]:(0,o.qo)(Z)),O.immediate!=ue&&(O.immediate=ue,!ue&&!z&&this._set(T)),ne)){var gn=O.onRest;(0,o.S6)(tt,function(G){return _n(h,i,G)});var C=be(this,Ke(this,T));(0,o.bl)(this._pendingCalls,C),this._pendingCalls.add(l),O.changed&&o.Wn.batchedUpdates(function(){O.changed=!z,gn==null||gn(C,h),z?ee(I.onRest,C):O.onStart==null||O.onStart(C,h)})}z&&this._set(De),M?l(Ae(i.to,i,this._state,this)):ne?this._start():Me(this)&&!b?this._pendingCalls.add(l):l(Be(De))}},{key:"_focus",value:function(a){var i=this.animation;a!==i.to&&((0,o.Ll)(this)&&this._detach(),i.to=a,(0,o.Ll)(this)&&this._attach())}},{key:"_attach",value:function(){var a=0,i=this.animation.to;(0,o.j$)(i)&&((0,o.UI)(i,this),An(i)&&(a=i.priority+1)),this.priority=a}},{key:"_detach",value:function(){var a=this.animation.to;(0,o.j$)(a)&&(0,o.iL)(a,this)}},{key:"_set",value:function(a){var i=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,h=(0,o.je)(a);if(!o.is.und(h)){var p=(0,V.ys)(this);if(!p||!(0,o.Xy)(h,p.getValue())){var v=(0,V.sb)(h);!p||p.constructor!=v?(0,V.f3)(this,v.create(h)):p.setValue(h),p&&o.Wn.batchedUpdates(function(){i._onChange(h,l)})}}return(0,V.ys)(this)}},{key:"_onStart",value:function(){var a=this.animation;a.changed||(a.changed=!0,$e(this,"onStart",be(this,Ke(this,a.to)),this))}},{key:"_onChange",value:function(a,i){i||(this._onStart(),ee(this.animation.onChange,a,this)),ee(this.defaultProps.onChange,a,this),ke()(L()(n.prototype),"_onChange",this).call(this,a,i)}},{key:"_start",value:function(){var a=this.animation;(0,V.ys)(this).reset((0,o.je)(a.to)),a.immediate||(a.fromValues=a.values.map(function(i){return i.lastPosition})),Me(this)||(Ze(this,!0),nn(this)||this._resume())}},{key:"_resume",value:function(){o.OH.skipAnimation?this.finish():o.fT.start(this)}},{key:"_stop",value:function(a,i){if(Me(this)){Ze(this,!1);var l=this.animation;(0,o.S6)(l.values,function(p){p.done=!0}),l.toValues&&(l.onChange=l.onPause=l.onResume=void 0),(0,o.k0)(this,{type:"idle",parent:this});var h=i?en(this.get()):be(this.get(),Ke(this,a??l.to));(0,o.bl)(this._pendingCalls,h),l.changed&&(l.changed=!1,$e(this,"onRest",h,this))}}}]),n}(wn);function Ke(u,r){var n=A(r),s=A(u.get());return(0,o.Xy)(s,n)}function kn(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.loop,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.to,s=ee(r);if(s){var a=s!==!0&&E(s),i=(a||u).reverse,l=!a||a.reset;return tn(B({},u,{loop:r,default:!1,pause:void 0,to:!i||k(n)?n:void 0,from:l?u.from:void 0,reset:l},a))}}function tn(u){var r=u=E(u),n=r.to,s=r.from,a=new Set;return o.is.obj(n)&&$n(n,a),o.is.obj(s)&&$n(s,a),u.keys=a.size?Array.from(a):null,u}function nt(u){var r=tn(u);return o.is.und(r.default)&&(r.default=j(r)),r}function $n(u,r){(0,o.rU)(u,function(n,s){return n!=null&&r.add(s)})}var tt=["onStart","onRest","onChange","onPause","onResume"];function _n(u,r,n){u.animation[n]=r[n]!==Ge(r,n)?Je(r[n],u.key):void 0}function $e(u,r){for(var n,s,a,i,l,h,p=arguments.length,v=new Array(p>2?p-2:0),R=2;R<p;R++)v[R-2]=arguments[R];(a=(i=u.animation)[r])==null||(n=a).call.apply(n,[i].concat(v)),(l=(h=u.defaultProps)[r])==null||(s=l).call.apply(s,[h].concat(v))}var zn=["onStart","onChange","onRest"],Nn=1,jn=function(){function u(r,n){fe()(this,u),this.id=Nn++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),r&&this.start(B({default:!0},r))}return ve()(u,[{key:"idle",get:function(){return!this._state.asyncTo&&Object.values(this.springs).every(function(n){return n.idle&&!n.isDelayed&&!n.isPaused})}},{key:"item",get:function(){return this._item},set:function(n){this._item=n}},{key:"get",value:function(){var n={};return this.each(function(s,a){return n[a]=s.get()}),n}},{key:"set",value:function(n){for(var s in n){var a=n[s];o.is.und(a)||this.springs[s].set(a)}}},{key:"update",value:function(n){return n&&this.queue.push(tn(n)),this}},{key:"start",value:function(n){var s=this.queue;return n?s=(0,o.qo)(n).map(tn):this.queue=[],this._flush?this._flush(this,s):(Gn(this,s),rn(this,s))}},{key:"stop",value:function(n,s){if(n!==!!n&&(s=n),s){var a=this.springs;(0,o.S6)((0,o.qo)(s),function(i){return a[i].stop(!!n)})}else Fe(this._state,this._lastAsyncId),this.each(function(i){return i.stop(!!n)});return this}},{key:"pause",value:function(n){if(o.is.und(n))this.start({pause:!0});else{var s=this.springs;(0,o.S6)((0,o.qo)(n),function(a){return s[a].pause()})}return this}},{key:"resume",value:function(n){if(o.is.und(n))this.start({pause:!1});else{var s=this.springs;(0,o.S6)((0,o.qo)(n),function(a){return s[a].resume()})}return this}},{key:"each",value:function(n){(0,o.rU)(this.springs,n)}},{key:"_onFrame",value:function(){var n=this,s=this._events,a=s.onStart,i=s.onChange,l=s.onRest,h=this._active.size>0,p=this._changed.size>0;(h&&!this._started||p&&!this._started)&&(this._started=!0,(0,o.yl)(a,function(I){var O=Pe()(I,2),T=O[0],t=O[1];t.value=n.get(),T(t,n,n._item)}));var v=!h&&this._started,R=p||v&&l.size?this.get():null;p&&i.size&&(0,o.yl)(i,function(I){var O=Pe()(I,2),T=O[0],t=O[1];t.value=R,T(t,n,n._item)}),v&&(this._started=!1,(0,o.yl)(l,function(I){var O=Pe()(I,2),T=O[0],t=O[1];t.value=R,T(t,n,n._item)}))}},{key:"eventObserved",value:function(n){if(n.type=="change")this._changed.add(n.parent),n.idle||this._active.add(n.parent);else if(n.type=="idle")this._active.delete(n.parent);else return;o.Wn.onFrame(this._onFrame)}}]),u}();function rn(u,r){return Promise.all(r.map(function(n){return Hn(u,n)})).then(function(n){return de(u,n)})}function Hn(u,r,n){return hn.apply(this,arguments)}function hn(){return hn=we()(J()().mark(function u(r,n,s){var a,i,l,h,p,v,R,I,O,T,t,e,f;return J()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(a=n.keys,i=n.to,l=n.from,h=n.loop,p=n.onRest,v=n.onResolve,R=o.is.obj(n.default)&&n.default,h&&(n.loop=!1),i===!1&&(n.to=null),l===!1&&(n.from=null),I=o.is.arr(i)||o.is.fun(i)?i:void 0,I?(n.to=void 0,n.onRest=void 0,R&&(R.onRest=void 0)):(0,o.S6)(zn,function(d){var g=n[d];if(o.is.fun(g)){var b=r._events[d];n[d]=function(M){var w=M.finished,F=M.cancelled,W=b.get(g);W?(w||(W.finished=!1),F&&(W.cancelled=!0)):b.set(g,{value:null,finished:w||!1,cancelled:F||!1})},R&&(R[d]=n[d])}}),O=r._state,n.pause===!O.paused?(O.paused=n.pause,(0,o.bl)(n.pause?O.pauseQueue:O.resumeQueue)):O.paused&&(n.pause=!0),T=(a||Object.keys(r.springs)).map(function(d){return r.springs[d].start(n)}),t=n.cancel===!0||Ge(n,"cancel")===!0,(I||t&&O.asyncId)&&T.push(We(++r._lastAsyncId,{props:n,state:O,actions:{pause:o.ZT,resume:o.ZT,start:function(g,b){t?(Fe(O,r._lastAsyncId),b(en(r))):(g.onRest=p,b(Ae(I,g,O,r)))}}})),!O.paused){_.next=15;break}return _.next=15,new Promise(function(d){O.resumeQueue.add(d)});case 15:return _.t0=de,_.t1=r,_.next=19,Promise.all(T);case 19:if(_.t2=_.sent,e=(0,_.t0)(_.t1,_.t2),!(h&&e.finished&&!(s&&e.noop))){_.next=26;break}if(f=kn(n,h,i),!f){_.next=26;break}return Gn(r,[f]),_.abrupt("return",Hn(r,f,!0));case 26:return v&&o.Wn.batchedUpdates(function(){return v(e,r,r.item)}),_.abrupt("return",e);case 28:case"end":return _.stop()}},u)})),hn.apply(this,arguments)}function ze(u,r){var n=B({},u.springs);return r&&(0,o.S6)((0,o.qo)(r),function(s){o.is.und(s.keys)&&(s=tn(s)),o.is.obj(s.to)||(s=B({},s,{to:void 0})),Tn(n,s,function(a){return Qn(a)})}),Ne(u,n),n}function Ne(u,r){(0,o.rU)(r,function(n,s){u.springs[s]||(u.springs[s]=n,(0,o.UI)(n,u))})}function Qn(u,r){var n=new Cn;return n.key=u,r&&(0,o.UI)(n,r),n}function Tn(u,r,n){r.keys&&(0,o.S6)(r.keys,function(s){var a=u[s]||(u[s]=n(s));a._prepareNode(r)})}function Gn(u,r){(0,o.S6)(r,function(n){Tn(u.springs,n,function(s){return Qn(s,u)})})}function He(u,r){if(u==null)return{};var n={},s=Object.keys(u),a,i;for(i=0;i<s.length;i++)a=s[i],!(r.indexOf(a)>=0)&&(n[a]=u[a]);return n}var rt=["children"],vn=function(r){var n=r.children,s=He(r,rt),a=(0,le.useContext)(yn),i=s.pause||!!a.pause,l=s.immediate||!!a.immediate;s=(0,o.Pr)(function(){return{pause:i,immediate:l}},[i,l]);var h=yn.Provider;return le.createElement(h,{value:s},n)},yn=at(vn,{});vn.Provider=yn.Provider,vn.Consumer=yn.Consumer;function at(u,r){return Object.assign(u,le.createContext(r)),u.Provider._context=u,u.Consumer._context=u,u}var Dn=function(){var r=[],n=function(i){(0,o.ZR)();var l=[];return(0,o.S6)(r,function(h,p){if(o.is.und(i))l.push(h.start());else{var v=s(i,h,p);v&&l.push(h.start(v))}}),l};n.current=r,n.add=function(a){r.includes(a)||r.push(a)},n.delete=function(a){var i=r.indexOf(a);~i&&r.splice(i,1)},n.pause=function(){var a=arguments;return(0,o.S6)(r,function(i){return i.pause.apply(i,ge()(a))}),this},n.resume=function(){var a=arguments;return(0,o.S6)(r,function(i){return i.resume.apply(i,ge()(a))}),this},n.set=function(a){(0,o.S6)(r,function(i){return i.set(a)})},n.start=function(a){var i=this,l=[];return(0,o.S6)(r,function(h,p){if(o.is.und(a))l.push(h.start());else{var v=i._getProps(a,h,p);v&&l.push(h.start(v))}}),l},n.stop=function(){var a=arguments;return(0,o.S6)(r,function(i){return i.stop.apply(i,ge()(a))}),this},n.update=function(a){var i=this;return(0,o.S6)(r,function(l,h){return l.update(i._getProps(a,l,h))}),this};var s=function(i,l,h){return o.is.fun(i)?i(h,l):i};return n._getProps=s,n};function Ln(u,r,n){var s=arguments,a=o.is.fun(r)&&r;a&&!n&&(n=[]);var i=(0,le.useMemo)(function(){return a||s.length==3?Dn():void 0},[]),l=(0,le.useRef)(0),h=(0,o.NW)(),p=(0,le.useMemo)(function(){return{ctrls:[],queue:[],flush:function(d,g){var b=ze(d,g),M=l.current>0&&!p.queue.length&&!Object.keys(b).some(function(w){return!d.springs[w]});return M?rn(d,g):new Promise(function(w){Ne(d,b),p.queue.push(function(){w(rn(d,g))}),h()})}}},[]),v=(0,le.useRef)(ge()(p.ctrls)),R=[],I=(0,o.zH)(u)||0;(0,le.useMemo)(function(){(0,o.S6)(v.current.slice(u,I),function(_){$(_,i),_.stop(!0)}),v.current.length=u,O(I,u)},[u]),(0,le.useMemo)(function(){O(0,Math.min(I,u))},n);function O(_,d){for(var g=_;g<d;g++){var b=v.current[g]||(v.current[g]=new jn(null,p.flush)),M=a?a(g,b):r[g];M&&(R[g]=nt(M))}}var T=v.current.map(function(_,d){return ze(_,R[d])}),t=(0,le.useContext)(vn),e=(0,o.zH)(t),f=t!==e&&m(t);(0,o.LI)(function(){l.current++,p.ctrls=v.current;var _=p.queue;_.length&&(p.queue=[],(0,o.S6)(_,function(d){return d()})),(0,o.S6)(v.current,function(d,g){i==null||i.add(d),f&&d.start({default:t});var b=R[g];b&&(Q(d,b.ref),d.ref?d.queue.push(b):d.start(b))})}),(0,o.tf)(function(){return function(){(0,o.S6)(p.ctrls,function(_){return _.stop(!0)})}});var c=T.map(function(_){return B({},_)});return i?[c,i]:c}function Qe(u,r){var n=o.is.fun(u),s=Ln(1,n?u:[u],n?r||[]:r),a=Pe()(s,2),i=Pe()(a[0],1),l=i[0],h=a[1];return n||arguments.length==2?[l,h]:l}var it=function(){return Dn()},ut=function(){return useState(it)[0]},bt=function(r,n){var s=useConstant(function(){return new Cn(r,n)});return useOnce(function(){return function(){s.stop()}}),s};function En(u,r,n){var s=is.fun(r)&&r;s&&!n&&(n=[]);var a=!0,i=void 0,l=Ln(u,function(v,R){var I=s?s(v,R):r;return i=I.ref,a=a&&I.reverse,I},n||[{}]);if(useIsomorphicLayoutEffect(function(){each(l[1].current,function(v,R){var I=l[1].current[R+(a?1:-1)];if(Q(v,i),v.ref){I&&v.update({to:I.springs});return}I?v.start({to:I.springs}):v.start()})},n),s||arguments.length==3){var h,p=(h=i)!=null?h:l[1];return p._getProps=function(v,R,I){var O=is.fun(v)?v(I,R):v;if(O){var T=p.current[I+(O.reverse?1:-1)];return T&&(O.to=T.springs),O}},l}return l[0]}var _e;(function(u){u.MOUNT="mount",u.ENTER="enter",u.UPDATE="update",u.LEAVE="leave"})(_e||(_e={}));function st(u,r,n){var s=arguments,a=is.fun(r)&&r,i=a?a():r,l=i.reset,h=i.sort,p=i.trail,v=p===void 0?0:p,R=i.expires,I=R===void 0?!0:R,O=i.exitBeforeEnter,T=O===void 0?!1:O,t=i.onDestroyed,e=i.ref,f=i.config,c=useMemo(function(){return a||s.length==3?Dn():void 0},[]),_=toArray(u),d=[],g=useRef(null),b=l?null:g.current;useIsomorphicLayoutEffect(function(){g.current=d}),useOnce(function(){return each(d,function(C){c==null||c.add(C.ctrl),C.ctrl.ref=c}),function(){each(g.current,function(C){C.expired&&clearTimeout(C.expirationId),$(C.ctrl,c),C.ctrl.stop(!0)})}});var M=ot(_,a?a():r,b),w=l&&g.current||[];useIsomorphicLayoutEffect(function(){return each(w,function(C){var G=C.ctrl,q=C.item,xe=C.key;$(G,c),ee(t,q,xe)})});var F=[];if(b&&each(b,function(C,G){C.expired?(clearTimeout(C.expirationId),w.push(C)):(G=F[G]=M.indexOf(C.key),~G&&(d[G]=C))}),each(_,function(C,G){d[G]||(d[G]={key:M[G],item:C,phase:_e.MOUNT,ctrl:new jn},d[G].ctrl.item=C)}),F.length){var W=-1,Y=a?a():r,z=Y.leave;each(F,function(C,G){var q=b[G];~C?(W=d.indexOf(q),d[W]=B({},q,{item:_[C]})):z&&d.splice(++W,0,q)})}is.fun(h)&&d.sort(function(C,G){return h(C.item,G.item)});var De=-v,Z=useForceUpdate(),Ce=j(r),ue=new Map,se=useRef(new Map),Re=useRef(!1);each(d,function(C,G){var q=C.key,xe=C.phase,ye=a?a():r,Ee,pe,xt=ee(ye.delay||0,q);if(xe==_e.MOUNT)Ee=ye.enter,pe=_e.ENTER;else{var St=M.indexOf(q)<0;if(xe!=_e.LEAVE)if(St)Ee=ye.leave,pe=_e.LEAVE;else if(Ee=ye.update)pe=_e.UPDATE;else return;else if(!St)Ee=ye.enter,pe=_e.ENTER;else return}if(Ee=ee(Ee,C.item,G),Ee=is.obj(Ee)?E(Ee):{to:Ee},!Ee.config){var Mt=f||Ce.config;Ee.config=ee(Mt,C.item,G,pe)}De+=v;var bn=B({},Ce,{delay:xt+De,ref:e,immediate:ye.immediate,reset:!1},Ee);if(pe==_e.ENTER&&is.und(bn.from)){var vt=a?a():r,Ct=is.und(vt.initial)||b?vt.from:vt.initial;bn.from=ee(Ct,C.item,G)}var kt=bn.onResolve;bn.onResolve=function(wt){ee(kt,wt);var mt=g.current,un=mt.find(function(Bn){return Bn.key===q});if(un&&!(wt.cancelled&&un.phase!=_e.UPDATE)&&un.ctrl.idle){var It=mt.every(function(Bn){return Bn.ctrl.idle});if(un.phase==_e.LEAVE){var pt=ee(I,un.item);if(pt!==!1){var gt=pt===!0?0:pt;if(un.expired=!0,!It&>>0){gt<=2147483647&&(un.expirationId=setTimeout(Z,gt));return}}}It&&mt.some(function(Bn){return Bn.expired})&&(se.current.delete(un),T&&(Re.current=!0),Z())}};var At=ze(C.ctrl,bn);pe===_e.LEAVE&&T?se.current.set(C,{phase:pe,springs:At,payload:bn}):ue.set(C,{phase:pe,springs:At,payload:bn})});var ne=useContext(vn),mn=usePrev(ne),pn=ne!==mn&&m(ne);useIsomorphicLayoutEffect(function(){pn&&each(d,function(C){C.ctrl.start({default:ne})})},[ne]),each(ue,function(C,G){if(se.current.size){var q=d.findIndex(function(xe){return xe.key===G.key});d.splice(q,1)}}),useIsomorphicLayoutEffect(function(){each(se.current.size?se.current:ue,function(C,G){var q=C.phase,xe=C.payload,ye=G.ctrl;G.phase=q,c==null||c.add(ye),pn&&q==_e.ENTER&&ye.start({default:ne}),xe&&(Q(ye,xe.ref),(ye.ref||c)&&!Re.current?ye.update(xe):(ye.start(xe),Re.current&&(Re.current=!1)))})},l?void 0:n);var gn=function(G){return React.createElement(React.Fragment,null,d.map(function(q,xe){var ye=ue.get(q)||q.ctrl,Ee=ye.springs,pe=G(B({},Ee),q.item,q,xe);return pe&&pe.type?React.createElement(pe.type,B({},pe.props,{key:is.str(q.key)||is.num(q.key)?q.key:q.ctrl.id,ref:pe.ref})):pe}))};return c?[gn,c]:gn}var Un=1;function ot(u,r,n){var s=r.key,a=r.keys,i=a===void 0?s:a;if(i===null){var l=new Set;return u.map(function(h){var p=n&&n.find(function(v){return v.item===h&&v.phase!==_e.LEAVE&&!l.has(v)});return p?(l.add(p),p.key):Un++})}return is.und(i)?u:is.fun(i)?u.map(i):toArray(i)}var ft=null,Xn=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.container,s=He(r,ft),a=Qe(function(){return B({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0},s)},[]),i=_slicedToArray(a,2),l=i[0],h=i[1];return useIsomorphicLayoutEffect(function(){var p=onScroll(function(v){var R=v.x,I=v.y;h.start({scrollX:R.current,scrollXProgress:R.progress,scrollY:I.current,scrollYProgress:I.progress})},{container:(n==null?void 0:n.current)||void 0});return function(){each(Object.values(l),function(v){return v.stop()}),p()}},[]),l},Yn=null,yt=function(r){var n=r.container,s=He(r,Yn),a=Qe(function(){return B({width:0,height:0},s)},[]),i=_slicedToArray(a,2),l=i[0],h=i[1];return useIsomorphicLayoutEffect(function(){var p=onResize(function(v){var R=v.width,I=v.height;h.start({width:R,height:I,immediate:l.width.get()===0||l.height.get()===0})},{container:(n==null?void 0:n.current)||void 0});return function(){each(Object.values(l),function(v){return v.stop()}),p()}},[]),l},lt=null,ct=null,dt={any:0,all:1};function Et(u,r){var n=useState(!1),s=_slicedToArray(n,2),a=s[0],i=s[1],l=useRef(),h=is.fun(u)&&u,p=h?h():{},v=p.to,R=v===void 0?{}:v,I=p.from,O=I===void 0?{}:I,T=He(p,lt),t=h?r:u,e=Qe(function(){return B({from:O},T)},[]),f=_slicedToArray(e,2),c=f[0],_=f[1];return useIsomorphicLayoutEffect(function(){var d=l.current,g=t??{},b=g.root,M=g.once,w=g.amount,F=w===void 0?"any":w,W=He(g,ct);if(!(!d||M&&a||typeof IntersectionObserver>"u")){var Y=new WeakMap,z=function(){R&&_.start(R),i(!0);var ue=function(){O&&_.start(O),i(!1)};return M?void 0:ue},De=function(ue){ue.forEach(function(se){var Re=Y.get(se.target);if(se.isIntersecting!==!!Re)if(se.isIntersecting){var ne=z();is.fun(ne)?Y.set(se.target,ne):Z.unobserve(se.target)}else Re&&(Re(),Y.delete(se.target))})},Z=new IntersectionObserver(De,B({root:b&&b.current||void 0,threshold:typeof F=="number"||Array.isArray(F)?F:dt[F]},W));return Z.observe(d),function(){return Z.unobserve(d)}}},[t]),h?[l,c]:[l,a]}var an=null;function Vn(u){var r=u.children,n=He(u,an);return r(Qe(n))}var _t=null;function Pt(u){var r=u.items,n=u.children,s=He(u,_t),a=En(r.length,s);return r.map(function(i,l){var h=n(i,l);return is.fun(h)?h(a[l]):h})}var Pn=null;function On(u){var r=u.items,n=u.children,s=He(u,Pn);return st(r,s)(n)}var Wn=function(u){te()(n,u);var r=re()(n);function n(s,a){var i;fe()(this,n),i=r.call(this),i.key=void 0,i.idle=!0,i.calc=void 0,i._active=new Set,i.source=s,i.calc=o.mD.apply(void 0,ge()(a));var l=i._get(),h=(0,V.sb)(l);return(0,V.f3)(Le()(i),h.create(l)),i}return ve()(n,[{key:"advance",value:function(a){var i=this._get(),l=this.get();(0,o.Xy)(i,l)||((0,V.ys)(this).setValue(i),this._onChange(i,this.idle)),!this.idle&&Zn(this._active)&&Jn(this)}},{key:"_get",value:function(){var a=o.is.arr(this.source)?this.source.map(o.je):(0,o.qo)((0,o.je)(this.source));return this.calc.apply(this,ge()(a))}},{key:"_start",value:function(){var a=this;this.idle&&!Zn(this._active)&&(this.idle=!1,(0,o.S6)((0,V.He)(this),function(i){i.done=!1}),o.OH.skipAnimation?(o.Wn.batchedUpdates(function(){return a.advance()}),Jn(this)):o.fT.start(this))}},{key:"_attach",value:function(){var a=this,i=1;(0,o.S6)((0,o.qo)(this.source),function(l){(0,o.j$)(l)&&(0,o.UI)(l,a),An(l)&&(l.idle||a._active.add(l),i=Math.max(i,l.priority+1))}),this.priority=i,this._start()}},{key:"_detach",value:function(){var a=this;(0,o.S6)((0,o.qo)(this.source),function(i){(0,o.j$)(i)&&(0,o.iL)(i,a)}),this._active.clear(),Jn(this)}},{key:"eventObserved",value:function(a){a.type=="change"?a.idle?this.advance():(this._active.add(a.parent),this._start()):a.type=="idle"?this._active.delete(a.parent):a.type=="priority"&&(this.priority=(0,o.qo)(this.source).reduce(function(i,l){return Math.max(i,(An(l)?l.priority:0)+1)},0))}}]),n}(wn);function ht(u){return u.idle!==!1}function Zn(u){return!u.size||Array.from(u).every(ht)}function Jn(u){u.idle||(u.idle=!0,(0,o.S6)((0,V.He)(u),function(r){r.done=!0}),(0,o.k0)(u,{type:"idle",parent:u}))}var Rt=function(r){for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return new Wn(r,s)},Ot=function(r){for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return deprecateInterpolate(),new Wn(r,s)};o.OH.assign({createStringInterpolator:o.qS,to:function(r,n){return new Wn(r,n)}});var Sn=o.fT.advance},65736:function(qn,sn,S){S.d(sn,{B0:function(){return vn},OH:function(){return ce},UI:function(){return at},k0:function(){return rt},O9:function(){return en},mD:function(){return tn},qS:function(){return ft},dE:function(){return ee},ZR:function(){return dt},LW:function(){return lt},S6:function(){return Ge},rU:function(){return qe},Z5:function(){return Hn},yl:function(){return D},bl:function(){return P},fT:function(){return me},Ll:function(){return Gn},je:function(){return Tn},j$:function(){return Qn},is:function(){return ie},Df:function(){return Et},Xy:function(){return Je},ZT:function(){return B},Wn:function(){return L},iL:function(){return Dn},qo:function(){return j},NW:function(){return h},LI:function(){return i},Pr:function(){return p},tf:function(){return R},zH:function(){return O}});var on=S(5574),Le=S.n(on),fn=S(72004),ge=S.n(fn),ln=S(12444),Pe=S.n(ln),cn=S(19632),ke=S.n(cn),Ue=ae(),L=function(e){return he(e,Ue)},je=ae();L.write=function(t){return he(t,je)};var te=ae();L.onStart=function(t){return he(t,te)};var N=ae();L.onFrame=function(t){return he(t,N)};var re=ae();L.onFinish=function(t){return he(t,re)};var x=[];L.setTimeout=function(t,e){var f=L.now()+e,c=function d(){var g=x.findIndex(function(b){return b.cancel==d});~g&&x.splice(g,1),oe-=~g?1:0},_={time:f,handler:t,cancel:c};return x.splice(Oe(f),0,_),oe+=1,ve(),_};var Oe=function(e){return~(~x.findIndex(function(f){return f.time>e})||~x.length)};L.cancel=function(t){te.delete(t),N.delete(t),re.delete(t),Ue.delete(t),je.delete(t)},L.sync=function(t){we=!0,L.batchedUpdates(t),we=!1},L.throttle=function(t){var e;function f(){try{t.apply(void 0,ke()(e))}finally{e=null}}function c(){for(var _=arguments.length,d=new Array(_),g=0;g<_;g++)d[g]=arguments[g];e=d,L.onStart(f)}return c.handler=t,c.cancel=function(){te.delete(f),e=null},c};var Se=typeof window<"u"?window.requestAnimationFrame:function(){};L.use=function(t){return Se=t},L.now=typeof performance<"u"?function(){return performance.now()}:Date.now,L.batchedUpdates=function(t){return t()},L.catch=console.error,L.frameLoop="always",L.advance=function(){L.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Te()};var J=-1,oe=0,we=!1;function he(t,e){we?(e.delete(t),t(0)):(e.add(t),ve())}function ve(){J<0&&(J=0,L.frameLoop!=="demand"&&Se(fe))}function Ve(){J=-1}function fe(){~J&&(Se(fe),L.batchedUpdates(Te))}function Te(){var t=J;J=L.now();var e=Oe(J);if(e&&(o(x.splice(0,e),function(f){return f.handler()}),oe-=e),!oe){Ve();return}te.flush(),Ue.flush(t?Math.min(64,J-t):16.667),N.flush(),je.flush(),re.flush()}function ae(){var t=new Set,e=t;return{add:function(c){oe+=e==t&&!t.has(c)?1:0,t.add(c)},delete:function(c){return oe-=e==t&&t.has(c)?1:0,t.delete(c)},flush:function(c){e.size&&(t=new Set,oe-=e.size,o(e,function(_){return _(c)&&t.add(_)}),oe+=t.size,e=t)}}}function o(t,e){t.forEach(function(f){try{e(f)}catch(c){L.catch(c)}})}var le={count:function(){return oe},isRunning:function(){return J>=0},clear:function(){J=-1,x=[],te=ae(),Ue=ae(),N=ae(),je=ae(),re=ae(),oe=0}},V=S(67294);function B(){}var ee=function(e,f,c){return Object.defineProperty(e,f,{value:c,writable:!0,configurable:!0})},ie={arr:Array.isArray,obj:function(e){return!!e&&e.constructor.name==="Object"},fun:function(e){return typeof e=="function"},str:function(e){return typeof e=="string"},num:function(e){return typeof e=="number"},und:function(e){return e===void 0}};function Je(t,e){if(ie.arr(t)){if(!ie.arr(e)||t.length!==e.length)return!1;for(var f=0;f<t.length;f++)if(t[f]!==e[f])return!1;return!0}return t===e}var Ge=function(e,f){return e.forEach(f)};function qe(t,e,f){if(ie.arr(t)){for(var c=0;c<t.length;c++)e.call(f,t[c],"".concat(c));return}for(var _ in t)t.hasOwnProperty(_)&&e.call(f,t[_],_)}var j=function(e){return ie.und(e)?[]:ie.arr(e)?e:[e]};function D(t,e){if(t.size){var f=Array.from(t);t.clear(),Ge(f,e)}}var P=function(e){for(var f=arguments.length,c=new Array(f>1?f-1:0),_=1;_<f;_++)c[_-1]=arguments[_];return D(e,function(d){return d.apply(void 0,c)})},y=function(){return typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)},E,A,m=null,k=!1,$=B,Q=function(e){e.to&&(A=e.to),e.now&&(L.now=e.now),e.colors!==void 0&&(m=e.colors),e.skipAnimation!=null&&(k=e.skipAnimation),e.createStringInterpolator&&(E=e.createStringInterpolator),e.requestAnimationFrame&&L.use(e.requestAnimationFrame),e.batchedUpdates&&(L.batchedUpdates=e.batchedUpdates),e.willAdvance&&($=e.willAdvance),e.frameLoop&&(L.frameLoop=e.frameLoop)},ce=Object.freeze({__proto__:null,get createStringInterpolator(){return E},get to(){return A},get colors(){return m},get skipAnimation(){return k},get willAdvance(){return $},assign:Q}),X=new Set,K=[],H=[],U=0,me={get idle(){return!X.size&&!K.length},start:function(e){U>e.priority?(X.add(e),L.onStart(Xe)):(Ie(e),L(de))},advance:de,sort:function(e){if(U)L.onFrame(function(){return me.sort(e)});else{var f=K.indexOf(e);~f&&(K.splice(f,1),We(e))}},clear:function(){K=[],X.clear()}};function Xe(){X.forEach(Ie),X.clear(),L(de)}function Ie(t){K.includes(t)||We(t)}function We(t){K.splice(Be(K,function(e){return e.priority>t.priority}),0,t)}function de(t){for(var e=H,f=0;f<K.length;f++){var c=K[f];U=c.priority,c.idle||($(c),c.advance(t),c.idle||e.push(c))}return U=0,H=K,H.length=0,K=e,K.length>0}function Be(t,e){var f=t.findIndex(e);return f<0?t.length:f}var be=function(e,f,c){return Math.min(Math.max(c,e),f)},en={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ae="[-+]?\\d*\\.?\\d+",Fe=Ae+"%";function dn(){for(var t=arguments.length,e=new Array(t),f=0;f<t;f++)e[f]=arguments[f];return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Fn=new RegExp("rgb"+dn(Ae,Ae,Ae)),An=new RegExp("rgba"+dn(Ae,Ae,Ae,Ae)),et=new RegExp("hsl"+dn(Ae,Fe,Fe)),wn=new RegExp("hsla"+dn(Ae,Fe,Fe,Ae)),Ye=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Kn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,In=/^#([0-9a-fA-F]{6})$/,Rn=/^#([0-9a-fA-F]{8})$/;function xn(t){var e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=In.exec(t))?parseInt(e[1]+"ff",16)>>>0:m&&m[t]!==void 0?m[t]:(e=Fn.exec(t))?(Ze(e[1])<<24|Ze(e[2])<<16|Ze(e[3])<<8|255)>>>0:(e=An.exec(t))?(Ze(e[1])<<24|Ze(e[2])<<16|Ze(e[3])<<8|Cn(e[4]))>>>0:(e=Ye.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Rn.exec(t))?parseInt(e[1],16)>>>0:(e=Kn.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=et.exec(t))?(nn(Mn(e[1]),Ke(e[2]),Ke(e[3]))|255)>>>0:(e=wn.exec(t))?(nn(Mn(e[1]),Ke(e[2]),Ke(e[3]))|Cn(e[4]))>>>0:null}function Me(t,e,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?t+(e-t)*6*f:f<1/2?e:f<2/3?t+(e-t)*(2/3-f)*6:t}function nn(t,e,f){var c=f<.5?f*(1+e):f+e-f*e,_=2*f-c,d=Me(_,c,t+1/3),g=Me(_,c,t),b=Me(_,c,t-1/3);return Math.round(d*255)<<24|Math.round(g*255)<<16|Math.round(b*255)<<8}function Ze(t){var e=parseInt(t,10);return e<0?0:e>255?255:e}function Mn(t){var e=parseFloat(t);return(e%360+360)%360/360}function Cn(t){var e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ke(t){var e=parseFloat(t);return e<0?0:e>100?1:e/100}function kn(t){var e=xn(t);if(e===null)return t;e=e||0;var f=(e&4278190080)>>>24,c=(e&16711680)>>>16,_=(e&65280)>>>8,d=(e&255)/255;return"rgba(".concat(f,", ").concat(c,", ").concat(_,", ").concat(d,")")}var tn=function t(e,f,c){if(ie.fun(e))return e;if(ie.arr(e))return t({range:e,output:f,extrapolate:c});if(ie.str(e.output[0]))return E(e);var _=e,d=_.output,g=_.range||[0,1],b=_.extrapolateLeft||_.extrapolate||"extend",M=_.extrapolateRight||_.extrapolate||"extend",w=_.easing||function(F){return F};return function(F){var W=$n(F,g);return nt(F,g[W],g[W+1],d[W],d[W+1],w,b,M,_.map)}};function nt(t,e,f,c,_,d,g,b,M){var w=M?M(t):t;if(w<e){if(g==="identity")return w;g==="clamp"&&(w=e)}if(w>f){if(b==="identity")return w;b==="clamp"&&(w=f)}return c===_?c:e===f?t<=e?c:_:(e===-1/0?w=-w:f===1/0?w=w-e:w=(w-e)/(f-e),w=d(w),c===-1/0?w=-w:_===1/0?w=w+c:w=w*(_-c)+c,w)}function $n(t,e){for(var f=1;f<e.length-1&&!(e[f]>=t);++f);return f-1}var tt=function(e){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"end";return function(c){c=f==="end"?Math.min(c,.999):Math.max(c,.001);var _=c*e,d=f==="end"?Math.floor(_):Math.ceil(_);return be(0,1,d/e)}},_n=1.70158,$e=_n*1.525,zn=_n+1,Nn=2*Math.PI/3,jn=2*Math.PI/4.5,rn=function(e){var f=7.5625,c=2.75;return e<1/c?f*e*e:e<2/c?f*(e-=1.5/c)*e+.75:e<2.5/c?f*(e-=2.25/c)*e+.9375:f*(e-=2.625/c)*e+.984375},Hn={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return 1-(1-e)*(1-e)},easeInOutQuad:function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1-Math.pow(1-e,3)},easeInOutCubic:function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1-Math.pow(1-e,4)},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1-Math.pow(1-e,5)},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},easeInSine:function(e){return 1-Math.cos(e*Math.PI/2)},easeOutSine:function(e){return Math.sin(e*Math.PI/2)},easeInOutSine:function(e){return-(Math.cos(Math.PI*e)-1)/2},easeInExpo:function(e){return e===0?0:Math.pow(2,10*e-10)},easeOutExpo:function(e){return e===1?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},easeInCirc:function(e){return 1-Math.sqrt(1-Math.pow(e,2))},easeOutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},easeInOutCirc:function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},easeInBack:function(e){return zn*e*e*e-_n*e*e},easeOutBack:function(e){return 1+zn*Math.pow(e-1,3)+_n*Math.pow(e-1,2)},easeInOutBack:function(e){return e<.5?Math.pow(2*e,2)*(($e+1)*2*e-$e)/2:(Math.pow(2*e-2,2)*(($e+1)*(e*2-2)+$e)+2)/2},easeInElastic:function(e){return e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Nn)},easeOutElastic:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Nn)+1},easeInOutElastic:function(e){return e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*jn))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*jn)/2+1},easeInBounce:function(e){return 1-rn(1-e)},easeOutBounce:rn,easeInOutBounce:function(e){return e<.5?(1-rn(1-2*e))/2:(1+rn(2*e-1))/2},steps:tt};function hn(){return hn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var f=arguments[e];for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(t[c]=f[c])}return t},hn.apply(this,arguments)}var ze=Symbol.for("FluidValue.get"),Ne=Symbol.for("FluidValue.observers"),Qn=function(e){return!!(e&&e[ze])},Tn=function(e){return e&&e[ze]?e[ze]():e},Gn=function(e){return e[Ne]||null};function He(t,e){t.eventObserved?t.eventObserved(e):t(e)}function rt(t,e){var f=t[Ne];f&&f.forEach(function(c){He(c,e)})}var vn=ge()(function t(e){if(Pe()(this,t),this[ze]=void 0,this[Ne]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");yn(this,e)}),yn=function(e,f){return Ln(e,ze,f)};function at(t,e){if(t[ze]){var f=t[Ne];f||Ln(t,Ne,f=new Set),f.has(e)||(f.add(e),t.observerAdded&&t.observerAdded(f.size,e))}return e}function Dn(t,e){var f=t[Ne];if(f&&f.has(e)){var c=f.size-1;c?f.delete(e):t[Ne]=null,t.observerRemoved&&t.observerRemoved(c,e)}}var Ln=function(e,f,c){return Object.defineProperty(e,f,{value:c,writable:!0,configurable:!0})},Qe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,it=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ut=new RegExp("(".concat(Qe.source,")(%|[a-z]+)"),"i"),bt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,En=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,_e=function t(e){var f=st(e),c=Le()(f,2),_=c[0],d=c[1];if(!_||y())return e;var g=window.getComputedStyle(document.documentElement).getPropertyValue(_);if(g)return g.trim();if(d&&d.startsWith("--")){var b=window.getComputedStyle(document.documentElement).getPropertyValue(d);return b||e}else{if(d&&En.test(d))return t(d);if(d)return d}return e},st=function(e){var f=En.exec(e);if(!f)return[,];var c=Le()(f,3),_=c[1],d=c[2];return[_,d]},Un,ot=function(e,f,c,_,d){return"rgba(".concat(Math.round(f),", ").concat(Math.round(c),", ").concat(Math.round(_),", ").concat(d,")")},ft=function(e){Un||(Un=m?new RegExp("(".concat(Object.keys(m).join("|"),")(?!\\w)"),"g"):/^\b$/);var f=e.output.map(function(g){return Tn(g).replace(En,_e).replace(it,kn).replace(Un,kn)}),c=f.map(function(g){return g.match(Qe).map(Number)}),_=c[0].map(function(g,b){return c.map(function(M){if(!(b in M))throw Error('The arity of each "output" value must be equal');return M[b]})}),d=_.map(function(g){return tn(hn({},e,{output:g}))});return function(g){var b,M=!ut.test(f[0])&&((b=f.find(function(F){return ut.test(F)}))==null?void 0:b.replace(Qe,"")),w=0;return f[0].replace(Qe,function(){return"".concat(d[w++](g)).concat(M||"")}).replace(bt,ot)}},Xn="react-spring: ",Yn=function(e){var f=e,c=!1;if(typeof f!="function")throw new TypeError("".concat(Xn,"once requires a function parameter"));return function(){c||(f.apply(void 0,arguments),c=!0)}},yt=Yn(console.warn);function lt(){yt("".concat(Xn,'The "interpolate" function is deprecated in v9 (use "to" instead)'))}var ct=Yn(console.warn);function dt(){ct("".concat(Xn,'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions'))}function Et(t){return ie.str(t)&&(t[0]=="#"||/\d/.test(t)||!y()&&En.test(t)||t in(m||{}))}var an,Vn=new WeakMap,_t=function(e){return e.forEach(function(f){var c=f.target,_=f.contentRect,d;return(d=Vn.get(c))==null?void 0:d.forEach(function(g){return g(_)})})};function Pt(t,e){an||typeof ResizeObserver<"u"&&(an=new ResizeObserver(_t));var f=Vn.get(e);return f||(f=new Set,Vn.set(e,f)),f.add(t),an&&an.observe(e),function(){var c=Vn.get(e);c&&(c.delete(t),!c.size&&an&&an.unobserve(e))}}var Pn=new Set,On,Wn=function(){var e=function(){Pn.forEach(function(c){return c({width:window.innerWidth,height:window.innerHeight})})};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},ht=function(e){return Pn.add(e),On||(On=Wn()),function(){Pn.delete(e),!Pn.size&&On&&(On(),On=void 0)}},Zn=function(e){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=f.container,_=c===void 0?document.documentElement:c;return _===document.documentElement?ht(e):Pt(e,_)},Jn=function(e,f,c){return f-e===0?1:(c-e)/(f-e)},Rt={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},Ot=null,Sn=new WeakMap,u=new WeakMap,r=new WeakMap,n=function(e){return e===document.documentElement?window:e},s=function(e){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=f.container,_=c===void 0?document.documentElement:c,d=r.get(_);d||(d=new Set,r.set(_,d));var g=new Ot(e,_);if(d.add(g),!Sn.has(_)){var b=function(){var W;return(W=d)==null||W.forEach(function(Y){return Y.advance()}),!0};Sn.set(_,b);var M=n(_);window.addEventListener("resize",b,{passive:!0}),_!==document.documentElement&&u.set(_,Zn(b,{container:_})),M.addEventListener("scroll",b,{passive:!0})}var w=Sn.get(_);return raf(w),function(){raf.cancel(w);var F=r.get(_);if(F&&(F.delete(g),!F.size)){var W=Sn.get(_);if(Sn.delete(_),W){var Y;n(_).removeEventListener("scroll",W),window.removeEventListener("resize",W),(Y=u.get(_))==null||Y()}}}};function a(t){var e=useRef(null);return e.current===null&&(e.current=t()),e.current}var i=y()?V.useEffect:V.useLayoutEffect,l=function(){var e=(0,V.useRef)(!1);return i(function(){return e.current=!0,function(){e.current=!1}},[]),e};function h(){var t=(0,V.useState)()[1],e=l();return function(){e.current&&t(Math.random())}}function p(t,e){var f=(0,V.useState)(function(){return{inputs:e,result:t()}}),c=Le()(f,1),_=c[0],d=(0,V.useRef)(),g=d.current,b=g;if(b){var M=!!(e&&b.inputs&&v(e,b.inputs));M||(b={inputs:e,result:t()})}else b=_;return(0,V.useEffect)(function(){d.current=b,g==_&&(_.inputs=_.result=void 0)},[b]),b.result}function v(t,e){if(t.length!==e.length)return!1;for(var f=0;f<t.length;f++)if(t[f]!==e[f])return!1;return!0}var R=function(e){return(0,V.useEffect)(e,I)},I=[];function O(t){var e=(0,V.useRef)();return(0,V.useEffect)(function(){e.current=t}),e.current}var T=function(){var e=useState(null),f=_slicedToArray(e,2),c=f[0],_=f[1];return i(function(){var d=window.matchMedia("(prefers-reduced-motion)"),g=function(M){_(M.matches),Q({skipAnimation:M.matches})};return g(d),d.addEventListener("change",g),function(){d.removeEventListener("change",g)}},[]),c}},36740:function(qn,sn,S){S.d(sn,{animated:function(){return qe},useSpring:function(){return je.useSpring}});var on=S(5574),Le=S.n(on),fn=S(72004),ge=S.n(fn),ln=S(12444),Pe=S.n(ln),cn=S(31996),ke=S.n(cn),Ue=S(26037),L=S.n(Ue),je=S(99799),te=S(73935),N=S(65736),re=S(95309);function x(j,D){if(j==null)return{};var P={},y=Object.keys(j),E,A;for(A=0;A<y.length;A++)E=y[A],!(D.indexOf(E)>=0)&&(P[E]=j[E]);return P}var Oe=["style","children","scrollTop","scrollLeft","viewBox"],Se=/^--/;function J(j,D){return D==null||typeof D=="boolean"||D===""?"":typeof D=="number"&&D!==0&&!Se.test(j)&&!(he.hasOwnProperty(j)&&he[j])?D+"px":(""+D).trim()}var oe={};function we(j,D){if(!j.nodeType||!j.setAttribute)return!1;var P=j.nodeName==="filter"||j.parentNode&&j.parentNode.nodeName==="filter",y=D,E=y.style,A=y.children,m=y.scrollTop,k=y.scrollLeft,$=y.viewBox,Q=x(y,Oe),ce=Object.values(Q),X=Object.keys(Q).map(function(U){return P||j.hasAttribute(U)?U:oe[U]||(oe[U]=U.replace(/([A-Z])/g,function(me){return"-"+me.toLowerCase()}))});A!==void 0&&(j.textContent=A);for(var K in E)if(E.hasOwnProperty(K)){var H=J(K,E[K]);Se.test(K)?j.style.setProperty(K,H):j.style[K]=H}X.forEach(function(U,me){j.setAttribute(U,ce[me])}),m!==void 0&&(j.scrollTop=m),k!==void 0&&(j.scrollLeft=k),$!==void 0&&j.setAttribute("viewBox",$)}var he={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=function(D,P){return D+P.charAt(0).toUpperCase()+P.substring(1)},Ve=["Webkit","Ms","Moz","O"];he=Object.keys(he).reduce(function(j,D){return Ve.forEach(function(P){return j[ve(P,D)]=j[D]}),j},he);var fe=["x","y","z"],Te=/^(matrix|translate|scale|rotate|skew)/,ae=/^(translate)/,o=/^(rotate|skew)/,le=function(D,P){return N.is.num(D)&&D!==0?D+P:D},V=function j(D,P){return N.is.arr(D)?D.every(function(y){return j(y,P)}):N.is.num(D)?D===P:parseFloat(D)===P},B=function(j){ke()(P,j);var D=L()(P);function P(y){Pe()(this,P);var E=y.x,A=y.y,m=y.z,k=x(y,fe),$=[],Q=[];return(E||A||m)&&($.push([E||0,A||0,m||0]),Q.push(function(ce){return["translate3d(".concat(ce.map(function(X){return le(X,"px")}).join(","),")"),V(ce,0)]})),(0,N.rU)(k,function(ce,X){if(X==="transform")$.push([ce||""]),Q.push(function(H){return[H,H===""]});else if(Te.test(X)){if(delete k[X],N.is.und(ce))return;var K=ae.test(X)?"px":o.test(X)?"deg":"";$.push((0,N.qo)(ce)),Q.push(X==="rotate3d"?function(H){var U=Le()(H,4),me=U[0],Xe=U[1],Ie=U[2],We=U[3];return["rotate3d(".concat(me,",").concat(Xe,",").concat(Ie,",").concat(le(We,K),")"),V(We,0)]}:function(H){return["".concat(X,"(").concat(H.map(function(U){return le(U,K)}).join(","),")"),V(H,X.startsWith("scale")?1:0)]})}}),$.length&&(k.transform=new ee($,Q)),D.call(this,k)}return ge()(P)}(re.rS),ee=function(j){ke()(P,j);var D=L()(P);function P(y,E){var A;return Pe()(this,P),A=D.call(this),A._value=null,A.inputs=y,A.transforms=E,A}return ge()(P,[{key:"get",value:function(){return this._value||(this._value=this._get())}},{key:"_get",value:function(){var E=this,A="",m=!0;return(0,N.S6)(this.inputs,function(k,$){var Q=(0,N.je)(k[0]),ce=E.transforms[$](N.is.arr(Q)?Q:k.map(N.je)),X=Le()(ce,2),K=X[0],H=X[1];A+=" "+K,m=m&&H}),m?"none":A}},{key:"observerAdded",value:function(E){var A=this;E==1&&(0,N.S6)(this.inputs,function(m){return(0,N.S6)(m,function(k){return(0,N.j$)(k)&&(0,N.UI)(k,A)})})}},{key:"observerRemoved",value:function(E){var A=this;E==0&&(0,N.S6)(this.inputs,function(m){return(0,N.S6)(m,function(k){return(0,N.j$)(k)&&(0,N.iL)(k,A)})})}},{key:"eventObserved",value:function(E){E.type=="change"&&(this._value=null),(0,N.k0)(this,E)}}]),P}(N.B0),ie=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Je=["scrollTop","scrollLeft"];je.Globals.assign({batchedUpdates:te.unstable_batchedUpdates,createStringInterpolator:N.qS,colors:N.O9});var Ge=(0,re.Ld)(ie,{applyAnimatedValues:we,createAnimatedStyle:function(D){return new B(D)},getComponentProps:function(D){var P=x(D,Je);return P}}),qe=Ge.animated}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2319],{34751:function(ve,ot,V){V.d(ot,{useDrag:function(){return le}});function at(s,t,e){return Math.max(t,Math.min(s,e))}const u={toVector(s,t){return s===void 0&&(s=t),Array.isArray(s)?s:[s,s]},add(s,t){return[s[0]+t[0],s[1]+t[1]]},sub(s,t){return[s[0]-t[0],s[1]-t[1]]},addTo(s,t){s[0]+=t[0],s[1]+=t[1]},subTo(s,t){s[0]-=t[0],s[1]-=t[1]}};function B(s,t,e){return t===0||Math.abs(t)===1/0?Math.pow(s,e*5):s*t*e/(t+e*s)}function j(s,t,e,i=.15){return i===0?at(s,t,e):s<t?-B(t-s,e-t,i)+t:s>e?+B(s-e,e-t,i)+e:s}function ct(s,[t,e],[i,n]){const[[r,o],[c,f]]=s;return[j(t,r,o,i),j(e,c,f,n)]}function ut(s,t){if(typeof s!="object"||s===null)return s;var e=s[Symbol.toPrimitive];if(e!==void 0){var i=e.call(s,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(s)}function ht(s){var t=ut(s,"string");return typeof t=="symbol"?t:String(t)}function d(s,t,e){return t=ht(t),t in s?Object.defineProperty(s,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):s[t]=e,s}function H(s,t){var e=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(s,n).enumerable})),e.push.apply(e,i)}return e}function l(s){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?H(Object(e),!0).forEach(function(i){d(s,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)):H(Object(e)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(e,i))})}return s}const U={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Y(s){return s?s[0].toUpperCase()+s.slice(1):""}const lt=["enter","leave"];function ft(s=!1,t){return s&&!lt.includes(t)}function dt(s,t="",e=!1){const i=U[s],n=i&&i[t]||t;return"on"+Y(s)+Y(n)+(ft(e,n)?"Capture":"")}const pt=["gotpointercapture","lostpointercapture"];function mt(s){let t=s.substring(2).toLowerCase();const e=!!~t.indexOf("passive");e&&(t=t.replace("passive",""));const i=pt.includes(t)?"capturecapture":"capture",n=!!~t.indexOf(i);return n&&(t=t.replace("capture","")),{device:t,capture:n,passive:e}}function _t(s,t=""){const e=U[s],i=e&&e[t]||t;return s+i}function S(s){return"touches"in s}function G(s){return S(s)?"touch":"pointerType"in s?s.pointerType:"mouse"}function gt(s){return Array.from(s.touches).filter(t=>{var e,i;return t.target===s.currentTarget||((e=s.currentTarget)===null||e===void 0||(i=e.contains)===null||i===void 0?void 0:i.call(e,t.target))})}function vt(s){return s.type==="touchend"||s.type==="touchcancel"?s.changedTouches:s.targetTouches}function N(s){return S(s)?vt(s)[0]:s}function P(s,t){try{const e=t.clientX-s.clientX,i=t.clientY-s.clientY,n=(t.clientX+s.clientX)/2,r=(t.clientY+s.clientY)/2,o=Math.hypot(e,i);return{angle:-(Math.atan2(e,i)*180)/Math.PI,distance:o,origin:[n,r]}}catch{}return null}function yt(s){return gt(s).map(t=>t.identifier)}function X(s,t){const[e,i]=Array.from(s.touches).filter(n=>t.includes(n.identifier));return P(e,i)}function C(s){const t=N(s);return S(s)?t.identifier:t.pointerId}function b(s){const t=N(s);return[t.clientX,t.clientY]}const W=40,z=800;function $(s){let{deltaX:t,deltaY:e,deltaMode:i}=s;return i===1?(t*=W,e*=W):i===2&&(t*=z,e*=z),[t,e]}function bt(s){var t,e;const{scrollX:i,scrollY:n,scrollLeft:r,scrollTop:o}=s.currentTarget;return[(t=i??r)!==null&&t!==void 0?t:0,(e=n??o)!==null&&e!==void 0?e:0]}function wt(s){const t={};if("buttons"in s&&(t.buttons=s.buttons),"shiftKey"in s){const{shiftKey:e,altKey:i,metaKey:n,ctrlKey:r}=s;Object.assign(t,{shiftKey:e,altKey:i,metaKey:n,ctrlKey:r})}return t}function I(s,...t){return typeof s=="function"?s(...t):s}function Et(){}function Tt(...s){return s.length===0?Et:s.length===1?s[0]:function(){let t;for(const e of s)t=e.apply(this,arguments)||t;return t}}function q(s,t){return Object.assign({},t,s||{})}const At=32;class J{constructor(t,e,i){this.ctrl=t,this.args=e,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:e,ingKey:i,args:n}=this;e[i]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=n,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const e=this.state,i=this.config;e._active||(this.reset(),this.computeInitial(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.lastOffset=i.from?I(i.from,e):e.offset,e.offset=e.lastOffset,e.startTime=e.timeStamp=t.timeStamp)}computeValues(t){const e=this.state;e._values=t,e.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:e,config:i,shared:n}=this;e.args=this.args;let r=0;if(t&&(e.event=t,i.preventDefault&&t.cancelable&&e.event.preventDefault(),e.type=t.type,n.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,n.locked=!!document.pointerLockElement,Object.assign(n,wt(t)),n.down=n.pressed=n.buttons%2===1||n.touches>0,r=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const y=e._delta.map(Math.abs);u.addTo(e._distance,y)}this.axisIntent&&this.axisIntent(t);const[o,c]=e._movement,[f,h]=i.threshold,{_step:a,values:_}=e;if(i.hasCustomTransform?(a[0]===!1&&(a[0]=Math.abs(o)>=f&&_[0]),a[1]===!1&&(a[1]=Math.abs(c)>=h&&_[1])):(a[0]===!1&&(a[0]=Math.abs(o)>=f&&Math.sign(o)*f),a[1]===!1&&(a[1]=Math.abs(c)>=h&&Math.sign(c)*h)),e.intentional=a[0]!==!1||a[1]!==!1,!e.intentional)return;const p=[0,0];if(i.hasCustomTransform){const[y,ge]=_;p[0]=a[0]!==!1?y-a[0]:0,p[1]=a[1]!==!1?ge-a[1]:0}else p[0]=a[0]!==!1?o-a[0]:0,p[1]=a[1]!==!1?c-a[1]:0;this.restrictToAxis&&!e._blocked&&this.restrictToAxis(p);const D=e.offset,x=e._active&&!e._blocked||e.active;x&&(e.first=e._active&&!e.active,e.last=!e._active&&e.active,e.active=n[this.ingKey]=e._active,t&&(e.first&&("bounds"in i&&(e._bounds=I(i.bounds,e)),this.setup&&this.setup()),e.movement=p,this.computeOffset()));const[O,M]=e.offset,[[K,de],[pe,me]]=e._bounds;e.overflow=[O<K?-1:O>de?1:0,M<pe?-1:M>me?1:0],e._movementBound[0]=e.overflow[0]?e._movementBound[0]===!1?e._movement[0]:e._movementBound[0]:!1,e._movementBound[1]=e.overflow[1]?e._movementBound[1]===!1?e._movement[1]:e._movementBound[1]:!1;const _e=e._active?i.rubberband||[0,0]:[0,0];if(e.offset=ct(e._bounds,e.offset,_e),e.delta=u.sub(e.offset,D),this.computeMovement(),x&&(!e.last||r>At)){e.delta=u.sub(e.offset,D);const y=e.delta.map(Math.abs);u.addTo(e.distance,y),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&&r>0&&(e.velocity=[y[0]/r,y[1]/r],e.timeDelta=r)}}emit(){const t=this.state,e=this.shared,i=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!i.triggerAllEvents)return;const n=this.handler(l(l(l({},e),t),{},{[this.aliasKey]:t.values}));n!==void 0&&(t.memo=n)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function St([s,t],e){const i=Math.abs(s),n=Math.abs(t);if(i>n&&i>e)return"x";if(n>i&&n>e)return"y"}class T extends J{constructor(...t){super(...t),d(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=u.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=u.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const e=this.state,i=this.config;if(!e.axis&&t){const n=typeof i.axisThreshold=="object"?i.axisThreshold[G(t)]:i.axisThreshold;e.axis=St(e._movement,n)}e._blocked=(i.lockDirection||!!i.axis)&&!e.axis||!!i.axis&&i.axis!==e.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const It=s=>s,Q=.15,Z={enabled(s=!0){return s},eventOptions(s,t,e){return l(l({},e.shared.eventOptions),s)},preventDefault(s=!1){return s},triggerAllEvents(s=!1){return s},rubberband(s=0){switch(s){case!0:return[Q,Q];case!1:return[0,0];default:return u.toVector(s)}},from(s){if(typeof s=="function")return s;if(s!=null)return u.toVector(s)},transform(s,t,e){const i=s||e.shared.transform;return this.hasCustomTransform=!!i,i||It},threshold(s){return u.toVector(s,0)}},kt=0,g=l(l({},Z),{},{axis(s,t,{axis:e}){if(this.lockDirection=e==="lock",!this.lockDirection)return e},axisThreshold(s=kt){return s},bounds(s={}){if(typeof s=="function")return r=>g.bounds(s(r));if("current"in s)return()=>s.current;if(typeof HTMLElement=="function"&&s instanceof HTMLElement)return s;const{left:t=-1/0,right:e=1/0,top:i=-1/0,bottom:n=1/0}=s;return[[t,e],[i,n]]}}),F={ArrowRight:(s,t=1)=>[s*t,0],ArrowLeft:(s,t=1)=>[-1*s*t,0],ArrowUp:(s,t=1)=>[0,-1*s*t],ArrowDown:(s,t=1)=>[0,s*t]};class Dt extends T{constructor(...t){super(...t),d(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const e=t._bounds.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),n={left:e.left-i.left+t.offset[0],right:e.right-i.right+t.offset[0],top:e.top-i.top+t.offset[1],bottom:e.bottom-i.bottom+t.offset[1]};t._bounds=g.bounds(n)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const e=this.config,i=this.state;if(t.buttons!=null&&(Array.isArray(e.pointerButtons)?!e.pointerButtons.includes(t.buttons):e.pointerButtons!==-1&&e.pointerButtons!==t.buttons))return;const n=this.ctrl.setEventIds(t);e.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(n&&n.size>1&&i._pointerActive)&&(this.start(t),this.setupPointer(t),i._pointerId=C(t),i._pointerActive=!0,this.computeValues(b(t)),this.computeInitial(),e.preventScrollAxis&&G(t)!=="mouse"?(i._active=!1,this.setupScrollPrevention(t)):e.delay>0?(this.setupDelayTrigger(t),e.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const e=this.state,i=this.config;if(!e._pointerActive)return;const n=C(t);if(e._pointerId!==void 0&&n!==e._pointerId)return;const r=b(t);if(document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=u.sub(r,e._values),this.computeValues(r)),u.addTo(e._movement,e._delta),this.compute(t),e._delayed&&e.intentional){this.timeoutStore.remove("dragDelay"),e.active=!1,this.startPointerDrag(t);return}if(i.preventScrollAxis&&!e._preventScroll)if(e.axis)if(e.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){e._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const e=this.state,i=this.config;if(!e._active||!e._pointerActive)return;const n=C(t);if(e._pointerId!==void 0&&n!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[r,o]=e._distance;if(e.tap=r<=i.tapsThreshold&&o<=i.tapsThreshold,e.tap&&i.filterTaps)e._force=!0;else{const[c,f]=e._delta,[h,a]=e._movement,[_,p]=i.swipe.velocity,[D,x]=i.swipe.distance,O=i.swipe.duration;if(e.elapsedTime<O){const M=Math.abs(c/e.timeDelta),K=Math.abs(f/e.timeDelta);M>_&&Math.abs(h)>D&&(e.swipe[0]=Math.sign(c)),K>p&&Math.abs(a)>x&&(e.swipe[1]=Math.sign(f))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const e=this.config,i=e.device;e.pointerLock&&t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,xt(t);const e=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",e),this.eventStore.add(this.sharedConfig.window,"touch","cancel",e),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const e=F[t.key];if(e){const i=this.state,n=t.shiftKey?10:t.altKey?.1:1;this.start(t),i._delta=e(this.config.keyboardDisplacement,n),i._keyboardActive=!0,u.addTo(i._movement,i._delta),this.compute(t),this.emit()}}keyUp(t){t.key in F&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function xt(s){"persist"in s&&typeof s.persist=="function"&&s.persist()}const A=typeof window<"u"&&window.document&&window.document.createElement;function tt(){return A&&"ontouchstart"in window}function Ot(){return tt()||A&&window.navigator.maxTouchPoints>1}function Mt(){return A&&"onpointerdown"in window}function Pt(){return A&&"exitPointerLock"in window.document}function Ct(){try{return"constructor"in GestureEvent}catch{return!1}}const m={isBrowser:A,gesture:Ct(),touch:tt(),touchscreen:Ot(),pointer:Mt(),pointerLock:Pt()},Lt=250,Rt=180,Kt=.5,Vt=50,Bt=250,jt=10,et={mouse:0,touch:0,pen:8},Ht=l(l({},g),{},{device(s,t,{pointer:{touch:e=!1,lock:i=!1,mouse:n=!1}={}}){return this.pointerLock=i&&m.pointerLock,m.touch&&e?"touch":this.pointerLock?"mouse":m.pointer&&!n?"pointer":m.touch?"touch":"mouse"},preventScrollAxis(s,t,{preventScroll:e}){if(this.preventScrollDelay=typeof e=="number"?e:e||e===void 0&&s?Lt:void 0,!(!m.touchscreen||e===!1))return s||(e!==void 0?"y":void 0)},pointerCapture(s,t,{pointer:{capture:e=!0,buttons:i=1,keys:n=!0}={}}){return this.pointerButtons=i,this.keys=n,!this.pointerLock&&this.device==="pointer"&&e},threshold(s,t,{filterTaps:e=!1,tapsThreshold:i=3,axis:n=void 0}){const r=u.toVector(s,e?i:n?1:0);return this.filterTaps=e,this.tapsThreshold=i,r},swipe({velocity:s=Kt,distance:t=Vt,duration:e=Bt}={}){return{velocity:this.transform(u.toVector(s)),distance:this.transform(u.toVector(t)),duration:e}},delay(s=0){switch(s){case!0:return Rt;case!1:return 0;default:return s}},axisThreshold(s){return s?l(l({},et),s):et},keyboardDisplacement(s=jt){return s}});function st(s){const[t,e]=s.overflow,[i,n]=s._delta,[r,o]=s._direction;(t<0&&i>0&&r<0||t>0&&i<0&&r>0)&&(s._movement[0]=s._movementBound[0]),(e<0&&n>0&&o<0||e>0&&n<0&&o>0)&&(s._movement[1]=s._movementBound[1])}const Ut=30,Yt=100;class Gt extends J{constructor(...t){super(...t),d(this,"ingKey","pinching"),d(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:e,lastOffset:i}=this.state;t==="wheel"?this.state.offset=u.add(e,i):this.state.offset=[(1+e[0])*i[0],e[1]+i[1]]}computeMovement(){const{offset:t,lastOffset:e}=this.state;this.state.movement=[t[0]/e[0],t[1]-e[1]]}axisIntent(){const t=this.state,[e,i]=t._movement;if(!t.axis){const n=Math.abs(e)*Ut-Math.abs(i);n<0?t.axis="angle":n>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&(this.state.axis==="scale"?t[1]=0:this.state.axis==="angle"&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const e=this.state,i=this.ctrl.touchIds;if(e._active&&e._touchIds.every(r=>i.has(r))||i.size<2)return;this.start(t),e._touchIds=Array.from(i).slice(0,2);const n=X(t,e._touchIds);n&&this.pinchStart(t,n)}pointerStart(t){if(t.buttons!=null&&t.buttons%2!==1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.pointerId);const e=this.state,i=e._pointerEvents,n=this.ctrl.pointerIds;if(e._active&&Array.from(i.keys()).every(o=>n.has(o))||(i.size<2&&i.set(t.pointerId,t),e._pointerEvents.size<2))return;this.start(t);const r=P(...Array.from(i.values()));r&&this.pinchStart(t,r)}pinchStart(t,e){const i=this.state;i.origin=e.origin,this.computeValues([e.distance,e.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const e=X(t,this.state._touchIds);e&&this.pinchMove(t,e)}pointerMove(t){const e=this.state._pointerEvents;if(e.has(t.pointerId)&&e.set(t.pointerId,t),!this.state._active)return;const i=P(...Array.from(e.values()));i&&this.pinchMove(t,i)}pinchMove(t,e){const i=this.state,n=i._values[1],r=e.angle-n;let o=0;Math.abs(r)>270&&(o+=Math.sign(r)),this.computeValues([e.distance,e.angle-360*o]),i.origin=e.origin,i.turns=o,i._movement=[i._values[0]/i._initial[0]-1,i._values[1]-i._initial[1]],this.compute(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(e=>!this.ctrl.touchIds.has(e))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const e=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch{}e._pointerEvents.has(t.pointerId)&&e._pointerEvents.delete(t.pointerId),e._active&&e._pointerEvents.size<2&&(e._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const e=this.state;e._active||(this.start(t),this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const e=this.state;this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY];const i=e._movement;e._movement=[t.scale-1,t.rotation],e._delta=u.sub(e._movement,i),this.compute(t),this.emit()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const e=this.config.modifierKey;e&&(Array.isArray(e)?!e.find(i=>t[i]):!t[e])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||t.cancelable&&t.preventDefault();const i=this.state;i._delta=[-$(t)[1]/Yt*i.offset[0],0],u.addTo(i._movement,i._delta),st(i),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const e=this.config.device;e&&(t(e,"start",this[e+"Start"].bind(this)),t(e,"change",this[e+"Move"].bind(this)),t(e,"end",this[e+"End"].bind(this)),t(e,"cancel",this[e+"End"].bind(this)),t("lostPointerCapture","",this[e+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}}const Nt=l(l({},Z),{},{device(s,t,{shared:e,pointer:{touch:i=!1}={}}){if(e.target&&!m.touch&&m.gesture)return"gesture";if(m.touch&&i)return"touch";if(m.touchscreen){if(m.pointer)return"pointer";if(m.touch)return"touch"}},bounds(s,t,{scaleBounds:e={},angleBounds:i={}}){const n=o=>{const c=q(I(e,o),{min:-1/0,max:1/0});return[c.min,c.max]},r=o=>{const c=q(I(i,o),{min:-1/0,max:1/0});return[c.min,c.max]};return typeof e!="function"&&typeof i!="function"?[n(),r()]:o=>[n(o),r(o)]},threshold(s,t,e){return this.lockDirection=e.axis==="lock",u.toVector(s,this.lockDirection?[.1,3]:0)},modifierKey(s){return s===void 0?"ctrlKey":s},pinchOnWheel(s=!0){return s}});class Xt extends T{constructor(...t){super(...t),d(this,"ingKey","moving")}move(t){this.config.mouseOnly&&t.pointerType!=="mouse"||(this.state._active?this.moveChange(t):this.moveStart(t),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(t){this.start(t),this.computeValues(b(t)),this.compute(t),this.computeInitial(),this.emit()}moveChange(t){if(!this.state._active)return;const e=b(t),i=this.state;i._delta=u.sub(e,i._values),u.addTo(i._movement,i._delta),this.computeValues(e),this.compute(t),this.emit()}moveEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}bind(t){t("pointer","change",this.move.bind(this)),t("pointer","leave",this.moveEnd.bind(this))}}const Wt=l(l({},g),{},{mouseOnly:(s=!0)=>s});class zt extends T{constructor(...t){super(...t),d(this,"ingKey","scrolling")}scroll(t){this.state._active||this.start(t),this.scrollChange(t),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(t){t.cancelable&&t.preventDefault();const e=this.state,i=bt(t);e._delta=u.sub(i,e._values),u.addTo(e._movement,e._delta),this.computeValues(i),this.compute(t),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("scroll","",this.scroll.bind(this))}}const $t=g;class qt extends T{constructor(...t){super(...t),d(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const e=this.state;e._delta=$(t),u.addTo(e._movement,e._delta),st(e),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}}const Jt=g;class Qt extends T{constructor(...t){super(...t),d(this,"ingKey","hovering")}enter(t){this.config.mouseOnly&&t.pointerType!=="mouse"||(this.start(t),this.computeValues(b(t)),this.compute(t),this.emit())}leave(t){if(this.config.mouseOnly&&t.pointerType!=="mouse")return;const e=this.state;if(!e._active)return;e._active=!1;const i=b(t);e._movement=e._delta=u.sub(i,e._values),this.computeValues(i),this.compute(t),e.delta=e.movement,this.emit()}bind(t){t("pointer","enter",this.enter.bind(this)),t("pointer","leave",this.leave.bind(this))}}const Zt=l(l({},g),{},{mouseOnly:(s=!0)=>s}),it=new Map,L=new Map;function Ft(s){it.set(s.key,s.engine),L.set(s.key,s.resolver)}const te={key:"drag",engine:Dt,resolver:Ht},ye={key:"hover",engine:Qt,resolver:Zt},be={key:"move",engine:Xt,resolver:Wt},we={key:"pinch",engine:Gt,resolver:Nt},Ee={key:"scroll",engine:zt,resolver:$t},Te={key:"wheel",engine:qt,resolver:Jt};var R=V(67294);function ee(s,t){if(s==null)return{};var e={},i=Object.keys(s),n,r;for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(e[n]=s[n]);return e}function se(s,t){if(s==null)return{};var e=ee(s,t),i,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);for(n=0;n<r.length;n++)i=r[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(s,i)&&(e[i]=s[i])}return e}const ie={target(s){if(s)return()=>"current"in s?s.current:s},enabled(s=!0){return s},window(s=m.isBrowser?window:void 0){return s},eventOptions({passive:s=!0,capture:t=!1}={}){return{passive:s,capture:t}},transform(s){return s}},ne=["target","eventOptions","window","enabled","transform"];function k(s={},t){const e={};for(const[i,n]of Object.entries(t))switch(typeof n){case"function":e[i]=n.call(e,s[i],i,s);break;case"object":e[i]=k(s[i],n);break;case"boolean":n&&(e[i]=s[i]);break}return e}function re(s,t,e={}){const i=s,{target:n,eventOptions:r,window:o,enabled:c,transform:f}=i,h=se(i,ne);if(e.shared=k({target:n,eventOptions:r,window:o,enabled:c,transform:f},ie),t){const a=L.get(t);e[t]=k(l({shared:e.shared},h),a)}else for(const a in h){const _=L.get(a);_&&(e[a]=k(l({shared:e.shared},h[a]),_))}return e}class nt{constructor(t,e){d(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=e}add(t,e,i,n,r){const o=this._listeners,c=_t(e,i),f=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},h=l(l({},f),r);t.addEventListener(c,n,h);const a=()=>{t.removeEventListener(c,n,h),o.delete(a)};return o.add(a),a}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class oe{constructor(){d(this,"_timeouts",new Map)}add(t,e,i=140,...n){this.remove(t),this._timeouts.set(t,window.setTimeout(e,i,...n))}remove(t){const e=this._timeouts.get(t);e&&window.clearTimeout(e)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class ae{constructor(t){d(this,"gestures",new Set),d(this,"_targetEventStore",new nt(this)),d(this,"gestureEventStores",{}),d(this,"gestureTimeoutStores",{}),d(this,"handlers",{}),d(this,"config",{}),d(this,"pointerIds",new Set),d(this,"touchIds",new Set),d(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),ce(this,t)}setEventIds(t){if(S(t))return this.touchIds=new Set(yt(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,e){this.handlers=t,this.nativeHandlers=e}applyConfig(t,e){this.config=re(t,e,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const e=this.config.shared,i={};let n;if(!(e.target&&(n=e.target(),!n))){if(e.enabled){for(const o of this.gestures){const c=this.config[o],f=rt(i,c.eventOptions,!!n);if(c.enabled){const h=it.get(o);new h(this,t,o).bind(f)}}const r=rt(i,e.eventOptions,!!n);for(const o in this.nativeHandlers)r(o,"",c=>this.nativeHandlers[o](l(l({},this.state.shared),{},{event:c,args:t})),void 0,!0)}for(const r in i)i[r]=Tt(...i[r]);if(!n)return i;for(const r in i){const{device:o,capture:c,passive:f}=mt(r);this._targetEventStore.add(n,o,"",i[r],{capture:c,passive:f})}}}}function w(s,t){s.gestures.add(t),s.gestureEventStores[t]=new nt(s,t),s.gestureTimeoutStores[t]=new oe}function ce(s,t){t.drag&&w(s,"drag"),t.wheel&&w(s,"wheel"),t.scroll&&w(s,"scroll"),t.move&&w(s,"move"),t.pinch&&w(s,"pinch"),t.hover&&w(s,"hover")}const rt=(s,t,e)=>(i,n,r,o={},c=!1)=>{var f,h;const a=(f=o.capture)!==null&&f!==void 0?f:t.capture,_=(h=o.passive)!==null&&h!==void 0?h:t.passive;let p=c?i:dt(i,n,a);e&&_&&(p+="Passive"),s[p]=s[p]||[],s[p].push(r)},ue=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function he(s){const t={},e={},i=new Set;for(let n in s)ue.test(n)?(i.add(RegExp.lastMatch),e[n]=s[n]):t[n]=s[n];return[e,t,i]}function E(s,t,e,i,n,r){if(!s.has(e)||!EngineMap.has(i))return;const o=e+"Start",c=e+"End",f=h=>{let a;return h.first&&o in t&&t[o](h),e in t&&(a=t[e](h)),h.last&&c in t&&t[c](h),a};n[i]=f,r[i]=r[i]||{}}function Ae(s,t){const[e,i,n]=he(s),r={};return E(n,e,"onDrag","drag",r,t),E(n,e,"onWheel","wheel",r,t),E(n,e,"onScroll","scroll",r,t),E(n,e,"onPinch","pinch",r,t),E(n,e,"onMove","move",r,t),E(n,e,"onHover","hover",r,t),{handlers:r,config:t,nativeHandlers:i}}function v(s,t={},e,i){const n=R.useMemo(()=>new ae(s),[]);if(n.applyHandlers(s,i),n.applyConfig(t,e),R.useEffect(n.effect.bind(n)),R.useEffect(()=>n.clean.bind(n),[]),t.target===void 0)return n.bind.bind(n)}function le(s,t){return Ft(te),v({drag:s},t||{},"drag")}function Se(s,t){return registerAction(pinchAction),v({pinch:s},t||{},"pinch")}function Ie(s,t){return registerAction(wheelAction),v({wheel:s},t||{},"wheel")}function ke(s,t){return registerAction(scrollAction),v({scroll:s},t||{},"scroll")}function De(s,t){return registerAction(moveAction),v({move:s},t||{},"move")}function xe(s,t){return registerAction(hoverAction),v({hover:s},t||{},"hover")}function fe(s){return s.forEach(registerAction),function(e,i){const{handlers:n,nativeHandlers:r,config:o}=parseMergedHandlers(e,i||{});return v(n,o,void 0,r)}}function Oe(s,t){return fe([dragAction,pinchAction,scrollAction,wheelAction,moveAction,hoverAction])(s,t||{})}}}]);
|