biu.define({name:"@ali/hmod-adc-2025-link-button",version:"0.1.4",dependencies:{react:"^16.8.1"}},function(e,t,n){"use strict";var o=Object.defineProperty,r=Object.defineProperties,a=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,l=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&l(e,n,t[n]);if(c)for(var n of c(t))i.call(t,n)&&l(e,n,t[n]);return e},p=(e,t)=>r(e,a(t));const b=e("react"),d={button:"_423699996bedf83b3ad1dca4c2e49da7_button","has-icon":"_423699996bedf83b3ad1dca4c2e49da7_has-icon"};n.exports=({text:e,href:t,iconPosition:n="none",mouseTracking:o,className:r,spm:a,scm:c,children:s})=>{const[i,l]=b.useState(1/0),[f,m]=b.useState(1/0),[x,g]=b.useState("-1000px"),[h,y]=b.useState("-1000px");let O="button";const j={};t&&(O="a",j.href=t,j.target="_blank");const v={style:{"--mouse-x":x,"--mouse-y":h},onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l(t.left),m(t.top)},onMouseMove:e=>{g((e.clientX-i).toFixed(0)+"px"),y((e.clientY-f).toFixed(0)+"px")},onMouseLeave:()=>{l(1/0),m(1/0),g("-1000px"),y("-1000px")}};return b.createElement(O,p(u(p(u({},j),{className:[d.button,["left","right"].includes(n)?d["has-icon"]:"",r].filter(Boolean).join(" ")}),o?v:{}),{"data-spm":a,"data-tracker-scm":c}),"left"===n&&s,e,"right"===n&&s)}});
biu.define({name:"@ali/hmod-adc-2025-share-button",version:"0.0.6",dependencies:{react:"^16.8.1","react-dom":">=16.9.0"}},function(e,t,n){"use strict";var r,o,i,a,A=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e},f=(e,t)=>s(e,l(t)),m=(e,t,n)=>(p(e,"symbol"!=typeof t?t+"":t,n),n),g=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},y=(e,t,n)=>(((e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)})(e,t,"access private method"),n),v=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{A(n.next(e))}catch(t){o(t)}},a=e=>{try{A(n.throw(e))}catch(t){o(t)}},A=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);A((n=n.apply(e,t)).next())});const b=e("react"),w=e("react-dom");function B(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const C=B(b),x=B(w);function E(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=E(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function k(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=E(e))&&(r&&(r+=" "),r+=t);return r}const F="_9a1d73bbcd1a80626a31035a12410804_icon",S="_9a1d73bbcd1a80626a31035a12410804_spin";function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var U=["role","spin","component","className","style","children"];function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){I(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var H=function(e){var t=e.role,n=void 0===t?"img":t,r=e.spin,o=e.component,i=e.className,a=e.style;e.children;var A=N(e,U);return b.createElement("span",O({role:n,className:k(F,I({},S,r),i),style:M({},a)},A),o)};function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}H.displayName="AdcIcon";var P=function(e){return b.createElement(H,_({spin:!1,component:b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"chevron-left"},b.createElement("g",{clipPath:"url(#3f2ca)"},b.createElement("g",{transform:"matrix(-1,0,0,1,43.4140625,0)"},b.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M21.70703125,25.29290771484375L30.99992125,16.00000771484375L21.70703125,6.70711771484375L23.12124125,5.29290771484375L33.82833125,16.00000771484375L23.12124125,26.70710771484375L21.70703125,25.29290771484375Z"}))))},e))};function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(this,arguments)}var L=function(e){return b.createElement(H,D({spin:!1,component:b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"chevron-right"},b.createElement("g",{clipPath:"url(#20bea)"},b.createElement("g",null,b.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M10.29296875,25.29290771484375L19.58585875,16.00000771484375L10.29296875,6.70711771484375L11.70717875,5.29290771484375L22.414268749999998,16.00000771484375L11.70717875,26.70710771484375L10.29296875,25.29290771484375Z"}))))},e))};function R(e){var t=e.htmlStr;return b.createElement("div",{className:"adc-rule-text-render-container",dangerouslySetInnerHTML:{__html:t}})}function z(e,t,n,r,o,i,a){try{var A=e[i](a),s=A.value}catch(l){return void n(l)}A.done?t(s):Promise.resolve(s).then(r,o)}function K(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){z(i,r,o,a,A,"next",e)}function A(e){z(i,r,o,a,A,"throw",e)}a(void 0)})}}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e){var t=function(e,t){if("object"!=V(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==V(t)?t:t+""}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$(r.key),r)}}function W(e,t,n){return t&&G(e.prototype,t),n&&G(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e,t){if(t&&("object"==V(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}function X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function J(e,t){return(J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J(e,t)}function ee(e,t,n){return(t=$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function re(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var oe,ie={exports:{}},ae={exports:{}};(oe=ae).exports=function(e,t){this.v=e,this.k=t},oe.exports.__esModule=!0,oe.exports.default=oe.exports;var Ae=ae.exports,se={exports:{}},le={exports:{}};!function(e){function t(n,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(A){a=0}e.exports=t=function(e,n,r,o){function i(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(le);var ce=le.exports;!function(e){var t=ce;function n(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var r,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",A=i.toStringTag||"@@toStringTag";function s(e,n,i,a){var A=n&&n.prototype instanceof c?n:c,s=Object.create(A.prototype);return t(s,"_invoke",function(e,t,n){var i,a,A,s=0,c=n||[],u=!1,d={p:0,n:0,v:r,a:p,f:p.bind(r,4),d:function(e,t){return i=e,a=0,A=r,d.n=t,l}};function p(e,t){for(a=e,A=t,o=0;!u&&s&&!n&&o<c.length;o++){var n,i=c[o],p=d.p,h=i[2];e>3?(n=h===t)&&(A=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=r):i[0]<=p&&((n=e<2&&p<i[1])?(a=0,d.v=t,d.n=i[1]):p<h&&(n=e<3||i[0]>t||t>h)&&(i[4]=e,i[5]=t,d.n=h,a=0))}if(n||e>1)return l;throw u=!0,t}return function(n,c,h){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&p(c,h),a=c,A=h;(o=a<2?r:A)||!u;){i||(a?a<3?(a>1&&(d.n=-1),p(a,A)):d.n=A:d.v=A);try{if(s=2,i){if(a||(n="next"),o=i[n]){if(!(o=o.call(i,A)))throw TypeError("iterator result is not an object");if(!o.done)return o;A=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(A=TypeError("The iterator does not provide a '"+n+"' method"),a=1);i=r}else if((o=(u=d.n<0)?A:e.call(t,d))!==l)break}catch(f){i=r,a=1,A=f}finally{s=1}}return{value:o,done:u}}}(e,i,a),!0),s}var l={};function c(){}function u(){}function d(){}o=Object.getPrototypeOf;var p=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),h=d.prototype=c.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,t(e,A,"GeneratorFunction")),e.prototype=Object.create(h),e}return u.prototype=d,t(h,"constructor",d),t(d,"constructor",u),u.displayName="GeneratorFunction",t(d,A,"GeneratorFunction"),t(h),t(h,A,"Generator"),t(h,a,function(){return this}),t(h,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:s,m:f}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(se);var ue=se.exports,de={exports:{}},pe={exports:{}},he={exports:{}};!function(e){var t=Ae,n=ce;e.exports=function e(r,o){function i(e,n,a,A){try{var s=r[e](n),l=s.value;return l instanceof t?o.resolve(l.v).then(function(e){i("next",e,a,A)},function(e){i("throw",e,a,A)}):o.resolve(l).then(function(e){s.value=e,a(s)},function(e){return i("throw",e,a,A)})}catch(c){A(c)}}var a;this.next||(n(e.prototype),n(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(e,t,n){function r(){return new o(function(t,r){i(e,n,t,r)})}return a=a?a.then(r,r):r()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(he);var fe=he.exports;!function(e){var t=ue,n=fe;e.exports=function(e,r,o,i,a){return new n(t().w(e,r,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(pe);var me=pe.exports;!function(e){var t=me;e.exports=function(e,n,r,o,i){var a=t(e,n,r,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}(de);var ge=de.exports,ye={exports:{}};!function(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(ye);var ve=ye.exports,be={exports:{}},we={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(we);var Be=we.exports;!function(e){var t=Be.default;e.exports=function(e){if(null!=e){var n=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(be);var Ce=be.exports;!function(e){var t=Ae,n=ue,r=ge,o=me,i=fe,a=ve,A=Ce;function s(){var l=n(),c=l.m(s),u=(Object.getPrototypeOf?Object.getPrototypeOf(c):c.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,A(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=s=function(){return{wrap:function(e,t,n,r){return l.w(h(e),t,n,r&&r.reverse())},isGeneratorFunction:d,mark:l.m,awrap:function(e,n){return new t(e,n)},AsyncIterator:i,async:function(e,t,n,i,a){return(d(t)?o:r)(h(e),t,n,i,a)},keys:a,values:A}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}(ie);var xe=(0,ie.exports)(),Ee=xe;try{regeneratorRuntime=xe}catch(b0){"object"==typeof globalThis?globalThis.regeneratorRuntime=xe:Function("r","regeneratorRuntime = r")(xe)}const ke=ne(Ee);var Fe=function(){return W(function e(){j(this,e),ee(this,"listeners",void 0)},[{key:"on",value:function(e,t){this.listeners||(this.listeners={}),this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}},{key:"off",value:function(e,t){if(this.listeners&&this.listeners[e]){t||delete this.listeners[e];var n=this.listeners[e].indexOf(t);-1!==n&&this.listeners[e].splice(n,1)}}},{key:"emit",value:function(e,t){this.listeners&&this.listeners[e]&&this.listeners[e].forEach(function(e){return e(t)})}}])}();function Se(){return Qe.apply(this,arguments)}function Qe(){return(Qe=K(ke.mark(function e(){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.$ACE){e.next=2;break}return e.abrupt("return",window.$ACE);case 2:return e.next=4,Oe("//g.alicdn.com/??aliyun/util/".concat("1.2.30","/index.js"));case 4:return e.abrupt("return",window.$ACE);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}window.$ACE_LOADER=Se;const Ue=function(e){return Se().then(e)};function Oe(e){return Te.apply(this,arguments)}function Te(){return(Te=K(ke.mark(function e(t){var n,r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=document.getElementsByTagName("head")[0],(r=document.createElement("script")).setAttribute("type","text/javascript"),r.setAttribute("src",t),n.appendChild(r),e.abrupt("return",new Promise(function(e){r.onload=function(){e()}}));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ne(e){return e?Object.keys(e).map(function(t){var n=e[t];return[t,encodeURIComponent(n)].join("=")}).join("&"):""}function He(e){return _e.apply(this,arguments)}function _e(){return _e=K(ke.mark(function e(t){var n,r,o,i,a=arguments;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=null,(n=a.length>1&&void 0!==a[1]?a[1]:{}).queries&&(o=-1===t.indexOf("?")?"?":"&",t+=o+Ne(n.queries)),e.prev=1,e.next=2,fetch(t,{credentials:n.includeCookie?"include":void 0});case 2:r=e.sent,e.next=4;break;case 3:throw e.prev=3,e.catch(1);case 4:if(r.headers.get("eagleeye-traceid")||r.headers.get("eagleid"),200===r.status){e.next=5;break}throw new Error("\u63a5\u53e3 ".concat(t," \u8bf7\u6c42\u9519\u8bef\uff0ccode: ").concat(r.status));case 5:return e.prev=5,e.next=6,r.json();case 6:i=e.sent,e.next=8;break;case 7:throw e.prev=7,e.catch(5);case 8:return e.abrupt("return",i);case 9:case"end":return e.stop()}},e,null,[[1,3],[5,7]])})),_e.apply(this,arguments)}function Pe(e){return De.apply(this,arguments)}function De(){return De=K(ke.mark(function e(t){var n,r,o,i,a,A,s=arguments;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=s.length>1&&void 0!==s[1]?s[1]:{}).body){e.next=3;break}A=n.contentType||"json",e.next="form"===A?1:"json"===A?2:3;break;case 1:return r="application/x-www-form-urlencoded",o=Ne(n.body),e.abrupt("continue",3);case 2:return r="application/json",o=JSON.stringify(n.body),e.abrupt("continue",3);case 3:return i=null,e.prev=4,e.next=5,fetch(t,{method:"POST",body:o,headers:Ie(Ie({},n.headers),{},{"content-type":r}),credentials:"include"});case 5:i=e.sent,e.next=7;break;case 6:throw e.prev=6,e.catch(4);case 7:if(i.headers.get("eagleeye-traceid")||i.headers.get("eagleid"),200===i.status){e.next=8;break}throw new Error("\u63a5\u53e3 ".concat(t," \u8bf7\u6c42\u9519\u8bef\uff0ccode: ").concat(i.status));case 8:return e.prev=8,e.next=9,i.json();case 9:a=e.sent,e.next=11;break;case 10:throw e.prev=10,e.catch(8);case 11:return e.abrupt("return",a);case 12:case"end":return e.stop()}},e,null,[[4,6],[8,10]])})),De.apply(this,arguments)}function Le(){return Re.apply(this,arguments)}function Re(){return(Re=K(ke.mark(function e(){var t,n,r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://bridge.aliyun.com/abs/home/queryUserBaseInfo",{includeCookie:!0});case 1:if(t=e.sent,n=t.code,r=t.data,"USER_NOT_LOGIN"!==n&&r){e.next=2;break}return e.abrupt("return",null);case 2:return e.abrupt("return",r);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ze(){return Ke.apply(this,arguments)}function Ke(){return Ke=K(ke.mark(function e(){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=K(ke.mark(function e(t){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Ue(function(){var e=K(ke.mark(function e(n){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,n.get("Account");case 1:e.sent.toLogin(),t(!1);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e)})),Ke.apply(this,arguments)}function je(){return Ve.apply(this,arguments)}function Ve(){return Ve=K(ke.mark(function e(){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=K(ke.mark(function e(t){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Ue(function(){var e=K(ke.mark(function e(n){var r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,n.get("Account");case 1:return r=e.sent,e.next=2,r.isCertificated();case 2:e.sent||t(!1),t(!0);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e)})),Ve.apply(this,arguments)}function $e(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var r=t[n].split("=");if(r[0]==e)return r[1]}return!1}function Ge(){return We.apply(this,arguments)}function We(){return(We=K(ke.mark(function e(){var t,n,r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="draft"==$e("__query_mode__")?"?__query_mode__=draft":"",e.next=1,He("https://query.aliyun.com/rest/yundashi.errorText"+t);case 1:return n=e.sent,r={},n.map(function(e){r[e.code]=e.message}),e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Ye=window.location.href.indexOf("isPreview=1")>0,qe=Ye?"pre-t.aliyun.com":"bridge.aliyun.com",Xe=Ye?"https://pre-page.aliyun.com":"https://page.aliyun.com",Je={personal:"\u4e2a\u4eba",enterprise:"\u4f01\u4e1a",all:"\u4e91\u5927\u4f7f"};function Ze(){return et.apply(this,arguments)}function et(){return(et=K(ke.mark(function e(){var t;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://bridge.aliyun.com/abs/ambUser/queryAmbSelf",{includeCookie:!0});case 1:if("200"!==(t=e.sent).code||!t.data){e.next=2;break}return e.abrupt("return",t);case 2:return e.abrupt("return",!1);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function tt(e){return nt.apply(this,arguments)}function nt(){return(nt=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/ambUser/apply"),{includeCookie:!0,queries:{source:t}});case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function rt(e){return ot.apply(this,arguments)}function ot(){return(ot=K(ke.mark(function e(t){var n,r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,fetch("".concat("","?goodId=").concat(t),{credentials:"include"});case 1:if(200!==(n=e.sent).status){e.next=4;break}return e.next=2,n.json();case 2:if("200"!==(r=e.sent).code){e.next=3;break}return e.abrupt("return",r.data);case 3:throw new Error("".concat(r.errMessage));case 4:throw new Error("".concat(n.status));case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function it(e){return at.apply(this,arguments)}function at(){return(at=K(ke.mark(function e(t){var n,r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,fetch("".concat("","?goodId=").concat(t),{credentials:"include"});case 1:if(200!==(n=e.sent).status){e.next=4;break}return e.next=2,n.json();case 2:if("200"!==(r=e.sent).code){e.next=3;break}return e.abrupt("return",r.data);case 3:throw new Error("".concat(r.errMessage));case 4:throw new Error("".concat(n.status));case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function At(e){return st.apply(this,arguments)}function st(){return(st=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/ambUser/openCouponAct"),{includeCookie:!0,queries:t});case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function lt(e){return ct.apply(this,arguments)}function ct(){return(ct=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/ambUser/closeCouponAct"),{includeCookie:!0,queries:t});case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ut(e){return dt.apply(this,arguments)}function dt(){return(dt=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/ambUser/couponActCfg"),{includeCookie:!0,queries:t});case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function pt(e){return ht.apply(this,arguments)}function ht(){return(ht=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/ambUser/couponActConfigInfo"),{includeCookie:!0,queries:t});case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ft(){return mt.apply(this,arguments)}function mt(){return(mt=K(ke.mark(function e(){var t;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/ambUser/certified"),{includeCookie:!0});case 1:return t=e.sent,e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function gt(e){return yt.apply(this,arguments)}function yt(){return(yt=K(ke.mark(function e(t){var n,r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={clubTaskBiz:"subTask....".concat(t,"..")},e.next=1,He("https://".concat(qe,"/abs/userTask/queryUserRecord"),{includeCookie:!0,queries:n});case 1:return r=e.sent,e.abrupt("return",r.data);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function vt(e){return bt.apply(this,arguments)}function bt(){return(bt=K(ke.mark(function e(t){var n,r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={source:window.innerWidth<=1055?"mobile":"pc",taskId:t},e.next=1,He("https://".concat(qe,"/abs/userTask/shareAcceptTask"),{includeCookie:!0,queries:n});case 1:return r=e.sent,e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function wt(e){return Bt.apply(this,arguments)}function Bt(){return(Bt=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/userTask/queryTask"),{includeCookie:!0,queries:{taskId:t}});case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ct(e){return xt.apply(this,arguments)}function xt(){return(xt=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/ambUser/actTopUser"),{includeCookie:!0,queries:{actCode:t}});case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Et(e){return kt.apply(this,arguments)}function kt(){return(kt=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/amb/queryActTop"),{includeCookie:!0,queries:{actCode:t}});case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ft(e,t){return St.apply(this,arguments)}function St(){return(St=K(ke.mark(function e(t,n){var r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/userTaskInfo/ownTaskRank"),{includeCookie:!0,queries:{taskId:t,calibre:n}});case 1:return r=e.sent,e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Qt(e,t){return Ut.apply(this,arguments)}function Ut(){return(Ut=K(ke.mark(function e(t,n){var r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,He("https://".concat(qe,"/abs/userTaskInfo/taskRankingList"),{includeCookie:!0,queries:{taskId:t,calibre:n}});case 1:return r=e.sent,e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Ot={exports:{}},Tt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(Tt){var Mt=new Uint8Array(16);Ot.exports=function(){return Tt(Mt),Mt}}else{var It=new Array(16);Ot.exports=function(){for(var e,t=0;t<16;t++)3&t||(e=4294967296*Math.random()),It[t]=e>>>((3&t)<<3)&255;return It}}for(var Nt=Ot.exports,Ht=[],_t=0;_t<256;++_t)Ht[_t]=(_t+256).toString(16).substr(1);var Pt=function(e,t){var n=t||0,r=Ht;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")},Dt=Nt,Lt=Pt;var Rt=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||Dt)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||Lt(o)};const zt=ne(Rt);function Kt(e){return jt.apply(this,arguments)}function jt(){return(jt=K(ke.mark(function e(t){var n,r,o;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=zt(),r={activityId:t,"extendMap[locale]":"zh-CN",requestId:n},e.next=1,Pe("".concat(Xe,"/play/activity/drawPrize"),{contentType:"form",body:r});case 1:return o=e.sent,e.abrupt("return",o);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Vt(e){return $t.apply(this,arguments)}function $t(){return($t=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Pe("".concat(Xe,"/play/activity/prizeConfigItem/List"),{contentType:"form",body:{activityId:t}});case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Gt(e){return Wt.apply(this,arguments)}function Wt(){return Wt=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Ue(function(){var e=K(ke.mark(function e(n){var r,o,i,a;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.Risk,o=null,i=null,e.next=1,r.getToken().then(function(e){o=e.collina,i=e.umidToken});case 1:return e.next=2,Pe("https://page.aliyun.com/lottery/draw_prize.json",{contentType:"form",body:{activityId:t,collina:o,umidToken:i}});case 2:return a=e.sent,e.abrupt("return",a);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),e.abrupt("return",n);case 1:case"end":return e.stop()}},e)})),Wt.apply(this,arguments)}function Yt(e){return qt.apply(this,arguments)}function qt(){return(qt=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Pe("https://page.aliyun.com/lottery/get_user_draw_opportunity.json",{contentType:"form",body:{activityId:t}});case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Xt(e,t){return Jt.apply(this,arguments)}function Jt(){return(Jt=K(ke.mark(function e(t,n){var r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Pe("https://page.aliyun.com/lottery/list_user_win.json",{contentType:"form",body:{activityIds:t,pageSize:n}});case 1:return r=e.sent,e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Zt(e,t){return en.apply(this,arguments)}function en(){return(en=K(ke.mark(function e(t,n){var r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Pe("https://page.aliyun.com/lottery/list_all_win.json",{contentType:"form",body:{activityId:t,pageSize:n}});case 1:return r=e.sent,e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var tn=window.__ALIYUN_EXPERIENCE_ELEMENT__,nn=tn.Dialog,rn=function(e){tn.Message.show({type:"error",title:e,align:"cc cc"})},on=function(e){tn.Message.show({type:"success",title:e,align:"cc cc"})};tn.Image;var an=tn.Button;tn.Overlay,tn.Icon;const An={btn:"ac971401c632a381982f2d5f73097ac5_btn","btn-secondary":"ac971401c632a381982f2d5f73097ac5_btn-secondary","btn-primary":"ac971401c632a381982f2d5f73097ac5_btn-primary","dialog-title":"ac971401c632a381982f2d5f73097ac5_dialog-title",share_dialog:"ac971401c632a381982f2d5f73097ac5_share_dialog",share_view:"ac971401c632a381982f2d5f73097ac5_share_view",share_title:"ac971401c632a381982f2d5f73097ac5_share_title",share_desc:"ac971401c632a381982f2d5f73097ac5_share_desc",share_content:"ac971401c632a381982f2d5f73097ac5_share_content",copy_:"ac971401c632a381982f2d5f73097ac5_copy_",noImg:"ac971401c632a381982f2d5f73097ac5_noImg",currency_dialog:"ac971401c632a381982f2d5f73097ac5_currency_dialog","activity-dialog":"ac971401c632a381982f2d5f73097ac5_activity-dialog","modal-overlay":"ac971401c632a381982f2d5f73097ac5_modal-overlay",modal:"ac971401c632a381982f2d5f73097ac5_modal","no-certificated":"ac971401c632a381982f2d5f73097ac5_no-certificated",blue:"ac971401c632a381982f2d5f73097ac5_blue",orange:"ac971401c632a381982f2d5f73097ac5_orange"},sn={1688:"df3156488fa5da56d81a045f2e917d57-1688",qiye:"df3156488fa5da56d81a045f2e917d57-qiye",gerenkaifazhe:"df3156488fa5da56d81a045f2e917d57-gerenkaifazhe",gaoxiao:"df3156488fa5da56d81a045f2e917d57-gaoxiao","connection-line":"df3156488fa5da56d81a045f2e917d57-connection-line",hongbao:"df3156488fa5da56d81a045f2e917d57-hongbao",wangwang:"df3156488fa5da56d81a045f2e917d57-wangwang","gift--outline":"df3156488fa5da56d81a045f2e917d57-gift--outline","subtract--circle--outline":"df3156488fa5da56d81a045f2e917d57-subtract--circle--outline",arrow:"df3156488fa5da56d81a045f2e917d57-arrow","questionnaire--outline":"df3156488fa5da56d81a045f2e917d57-questionnaire--outline","arrows-down":"df3156488fa5da56d81a045f2e917d57-arrows-down","arrows-up":"df3156488fa5da56d81a045f2e917d57-arrows-up",circle_star1:"df3156488fa5da56d81a045f2e917d57-circle_star1",SLA:"df3156488fa5da56d81a045f2e917d57-SLA","a-responsivetime":"df3156488fa5da56d81a045f2e917d57-a-responsivetime",more1:"df3156488fa5da56d81a045f2e917d57-more1",system:"df3156488fa5da56d81a045f2e917d57-system","column-rectangle":"df3156488fa5da56d81a045f2e917d57-column-rectangle",calendar:"df3156488fa5da56d81a045f2e917d57-calendar","arrows-veritical":"df3156488fa5da56d81a045f2e917d57-arrows-veritical",size:"df3156488fa5da56d81a045f2e917d57-size","column-square":"df3156488fa5da56d81a045f2e917d57-column-square",framework:"df3156488fa5da56d81a045f2e917d57-framework",refund:"df3156488fa5da56d81a045f2e917d57-refund",invoice:"df3156488fa5da56d81a045f2e917d57-invoice",file:"df3156488fa5da56d81a045f2e917d57-file",zoom_in:"df3156488fa5da56d81a045f2e917d57-zoom_in",kuanjiantouyouzhuan:"df3156488fa5da56d81a045f2e917d57-kuanjiantouyouzhuan",mobile:"df3156488fa5da56d81a045f2e917d57-mobile",mobile_check:"df3156488fa5da56d81a045f2e917d57-mobile_check",comment_lines:"df3156488fa5da56d81a045f2e917d57-comment_lines",arrow_circular:"df3156488fa5da56d81a045f2e917d57-arrow_circular",transanction:"df3156488fa5da56d81a045f2e917d57-transanction",all:"df3156488fa5da56d81a045f2e917d57-all",package:"df3156488fa5da56d81a045f2e917d57-package",structured_data:"df3156488fa5da56d81a045f2e917d57-structured_data",footprint:"df3156488fa5da56d81a045f2e917d57-footprint",lists:"df3156488fa5da56d81a045f2e917d57-lists",all_fill:"df3156488fa5da56d81a045f2e917d57-all_fill",HOT2:"df3156488fa5da56d81a045f2e917d57-HOT2",NEW1:"df3156488fa5da56d81a045f2e917d57-NEW1",zhibozhong:"df3156488fa5da56d81a045f2e917d57-zhibozhong",yunxiaobao:"df3156488fa5da56d81a045f2e917d57-yunxiaobao",HOT1:"df3156488fa5da56d81a045f2e917d57-HOT1",NEW:"df3156488fa5da56d81a045f2e917d57-NEW","gongnengxingicon-yuanwenjian-Membership-113":"df3156488fa5da56d81a045f2e917d57-gongnengxingicon-yuanwenjian-Membership-113",huaban109:"df3156488fa5da56d81a045f2e917d57-huaban109",TAG:"df3156488fa5da56d81a045f2e917d57-TAG",HOT:"df3156488fa5da56d81a045f2e917d57-HOT",close_filled:"df3156488fa5da56d81a045f2e917d57-close_filled",Group:"df3156488fa5da56d81a045f2e917d57-Group",qrcode:"df3156488fa5da56d81a045f2e917d57-qrcode",PDF:"df3156488fa5da56d81a045f2e917d57-PDF",WeiBo:"df3156488fa5da56d81a045f2e917d57-WeiBo",WeChat:"df3156488fa5da56d81a045f2e917d57-WeChat",jiahao:"df3156488fa5da56d81a045f2e917d57-jiahao","buy-left":"df3156488fa5da56d81a045f2e917d57-buy-left","buy-detail":"df3156488fa5da56d81a045f2e917d57-buy-detail","buy-price":"df3156488fa5da56d81a045f2e917d57-buy-price",delete:"df3156488fa5da56d81a045f2e917d57-delete",article:"df3156488fa5da56d81a045f2e917d57-article",ranking:"df3156488fa5da56d81a045f2e917d57-ranking",dingtalk:"df3156488fa5da56d81a045f2e917d57-dingtalk",alipay:"df3156488fa5da56d81a045f2e917d57-alipay",taobao:"df3156488fa5da56d81a045f2e917d57-taobao",benefits:"df3156488fa5da56d81a045f2e917d57-benefits","go-to-link":"df3156488fa5da56d81a045f2e917d57-go-to-link",balance:"df3156488fa5da56d81a045f2e917d57-balance",customer_service:"df3156488fa5da56d81a045f2e917d57-customer_service",record:"df3156488fa5da56d81a045f2e917d57-record",time:"df3156488fa5da56d81a045f2e917d57-time",credits:"df3156488fa5da56d81a045f2e917d57-credits",renew:"df3156488fa5da56d81a045f2e917d57-renew",upload:"df3156488fa5da56d81a045f2e917d57-upload",download:"df3156488fa5da56d81a045f2e917d57-download",play:"df3156488fa5da56d81a045f2e917d57-play",region:"df3156488fa5da56d81a045f2e917d57-region",flow:"df3156488fa5da56d81a045f2e917d57-flow",view:"df3156488fa5da56d81a045f2e917d57-view",view_off:"df3156488fa5da56d81a045f2e917d57-view_off",message:"df3156488fa5da56d81a045f2e917d57-message",message_unread:"df3156488fa5da56d81a045f2e917d57-message_unread",order:"df3156488fa5da56d81a045f2e917d57-order",order_unread:"df3156488fa5da56d81a045f2e917d57-order_unread",cart_empty:"df3156488fa5da56d81a045f2e917d57-cart_empty",cart:"df3156488fa5da56d81a045f2e917d57-cart",notification:"df3156488fa5da56d81a045f2e917d57-notification",notification_off:"df3156488fa5da56d81a045f2e917d57-notification_off",phonecall:"df3156488fa5da56d81a045f2e917d57-phonecall",phonecall_off:"df3156488fa5da56d81a045f2e917d57-phonecall_off",lock:"df3156488fa5da56d81a045f2e917d57-lock",unlock:"df3156488fa5da56d81a045f2e917d57-unlock",discount:"df3156488fa5da56d81a045f2e917d57-discount",ET:"df3156488fa5da56d81a045f2e917d57-ET",calculator:"df3156488fa5da56d81a045f2e917d57-calculator",image:"df3156488fa5da56d81a045f2e917d57-image",email:"df3156488fa5da56d81a045f2e917d57-email",international:"df3156488fa5da56d81a045f2e917d57-international",search:"df3156488fa5da56d81a045f2e917d57-search",edit:"df3156488fa5da56d81a045f2e917d57-edit",link:"df3156488fa5da56d81a045f2e917d57-link",share:"df3156488fa5da56d81a045f2e917d57-share",setting:"df3156488fa5da56d81a045f2e917d57-setting",filter:"df3156488fa5da56d81a045f2e917d57-filter",copy:"df3156488fa5da56d81a045f2e917d57-copy",list:"df3156488fa5da56d81a045f2e917d57-list",refresh:"df3156488fa5da56d81a045f2e917d57-refresh",user:"df3156488fa5da56d81a045f2e917d57-user",sub_account:"df3156488fa5da56d81a045f2e917d57-sub_account",partner:"df3156488fa5da56d81a045f2e917d57-partner",like:"df3156488fa5da56d81a045f2e917d57-like",like_filled:"df3156488fa5da56d81a045f2e917d57-like_filled",star:"df3156488fa5da56d81a045f2e917d57-star",star_filled:"df3156488fa5da56d81a045f2e917d57-star_filled",check:"df3156488fa5da56d81a045f2e917d57-check",close:"df3156488fa5da56d81a045f2e917d57-close",check_filled:"df3156488fa5da56d81a045f2e917d57-check_filled",forbidden:"df3156488fa5da56d81a045f2e917d57-forbidden",forbidden_filled:"df3156488fa5da56d81a045f2e917d57-forbidden_filled",info_filled:"df3156488fa5da56d81a045f2e917d57-info_filled",info:"df3156488fa5da56d81a045f2e917d57-info",help_filled:"df3156488fa5da56d81a045f2e917d57-help_filled",help:"df3156488fa5da56d81a045f2e917d57-help",caution:"df3156488fa5da56d81a045f2e917d57-caution",caution_filled:"df3156488fa5da56d81a045f2e917d57-caution_filled",arrow_up:"df3156488fa5da56d81a045f2e917d57-arrow_up",arrow_left:"df3156488fa5da56d81a045f2e917d57-arrow_left",arrow_down:"df3156488fa5da56d81a045f2e917d57-arrow_down",arrow_right:"df3156488fa5da56d81a045f2e917d57-arrow_right",page_first:"df3156488fa5da56d81a045f2e917d57-page_first",down_to_bottom:"df3156488fa5da56d81a045f2e917d57-down_to_bottom",up_to_top:"df3156488fa5da56d81a045f2e917d57-up_to_top",page_last:"df3156488fa5da56d81a045f2e917d57-page_last",page_turning_left:"df3156488fa5da56d81a045f2e917d57-page_turning_left",page_turning_right:"df3156488fa5da56d81a045f2e917d57-page_turning_right",show_less:"df3156488fa5da56d81a045f2e917d57-show_less",show_more:"df3156488fa5da56d81a045f2e917d57-show_more",social_fb:"df3156488fa5da56d81a045f2e917d57-social_fb",social_linkedin:"df3156488fa5da56d81a045f2e917d57-social_linkedin",social_sina:"df3156488fa5da56d81a045f2e917d57-social_sina",social_google:"df3156488fa5da56d81a045f2e917d57-social_google",social_naver:"df3156488fa5da56d81a045f2e917d57-social_naver",social_stackoverflow:"df3156488fa5da56d81a045f2e917d57-social_stackoverflow",social_youtube:"df3156488fa5da56d81a045f2e917d57-social_youtube",social_github:"df3156488fa5da56d81a045f2e917d57-social_github",social_twitter:"df3156488fa5da56d81a045f2e917d57-social_twitter",applets:"df3156488fa5da56d81a045f2e917d57-applets",social_wechat:"df3156488fa5da56d81a045f2e917d57-social_wechat",social_server_fault:"df3156488fa5da56d81a045f2e917d57-social_server_fault"},ln="ef2c5a73b903271fcd7fb37f72dd8429_icon";function cn(e){var t=e.name,n=e.className,r=e.style,o=[ln,sn[t]];return n&&o.push(n),b.createElement("i",{className:o.join(" "),style:r})}function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pn(e){return nn.show(dn(dn({},e),{},{closeable:"close"}))}function hn(e,t){var n,r;if(e){var o=document.createElement("a");o.href=e,o.target="_blank",o.style.display="none",null===(n=document.body)||void 0===n||n.appendChild(o),o.click(),null===(r=document.body)||void 0===r||r.removeChild(o),t()}}function fn(e){return mn.apply(this,arguments)}function mn(){return(mn=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ft();case 1:n=e.sent,t(),"200"===(null==n?void 0:n.code)?window.location.reload():rn(null==n?void 0:n.message);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function gn(){return yn.apply(this,arguments)}function yn(){return yn=K(ke.mark(function e(){var t;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Ge();case 1:return t=e.sent,e.abrupt("return",new Promise(function(e){Ue(function(){var n=K(ke.mark(function n(r){var o,i,a,A;return ke.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,r.get("Account");case 1:return o=n.sent,n.next=2,o.getCertificateUrl();case 2:i=n.sent,a=pn({className:An["no-certificated"],title:b.createElement("div",{className:An["dialog-title"]},b.createElement(cn,{name:"info"}),b.createElement("span",null,"\u63a8\u5e7f\u8fd4\u5229\u63d0\u793a")),content:t.Certificated,footer:[b.createElement(an,{className:"".concat(An.btn," ").concat(An["btn-secondary"]),type:"secondary",onClick:function(){A()}},"\u4e0b\u6b21\u518d\u8bf4"),b.createElement(an,{className:"".concat(An.btn," ").concat(An["btn-primary"]),type:"primary",onClick:function(){hn(i,A)}},"\u53bb\u8ba4\u8bc1"),b.createElement(an,{className:"".concat(An.btn," ").concat(An["btn-primary"]),type:"primary",onClick:function(){fn(A)}},"\u5df2\u8ba4\u8bc1")],onCancel:function(){e(!1)},onClose:function(){e(!1)}}),A=a.hide;case 3:case"end":return n.stop()}},n)}));return function(e){return n.apply(this,arguments)}}())}));case 2:case"end":return e.stop()}},e)})),yn.apply(this,arguments)}function vn(e){return bn.apply(this,arguments)}function bn(){return bn=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Je[t],e.abrupt("return",new Promise(function(e){Ue(function(){var t=K(ke.mark(function t(r){var o,i,a,A;return ke.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,r.get("Account");case 1:return o=t.sent,t.next=2,o.getCertificateUrl();case 2:i=t.sent,a=pn({title:b.createElement("div",{className:An["dialog-title"]},b.createElement(cn,{name:"info"}),b.createElement("span",null,"\u63d0\u793a")),content:"\u60a8\u8fd8\u672a\u8fdb\u884c".concat(n,"\u8ba4\u8bc1\uff0c\u8bf7\u5148\u5b8c\u6210\u8ba4\u8bc1"),footer:[b.createElement(an,{className:"".concat(An.btn," ").concat(An["btn-secondary"]),type:"secondary",onClick:function(){A()}},"\u53d6\u6d88"),b.createElement(an,{className:"".concat(An.btn," ").concat(An["btn-primary"]),type:"primary",onClick:function(){hn(i,A)}},"\u53bb\u8ba4\u8bc1")],onClose:function(){e(!1)}}),A=a.hide;case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())}));case 1:case"end":return e.stop()}},e)})),bn.apply(this,arguments)}function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cn(e,t){return xn.apply(this,arguments)}function xn(){return(xn=K(ke.mark(function e(t,n){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){var r,o=(r={title:"\u6e29\u99a8\u63d0\u793a",content:t.message,className:"normal-dialog",footer:[b.createElement(an,{className:"".concat(An.btn," ").concat(An["btn-primary"]," ").concat(n?An[n]:"orange"),type:"primary",onClick:function(){o()}},"\u77e5\u9053\u4e86")],onOk:function(){e(!0)},onCancel:function(){e(!1)},onClose:function(){e(!1)}},nn.show(Bn(Bn({},r),{},{closeable:"close"}))).hide}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}var En=function(e,t){return(En=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function kn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}En(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Fn=function(){return Fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fn.apply(this,arguments)};function Sn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Qn(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(A){o={error:A}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Un(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var On={exports:{}};function Tn(){}function Mn(){}Mn.resetWarningCache=Tn;On.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Mn,resetWarningCache:Tn};return n.PropTypes=n,n}();var In=On.exports;const Nn=ne(In);var Hn={exports:{}};
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Hn);const _n=ne(Hn.exports);var Pn=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Dn="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ln="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Rn="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ln):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var zn=["top","right","bottom","left","width","height","size","weight"],Kn="undefined"!=typeof MutationObserver,jn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&A()}function a(){Rn(i)}function A(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return A}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Dn&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Kn?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Dn&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;zn.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Vn=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},$n=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ln},Gn=Zn(0,0,0,0);function Wn(e){return parseFloat(e)||0}function Yn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+Wn(e["border-"+n+"-width"])},0)}function qn(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Gn;var r=$n(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Wn(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,A=Wn(r.width),s=Wn(r.height);if("border-box"===r.boxSizing&&(Math.round(A+i)!==t&&(A-=Yn(r,"left","right")+i),Math.round(s+a)!==n&&(s-=Yn(r,"top","bottom")+a)),!function(e){return e===$n(e).document.documentElement}(e)){var l=Math.round(A+i)-t,c=Math.round(s+a)-n;1!==Math.abs(l)&&(A-=l),1!==Math.abs(c)&&(s-=c)}return Zn(o.left,o.top,A,s)}var Xn="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof $n(e).SVGGraphicsElement}:function(e){return e instanceof $n(e).SVGElement&&"function"==typeof e.getBBox};function Jn(e){return Dn?Xn(e)?function(e){var t=e.getBBox();return Zn(0,0,t.width,t.height)}(e):qn(e):Gn}function Zn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var er=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Zn(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Jn(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),tr=function(e,t){var n,r,o,i,a,A,s,l=(r=(n=t).x,o=n.y,i=n.width,a=n.height,A="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(A.prototype),Vn(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);Vn(this,{target:e,contentRect:l})},nr=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Pn,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof $n(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new er(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof $n(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new tr(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),rr="undefined"!=typeof WeakMap?new WeakMap:new Pn,or=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=jn.getInstance(),r=new nr(t,n,this);rr.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){or.prototype[e]=function(){var t;return(t=rr.get(this))[e].apply(t,arguments)}});var ir=void 0!==Ln.ResizeObserver?Ln.ResizeObserver:or;function ar(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function Ar(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function sr(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function lr(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==r?"\n  "+r:"")+(null!==o?"\n  "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=ar,t.componentWillReceiveProps=Ar),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=sr;var A=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;A.call(this,e,t,r)}}return e}ar.__suppressDeprecationWarning=!0,Ar.__suppressDeprecationWarning=!0,sr.__suppressDeprecationWarning=!0;const cr=Object.freeze(Object.defineProperty({__proto__:null,polyfill:lr},Symbol.toStringTag,{value:"Module"}));var ur="undefined"!=typeof document?document.documentMode:void 0,dr=function(){var e=!1;try{e=!0}catch(t){}return e};const pr={ieVersion:ur,isProduction:dr},hr=Object.freeze(Object.defineProperty({__proto__:null,default:pr,ieVersion:ur,isProduction:dr},Symbol.toStringTag,{value:"Module"}));function fr(e){dr()||"undefined"==typeof console||console.error}const mr=Object.freeze(Object.defineProperty({__proto__:null,deprecated:function(e,t,n){dr()||"undefined"==typeof console||console.error},warning:fr},Symbol.toStringTag,{value:"Module"}));function gr(e){return Object.prototype.toString.call(e).replace(/\[object\s|]/g,"")}function yr(e){if(!e||"object"!=typeof e)return!1;var t=!!e&&"length"in e&&e.length;return"Array"===gr(e)||0===t||"number"==typeof t&&t>0&&t-1 in e}function vr(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function br(e){if("Object"!==gr(e))return!1;var t=e.constructor;if("function"!=typeof t)return!1;var n=t.prototype;return"Object"===gr(n)&&!!n.hasOwnProperty("isPrototypeOf")}function wr(e,t,n){var r=-1===n;if(yr(e))for(var o=e.length,i=r?o-1:0;i<o&&i>=0;r?i--:i++){if(!1===t.call(e[i],e[i],i))break}else for(var a in e){if(e.hasOwnProperty(a))if(!1===t.call(e[a],e[a],a))break}return e}var Br=function(e,t,n){return n?t.indexOf(e)>-1:e in t};function Cr(e){return null==e}const xr=Object.freeze(Object.defineProperty({__proto__:null,deepMerge:function e(t){for(var n,r,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(!o.length)return t;var a=o.shift();if(br(t)||(t={}),br(t)&&br(a))for(var A in a)br(a[A])&&!b.isValidElement(a[A])?(t[A]||Object.assign(t,((n={})[A]={},n)),br(t[A])||(t[A]=a[A]),e(t[A],a[A])):Object.assign(t,((r={})[A]=a[A],r));return e.apply(void 0,Un([t],Qn(o),!1))},each:wr,isArrayLike:yr,isClassComponent:function(e){return"Function"===gr(e)&&e.prototype&&void 0!==e.prototype.isReactComponent},isForwardRefComponent:function(e){if(!e||"object"!=typeof e)return!1;var t=e.$$typeof;return!!t&&t.toString().includes("react.forward_ref")||60112===t},isFunctionComponent:function(e){return"Function"===gr(e)&&e.prototype&&void 0===e.prototype.isReactComponent},isNil:Cr,isPlainObject:br,isPromise:vr,isReactFragmentElement:function(e){return!Cr(e)&&e.type===b.Fragment},pickAttrsWith:function(e,t){var n={};for(var r in e)r.match(t)&&(n[r]=e[r]);return n},pickOthers:function(e,t){var n={},r="Array"===gr(e);for(var o in t)Br(o,e,r)||(n[o]=t[o]);return n},pickProps:function(e,t){var n={},r="Array"===gr(e);for(var o in t)Br(o,e,r)&&(n[o]=t[o]);return n},shallowEqual:function(e,t,n){if(e===t)return!0;if(!e||!t||typeof e+typeof t!="objectobject")return!1;var r=Object.keys(e),o=Object.keys(t),i=r.length;if(i!==o.length)return!1;for(var a="function"==typeof n,A=0;A<i;A++){var s=r[A];if(!Object.prototype.hasOwnProperty.call(t,s))return!1;var l=e[s],c=t[s],u=a?n(l,c,s):void 0;if(!1===u||void 0===u&&l!==c)return!1}return!0},typeOf:gr,values:function(e){if(Object.values)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}},Symbol.toStringTag,{value:"Module"}));function Er(e){return/-/.test(e)?e.toLowerCase().replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}):e||""}var kr="undefined"!=typeof window&&!!window.document&&!!document.createElement;function Fr(e,t){return!(!kr||!e)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function Sr(e,t,n){void 0===n&&(n=!1),kr&&e&&(e.classList?e.classList.add(t):!0!==n&&Fr(e,t)||(e.className+=" ".concat(t)))}function Qr(e,t,n){void 0===n&&(n=!1),kr&&e&&(e.classList?e.classList.remove(t):(!0===n||Fr(e,t))&&(e.className=e.className.replace(t,"").replace(/\s+/g," ").trim()))}var Ur=function(){var e=null;if(kr){var t=document.body||document.head;e=t.matches?"matches":t.webkitMatchesSelector?"webkitMatchesSelector":t.msMatchesSelector?"msMatchesSelector":t.mozMatchesSelector?"mozMatchesSelector":null}return function(t,n){return!(!kr||!t)&&(!!e&&t[e](n))}}();var Or=/margin|padding|width|height|max|min|offset|size|top/i,Tr={left:1,top:1,right:1,bottom:1};var Mr={cssFloat:1,styleFloat:1,float:1};function Ir(e,t){if(!kr||!e)return null;var n,r,o=function(e){return e&&1===e.nodeType?window.getComputedStyle(e,null):{}}(e);return t?br(o)?null:function(e,t,n){if(t=t.toLowerCase(),"auto"===n){if("height"===t)return e.offsetHeight||0;if("width"===t)return e.offsetWidth||0}return t in Tr||(Tr[t]=Or.test(t)),Tr[t]?parseFloat(n)||0:n}(e,t=Mr[t]?"cssFloat"in e.style?"cssFloat":"styleFloat":t,o.getPropertyValue("String"!==(r=gr(n=t))?(fr("Expected arguments[0] to be a string but get a ".concat(r,".")),""):n.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}))||e.style[Er(t)]):o}function Nr(e,t,n){if(!kr||!e)return!1;"object"==typeof t&&2===arguments.length?wr(t,function(t,n){return Nr(e,n,t)}):(t=Mr[t]?"cssFloat"in e.style?"cssFloat":"styleFloat":t,"number"==typeof n&&Or.test(t)&&(n="".concat(n,"px")),e.style[Er(t)]=n)}var Hr=function(e){try{var t=window.getComputedStyle(e,"::-webkit-scrollbar");return!t||"none"!==t.getPropertyValue("display")}catch(n){}return!0};function _r(){var e=document.createElement("div");e.className+="just-to-get-scrollbar-size",Nr(e,{position:"absolute",width:"100px",height:"100px",overflow:"scroll",top:"-9999px"}),document.body&&document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),{width:t,height:n}}function Pr(e,t){return kr&&e?Element.prototype.matches?e.matches(t):Element.prototype.msMatchesSelector?e.msMatchesSelector(t):Element.prototype.webkitMatchesSelector?e.webkitMatchesSelector(t):null:null}const Dr=Object.freeze(Object.defineProperty({__proto__:null,addClass:Sr,getClosest:function(e,t){if(!kr||!e)return null;if(Element.prototype.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(Pr(e,t))return e;e=e.parentElement}while(null!==e);return null},getMatches:Pr,getNodeHozWhitespace:function(e){return Ir(e,"paddingLeft")+Ir(e,"paddingRight")+Ir(e,"marginLeft")+Ir(e,"marginRight")},getOffset:function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},getPixels:function(e){var t=document.defaultView;if("number"==typeof+e&&!isNaN(+e))return+e;if("string"==typeof e){var n=/(\d+)px/,r=/(\d+)vh/;if(Array.isArray(e.match(n)))return+e.match(n)[1]||0;if(Array.isArray(e.match(r))){var o=t.innerHeight/100;return+e.match(r)[1]*o||0}}return 0},getStyle:Ir,hasClass:Fr,hasDOM:kr,hasScroll:function(e){if("hidden"===Ir(e,"overflow"))return!1;var t=e.parentNode;return t&&t.scrollHeight>t.clientHeight&&_r().width>0&&Hr(t)&&Hr(e)},matches:Ur,removeClass:Qr,saveRef:function(e){return e?function(t){if("string"==typeof e)throw new Error("can not set ref string for ".concat(e));"function"==typeof e?e(t):Object.prototype.hasOwnProperty.call(e,"current")&&(e.current=t)}:null},scrollbar:_r,setStyle:Nr,toggleClass:function(e,t){if(!kr||!e)return!1;if(e.classList)return e.classList.toggle(t);var n=Fr(e,t);return n?Qr(e,t,!0):Sr(e,t,!0),!n}},Symbol.toStringTag,{value:"Module"}));function Lr(e,t,n,r){e.removeEventListener&&e.removeEventListener(t,n,r||!1)}function Rr(e,t,n,r){return e.addEventListener&&e.addEventListener(t,n,r||!1),{off:function(){return Lr(e,t,n,r)}}}const zr=Object.freeze(Object.defineProperty({__proto__:null,off:Lr,on:Rr,once:function(e,t,n,r){return Rr(e,t,function o(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];n.apply(this,i),Lr(e,t,o,r)},r)}},Symbol.toStringTag,{value:"Module"}));var Kr={exports:{}};!function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",A="day",s="week",l="month",c="quarter",u="year",d="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),i=n-o<0,a=t.clone().add(r+(i?-1:1),l);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:s,d:A,D:d,h:a,m:i,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=m;var w="$isDayjsObject",B=function(e){return e instanceof k||!(!e||!e[w])},C=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var A=t.name;b[A]=t,o=A}return!r&&o&&(v=o),o||!r&&v},x=function(e,t){if(B(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},E=y;E.l=C,E.i=B,E.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function m(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return x(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<x(e)},g.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!E.u(t)||t,c=E.p(e),p=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(A)},h=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},f=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case u:return r?p(1,0):p(31,11);case l:return r?p(1,m):p(0,m+1);case s:var v=this.$locale().weekStart||0,b=(f<v?f+7:f)-v;return p(r?g-b:g+(6-b),m);case A:case d:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,s=E.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[A]=c+"Date",n[d]=c+"Date",n[l]=c+"Month",n[u]=c+"FullYear",n[a]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[s],h=s===A?this.$D+(t-this.$W):t;if(s===l||s===u){var f=this.clone().set(d,1);f.$d[p](h),f.init(),this.$d=f.set(d,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[E.p(e)]()},g.add=function(r,c){var d,p=this;r=Number(r);var h=E.p(c),f=function(e){var t=x(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(h===l)return this.set(l,this.$M+r);if(h===u)return this.set(u,this.$y+r);if(h===A)return f(1);if(h===s)return f(7);var m=(d={},d[i]=t,d[a]=n,d[o]=e,d)[h]||1,g=this.$d.getTime()+r*m;return E.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,A=this.$M,s=n.weekdays,l=n.months,c=n.meridiem,u=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return E.s(i%12||12,e,"0")},h=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return A+1;case"MM":return E.s(A+1,2,"0");case"MMM":return u(n.monthsShort,A,l,3);case"MMMM":return u(l,A);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(n.weekdaysMin,t.$W,s,2);case"ddd":return u(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,d,p){var h,f=this,m=E.p(d),g=x(r),y=(g.utcOffset()-this.utcOffset())*t,v=this-g,b=function(){return E.m(f,g)};switch(m){case u:h=b()/12;break;case l:h=b();break;case c:h=b()/3;break;case s:h=(v-y)/6048e5;break;case A:h=(v-y)/864e5;break;case a:h=v/n;break;case i:h=v/t;break;case o:h=v/e;break;default:h=v}return p?h:E.a(h)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return E.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),F=k.prototype;return x.prototype=F,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",A],["$M",l],["$y",u],["$D",d]].forEach(function(e){F[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),x.extend=function(e,t){return e.$i||(e(t,k,x),e.$i=!0),x},x.locale=C,x.isDayjs=B,x.unix=function(e){return x(1e3*e)},x.en=b[v],x.Ls=b,x.p={},x}()}(Kr);var jr=Kr.exports;const Vr=ne(jr);var $r={exports:{}};!function(e){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},A=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,s("seconds")],ss:[o,s("seconds")],m:[o,s("minutes")],mm:[o,s("minutes")],H:[o,s("hours")],h:[o,s("hours")],HH:[o,s("hours")],hh:[o,s("hours")],D:[o,s("day")],DD:[r,s("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,s("week")],ww:[r,s("week")],M:[o,s("month")],MM:[r,s("month")],MMM:[i,function(e){var t=c("months"),n=(c("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[r,function(e){this.year=A(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function p(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),A=i.length,s=0;s<A;s+=1){var l=i[s],c=d[l],u=c&&c[0],p=c&&c[1];i[s]=p?{regex:u,parser:p}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<A;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,s=o.parser,l=e.slice(r),c=a.exec(l)[0];s.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(A=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var A=i[1];if("string"==typeof A){var s=!0===i[2],l=!0===i[3],c=s||l,u=i[2];l&&(u=i[2]),a=this.$locale(),!s&&u&&(a=n.Ls[u]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),i=o.year,a=o.month,A=o.day,s=o.hours,l=o.minutes,c=o.seconds,u=o.milliseconds,d=o.zone,h=o.week,f=new Date,m=A||(i||a?1:f.getDate()),g=i||f.getFullYear(),y=0;i&&!a||(y=a>0?a-1:f.getMonth());var v,b=s||0,w=l||0,B=c||0,C=u||0;return d?new Date(Date.UTC(g,y,m,b,w,B,C+60*d.offset*1e3)):n?new Date(Date.UTC(g,y,m,b,w,B,C)):(v=new Date(g,y,m,b,w,B,C),h&&(v=r(v).week(h).toDate()),v)}catch(x){return new Date("")}}(t,A,r,n),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),c&&t!=this.format(A)&&(this.$d=new Date("")),a={}}else if(A instanceof Array)for(var d=A.length,h=1;h<=d;h+=1){i[1]=A[h-1];var f=n.apply(this,i);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}h===d&&(this.$d=new Date(""))}else o.call(this,e)}}}()}($r);const Gr=ne($r.exports);var Wr={exports:{}};!function(e){e.exports=function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach(function(e){r[e]=t[e]}),r}}}(Wr);const Yr=ne(Wr.exports);var qr={exports:{}};!function(e){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),A=o(a[t]),s=o(a[n]),l=A||s.map(function(e){return e.slice(0,r)});if(!i)return l;var c=a.weekStart;return l.map(function(e,t){return l[(t+(c||0))%7]})},a=function(){return n.Ls[n.locale()]},A=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},s=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return A(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return A(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}(qr);const Xr=ne(qr.exports);var Jr={exports:{}};!function(e){var t,n;e.exports=(t="month",n="quarter",function(e,r){var o=r.prototype;o.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=o.add;o.add=function(e,r){return e=Number(e),this.$utils().p(r)===n?this.add(3*e,t):i.bind(this)(e,r)};var a=o.startOf;o.startOf=function(e,r){var o=this.$utils(),i=!!o.u(r)||r;if(o.p(e)===n){var A=this.quarter()-1;return i?this.month(3*A).startOf(t).startOf("day"):this.month(3*A+2).endOf(t).endOf("day")}return a.bind(this)(e,r)}})}(Jr);const Zr=ne(Jr.exports);var eo={exports:{}};!function(e){e.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(i)}}}(eo);const to=ne(eo.exports);var no={exports:{}};!function(e){var t,n;e.exports=(t="week",n="year",function(e,r,o){var i=r.prototype;i.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(n).add(1,n).date(r),a=o(this).endOf(t);if(i.isBefore(a))return 1}var A=o(this).startOf(n).date(r).startOf(t).subtract(1,"millisecond"),s=this.diff(A,t,!0);return s<0?o(this).startOf("week").week():Math.ceil(s)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}(no);const ro=ne(no.exports);var oo={exports:{}};!function(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}(oo);const io=ne(oo.exports);!function(e){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"zh-cn",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){return"W"===t?e+"\u5468":e+"\u65e5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(e,t){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1100?"\u4e0a\u5348":n<1300?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return n.default.locale(r,null,!0),r}(jr)}({exports:{}}),Vr.extend(to),Vr.extend(Zr),Vr.extend(Gr),Vr.extend(Yr),Vr.extend(Xr),Vr.extend(ro),Vr.extend(io),Vr.locale("zh-cn");var ao=Vr;ao.isSelf=Vr.isDayjs,Vr.localeData();const Ao=ao;var so=function(){};function lo(e,t){void 0===e&&(e=null);var n=t?Ao(e,t):Ao(e);return n.isValid()?n:null}function co(e,t){var n=lo(e);return n||(n=lo(e,t)),n}const uo=Object.freeze(Object.defineProperty({__proto__:null,bindCtx:function(e,t,n){"string"==typeof t&&(t=[t]),n=n||e,t.forEach(function(t){n[t]=n[t].bind(e)})},checkDate:lo,checkRangeDate:function(e,t,n,r,o){void 0===r&&(r=!0);var i=Qn(Array.isArray(e)?[0,1].map(function(t){return lo(e[t],o)}):[null,null],2),a=i[0],A=i[1],s=Qn(Array.isArray(n)?n:[n,n],2),l=s[0],c=s[1];return r&&a&&A&&a.isAfter(A)?!l&&c||!l&&!l&&1===t?[null,A]:[a,null]:[a,A]},checkValueWithDayjs:co,getValueWithDayjs:function(e,t){return Array.isArray(e)?e.map(function(e){return co(e,t)}):co(e,t)},invoke:function(e,t,n){var r=e&&t in e?e[t]:void 0;return r&&r.apply(void 0,Un([],Qn(n||[]),!1))},makeChain:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?e[0]:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0,o=e.length;r<o;r++){var i=e[r];i&&i.apply&&i.apply(this,t)}}},noop:so,prevent:function(){return!1},promiseCall:function(e,t,n){return void 0===n&&(n=so),vr(e)?e.then(function(e){return t(e),e}).catch(function(e){n(e)}):!1!==e?t(e):n(e)},renderNode:function(e,t,n){void 0===n&&(n=[]);var r=void 0!==e?e:t;return n&&!Array.isArray(n)&&(n=[n]),"function"==typeof r?r.apply(void 0,Un([],Qn(n),!1)):r}},Symbol.toStringTag,{value:"Module"}));function po(e){if(!kr)return!1;var t=document.createElement("div"),n=!1;return wr(e,function(e,r){if(void 0!==t.style[r])return n={end:e},!1}),n}var ho=po({WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",animation:"animationend"}),fo=po({WebkitTransition:"webkitTransitionEnd",OTransition:"oTransitionEnd",transition:"transitionend"}),mo=function(e){if(!kr)return!1;var t=document.createElement("div"),n=!1;return wr(e,function(e,r){return wr(e,function(e){try{t.style[r]=e,n=n||t.style[r]===e}catch(o){}return!n}),!n}),n}({display:["flex","-webkit-flex","-moz-flex","-ms-flexbox"]});const go=Object.freeze(Object.defineProperty({__proto__:null,animation:ho,flex:mo,transition:fo},Symbol.toStringTag,{value:"Module"})),yo={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PAGE_UP:33,PAGE_DOWN:34,ESCAPE:27,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,CONTROL:17,OPTION:18,CMD:91,COMMAND:91,DELETE:8};function vo(e){var t=e.nodeName.toLowerCase(),n=parseInt(e.getAttribute("tabindex"),10),r=!isNaN(n)&&n>-1;return!!function(e){for(;e;){var t=e.nodeName;if("BODY"===t||"HTML"===t)break;var n=e.style;if("none"===n.display||"hidden"===n.visibility)return!1;e=e.parentNode}return!0}(e)&&("input"===t?!e.disabled&&"hidden"!==e.type:["select","textarea","button"].indexOf(t)>-1?!e.disabled:"a"===t&&!!e.getAttribute("href")||r)}function bo(e){var t=[];return wr(e.querySelectorAll("*"),function(e){if(vo(e)){var n=e.getAttribute("data-auto-focus")?"unshift":"push";t[n](e)}}),vo(e)&&t.unshift(e),t}var wo=null;const Bo=Object.freeze(Object.defineProperty({__proto__:null,backLastFocusNode:function(){if(wo)try{wo.focus()}catch(e){}},clearLastFocusNode:function(){wo=null},focusRef:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.focus&&"function"==typeof e.focus&&e.focus.apply(e,Un([],Qn(t),!1))},getFocusNodeList:bo,limitTabRange:function(e,t){if(t.keyCode===yo.TAB){var n=bo(e),r=n.length-1,o=n.indexOf(document.activeElement);if(o>-1){var i=o+(t.shiftKey?-1:1);i<0&&(i=r),i>r&&(i=0),n[i].focus(),t.preventDefault()}}},saveLastFocusNode:function(){wo=document.activeElement}},Symbol.toStringTag,{value:"Module"}));function Co(e){return e?("object"==typeof e?e=JSON.stringify(e):"string"!=typeof e&&(e=String(e)),e.replace(/['"]/gm,"").replace(/[\s'"]/gm,"-")):""}const xo=Object.freeze(Object.defineProperty({__proto__:null,escapeForId:Co,randomId:function(e,t){void 0===t&&(t=1e6);var n=Math.ceil(Math.random()*t);return e?"".concat(Co(e),"-").concat(n):n.toString(10)}},Symbol.toStringTag,{value:"Module"}));var Eo=Date.now();var ko="accept acceptCharset accessKey action allowFullScreen allowTransparency\nalt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\ncharSet checked classID className colSpan cols content contentEditable contextMenu\ncontrols coords crossOrigin data dateTime default defer dir disabled download draggable\nencType form formAction formEncType formMethod formNoValidate formTarget frameBorder\nheaders height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\nis keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\nmediaGroup method min minLength multiple muted name noValidate nonce open\noptimum pattern placeholder poster preload radioGroup readOnly rel required\nreversed role rowSpan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellCheck src srcDoc srcLang srcSet start step style\nsummary tabIndex target title type useMap value width wmode wrap".replace(/\s+/g," ").replace(/\t|\n|\r/g,"").split(" "),Fo="onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError".replace(/\s+/g," ").replace(/\t|\n|\r/g,"").split(" "),So=["data-","aria-"];var Qo,Uo,Oo=Dr,To=hr,Mo=zr,Io=uo,No=mr,Ho=xr,_o=go,Po=Bo,Do=function(e){return(e=e||"")+(Eo++).toString(36)},Lo=yo,Ro=xo,zo=function(e){var t={},n=function(n){(ko.indexOf(n)>-1||Fo.indexOf(n)>-1||So.map(function(e){return new RegExp("^".concat(e))}).some(function(e){return n.replace(e,"")!==n}))&&(t[n]=e[n])};for(var r in e)n(r);return t};function Ko(){return Qo.apply(null,arguments)}function jo(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function Vo(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function $o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Go(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if($o(e,t))return!1;return!0}function Wo(e){return void 0===e}function Yo(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function qo(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Xo(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function Jo(e,t){for(var n in t)$o(t,n)&&(e[n]=t[n]);return $o(t,"toString")&&(e.toString=t.toString),$o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Zo(e,t,n,r){return bA(e,t,n,r,!0).utc()}function ei(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function ti(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=ei(e),n=Uo.call(t.parsedDateParts,function(e){return null!=e}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function ni(e){var t=Zo(NaN);return null!=e?Jo(ei(t),e):ei(t).userInvalidated=!0,t}Uo=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var ri=Ko.momentProperties=[],oi=!1;function ii(e,t){var n,r,o,i=ri.length;if(Wo(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Wo(t._i)||(e._i=t._i),Wo(t._f)||(e._f=t._f),Wo(t._l)||(e._l=t._l),Wo(t._strict)||(e._strict=t._strict),Wo(t._tzm)||(e._tzm=t._tzm),Wo(t._isUTC)||(e._isUTC=t._isUTC),Wo(t._offset)||(e._offset=t._offset),Wo(t._pf)||(e._pf=ei(t)),Wo(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)Wo(o=t[r=ri[n]])||(e[r]=o);return e}function ai(e){ii(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===oi&&(oi=!0,Ko.updateOffset(this),oi=!1)}function Ai(e){return e instanceof ai||null!=e&&null!=e._isAMomentObject}function si(e){!1===Ko.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function li(e,t){var n=!0;return Jo(function(){if(null!=Ko.deprecationHandler&&Ko.deprecationHandler(null,e),n){var r,o,i,a=[],A=arguments.length;for(o=0;o<A;o++){if(r="","object"==typeof arguments[o]){for(i in r+="\n["+o+"] ",arguments[0])$o(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[o];a.push(r)}si((Array.prototype.slice.call(a).join(""),(new Error).stack)),n=!1}return t.apply(this,arguments)},t)}var ci,ui={};function di(e,t){null!=Ko.deprecationHandler&&Ko.deprecationHandler(e,t),ui[e]||(si(),ui[e]=!0)}function pi(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function hi(e,t){var n,r=Jo({},e);for(n in t)$o(t,n)&&(Vo(e[n])&&Vo(t[n])?(r[n]={},Jo(r[n],e[n]),Jo(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)$o(e,n)&&!$o(t,n)&&Vo(e[n])&&(r[n]=Jo({},r[n]));return r}function fi(e){null!=e&&this.set(e)}Ko.suppressDeprecationWarnings=!1,Ko.deprecationHandler=null,ci=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)$o(e,t)&&n.push(t);return n};function mi(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var gi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,yi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,vi={},bi={};function wi(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(bi[e]=o),t&&(bi[t[0]]=function(){return mi(o.apply(this,arguments),t[1],t[2])}),n&&(bi[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Bi(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ci(e,t){return e.isValid()?(t=xi(t,e.localeData()),vi[t]=vi[t]||function(e){var t,n,r=e.match(gi);for(t=0,n=r.length;t<n;t++)bi[r[t]]?r[t]=bi[r[t]]:r[t]=Bi(r[t]);return function(t){var o,i="";for(o=0;o<n;o++)i+=pi(r[o])?r[o].call(t,e):r[o];return i}}(t),vi[t](e)):e.localeData().invalidDate()}function xi(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(yi.lastIndex=0;n>=0&&yi.test(e);)e=e.replace(yi,r),yi.lastIndex=0,n-=1;return e}var Ei={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ki(e){return"string"==typeof e?Ei[e]||Ei[e.toLowerCase()]:void 0}function Fi(e){var t,n,r={};for(n in e)$o(e,n)&&(t=ki(n))&&(r[t]=e[n]);return r}var Si={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var Qi,Ui=/\d/,Oi=/\d\d/,Ti=/\d{3}/,Mi=/\d{4}/,Ii=/[+-]?\d{6}/,Ni=/\d\d?/,Hi=/\d\d\d\d?/,_i=/\d\d\d\d\d\d?/,Pi=/\d{1,3}/,Di=/\d{1,4}/,Li=/[+-]?\d{1,6}/,Ri=/\d+/,zi=/[+-]?\d+/,Ki=/Z|[+-]\d\d:?\d\d/gi,ji=/Z|[+-]\d\d(?::?\d\d)?/gi,Vi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,$i=/^[1-9]\d?/,Gi=/^([1-9]\d|\d)/;function Wi(e,t,n){Qi[e]=pi(t)?t:function(e,r){return e&&n?n:t}}function Yi(e,t){return $o(Qi,e)?Qi[e](t._strict,t._locale):new RegExp(qi(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function qi(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Xi(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ji(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Xi(t)),n}Qi={};var Zi={};function ea(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),Yo(t)&&(o=function(e,n){n[t]=Ji(e)}),r=e.length,n=0;n<r;n++)Zi[e[n]]=o}function ta(e,t){ea(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function na(e,t,n){null!=t&&$o(Zi,e)&&Zi[e](t,n._a,n,e)}function ra(e){return e%4==0&&e%100!=0||e%400==0}var oa=0,ia=1,aa=2,Aa=3,sa=4,la=5,ca=6,ua=7,da=8;function pa(e){return ra(e)?366:365}wi("Y",0,0,function(){var e=this.year();return e<=9999?mi(e,4):"+"+e}),wi(0,["YY",2],0,function(){return this.year()%100}),wi(0,["YYYY",4],0,"year"),wi(0,["YYYYY",5],0,"year"),wi(0,["YYYYYY",6,!0],0,"year"),Wi("Y",zi),Wi("YY",Ni,Oi),Wi("YYYY",Di,Mi),Wi("YYYYY",Li,Ii),Wi("YYYYYY",Li,Ii),ea(["YYYYY","YYYYYY"],oa),ea("YYYY",function(e,t){t[oa]=2===e.length?Ko.parseTwoDigitYear(e):Ji(e)}),ea("YY",function(e,t){t[oa]=Ko.parseTwoDigitYear(e)}),ea("Y",function(e,t){t[oa]=parseInt(e,10)}),Ko.parseTwoDigitYear=function(e){return Ji(e)+(Ji(e)>68?1900:2e3)};var ha,fa=ma("FullYear",!0);function ma(e,t){return function(n){return null!=n?(ya(this,e,n),Ko.updateOffset(this,t),this):ga(this,e)}}function ga(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function ya(e,t,n){var r,o,i,a,A;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),A=29!==(A=e.date())||1!==a||ra(i)?A:28,o?r.setUTCFullYear(i,a,A):r.setFullYear(i,a,A)}}function va(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?ra(e)?29:28:31-r%7%2}ha=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},wi("M",["MM",2],"Mo",function(){return this.month()+1}),wi("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),wi("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Wi("M",Ni,$i),Wi("MM",Ni,Oi),Wi("MMM",function(e,t){return t.monthsShortRegex(e)}),Wi("MMMM",function(e,t){return t.monthsRegex(e)}),ea(["M","MM"],function(e,t){t[ia]=Ji(e)-1}),ea(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[ia]=o:ei(n).invalidMonth=e});var ba="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),wa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ba=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ca=Vi,xa=Vi;function Ea(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=Zo([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=ha.call(this._shortMonthsParse,a))?o:null:-1!==(o=ha.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=ha.call(this._shortMonthsParse,a))||-1!==(o=ha.call(this._longMonthsParse,a))?o:null:-1!==(o=ha.call(this._longMonthsParse,a))||-1!==(o=ha.call(this._shortMonthsParse,a))?o:null}function ka(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Ji(t);else if(!Yo(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,va(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Fa(e){return null!=e?(ka(this,e),Ko.updateOffset(this,!0),this):ga(this,"Month")}function Sa(){function e(e,t){return t.length-e.length}var t,n,r,o,i=[],a=[],A=[];for(t=0;t<12;t++)n=Zo([2e3,t]),r=qi(this.monthsShort(n,"")),o=qi(this.months(n,"")),i.push(r),a.push(o),A.push(o),A.push(r);i.sort(e),a.sort(e),A.sort(e),this._monthsRegex=new RegExp("^("+A.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Qa(e,t,n,r,o,i,a){var A;return e<100&&e>=0?(A=new Date(e+400,t,n,r,o,i,a),isFinite(A.getFullYear())&&A.setFullYear(e)):A=new Date(e,t,n,r,o,i,a),A}function Ua(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Oa(e,t,n){var r=7+t-n;return-((7+Ua(e,0,r).getUTCDay()-t)%7)+r-1}function Ta(e,t,n,r,o){var i,a,A=1+7*(t-1)+(7+n-r)%7+Oa(e,r,o);return A<=0?a=pa(i=e-1)+A:A>pa(e)?(i=e+1,a=A-pa(e)):(i=e,a=A),{year:i,dayOfYear:a}}function Ma(e,t,n){var r,o,i=Oa(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Ia(o=e.year()-1,t,n):a>Ia(e.year(),t,n)?(r=a-Ia(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ia(e,t,n){var r=Oa(e,t,n),o=Oa(e+1,t,n);return(pa(e)-r+o)/7}wi("w",["ww",2],"wo","week"),wi("W",["WW",2],"Wo","isoWeek"),Wi("w",Ni,$i),Wi("ww",Ni,Oi),Wi("W",Ni,$i),Wi("WW",Ni,Oi),ta(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ji(e)});function Na(e,t){return e.slice(t,7).concat(e.slice(0,t))}wi("d",0,"do","day"),wi("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),wi("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),wi("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),wi("e",0,0,"weekday"),wi("E",0,0,"isoWeekday"),Wi("d",Ni),Wi("e",Ni),Wi("E",Ni),Wi("dd",function(e,t){return t.weekdaysMinRegex(e)}),Wi("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Wi("dddd",function(e,t){return t.weekdaysRegex(e)}),ta(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:ei(n).invalidWeekday=e}),ta(["d","e","E"],function(e,t,n,r){t[r]=Ji(e)});var Ha="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_a="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Da=Vi,La=Vi,Ra=Vi;function za(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Zo([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ha.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ha.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=ha.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=ha.call(this._weekdaysParse,a))||-1!==(o=ha.call(this._shortWeekdaysParse,a))||-1!==(o=ha.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ha.call(this._shortWeekdaysParse,a))||-1!==(o=ha.call(this._weekdaysParse,a))||-1!==(o=ha.call(this._minWeekdaysParse,a))?o:null:-1!==(o=ha.call(this._minWeekdaysParse,a))||-1!==(o=ha.call(this._weekdaysParse,a))||-1!==(o=ha.call(this._shortWeekdaysParse,a))?o:null}function Ka(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],A=[],s=[],l=[];for(t=0;t<7;t++)n=Zo([2e3,1]).day(t),r=qi(this.weekdaysMin(n,"")),o=qi(this.weekdaysShort(n,"")),i=qi(this.weekdays(n,"")),a.push(r),A.push(o),s.push(i),l.push(r),l.push(o),l.push(i);a.sort(e),A.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ja(){return this.hours()%12||12}function Va(e,t){wi(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function $a(e,t){return t._meridiemParse}wi("H",["HH",2],0,"hour"),wi("h",["hh",2],0,ja),wi("k",["kk",2],0,function(){return this.hours()||24}),wi("hmm",0,0,function(){return""+ja.apply(this)+mi(this.minutes(),2)}),wi("hmmss",0,0,function(){return""+ja.apply(this)+mi(this.minutes(),2)+mi(this.seconds(),2)}),wi("Hmm",0,0,function(){return""+this.hours()+mi(this.minutes(),2)}),wi("Hmmss",0,0,function(){return""+this.hours()+mi(this.minutes(),2)+mi(this.seconds(),2)}),Va("a",!0),Va("A",!1),Wi("a",$a),Wi("A",$a),Wi("H",Ni,Gi),Wi("h",Ni,$i),Wi("k",Ni,$i),Wi("HH",Ni,Oi),Wi("hh",Ni,Oi),Wi("kk",Ni,Oi),Wi("hmm",Hi),Wi("hmmss",_i),Wi("Hmm",Hi),Wi("Hmmss",_i),ea(["H","HH"],Aa),ea(["k","kk"],function(e,t,n){var r=Ji(e);t[Aa]=24===r?0:r}),ea(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ea(["h","hh"],function(e,t,n){t[Aa]=Ji(e),ei(n).bigHour=!0}),ea("hmm",function(e,t,n){var r=e.length-2;t[Aa]=Ji(e.substr(0,r)),t[sa]=Ji(e.substr(r)),ei(n).bigHour=!0}),ea("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Aa]=Ji(e.substr(0,r)),t[sa]=Ji(e.substr(r,2)),t[la]=Ji(e.substr(o)),ei(n).bigHour=!0}),ea("Hmm",function(e,t,n){var r=e.length-2;t[Aa]=Ji(e.substr(0,r)),t[sa]=Ji(e.substr(r))}),ea("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Aa]=Ji(e.substr(0,r)),t[sa]=Ji(e.substr(r,2)),t[la]=Ji(e.substr(o))});var Ga=ma("Hours",!0);var Wa,Ya={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ba,monthsShort:wa,week:{dow:0,doy:6},weekdays:Ha,weekdaysMin:Pa,weekdaysShort:_a,meridiemParse:/[ap]\.?m?\.?/i},qa={},Xa={};function Ja(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Za(e){return e?e.toLowerCase().replace("_","-"):e}function eA(t){var r=null;if(void 0===qa[t]&&void 0!==n&&n&&n.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{r=Wa._abbr,e("./locale/"+t),tA(r)}catch(o){qa[t]=null}return qa[t]}function tA(e,t){var n;return e&&((n=Wo(t)?rA(e):nA(e,t))?Wa=n:"undefined"!=typeof console&&console.warn),Wa._abbr}function nA(e,t){if(null!==t){var n,r=Ya;if(t.abbr=e,null!=qa[e])di("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=qa[e]._config;else if(null!=t.parentLocale)if(null!=qa[t.parentLocale])r=qa[t.parentLocale]._config;else{if(null==(n=eA(t.parentLocale)))return Xa[t.parentLocale]||(Xa[t.parentLocale]=[]),Xa[t.parentLocale].push({name:e,config:t}),null;r=n._config}return qa[e]=new fi(hi(r,t)),Xa[e]&&Xa[e].forEach(function(e){nA(e.name,e.config)}),tA(e),qa[e]}return delete qa[e],null}function rA(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Wa;if(!jo(e)){if(t=eA(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=Za(e[i]).split("-")).length,n=(n=Za(e[i+1]))?n.split("-"):null;t>0;){if(r=eA(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&Ja(o,n)>=t-1)break;t--}i++}return Wa}(e)}function oA(e){var t,n=e._a;return n&&-2===ei(e).overflow&&(t=n[ia]<0||n[ia]>11?ia:n[aa]<1||n[aa]>va(n[oa],n[ia])?aa:n[Aa]<0||n[Aa]>24||24===n[Aa]&&(0!==n[sa]||0!==n[la]||0!==n[ca])?Aa:n[sa]<0||n[sa]>59?sa:n[la]<0||n[la]>59?la:n[ca]<0||n[ca]>999?ca:-1,ei(e)._overflowDayOfYear&&(t<oa||t>aa)&&(t=aa),ei(e)._overflowWeeks&&-1===t&&(t=ua),ei(e)._overflowWeekday&&-1===t&&(t=da),ei(e).overflow=t),e}var iA=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,aA=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,AA=/Z|[+-]\d\d(?::?\d\d)?/,sA=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],lA=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],cA=/^\/?Date\((-?\d+)/i,uA=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,dA={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function pA(e){var t,n,r,o,i,a,A=e._i,s=iA.exec(A)||aA.exec(A),l=sA.length,c=lA.length;if(s){for(ei(e).iso=!0,t=0,n=l;t<n;t++)if(sA[t][1].exec(s[1])){o=sA[t][0],r=!1!==sA[t][2];break}if(null==o)return void(e._isValid=!1);if(s[3]){for(t=0,n=c;t<n;t++)if(lA[t][1].exec(s[3])){i=(s[2]||" ")+lA[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(s[4]){if(!AA.exec(s[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),yA(e)}else e._isValid=!1}function hA(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function fA(e){var t,n,r,o,i,a,A,s,l=uA.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(n=l[4],r=l[3],o=l[2],i=l[5],a=l[6],A=l[7],s=[hA(n),wa.indexOf(r),parseInt(o,10),parseInt(i,10),parseInt(a,10)],A&&s.push(parseInt(A,10)),t=s,!function(e,t,n){return!e||_a.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(ei(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return dA[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(l[8],l[9],l[10]),e._d=Ua.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ei(e).rfc2822=!0}else e._isValid=!1}function mA(e,t,n){return null!=e?e:null!=t?t:n}function gA(e){var t,n,r,o,i,a=[];if(!e._d){for(r=function(e){var t=new Date(Ko.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[aa]&&null==e._a[ia]&&function(e){var t,n,r,o,i,a,A,s,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(i=1,a=4,n=mA(t.GG,e._a[oa],Ma(wA(),1,4).year),r=mA(t.W,1),((o=mA(t.E,1))<1||o>7)&&(s=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=Ma(wA(),i,a),n=mA(t.gg,e._a[oa],l.year),r=mA(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(s=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(s=!0)):o=i);r<1||r>Ia(n,i,a)?ei(e)._overflowWeeks=!0:null!=s?ei(e)._overflowWeekday=!0:(A=Ta(n,r,o,i,a),e._a[oa]=A.year,e._dayOfYear=A.dayOfYear)}(e),null!=e._dayOfYear&&(i=mA(e._a[oa],r[oa]),(e._dayOfYear>pa(i)||0===e._dayOfYear)&&(ei(e)._overflowDayOfYear=!0),n=Ua(i,0,e._dayOfYear),e._a[ia]=n.getUTCMonth(),e._a[aa]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Aa]&&0===e._a[sa]&&0===e._a[la]&&0===e._a[ca]&&(e._nextDay=!0,e._a[Aa]=0),e._d=(e._useUTC?Ua:Qa).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Aa]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(ei(e).weekdayMismatch=!0)}}function yA(e){if(e._f!==Ko.ISO_8601)if(e._f!==Ko.RFC_2822){e._a=[],ei(e).empty=!0;var t,n,r,o,i,a,A,s=""+e._i,l=s.length,c=0;for(A=(r=xi(e._f,e._locale).match(gi)||[]).length,t=0;t<A;t++)o=r[t],(n=(s.match(Yi(o,e))||[])[0])&&((i=s.substr(0,s.indexOf(n))).length>0&&ei(e).unusedInput.push(i),s=s.slice(s.indexOf(n)+n.length),c+=n.length),bi[o]?(n?ei(e).empty=!1:ei(e).unusedTokens.push(o),na(o,n,e)):e._strict&&!n&&ei(e).unusedTokens.push(o);ei(e).charsLeftOver=l-c,s.length>0&&ei(e).unusedInput.push(s),e._a[Aa]<=12&&!0===ei(e).bigHour&&e._a[Aa]>0&&(ei(e).bigHour=void 0),ei(e).parsedDateParts=e._a.slice(0),ei(e).meridiem=e._meridiem,e._a[Aa]=function(e,t,n){var r;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[Aa],e._meridiem),null!==(a=ei(e).era)&&(e._a[oa]=e._locale.erasConvertYear(a,e._a[oa])),gA(e),oA(e)}else fA(e);else pA(e)}function vA(e){var t=e._i,n=e._f;return e._locale=e._locale||rA(e._l),null===t||void 0===n&&""===t?ni({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),Ai(t)?new ai(oA(t)):(qo(t)?e._d=t:jo(n)?function(e){var t,n,r,o,i,a,A=!1,s=e._f.length;if(0===s)return ei(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<s;o++)i=0,a=!1,t=ii({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],yA(t),ti(t)&&(a=!0),i+=ei(t).charsLeftOver,i+=10*ei(t).unusedTokens.length,ei(t).score=i,A?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(A=!0));Jo(e,n||t)}(e):n?yA(e):function(e){var t=e._i;Wo(t)?e._d=new Date(Ko.now()):qo(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=cA.exec(e._i);null===t?(pA(e),!1===e._isValid&&(delete e._isValid,fA(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:Ko.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):jo(t)?(e._a=Xo(t.slice(0),function(e){return parseInt(e,10)}),gA(e)):Vo(t)?function(e){if(!e._d){var t=Fi(e._i),n=void 0===t.day?t.date:t.day;e._a=Xo([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),gA(e)}}(e):Yo(t)?e._d=new Date(t):Ko.createFromInputFallback(e)}(e),ti(e)||(e._d=null),e))}function bA(e,t,n,r,o){var i,a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(Vo(e)&&Go(e)||jo(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=n,a._i=e,a._f=t,a._strict=r,(i=new ai(oA(vA(a))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function wA(e,t,n,r){return bA(e,t,n,r,!1)}Ko.createFromInputFallback=li("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),Ko.ISO_8601=function(){},Ko.RFC_2822=function(){};var BA=li("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=wA.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ni()}),CA=li("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=wA.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ni()});function xA(e,t){var n,r;if(1===t.length&&jo(t[0])&&(t=t[0]),!t.length)return wA();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var EA=["year","quarter","month","week","day","hour","minute","second","millisecond"];function kA(e){var t=Fi(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,A=t.hour||0,s=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,o=EA.length;for(t in e)if($o(e,t)&&(-1===ha.call(EA,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[EA[n]]){if(r)return!1;parseFloat(e[EA[n]])!==Ji(e[EA[n]])&&(r=!0)}return!0}(t),this._milliseconds=+c+1e3*l+6e4*s+1e3*A*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=rA(),this._bubble()}function FA(e){return e instanceof kA}function SA(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function QA(e,t){wi(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+mi(~~(e/60),2)+t+mi(~~e%60,2)})}QA("Z",":"),QA("ZZ",""),Wi("Z",ji),Wi("ZZ",ji),ea(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=OA(ji,e)});var UA=/([\+\-]|\d\d)/gi;function OA(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(UA)||["-",0,0])[1]+Ji(n[2]))?0:"+"===n[0]?r:-r}function TA(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Ai(e)||qo(e)?e.valueOf():wA(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Ko.updateOffset(n,!1),n):wA(e).local()}function MA(e){return-Math.round(e._d.getTimezoneOffset())}function IA(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}Ko.updateOffset=function(){};var NA=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,HA=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _A(e,t){var n,r,o,i=e,a=null;return FA(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:Yo(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=NA.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:Ji(a[aa])*n,h:Ji(a[Aa])*n,m:Ji(a[sa])*n,s:Ji(a[la])*n,ms:Ji(SA(1e3*a[ca]))*n}):(a=HA.exec(e))?(n="-"===a[1]?-1:1,i={y:PA(a[2],n),M:PA(a[3],n),w:PA(a[4],n),d:PA(a[5],n),h:PA(a[6],n),m:PA(a[7],n),s:PA(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=TA(t,e),e.isBefore(t)?n=DA(e,t):((n=DA(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(wA(i.from),wA(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),r=new kA(i),FA(e)&&$o(e,"_locale")&&(r._locale=e._locale),FA(e)&&$o(e,"_isValid")&&(r._isValid=e._isValid),r}function PA(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function DA(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function LA(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(di(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),RA(this,_A(n,r),e),this}}function RA(e,t,n,r){var o=t._milliseconds,i=SA(t._days),a=SA(t._months);e.isValid()&&(r=null==r||r,a&&ka(e,ga(e,"Month")+a*n),i&&ya(e,"Date",ga(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&Ko.updateOffset(e,i||a))}_A.fn=kA.prototype,_A.invalid=function(){return _A(NaN)};var zA=LA(1,"add"),KA=LA(-1,"subtract");function jA(e){return"string"==typeof e||e instanceof String}function VA(e){return Ai(e)||qo(e)||jA(e)||Yo(e)||function(e){var t=jo(e),n=!1;t&&(n=0===e.filter(function(t){return!Yo(t)&&jA(e)}).length);return t&&n}(e)||function(e){var t,n,r=Vo(e)&&!Go(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=i.length;for(t=0;t<a;t+=1)n=i[t],o=o||$o(e,n);return r&&o}(e)||null==e}function $A(e,t){if(e.date()<t.date())return-$A(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function GA(e){var t;return void 0===e?this._locale._abbr:(null!=(t=rA(e))&&(this._locale=t),this)}Ko.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Ko.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var WA=li("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function YA(){return this._locale}var qA=1e3,XA=6e4,JA=36e5,ZA=126227808e5;function es(e,t){return(e%t+t)%t}function ts(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ZA:new Date(e,t,n).valueOf()}function ns(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ZA:Date.UTC(e,t,n)}function rs(e,t){return t.erasAbbrRegex(e)}function os(){var e,t,n,r,o,i=[],a=[],A=[],s=[],l=this.eras();for(e=0,t=l.length;e<t;++e)n=qi(l[e].name),r=qi(l[e].abbr),o=qi(l[e].narrow),a.push(n),i.push(r),A.push(o),s.push(n),s.push(r),s.push(o);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+A.join("|")+")","i")}function is(e,t){wi(0,[e,e.length],0,t)}function as(e,t,n,r,o){var i;return null==e?Ma(this,r,o).year:(t>(i=Ia(e,r,o))&&(t=i),As.call(this,e,t,n,r,o))}function As(e,t,n,r,o){var i=Ta(e,t,n,r,o),a=Ua(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}wi("N",0,0,"eraAbbr"),wi("NN",0,0,"eraAbbr"),wi("NNN",0,0,"eraAbbr"),wi("NNNN",0,0,"eraName"),wi("NNNNN",0,0,"eraNarrow"),wi("y",["y",1],"yo","eraYear"),wi("y",["yy",2],0,"eraYear"),wi("y",["yyy",3],0,"eraYear"),wi("y",["yyyy",4],0,"eraYear"),Wi("N",rs),Wi("NN",rs),Wi("NNN",rs),Wi("NNNN",function(e,t){return t.erasNameRegex(e)}),Wi("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ea(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?ei(n).era=o:ei(n).invalidEra=e}),Wi("y",Ri),Wi("yy",Ri),Wi("yyy",Ri),Wi("yyyy",Ri),Wi("yo",function(e,t){return t._eraYearOrdinalRegex||Ri}),ea(["y","yy","yyy","yyyy"],oa),ea(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[oa]=n._locale.eraYearOrdinalParse(e,o):t[oa]=parseInt(e,10)}),wi(0,["gg",2],0,function(){return this.weekYear()%100}),wi(0,["GG",2],0,function(){return this.isoWeekYear()%100}),is("gggg","weekYear"),is("ggggg","weekYear"),is("GGGG","isoWeekYear"),is("GGGGG","isoWeekYear"),Wi("G",zi),Wi("g",zi),Wi("GG",Ni,Oi),Wi("gg",Ni,Oi),Wi("GGGG",Di,Mi),Wi("gggg",Di,Mi),Wi("GGGGG",Li,Ii),Wi("ggggg",Li,Ii),ta(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Ji(e)}),ta(["gg","GG"],function(e,t,n,r){t[r]=Ko.parseTwoDigitYear(e)}),wi("Q",0,"Qo","quarter"),Wi("Q",Ui),ea("Q",function(e,t){t[ia]=3*(Ji(e)-1)}),wi("D",["DD",2],"Do","date"),Wi("D",Ni,$i),Wi("DD",Ni,Oi),Wi("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ea(["D","DD"],aa),ea("Do",function(e,t){t[aa]=Ji(e.match(Ni)[0])});var ss=ma("Date",!0);wi("DDD",["DDDD",3],"DDDo","dayOfYear"),Wi("DDD",Pi),Wi("DDDD",Ti),ea(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ji(e)}),wi("m",["mm",2],0,"minute"),Wi("m",Ni,Gi),Wi("mm",Ni,Oi),ea(["m","mm"],sa);var ls=ma("Minutes",!1);wi("s",["ss",2],0,"second"),Wi("s",Ni,Gi),Wi("ss",Ni,Oi),ea(["s","ss"],la);var cs,us,ds=ma("Seconds",!1);for(wi("S",0,0,function(){return~~(this.millisecond()/100)}),wi(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),wi(0,["SSS",3],0,"millisecond"),wi(0,["SSSS",4],0,function(){return 10*this.millisecond()}),wi(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),wi(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),wi(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),wi(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),wi(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Wi("S",Pi,Ui),Wi("SS",Pi,Oi),Wi("SSS",Pi,Ti),cs="SSSS";cs.length<=9;cs+="S")Wi(cs,Ri);function ps(e,t){t[ca]=Ji(1e3*("0."+e))}for(cs="S";cs.length<=9;cs+="S")ea(cs,ps);us=ma("Milliseconds",!1),wi("z",0,0,"zoneAbbr"),wi("zz",0,0,"zoneName");var hs=ai.prototype;function fs(e){return e}hs.add=zA,hs.calendar=function(e,t){1===arguments.length&&(arguments[0]?VA(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=Vo(e)&&!Go(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=r||$o(e,o[t]);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||wA(),r=TA(n,this).startOf("day"),o=Ko.calendarFormat(this,r)||"sameElse",i=t&&(pi(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,wA(n)))},hs.clone=function(){return new ai(this)},hs.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=TA(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=ki(t)){case"year":i=$A(this,r)/12;break;case"month":i=$A(this,r);break;case"quarter":i=$A(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:Xi(i)},hs.endOf=function(e){var t,n;if(void 0===(e=ki(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ns:ts,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=JA-es(t+(this._isUTC?0:this.utcOffset()*XA),JA)-1;break;case"minute":t=this._d.valueOf(),t+=XA-es(t,XA)-1;break;case"second":t=this._d.valueOf(),t+=qA-es(t,qA)-1}return this._d.setTime(t),Ko.updateOffset(this,!0),this},hs.format=function(e){e||(e=this.isUtc()?Ko.defaultFormatUtc:Ko.defaultFormat);var t=Ci(this,e);return this.localeData().postformat(t)},hs.from=function(e,t){return this.isValid()&&(Ai(e)&&e.isValid()||wA(e).isValid())?_A({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hs.fromNow=function(e){return this.from(wA(),e)},hs.to=function(e,t){return this.isValid()&&(Ai(e)&&e.isValid()||wA(e).isValid())?_A({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hs.toNow=function(e){return this.to(wA(),e)},hs.get=function(e){return pi(this[e=ki(e)])?this[e]():this},hs.invalidAt=function(){return ei(this).overflow},hs.isAfter=function(e,t){var n=Ai(e)?e:wA(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ki(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},hs.isBefore=function(e,t){var n=Ai(e)?e:wA(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ki(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},hs.isBetween=function(e,t,n,r){var o=Ai(e)?e:wA(e),i=Ai(t)?t:wA(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n)))},hs.isSame=function(e,t){var n,r=Ai(e)?e:wA(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ki(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},hs.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},hs.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},hs.isValid=function(){return ti(this)},hs.lang=WA,hs.locale=GA,hs.localeData=YA,hs.max=CA,hs.min=BA,hs.parsingFlags=function(){return Jo({},ei(this))},hs.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)$o(e,t)&&n.push({unit:t,priority:Si[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=Fi(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(pi(this[e=ki(e)]))return this[e](t);return this},hs.startOf=function(e){var t,n;if(void 0===(e=ki(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ns:ts,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=es(t+(this._isUTC?0:this.utcOffset()*XA),JA);break;case"minute":t=this._d.valueOf(),t-=es(t,XA);break;case"second":t=this._d.valueOf(),t-=es(t,qA)}return this._d.setTime(t),Ko.updateOffset(this,!0),this},hs.subtract=KA,hs.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},hs.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},hs.toDate=function(){return new Date(this.valueOf())},hs.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Ci(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):pi(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ci(n,"Z")):Ci(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hs.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(hs[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),hs.toJSON=function(){return this.isValid()?this.toISOString():null},hs.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hs.unix=function(){return Math.floor(this.valueOf()/1e3)},hs.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hs.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hs.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},hs.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},hs.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},hs.eraYear=function(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-Ko(o[e].since).year())*n+o[e].offset;return this.year()},hs.year=fa,hs.isLeapYear=function(){return ra(this.year())},hs.weekYear=function(e){return as.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},hs.isoWeekYear=function(e){return as.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},hs.quarter=hs.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},hs.month=Fa,hs.daysInMonth=function(){return va(this.year(),this.month())},hs.week=hs.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},hs.isoWeek=hs.isoWeeks=function(e){var t=Ma(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},hs.weeksInYear=function(){var e=this.localeData()._week;return Ia(this.year(),e.dow,e.doy)},hs.weeksInWeekYear=function(){var e=this.localeData()._week;return Ia(this.weekYear(),e.dow,e.doy)},hs.isoWeeksInYear=function(){return Ia(this.year(),1,4)},hs.isoWeeksInISOWeekYear=function(){return Ia(this.isoWeekYear(),1,4)},hs.date=ss,hs.day=hs.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=ga(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},hs.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},hs.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},hs.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},hs.hour=hs.hours=Ga,hs.minute=hs.minutes=ls,hs.second=hs.seconds=ds,hs.millisecond=hs.milliseconds=us,hs.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=OA(ji,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=MA(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?RA(this,_A(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ko.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:MA(this)},hs.utc=function(e){return this.utcOffset(0,e)},hs.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(MA(this),"m")),this},hs.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=OA(Ki,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},hs.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?wA(e).utcOffset():0,(this.utcOffset()-e)%60==0)},hs.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hs.isLocal=function(){return!!this.isValid()&&!this._isUTC},hs.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hs.isUtc=IA,hs.isUTC=IA,hs.zoneAbbr=function(){return this._isUTC?"UTC":""},hs.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hs.dates=li("dates accessor is deprecated. Use date instead.",ss),hs.months=li("months accessor is deprecated. Use month instead",Fa),hs.years=li("years accessor is deprecated. Use year instead",fa),hs.zone=li("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),hs.isDSTShifted=li("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!Wo(this._isDSTShifted))return this._isDSTShifted;var e,t={};return ii(t,this),(t=vA(t))._a?(e=t._isUTC?Zo(t._a):wA(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&Ji(e[r])!==Ji(t[r]))&&a++;return a+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var ms=fi.prototype;function gs(e,t,n,r){var o=rA(),i=Zo().set(r,t);return o[n](i,e)}function ys(e,t,n){if(Yo(e)&&(t=e,e=void 0),e=e||"",null!=t)return gs(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=gs(e,r,n,"month");return o}function vs(e,t,n,r){"boolean"==typeof e?(Yo(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,Yo(t)&&(n=t,t=void 0),t=t||"");var o,i=rA(),a=e?i._week.dow:0,A=[];if(null!=n)return gs(t,(n+a)%7,r,"day");for(o=0;o<7;o++)A[o]=gs(t,(o+a)%7,r,"day");return A}ms.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return pi(r)?r.call(t,n):r},ms.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(gi).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},ms.invalidDate=function(){return this._invalidDate},ms.ordinal=function(e){return this._ordinal.replace("%d",e)},ms.preparse=fs,ms.postformat=fs,ms.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return pi(o)?o(e,t,n,r):o.replace(/%d/i,e)},ms.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return pi(n)?n(t):n.replace(/%s/i,t)},ms.set=function(e){var t,n;for(n in e)$o(e,n)&&(pi(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ms.eras=function(e,t){var n,r,o,i=this._eras||rA("en")._eras;for(n=0,r=i.length;n<r;++n){if("string"==typeof i[n].since)o=Ko(i[n].since).startOf("day"),i[n].since=o.valueOf();switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=Ko(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf()}}return i},ms.erasParse=function(e,t,n){var r,o,i,a,A,s=this.eras();for(e=e.toUpperCase(),r=0,o=s.length;r<o;++r)if(i=s[r].name.toUpperCase(),a=s[r].abbr.toUpperCase(),A=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[r];break;case"NNNN":if(i===e)return s[r];break;case"NNNNN":if(A===e)return s[r]}else if([i,a,A].indexOf(e)>=0)return s[r]},ms.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?Ko(e.since).year():Ko(e.since).year()+(t-e.offset)*n},ms.erasAbbrRegex=function(e){return $o(this,"_erasAbbrRegex")||os.call(this),e?this._erasAbbrRegex:this._erasRegex},ms.erasNameRegex=function(e){return $o(this,"_erasNameRegex")||os.call(this),e?this._erasNameRegex:this._erasRegex},ms.erasNarrowRegex=function(e){return $o(this,"_erasNarrowRegex")||os.call(this),e?this._erasNarrowRegex:this._erasRegex},ms.months=function(e,t){return e?jo(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ba).test(t)?"format":"standalone"][e.month()]:jo(this._months)?this._months:this._months.standalone},ms.monthsShort=function(e,t){return e?jo(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ba.test(t)?"format":"standalone"][e.month()]:jo(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ms.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return Ea.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=Zo([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},ms.monthsRegex=function(e){return this._monthsParseExact?($o(this,"_monthsRegex")||Sa.call(this),e?this._monthsStrictRegex:this._monthsRegex):($o(this,"_monthsRegex")||(this._monthsRegex=xa),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ms.monthsShortRegex=function(e){return this._monthsParseExact?($o(this,"_monthsRegex")||Sa.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):($o(this,"_monthsShortRegex")||(this._monthsShortRegex=Ca),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ms.week=function(e){return Ma(e,this._week.dow,this._week.doy).week},ms.firstDayOfYear=function(){return this._week.doy},ms.firstDayOfWeek=function(){return this._week.dow},ms.weekdays=function(e,t){var n=jo(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Na(n,this._week.dow):e?n[e.day()]:n},ms.weekdaysMin=function(e){return!0===e?Na(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},ms.weekdaysShort=function(e){return!0===e?Na(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},ms.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return za.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Zo([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},ms.weekdaysRegex=function(e){return this._weekdaysParseExact?($o(this,"_weekdaysRegex")||Ka.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):($o(this,"_weekdaysRegex")||(this._weekdaysRegex=Da),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ms.weekdaysShortRegex=function(e){return this._weekdaysParseExact?($o(this,"_weekdaysRegex")||Ka.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):($o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=La),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ms.weekdaysMinRegex=function(e){return this._weekdaysParseExact?($o(this,"_weekdaysRegex")||Ka.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):($o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ra),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ms.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ms.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},tA("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Ji(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),Ko.lang=li("moment.lang is deprecated. Use moment.locale instead.",tA),Ko.langData=li("moment.langData is deprecated. Use moment.localeData instead.",rA);var bs=Math.abs;function ws(e,t,n,r){var o=_A(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Bs(e){return e<0?Math.floor(e):Math.ceil(e)}function Cs(e){return 4800*e/146097}function xs(e){return 146097*e/4800}function Es(e){return function(){return this.as(e)}}var ks=Es("ms"),Fs=Es("s"),Ss=Es("m"),Qs=Es("h"),Us=Es("d"),Os=Es("w"),Ts=Es("M"),Ms=Es("Q"),Is=Es("y"),Ns=ks;function Hs(e){return function(){return this.isValid()?this._data[e]:NaN}}var _s=Hs("milliseconds"),Ps=Hs("seconds"),Ds=Hs("minutes"),Ls=Hs("hours"),Rs=Hs("days"),zs=Hs("months"),Ks=Hs("years");var js=Math.round,Vs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $s(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Gs=Math.abs;function Ws(e){return(e>0)-(e<0)||+e}function Ys(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,A,s=Gs(this._milliseconds)/1e3,l=Gs(this._days),c=Gs(this._months),u=this.asSeconds();return u?(e=Xi(s/60),t=Xi(e/60),s%=60,e%=60,n=Xi(c/12),c%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",o=u<0?"-":"",i=Ws(this._months)!==Ws(u)?"-":"",a=Ws(this._days)!==Ws(u)?"-":"",A=Ws(this._milliseconds)!==Ws(u)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(l?a+l+"D":"")+(t||e||s?"T":"")+(t?A+t+"H":"")+(e?A+e+"M":"")+(s?A+r+"S":"")):"P0D"}var qs=kA.prototype;qs.isValid=function(){return this._isValid},qs.abs=function(){var e=this._data;return this._milliseconds=bs(this._milliseconds),this._days=bs(this._days),this._months=bs(this._months),e.milliseconds=bs(e.milliseconds),e.seconds=bs(e.seconds),e.minutes=bs(e.minutes),e.hours=bs(e.hours),e.months=bs(e.months),e.years=bs(e.years),this},qs.add=function(e,t){return ws(this,e,t,1)},qs.subtract=function(e,t){return ws(this,e,t,-1)},qs.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ki(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Cs(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(xs(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},qs.asMilliseconds=ks,qs.asSeconds=Fs,qs.asMinutes=Ss,qs.asHours=Qs,qs.asDays=Us,qs.asWeeks=Os,qs.asMonths=Ts,qs.asQuarters=Ms,qs.asYears=Is,qs.valueOf=Ns,qs._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,A=this._months,s=this._data;return i>=0&&a>=0&&A>=0||i<=0&&a<=0&&A<=0||(i+=864e5*Bs(xs(A)+a),a=0,A=0),s.milliseconds=i%1e3,e=Xi(i/1e3),s.seconds=e%60,t=Xi(e/60),s.minutes=t%60,n=Xi(t/60),s.hours=n%24,a+=Xi(n/24),A+=o=Xi(Cs(a)),a-=Bs(xs(o)),r=Xi(A/12),A%=12,s.days=a,s.months=A,s.years=r,this},qs.clone=function(){return _A(this)},qs.get=function(e){return e=ki(e),this.isValid()?this[e+"s"]():NaN},qs.milliseconds=_s,qs.seconds=Ps,qs.minutes=Ds,qs.hours=Ls,qs.days=Rs,qs.weeks=function(){return Xi(this.days()/7)},qs.months=zs,qs.years=Ks,qs.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Vs;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},Vs,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=function(e,t,n,r){var o=_A(e).abs(),i=js(o.as("s")),a=js(o.as("m")),A=js(o.as("h")),s=js(o.as("d")),l=js(o.as("M")),c=js(o.as("w")),u=js(o.as("y")),d=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||A<=1&&["h"]||A<n.h&&["hh",A]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=t,d[3]=+e>0,d[4]=r,$s.apply(null,d)}(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},qs.toISOString=Ys,qs.toString=Ys,qs.toJSON=Ys,qs.locale=GA,qs.localeData=YA,qs.toIsoString=li("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ys),qs.lang=WA,wi("X",0,0,"unix"),wi("x",0,0,"valueOf"),Wi("x",zi),Wi("X",/[+-]?\d+(\.\d{1,3})?/),ea("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ea("x",function(e,t,n){n._d=new Date(Ji(e))}),
//! moment.js
Ko.version="2.30.1",Qo=wA,Ko.fn=hs,Ko.min=function(){return xA("isBefore",[].slice.call(arguments,0))},Ko.max=function(){return xA("isAfter",[].slice.call(arguments,0))},Ko.now=function(){return Date.now?Date.now():+new Date},Ko.utc=Zo,Ko.unix=function(e){return wA(1e3*e)},Ko.months=function(e,t){return ys(e,t,"months")},Ko.isDate=qo,Ko.locale=tA,Ko.invalid=ni,Ko.duration=_A,Ko.isMoment=Ai,Ko.weekdays=function(e,t,n){return vs(e,t,n,"weekdays")},Ko.parseZone=function(){return wA.apply(null,arguments).parseZone()},Ko.localeData=rA,Ko.isDuration=FA,Ko.monthsShort=function(e,t){return ys(e,t,"monthsShort")},Ko.weekdaysMin=function(e,t,n){return vs(e,t,n,"weekdaysMin")},Ko.defineLocale=nA,Ko.updateLocale=function(e,t){if(null!=t){var n,r,o=Ya;null!=qa[e]&&null!=qa[e].parentLocale?qa[e].set(hi(qa[e]._config,t)):(null!=(r=eA(e))&&(o=r._config),t=hi(o,t),null==r&&(t.abbr=e),(n=new fi(t)).parentLocale=qa[e],qa[e]=n),tA(e)}else null!=qa[e]&&(null!=qa[e].parentLocale?(qa[e]=qa[e].parentLocale,e===tA()&&tA(e)):null!=qa[e]&&delete qa[e]);return qa[e]},Ko.locales=function(){return ci(qa)},Ko.weekdaysShort=function(e,t,n){return vs(e,t,n,"weekdaysShort")},Ko.normalizeUnits=ki,Ko.relativeTimeRounding=function(e){return void 0===e?js:"function"==typeof e&&(js=e,!0)},Ko.relativeTimeThreshold=function(e,t){return void 0!==Vs[e]&&(void 0===t?Vs[e]:(Vs[e]=t,"s"===e&&(Vs.ss=t-1),!0))},Ko.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},Ko.prototype=hs,Ko.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Xs={momentLocale:"zh-cn",Timeline:{expand:"\u5c55\u5f00",fold:"\u6536\u8d77"},Balloon:{close:"\u5173\u95ed"},Card:{expand:"\u5c55\u5f00",fold:"\u6536\u8d77"},Calendar:{today:"\u4eca\u5929",now:"\u6b64\u523b",ok:"\u786e\u5b9a",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",prevYear:"\u4e0a\u4e00\u5e74",nextYear:"\u4e0b\u4e00\u5e74",prevMonth:"\u4e0a\u4e2a\u6708",nextMonth:"\u4e0b\u4e2a\u6708",prevDecade:"\u4e0a\u5341\u5e74",nextDecade:"\u540e\u5341\u5e74",yearSelectAriaLabel:"\u9009\u62e9\u5e74\u4efd",monthSelectAriaLabel:"\u9009\u62e9\u6708\u4efd"},DatePicker:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",datetimePlaceholder:"\u8bf7\u9009\u62e9\u65e5\u671f\u548c\u65f6\u95f4",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",now:"\u6b64\u523b",selectTime:"\u9009\u62e9\u65f6\u95f4",selectDate:"\u9009\u62e9\u65e5\u671f",ok:"\u786e\u5b9a",clear:"\u6e05\u9664",startPlaceholder:"\u8d77\u59cb\u65e5\u671f",endPlaceholder:"\u7ed3\u675f\u65e5\u671f",hour:"\u65f6",minute:"\u5206",second:"\u79d2",monthBeforeYear:!1},Dialog:{close:"\u5173\u95ed",ok:"\u786e\u5b9a",cancel:"\u53d6\u6d88"},Drawer:{close:"\u5173\u95ed"},Message:{closeAriaLabel:"\u5173\u95ed"},Pagination:{prev:"\u4e0a\u4e00\u9875",next:"\u4e0b\u4e00\u9875",goTo:"\u5230\u7b2c",page:"\u9875",go:"\u786e\u5b9a",total:"\u7b2c{current}\u9875\uff0c\u5171{total}\u9875",labelPrev:"\u4e0a\u4e00\u9875\uff0c\u5f53\u524d\u7b2c{current}\u9875",labelNext:"\u4e0b\u4e00\u9875\uff0c\u5f53\u524d\u7b2c{current}\u9875",inputAriaLabel:"\u8bf7\u8f93\u5165\u8df3\u8f6c\u5230\u7b2c\u51e0\u9875",selectAriaLabel:"\u8bf7\u9009\u62e9\u6bcf\u9875\u663e\u793a\u51e0\u6761",pageSize:"\u6bcf\u9875\u663e\u793a\uff1a"},Input:{clear:"\u6e05\u9664"},TextArea:{clear:"\u6e05\u9664"},List:{empty:"\u6ca1\u6709\u6570\u636e"},Select:{selectPlaceholder:"\u8bf7\u9009\u62e9",autoCompletePlaceholder:"\u8bf7\u8f93\u5165",notFoundContent:"\u65e0\u9009\u9879",maxTagPlaceholder:"\u5df2\u9009\u62e9 {selected}/{total} \u9879",selectAll:"\u5168\u9009"},TreeSelect:{maxTagPlaceholder:"\u5df2\u9009\u62e9 {selected}/{total} \u9879",shortMaxTagPlaceholder:"\u5df2\u9009\u62e9 {selected} \u9879"},Table:{empty:"\u6ca1\u6709\u6570\u636e",ok:"\u786e\u8ba4",reset:"\u91cd\u7f6e",asc:"\u5347\u5e8f",desc:"\u964d\u5e8f",expanded:"\u5df2\u5c55\u5f00",folded:"\u5df2\u6298\u53e0",filter:"\u7b5b\u9009",selectAll:"\u5168\u9009"},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",clear:"\u6e05\u9664",hour:"\u65f6",minute:"\u5206",second:"\u79d2",ok:"\u786e\u5b9a"},Transfer:{items:"\u9879",item:"\u9879",moveAll:"\u79fb\u52a8\u5168\u90e8",searchPlaceholder:"\u8bf7\u8f93\u5165",moveToLeft:"\u64a4\u9500\u9009\u4e2d\u5143\u7d20",moveToRight:"\u63d0\u4ea4\u9009\u4e2d\u5143\u7d20"},Upload:{card:{cancel:"\u53d6\u6d88",addPhoto:"\u4e0a\u4f20\u56fe\u7247",download:"\u4e0b\u8f7d",delete:"\u5220\u9664"},drag:{text:"\u70b9\u51fb\u6216\u8005\u62d6\u52a8\u6587\u4ef6\u5230\u865a\u7ebf\u6846\u5185\u4e0a\u4f20",hint:"\u652f\u6301 docx, xls, PDF, rar, zip, PNG, JPG \u7b49\u7c7b\u578b\u7684\u6587\u4ef6"},upload:{delete:"\u5220\u9664"}},Search:{buttonText:"\u641c\u7d22"},Tag:{delete:"\u5220\u9664"},Rating:{description:"\u8bc4\u5206\u9009\u9879"},Switch:{on:"\u5df2\u6253\u5f00",off:"\u5df2\u5173\u95ed"},Tab:{closeAriaLabel:"\u5173\u95ed"},Form:{Validate:{default:"%s \u6821\u9a8c\u5931\u8d25",required:"%s \u662f\u5fc5\u586b\u5b57\u6bb5",format:{number:"%s \u4e0d\u662f\u5408\u6cd5\u7684\u6570\u5b57",email:"%s \u4e0d\u662f\u5408\u6cd5\u7684 email \u5730\u5740",url:"%s \u4e0d\u662f\u5408\u6cd5\u7684 URL \u5730\u5740",tel:"%s \u4e0d\u662f\u5408\u6cd5\u7684\u7535\u8bdd\u53f7\u7801"},number:{length:"%s \u957f\u5ea6\u5fc5\u987b\u662f %s",min:"%s \u4e0d\u5f97\u5c0f\u4e8e %s",max:"%s \u4e0d\u5f97\u5927\u4e8e %s",minLength:"%s \u5b57\u6bb5\u5b57\u7b26\u957f\u5ea6\u4e0d\u5f97\u5c11\u4e8e %s",maxLength:"%s \u5b57\u6bb5\u5b57\u7b26\u957f\u5ea6\u4e0d\u5f97\u8d85\u8fc7 %s"},string:{length:"%s \u957f\u5ea6\u5fc5\u987b\u662f %s",min:"%s \u4e0d\u5f97\u5c0f\u4e8e %s",max:"%s \u4e0d\u5f97\u5927\u4e8e %s",minLength:"%s \u957f\u5ea6\u4e0d\u5f97\u5c11\u4e8e %s",maxLength:"%s \u957f\u5ea6\u4e0d\u5f97\u8d85\u8fc7 %s"},array:{length:"%s \u4e2a\u6570\u5fc5\u987b\u662f %s",minLength:"%s \u4e2a\u6570\u4e0d\u5f97\u5c11\u4e8e %s",maxLength:"%s \u4e2a\u6570\u4e0d\u5f97\u8d85\u8fc7 %s"},pattern:"%s \u6570\u503c %s \u4e0d\u5339\u914d\u6b63\u5219 %s"}}};function Js(e){return null==e?{}:"boolean"==typeof e?{open:e}:Fn({open:!0},e)}function Zs(e,t,n){var r,o,i=e.prefix,a=e.locale,A=e.pure,s=e.rtl,l=e.device,c=e.popupContainer,u=e.errorBoundary,d=t.nextPrefix,p=t.nextLocale,h=t.nextDefaultPropsConfig,f=t.nextPure,m=t.nextWarning,g=t.nextRtl,y=t.nextDevice,v=t.nextPopupContainer,b=t.nextErrorBoundary,w=i||d,B=n;switch(n){case"DatePicker2":B="DatePicker";break;case"Calendar2":B="Calendar";break;case"TimePicker2":B="TimePicker"}p&&(r=p[B])&&(r.momentLocale=p.momentLocale),a?o=Ho.deepMerge({},Xs[B],r,a):r&&(o=Ho.deepMerge({},Xs[B],r));var C="boolean"==typeof A?A:f,x="boolean"==typeof s?s:g,E=Fn(Fn({},Js(b)),Js(u));return"open"in E||(E.open=!1),{prefix:w,locale:o,pure:C,rtl:x,warning:m,defaultPropsConfig:h||{},device:l||y||void 0,popupContainer:c||v,errorBoundary:E}}var el={exports:{}},tl={},nl="function"==typeof Symbol&&Symbol.for,rl=nl?Symbol.for("react.element"):60103,ol=nl?Symbol.for("react.portal"):60106,il=nl?Symbol.for("react.fragment"):60107,al=nl?Symbol.for("react.strict_mode"):60108,Al=nl?Symbol.for("react.profiler"):60114,sl=nl?Symbol.for("react.provider"):60109,ll=nl?Symbol.for("react.context"):60110,cl=nl?Symbol.for("react.async_mode"):60111,ul=nl?Symbol.for("react.concurrent_mode"):60111,dl=nl?Symbol.for("react.forward_ref"):60112,pl=nl?Symbol.for("react.suspense"):60113,hl=nl?Symbol.for("react.suspense_list"):60120,fl=nl?Symbol.for("react.memo"):60115,ml=nl?Symbol.for("react.lazy"):60116,gl=nl?Symbol.for("react.block"):60121,yl=nl?Symbol.for("react.fundamental"):60117,vl=nl?Symbol.for("react.responder"):60118,bl=nl?Symbol.for("react.scope"):60119;function wl(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case rl:switch(e=e.type){case cl:case ul:case il:case Al:case al:case pl:return e;default:switch(e=e&&e.$$typeof){case ll:case dl:case ml:case fl:case sl:return e;default:return t}}case ol:return t}}}function Bl(e){return wl(e)===ul}tl.AsyncMode=cl,tl.ConcurrentMode=ul,tl.ContextConsumer=ll,tl.ContextProvider=sl,tl.Element=rl,tl.ForwardRef=dl,tl.Fragment=il,tl.Lazy=ml,tl.Memo=fl,tl.Portal=ol,tl.Profiler=Al,tl.StrictMode=al,tl.Suspense=pl,tl.isAsyncMode=function(e){return Bl(e)||wl(e)===cl},tl.isConcurrentMode=Bl,tl.isContextConsumer=function(e){return wl(e)===ll},tl.isContextProvider=function(e){return wl(e)===sl},tl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===rl},tl.isForwardRef=function(e){return wl(e)===dl},tl.isFragment=function(e){return wl(e)===il},tl.isLazy=function(e){return wl(e)===ml},tl.isMemo=function(e){return wl(e)===fl},tl.isPortal=function(e){return wl(e)===ol},tl.isProfiler=function(e){return wl(e)===Al},tl.isStrictMode=function(e){return wl(e)===al},tl.isSuspense=function(e){return wl(e)===pl},tl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===il||e===ul||e===Al||e===al||e===pl||e===hl||"object"==typeof e&&null!==e&&(e.$$typeof===ml||e.$$typeof===fl||e.$$typeof===sl||e.$$typeof===ll||e.$$typeof===dl||e.$$typeof===yl||e.$$typeof===vl||e.$$typeof===bl||e.$$typeof===gl)},tl.typeOf=wl,el.exports=tl;var Cl=el.exports,xl={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},El={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},kl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fl={};function Sl(e){return Cl.isMemo(e)?kl:Fl[e.$$typeof]||xl}Fl[Cl.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fl[Cl.Memo]=kl;var Ql=Object.defineProperty,Ul=Object.getOwnPropertyNames,Ol=Object.getOwnPropertySymbols,Tl=Object.getOwnPropertyDescriptor,Ml=Object.getPrototypeOf,Il=Object.prototype;var Nl=function e(t,n,r){if("string"!=typeof n){if(Il){var o=Ml(n);o&&o!==Il&&e(t,o,r)}var i=Ul(n);Ol&&(i=i.concat(Ol(n)));for(var a=Sl(t),A=Sl(n),s=0;s<i.length;++s){var l=i[s];if(!(El[l]||r&&r[l]||A&&A[l]||a&&a[l])){var c=Tl(n,l);try{Ql(t,l,c)}catch(u){}}}}return t};const Hl=ne(Nl);function _l(){return""}_l.propTypes={error:Nn.object,errorInfo:Nn.object};var Pl=function(e){function t(t){var n=e.call(this,t)||this;return n.state={error:null,errorInfo:null},n}return kn(t,e),t.prototype.componentDidCatch=function(e,t){this.setState({error:e,errorInfo:t});var n=this.props.afterCatch;"function"==typeof n&&n(e,t)},t.prototype.render=function(){var e=this.props.fallbackUI,t=void 0===e?_l:e;return this.state.errorInfo?b.createElement(t,{error:this.state.error,errorInfo:this.state.errorInfo}):this.props.children},t.propTypes={children:Nn.element,afterCatch:Nn.func,fallbackUI:Nn.func},t}(b.Component);const Dl=Pl;var Ll,Rl=Ho.shallowEqual;function zl(e){return e.displayName||e.name||"Component"}var Kl,jl="zh-cn",Vl={};function $l(e){Ll=e,e&&(Vl=e[jl],"boolean"!=typeof Kl&&(Kl=Vl&&Vl.rtl))}function Gl(e){Ll&&(jl=e,Vl=Ll[e],"boolean"!=typeof Kl&&(Kl=Vl&&Vl.rtl))}function Wl(e){Vl=Fn(Fn({},Ll?Ll[jl]:{}),e),"boolean"!=typeof Kl&&(Kl=Vl&&Vl.rtl)}function Yl(e){Kl="rtl"===e}function ql(){return Vl}function Xl(){return jl}function Jl(){return Kl}function Zl(e,t){void 0===t&&(t={}),Ho.isClassComponent(e)&&void 0===e.prototype.shouldComponentUpdate&&(e.prototype.shouldComponentUpdate=function(e,t){return!this.props.pure||(!Rl(this.props,e)||!Rl(this.state,t))});var n=function(n){function r(e,t){var r=n.call(this,e,t)||this;return r._getInstance=r._getInstance.bind(r),r._deprecated=r._deprecated.bind(r),r}return kn(r,n),r.prototype._getInstance=function(e){var n=this;this._instance=e,this._instance&&t.exportNames&&t.exportNames.forEach(function(e){var t=n._instance[e];n[e]="function"==typeof t?t.bind(n._instance):t})},r.prototype._deprecated=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];!1!==this.context.nextWarning&&No.deprecated.apply(No,Un([],Qn(e),!1))},r.prototype.getInstance=function(){return this._instance},r.prototype.render=function(){var n=this.props,r=n.prefix,o=n.locale,i=n.defaultPropsConfig,a=n.pure,A=n.rtl,s=n.device,l=n.popupContainer,c=n.errorBoundary,u=Sn(n,["prefix","locale","defaultPropsConfig","pure","rtl","device","popupContainer","errorBoundary"]),d=this.context,p=d.nextPrefix,h=d.nextLocale,f=void 0===h?{}:h,m=d.nextDefaultPropsConfig,g=void 0===m?{}:m,y=d.nextPure,v=d.nextRtl,w=d.nextDevice,B=d.nextPopupContainer,C=d.nextErrorBoundary,x=t.componentName||zl(e),E=Zs({prefix:r,locale:o,defaultPropsConfig:i,pure:a,device:s,popupContainer:l,rtl:A,errorBoundary:c},{nextPrefix:p,nextLocale:Fn(Fn({},Vl),f),nextDefaultPropsConfig:g,nextPure:y,nextDevice:w,nextPopupContainer:B,nextRtl:"boolean"==typeof v?v:!0===Kl||void 0,nextErrorBoundary:C},x),k=["prefix","locale","pure","rtl","device","popupContainer"].reduce(function(e,t){return void 0!==E[t]&&(e[t]=E[t]),e},{});"pure"in k&&k.pure&&No.warning("pure of ConfigProvider is deprecated, use Function Component or React.PureComponent"),"popupContainer"in k&&void 0===this.props.container&&["Overlay","Popup"].indexOf(x)>-1&&(k.container=k.popupContainer,delete k.popupContainer);var F,S=t.transform?t.transform(u,this._deprecated):u,Q=Fn(Fn(Fn({},E.defaultPropsConfig[x]),S),k);F=e,(Ho.isClassComponent(F)||Ho.isForwardRefComponent(F))&&(Q.ref=this._getInstance);var U=b.createElement(e,Fn({},Q)),O=E.errorBoundary,T=O.open,M=Sn(O,["open"]);return T?b.createElement(Dl,Fn({},M),U):U},r.displayName="Config(".concat(zl(e),")"),r.propTypes=Fn(Fn({},e.propTypes||{}),{prefix:Nn.string,locale:Nn.object,defaultPropsConfig:Nn.object,pure:Nn.bool,rtl:Nn.bool,device:Nn.oneOf(["tablet","desktop","phone"]),popupContainer:Nn.any,errorBoundary:Nn.oneOfType([Nn.bool,Nn.object])}),r.contextTypes=Fn(Fn({},e.contextTypes||{}),{nextPrefix:Nn.string,nextLocale:Nn.object,nextDefaultPropsConfig:Nn.object,nextPure:Nn.bool,nextRtl:Nn.bool,nextWarning:Nn.bool,nextDevice:Nn.oneOf(["tablet","desktop","phone"]),nextPopupContainer:Nn.any,nextErrorBoundary:Nn.oneOfType([Nn.bool,Nn.object])}),r}(b.Component);return Hl(n,e),n}var ec=function(e){return e.replace(/^(next)([A-Z])/,function(e,t,n){return n.toLowerCase()})},tc=function(e){return function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=e[r];n[t(r,o)]=o}return n}(e,ec)},nc=function(e,t){var n=e.children;return"function"==typeof n?n(tc(t)):null};nc.propTypes={children:Nn.func},nc.contextTypes={nextPrefix:Nn.string,nextLocale:Nn.object,nextPure:Nn.bool,newRtl:Nn.bool,nextWarning:Nn.bool,nextDevice:Nn.oneOf(["tablet","desktop","phone"]),nextPopupContainer:Nn.any};const rc=nc;var oc=new(function(){function e(){this._root=null,this._store=new Map}return e.prototype.empty=function(){return 0===this._store.size},e.prototype.has=function(e){return this._store.has(e)},e.prototype.get=function(e,t){var n=this.has(e)?this._store.get(e):this.root();return null==n?t:n},e.prototype.add=function(e,t){this.empty()&&(this._root=e),this._store.set(e,t)},e.prototype.update=function(e,t){this.has(e)&&this._store.set(e,t)},e.prototype.remove=function(e){if(this._store.delete(e),e===this._root){var t=this._store.keys().next().value;this._root=t}},e.prototype.clear=function(){this._store.clear()},e.prototype.root=function(){return this._store.get(this._root)},e}()),ic=function(e){Ko&&Ko.locale&&e&&Ko.locale(e.momentLocale)},ac=function(e){e&&Ao.locale(e.dateLocale||e.momentLocale)},Ac=function(e){function t(t,n){var r=e.call(this,t,n)||this;return oc.add(r,Object.assign({},oc.get(r,{}),r.getChildContext())),ic(r.props.locale),ac(r.props.locale),r.state={locale:r.props.locale},r}return kn(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.prefix,n=e.locale,r=e.defaultPropsConfig,o=e.pure,i=e.warning,a=e.rtl,A=e.device,s=e.popupContainer,l=e.errorBoundary,c=this.context,u=c.nextPrefix,d=c.nextDefaultPropsConfig,p=c.nextLocale,h=c.nextPure,f=c.nextRtl,m=c.nextWarning,g=c.nextDevice,y=c.nextPopupContainer,v=c.nextErrorBoundary;return{nextPrefix:t||u,nextDefaultPropsConfig:r||d,nextLocale:n||p,nextPure:"boolean"==typeof o?o:h,nextRtl:"boolean"==typeof a?a:f,nextWarning:"boolean"==typeof i?i:m,nextDevice:A||g,nextPopupContainer:s||y,nextErrorBoundary:l||v}},t.getDerivedStateFromProps=function(e,t){return e.locale!==t.locale?(ic(e.locale),ac(e.locale),{locale:e.locale}):null},t.prototype.componentDidUpdate=function(){oc.add(this,Object.assign({},oc.get(this,{}),this.getChildContext()))},t.prototype.componentWillUnmount=function(){oc.remove(this)},t.prototype.render=function(){return b.Children.only(this.props.children)},t.propTypes={prefix:Nn.string,locale:Nn.object,defaultPropsConfig:Nn.object,errorBoundary:Nn.oneOfType([Nn.bool,Nn.object]),pure:Nn.bool,warning:Nn.bool,rtl:Nn.bool,device:Nn.oneOf(["tablet","desktop","phone"]),children:Nn.any,popupContainer:Nn.any},t.defaultProps={warning:!0,errorBoundary:!1},t.contextTypes={nextPrefix:Nn.string,nextLocale:Nn.object,nextDefaultPropsConfig:Nn.object,nextPure:Nn.bool,nextRtl:Nn.bool,nextWarning:Nn.bool,nextDevice:Nn.oneOf(["tablet","desktop","phone"]),nextPopupContainer:Nn.any,nextErrorBoundary:Nn.oneOfType([Nn.bool,Nn.object])},t.childContextTypes={nextPrefix:Nn.string,nextLocale:Nn.object,nextDefaultPropsConfig:Nn.object,nextPure:Nn.bool,nextRtl:Nn.bool,nextWarning:Nn.bool,nextDevice:Nn.oneOf(["tablet","desktop","phone"]),nextPopupContainer:Nn.any,nextErrorBoundary:Nn.oneOfType([Nn.bool,Nn.object])},t.config=Zl,t.initLocales=$l,t.setLanguage=Gl,t.setLocale=Wl,t.setDirection=Yl,t.getLanguage=Xl,t.getLocale=ql,t.getDirection=Jl,t.Consumer=rc,t.ErrorBoundary=Dl,t.getContextProps=function(e,t){return Zs(e,oc.root()||{},t)},t.clearCache=function(){oc.clear()},t.getContext=function(){var e=oc.root()||{};return{prefix:e.nextPrefix,locale:e.nextLocale,defaultPropsConfig:e.nextDefaultPropsConfig,pure:e.nextPure,rtl:e.nextRtl,warning:e.nextWarning,device:e.nextDevice,popupContainer:e.nextPopupContainer,errorBoundary:e.nextErrorBoundary}},t}(b.Component);const sc=lr(Ac);function lc(e,t){if("undefined"==typeof window)return 0;var n=t?"scrollTop":"scrollLeft";return e===window?e[t?"pageYOffset":"pageXOffset"]:e[n]}function cc(e){return e!==window?e.getBoundingClientRect():{top:0,left:0,bottom:0}}var uc=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o._clearContainerEvent=function(){o.timeout&&(clearTimeout(o.timeout),o.timeout=null);var e=o.props.container;o._removeEventHandlerForContainer(e)},o.updatePosition=function(){o._updateNodePosition()},o._updateNodePosition=function(){var e=o.state.affixMode,t=o.props,n=t.container,r=t.useAbsolute,i=n();if(!i||!o.affixNode)return!1;var a,A=lc(i,!0),s=o._getOffset(o.affixNode,i),l=(a=i)?a===window?window.innerHeight:a.clientHeight:0,c=o.affixNode.offsetHeight,u=cc(i),d=o.affixChildNode.offsetHeight,p={width:s.width},h={width:s.width,height:d},f=null;e.top&&A>s.top-e.offset?(r?(p.position="absolute",p.top=A-(s.top-e.offset),f="relative"):(p.position="fixed",p.top=e.offset+u.top),o._setAffixStyle(p,!0),o._setContainerStyle(h)):e.bottom&&A<s.top+c+e.offset-l?(p.height=c,r?(p.position="absolute",p.top=A-(s.top+c+e.offset-l),f="relative"):(p.position="fixed",p.bottom=e.offset),o._setAffixStyle(p,!0),o._setContainerStyle(h)):(o._setAffixStyle(null),o._setContainerStyle(null)),o.state.positionStyle!==f&&o.setState({positionStyle:f})},o._affixNodeRefHandler=function(e){o.affixNode=e},o._affixChildNodeRefHandler=function(e){o.affixChildNode=e},o.state={style:null,containerStyle:null,positionStyle:null,affixMode:t._getAffixMode(n)},o.resizeObserver=new ir(o._updateNodePosition),o}return kn(t,e),t._getAffixMode=function(e){var t={top:!1,bottom:!1,offset:0};if(!e)return t;var n=e.offsetTop,r=e.offsetBottom;return"number"!=typeof n&&"number"!=typeof r?t.top=!0:"number"==typeof n?(t.top=!0,t.bottom=!1,t.offset=n):"number"==typeof r&&(t.bottom=!0,t.top=!1,t.offset=r),t},t.getDerivedStateFromProps=function(e){return"offsetTop"in e||"offsetBottom"in e?{affixMode:t._getAffixMode(e)}:null},t.prototype.componentDidMount=function(){var e=this,t=this.props.container;this.timeout=setTimeout(function(){e._updateNodePosition(),e._setEventHandlerForContainer(t)})},t.prototype.componentDidUpdate=function(e){var t=this;e.container()!==this.props.container()&&(this._clearContainerEvent(),this.timeout=setTimeout(function(){t._setEventHandlerForContainer(t.props.container)})),setTimeout(this._updateNodePosition)},t.prototype.componentWillUnmount=function(){this._clearContainerEvent()},t.prototype._setEventHandlerForContainer=function(e){var t=e();t&&(Mo.on(t,"scroll",this._updateNodePosition,!1),this.resizeObserver.observe(this.affixNode))},t.prototype._removeEventHandlerForContainer=function(e){var t=e();t&&(Mo.off(t,"scroll",this._updateNodePosition),this.resizeObserver.disconnect())},t.prototype._setAffixStyle=function(e,t){if(void 0===t&&(t=!1),!Ho.shallowEqual(e,this.state.style)){this.setState({style:e});var n=this.props.onAffix;t?setTimeout(function(){return n(!0)}):e||setTimeout(function(){return n(!1)})}},t.prototype._setContainerStyle=function(e){Ho.shallowEqual(e,this.state.containerStyle)||this.setState({containerStyle:e})},t.prototype._getOffset=function(e,t){var n=e.getBoundingClientRect(),r=cc(t),o=lc(t,!0),i=lc(t,!1);return{top:n.top-r.top+o,left:n.left-r.left+i,width:n.width,height:n.height}},t.prototype.render=function(){var e,t=this.state,n=t.affixMode,r=t.positionStyle,o=this.props,i=o.prefix,a=o.className,A=o.style,s=o.children,l=this.state,c=_n(((e={})["".concat(i,"affix")]=l.style,e["".concat(i,"affix-top")]=!l.style&&n.top,e["".concat(i,"affix-bottom")]=!l.style&&n.bottom,e[a]=a,e)),u=Fn(Fn({},A),{position:r||void 0});return b.createElement("div",{ref:this._affixNodeRefHandler,style:u},l.style&&b.createElement("div",{style:l.containerStyle,"aria-hidden":"true"}),b.createElement("div",{ref:this._affixChildNodeRefHandler,className:c,style:l.style},s))},t.propTypes={prefix:Nn.string,container:Nn.func,offsetTop:Nn.number,offsetBottom:Nn.number,onAffix:Nn.func,useAbsolute:Nn.bool,className:Nn.string,style:Nn.object,children:Nn.any},t.defaultProps={prefix:"next-",container:function(){return window},onAffix:Io.noop},t}(b.Component);const dc=sc.config(lr(uc));function pc(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var hc={exports:{}},fc={exports:{}},mc={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(mc);var gc,yc=mc.exports,vc={exports:{}};!function(e,t){var n=yc;t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,r.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var r=n((gc||(gc=1,function(e,t){t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default}(vc,vc.exports)),vc.exports));e.exports=t.default}(fc,fc.exports);var bc=fc.exports;function wc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Bc=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=wc(e.className,t):e.setAttribute("class",wc(e.className&&e.className.baseVal||"",t))},Cc={};const xc=re(cr);Cc.__esModule=!0,Cc.default=Cc.EXITING=Cc.ENTERED=Cc.ENTERING=Cc.EXITED=Cc.UNMOUNTED=void 0;var Ec=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(In),kc=Qc(b),Fc=Qc(w),Sc=xc;function Qc(e){return e&&e.__esModule?e:{default:e}}var Uc="unmounted";Cc.UNMOUNTED=Uc;var Oc="exited";Cc.EXITED=Oc;var Tc="entering";Cc.ENTERING=Tc;var Mc="entered";Cc.ENTERED=Mc;var Ic="exiting";Cc.EXITING=Ic;var Nc=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=Oc,r.appearStatus=Tc):o=Mc:o=t.unmountOnExit||t.mountOnEnter?Uc:Oc,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Uc?{status:Oc}:null},o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Tc&&n!==Mc&&(t=Tc):n!==Tc&&n!==Mc||(t=Ic)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=Fc.default.findDOMNode(this);t===Tc?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===Oc&&this.setState({status:Uc})},o.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:Tc},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,function(){n.safeSetState({status:Mc},function(){n.props.onEntered(e,o)})})})):this.safeSetState({status:Mc},function(){n.props.onEntered(e)})},o.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:Ic},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:Oc},function(){t.props.onExited(e)})})})):this.safeSetState({status:Oc},function(){t.props.onExited(e)})},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===Uc)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var o=kc.default.Children.only(n);return kc.default.cloneElement(o,r)},r}(kc.default.Component);function Hc(){}Nc.contextTypes={transitionGroup:Ec.object},Nc.childContextTypes={transitionGroup:function(){}},Nc.propTypes={},Nc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Hc,onEntering:Hc,onEntered:Hc,onExit:Hc,onExiting:Hc,onExited:Hc},Nc.UNMOUNTED=0,Nc.EXITED=1,Nc.ENTERING=2,Nc.ENTERED=3,Nc.EXITING=4;var _c=(0,Sc.polyfill)(Nc);Cc.default=_c,function(e,t){t.__esModule=!0,t.default=void 0,function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(In);var n=a(bc),r=a(Bc),o=a(b),i=a(Cc);function a(e){return e&&e.__esModule?e:{default:e}}function A(){return A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}var s=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,n.default)(e,t)})},l=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,r.default)(e,t)})},c=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),s(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),s(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),s(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),s(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{className:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&l(e,r),o&&l(e,o),i&&l(e,i)},a.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,s(e,t))},a.render=function(){var e=A({},this.props);return delete e.classNames,o.default.createElement(i.default,A({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);c.defaultProps={classNames:""},c.propTypes={};var u=c;t.default=u,e.exports=t.default}(hc,hc.exports);var Pc=hc.exports,Dc={exports:{}},Lc={exports:{}},Rc={__esModule:!0};Rc.getChildMapping=Kc,Rc.mergeChildMappings=jc,Rc.getInitialChildMapping=function(e,t){return Kc(e.children,function(n){return(0,zc.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Vc(n,"appear",e),enter:Vc(n,"enter",e),exit:Vc(n,"exit",e)})})},Rc.getNextChildMapping=function(e,t,n){var r=Kc(e.children),o=jc(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if((0,zc.isValidElement)(a)){var A=i in t,s=i in r,l=t[i],c=(0,zc.isValidElement)(l)&&!l.props.in;!s||A&&!c?s||!A||c?s&&A&&(0,zc.isValidElement)(l)&&(o[i]=(0,zc.cloneElement)(a,{onExited:n.bind(null,a),in:l.props.in,exit:Vc(a,"exit",e),enter:Vc(a,"enter",e)})):o[i]=(0,zc.cloneElement)(a,{in:!1}):o[i]=(0,zc.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:Vc(a,"exit",e),enter:Vc(a,"enter",e)})}}),o};var zc=b;function Kc(e,t){var n=Object.create(null);return e&&zc.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,zc.isValidElement)(e)?t(e):e}(e)}),n}function jc(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var A={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var l=o[s][r];A[o[s][r]]=n(l)}A[s]=n(s)}for(r=0;r<i.length;r++)A[i[r]]=n(i[r]);return A}function Vc(e,t,n){return null!=n[t]?n[t]:e.props[t]}!function(e,t){t.__esModule=!0,t.default=void 0;var n=a(In),r=a(b),o=xc,i=Rc;function a(e){return e&&e.__esModule?e:{default:e}}function A(){return A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},c=function(e){var t,n;function o(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(s(s(r)));return r.state={handleExited:o,firstRender:!0},r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=o.prototype;return a.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},a.componentDidMount=function(){this.appeared=!0,this.mounted=!0},a.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,i.getInitialChildMapping)(e,r):(0,i.getNextChildMapping)(e,n,r),firstRender:!1}},a.handleExited=function(e,t){var n=(0,i.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=A({},t.children);return delete n[e.key],{children:n}}))},a.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=l(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?i:r.default.createElement(t,o,i)},o}(r.default.Component);c.childContextTypes={transitionGroup:n.default.object.isRequired},c.propTypes={},c.defaultProps={component:"div",childFactory:function(e){return e}};var u=(0,o.polyfill)(c);t.default=u,e.exports=t.default}(Lc,Lc.exports);var $c=Lc.exports;!function(e,t){t.__esModule=!0,t.default=void 0,i(In);var n=i(b),r=w,o=i($c);function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t,i;function a(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}i=e,(t=a).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i;var A=a.prototype;return A.handleLifecycle=function(e,t,o){var i,a=this.props.children,A=n.default.Children.toArray(a)[t];A.props[e]&&(i=A.props)[e].apply(i,o),this.props[e]&&this.props[e]((0,r.findDOMNode)(this))},A.render=function(){var e=this.props,t=e.children,r=e.in,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["children","in"]),a=n.default.Children.toArray(t),A=a[0],s=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,n.default.createElement(o.default,i,r?n.default.cloneElement(A,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(n.default.Component);a.propTypes={};var A=a;t.default=A,e.exports=t.default}(Dc,Dc.exports);var Gc=Dc.exports,Wc=Xc(Pc),Yc=Xc(Gc),qc=Xc($c);function Xc(e){return e&&e.__esModule?e:{default:e}}var Jc={Transition:Xc(Cc).default,TransitionGroup:qc.default,ReplaceTransition:Yc.default,CSSTransition:Wc.default},Zc=function(){},eu=Mo.on,tu=Mo.off,nu=Oo.addClass,ru=Oo.removeClass,ou=["-webkit-","-moz-","-o-","ms-",""];function iu(e,t){for(var n=window.getComputedStyle(e),r="",o=0;o<ou.length&&!(r=n.getPropertyValue(ou[o]+t));o++);return r}var au=function(e){function t(t){var n=e.call(this,t)||this;return Io.bindCtx(n,["handleEnter","handleEntering","handleEntered","handleExit","handleExiting","handleExited","addEndListener"]),n.endListeners={transitionend:[],animationend:[]},n.timeoutMap={},n}return kn(t,e),t.prototype.componentWillUnmount=function(){var e=this;Object.keys(this.endListeners).forEach(function(t){e.endListeners[t].forEach(function(n){tu(e.node,t,n)})}),this.endListeners={transitionend:[],animationend:[]}},t.prototype.generateEndListener=function(e,t,n,r){var o=this;return function i(a){if(a&&a.target===e){o.timeoutMap[r]&&(clearTimeout(o.timeoutMap[r]),delete o.timeoutMap[r]),t(),tu(e,n,i);var A=o.endListeners[n],s=A.indexOf(i);s>-1&&A.splice(s,1)}}},t.prototype.addEndListener=function(e,t){var n=this;if(_o.transition||_o.animation){var r=Do();if(this.node=e,_o.transition){var o=this.generateEndListener(e,t,"transitionend",r);eu(e,"transitionend",o),this.endListeners.transitionend.push(o)}if(_o.animation){var i=this.generateEndListener(e,t,"animationend",r);eu(e,"animationend",i),this.endListeners.animationend.push(i)}setTimeout(function(){var o=parseFloat(iu(e,"transition-delay"))||0,i=parseFloat(iu(e,"transition-duration"))||0,a=parseFloat(iu(e,"animation-delay"))||0,A=parseFloat(iu(e,"animation-duration"))||0,s=Math.max(i+o,A+a);s&&(n.timeoutMap[r]=window.setTimeout(function(){t()},1e3*s+200))},15)}else t()},t.prototype.removeEndtListener=function(){this.transitionOff&&this.transitionOff(),this.animationOff&&this.animationOff()},t.prototype.removeClassNames=function(e,t){Object.keys(t).forEach(function(n){ru(e,t[n])})},t.prototype.handleEnter=function(e,t){var n=this.props.names;n&&(this.removeClassNames(e,n),nu(e,n[t?"appear":"enter"]));(t?this.props.onAppear:this.props.onEnter)(e)},t.prototype.handleEntering=function(e,t){var n=this;setTimeout(function(){var r=n.props.names;r&&nu(e,r[t?"appearActive":"enterActive"]);(t?n.props.onAppearing:n.props.onEntering)(e)},10)},t.prototype.handleEntered=function(e,t){var n=this.props.names;n&&(t?[n.appear,n.appearActive]:[n.enter,n.enterActive]).forEach(function(t){ru(e,t)});(t?this.props.onAppeared:this.props.onEntered)(e)},t.prototype.handleExit=function(e){var t=this.props.names;t&&(this.removeClassNames(e,t),nu(e,t.leave)),this.props.onExit(e)},t.prototype.handleExiting=function(e){var t=this;setTimeout(function(){var n=t.props.names;n&&nu(e,n.leaveActive),t.props.onExiting(e)},10)},t.prototype.handleExited=function(e){var t=this.props.names;t&&[t.leave,t.leaveActive].forEach(function(t){ru(e,t)}),this.props.onExited(e)},t.prototype.render=function(){var e=this.props;e.names,e.onAppear,e.onAppeared,e.onAppearing,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited;var t=Sn(e,["names","onAppear","onAppeared","onAppearing","onEnter","onEntering","onEntered","onExit","onExiting","onExited"]);return b.createElement(Jc.Transition,Fn({},t,{onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,onExited:this.handleExited,addEndListener:this.addEndListener}))},t.displayName="AnimateChild",t.propTypes={names:Nn.oneOfType([Nn.string,Nn.object]),onAppear:Nn.func,onAppearing:Nn.func,onAppeared:Nn.func,onEnter:Nn.func,onEntering:Nn.func,onEntered:Nn.func,onExit:Nn.func,onExiting:Nn.func,onExited:Nn.func},t.defaultProps={onAppear:Zc,onAppearing:Zc,onAppeared:Zc,onEnter:Zc,onEntering:Zc,onEntered:Zc,onExit:Zc,onExiting:Zc,onExited:Zc},t}(b.Component);const Au=au;var su=function(){},lu=function(e){return b.Children.toArray(e.children)[0]||null},cu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.normalizeNames=function(e){return"string"==typeof e?{appear:"".concat(e,"-appear"),appearActive:"".concat(e,"-appear-active"),enter:"".concat(e,"-enter"),enterActive:"".concat(e,"-enter-active"),leave:"".concat(e,"-leave"),leaveActive:"".concat(e,"-leave-active")}:"object"==typeof e?{appear:e.appear,appearActive:"".concat(e.appear,"-active"),enter:"".concat(e.enter),enterActive:"".concat(e.enter,"-active"),leave:"".concat(e.leave),leaveActive:"".concat(e.leave,"-active")}:void 0},t.prototype.render=function(){var e=this,t=this.props,n=t.animation,r=t.children,o=t.animationAppear,i=t.singleMode,a=t.component,A=t.beforeAppear,s=t.onAppear,l=t.afterAppear,c=t.beforeEnter,u=t.onEnter,d=t.afterEnter,p=t.beforeLeave,h=t.onLeave,f=t.afterLeave,m=Sn(t,["animation","children","animationAppear","singleMode","component","beforeAppear","onAppear","afterAppear","beforeEnter","onEnter","afterEnter","beforeLeave","onLeave","afterLeave"]),g=b.Children.map(r,function(t){return b.createElement(Au,{key:null==t?void 0:t.key,names:e.normalizeNames(n),onAppear:A,onAppearing:s,onAppeared:l,onEnter:c,onEntering:u,onEntered:d,onExit:p,onExiting:h,onExited:f},t)});return b.createElement(Jc.TransitionGroup,Fn({appear:o,component:i?lu:a},m),g)},t.displayName="Animate",t.propTypes={animation:Nn.oneOfType([Nn.string,Nn.object]),animationAppear:Nn.bool,component:Nn.any,singleMode:Nn.bool,children:Nn.oneOfType([Nn.element,Nn.arrayOf(Nn.element)]),beforeAppear:Nn.func,onAppear:Nn.func,afterAppear:Nn.func,beforeEnter:Nn.func,onEnter:Nn.func,afterEnter:Nn.func,beforeLeave:Nn.func,onLeave:Nn.func,afterLeave:Nn.func},t.defaultProps={animationAppear:!0,component:"div",singleMode:!0,beforeAppear:su,onAppear:su,afterAppear:su,beforeEnter:su,onEnter:su,afterEnter:su,beforeLeave:su,onLeave:su,afterLeave:su},t}(b.Component);const uu=cu;var du=function(){},pu=Oo.getStyle,hu=function(e){function t(t){var n=e.call(this,t)||this;return Io.bindCtx(n,["beforeEnter","onEnter","afterEnter","beforeLeave","onLeave","afterLeave"]),n}return kn(t,e),t.prototype.beforeEnter=function(e){this.leaving&&this.afterLeave(e),this.cacheCurrentStyle(e),this.cacheComputedStyle(e),this.setCurrentStyleToZero(e),this.props.beforeEnter(e)},t.prototype.onEnter=function(e){this.setCurrentStyleToComputedStyle(e),this.props.onEnter(e)},t.prototype.afterEnter=function(e){this.restoreCurrentStyle(e),this.props.afterEnter(e)},t.prototype.beforeLeave=function(e){this.leaving=!0,this.cacheCurrentStyle(e),this.cacheComputedStyle(e),this.setCurrentStyleToComputedStyle(e),this.props.beforeLeave(e)},t.prototype.onLeave=function(e){this.setCurrentStyleToZero(e),this.props.onLeave(e)},t.prototype.afterLeave=function(e){this.leaving=!1,this.restoreCurrentStyle(e),this.props.afterLeave(e)},t.prototype.cacheCurrentStyle=function(e){this.styleBorderTopWidth=e.style.borderTopWidth,this.stylePaddingTop=e.style.paddingTop,this.styleHeight=e.style.height,this.stylePaddingBottom=e.style.paddingBottom,this.styleBorderBottomWidth=e.style.borderBottomWidth},t.prototype.cacheComputedStyle=function(e){this.borderTopWidth=pu(e,"borderTopWidth"),this.paddingTop=pu(e,"paddingTop"),this.height=e.offsetHeight,this.paddingBottom=pu(e,"paddingBottom"),this.borderBottomWidth=pu(e,"borderBottomWidth")},t.prototype.setCurrentStyleToZero=function(e){e.style.borderTopWidth="0px",e.style.paddingTop="0px",e.style.height="0px",e.style.paddingBottom="0px",e.style.borderBottomWidth="0px"},t.prototype.setCurrentStyleToComputedStyle=function(e){e.style.borderTopWidth="".concat(this.borderTopWidth,"px"),e.style.paddingTop="".concat(this.paddingTop,"px"),e.style.height="".concat(this.height,"px"),e.style.paddingBottom="".concat(this.paddingBottom,"px"),e.style.borderBottomWidth="".concat(this.borderBottomWidth,"px")},t.prototype.restoreCurrentStyle=function(e){e.style.borderTopWidth=this.styleBorderTopWidth,e.style.paddingTop=this.stylePaddingTop,e.style.height=this.styleHeight,e.style.paddingBottom=this.stylePaddingBottom,e.style.borderBottomWidth=this.styleBorderBottomWidth},t.prototype.render=function(){var e=this.props,t=e.animation,n=Sn(e,["animation"]),r=t||"expand";return b.createElement(uu,Fn({},n,{animation:r,beforeEnter:this.beforeEnter,onEnter:this.onEnter,afterEnter:this.afterEnter,beforeLeave:this.beforeLeave,onLeave:this.onLeave,afterLeave:this.afterLeave}))},t.displayName="Expand",t.propTypes={animation:Nn.oneOfType([Nn.string,Nn.object]),beforeEnter:Nn.func,onEnter:Nn.func,afterEnter:Nn.func,beforeLeave:Nn.func,onLeave:Nn.func,afterLeave:Nn.func},t.defaultProps={beforeEnter:du,onEnter:du,afterEnter:du,beforeLeave:du,onLeave:du,afterLeave:du},t}(b.Component);const fu=function(e){var t=e.animation,n=e.visible,r=e.children,o=e.timeout,i=void 0===o?300:o,a=e.style,A=e.mountOnEnter,s=e.unmountOnExit,l=e.appear,c=e.enter,u=e.exit,d=e.onEnter,p=e.onEntering,h=e.onEntered,f=e.onExit,m=e.onExiting,g=e.onExited,y=Sn(e,["animation","visible","children","timeout","style","mountOnEnter","unmountOnExit","appear","enter","exit","onEnter","onEntering","onEntered","onExit","onExiting","onExited"]),v={mountOnEnter:A,unmountOnExit:s,appear:l,enter:c,exit:u,onEnter:d,onEntering:p,onEntered:h,onExit:f,onExiting:m,onExited:g};Object.keys(v).forEach(function(t){t in e&&void 0!==e[t]||delete v[t]});var w="string"==typeof t?{in:t,out:t}:t,B=w?{entering:w.in,exiting:w.out}:{};return!1===t&&(B.entering="",B.exiting=""),b.createElement(Jc.Transition,Fn({},v,{in:n,timeout:t?i:0,appear:!0}),function(e){var t,n=_n(((t={})[r.props.className]=!!r.props.className,t[B[e]]=e in B&&B[e],t)),o=Fn(Fn({},y),{className:n});return a&&r.props&&r.props.style&&(o.style=Object.assign({},r.props.style,a)),b.cloneElement(r,o)})};const mu=pc(uu,{Expand:hu,OverlayAnimate:fu});const gu={allOverlays:[],addOverlay:function(e){this.removeOverlay(e),this.allOverlays.unshift(e)},isCurrentOverlay:function(e){return e&&this.allOverlays[0]===e},removeOverlay:function(e){var t=this.allOverlays.indexOf(e);t>-1&&this.allOverlays.splice(t,1)}};function yu(e,t){var n=e;if(!n)return null;if("string"==typeof n)return document.getElementById(n);if("function"==typeof n)try{n=n(t)}catch(r){n=null}if(!n)return null;try{return w.findDOMNode(n)}catch(r){return n}}var vu=Io.makeChain;const bu=lr(function(e){function t(t){var n=e.call(this,t)||this;return n.updateContainer=function(){var e=function(e){var t=yu(e.target);return yu(e.container,t)}(n.props);e!==n.state.containerNode&&n.setState({containerNode:e})},n.saveChildRef=function(e){n.child=e},n.state={containerNode:null},n}return kn(t,e),t.prototype.componentDidMount=function(){this.updateContainer()},t.prototype.componentDidUpdate=function(){this.updateContainer()},t.prototype.getChildNode=function(){try{return w.findDOMNode(this.child)}catch(e){return null}},t.prototype.render=function(){var e=this.state.containerNode;if(!e)return null;var t=this.props.children,n=t?b.Children.only(t):null;if(!n)return null;if("string"==typeof n.ref)throw new Error("Can not set ref by string in Gateway, use function instead.");return n=b.cloneElement(n,{ref:vu(this.saveChildRef,n.ref)}),w.createPortal(n,e)},t.displayName="Gateway",t.propTypes={children:Nn.node,container:Nn.any,target:Nn.any},t.defaultProps={container:function(){return document.body}},t}(b.Component));var wu="viewport",Bu=function(){return window.pageXOffset||document.documentElement.scrollLeft},Cu=function(){return window.pageYOffset||document.documentElement.scrollTop};function xu(e){if("offsetWidth"in e&&"offsetHeight"in e)return{width:e.offsetWidth,height:e.offsetHeight};var t=e.getBoundingClientRect();return{width:t.width,height:t.height}}function Eu(e,t){var n=0,r=0,o=0,i=0,a=xu(e),A=a.width,s=a.height;do{isNaN(e.offsetTop)||(n+=e.offsetTop),isNaN(e.offsetLeft)||(r+=e.offsetLeft),e&&e.offsetParent&&(isNaN(e.offsetParent.scrollLeft)||e.offsetParent===document.body||(i+=e.offsetParent.scrollLeft),isNaN(e.offsetParent.scrollTop)||e.offsetParent===document.body||(o+=e.offsetParent.scrollTop)),e=e.offsetParent}while(null!==e&&e!==t);var l=!t||t===document.body;return{top:n-o-(l?document.documentElement.scrollTop||document.body.scrollTop:0),left:r-i-(l?document.documentElement.scrollLeft||document.body.scrollLeft:0),width:A,height:s}}function ku(e){if(!e||e===document.body)return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight};var t=e.getBoundingClientRect();return{width:t.width,height:t.height}}var Fu=function(){function e(e){var t=this;this._calPinOffset=function(e){var n=Un([],Qn(t.offset),!1);if(t.autoFit&&e&&t.container&&t.container!==document.body){var r=Eu(t.baseElement,t.container),o=Eu(t.pinElement,t.container),i=ku(t.container),a=e.split(" ")[0].charAt(0);(o.top<0||o.top+o.height>i.height)&&(n[1]=-r.top-("t"===a?r.height:0))}return n},this._getParentScrollOffset=function(e){var t=0,n=0;return e&&e.offsetParent&&e.offsetParent!==document.body&&(isNaN(e.offsetParent.scrollTop)||(t+=e.offsetParent.scrollTop),isNaN(e.offsetParent.scrollLeft)||(n+=e.offsetParent.scrollLeft)),{top:t,left:n}},this.pinElement=e.pinElement,this.baseElement=e.baseElement,this.pinFollowBaseElementWhenFixed=e.pinFollowBaseElementWhenFixed,this.container=function(e){var t=e.container,n=e.baseElement;if("undefined"==typeof document)return t;var r=yu(t,n);for(r||(r=document.body);"static"===Oo.getStyle(r,"position");){if(!r||r===document.body)return document.body;r=r.parentNode}return r}(e),this.autoFit=e.autoFit||!1,this.align=e.align||"tl tl",this.offset=e.offset||[0,0],this.needAdjust=e.needAdjust||!1,this.isRtl=e.isRtl||!1}return e.prototype.setPosition=function(){var e,t,n,r=this.pinElement,o=this.baseElement,i=this.pinFollowBaseElementWhenFixed,a=this._getExpectedAlign();if(r!==wu){"fixed"!==Oo.getStyle(r,"position")?(Oo.setStyle(r,"position","absolute"),e=!1):e=!0,t=o!==wu&&"fixed"===Oo.getStyle(o,"position");for(var A=0;A<a.length;A++){var s=a[A],l=this._normalizePosition(r,s.split(" ")[0],e),c=this._normalizePosition(o,s.split(" ")[1],e&&!i),u=this._getParentOffset(r),d=this._getParentScrollOffset(r),p=e&&t?this._getLeftTop(o):c.offset(e&&i),h=p.top+c.y-u.top-l.y+d.top,f=p.left+c.x-u.left-l.x+d.left,m=Math.round(f+this.offset[0]-Oo.getStyle(r,"left")),g=Math.round(h+this.offset[1]-Oo.getStyle(r,"top"));if(this._isInViewport(r,s,[m,g]))return this._setPinElementPostion(r,{left:f,top:h},this.offset),s;if(!n)if(this.needAdjust&&!this.autoFit){var y=this._getViewportOffset(r,s).right;n={left:y<0?f+y:f,top:h}}else n={left:f,top:h}}var v=this._makeElementInViewport(r,n.left,"Left",e),b=this._makeElementInViewport(r,n.top,"Top",e);return this._setPinElementPostion(r,{left:v,top:b},this._calPinOffset(a[0])),a[0]}},e.prototype._getParentOffset=function(e){var t,n=e.offsetParent||document.documentElement;return(t=n===document.body&&"static"===Oo.getStyle(n,"position")?{top:0,left:0}:this._getElementOffset(n)).top+=parseFloat(Oo.getStyle(n,"border-top-width"),10),t.left+=parseFloat(Oo.getStyle(n,"border-left-width"),10),t.offsetParent=n,t},e.prototype._makeElementInViewport=function(e,t,n,r){var o=t,i=document.documentElement,a=e.offsetParent||document.documentElement;return o<0&&(r?o=0:a===document.body&&"static"===Oo.getStyle(a,"position")&&(o=Math.max(i["scroll".concat(n)],document.body["scroll".concat(n)]))),o},e.prototype._normalizePosition=function(e,t,n){var r=this._normalizeElement(e,n);return this._normalizeXY(r,t),r},e.prototype._normalizeXY=function(e,t){var n=t.split("")[1],r=t.split("")[0];return e.x=this._xyConverter(n,e,"width"),e.y=this._xyConverter(r,e,"height"),e},e.prototype._xyConverter=function(e,t,n){var r=e.replace(/t|l/gi,"0%").replace(/c/gi,"50%").replace(/b|r/gi,"100%").replace(/(\d+)%/gi,function(e,r){return t.size()[n]*(r/100)});return parseFloat(r,10)||0},e.prototype._getLeftTop=function(e){return{left:parseFloat(Oo.getStyle(e,"left"))||0,top:parseFloat(Oo.getStyle(e,"top"))||0}},e.prototype._normalizeElement=function(e,t){var n=this,r={element:e,x:0,y:0},o=e===wu,i=document.documentElement;return r.offset=function(r){return t?{left:0,top:0}:o?{left:Bu(),top:Cu()}:n._getElementOffset(e,r)},r.size=function(){return o?{width:i.clientWidth,height:i.clientHeight}:xu(e)},r},e.prototype._getElementOffset=function(e,t){var n=e.getBoundingClientRect(),r=document.documentElement,o=document.body,i=r.clientLeft||o.clientLeft||0,a=r.clientTop||o.clientTop||0;return{left:n.left+(t?0:Bu())-i,top:n.top+(t?0:Cu())-a}},e.prototype._getExpectedAlign=function(){var e=this.isRtl?this._replaceAlignDir(this.align,/l|r/g,{l:"r",r:"l"}):this.align,t=[e];return this.needAdjust&&(/t|b/g.test(e)&&t.push(this._replaceAlignDir(e,/t|b/g,{t:"b",b:"t"})),/l|r/g.test(e)&&t.push(this._replaceAlignDir(e,/l|r/g,{l:"r",r:"l"})),/c/g.test(e)&&(t.push(this._replaceAlignDir(e,/c(?= |$)/g,{c:"l"})),t.push(this._replaceAlignDir(e,/c(?= |$)/g,{c:"r"}))),t.push(this._replaceAlignDir(e,/l|r|t|b/g,{l:"r",r:"l",t:"b",b:"t"}))),t},e.prototype._replaceAlignDir=function(e,t,n){return e.replace(t,function(e){return n[e]})},e.prototype._isRightAligned=function(e){var t=Qn(e.split(" "),2),n=t[0],r=t[1];return"r"===n[1]&&n[1]===r[1]},e.prototype._isBottomAligned=function(e){var t=Qn(e.split(" "),2),n=t[0],r=t[1];return"b"===n[0]&&n[0]===r[0]},e.prototype._isInViewport=function(e,t,n){void 0===n&&(n=[]);var r=ku(this.container),o=Eu(e,this.container),i=Qn(n,2),a=i[0],A=void 0===a?0:a,s=i[1],l=void 0===s?0:s,c=o.left+A,u=o.top+l,d=xu(e),p=this._isRightAligned(t)?r.width:r.width-1,h=this._isBottomAligned(t)?r.height:r.height-1;return this.autoFit?u>=0&&u+e.offsetHeight<=h:c>=0&&c+d.width<=p&&u>=0&&u+d.height<=h},e.prototype._getViewportOffset=function(e,t){var n=ku(this.container),r=Eu(e,this.container),o=xu(e),i=this._isRightAligned(t)?n.width:n.width-1,a=this._isBottomAligned(t)?n.height:n.height-1;return{top:r.top,right:i-(r.left+o.width),bottom:a-(r.top+o.height),left:r.left}},e.prototype._setPinElementPostion=function(e,t,n){void 0===n&&(n=[0,0]);var r=t.top,o=t.left;if(this.isRtl){var i=Eu(this._getParentOffset(e).offsetParent).width-(o+Eu(e).width);Oo.setStyle(e,{left:"auto",right:"".concat(i+n[0],"px"),top:"".concat(r+n[1],"px")})}else Oo.setStyle(e,{left:"".concat(o+n[0],"px"),top:"".concat(r+n[1],"px")})},e.VIEWPORT=wu,e.place=function(t){return new e(t).setPosition()},e}();const Su=Fu;var Qu=Io.noop,Uu=Io.bindCtx,Ou=Oo.getStyle,Tu=Su.place,Mu=function(e){function t(t){var n=e.call(this,t)||this;return n.updateCount=0,n.observe=function(){var e=n.getContentNode();e&&n.resizeObserver.observe(e)},n.unobserve=function(){n.resizeObserver.disconnect()},n.shouldIgnorePosition=function(){var e=n.getContentNode();if("undefined"==typeof window)return!0;if(!e)return!0;if(!e.parentNode)return!0;var t=getComputedStyle(e),r=t.position,o=t.display,i=t.visibility;return!e.offsetParent&&"fixed"!==r||("none"===o||"hidden"===i||(n.updateCount++,Promise.resolve().then(function(){n.updateCount=0}),n.updateCount>40&&(fr(),!0)))},Uu(n,["handleResize"]),n.resizeObserver=new ir(n.handleResize),n}return kn(t,e),t.prototype.componentDidMount=function(){this.setPosition(),this.props.needListenResize&&("undefined"!=typeof window&&Mo.on(window,"resize",this.handleResize),this.observe())},t.prototype.componentDidUpdate=function(e){var t=this.props;("align"in t&&t.align!==e.align||t.shouldUpdatePosition)&&(this.shouldUpdatePosition=!0),this.shouldUpdatePosition&&(clearTimeout(this.resizeTimeout),this.setPosition(),this.shouldUpdatePosition=!1)},t.prototype.componentWillUnmount=function(){this.props.needListenResize&&(Mo.off(window,"resize",this.handleResize),this.unobserve()),clearTimeout(this.resizeTimeout)},t.prototype.setPosition=function(){var e=this.props,t=e.align,n=e.offset,r=e.beforePosition,o=e.onPosition,i=e.needAdjust,a=e.container,A=e.rtl,s=e.pinFollowBaseElementWhenFixed,l=e.autoFit;if(!this.shouldIgnorePosition()){r();var c=this.getContentNode(),u=this.getTargetNode();if(c&&u){var d=Tu({pinElement:c,baseElement:u,pinFollowBaseElementWhenFixed:s,align:t,offset:n,autoFit:l,container:a,needAdjust:i,isRtl:A}),p=Ou(c,"top"),h=Ou(c,"left");o({align:d.split(" "),top:p,left:h},c)}}},t.prototype.getContentNode=function(){try{return w.findDOMNode(this)}catch(e){return null}},t.prototype.getTargetNode=function(){var e=this.props.target;return e===Su.VIEWPORT?Su.VIEWPORT:yu(e,this.props)},t.prototype.handleResize=function(){var e=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(function(){e.setPosition()},200)},t.prototype.render=function(){return b.Children.only(this.props.children)},t.displayName="Position",t.VIEWPORT=Su.VIEWPORT,t.propTypes={children:Nn.node,target:Nn.any,container:Nn.any,align:Nn.oneOfType([Nn.string,Nn.bool]),offset:Nn.array,beforePosition:Nn.func,onPosition:Nn.func,needAdjust:Nn.bool,autoFit:Nn.bool,needListenResize:Nn.bool,shouldUpdatePosition:Nn.bool,rtl:Nn.bool,pinFollowBaseElementWhenFixed:Nn.bool},t.defaultProps={align:"tl bl",offset:[0,0],beforePosition:Qu,onPosition:Qu,needAdjust:!0,autoFit:!1,needListenResize:!0,shouldUpdatePosition:!1,rtl:!1},t}(b.Component);const Iu=Mu;var Nu=Po.saveLastFocusNode,Hu=Po.getFocusNodeList,_u=Po.backLastFocusNode,Pu=Io.makeChain,Du=Io.noop,Lu=Io.bindCtx,Ru=["-webkit-","-moz-","-o-","ms-",""],zu=function(e,t){for(var n=window.getComputedStyle(e),r="",o=0;o<Ru.length&&!(r=n.getPropertyValue(Ru[o]+t));o++);return r},Ku=[],ju=function(e){function t(t){var n=e.call(this,t)||this;return n.saveContentRef=function(e){n.contentRef=e},n.saveGatewayRef=function(e){n.gatewayRef=e},n.lastAlign=t.align,Lu(n,["handlePosition","handleAnimateEnd","handleDocumentKeyDown","handleDocumentClick","handleMaskClick","beforeOpen","beforeClose"]),n.state={visible:!1,status:"none",animation:n.getAnimation(t),willOpen:!1,willClose:!1},n.timeoutMap={},n}return kn(t,e),t.getDerivedStateFromProps=function(e,t){var n=!t.visible&&e.visible,r=t.visible&&!e.visible,o={willOpen:n,willClose:r};return n?e.beforeOpen&&e.beforeOpen():r&&e.beforeClose&&e.beforeClose(),(e.animation||!1===e.animation)&&(o.animation=e.animation),!1!==e.animation&&_o.animation?n?(o.visible=!0,o.status="mounting"):r&&(o.status="leaving"):"visible"in e&&e.visible!==t.visible&&(o.visible=e.visible),o},t.prototype.componentDidMount=function(){this.state.willOpen?this.beforeOpen():this.state.willClose&&this.beforeClose(),this.state.visible&&(this.doAnimation(!0,!1),this._isMounted=!0),this.addDocumentEvents(),gu.addOverlay(this)},t.prototype.componentDidUpdate=function(e){this.state.willOpen?this.beforeOpen():this.state.willClose&&this.beforeClose(),!this._isMounted&&this.props.visible&&(this._isMounted=!0),this.props.align!==e.align&&(this.lastAlign=e.align);var t=!e.visible&&this.props.visible,n=e.visible&&!this.props.visible;(t||n)&&this.doAnimation(t,n)},t.prototype.componentWillUnmount=function(){this._isDestroyed=!0,this._isMounted=!1,gu.removeOverlay(this),this.removeDocumentEvents(),this.focusTimeout&&clearTimeout(this.focusTimeout),this._animation&&(this._animation.off(),this._animation=null),this.beforeClose()},t.prototype.doAnimation=function(e,t){var n=this;this.state.animation&&_o.animation?(e?this.onEntering():t&&this.onLeaving(),this.addAnimationEvents()):(e?setTimeout(function(){n.props.onOpen(),Oo.addClass(n.getWrapperNode(),"opened"),gu.addOverlay(n),n.props.afterOpen()}):t&&(this.props.onClose(),Oo.removeClass(this.getWrapperNode(),"opened"),gu.removeOverlay(this),this.props.afterClose()),this.setFocusNode())},t.prototype.getAnimation=function(e){return!1!==e.animation&&(e.animation?e.animation:this.getAnimationByAlign(e.align))},t.prototype.getAnimationByAlign=function(e){switch(e[0]){case"t":default:return{in:"expandInDown fadeInDownSmall",out:"expandOutUp fadeOutUpSmall"};case"b":return{in:"fadeInUp",out:"fadeOutDown"}}},t.prototype.addAnimationEvents=function(){var e=this;"undefined"!=typeof window&&setTimeout(function(){var t=e.getContentNode();if(t){var n=Do();e._animation=Mo.on(t,_o.animation.end,e.handleAnimateEnd.bind(e,n));var r=(parseFloat(zu(t,"animation-delay"))||0)+(parseFloat(zu(t,"animation-duration"))||0);r&&(e.timeoutMap[n]=window.setTimeout(function(){e.handleAnimateEnd(n)},1e3*r+200))}})},t.prototype.handlePosition=function(e){var t=e.align.join(" ");!("animation"in this.props)&&this.props.needAdjust&&this.lastAlign!==t&&this.setState({animation:this.getAnimationByAlign(t)}),"mounting"===this.state.status&&this.setState({status:"entering"}),this.lastAlign=t},t.prototype.handleAnimateEnd=function(e){this.timeoutMap[e]&&clearTimeout(this.timeoutMap[e]),delete this.timeoutMap[e],this._animation&&(this._animation.off(),this._animation=null),this._isMounted&&("leaving"===this.state.status?(this.setState({visible:!1,status:"none"}),this.onLeaved()):"entering"!==this.state.status&&"mounting"!==this.state.status||(this.setState({status:"none"}),this.onEntered()))},t.prototype.onEntering=function(){var e=this;this._isDestroyed||setTimeout(function(){var t=e.getWrapperNode();Oo.addClass(t,"opened"),e.props.onOpen()})},t.prototype.onLeaving=function(){var e=this.getWrapperNode();Oo.removeClass(e,"opened"),this.props.onClose()},t.prototype.onEntered=function(){gu.addOverlay(this),this.setFocusNode(),this.props.afterOpen()},t.prototype.onLeaved=function(){gu.removeOverlay(this),this.setFocusNode(),this.props.afterClose()},t.prototype.beforeOpen=function(){if(this.props.disableScroll){var e=(a=this.props,A=yu(a.target),yu(a.container,A)||document.body),t=e.style,n=t.overflow,r=t.paddingRight,o=Ku.find(function(t){return t.containerNode===e})||{containerNode:e,count:0};if(0===o.count&&"hidden"!==n){var i={overflow:"hidden"};o.overflow=n,Oo.hasScroll(e)&&(o.paddingRight=r,i.paddingRight="".concat(Oo.getStyle(e,"paddingRight")+Oo.scrollbar().width,"px")),Oo.setStyle(e,i),Ku.push(o),o.count++}else o.count&&o.count++;this._containerNode=e}var a,A},t.prototype.beforeClose=function(){var e=this;if(this.props.disableScroll){var t=Ku.findIndex(function(t){return t.containerNode===e._containerNode});if(-1!==t){var n=Ku[t],r=n.overflow,o=n.paddingRight;if(1===n.count&&this._containerNode&&"hidden"===this._containerNode.style.overflow){var i={overflow:r};void 0!==o&&(i.paddingRight=o),Oo.setStyle(this._containerNode,i)}n.count--,0===n.count&&Ku.splice(t,1)}this._containerNode=void 0}},t.prototype.setFocusNode=function(){var e=this;this.props.autoFocus&&(this.state.visible&&!this._hasFocused?(Nu(),this.focusTimeout=window.setTimeout(function(){var t=e.getContentNode();if(t){var n=Hu(t);n.length&&n[0].focus(),e._hasFocused=!0}},100)):!this.state.visible&&this._hasFocused&&(_u(),this._hasFocused=!1))},t.prototype.getContent=function(){return this.contentRef},t.prototype.getContentNode=function(){try{return w.findDOMNode(this.contentRef)}catch(e){return null}},t.prototype.getWrapperNode=function(){return this.gatewayRef?this.gatewayRef.getChildNode():null},t.prototype.addDocumentEvents=function(){var e=this.props.useCapture;"undefined"!=typeof document&&(this.props.canCloseByEsc&&(this._keydownEvents=Mo.on(document,"keydown",this.handleDocumentKeyDown,e)),this.props.canCloseByOutSideClick&&(this._clickEvents=Mo.on(document,"click",this.handleDocumentClick,e),this._touchEvents=Mo.on(document,"touchend",this.handleDocumentClick,e)))},t.prototype.removeDocumentEvents=function(){var e=this;["_keydownEvents","_clickEvents","_touchEvents"].forEach(function(t){e[t]&&(e[t].off(),e[t]=null)})},t.prototype.handleDocumentKeyDown=function(e){this.state.visible&&e.keyCode===Lo.ESC&&gu.isCurrentOverlay(this)&&this.props.onRequestClose("keyboard",e)},t.prototype.isInShadowDOM=function(e){return!!e.getRootNode&&11===e.getRootNode().nodeType},t.prototype.getEventPath=function(e){return e.path||e.composedPath&&e.composedPath()||this.composedPath(e.target)},t.prototype.composedPath=function(e){for(var t=[];e;){if(t.push(e),"HTML"===e.tagName)return t.push(document),t.push(window),t;e=e.parentElement}},t.prototype.matchInShadowDOM=function(e,t){if(this.isInShadowDOM(e)){var n=this.getEventPath(t);return e===n[0]||e.contains(n[0])}return!1},t.prototype.handleDocumentClick=function(e){var t=this;if(this.state.visible){var n=this.props.safeNode,r=Array.isArray(n)?Un([],Qn(n),!1):[n];r.unshift(function(){return t.getWrapperNode()});for(var o=0;o<r.length;o++){var i=yu(r[o],this.props);if(i&&(i===e.target||i.contains(e.target)||this.matchInShadowDOM(i,e)||e.target!==document&&!document.documentElement.contains(e.target)))return}this.props.onRequestClose("docClick",e)}},t.prototype.handleMaskClick=function(e){e.currentTarget===e.target&&this.props.canCloseByMask&&this.props.onRequestClose("maskClick",e)},t.prototype.getInstance=function(){return this},t.prototype.render=function(){var e,t,n=this.props,r=n.prefix,o=n.className,i=n.style,a=n.children,A=n.target,s=n.align,l=n.offset,c=n.container,u=n.hasMask,d=n.needAdjust,p=n.autoFit,h=n.beforePosition,f=n.onPosition,m=n.wrapperStyle,g=n.rtl,y=n.shouldUpdatePosition,v=n.cache,w=n.wrapperClassName,B=n.onMaskMouseEnter,C=n.onMaskMouseLeave,x=n.maskClass,E=n.isChildrenInMask,k=n.pinFollowBaseElementWhenFixed,F=this.state,S=F.visible,Q=F.status,U=F.animation,O=S||v&&this._isMounted?a:null;if(O){var T=b.Children.only(O);"function"!=typeof T.type||T.type.prototype instanceof b.Component||(T=b.createElement("div",{role:"none"},T));var M=_n(((e={})["".concat(r,"overlay-inner")]=!0,e[U.in]="entering"===Q||"mounting"===Q,e[U.out]="leaving"===Q,e[T.props.className]=!!T.props.className,e[o]=!!o,e));if("string"==typeof T.ref)throw new Error("Can not set ref by string in Overlay, use function instead.");if(O=b.cloneElement(T,{className:M,style:Fn(Fn({},T.props.style),i),ref:Pu(this.saveContentRef,T.ref),"aria-hidden":!S&&v&&this._isMounted,onClick:Pu(this.props.onClick,T.props.onClick),onTouchEnd:Pu(this.props.onTouchEnd,T.props.onTouchEnd)}),s){var I="leaving"!==Q&&y;O=b.createElement(Iu,{children:O,target:A,align:s,offset:l,autoFit:p,container:c,needAdjust:d,pinFollowBaseElementWhenFixed:k,beforePosition:h,onPosition:Pu(this.handlePosition,f),shouldUpdatePosition:I,rtl:g})}var N=_n(["".concat(r,"overlay-wrapper"),w]),H=Object.assign({},{display:S?"":"none"},m),_=_n(((t={})["".concat(r,"overlay-backdrop")]=!0,t[x]=!!x,t));O=b.createElement("div",{className:N,style:H,dir:g?"rtl":void 0},u?b.createElement("div",{className:_,onClick:this.handleMaskClick,onMouseEnter:B,onMouseLeave:C,dir:g?"rtl":void 0},E&&O):null,!E&&O)}return b.createElement(bu,{container:c,target:A,children:O,ref:this.saveGatewayRef})},t.propTypes={prefix:Nn.string,pure:Nn.bool,rtl:Nn.bool,className:Nn.string,style:Nn.object,children:Nn.any,visible:Nn.bool,onRequestClose:Nn.func,target:Nn.any,align:Nn.string,offset:Nn.array,container:Nn.any,hasMask:Nn.bool,canCloseByEsc:Nn.bool,canCloseByOutSideClick:Nn.bool,canCloseByMask:Nn.bool,beforeOpen:Nn.func,onOpen:Nn.func,afterOpen:Nn.func,beforeClose:Nn.func,onClose:Nn.func,afterClose:Nn.func,beforePosition:Nn.func,onPosition:Nn.func,shouldUpdatePosition:Nn.bool,autoFocus:Nn.bool,needAdjust:Nn.bool,disableScroll:Nn.bool,useCapture:Nn.bool,cache:Nn.bool,safeNode:Nn.any,wrapperClassName:Nn.string,wrapperStyle:Nn.object,animation:Nn.oneOfType([Nn.object,Nn.bool]),onMaskMouseEnter:Nn.func,onMaskMouseLeave:Nn.func,onClick:Nn.func,maskClass:Nn.string,isChildrenInMask:Nn.bool,pinFollowBaseElementWhenFixed:Nn.bool,v2:Nn.bool,points:Nn.array},t.defaultProps={prefix:"next-",pure:!1,visible:!1,onRequestClose:Du,target:Iu.VIEWPORT,align:"tl bl",offset:[0,0],hasMask:!1,canCloseByEsc:!0,canCloseByOutSideClick:!0,canCloseByMask:!0,beforeOpen:Du,onOpen:Du,afterOpen:Du,beforeClose:Du,onClose:Du,afterClose:Du,beforePosition:Du,onPosition:Du,onMaskMouseEnter:Du,onMaskMouseLeave:Du,shouldUpdatePosition:!1,autoFocus:!1,needAdjust:!0,disableScroll:!1,cache:!1,isChildrenInMask:!1,onTouchEnd:function(e){e.stopPropagation()},onClick:function(e){return e.stopPropagation()},maskClass:"",useCapture:!0},t.displayName="Overlay",t}(b.Component);const Vu=lr(ju);function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$u.apply(null,arguments)}function Gu(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Wu(e,t,n,r,o){b.useEffect(function(){if(o)return Array.isArray(e)||(e=[e]),e.forEach(function(e){e&&e.addEventListener&&e.addEventListener(t,n,r||!1)}),function(){Array.isArray(e)&&e.forEach(function(e){e&&e.removeEventListener&&e.removeEventListener(t,n,r||!1)})}},[o])}function Yu(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 1===n.length?n[0]:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];for(var i=0,a=n.length;i<a;i++)n[i]&&n[i].apply&&n[i].apply(e,r)}}function qu(e){return e?function(t){if("string"==typeof e)throw new Error("can not set ref string for "+e);"function"==typeof e?e(t):Object.prototype.hasOwnProperty.call(e,"current")&&(e.current=t)}:null}var Xu=function(e,t){if("undefined"==typeof document)return[];for(var n=[],r=od(e);r&&t.contains(r)&&t!==r;)n.push(r),r=od(r);return function(e){var t=ad(e,"overflow");if(e===document.documentElement||t&&t.match(/auto|scroll/)){var n=e.clientWidth,r=e.clientHeight,o=e.scrollWidth;return r!==e.scrollHeight||n!==o}return!1}(t)&&n.push(t),n};function Ju(e){var t=!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none"),n=getComputedStyle(e);return Boolean(n.transform&&"none"!==n.transform||n.perspective&&"none"!==n.perspective||n.containerType&&"normal"!==n.containerType||!t&&n.backdropFilter&&"none"!==n.backdropFilter||!t&&n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(function(e){return(n.willChange||"").includes(e)})||["paint","layout","strict","content"].some(function(e){return(n.contain||"").includes(e)}))}function Zu(e){return["html","body"].includes(e.tagName.toLowerCase())}function ed(e){for(var t=e.parentElement;t&&!Zu(t);){if(Ju(t))return t;t=t.parentElement}return null}var td=function(e){var t=ad(e,"overflow");return t&&"visible"!==t||e===document.documentElement};function nd(e){if(e===document.documentElement||e===document.body){var t=document.documentElement;return{left:0,top:0,width:t.clientWidth,height:t.clientHeight}}var n=e.getBoundingClientRect();return{left:n.left,top:n.top,width:n.width,height:n.height}}function rd(e){for(var t=e.offsetParent;t&&["table","th","td"].includes(t.tagName.toLowerCase());)t=t.offsetParent;return t}function od(e){var t=document.documentElement;if(!e)return t;var n=["fixed","absolute"].includes(ad(e,"position"))?rd(e)||ed(e):e.parentElement;return n?td(n)?n:od(n):t}function id(e){var t=document.documentElement;if(!e)return t;if(["fixed","absolute"].includes(ad(e,"position"))){if(td(e))return e;var n=rd(e)||ed(e);return n?id(n):t}return td(e)?e:e.parentElement&&id(e.parentElement)||t}function ad(e,t){return e&&1===e.nodeType?window.getComputedStyle(e,null).getPropertyValue(t):null}var Ad=/margin|padding|width|height|max|min|offset|size|top|left/i;function sd(e,t,n){e&&("string"==typeof t?("number"==typeof n&&Ad.test(t)&&(n+="px"),e.style[t]=n):"object"==typeof t&&2===arguments.length&&Object.keys(t).forEach(function(n){return sd(e,n,t[n])}))}function ld(e){if(e===document.documentElement)return{top:0,left:0};var t=e.getBoundingClientRect(),n=t.left;return{top:t.top,left:n}}function cd(){var e=document.createElement("div");e.className+="just-to-get-scrollbar-size",sd(e,{position:"absolute",width:"100px",height:"100px",overflow:"scroll",top:"-9999px"}),document.body&&document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function ud(e){var t=e.nodeName.toLowerCase(),n=parseInt(e.getAttribute("tabindex"),10),r=!isNaN(n)&&n>-1;return!!function(e){for(;e&&e!==document.body&&e!==document.documentElement;){if("none"===e.style.display||"hidden"===e.style.visibility)return!1;e=e.parentNode}return!0}(e)&&("input"===t?!e.disabled&&"hidden"!==e.type:["select","textarea","button"].indexOf(t)>-1?!e.disabled:"a"===t&&e.getAttribute("href")||r)}function dd(e){return e?e.nodeType?1===e.nodeType?e:document.body:e===window?document.body:w.findDOMNode(e):e}function pd(e){return"function"==typeof e?e():"string"==typeof e?document.getElementById(e):e}function hd(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var md={tl:["bl","tl"],t:["bc","tc"],tr:["br","tr"],lt:["tr","tl"],l:["cr","cl"],lb:["br","bl"],bl:["tl","bl"],b:["tc","bc"],br:["tr","br"],rt:["tl","tr"],r:["cl","cr"],rb:["bl","br"]};function gd(e,t){var n=t.targetInfo,r=t.containerInfo,o=t.overlayInfo,i=t.points,a=t.placementOffset,A=t.offset,s=t.rtl,l=n.left-r.left+r.scrollLeft,c=n.top-r.top+r.scrollTop;function u(e,t,n){void 0===t&&(t=!0);var r=t?1:-1;switch(e){case"l":l+=0;break;case"c":l+=r*n/2;break;case"r":l+=r*n}}function d(e,t,n){void 0===t&&(t=!0);var r=t?1:-1;switch(e){case"t":c+=0;break;case"c":c+=r*n/2;break;case"b":c+=r*n}}var p=[].concat(i);if(e&&e in md&&(p=md[e]),s&&(p[0].match(/l/)?p[0]=p[0].replace("l","r"):p[0].match(/r/)&&(p[0]=p[0].replace("r","l")),p[1].match(/l/)?p[1]=p[1].replace("l","r"):p[1].match(/r/)&&(p[1]=p[1].replace("r","l"))),d(p[1][0],!0,n.height),u(p[1][1],!0,n.width),d(p[0][0],!1,o.height),u(p[0][1],!1,o.width),a&&e.length>=1)switch(e[0]){case"t":c-=a;break;case"b":c+=a;break;case"l":l-=a;break;case"r":l+=a}return{points:p,left:l+A[0],top:c+A[1]}}function yd(e,t,n,r){var o=r.container,i=r.containerInfo,a=r.overlayInfo;if(n!==o){var A=ld(n),s=A.left,l=A.top,c=n.scrollWidth,u=n.scrollHeight,d=n.scrollTop,p=n.scrollLeft,h=t+i.top-l+d,f=e+i.left-s+p;return h<0||f<0||h+a.height>u||f+a.width>c}return t<0||e<0||t+a.height>i.height||e+a.width>i.width}function vd(e,t,n,r){var o=e,i=t,a=r.viewport,A=r.container,s=r.containerInfo,l=s.left,c=s.top,u=s.scrollLeft,d=s.scrollTop;a!==A&&(o+=l-u,i+=c-d);for(var p,h=function(e,t,n,r){var o=r.overlayInfo,i=r.viewportInfo,a=n.split(""),A=a[0],s=a[1],l=void 0===s?"":s,c=t<0,u=e<0,d=e+o.width>i.width,p=t+o.height>i.height,h=new Set,f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach(function(e){return h.add(e)})};c&&f("t","tl","tr"),d&&f("r","rt","rb"),p&&f("b","bl","br"),u&&f("l","lt","lb");var m=Object.keys(md).filter(function(e){return!h.has(e)});if(!m.length)return null;var g={l:"r",r:"l",t:"b",b:"t","":""},y={t:10,b:6,l:10,r:6};y[A]=12,y[g[A]]=11;var v={"":2,l:1,r:0,t:1,b:0};return v[l]=3,m.sort(function(e,t){var n=e.split(""),r=n[0],o=n[1],i=void 0===o?"":o,a=t.split(""),s=a[0],c=a[1],u=void 0===c?"":c,d=y[r],p=v[i],h=y[s],f=v[u];if(r===s)return p>f?-1:1;if(i===u)return d>h?-1:1;if([r,s].includes(A))return r===A?-1:1;var m=g[A];return[r,s].includes(m)?r===m?-1:1:[i,u].includes(l)?i===l?-1:1:d+p>h+f?-1:1}),m}(o,i,n,r),f=hd(h);!(p=f()).done;){var m=p.value,g=gd(m,r),y=g.left,v=g.top;if(!yd(y,v,a,r))return{left:y,top:v,placement:m}}var b=function(e,t,n,r){var o=r.overlayInfo,i=r.viewportInfo,a=n.split(""),A=a[0];a[1];var s=t<0,l=e<0,c=e+o.width>i.width,u=t+o.height>i.height;if(3===[s,l,c,u].filter(Boolean).length){var d,p=null===(d=[{direction:"t",value:s},{direction:"r",value:c},{direction:"b",value:u},{direction:"l",value:l}].find(function(e){return!e.value}))||void 0===d?void 0:d.direction;if(p&&p!==A)return p}return null}(o,i,n,r);if(b){var w=gd(b,r);return{left:w.left,top:w.top,placement:b}}return null}function bd(e){var t=ld(e),n=t.left,r=t.top,o=e.scrollWidth,i=e.scrollHeight,a=e.scrollTop;return{left:n,top:r,width:o,height:i,scrollLeft:e.scrollLeft,scrollTop:a}}function wd(e){var t=e.target,n=e.overlay,r=e.container,o=e.scrollNode,i=e.placement,a=e.placementOffset,A=void 0===a?0:a,s=e.points,l=void 0===s?["tl","bl"]:s,c=e.offset,u=void 0===c?[0,0]:c,d=e.position,p=void 0===d?"absolute":d,h=e.beforePosition,f=e.autoAdjust,m=void 0===f||f,g=e.autoHideScrollOverflow,y=void 0===g||g,v=e.rtl,b=i,w=function(e){if("offsetWidth"in e&&"offsetHeight"in e)return{width:e.offsetWidth,height:e.offsetHeight};var t=e.getBoundingClientRect();return{width:t.width,height:t.height}}(n),B=w.width,C=w.height;if("fixed"===p){var x={config:{placement:void 0,points:void 0},style:{position:p,left:u[0],top:u[1]}};return h?h(x,{overlay:{node:n,width:B,height:C}}):x}var E=t.getBoundingClientRect(),k=E.width,F=E.height,S=E.left,Q=E.top,U=bd(r),O=id(r),T=U;O!==r&&(T=bd(O));var M={targetInfo:{width:k,height:F,left:S,top:Q},containerInfo:U,overlay:n,overlayInfo:{width:B,height:C},points:l,placementOffset:A,offset:u,container:r,rtl:v,viewport:O,viewportInfo:T},I=gd(b,M),N=I.left,H=I.top,_=I.points;if(m&&b&&yd(N,H,O,M)){var P=vd(N,H,b,M);P&&(N=P.left,H=P.top,b=P.placement);var D=function(e,t,n,r){var o=r.viewport,i=r.viewportInfo,a=r.container,A=r.containerInfo,s=r.overlayInfo,l=r.rtl;if(!yd(e,t,o,r))return null;var c=e,u=t,d=0,p=0;if(o!==a){var h=A.left,f=A.top;c+=d=h-A.scrollLeft,u+=p=f-A.scrollTop}var m=s.width,g=s.height,y=i.width,v=i.height,b=c<0,w=u<0,B=c+m>y,C=u+g>v;return m>y||g>v?(m>y&&(c=l?y-m:0),g>v&&(u=0)):(b&&(c=0),w&&(u=0),B&&(c=y-m),C&&(u=v-g)),{left:c-d,top:u-p,placement:n}}(N,H,b,M);D&&(N=D.left,H=D.top,b=D.placement)}var L={config:{placement:b,points:_},style:{position:p,left:Math.round(N),top:Math.round(H)}};if(y&&b&&null!=o&&o.length)for(var R,z=hd(o);!(R=z()).done;){var K=nd(R.value),j=K.top,V=K.left,$=K.width,G=K.height;if(Q+F<j||Q>j+G||S+k<V||S>V+$){L.style.display="none";break}L.style.display=""}return h?h(L,{target:{node:t,width:k,height:F,left:S,top:Q},overlay:{node:n,width:B,height:C}}):L}var Bd=b.createContext({setVisibleOverlayToParent:function(){}}),Cd=["target","children","wrapperClassName","maskClassName","maskStyle","hasMask","canCloseByMask","maskRender","points","offset","fixed","visible","onRequestClose","onOpen","onClose","container","placement","placementOffset","disableScroll","canCloseByOutSideClick","canCloseByEsc","safeNode","beforePosition","onPosition","cache","autoAdjust","autoFocus","isAnimationEnd","rtl","wrapperStyle"],xd=["setVisibleOverlayToParent"];function Ed(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return kd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Fd=function(e){try{var t=window.getComputedStyle(e,"::-webkit-scrollbar");return!t||"none"!==t.getPropertyValue("display")}catch(n){}return!0},Sd=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,J(n,r),t.prototype.render=function(){return this.props.children},t}(b.Component),Qd=b.forwardRef(function(e,t){var n,r,o=function(){return document.body},i=e.target,a=e.children,A=e.wrapperClassName,s=e.maskClassName,l=e.maskStyle,c=e.hasMask,u=e.canCloseByMask,d=void 0===u||u,p=e.maskRender,h=e.points,f=e.offset,m=e.fixed,g=e.visible,y=e.onRequestClose,v=void 0===y?function(){}:y,B=e.onOpen,C=e.onClose,x=e.container,E=void 0===x?o:x,k=e.placement,F=e.placementOffset,S=e.disableScroll,Q=void 0!==S&&S,U=e.canCloseByOutSideClick,O=void 0===U||U,T=e.canCloseByEsc,M=void 0===T||T,I=e.safeNode,N=e.beforePosition,H=e.onPosition,_=e.cache,P=void 0!==_&&_,D=e.autoAdjust,L=e.autoFocus,R=void 0!==L&&L,z=e.isAnimationEnd,K=void 0===z||z,j=e.rtl,V=e.wrapperStyle,$=Gu(e,Cd),G=m?"fixed":"absolute",W=b.useState(g),Y=W[0],q=W[1],X=b.useState(null)[1],J=b.useRef({position:G}),Z="string"==typeof E?function(){return document.getElementById(E)}:"function"!=typeof E?function(){return E}:E,ee=b.useState(null),te=ee[0],ne=ee[1],re=b.useRef(null),oe=b.useRef(i),ie=b.useRef(null),ae=b.useRef(null),Ae=b.useRef(null),se=b.useRef([]),le=b.useRef(null),ce=b.useRef(null),ue=b.useState(Date.now().toString(36))[0],de=b.useContext(Bd),pe=de.setVisibleOverlayToParent,he=Gu(de,xd),fe=b.useRef(new Map),me=function(e){pe(ue,e),null==B||B(e)},ge=function(){J.current=null,pe(ue,null),null==C||C()},ye=b.Children.only(a);if("string"==typeof ye.ref)throw new Error("Can not set ref by string in Overlay, use function instead.");var ve,be,we=(ve=function(){var e=ie.current,t=ae.current,n=re.current;if(e&&t&&n){var r=wd({target:n,overlay:e,container:t,scrollNode:se.current,points:h,offset:f,position:G,placement:k,placementOffset:F,beforePosition:N,autoAdjust:D,rtl:j,autoHideScrollOverflow:$.autoHideScrollOverflow});(function(e,t){if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<=n.length-1;o++){var i=n[o];if(!r.includes(i))return!1;if(t[i]!==e[i])return!1}return!0})(J.current,r.style)||(J.current=r.style,sd(e,r.style),"function"==typeof H&&H(r))}},be=b.useRef(ve),b.useLayoutEffect(function(){be.current=ve}),b.useCallback(function(){return be.current.apply(void 0,arguments)},[])),Be=b.useCallback(function(e){var n,r,a,A=w.findDOMNode(e);if(ie.current=A,function(e,t){if(e){if("string"==typeof e)throw new Error("can not set ref string for "+e);"function"==typeof e?e(t):Object.prototype.hasOwnProperty.call(e,"current")&&(e.current=t)}}(t,A),null!==A&&te){var s=function(e){if("undefined"==typeof document)return e;for(var t=e;"static"===ad(t,"position");){if(!t||t===document.documentElement)return document.documentElement;t=t.parentNode}return t}(dd(te));ae.current=s;var l=dd("viewport"===i?c?Ae.current:o():pd(i)||o());re.current=l,se.current=Xu(l,s),sd(A,{position:m?"fixed":"absolute",top:-1e3,left:-1e3});var u=(n=we,a=-(r=100),function(){var e=Date.now(),t=arguments;if(e-a>r){var o=this;window.requestAnimationFrame(function(){n.apply(o,t)}),a=e}});ce.current=new ir(u),ce.current.observe(s),ce.current.observe(A),u(),X({}),R&&setTimeout(function(){var e=function(e){var t=[];return e.querySelectorAll("*").forEach(function(e){if(ud(e)){var n=e.getAttribute("data-auto-focus")?"unshift":"push";t[n](e)}}),ud(e)&&t.unshift(e),t}(A);e.length>0&&e[0]&&(le.current=document.activeElement,e[0].focus())},100),!P&&me(A)}else!P&&ge(),ce.current&&(ce.current.disconnect(),ce.current=null)},[te]);Wu("undefined"!=typeof document?document:null,"mousedown",function(e){for(var t,n=Ed(fe.current.entries());!(t=n()).done;){var r=dd(t.value[1]);if(r&&(r===e.target||r.contains(e.target)))return}if(g)if(c&&Ae.current===e.target)d&&v("maskClick",e);else{var o=Array.isArray(I)?I:[I];ie.current&&o.push(function(){return ie.current});for(var i=0;i<o.length;i++){var a=dd(pd(o[i]));if(a&&(a===e.target||a.contains(e.target)))return}O&&v("docClick",e)}},!1,!!(g&&ie.current&&(O||c&&d)));Wu("undefined"!=typeof document?document:null,"keydown",function(e){g&&27===e.keyCode&&M&&!fe.current.size&&v("esc",e)},!1,!!(g&&ie.current&&M));Wu("undefined"!=typeof document?null===(n=se.current)||void 0===n?void 0:n.map(function(e){return e===document.documentElement?document:e}):null,"scroll",function(e){g&&we()},!1,!!(g&&ie.current&&null!==(r=se.current)&&void 0!==r&&r.length)),b.useEffect(function(){if(g&&Q){var e=document.body.getAttribute("style");if(sd(document.body,"overflow","hidden"),function(e){if("hidden"===ad(e,"overflow"))return!1;var t=e.parentNode;return t&&t.scrollHeight>t.clientHeight&&cd()>0&&Fd(t)&&Fd(e)}(document.body)){var t=cd();t&&sd(document.body,"padding-right","calc("+ad(document.body,"padding-right")+" + "+t+"px)")}return function(){document.body.setAttribute("style",e||"")}}},[g&&Q]),b.useEffect(function(){!Y&&g&&q(!0)},[g]);var Ce=ie.current;if(b.useEffect(function(){P&&Ce&&(g?(we(),me(Ce)):ge())},[g,P&&Ce]),b.useEffect(function(){if(g&&Ce&&i&&re.current&&oe.current!==i){var e=dd("viewport"===i?c?Ae.current:o():pd(i)||o());e&&re.current!==e&&(re.current=e,we()),oe.current=i}},[i]),b.useEffect(function(){g&&Ce&&we()},[f,k,F,h,D,j]),b.useEffect(function(){!g&&R&&le.current&&(le.current.focus(),le.current=null)},[!g&&R&&le.current]),b.useEffect(function(){g&&(te?Z()!==te&&ne(Z()):ne(Z()))},[g,E]),!1===Y||!te)return null;if(!g&&!P&&K)return null;var xe=ye?b.createElement(Sd,{ref:Be},b.cloneElement(ye,$u({},$,{style:$u({top:0,left:0},ye.props.style,J.current)}))):null,Ee=$u({},V);P&&!g&&K&&(Ee.display="none");var ke=b.createElement("div",{className:s,style:l,ref:Ae}),Fe=b.createElement("div",{className:A,style:Ee},c?p?p(ke):ke:null,xe);return b.createElement(Bd.Provider,{value:$u({},he,{setVisibleOverlayToParent:function(e,t){t?fe.current.set(e,t):fe.current.delete(e),pe(e,t)}})},w.createPortal(Fe,te))}),Ud=["overlay","triggerType","triggerClickKeyCode","children","defaultVisible","className","onVisibleChange","container","style","placement","canCloseByTrigger","delay","mouseEnterDelay","mouseLeaveDelay","overlayProps","safeNode","followTrigger","target","disabled"],Od=b.forwardRef(function(e,t){var n=function(){return document.body},r=e.overlay,o=e.triggerType,i=void 0===o?"click":o,a=e.triggerClickKeyCode,A=e.children,s=e.defaultVisible;e.className;var l=e.onVisibleChange,c=void 0===l?function(){}:l,u=e.container,d=void 0===u?n:u;e.style;var p=e.placement,h=void 0===p?"bl":p,f=e.canCloseByTrigger,m=void 0===f||f,g=e.delay,y=void 0===g?200:g,v=e.mouseEnterDelay,B=e.mouseLeaveDelay,C=e.overlayProps,x=void 0===C?{}:C,E=e.safeNode,k=e.followTrigger,F=void 0!==k&&k,S=e.target,Q=e.disabled,U=void 0!==Q&&Q,O=Gu(e,Ud),T=b.useState(s||e.visible),M=T[0],I=T[1],N=b.useRef(null),H=b.useRef(null),_=b.useRef(null),P=b.useRef(null),D=b.useRef(!1),L=A&&b.Children.only(A),R=b.Children.only(r);b.useEffect(function(){"visible"in e&&I(e.visible)},[e.visible]);var z=function(t,n,r){void 0===r&&(r="fromTrigger"),U||("visible"in e||(t||H.current)&&I(t),c(t,r,n))},K=function(e){M&&!m||z(!M,e)},j=function(e){(Array.isArray(a)?a:[a]).includes(e.keyCode)&&z(!M,e)},V=function(e){return function(t){if(_.current&&M)return clearTimeout(_.current),void(_.current=null);P.current||M||(P.current=setTimeout(function(){z(!0,t,e),P.current=null},null!=v?v:y))}},$=function(e){return function(t){!_.current&&M&&(_.current=setTimeout(function(){z(!1,t,e),_.current=null},null!=B?B:y)),P.current&&!M&&(clearTimeout(P.current),P.current=null)}},G=function(e){z(!0,e)},W=function(e){D.current?D.current=!1:z(!1,e)},Y=function(e){D.current=!0},q={},X={},J=Array.isArray(E)?E:[E];L&&!U&&(("string"==typeof i?[i]:i).forEach(function(e){var t,n,r,o,i,a;switch(e){case"click":q.onClick=Yu(K,null===(t=L.props)||void 0===t?void 0:t.onClick),q.onKeyDown=Yu(j,null===(n=L.props)||void 0===n?void 0:n.onKeyDown);break;case"hover":q.onMouseEnter=Yu(V("fromTrigger"),null===(r=L.props)||void 0===r?void 0:r.onMouseEnter),q.onMouseLeave=Yu($("fromTrigger"),null===(o=L.props)||void 0===o?void 0:o.onMouseLeave),X.onMouseEnter=Yu(V("overlay"),x.onMouseEnter),X.onMouseLeave=Yu($("overlay"),x.onMouseLeave);break;case"focus":q.onFocus=Yu(G,null===(i=L.props)||void 0===i?void 0:i.onFocus),q.onBlur=Yu(W,null===(a=L.props)||void 0===a?void 0:a.onBlur),X.onMouseDown=Yu(Y,x.onMouseDown)}}),J.push(function(){return w.findDOMNode(N.current)}));var Z=S||(L?function(){return w.findDOMNode(N.current)}:n),ee=F?function(){var e;return null===(e=w.findDOMNode(N.current))||void 0===e?void 0:e.parentNode}:"string"==typeof d?function(){return document.getElementById(d)}:"function"!=typeof d?function(){return d}:function(){return d(w.findDOMNode(N.current))},te=b.useCallback(function(e){N.current=e},[]);return b.createElement(b.Fragment,null,L&&b.createElement(Sd,{ref:te},b.cloneElement(L,q)),b.createElement(Qd,$u({},O,X,{placement:h,container:ee,safeNode:J,visible:M,target:Z,onRequestClose:function(e,t){z(!1,t,e)},ref:b.useCallback(Yu(qu(H),qu(t)),[])}),R))}),Td=Qd;Td.Popup=Od,Td.OverlayContext=Bd;var Md=function(e){var t;if(!b.useState||!b.useRef||!b.useEffect)return No.warning("need react version > 16.8.0"),null;var n=e.prefix,r=void 0===n?"next-":n,o=e.animation,i=void 0===o?{in:"expandInDown",out:"expandOutUp"}:o,a=e.visible,A=e.hasMask,s=e.align,l=e.points,c=void 0===l?s?s.split(" "):void 0:l,u=e.onPosition,d=e.children,p=e.className,h=e.style,f=e.wrapperClassName,m=e.beforeOpen,g=e.onOpen,y=e.afterOpen,v=e.beforeClose,w=e.onClose,B=e.afterClose,C=Sn(e,["prefix","animation","visible","hasMask","align","points","onPosition","children","className","style","wrapperClassName","beforeOpen","onOpen","afterOpen","beforeClose","onClose","afterClose"]),x=Qn(b.useState(!0),2),E=x[0],k=x[1],F=b.useRef(null),S=b.createElement(mu.OverlayAnimate,{visible:a,animation:i,onEnter:function(){k(!1),"function"==typeof m&&m(F.current)},onEntering:function(){"function"==typeof g&&g(F.current)},onEntered:function(){"function"==typeof y&&y(F.current)},onExit:function(){"function"==typeof v&&v(F.current)},onExiting:function(){"function"==typeof w&&w(F.current)},onExited:function(){k(!0),"function"==typeof B&&B(F.current)},timeout:300,style:h},d?b.cloneElement(d,{className:_n(["".concat(r,"overlay-inner"),p,d&&d.props&&d.props.className])}):b.createElement("span",null)),Q=_n(((t={})["".concat(r,"overlay-wrapper v2")]=!0,t[f]=f,t.opened=a,t));return b.createElement(Td,Fn({},C,{visible:a,isAnimationEnd:E,hasMask:A,wrapperClassName:Q,maskClassName:"".concat(r,"overlay-backdrop"),maskRender:function(e){return b.createElement(mu.OverlayAnimate,{visible:a,animation:!!i&&{in:"fadeIn",out:"fadeOut"},timeout:300,unmountOnExit:!0},e)},points:c,onPosition:function(e){Object.assign(e,{align:e.config.points}),"function"==typeof u&&u(e)},ref:F}),S)};Md.displayName="Overlay";const Id=Md;var Nd=Io.noop,Hd=Io.makeChain,_d=Io.bindCtx,Pd=function(e){function t(t){var n=e.call(this,t)||this;return n.state={visible:void 0===t.visible?t.defaultVisible:t.visible},_d(n,["handleTriggerClick","handleTriggerKeyDown","handleTriggerMouseEnter","handleTriggerMouseLeave","handleTriggerFocus","handleTriggerBlur","handleContentMouseEnter","handleContentMouseLeave","handleContentMouseDown","handleRequestClose","handleMaskMouseEnter","handleMaskMouseLeave"]),n}return kn(t,e),t.getDerivedStateFromProps=function(e,t){return"visible"in e?Fn(Fn({},t),{visible:e.visible}):null},t.prototype.componentWillUnmount=function(){var e=this;["_timer","_hideTimer","_showTimer"].forEach(function(t){e[t]&&clearTimeout(e[t])})},t.prototype.handleVisibleChange=function(e,t,n){"visible"in this.props||this.setState({visible:e}),this.props.onVisibleChange(e,t,n)},t.prototype.handleTriggerClick=function(e){this.state.visible&&!this.props.canCloseByTrigger||this.handleVisibleChange(!this.state.visible,"fromTrigger",e)},t.prototype.handleTriggerKeyDown=function(e){var t=this.props.triggerClickKeycode;(Array.isArray(t)?t:[t]).includes(e.keyCode)&&(e.preventDefault(),this.handleTriggerClick(e))},t.prototype.handleTriggerMouseEnter=function(e){var t=this;this._mouseNotFirstOnMask=!1,this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=null),this._showTimer&&(clearTimeout(this._showTimer),this._showTimer=null),this.state.visible||(this._showTimer=window.setTimeout(function(){t.handleVisibleChange(!0,"fromTrigger",e)},null===this.props.mouseEnterDelay||void 0===this.props.mouseEnterDelay?this.props.delay:this.props.mouseEnterDelay))},t.prototype.handleTriggerMouseLeave=function(e,t){var n=this;this._showTimer&&(clearTimeout(this._showTimer),this._showTimer=null),this.state.visible&&(this._hideTimer=window.setTimeout(function(){n.handleVisibleChange(!1,t||"fromTrigger",e)},null===this.props.mouseLeaveDelay||void 0===this.props.mouseLeaveDelay?this.props.delay:this.props.mouseLeaveDelay))},t.prototype.handleTriggerFocus=function(e){this.handleVisibleChange(!0,"fromTrigger",e)},t.prototype.handleTriggerBlur=function(e){this._isForwardContent||this.handleVisibleChange(!1,"fromTrigger",e),this._isForwardContent=!1},t.prototype.handleContentMouseDown=function(){this._isForwardContent=!0},t.prototype.handleContentMouseEnter=function(){clearTimeout(this._hideTimer)},t.prototype.handleContentMouseLeave=function(e){this.handleTriggerMouseLeave(e,"fromContent")},t.prototype.handleMaskMouseEnter=function(){this._mouseNotFirstOnMask||(clearTimeout(this._hideTimer),this._hideTimer=null,this._mouseNotFirstOnMask=!1)},t.prototype.handleMaskMouseLeave=function(){this._mouseNotFirstOnMask=!0},t.prototype.handleRequestClose=function(e,t){this.handleVisibleChange(!1,e,t)},t.prototype.renderTrigger=function(){var e=this,t=this.props,n=t.trigger,r=t.disabled,o={key:"trigger","aria-haspopup":!0,"aria-expanded":this.state.visible};if(this.state.visible||(o["aria-describedby"]=void 0),!r){var i=this.props.triggerType,a=Array.isArray(i)?i:[i],A=n&&n.props||{},s=A.onClick,l=A.onKeyDown,c=A.onMouseEnter,u=A.onMouseLeave,d=A.onFocus,p=A.onBlur;a.forEach(function(t){switch(t){case"click":o.onClick=Hd(e.handleTriggerClick,s),o.onKeyDown=Hd(e.handleTriggerKeyDown,l);break;case"hover":o.onMouseEnter=Hd(e.handleTriggerMouseEnter,c),o.onMouseLeave=Hd(e.handleTriggerMouseLeave,u);break;case"focus":o.onFocus=Hd(e.handleTriggerFocus,d),o.onBlur=Hd(e.handleTriggerBlur,p)}})}return n&&b.cloneElement(n,o)},t.prototype.renderContent=function(){var e=this,t=this.props,n=t.children,r=t.triggerType,o=Array.isArray(r)?r:[r],i=b.Children.only(n),a=i.props,A=a.onMouseDown,s=a.onMouseEnter,l=a.onMouseLeave,c={key:"portal"};return o.forEach(function(t){switch(t){case"focus":c.onMouseDown=Hd(e.handleContentMouseDown,A);break;case"hover":c.onMouseEnter=Hd(e.handleContentMouseEnter,s),c.onMouseLeave=Hd(e.handleContentMouseLeave,l)}}),b.cloneElement(i,c)},t.prototype.renderPortal=function(){var e=this,t=this.props,n=t.target,r=t.safeNode,o=t.followTrigger,i=t.triggerType,a=t.hasMask,A=t.wrapperStyle;t.v2;var s=Sn(t,["target","safeNode","followTrigger","triggerType","hasMask","wrapperStyle","v2"]),l=this.props.container,c=function(){return w.findDOMNode(e)},u=Array.isArray(r)?Un([],Qn(r),!1):[r];u.unshift(c);var d=A||{};return o&&(l=function(e){return e&&e.parentNode||e},d.position="relative"),"hover"===i&&a&&(s.onMaskMouseEnter=this.handleMaskMouseEnter,s.onMaskMouseLeave=this.handleMaskMouseLeave),b.createElement(Vu,Fn({},s,{key:"overlay",ref:function(t){return e.overlay=t},visible:this.state.visible,target:n||c,container:l,safeNode:u,wrapperStyle:d,triggerType:i,hasMask:a,onRequestClose:this.handleRequestClose}),this.props.children&&this.renderContent())},t.prototype.render=function(){return[this.renderTrigger(),this.renderPortal()]},t.propTypes={children:Nn.node,trigger:Nn.element,triggerType:Nn.oneOfType([Nn.string,Nn.array]),triggerClickKeycode:Nn.oneOfType([Nn.number,Nn.array]),visible:Nn.bool,defaultVisible:Nn.bool,onVisibleChange:Nn.func,disabled:Nn.bool,autoFit:Nn.bool,delay:Nn.number,mouseEnterDelay:Nn.number,mouseLeaveDelay:Nn.number,canCloseByTrigger:Nn.bool,target:Nn.any,safeNode:Nn.any,followTrigger:Nn.bool,container:Nn.any,hasMask:Nn.bool,wrapperStyle:Nn.object,rtl:Nn.bool,v2:Nn.bool,placement:Nn.string,placementOffset:Nn.number,autoAdjust:Nn.bool},t.defaultProps={triggerType:"hover",triggerClickKeycode:[Lo.SPACE,Lo.ENTER],defaultVisible:!1,onVisibleChange:Nd,disabled:!1,autoFit:!1,delay:200,canCloseByTrigger:!0,followTrigger:!1,container:function(){return document.body},rtl:!1},t.displayName="Popup",t}(b.Component);const Dd=lr(Pd);var Ld=function(e){var t;if(!b.useState||!b.useRef||!b.useEffect)return No.warning("need react version > 16.8.0"),null;var n=e.prefix,r=void 0===n?"next-":n,o=e.animation,i=void 0===o?{in:"expandInDown",out:"expandOutUp"}:o,a=e.defaultVisible,A=e.onVisibleChange,s=void 0===A?function(){}:A,l=e.trigger,c=e.triggerType,u=void 0===c?"hover":c,d=e.overlay,p=e.onPosition,h=e.children,f=e.className,m=e.style,g=e.wrapperClassName,y=e.triggerClickKeycode,v=e.align,w=e.beforeOpen,B=e.onOpen,C=e.afterOpen,x=e.beforeClose,E=e.onClose,k=e.afterClose,F=Sn(e,["prefix","animation","defaultVisible","onVisibleChange","trigger","triggerType","overlay","onPosition","children","className","style","wrapperClassName","triggerClickKeycode","align","beforeOpen","onOpen","afterOpen","beforeClose","onClose","afterClose"]),S=Qn(b.useState(a),2),Q=S[0],U=S[1],O=Qn(b.useState(i),2),T=O[0],M=O[1],I=Qn(b.useState(!0),2),N=I[0],H=I[1],_=b.useRef(null);b.useEffect(function(){"visible"in e&&U(e.visible)},[e.visible]),b.useEffect(function(){"animation"in e&&T!==i&&M(i)},[i]);var P=d?h:l,D=d||h;D=b.createElement(mu.OverlayAnimate,{visible:Q,animation:T,timeout:200,onEnter:function(){H(!1),"function"==typeof w&&w(_.current)},onEntering:function(){"function"==typeof B&&B(_.current)},onEntered:function(){"function"==typeof C&&C(_.current)},onExit:function(){"function"==typeof x&&x(_.current)},onExiting:function(){"function"==typeof E&&E(_.current)},onExited:function(){H(!0),"function"==typeof k&&k(_.current)},style:m},D?b.cloneElement(D,{className:_n(["".concat(r,"overlay-inner"),f,D&&D.props&&D.props.className])}):b.createElement("span",null));var L=_n(((t={})["".concat(r,"overlay-wrapper v2")]=!0,t[g]=g,t.opened=Q,t)),R={points:["tr","tl"]};v&&(R.points=v.split(" "));return b.createElement(Td.Popup,Fn({},F,R,{wrapperClassName:L,overlay:D,visible:Q,isAnimationEnd:N,triggerType:u,onVisibleChange:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"visible"in e||U(t),s.apply(void 0,Un([t],Qn(n),!1))},onPosition:function(e){Object.assign(e,{align:e.config.points});var t=e.config.placement;t&&"string"==typeof t&&("expandInDown"===T.in&&"expandOutUp"===T.out&&t.match(/t/)?M({in:"expandInUp",out:"expandOutDown"}):"expandInUp"===T.in&&"expandOutDown"===T.out&&t.match(/b/)&&M({in:"expandInDown",out:"expandOutUp"})),"function"==typeof p&&p(e)},triggerClickKeyCode:y,maskRender:function(e){return b.createElement(mu.OverlayAnimate,{visible:Q,animation:!!T&&{in:"fadeIn",out:"fadeOut"},timeout:200,unmountOnExit:!0},e)},ref:_}),P)};Ld.displayName="Popup";const Rd=Ld;var zd=function(e){function t(t){var n=e.call(this,t)||this;return n.overlayRef=null,n.saveRef=n.saveRef.bind(n),n}return kn(t,e),t.prototype.saveRef=function(e){this.overlayRef=e},t.prototype.getContent=function(){return this.overlayRef?this.overlayRef.getContent():null},t.prototype.getContentNode=function(){return this.overlayRef?this.overlayRef.getContentNode():null},t.prototype.render=function(){var e=this.props,t=e.v2,n=e.align,r=e.animation,o=Sn(e,["v2","align","animation"]);return t?("needAdjust"in o&&(No.deprecated("needAdjust","autoAdjust","Overlay v2"),o.autoAdjust=o.needAdjust,delete o.needAdjust),b.createElement(Id,Fn({animation:r,align:n},o))):b.createElement(Vu,Fn({animation:r,align:n},o,{ref:this.saveRef}))},t.displayName="Overlay",t}(b.Component),Kd=function(e){function t(t){var n=e.call(this,t)||this;return n.overlay=null,n.saveRef=n.saveRef.bind(n),n}return kn(t,e),t.prototype.saveRef=function(e){e&&(this.overlay=e.overlay)},t.prototype.render=function(){var e=this.props,t=e.v2,n=Sn(e,["v2"]);return t?("needAdjust"in n&&(No.deprecated("needAdjust","needAdjust","Popup v2"),n.autoAdjust=n.needAdjust,delete n.needAdjust),"shouldUpdatePosition"in n&&delete n.shouldUpdatePosition,b.createElement(Rd,Fn({},n))):b.createElement(Dd,Fn({},n,{ref:this.saveRef}))},t.displayName="Popup",t}(b.Component),jd=pc(zd,{Gateway:bu,Position:Iu,Popup:sc.config(Kd,{exportNames:["overlay"]})});const Vd=sc.config(jd,{exportNames:["getContent","getContentNode"]});var $d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e,n=this.props,r=n.prefix,o=n.type,i=n.size,a=n.className,A=n.rtl,s=n.style,l=n.children,c=Ho.pickOthers(Object.assign({},t.propTypes),this.props),u=_n(((e={})["".concat(r,"icon")]=!0,e["".concat(r,"icon-").concat(o)]=!!o,e["".concat(r).concat(i)]=!!i&&"string"==typeof i,e[a]=!!a,e));A&&o&&-1!==["arrow-left","arrow-right","arrow-double-left","arrow-double-right","switch","sorting","descending","ascending"].indexOf(o)&&(c.dir="rtl");var d="number"==typeof i?{width:i,height:i,lineHeight:"".concat(i,"px"),fontSize:i}:{};return C.createElement("i",Fn({},c,{style:Fn(Fn({},d),s),className:u}),l)},t.propTypes=Fn(Fn({},sc.propTypes),{type:In.string,children:In.node,size:In.oneOfType([In.oneOf(["xxs","xs","small","medium","large","xl","xxl","xxxl","inherit"]),In.number]),className:In.string,style:In.object}),t.defaultProps={prefix:"next-",size:"medium"},t.displayName="Icon",t._typeMark="icon",t}(b.Component);const Gd=$d;var Wd=new Set,Yd=sc.config(Gd);var qd=pc(Gd,{createFromIconfontCN:function(e){var t=e.scriptUrl,n=e.extraCommonProps,r=void 0===n?{}:n,o=Wd.has(t);if(document.querySelector('script[data-namespace="'.concat(t,'"]'))&&(o=!0),"undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&"string"==typeof t&&t.length&&!o){var i=document.createElement("script");i.setAttribute("src",t),i.setAttribute("data-namespace",t),Wd.add(t),document.body.appendChild(i)}var a=function(e){var t,n=e.type,o=e.size,i=e.children,a=e.className,A=e.prefix,s=void 0===A?"next-":A,l=Sn(e,["type","size","children","className","prefix"]),c=null;e.type&&(c=C.createElement("use",{xlinkHref:"#".concat(n)})),i&&(c=i);var u=_n(((t={})["".concat(s,"icon-remote")]=!0,t),a);return C.createElement(Yd,{size:o},C.createElement("svg",Fn({className:u,focusable:!1},l,r),c))};return a.displayName="Iconfont",sc.config(a)}});const Xd=sc.config(qd);var Jd={t:{align:"bc tc",rtlAlign:"bc tc",arrow:"bottom",trOrigin:"bottom",rtlTrOrigin:"bottom",offset:[0,-12]},r:{align:"cl cr",rtlAlign:"cr cl",arrow:"left",trOrigin:"left",rtlTrOrigin:"right",offset:[12,0]},b:{align:"tc bc",rtlAlign:"tc bc",arrow:"top",trOrigin:"top",rtlTrOrigin:"top",offset:[0,12]},l:{align:"cr cl",rtlAlign:"cl cr",arrow:"right",trOrigin:"right",rtlTrOrigin:"left",offset:[-12,0]},tl:{align:"br tc",rtlAlign:"bl tc",arrow:"bottom-right",trOrigin:"bottom right",rtlTrOrigin:"bottom left",offset:[20,-12]},tr:{align:"bl tc",rtlAlign:"br tc",arrow:"bottom-left",trOrigin:"bottom left",rtlTrOrigin:"bottom right",offset:[-20,-12]},rt:{align:"bl cr",rtlAlign:"br cl",arrow:"left-bottom",trOrigin:"bottom left",rtlTrOrigin:"bottom right",offset:[12,20]},rb:{align:"tl cr",rtlAlign:"tr cl",arrow:"left-top",trOrigin:"top left",rtlTrOrigin:"top right",offset:[12,-20]},bl:{align:"tr bc",rtlAlign:"tl bc",arrow:"top-right",trOrigin:"top right",rtlTrOrigin:"top left",offset:[20,12]},br:{align:"tl bc",rtlAlign:"tr bc",arrow:"top-left",trOrigin:"top left",rtlTrOrigin:"top right",offset:[-20,12]},lt:{align:"br cl",rtlAlign:"bl cr",arrow:"right-bottom",trOrigin:"bottom right",rtlTrOrigin:"bottom left",offset:[-12,20]},lb:{align:"tr cl",rtlAlign:"tl cr",arrow:"right-top",trOrigin:"top right",rtlTrOrigin:"top left",offset:[-12,-20]}},Zd={t:{align:"bc tc",rtlAlign:"bc tc",arrow:"bottom",trOrigin:"bottom",rtlTrOrigin:"bottom",offset:[0,-12]},r:{align:"cl cr",rtlAlign:"cr cl",arrow:"left",trOrigin:"left",rtlTrOrigin:"right",offset:[12,0]},b:{align:"tc bc",rtlAlign:"tc bc",arrow:"top",trOrigin:"top",rtlTrOrigin:"top",offset:[0,12]},l:{align:"cr cl",rtlAlign:"cl cr",arrow:"right",trOrigin:"right",rtlTrOrigin:"left",offset:[-12,0]},tl:{align:"bl tl",rtlAlign:"br tr",arrow:"bottom-left",trOrigin:"bottom left",rtlTrOrigin:"bottom right",offset:[0,-12]},tr:{align:"br tr",rtlAlign:"bl tl",arrow:"bottom-right",trOrigin:"bottom right",rtlTrOrigin:"bottom left",offset:[0,-12]},rt:{align:"tl tr",rtlAlign:"tr tl",arrow:"left-top",trOrigin:"top left",rtlTrOrigin:"top right",offset:[12,0]},rb:{align:"bl br",rtlAlign:"br bl",arrow:"left-bottom",trOrigin:"bottom left",rtlTrOrigin:"bottom right",offset:[12,0]},bl:{align:"tl bl",rtlAlign:"tr br",arrow:"top-left",trOrigin:"top left",rtlTrOrigin:"top right",offset:[0,12]},br:{align:"tr br",rtlAlign:"tl bl",arrow:"top-right",trOrigin:"top right",rtlTrOrigin:"top left",offset:[0,12]},lt:{align:"tr tl",rtlAlign:"tl tr",arrow:"right-top",trOrigin:"top right",rtlTrOrigin:"top left",offset:[-12,0]},lb:{align:"br bl",rtlAlign:"bl br",arrow:"right-bottom",trOrigin:"bottom right",rtlTrOrigin:"bottom left",offset:[-12,0]}},ep=Io.noop,tp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e,n,r=this.props,o=r.prefix,i=r.closable,a=r.className,A=r.style,s=r.isTooltip,l=r.align,c=r.title,u=r.type,d=r.onClose,p=r.alignEdge,h=r.v2,f=r.children,m=r.rtl,g=r.locale,y=Sn(r,["prefix","closable","className","style","isTooltip","align","title","type","onClose","alignEdge","v2","children","rtl","locale"]),v=p||h?Zd:Jd,w=o;w="".concat(w,s?"balloon-tooltip":"balloon");var B=i&&void 0!==c,C=i&&void 0===c,x=_n(((e={})["".concat(w)]=!0,e["".concat(w,"-").concat(u)]=u,e["".concat(w,"-medium")]=!0,e["".concat(w,"-").concat(v[l].arrow)]=v[l],e["".concat(w,"-closable")]=C,e[a]=a,e["".concat(w,"-v2")]=h,e)),E=_n(((n={})["".concat(o,"balloon-title")]=!0,n["".concat(w,"-closable")]=B,n)),k=b.createElement("a",{role:"button","aria-label":g.close,tabIndex:0,className:"".concat(w,"-close"),onClick:d},b.createElement(Xd,{type:"close",size:"small"}));return b.createElement("div",Fn({role:"tooltip","aria-live":"polite",dir:m?"rtl":void 0,className:x,style:A},Ho.pickOthers(Object.keys(t.propTypes),y)),b.createElement("div",{className:"".concat(o,"balloon-arrow")},b.createElement("div",{className:"".concat(o,"balloon-arrow-content")})),c&&b.createElement("div",{className:E},c,B&&k),b.createElement("div",{className:"".concat(o,"balloon-content")},f),C&&k)},t.contextTypes={prefix:Nn.string},t.propTypes={prefix:Nn.string,rtl:Nn.bool,closable:Nn.bool,children:Nn.any,title:Nn.node,className:Nn.string,alignEdge:Nn.bool,onClose:Nn.func,style:Nn.any,align:Nn.string,type:Nn.string,isTooltip:Nn.bool,locale:Nn.object,pure:Nn.bool,v2:Nn.bool},t.defaultProps={prefix:"next-",closable:!0,onClose:ep,locale:Xs.Balloon,align:"b",type:"normal",alignEdge:!1,pure:!1},t}(b.Component);const np=tp;function rp(e){if("Config(Button)"===e.type.displayName&&e.props.disabled){var t=e.props.style&&e.props.style.display?e.props.style.display:"inline-block",n=b.cloneElement(e,{style:Fn(Fn({},e.props.style),{pointerEvents:"none"})});return b.createElement("span",{style:{display:t,cursor:"not-allowed"}},n)}return e}var op=Io.noop,ip=Vd.Popup,ap=["t","r","b","l","tl","tr","bl","br","lt","lb","rt","rb"],Ap=Jd,sp=function(e){function t(t){var n=e.call(this,t)||this;return n.beforePosition=function(e,t){var r=e.config.placement;if(r!==n.state.align&&n.setState({align:r,innerAlign:!0}),n.props.arrowPointToCenter){var o=t.target,i=o.width,a=o.height;if(2===r.length){var A=Jd[r].offset;switch(r[0]){case"b":case"t":var s=A[0]>0?1:-1;e.style.left=e.style.left+s*i/2-A[0];break;case"l":case"r":s=A[0]>0?1:-1;e.style.top=e.style.top+s*a/2-A[1]}}}return e},n.state={align:ap.includes(t.align)?t.align:"b",visible:"visible"in t?t.visible:t.defaultVisible},n._onClose=n._onClose.bind(n),n._onPosition=n._onPosition.bind(n),n._onVisibleChange=n._onVisibleChange.bind(n),n}return kn(t,e),t.getDerivedStateFromProps=function(e,t){var n={};return"visible"in e&&(n.visible=e.visible),!t.innerAlign&&"align"in e&&ap.includes(e.align)&&e.align!==t.align&&(n.align=e.align,n.innerAlign=!1),n},t.prototype._onVisibleChange=function(e,t){"visible"in this.props||this.setState({visible:e}),this.props.onVisibleChange(e,t),e||this.props.onClose()},t.prototype._onClose=function(e){this._onVisibleChange(!1,"closeClick"),e.preventDefault()},t.prototype._onPosition=function(e){var t=this.props.rtl;Ap=this.props.alignEdge?Zd:Jd;var n,r=e.align.join(" "),o="align";for(var i in t&&(o="rtlAlign"),Ap)if(Ap[i][o]===r){n=i;break}(n=n||this.state.align)!==this.state.align&&this.setState({align:n,innerAlign:!0})},t.prototype.render=function(){var e=this.props,n=e.id,r=e.type,o=e.prefix,i=e.className,a=e.title,A=e.alignEdge,s=e.trigger,l=e.triggerType,c=e.children,u=e.closable,d=e.shouldUpdatePosition,p=e.delay,h=e.mouseEnterDelay,f=e.mouseLeaveDelay,m=e.needAdjust,g=e.autoAdjust,y=e.safeId,v=e.autoFocus,w=e.safeNode,B=e.onClick,C=e.onHover,x=e.animation,E=e.offset,k=e.style,F=e.container,S=e.popupContainer,Q=e.cache,U=e.popupStyle,O=e.popupClassName,T=e.popupProps,M=e.followTrigger,I=e.rtl,N=e.v2;e.arrowPointToCenter;var H=e.placementOffset,_=void 0===H?0:H,P=Sn(e,["id","type","prefix","className","title","alignEdge","trigger","triggerType","children","closable","shouldUpdatePosition","delay","mouseEnterDelay","mouseLeaveDelay","needAdjust","autoAdjust","safeId","autoFocus","safeNode","onClick","onHover","animation","offset","style","container","popupContainer","cache","popupStyle","popupClassName","popupProps","followTrigger","rtl","v2","arrowPointToCenter","placementOffset"]);F&&No.deprecated("container","popupContainer","Balloon");var D=this.state.align;Ap=A||N?Zd:Jd;var L=this.context.prefix||o,R="trOrigin";I&&(R="rtlTrOrigin");var z=[Ap[D].offset[0]+E[0],Ap[D].offset[1]+E[1]],K=Ap[D][R],j=Fn({transformOrigin:K},k),V=b.createElement(np,Fn({},Ho.pickOthers(Object.keys(t.propTypes),P),{id:n,title:a,prefix:L,closable:u,onClose:this._onClose,className:i,style:j,align:D,type:r,rtl:I,alignEdge:A,v2:N}),c),$={};$["aria-describedby"]=n,$.tabIndex="0";var G=n?b.cloneElement(s,$):s,W=rp(b.isValidElement(G)?G:b.createElement("span",null,G)),Y={delay:p,mouseEnterDelay:h,mouseLeaveDelay:f,shouldUpdatePosition:d,needAdjust:m,align:Ap[D].align,offset:z,safeId:y,onHover:C,onPosition:this._onPosition};return N&&(delete Y.align,delete Y.shouldUpdatePosition,delete Y.needAdjust,delete Y.safeId,delete Y.onHover,delete Y.onPosition,Object.assign(Y,{placement:D,placementOffset:_,v2:!0,beforePosition:this.beforePosition,autoAdjust:g})),b.createElement(ip,Fn({},T,{followTrigger:M,trigger:W,cache:Q,triggerType:l,visible:this.state.visible,onClick:B,afterClose:this.props.afterClose,onVisibleChange:this._onVisibleChange,animation:x,autoFocus:"focus"!==l&&v,safeNode:w,container:S||F,className:O,style:U,rtl:I},Y),V)},t.displayName="Balloon",t.contextTypes={prefix:Nn.string},t.propTypes={prefix:Nn.string,pure:Nn.bool,rtl:Nn.bool,className:Nn.string,style:Nn.object,children:Nn.any,size:Nn.string,type:Nn.oneOf(["normal","primary"]),title:Nn.node,visible:Nn.bool,defaultVisible:Nn.bool,onVisibleChange:Nn.func,alignEdge:Nn.bool,v2:Nn.bool,arrowPointToCenter:Nn.bool,placementOffset:Nn.number,closable:Nn.bool,align:Nn.oneOf(ap),offset:Nn.array,trigger:Nn.any,triggerType:Nn.oneOfType([Nn.string,Nn.array]),onClick:Nn.func,onClose:Nn.func,onHover:Nn.func,autoAdjust:Nn.bool,needAdjust:Nn.bool,delay:Nn.number,mouseEnterDelay:Nn.number,mouseLeaveDelay:Nn.number,afterClose:Nn.func,shouldUpdatePosition:Nn.bool,autoFocus:Nn.bool,safeNode:Nn.string,safeId:Nn.string,animation:Nn.oneOfType([Nn.object,Nn.bool]),cache:Nn.bool,popupContainer:Nn.any,container:Nn.any,popupStyle:Nn.object,popupClassName:Nn.string,popupProps:Nn.object,followTrigger:Nn.bool,id:Nn.string},t.defaultProps={prefix:"next-",pure:!1,type:"normal",closable:!0,defaultVisible:!1,size:"medium",alignEdge:!1,arrowPointToCenter:!1,align:"b",offset:[0,0],trigger:b.createElement("span",null),onClose:op,afterClose:op,onVisibleChange:op,needAdjust:!1,triggerType:"hover",safeNode:void 0,safeId:null,autoFocus:!0,animation:{in:"zoomIn zoomInBig",out:"zoomOut zoomOutBig"},cache:!1,popupStyle:{},popupClassName:"",popupProps:{}},t}(b.Component);const lp=lr(sp);var cp=Vd.Popup,up=Jd,dp=function(e){function t(t){var n=e.call(this,t)||this;return n.beforePosition=function(e,t){var r=e.config.placement;if(r!==n.state.align&&n.setState({align:r,innerAlign:!0}),n.props.arrowPointToCenter){var o=t.target,i=o.width,a=o.height;if(2===r.length){var A=Jd[r].offset;switch(r[0]){case"b":case"t":var s=A[0]>0?1:-1;e.style.left=e.style.left+s*i/2-A[0];break;case"l":case"r":s=A[0]>0?1:-1;e.style.top=e.style.top+s*a/2-A[1]}}}return e},n.state={align:t.placement||t.align,innerAlign:!1},n}return kn(t,e),t.getDerivedStateFromProps=function(e,t){return e.v2&&!t.innerAlign&&"align"in e&&e.align!==t.align?{align:e.align,innerAlign:!1}:null},t.prototype.render=function(){var e=this.props,t=e.id,n=e.className,r=e.align,o=e.style,i=e.prefix,a=e.trigger,A=e.children,s=e.popupContainer,l=e.popupProps,c=e.popupClassName,u=e.popupStyle,d=e.followTrigger,p=e.triggerType,h=e.autoFocus,f=e.alignEdge,m=e.autoAdjust,g=e.rtl,y=e.delay,v=e.mouseEnterDelay,w=e.mouseLeaveDelay,B=e.v2;e.arrowPointToCenter;var C=Sn(e,["id","className","align","style","prefix","trigger","children","popupContainer","popupProps","popupClassName","popupStyle","followTrigger","triggerType","autoFocus","alignEdge","autoAdjust","rtl","delay","mouseEnterDelay","mouseLeaveDelay","v2","arrowPointToCenter"]),x="trOrigin";g&&(C.rtl=!0,x="rtlTrOrigin"),up=f||B?Zd:Jd;var E=B?this.state.align:r,k=up[E][x],F=up[E].offset,S=Fn({transformOrigin:k},o),Q=b.createElement(np,Fn({},C,{id:t,prefix:i,closable:!1,isTooltip:!0,className:n,style:S,align:E,rtl:g,alignEdge:f,v2:B}),A),U={};U["aria-describedby"]=t,U.tabIndex="0";var O=p;"hover"===p&&t&&(O=["focus","hover"]);var T=t?b.cloneElement(a,U):a,M=rp(b.isValidElement(T)?T:b.createElement("span",null,T)),I={delay:y,mouseEnterDelay:v,mouseLeaveDelay:w,shouldUpdatePosition:!0,needAdjust:!1,align:up[E].align,offset:F};return B&&(delete I.align,delete I.shouldUpdatePosition,delete I.needAdjust,delete I.offset,Object.assign(I,{placement:E,placementOffset:12,v2:!0,beforePosition:this.beforePosition,autoAdjust:m})),b.createElement(cp,Fn({role:"tooltip",animation:{in:"zoomIn",out:"zoomOut"},className:c,container:s,followTrigger:d,trigger:M,triggerType:O,style:u,rtl:g,autoFocus:"focus"!==p&&h},I,l),Q)},t.displayName="Tooltip",t.propTypes={prefix:Nn.string,className:Nn.string,style:Nn.object,children:Nn.any,align:Nn.oneOf(["t","r","b","l","tl","tr","bl","br","lt","lb","rt","rb"]),trigger:Nn.any,triggerType:Nn.oneOfType([Nn.string,Nn.array]),popupStyle:Nn.object,popupClassName:Nn.string,popupProps:Nn.object,pure:Nn.bool,popupContainer:Nn.any,followTrigger:Nn.bool,id:Nn.string,delay:Nn.number,mouseEnterDelay:Nn.number,mouseLeaveDelay:Nn.number,v2:Nn.bool,arrowPointToCenter:Nn.bool},t.defaultProps={triggerType:"hover",prefix:"next-",align:"b",delay:50,trigger:b.createElement("span",null),arrowPointToCenter:!1},t}(b.Component);const pp=dp;var hp=pc(lp,{Tooltip:sc.config(pp,{transform:function(e,t){if("text"in e){t("text","children","Tooltip");var n=e.text,r=Sn(e,["text"]);e=Fn({children:n},r)}return e}}),Inner:np});const fp=sc.config(hp,{transform:function(e,t){if(e.alignment){t("alignment","alignEdge","Balloon");var n=e.alignment,r=Sn(e,["alignment"]);e=Fn({alignEdge:"edge"===n},r)}if(e.onCloseClick){t("onCloseClick",'onVisibleChange(visible, [type = "closeClick"])',"Balloon");var o=e.onCloseClick,i=e.onVisibleChange;r=Sn(e,["onCloseClick","onVisibleChange"]);e=Fn({onVisibleChange:function(e,t){"closeClick"===t&&o(),i&&i(e,t)}},r)}return e}});var mp=Io.noop,gp=Io.makeChain,yp=Io.bindCtx,vp=Vd.Popup,bp=function(e){function t(t){var n=e.call(this,t)||this;return n.state={visible:"visible"in t?t.visible:t.defaultVisible||!1,autoFocus:"autoFocus"in t&&t.autoFocus},yp(n,["onTriggerKeyDown","onMenuClick","onVisibleChange"]),n}return kn(t,e),t.getDerivedStateFromProps=function(e){var t={};return"visible"in e&&(t.visible=e.visible),t},t.prototype.getVisible=function(e){return void 0===e&&(e=this.props),"visible"in e?e.visible:this.state.visible},t.prototype.onMenuClick=function(){var e=this.props.autoClose;!("visible"in this.props)&&e&&this.setState({visible:!1}),this.onVisibleChange(!1,"fromContent")},t.prototype.onVisibleChange=function(e,t){this.setState({visible:e}),this.props.onVisibleChange(e,t)},t.prototype.onTriggerKeyDown=function(){var e=!0;"autoFocus"in this.props&&(e=this.props.autoFocus),this.setState({autoFocus:e})},t.prototype.render=function(){var e=this.props,t=e.rtl,n=e.autoClose,r=e.trigger,o=b.Children.only(this.props.children),i=o;"function"==typeof o.type&&o.type.isNextMenu?i=b.cloneElement(o,{onItemClick:gp(this.onMenuClick,o.props.onItemClick)}):n&&(i=b.cloneElement(o,{onClick:gp(this.onMenuClick,o.props.onClick)}));var a=b.cloneElement(r,{onKeyDown:gp(this.onTriggerKeyDown,r.props.onKeyDown)});return b.createElement(vp,Fn({},this.props,{rtl:t,autoFocus:this.state.autoFocus,trigger:a,visible:this.getVisible(),onVisibleChange:this.onVisibleChange,canCloseByOutSideClick:!0}),i)},t.propTypes={prefix:In.string,pure:In.bool,rtl:In.bool,className:In.string,children:In.node,visible:In.bool,defaultVisible:In.bool,onVisibleChange:In.func,trigger:In.node,triggerType:In.oneOfType([In.string,In.array]),disabled:In.bool,align:In.string,offset:In.array,delay:In.number,autoFocus:In.bool,hasMask:In.bool,autoClose:In.bool,cache:In.bool,animation:In.oneOfType([In.object,In.bool])},t.defaultProps={prefix:"next-",pure:!1,defaultVisible:!1,autoClose:!1,onVisibleChange:mp,triggerType:"hover",disabled:!1,align:"tl bl",offset:[0,0],delay:200,hasMask:!1,cache:!1,onPosition:mp},t.displayName="Dropdown",t}(b.Component);const wp=bp,Bp=sc.config(wp,{transform:function(e,t){"triggerType"in e&&((Array.isArray(e.triggerType)?Un([],Qn(e.triggerType),!1):[e.triggerType]).indexOf("focus")>-1&&t("triggerType[focus]","triggerType[hover, click]","Balloon"));return e}});var Cp=Io.bindCtx,xp=Ho.pickOthers,Ep=function(e){function t(t){var n=e.call(this,t)||this;return Cp(n,["handleClick","handleKeyDown"]),n}return kn(t,e),t.prototype.componentDidMount=function(){this.itemNode=w.findDOMNode(this);var e=this.props,t=e.parentMode,n=e.root,r=e.menu;if(r)this.menuNode=w.findDOMNode(r);else if("popup"===t)this.menuNode=this.itemNode.parentNode;else{this.menuNode=w.findDOMNode(n);var o=n.props,i=o.prefix,a=o.header,A=o.footer;(a||A)&&(this.menuNode=this.menuNode.querySelector(".".concat(i,"menu-content")))}this.setFocus()},t.prototype.componentDidUpdate=function(){var e=this.props.root;e.props.focusable&&e.state.focusedKey!==this.lastFocusedKey&&this.setFocus()},t.prototype.focusable=function(){var e=this.props,t=e.root,n=e.type,r=e.disabled;return t.props.focusable&&("submenu"===n||!r)},t.prototype.getFocused=function(){var e=this.props,t=e._key;return e.root.state.focusedKey===t},t.prototype.setFocus=function(){var e=this.getFocused();if(this.lastFocusedKey=this.props.root.state.focusedKey,e&&(this.focusable()&&this.itemNode.focus({preventScroll:!0}),this.menuNode&&this.menuNode.scrollHeight>this.menuNode.clientHeight)){var t=this.menuNode.clientHeight+this.menuNode.scrollTop,n=this.itemNode.offsetTop+this.itemNode.offsetHeight;n>t?this.menuNode.scrollTop=n-this.menuNode.clientHeight:this.itemNode.offsetTop<this.menuNode.scrollTop&&(this.menuNode.scrollTop=this.itemNode.offsetTop)}},t.prototype.handleClick=function(e){e.stopPropagation();var t=this.props,n=t._key,r=t.root;t.disabled?e.preventDefault():(r.handleItemClick(n,this,e),this.props.onClick&&this.props.onClick(e))},t.prototype.handleKeyDown=function(e){var t=this.props,n=t._key,r=t.root,o=t.type;if(this.focusable()&&(r.handleItemKeyDown(n,o,this,e),e.keyCode===Lo.ENTER))"submenu"!==o&&this.handleClick(e);this.props.onKeyDown&&this.props.onKeyDown(e)},t.prototype.getTitle=function(e){if("string"==typeof e)return e},t.prototype.render=function(){var e,n,r=this.props,o=r.inlineLevel,i=r.root,a=r.replaceClassName,A=r.groupIndent,s=r.component,l=r.disabled,c=r.className,u=r.children,d=r.needIndent,p=r.parentMode,h=r._key,f=xp(t.propTypes,this.props),m=i.props,g=m.prefix,y=m.focusable,v=m.inlineIndent,w=m.itemClassName,B=m.rtl,C=this.getFocused(),x=a?c:_n(((e={})["".concat(g,"menu-item")]=!0,e["".concat(g,"disabled")]=l,e["".concat(g,"focused")]=!y&&C,e),w,c);if(l&&(f["aria-disabled"]=!0,f["aria-hidden"]=!0),f.tabIndex=i.state.tabbableKey===h?0:-1,"inline"===p&&o>1&&v>0&&d){var E=B?"paddingRight":"paddingLeft";f.style=Fn(Fn({},f.style||{}),((n={})[E]="".concat(o*v-.4*(A||0)*v,"px"),n))}var k=s,F="menuitem";return"selectMode"in i.props&&(F="option"),b.createElement(k,Fn({role:F,title:this.getTitle(u)},f,{className:x,onClick:this.handleClick,onKeyDown:this.handleKeyDown}),b.createElement("div",{className:"".concat(g,"menu-item-inner")},u))},t.propTypes={_key:Nn.string,level:Nn.number,inlineLevel:Nn.number,groupIndent:Nn.number,root:Nn.object,menu:Nn.any,parent:Nn.object,parentMode:Nn.oneOf(["inline","popup"]),type:Nn.oneOf(["submenu","item"]),component:Nn.string,disabled:Nn.bool,className:Nn.string,onClick:Nn.func,onKeyDown:Nn.func,needIndent:Nn.bool,replaceClassName:Nn.bool},t.defaultProps={component:"li",groupIndent:0,replaceClassName:!1,needIndent:!0},t}(b.Component);const kp=Ep;var Fp=Io.bindCtx,Sp=Ho.pickOthers,Qp=function(e){function t(t){var n=e.call(this,t)||this;return Fp(n,["handleKeyDown","handleClick"]),n}return kn(t,e),t.prototype.getSelected=function(){var e=this.props,t=e._key,n=e.root,r=e.selected,o=n.props.selectMode,i=n.state.selectedKeys;return r||!!o&&i.indexOf(t)>-1},t.prototype.handleSelect=function(e){var t=this.props,n=t._key,r=t.root,o=t.onSelect;o?o(!this.getSelected(),this,e):r.handleSelect(n,!this.getSelected(),this)},t.prototype.handleKeyDown=function(e){e.keyCode!==Lo.SPACE||this.props.disabled||this.handleSelect(e),this.props.onKeyDown&&this.props.onKeyDown(e)},t.prototype.handleClick=function(e){this.handleSelect(e),this.props.onClick&&this.props.onClick(e)},t.prototype.renderSelectedIcon=function(e){var t,n=this.props,r=n.root,o=n.inlineIndent,i=n.needIndent,a=n.hasSelectedIcon,A=n.isSelectIconRight,s=n.type,l=r.props,c=l.prefix,u=l.hasSelectedIcon,d=l.isSelectIconRight,p=l.icons,h=p.select;!b.isValidElement(p.select)&&p.select&&(h=b.createElement("span",null,p.select));var f=_n(((t={})["".concat(c,"menu-icon-selected")]=!0,t["".concat(c,"menu-symbol-icon-selected")]=!h,t["".concat(c,"menu-icon-right")]=("isSelectIconRight"in this.props?A:d)&&"submenu"!==s,t));return("hasSelectedIcon"in this.props?a:u)&&e?b.cloneElement(h||b.createElement(Xd,{type:"select"}),{style:i&&o>0?{left:"".concat(o,"px")}:null,className:f}):null},t.prototype.render=function(){var e,n=this.props,r=n._key,o=n.root,i=n.className,a=n.disabled,A=n.helper,s=n.children,l=n.needIndent,c=o.props.prefix,u=Sp(t.propTypes,this.props),d=this.getSelected(),p=Fn({_key:r,root:o,disabled:a,type:"item",className:_n((e={},e["".concat(c,"selected")]=d,e),i),onKeyDown:this.handleKeyDown,onClick:a?this.props.onClick:this.handleClick,needIndent:l},u);"title"in p||"string"!=typeof s||(p.title=s);var h={};return"selectMode"in o.props&&(h["aria-selected"]=d),b.createElement(kp,Fn({},p),this.renderSelectedIcon(d),b.createElement("span",Fn({className:"".concat(c,"menu-item-text")},h),s),A?b.createElement("div",{className:"".concat(c,"menu-item-helper")},A):null)},t.menuChildType="item",t.propTypes={_key:Nn.string,root:Nn.object,selected:Nn.bool,onSelect:Nn.func,inlineIndent:Nn.number,disabled:Nn.bool,helper:Nn.node,children:Nn.node,className:Nn.string,onKeyDown:Nn.func,onClick:Nn.func,needIndent:Nn.bool,hasSelectedIcon:Nn.bool,isSelectIconRight:Nn.bool,icons:Nn.object},t.defaultProps={disabled:!1,needIndent:!0,icons:{}},t}(b.Component);const Up=Qp;var Op=function(e){var t=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;return t&&(t=+t.toFixed(6)),t||0},Tp=function(e){return e?Array.isArray(e)?e:[e]:[]},Mp=function(e,t){var n=e.split("-").slice(0,-1),r=t.split("-").slice(0,-1);return n.length===r.length&&n.every(function(e,t){return e===r[t]})},Ip=function(e,t){var n=e.split("-"),r=t.split("-");return n.length>r.length&&r.every(function(e,t){return e===n[t]})},Np=function(e,t,n){var r=n[t],o=r.type,i=r.disabled;return Mp(e,t)&&("item"===o&&!i||"submenu"===o)},Hp=function(e,t){var n=Object.keys(t).find(function(n){return Np("".concat(e,"-0"),n,t)});return n?t[n].key:null},_p=function(e){var t=e.selectMode,n=e.selectedKeys,r=e._k2n,o=e._key;if(!r)return!1;var i="".concat(r[o]&&r[o].pos,"-");return!!t&&n.some(function(e){return r[e]&&0===r[e].pos.indexOf(i)})},Pp=Io.bindCtx,Dp=Oo.setStyle,Lp=Vd.Popup,Rp=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOpen=function(e,t,r){var o=n.props,i=o._key;o.root.handleOpen(i,e,t,r);var a=n.popupProps;a.onVisibleChange&&a.onVisibleChange(e,t,r)},Pp(n,["handleOpen","handlePopupOpen","handlePopupClose","getPopup"]),n}return kn(t,e),t.prototype.getPopup=function(e){this.popup=e},t.prototype.getOpen=function(){var e=this.props,t=e._key;return e.root.state.openKeys.indexOf(t)>-1},t.prototype.getPopupProps=function(){var e=this.props.root.props.popupProps;return"function"==typeof e&&(e=e(this.props)),e},t.prototype.handlePopupOpen=function(){var e=this.props,t=e.root,n=e.level,r=e.align,o=e.autoWidth,i=t.props,a=i.popupAutoWidth,A=i.popupAlign,s=i.direction,l=r||A,c="autoWidth"in this.props?o:a;try{var u=w.findDOMNode(this),d=u.parentNode;if(this.popupNode=this.popup.getInstance().overlay.getInstance().getContentNode(),t.popupNodes.push(this.popupNode),c){var p="hoz"===s&&1===n?u:d;p.offsetWidth>this.popupNode.offsetWidth&&Dp(this.popupNode,"width","".concat(p.offsetWidth,"px"))}"outside"!==l||"hoz"===s&&1===n||(Dp(this.popupNode,"height","".concat(d.offsetHeight,"px")),this.popupNode.firstElementChild&&Dp(this.popupNode.firstElementChild,"overflow-y","auto"));var h=this.popupProps;h.onOpen&&h.onOpen()}catch(f){return null}},t.prototype.handlePopupClose=function(){var e=this.props.root.popupNodes,t=e.indexOf(this.popupNode);t>-1&&e.splice(t,1);var n=this.popupProps;n.onClose&&n.onClose()},t.prototype.renderItem=function(e,t,n){var r,o=this.props,i=o._key,a=o.root,A=o.level,s=o.inlineLevel,l=o.label,c=o.className,u=a.props,d=u.prefix,p=u.selectMode,h=e?Up:kp,f=this.getOpen(),m=a.state,g=m.selectedKeys,y=m._k2n,v=_p({_key:i,_k2n:y,selectMode:p,selectedKeys:g}),w={"aria-haspopup":!0,"aria-expanded":f,_key:i,root:a,level:A,inlineLevel:s,type:"submenu"};return w.className=_n(((r={})["".concat(d,"opened")]=f,r["".concat(d,"child-selected")]=v,r),c),b.createElement(h,Fn({},w,n),b.createElement("span",{className:"".concat(d,"menu-item-text")},l),t)},t.prototype.renderPopup=function(e,t,n,r){var o=this,i=this.props,a=i.root,A=i.level,s=i.selectable,l=i.className,c=a.props.direction;this.popupProps=this.getPopupProps();var u=this.getOpen();"hoz"===c&&1===A&&s&&(n.target=function(){return w.findDOMNode(o)});var d=n.className,p=Sn(n,["className"]),h=_n(l,d);return b.createElement(Lp,Fn({ref:this.getPopup},p,this.popupProps,{canCloseByEsc:!1,trigger:e,triggerType:t,visible:u,pinFollowBaseElementWhenFixed:!0,onVisibleChange:this.handleOpen,onOpen:this.handlePopupOpen,onClose:this.handlePopupClose}),b.createElement("div",{className:h},r))},t.prototype.render=function(){var e,n,r=this,o=this.props,i=o.root,a=o.level,A=o.hasSubMenu,s=o.selectable,l=o.children,c=o.triggerType,u=o.align,d=o.noIcon,p=Ho.pickOthers(t.propTypes,this.props),h=i.props,f=h.prefix,m=h.selectMode,g=h.direction,y=h.popupAlign,v=h.triggerType,B=u||y,C=c||(A?v:"hover"),x=Array.isArray(l)?l[0]:l,E=m&&s,k=E&&"click"===C,F=this.getOpen(),S={};"hoz"===g&&1===a?(S.align="tl bl",S.className="".concat(f,"menu-spacing-tb"),n={type:"arrow-down",className:_n((e={},e["".concat(f,"menu-hoz-icon-arrow")]=!0,e["".concat(f,"open")]=F,e))}):("outside"===B?(S.target=function(){return w.findDOMNode(i)},S.align="tl tr",S.className="".concat(f,"menu-spacing-lr ").concat(f,"menu-outside")):(k&&(S.target=function(){return w.findDOMNode(r)}),S.align="tl tr",S.className="".concat(f,"menu-spacing-lr")),n={type:"arrow-right",className:"".concat(f,"menu-icon-arrow ").concat(f,"menu-symbol-popupfold")});var Q=b.createElement(Xd,Fn({},n)),U=k?Q:this.renderItem(E,d?null:Q,p),O=this.renderPopup(U,C,S,x);return k?this.renderItem(E,O,p):O},t.menuChildType="submenu",t.propTypes={_key:Nn.string,root:Nn.object,level:Nn.number,hasSubMenu:Nn.bool,noIcon:Nn.bool,rtl:Nn.bool,selectable:Nn.bool,label:Nn.node,children:Nn.node,className:Nn.string,triggerType:Nn.oneOf(["click","hover"]),align:Nn.oneOf(["outside","follow"]),autoWidth:Nn.bool},t.defaultProps={selectable:!1,noIcon:!1},t}(b.Component);const zp=Rp;var Kp=mu.Expand,jp=Io.bindCtx,Vp=function(e){function t(t){var n=e.call(this,t)||this;return jp(n,["handleMouseEnter","handleMouseLeave","handleClick","handleOpen","afterLeave"]),n}return kn(t,e),t.prototype.componentDidMount=function(){this.itemNode=w.findDOMNode(this)},t.prototype.afterLeave=function(){var e=this.props,t=e.focused;e.root.props.focusable&&t&&this.itemNode.focus()},t.prototype.getOpen=function(){var e=this.props,t=e._key;return e.root.state.openKeys.indexOf(t)>-1},t.prototype.handleMouseEnter=function(e){this.handleOpen(!0),this.props.onMouseEnter&&this.props.onMouseEnter(e)},t.prototype.handleMouseLeave=function(e){this.handleOpen(!1),this.props.onMouseLeave&&this.props.onMouseLeave(e)},t.prototype.handleClick=function(e){var t=this.props,n=t.root,r=t.selectable;n.props.selectMode&&r&&e.stopPropagation();var o=this.getOpen();this.handleOpen(!o)},t.prototype.handleOpen=function(e,t,n){var r=this.props,o=r._key;r.root.handleOpen(o,e,t,n)},t.prototype.passParentToChildren=function(e){var t=this,n=this.props,r=n.mode,o=n.root;return b.Children.map(e,function(e){return"function"!=typeof e&&"object"!=typeof e?e:b.cloneElement(e,{parent:t,parentMode:r||o.props.mode})})},t.prototype.renderInline=function(){var e,n,r,o,i=this.props,a=i._key,A=i.level,s=i.inlineLevel,l=i.root,c=i.className,u=i.selectable,d=i.label,p=i.children,h=i.noIcon,f=i.subMenuContentClassName,m=i.triggerType,g=i.parentMode,y=l.props,v=y.prefix,w=y.selectMode,B=y.triggerType,C=y.inlineArrowDirection,x=y.expandAnimation,E=y.rtl,k=m||B,F=this.getOpen(),S=l.state,Q=S.selectedKeys,U=S._k2n,O=_p({_key:a,_k2n:U,selectMode:w,selectedKeys:Q}),T=Ho.pickOthers(t.propTypes,this.props),M={className:_n((e={},e["".concat(v,"menu-sub-menu-wrapper")]=!0,e),c)},I={"aria-expanded":F,_key:a,level:A,role:"listitem",inlineLevel:s,root:l,type:"submenu",component:"div",parentMode:g,className:_n((n={},n["".concat(v,"opened")]=F,n["".concat(v,"child-selected")]=O,n))};"string"==typeof d&&(I.title=d);var N={type:"right"===C?"arrow-right":"arrow-down",className:_n((r={},r["".concat(v,"menu-icon-arrow")]=!0,r["".concat(v,"menu-icon-arrow-down")]="down"===C,r["".concat(v,"menu-icon-arrow-right")]="right"===C,r["".concat(v,"open")]=F,r))},H=!!w&&u,_=H?Up:kp;"hover"===k?(M.onMouseEnter=this.handleMouseEnter,M.onMouseLeave=this.handleMouseLeave):H?N.onClick=this.handleClick:I.onClick=this.handleClick;var P=_n(((o={})["".concat(v,"menu-sub-menu")]=!0,o),f),D="menu",L="menuitem";"selectMode"in l.props&&(D="listbox",L="option");var R=F?b.createElement("ul",{role:D,dir:E?"rtl":void 0,className:P},this.passParentToChildren(p)):null;return b.createElement("li",Fn({role:L},T,M),b.createElement(_,Fn({},I),b.createElement("span",{className:"".concat(v,"menu-item-text")},d),h?null:b.createElement(Xd,Fn({},N))),x?b.createElement(Kp,{animationAppear:!1,afterLeave:this.afterLeave},R):R)},t.prototype.renderPopup=function(){var e,t=this.props,n=t.children,r=t.subMenuContentClassName,o=t.noIcon,i=Sn(t,["children","subMenuContentClassName","noIcon"]),a=this.props.root.props,A=a.prefix,s=a.popupClassName,l=a.popupStyle,c=a.rtl,u=_n(((e={})["".concat(A,"menu")]=!0,e["".concat(A,"ver")]=!0,e),s,r);return i.rtl=c,b.createElement(zp,Fn({},i,{noIcon:o,hasSubMenu:!0}),b.createElement("ul",{role:"menu",dir:c?"rtl":void 0,className:u,style:l},this.passParentToChildren(n)))},t.prototype.render=function(){var e=this.props,t=e.mode,n=e.root;return"popup"===(t||n.props.mode)?this.renderPopup():this.renderInline()},t.menuChildType="submenu",t.propTypes={_key:Nn.string,root:Nn.object,level:Nn.number,inlineLevel:Nn.number,groupIndent:Nn.number,label:Nn.node,selectable:Nn.bool,mode:Nn.oneOf(["inline","popup"]),noIcon:Nn.bool,children:Nn.node,onMouseEnter:Nn.func,onMouseLeave:Nn.func,subMenuContentClassName:Nn.string,triggerType:Nn.oneOf(["click","hover"]),align:Nn.oneOf(["outside","follow"]),parentMode:Nn.oneOf(["inline","popup"]),parent:Nn.any},t.defaultProps={groupIndent:0,noIcon:!1,selectable:!1},t}(b.Component);const $p=Vp;var Gp=Io.bindCtx,Wp=Ho.pickOthers,Yp=Ho.isNil,qp=function(){},Xp="menuitem-overflowed",Jp=function(e,t,n,r){var o;void 0===n&&(n="");var i=_n(((o={})["".concat(n,"menu-more")]=!0,o)),a={};if(t?(a.visibility="hidden",a.display="inline-block"):e&&0===e.length&&(a.display="none",a.visibility="unset"),r&&"function"==typeof r){var A=r(e),s=_n(i,A.props&&A.props.className);return b.isValidElement(A)?b.cloneElement(A,{style:a,className:s}):A}return b.createElement($p,{label:"\xb7\xb7\xb7",noIcon:!0,className:i,style:a},e)},Zp=function(e){var t=e.children,n=e.root,r=e.mode,o=e.lastVisibleIndex,i=e.hozInLine,a=e.prefix,A=e.renderMore,s={},l={},c=i?function(e){var t=e.children,n=e.lastVisibleIndex,r=e.prefix,o=e.renderMore,i=[];return b.Children.forEach(t,function(e,a){if(e){var A=[];void 0!==n&&(a>n&&(e=b.cloneElement(e,{key:"more-".concat(a),style:{display:"none"},className:"".concat(e&&e.className||""," ").concat(Xp)})),a===n+1&&(A=t.slice(n+1).map(function(e,t){return b.cloneElement(e,{key:e.key||"more-".concat(a,"-").concat(t)})}),i.push(Jp(A,!1,r,o)))),i.push(e)}}),i.push(Jp([],!0,r,o)),i}({children:t,lastVisibleIndex:o,prefix:a,renderMore:A}):t,u=function(e,t,o,i){void 0===o&&(o={index:0}),void 0===i&&(i=1);var a=[];return b.Children.map(e,function(e){if(e&&("function"==typeof e.type||"object"==typeof e.type)&&"menuChildType"in e.type){var A=void 0,c=void 0,d={root:n};if(["item","submenu","group"].indexOf(e.type.menuChildType)>-1){c="".concat(t,"-").concat(o.index++);var p="string"==typeof e.key?e.key:c;if(a.indexOf(p)>-1)return;a.push(p);var h=c.split("-").length-1;s[p]=l[c]={key:p,pos:c,mode:e.props.mode,type:e.type.menuChildType,disabled:e.props.disabled,label:e.props.label||e.props.children},d.level=h,d.inlineLevel=i,d._key=p,d.groupIndent="group"===e.type.menuChildType?1:0}var f="popup"===(e.props.mode||r)?1:i+1;switch(e.type.menuChildType){case"submenu":A=b.cloneElement(e,d,u(e.props.children,c,void 0,f));break;case"group":A=b.cloneElement(e,d,u(e.props.children,t,o,d.level));break;case"item":case"divider":A=b.cloneElement(e,d);break;default:A=e}return A}return e})};return{newChildren:u(c,"0"),_k2n:s,_p2n:l}},eh=function(e){function t(t){var n=e.call(this,t)||this;n.getUpdateChildren=function(){var e=n.state,t=e.root,r=e.lastVisibleIndex;return Zp(Fn({root:t,lastVisibleIndex:r},n.props))},n.menuContentRef=function(e){n.menuContent=e},n.menuHeaderRef=function(e){n.menuHeader=e},n.menuFooterRef=function(e){n.menuFooter=e};var r=n.props,o=r.selectedKeys,i=r.defaultSelectedKeys,a=r.focusedKey,A=r.focusable,s=r.autoFocus,l=Zp(Fn({root:n},n.props)),c=l.newChildren,u=l._k2n,d=l._p2n,p=A?Hp("0",d):void 0;return n.state={root:n,lastVisibleIndex:void 0,newChildren:c,_k2n:u,_p2n:d,tabbableKey:p,openKeys:n.getInitOpenKeys(t,u),selectedKeys:Tp(o||i),focusedKey:Yp(n.props.focusedKey)?A&&s?p:null:a},Gp(n,["handleOpen","handleSelect","handleItemClick","handleItemKeyDown","onBlur","adjustChildrenWidth"]),n.popupNodes=[],n}return kn(t,e),t.getDerivedStateFromProps=function(e,t){var n={};"openKeys"in e?n.openKeys=Tp(e.openKeys):"mode"in e&&"popup"===e.mode&&"inline"===t.lastMode&&(n.openKeys=[]),"selectedKeys"in e&&(n.selectedKeys=Tp(e.selectedKeys)),"focusedKey"in e&&(n.focusedKey=e.focusedKey),n.lastMode=e.mode;var r=Zp(Fn({root:t.root,lastVisibleIndex:t.lastVisibleIndex},e)),o=r.newChildren,i=r._k2n,a=r._p2n;return n.newChildren=o,n._k2n=i,n._p2n=a,e.focusable&&(t.tabbableKey in i?t.focusedKey&&(n.tabbableKey=t.focusedKey):n.tabbableKey=Hp("0",a)),n},t.prototype.componentDidMount=function(){this.menuNode=w.findDOMNode(this),this.adjustChildrenWidth(),this.props.hozInLine&&Mo.on(window,"resize",this.adjustChildrenWidth)},t.prototype.componentDidUpdate=function(e,t){t.lastVisibleIndex===this.state.lastVisibleIndex&&b.Children.toArray(this.props.children).length===b.Children.toArray(e.children).length||this.adjustChildrenWidth()},t.prototype.componentWillUnmount=function(){Mo.off(window,"resize",this.adjustChildrenWidth)},t.prototype.adjustChildrenWidth=function(){var e=this.props,t=e.direction,n=e.prefix,r=e.header,o=e.footer,i=e.hozInLine;if("hoz"===t&&i&&(this.menuNode||this.menuContent)){var a,A=[];if(r||o?(A=this.menuContent.children,a=Op(this.menuNode)-Op(this.menuHeader)-Op(this.menuFooter)):(A=this.menuNode.children,a=Op(this.menuNode)),!(A.length<2)){var s,l=0,c=-1,u=[].slice.call(A).filter(function(e){return e.className.split(" ").indexOf("".concat(n,"menu-more"))<0||(s=e,!1)}),d=u.filter(function(e){return e.className.split(" ").indexOf(Xp)>=0});d.forEach(function(e){Oo.setStyle(e,"display","inline-block")}),Oo.setStyle(s,"display","inline-block");var p=Op(s);this.menuItemSizes=u.map(function(e){return Op(e)});var h=this.menuItemSizes.length;d.forEach(function(e){Oo.setStyle(e,"display","none")}),this.menuItemSizes.forEach(function(e,t){l+=e,(t>=h-1&&l<=a||l+p<=a)&&c++}),c>=h-1&&Oo.setStyle(s,"display","none"),this.setState(Fn({lastVisibleIndex:c},this.getUpdateChildren()))}}},t.prototype.onBlur=function(e){this.setState({focusedKey:void 0}),this.props.onBlur&&this.props.onBlur(e)},t.prototype.getInitOpenKeys=function(e,t){var n,r=e.openKeys,o=e.defaultOpenKeys,i=e.defaultOpenAll,a=e.mode,A=e.openMode;return n=r||(i&&"inline"===a&&"multiple"===A?Object.keys(t).filter(function(e){return"submenu"===t[e].type}):o),Tp(n)},t.prototype.handleOpen=function(e,t,n,r){var o,i=this.props,a=i.mode,A=i.openMode,s=this.state,l=s.openKeys,c=s._k2n,u=l.indexOf(e);t&&-1===u?"inline"===a?"single"===A?(o=l.filter(function(t){return c[t]&&!Mp(c[e].pos,c[t].pos)})).push(e):o=l.concat(e):(o=l.filter(function(t){return c[t]&&Ip(c[e].pos,c[t].pos)})).push(e):!t&&u>-1&&("inline"===a?o=Un(Un([],Qn(l.slice(0,u)),!1),Qn(l.slice(u+1)),!1):"docClick"===n?this.popupNodes.concat(this.menuNode).some(function(e){return e.contains(r.target)})||(o=[]):o=l.filter(function(t){return t!==e&&c[t]&&!Ip(c[t].pos,c[e].pos)})),o&&(Yp(this.props.openKeys)&&this.setState(Fn({openKeys:o},this.getUpdateChildren())),this.props.onOpen(o,{key:e,open:t}))},t.prototype.getPath=function(e,t,n){for(var r=[],o=[],i=t[e].pos.split("-"),a=1;a<i.length-1;a++){var A=n[i.slice(0,a+1).join("-")];r.push(A.key),o.push(A.label)}return{keyPath:r,labelPath:o}},t.prototype.handleSelect=function(e,t,n){var r=this.state,o=r._k2n,i=r._p2n,a=o[e].pos.split("-").length-1;if(!(this.props.shallowSelect&&a>1)){var A,s=this.props.selectMode,l=this.state.selectedKeys,c=l.indexOf(e);t&&-1===c?"single"===s?A=[e]:"multiple"===s&&(A=l.concat(e)):!t&&c>-1&&"multiple"===s&&(A=Un(Un([],Qn(l.slice(0,c)),!1),Qn(l.slice(c+1)),!1)),A&&(Yp(this.props.selectedKeys)&&this.setState({selectedKeys:A}),this.props.onSelect(A,n,Fn({key:e,select:t,label:o[e].label},this.getPath(e,o,i))))}},t.prototype.handleItemClick=function(e,t,n){var r=this.state._k2n;this.props.focusable&&(Yp(this.props.focusedKey)&&this.setState({focusedKey:e}),this.props.onItemFocus(e,t,n)),"item"===t.props.type&&("popup"===t.props.parentMode&&this.state.openKeys.length&&(Yp(this.props.openKeys)&&this.setState({openKeys:[]}),this.props.onOpen([],{key:this.state.openKeys.sort(function(e,t){return r[t].pos.split("-").length-r[e].pos.split("-").length})[0],open:!1})),this.props.onItemClick(e,t,n))},t.prototype.getAvailableKey=function(e,t){var n=this.state._p2n,r=Object.keys(n).filter(function(t){return Np(e,t,n)});if(r.length>1){var o=r.indexOf(e),i=void 0;return i=t?0===o?r.length-1:o-1:o===r.length-1?0:o+1,n[r[i]].key}return null},t.prototype.getParentKey=function(e){return this.state._p2n[e.slice(0,e.length-2)].key},t.prototype.handleItemKeyDown=function(e,t,n,r){[Lo.UP,Lo.DOWN,Lo.RIGHT,Lo.LEFT,Lo.ENTER,Lo.ESC,Lo.SPACE].indexOf(r.keyCode)>-1&&(r.preventDefault(),r.stopPropagation());var o=this.state.focusedKey,i=this.state,a=i._p2n,A=i._k2n,s=this.props.direction,l=A[e].pos,c=l.split("-").length-1;switch(r.keyCode){case Lo.UP:(u=this.getAvailableKey(l,!0))&&(o=u);break;case Lo.DOWN:var u=void 0;"hoz"===s&&1===c&&"submenu"===t?(this.handleOpen(e,!0),u=Hp(l,a)):u=this.getAvailableKey(l,!1),u&&(o=u);break;case Lo.RIGHT:u=void 0;"hoz"===s&&1===c?u=this.getAvailableKey(l,!1):"submenu"===t&&(this.handleOpen(e,!0),u=Hp(l,a)),u&&(o=u);break;case Lo.ENTER:if("submenu"===t)this.handleOpen(e,!0),(u=Hp(l,a))&&(o=u);break;case Lo.LEFT:if("hoz"===s&&1===c)(u=this.getAvailableKey(l,!0))&&(o=u);else if(c>1){var d=this.getParentKey(l);this.handleOpen(d,!1),o=d}break;case Lo.ESC:if(c>1){d=this.getParentKey(l);this.handleOpen(d,!1),o=d}break;case Lo.TAB:o=null}o!==this.state.focusedKey&&(Yp(this.props.focusedKey)&&this.setState({focusedKey:o}),this.props.onItemKeyDown(o,n,r),this.props.onItemFocus(o,r))},t.prototype.render=function(){var e,n,r=this.props,o=r.prefix,i=r.className,a=r.direction,A=r.hozAlign,s=r.header,l=r.footer,c=r.footerWrapperClassName,u=r.embeddable,d=r.selectMode,p=r.hozInLine,h=r.rtl,f=r.flatenContent,m=this.state.newChildren,g=Wp(t.propTypes,this.props),y=_n(((e={})["".concat(o,"menu")]=!0,e["".concat(o,"ver")]="ver"===a,e["".concat(o,"hoz")]="hoz"===a,e["".concat(o,"menu-embeddable")]=u,e["".concat(o,"menu-nowrap")]=p,e["".concat(o,"menu-selectable-").concat(d)]=d,e),i),v="hoz"===a?"menubar":"menu";"selectMode"in this.props&&(v="listbox",n=!("multiple"!==d));var w=s?b.createElement("li",{className:"".concat(o,"menu-header"),ref:this.menuHeaderRef},s):null,B=f||!s&&!l?m:b.createElement("ul",{className:"".concat(o,"menu-content"),ref:this.menuContentRef},m),C=l?b.createElement("li",{className:_n("".concat(o,"menu-footer"),c),ref:this.menuFooterRef},l):null,x="right"===A&&!!s;return h&&(g.dir="rtl"),b.createElement("ul",Fn({role:v,onBlur:this.onBlur,className:y,onKeyDown:this.handleEnter,"aria-multiselectable":n},g),w,x?b.createElement("div",{className:"".concat(o,"menu-hoz-right")},B,C):null,x?null:B,x?null:C)},t.isNextMenu=!0,t.propTypes=Fn(Fn({},sc.propTypes),{prefix:Nn.string,pure:Nn.bool,rtl:Nn.bool,className:Nn.string,children:Nn.node,onItemClick:Nn.func,openKeys:Nn.oneOfType([Nn.string,Nn.array]),defaultOpenKeys:Nn.oneOfType([Nn.string,Nn.array]),defaultOpenAll:Nn.bool,onOpen:Nn.func,mode:Nn.oneOf(["inline","popup"]),triggerType:Nn.oneOf(["click","hover"]),openMode:Nn.oneOf(["single","multiple"]),inlineIndent:Nn.number,inlineArrowDirection:Nn.oneOf(["down","right"]),popupAutoWidth:Nn.bool,popupAlign:Nn.oneOf(["follow","outside"]),popupProps:Nn.oneOfType([Nn.object,Nn.func]),popupClassName:Nn.string,popupStyle:Nn.object,selectedKeys:Nn.oneOfType([Nn.string,Nn.array]),defaultSelectedKeys:Nn.oneOfType([Nn.string,Nn.array]),onSelect:Nn.func,selectMode:Nn.oneOf(["single","multiple"]),shallowSelect:Nn.bool,hasSelectedIcon:Nn.bool,labelToggleChecked:Nn.bool,isSelectIconRight:Nn.bool,direction:Nn.oneOf(["ver","hoz"]),hozAlign:Nn.oneOf(["left","right"]),hozInLine:Nn.bool,renderMore:Nn.func,header:Nn.node,footer:Nn.node,footerWrapperClassName:Nn.string,autoFocus:Nn.bool,focusedKey:Nn.oneOfType([Nn.string,Nn.number,Nn.object]),focusable:Nn.bool,onItemFocus:Nn.func,onBlur:Nn.func,embeddable:Nn.bool,onItemKeyDown:Nn.func,expandAnimation:Nn.bool,itemClassName:Nn.string,icons:Nn.object,flatenContent:Nn.bool}),t.defaultProps={prefix:"next-",pure:!1,defaultOpenKeys:[],defaultOpenAll:!1,onOpen:qp,mode:"inline",triggerType:"click",openMode:"multiple",inlineIndent:20,inlineArrowDirection:"down",popupAutoWidth:!1,popupAlign:"follow",popupProps:{},defaultSelectedKeys:[],onSelect:qp,shallowSelect:!1,hasSelectedIcon:!0,isSelectIconRight:!1,labelToggleChecked:!0,direction:"ver",hozAlign:"left",hozInLine:!1,autoFocus:!1,focusable:!0,embeddable:!1,onItemFocus:qp,onItemKeyDown:qp,onItemClick:qp,expandAnimation:!0,icons:{}},t.displayName="Menu",t}(b.Component);const th=lr(eh);var nh=Io.makeChain,rh=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},["_onUIFocus","_onUIBlur"].forEach(function(e){n[e]=n[e].bind(n)}),n}return kn(t,e),t.prototype.getStateElement=function(e){var t=this.props,n=t.onFocus,r=t.onBlur;return b.cloneElement(e,{onFocus:nh(this._onUIFocus,n),onBlur:nh(this._onUIBlur,r)})},t.prototype.getStateClassName=function(){var e=this.state.focused;return _n({focused:e})},t.prototype.resetUIState=function(){this.setState({focused:!1})},t.prototype._onUIFocus=function(){this.setState({focused:!0})},t.prototype._onUIBlur=function(){this.setState({focused:!1})},t}(b.Component);const oh=rh;var ih=Io.noop;function ah(e,t){return e.indexOf(t)>-1}var Ah=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=t.context;return n="checked"in t?t.checked:t.defaultChecked,r="indeterminate"in t?t.indeterminate:t.defaultIndeterminate,i.__group__&&(n=ah(i.selectedValue,t.value)),o.state={checked:n,indeterminate:r},o.onChange=o.onChange.bind(o),o}return kn(t,e),t.getDerivedStateFromProps=function(e){var t=e.context,n={};return t.__group__?"selectedValue"in t&&(n.checked=ah(t.selectedValue,e.value)):"checked"in e&&(n.checked=e.checked),"indeterminate"in e&&(n.indeterminate=e.indeterminate),n},Object.defineProperty(t.prototype,"disabled",{get:function(){var e=this.props,t=e.context;return e.disabled||"disabled"in t&&t.disabled},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(e,t,n){var r=Ho.shallowEqual;return!r(this.props,e)||!r(this.state,t)||!r(this.context,n)},t.prototype.onChange=function(e){var t,n,r=this.props,o=r.context,i=r.value,a=e.target.checked;this.disabled||(o.__group__?o.onChange(i,e):("checked"in this.props||this.setState({checked:a}),"indeterminate"in this.props||this.setState({indeterminate:!1}),null===(n=(t=this.props).onChange)||void 0===n||n.call(t,a,e)))},t.prototype.render=function(){var e,n,r=this.props,o=r.id,i=r.className,a=r.children,A=r.style,s=r.label,l=r.onMouseEnter,c=r.onMouseLeave,u=r.rtl,d=r.isPreview,p=r.renderPreview,h=r.context,f=r.value,m=r.name,g=Sn(r,["id","className","children","style","label","onMouseEnter","onMouseLeave","rtl","isPreview","renderPreview","context","value","name"]),y=!!this.state.checked,v=this.disabled,b=!!this.state.indeterminate,w=h.prefix||this.props.prefix,B=Ho.pickOthers(t.propTypes,g),x=Ho.pickAttrsWith(B,"data-");g.title&&(x.title=g.title);var E=C.createElement("input",Fn({},Ho.pickOthers(t.propTypes,g),{id:o,value:f,name:m,disabled:v,checked:y,type:"checkbox",onChange:this.onChange,"aria-checked":b?"mixed":y,className:"".concat(w,"checkbox-input")}));v||(E=this.getStateElement(E));var k=_n(i,((e={})["".concat(w,"checkbox-wrapper")]=!0,e.checked=y,e.disabled=v,e.indeterminate=b,e[this.getStateClassName()]=!0,e)),F="".concat(w,"checkbox-label"),S=b?"semi-select":"select";if(d){var Q=_n(i,"".concat(w,"form-preview"));return"renderPreview"in this.props?C.createElement("div",Fn({id:o,dir:u?"rtl":void 0},x,{className:Q}),null==p?void 0:p(y,this.props)):C.createElement("p",Fn({id:o,dir:u?"rtl":void 0},x,{className:Q}),y&&(a||s||this.state.value))}var U=_n(((n={zoomIn:b})["".concat(w,"checkbox-semi-select-icon")]=b,n["".concat(w,"checkbox-select-icon")]=!b,n));return C.createElement("label",Fn({},x,{className:k,style:A,dir:u?"rtl":void 0,onMouseEnter:l,onMouseLeave:c}),C.createElement("span",{className:"".concat(w,"checkbox")},C.createElement("span",{className:"".concat(w,"checkbox-inner")},C.createElement(Xd,{type:S,size:"xs",className:U})),E),[s,a].map(function(e,t){return null!=e?C.createElement("span",{key:t,className:F},e):null}))},t.displayName="Checkbox",t.propTypes=Fn(Fn({},sc.propTypes),{prefix:In.string,rtl:In.bool,className:In.string,id:In.string,style:In.object,checked:In.bool,defaultChecked:In.bool,disabled:In.bool,label:In.node,indeterminate:In.bool,defaultIndeterminate:In.bool,onChange:In.func,onMouseEnter:In.func,onMouseLeave:In.func,value:In.oneOfType([In.string,In.number,In.bool]),name:In.string,isPreview:In.bool,renderPreview:In.func}),t.defaultProps={defaultChecked:!1,defaultIndeterminate:!1,onChange:ih,onMouseEnter:ih,onMouseLeave:ih,prefix:"next-",isPreview:!1},t}(oh);const sh=sc.config((lh=lr(Ah),ch=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){return C.createElement(lh,Fn({},this.props,{context:this.context}))},t}(C.Component),ch.displayName="Checkbox",ch.contextTypes={onChange:In.func,__group__:In.bool,selectedValue:In.array,disabled:In.bool,prefix:In.string},ch));var lh,ch,uh=Ho.pickOthers,dh=function(e){function t(t){var n=e.call(this,t)||this,r=[];return"value"in t?r=t.value:"defaultValue"in t&&(r=t.defaultValue),Array.isArray(r)||(r=null==r?[]:[r]),n.state={value:Un([],Qn(r),!1)},n.onChange=n.onChange.bind(n),n}return kn(t,e),t.prototype.getChildContext=function(){return{__group__:!0,onChange:this.onChange,selectedValue:this.state.value,disabled:this.props.disabled}},t.getDerivedStateFromProps=function(e){if("value"in e){var t=e.value;return Array.isArray(t)||(t=null==t?[]:[t]),{value:t}}return null},t.prototype.onChange=function(e,t){var n,r,o=this.state.value,i=o.indexOf(e),a=Un([],Qn(o),!1);-1===i?a.push(e):a.splice(i,1),"value"in this.props||this.setState({value:a}),null===(r=(n=this.props).onChange)||void 0===r||r.call(n,a,t)},t.prototype.render=function(){var e,n,r,o=this,i=this.props,a=i.className,A=i.style,s=i.prefix,l=i.disabled,c=i.direction,u=i.rtl,d=i.isPreview,p=i.renderPreview,h=uh(t.propTypes,this.props),f=[];if(r=this.props.children?C.Children.map(this.props.children,function(e){var t,n,r,i;return C.isValidElement(e)?(o.state.value&&o.state.value.indexOf(null===(t=e.props)||void 0===t?void 0:t.value)>-1&&f.push({label:null===(n=e.props)||void 0===n?void 0:n.children,value:null===(r=e.props)||void 0===r?void 0:r.value}),C.cloneElement(e,void 0===(null===(i=e.props)||void 0===i?void 0:i.rtl)?{rtl:u}:{})):e}):null===(n=this.props.dataSource)||void 0===n?void 0:n.map(function(e,t){var n;n="object"!=typeof e?{label:e,value:e,disabled:l}:e;var r=o.state.value&&o.state.value.indexOf(n.value)>-1;return r&&f.push({label:n.label,value:n.value}),C.createElement(sh,{key:t,value:n.value,checked:r,rtl:u,disabled:l||n.disabled,label:n.label})}),d){var m=_n(a,"".concat(s,"form-preview"));return"renderPreview"in this.props?C.createElement("div",Fn({},h,{dir:u?"rtl":void 0,className:m}),null==p?void 0:p(f,this.props)):C.createElement("p",Fn({},h,{dir:u?"rtl":void 0,className:m}),f.map(function(e){return e.label}).join(", "))}var g=_n(a,((e={})["".concat(s,"checkbox-group")]=!0,e["".concat(s,"checkbox-group-").concat(c)]=!0,e.disabled=l,e));return C.createElement("span",Fn({dir:u?"rtl":void 0},h,{className:g,style:A}),r)},t.displayName="CheckboxGroup",t.propTypes={prefix:In.string,rtl:In.bool,className:In.string,style:In.object,disabled:In.bool,dataSource:In.oneOfType([In.arrayOf(In.string),In.arrayOf(In.object)]),value:In.oneOfType([In.array,In.string,In.number,In.bool]),defaultValue:In.oneOfType([In.array,In.string,In.number,In.bool]),children:In.arrayOf(In.element),onChange:In.func,direction:In.oneOf(["hoz","ver"]),isPreview:In.bool,renderPreview:In.func},t.defaultProps={dataSource:[],onChange:function(){},prefix:"next-",direction:"hoz",isPreview:!1},t.childContextTypes={onChange:In.func,__group__:In.bool,selectedValue:In.array,disabled:In.bool},t}(C.Component);const ph=lr(dh);const hh=pc(sh,{Group:sc.config(ph,{transform:function(e,t){if("itemDirection"in e){t("itemDirection","direction","Checkbox");var n=e.itemDirection,r=Sn(e,["itemDirection"]);e=Fn({direction:n},r)}return e}})});var fh=Io.makeChain,mh=Io.noop,gh=function(e){function t(t){var n,r=e.call(this,t)||this,o=t.context;return n=o.__group__?o.selectedValue===t.value:"checked"in t?t.checked:t.defaultChecked,r.state={checked:n},r.radioRef=null,r.onChange=r.onChange.bind(r),r}return kn(t,e),t.getDerivedStateFromProps=function(e){var t=e.context;return t.__group__&&"selectedValue"in t?{checked:t.selectedValue===e.value}:"checked"in e?{checked:e.checked}:null},Object.defineProperty(t.prototype,"disabled",{get:function(){var e=this.props,t=e.context;return e.disabled||t.__group__&&"disabled"in t&&t.disabled},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(e,t,n){var r=Ho.shallowEqual;return!r(this.props,e)||!r(this.state,t)||!r(this.context,n)},t.prototype.componentDidUpdate=function(){this.disabled&&this.resetUIState()},t.prototype.onChange=function(e){var t=e.target.checked,n=this.props,r=n.context,o=n.value;r.__group__?r.onChange(o,e):this.state.checked!==t&&("checked"in this.props||this.setState({checked:t}),this.props.onChange(t,e))},t.prototype.focus=function(){this.radioRef&&(this.radioRef.focus(),this._onUIFocus())},t.prototype.render=function(){var e,n,r,o=this,i=this.props,a=i.id,A=i.className,s=i.children,l=i.style,c=i.label,u=i.onMouseEnter,d=i.onMouseLeave,p=i.tabIndex,h=i.rtl,f=i.name,m=i.isPreview,g=i.renderPreview,y=i.value,v=i.context,w=Sn(i,["id","className","children","style","label","onMouseEnter","onMouseLeave","tabIndex","rtl","name","isPreview","renderPreview","value","context"]),B=!!this.state.checked,C=this.disabled,x=v.isButton,E=this.props.prefix,k=Ho.pickOthers(t.propTypes,w),F=Ho.pickAttrsWith(k,"data-");if(m){var S=_n(A,"".concat(E,"form-preview"));return"renderPreview"in this.props?b.createElement("div",Fn({id:a,dir:h?"rtl":"ltr"},k,{className:S}),g(B,this.props)):b.createElement("p",Fn({id:a,dir:h?"rtl":"ltr"},k,{className:S}),B&&(s||c||y))}var Q=b.createElement("input",Fn({},Ho.pickOthers(F,k),{name:f,id:a,tabIndex:p,disabled:C,checked:B,type:"radio",onChange:this.onChange,"aria-checked":B,className:"".concat(E,"radio-input"),ref:function(e){o.radioRef=e}}));C||(Q=this.getStateElement(Q));var U=_n(((e={})["".concat(E,"radio")]=!0,e.checked=B,e.disabled=C,e[this.getStateClassName()]=!0,e)),O=_n(((n={})["".concat(E,"radio-inner")]=!0,n.press=B,n.unpress=!B,n)),T=_n(A,((r={})["".concat(E,"radio-wrapper")]=!0,r.checked=B,r.disabled=C,r[this.getStateClassName()]=!0,r)),M="".concat(E,"radio-label"),I=x?b.createElement("span",{className:"".concat(E,"radio-single-input")},Q):b.createElement("span",{className:U},b.createElement("span",{className:O}),Q);return b.createElement("label",Fn({},F,{dir:h?"rtl":"ltr",style:l,"aria-checked":B,"aria-disabled":C,className:T,onMouseEnter:C?u:fh(this._onUIMouseEnter,u),onMouseLeave:C?d:fh(this._onUIMouseLeave,d)}),I,[s,c].map(function(e,t){return void 0!==e?b.createElement("span",{key:t,className:M},e):null}))},t.displayName="Radio",t.propTypes=Fn(Fn({},sc.propTypes),{className:Nn.string,id:Nn.string,style:Nn.object,checked:Nn.bool,defaultChecked:Nn.bool,label:Nn.node,onChange:Nn.func,onMouseEnter:Nn.func,onMouseLeave:Nn.func,disabled:Nn.bool,value:Nn.oneOfType([Nn.string,Nn.number,Nn.bool]),name:Nn.string,isPreview:Nn.bool,renderPreview:Nn.func}),t.defaultProps={onChange:mh,onMouseLeave:mh,onMouseEnter:mh,tabIndex:0,prefix:"next-",isPreview:!1},t.contextTypes={onChange:Nn.func,__group__:Nn.bool,isButton:Nn.bool,selectedValue:Nn.oneOfType([Nn.string,Nn.number,Nn.bool]),disabled:Nn.bool},t}(oh);const yh=sc.config((vh=lr(gh),function(e){function t(t){var n=e.call(this,t)||this;return n.radioRef=null,n}return kn(t,e),t.prototype.focus=function(){this.radioRef&&this.radioRef.focus()},t.prototype.render=function(){var e=this;return b.createElement(vh,Fn({ref:function(t){e.radioRef=t}},this.props,{context:this.context}))},t.displayName="Radio",t.contextTypes={onChange:Nn.func,__group__:Nn.bool,isButton:Nn.bool,selectedValue:Nn.oneOfType([Nn.string,Nn.number,Nn.bool]),disabled:Nn.bool},t}(b.Component)));var vh,bh=Io.makeChain,wh=Po.focusRef,Bh=Ho.pickOthers,Ch=function(e){function t(t){var n=e.call(this,t)||this;n.saveRadioRef=function(e,t){if(e&&"function"==typeof e.getInstance){var r=e.getInstance();n.radioRefs[t]=r}};var r="";return"value"in t?r=t.value:"defaultValue"in t&&(r=t.defaultValue),n.radioRefs=[],n.hasFocus=!1,n.state={value:r},n.onChange=n.onChange.bind(n),n}return kn(t,e),t.getDerivedStateFromProps=function(e,t){return"value"in e&&e.value!==t.value?{value:e.value}:null},t.prototype.getChildContext=function(){var e=this.props.disabled;return{__group__:!0,isButton:"button"===this.props.shape,onChange:this.onChange,selectedValue:this.state.value,disabled:e}},t.prototype.onChange=function(e,t){"value"in this.props||this.setState({value:e}),e!==this.state.value&&this.props.onChange(e,t)},t.prototype.focus=function(){if(!this.hasFocus){var e=this.radioRefs.filter(function(e){return!!e&&!e.props.disabled}),t=e.find(function(e){return!!e&&e.props.checked});t?wh(t):e.length>0&&wh(e[0])}},t.prototype.render=function(){var e,n,r=this,o=this.props,i=o.rtl,a=o.className,A=o.disabled,s=o.shape,l=o.size,c=o.style,u=o.prefix,d=o.direction,p=o.component,h=o.isPreview,f=o.renderPreview,m=Bh(t.propTypes,this.props);i&&(m.dir="rtl");var g={};if(this.radioRefs=[],n=this.props.children?b.Children.map(this.props.children,function(e,t){if(!b.isValidElement(e))return e;var n=r.state.value===e.props.value;n&&(g.label=e.props.children,g.value=e.props.value);var o=0===t&&!r.state.value||n?0:-1,a=void 0===e.props.rtl?i:e.props.rtl;return e.type&&"Config(Radio)"===e.type.displayName?b.cloneElement(e,{checked:n,tabIndex:o,rtl:a,ref:function(e){r.saveRadioRef(e,t)}}):b.cloneElement(e,{checked:n,rtl:a,ref:function(e){r.saveRadioRef(e,t)}})}):this.props.dataSource.map(function(e,t){var n;n="object"!=typeof e?{label:e,value:e,disabled:A}:e;var o=r.state.value===n.value;return o&&(g.label=n.label,g.value=n.value),b.createElement(yh,{key:t,tabIndex:0===t&&!r.state.value||o?0:-1,value:n.value,checked:o,label:n.label,disabled:A||n.disabled,ref:function(e){r.saveRadioRef(e,t)}})}),h){var y=_n(a,"".concat(u,"form-preview"));return"renderPreview"in this.props?b.createElement("div",Fn({},m,{className:y}),f(g,this.props)):b.createElement("p",Fn({},m,{className:y}),g.label)}var v="button"===s,w=_n(a,((e={})["".concat(u,"radio-group")]=!0,e["".concat(u,"radio-group-").concat(d)]=!v,e["".concat(u,"radio-button")]=v,e["".concat(u,"radio-button-").concat(l)]=v,e.disabled=A,e)),B=p;return b.createElement(B,Fn({},m,{"aria-disabled":A,role:"radiogroup",className:w,style:c,onFocus:bh(function(){this.hasFocus=!0}.bind(this),this.props.onFocus),onBlur:bh(function(){this.hasFocus=!1}.bind(this),this.props.onBlur)}),n)},t.propTypes=Fn(Fn({},sc.propTypes),{prefix:Nn.string,className:Nn.string,style:Nn.object,name:Nn.string,value:Nn.oneOfType([Nn.string,Nn.number,Nn.bool]),defaultValue:Nn.oneOfType([Nn.string,Nn.number,Nn.bool]),component:Nn.oneOfType([Nn.string,Nn.func]),onChange:Nn.func,disabled:Nn.bool,shape:Nn.oneOf(["normal","button"]),size:Nn.oneOf(["large","medium","small"]),dataSource:Nn.oneOfType([Nn.arrayOf(Nn.string),Nn.arrayOf(Nn.object)]),children:Nn.oneOfType([Nn.arrayOf(Nn.element),Nn.element]),direction:Nn.oneOf(["hoz","ver"]),isPreview:Nn.bool,renderPreview:Nn.func}),t.defaultProps={dataSource:[],size:"medium",onChange:function(){},prefix:"next-",component:"div",direction:"hoz",isPreview:!1},t.childContextTypes={onChange:Nn.func,__group__:Nn.bool,isButton:Nn.bool,selectedValue:Nn.oneOfType([Nn.string,Nn.number,Nn.bool]),disabled:Nn.bool},t.displayName="RadioGroup",t}(b.Component);const xh=lr(Ch);const Eh=pc(yh,{Group:sc.config(xh,{transform:function(e,t){if("itemDirection"in e){t("itemDirection","direction","Radio");var n=e.itemDirection,r=Sn(e,["itemDirection"]);e=Fn({direction:n},r)}return e}})});var kh={},Fh=Io.bindCtx,Sh=Ho.pickOthers,Qh=function(e){function t(t){var n=e.call(this,t)||this;return Fh(n,["stopPropagation","handleKeyDown","handleClick"]),n.id=Ro.escapeForId("checkable-item-".concat(t.id||t._key)),n}return kn(t,e),t.prototype.stopPropagation=function(e){e.stopPropagation()},t.prototype.handleCheck=function(e){var t=this.props,n=t.checkType,r=t.checked,o=t.onChange;"radio"===n&&r||o(!r,e)},t.prototype.handleKeyDown=function(e){e.keyCode!==Lo.SPACE||this.props.checkDisabled||this.handleCheck(e),this.props.onKeyDown&&this.props.onKeyDown(e)},t.prototype.handleClick=function(e){this.handleCheck(e),this.props.onClick&&this.props.onClick(e)},t.prototype.renderCheck=function(){var e=this.props,t=e.root,n=e.checked,r=e.indeterminate,o=e.disabled,i=e.checkType,a=e.checkDisabled,A=e.onChange,s=t.props.labelToggleChecked,l="radio"===i?Eh:hh,c={tabIndex:-1,checked:n,disabled:o||a};return"checkbox"===i&&(c.indeterminate=r),s||(c.onChange=A,c.onClick=this.stopPropagation),b.createElement(l,Fn({"aria-labelledby":this.id},c))},t.prototype.render=function(){var e,n=this.props,r=n._key,o=n.root,i=n.checked,a=n.disabled,A=n.onClick,s=n.helper,l=n.children,c=o.props,u=c.prefix,d=c.labelToggleChecked,p=Sh(t.propTypes,this.props),h=Fn({_key:r,root:o,disabled:a,type:"item",onClick:A,onKeyDown:this.handleKeyDown},p);return d&&!a&&(h.onClick=this.handleClick),"string"==typeof l&&(e=l),b.createElement(kp,Fn({"aria-checked":i,title:e},h),this.renderCheck(),b.createElement("span",{className:"".concat(u,"menu-item-text"),id:this.id},l),s?b.createElement("div",{className:"".concat(u,"menu-item-helper")},s):null)},t.propTypes={_key:Nn.string,root:Nn.object,disabled:Nn.bool,inlineIndent:Nn.number,checked:Nn.bool,indeterminate:Nn.bool,onChange:Nn.func,checkType:Nn.oneOf(["checkbox","radio"]),checkDisabled:Nn.bool,helper:Nn.node,children:Nn.node,onKeyDown:Nn.func,onClick:Nn.func,id:Nn.string},t.defaultProps={disabled:!1,checked:!1,indeterminate:!1,checkType:"checkbox",checkDisabled:!1,onChange:kh},t}(b.Component);const Uh=Qh;var Oh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e=this.props,t=e.checkboxDisabled,n=Sn(e,["checkboxDisabled"]);return b.createElement(Uh,Fn({role:"menuitemcheckbox",checkType:"checkbox",checkDisabled:t},n))},t.menuChildType="item",t.propTypes={checked:Nn.bool,indeterminate:Nn.bool,disabled:Nn.bool,onChange:Nn.func,helper:Nn.node,children:Nn.node,checkboxDisabled:Nn.bool},t.defaultProps={checked:!1,indeterminate:!1,disabled:!1,onChange:function(){},checkboxDisabled:!1},t}(b.Component);const Th=Oh;var Mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){return b.createElement(Uh,Fn({role:"menuitemradio",checkType:"radio"},this.props))},t.menuChildType="item",t.propTypes={checked:Nn.bool,disabled:Nn.bool,onChange:Nn.func,helper:Nn.node,children:Nn.node},t.defaultProps={checked:!1,disabled:!1,onChange:function(){}},t}(b.Component);const Ih=Mh;var Nh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e,t=this.props,n=t.root,r=t.className,o=t.label,i=t.children,a=t.parentMode,A=Sn(t,["root","className","label","children","parentMode"]),s=n.props.prefix,l=_n(((e={})["".concat(s,"menu-group-label")]=!0,e),r),c=i.map(function(e){var t;if("function"!=typeof e&&"object"!=typeof e)return e;var n=e.props.className,r=_n(((t={})["".concat(s,"menu-group-item")]=!0,t[n]=!!n,t));return b.cloneElement(e,{parentMode:a,className:r})});return Un([b.createElement(kp,Fn({key:"menu-group-label",className:l,replaceClassName:!0,root:n,parentMode:a},A),o)],Qn(c),!1)},t.menuChildType="group",t.propTypes={root:Nn.object,className:Nn.string,label:Nn.node,children:Nn.node,parentMode:Nn.oneOf(["inline","popup"])},t}(b.Component);const Hh=Nh;var _h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e=this.props,t=e.root,n=e.className;e.parentMode,e.parent;var r=Sn(e,["root","className","parentMode","parent"]),o=t.props.prefix,i=_n("".concat(o,"menu-divider"),n);return b.createElement("li",Fn({role:"separator",className:i},r))},t.menuChildType="divider",t.propTypes={root:Nn.object,className:Nn.string},t}(b.Component);const Ph=_h;var Dh,Lh=Io.bindCtx,Rh=sc.getContextProps,zh=sc.config(th),Kh=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOverlayClose=function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(!("docClick"===e&&n.popupNodes.some(function(e){return e.contains(t.target)}))){n.close();var i=n.props.overlayProps;i&&i.onRequestClose&&i.onRequestClose.apply(i,Un([e,t],Qn(r),!1))}},n.handleItemClick=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];n.close(),n.props.onItemClick&&(e=n.props).onItemClick.apply(e,Un([],Qn(t),!1))},n.state={visible:!0},Lh(n,["handleOverlayClose","handleOverlayOpen","handleItemClick","getOverlay"]),n}return kn(t,e),t.prototype.getOverlay=function(e){this.overlay=e},t.prototype.close=function(){this.setState({visible:!1}),Dh=null},t.prototype.handleOverlayOpen=function(){this.popupNodes=this.overlay.getInstance().getContent().getInstance().popupNodes;var e=this.props.overlayProps;e&&e.onOpen&&e.onOpen()},t.prototype.render=function(){var e=this.props,t=e.className,n=e.popupClassName,r=e.target,o=e.align,i=e.offset,a=e.afterClose,A=e.overlayProps,s=void 0===A?{}:A,l=Sn(e,["className","popupClassName","target","align","offset","afterClose","overlayProps"]),c=Rh(this.props),u=c.prefix,d=this.state.visible,p=Fn(Fn(Fn({},c),s),{target:r,align:o,offset:i,afterClose:a,visible:d,onRequestClose:this.handleOverlayClose,onOpen:this.handleOverlayOpen,ref:this.getOverlay}),h=Fn(Fn(Fn(Fn({},c),{triggerType:"hover"}),l),{className:_n("".concat(u,"context"),t),popupClassName:_n("".concat(u,"context"),n),onItemClick:this.handleItemClick});return p.rtl=!1,b.createElement(Vd,Fn({},p),b.createElement(zh,Fn({},h)))},t.propTypes={className:Nn.string,popupClassName:Nn.string,target:Nn.any,align:Nn.string,offset:Nn.array,overlayProps:Nn.object,afterClose:Nn.func,mode:Nn.oneOf(["inline","popup"]),onOpen:Nn.func,onItemClick:Nn.func},t.defaultProps={prefix:"next-",align:"tl tl",mode:"popup"},t}(b.Component);var jh=pc(th,{SubMenu:$p,Item:Up,CheckboxItem:Th,RadioItem:Ih,PopupItem:zp,Group:Hh,Divider:Ph,create:function(e){Dh&&Dh.destroy();var t=e.afterClose,n=Sn(e,["afterClose"]),r=document.createElement("div");document.body.appendChild(r);var o,i=sc.getContext();return w.render(b.createElement(sc,Fn({},i),b.createElement(Kh,Fn({ref:function(e){o=e},afterClose:function(){w.unmountComponentAtNode(r),document.body.removeChild(r),t&&t()}},n))),r),Dh={destroy:function(){o&&o.close()}}}});const Vh=sc.config(jh,{transform:function(e,t){if("indentSize"in e){t("indentSize","inlineIndent","Menu");var n=e.indentSize,r=Sn(e,["indentSize"]);e=Fn({inlineIndent:n},r)}if("onDeselect"in e&&(t("onDeselect","onSelect","Menu"),e.onDeselect)){var o=e.onDeselect,i=e.onSelect;r=Sn(e,["onDeselect","onSelect"]);e=Fn({onSelect:function(e,t,n){n.select||o(n.key),i&&i(e,t,n)}},r)}return e}});function $h(e){return{large:"small",medium:"xs",small:"xs"}[e]}var Gh=function(e){function t(){var t=e.apply(this,Un([],Qn(arguments),!1))||this;return t.onMouseUp=function(e){t.button.blur(),t.props.onMouseUp&&t.props.onMouseUp(e)},t.buttonRefHandler=function(e){t.button=e},t}return kn(t,e),t.prototype.render=function(){var e,n,r=this.props,o=r.prefix,i=r.className,a=r.type,A=r.size,s=r.htmlType,l=r.loading,c=r.text,u=r.warning,d=r.ghost,p=r.component,h=r.iconSize,f=r.icons,m=r.disabled,g=r.onClick,y=r.children,v=r.rtl,w=Sn(r,["prefix","className","type","size","htmlType","loading","text","warning","ghost","component","iconSize","icons","disabled","onClick","children","rtl"]),B=["light","dark"].indexOf(d)>=0?d:"dark",C=((e={})["".concat(o,"btn")]=!0,e["".concat(o).concat(A)]=A,e["".concat(o,"btn-").concat(a)]=a&&!d,e["".concat(o,"btn-text")]=c,e["".concat(o,"btn-warning")]=u,e["".concat(o,"btn-loading")]=l,e["".concat(o,"btn-ghost")]=d,e["".concat(o,"btn-").concat(B)]=d,e[i]=i,e),x=null;if(f&&f.loading&&b.isValidElement(f.loading)){l&&(delete C["".concat(o,"btn-loading")],C["".concat(o,"btn-custom-loading")]=!0);var E=h||$h(A);x=b.cloneElement(f.loading,{className:_n((n={},n["".concat(o,"btn-custom-loading-icon")]=!0,n.show=l,n)),size:E})}var k=b.Children.count(y),F=b.Children.map(y,function(e,t){var n;if(e&&["function","object"].indexOf(typeof e.type)>-1&&"icon"===e.type._typeMark){var r=_n(((n={})["".concat(o,"btn-icon")]=!h,n["".concat(o,"btn-icon-size")]=h,n["".concat(o,"icon-first")]=k>1&&0===t,n["".concat(o,"icon-last")]=k>1&&t===k-1,n["".concat(o,"icon-alone")]=1===k,n[e.props.className]=!!e.props.className,n));return"size"in e.props&&No.warning('The size of Icon will not take effect, when Icon is the [direct child element] of Button(<Button><Icon size="'.concat(e.props.size,'" /></Button>), use <Button iconSize="').concat(e.props.size,'"> or <Button><div><Icon size="').concat(e.props.size,'" /></div></Button> instead of.')),b.cloneElement(e,{className:r,size:h||$h(A)})}return b.isValidElement(e)?e:b.createElement("span",{className:"".concat(o,"btn-helper")},e)}),S=p,Q=Fn(Fn({},Ho.pickOthers(Object.keys(t.propTypes),w)),{type:s,disabled:m,onClick:g,className:_n(C)});return"button"!==S&&(delete Q.type,Q.disabled&&(delete Q.onClick,"href"in Q&&Q.href&&delete Q.href)),b.createElement(S,Fn({},Q,{dir:v?"rtl":void 0,onMouseUp:this.onMouseUp,ref:this.buttonRefHandler}),x,F)},t.displayName="Button",t.propTypes=Fn(Fn({},sc.propTypes),{prefix:Nn.string,rtl:Nn.bool,type:Nn.oneOf(["primary","secondary","normal"]),size:Nn.oneOf(["small","medium","large"]),icons:Nn.shape({loading:Nn.node}),iconSize:Nn.oneOfType([Nn.oneOf(["xxs","xs","small","medium","large","xl","xxl","xxxl","inherit"]),Nn.number]),htmlType:Nn.oneOf(["submit","reset","button"]),component:Nn.oneOf(["button","a","div","span"]),loading:Nn.bool,ghost:Nn.oneOf([!0,!1,"light","dark"]),text:Nn.bool,warning:Nn.bool,disabled:Nn.bool,onClick:Nn.func,className:Nn.string,onMouseUp:Nn.func,children:Nn.node}),t.defaultProps={prefix:"next-",type:"normal",size:"medium",icons:{},htmlType:"button",component:"button",loading:!1,ghost:!1,text:!1,warning:!1,disabled:!1,onClick:function(){}},t}(b.Component);const Wh=Gh;var Yh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e,t=this.props,n=t.prefix,r=t.className,o=t.size,i=t.children,a=t.rtl,A=Sn(t,["prefix","className","size","children","rtl"]),s=_n(((e={})["".concat(n,"btn-group")]=!0,e[r]=r,e)),l=b.Children.map(i,function(e){if(e)return b.cloneElement(e,{size:o})});return a&&(A.dir="rtl"),b.createElement("div",Fn({},A,{className:s}),l)},t.displayName="ButtonGroup",t.propTypes=Fn(Fn({},sc.propTypes),{rtl:Nn.bool,prefix:Nn.string,size:Nn.string,className:Nn.string,children:Nn.node}),t.defaultProps={prefix:"next-",size:"medium"},t}(b.Component);const qh=sc.config(Yh);var Xh=pc(Wh,{Group:qh});const Jh=sc.config(Xh,{transform:function(e,t){if("shape"in e){t("shape","text | warning | ghost","Button");var n=e.shape,r=e.type,o=Sn(e,["shape","type"]),i=r;("light"===r||"dark"===r||"secondary"===r&&"warning"===n)&&(i="normal");var a=void 0;return"ghost"===n&&(a={primary:"dark",secondary:"dark",normal:"light",dark:"dark",light:"light"}[r||Wh.defaultProps.type]),Fn({type:i,ghost:a,text:"text"===n,warning:"warning"===n},o)}return e}});var Zh=function(e){function t(){var t=e.apply(this,Un([],Qn(arguments),!1))||this;return t.handleCompositionStart=function(e){t.setState({composition:!0}),t.props.onCompositionStart(e)},t.handleCompositionEnd=function(e){t.setState({composition:!1}),t.props.onCompositionEnd(e);var n=e.target.value;t.props.onChange(n,e)},t.handleKeyDownFromClear=function(e){13===e.keyCode&&t.onClear(e)},t.saveRef=function(e){t.inputRef=e},t}return kn(t,e),t.getDerivedStateFromProps=function(e,t){if("value"in e&&e.value!==t.value&&!t.composition){var n=e.value;return{value:null==n?"":n}}return null},t.prototype.ieHack=function(e){return e},t.prototype.onChange=function(e){"stopPropagation"in e?e.stopPropagation():"cancelBubble"in e&&e.cancelBubble();var t=e.target.value;this.props.trim&&(t=t.trim()),t=this.ieHack(t),"value"in this.props&&!this.state.composition||this.setState({value:t}),this.state.composition||(t&&"number"===this.props.htmlType&&(t=Number(t)),this.props.onChange(t,e))},t.prototype.getValueLength=function(e){return 0},t.prototype.onKeyDown=function(e){var t=e.target.value,n=this.props.maxLength,r=n>0&&t?this.getValueLength(t):0,o={};this.props.trim&&32===e.keyCode&&(o.beTrimed=!0),n>0&&(r>n+1||(r===n||r===n+1)&&8!==e.keyCode&&46!==e.keyCode)&&(o.overMaxLength=!0),this.props.onKeyDown(e,o)},t.prototype.onFocus=function(e){this.setState({focus:!0}),this.props.onFocus(e)},t.prototype.onBlur=function(e){this.setState({focus:!1}),this.props.onBlur(e)},t.prototype.onClear=function(e){this.props.disabled||("value"in this.props||this.setState({value:""}),this.props.onChange("",e,"clear"),this.focus())},t.prototype.renderLength=function(){var e,t=this.props,n=t.maxLength,r=t.showLimitHint,o=t.prefix,i=t.rtl,a=n>0&&this.state.value?this.getValueLength(this.state.value):0,A=_n(((e={})["".concat(o,"input-len")]=!0,e["".concat(o,"error")]=a>n,e)),s=i?"".concat(n,"/").concat(a):"".concat(a,"/").concat(n);return n&&r?b.createElement("span",{className:A},s):null},t.prototype.getClass=function(){var e,t=this.props,n=t.disabled,r=t.state,o=t.prefix;return _n(((e={})["".concat(o,"input")]=!0,e["".concat(o,"disabled")]=!!n,e["".concat(o,"error")]="error"===r,e["".concat(o,"warning")]="warning"===r,e["".concat(o,"focus")]=this.state.focus,e))},t.prototype.getProps=function(){var e=this.props,t=e.placeholder,n=e.inputStyle,r=e.disabled,o=e.readOnly,i=e.cutString,a=e.maxLength,A=e.name,s=e.onCompositionStart,l=e.onCompositionEnd,c={style:n,placeholder:t,disabled:r,readOnly:o,name:A,maxLength:i?a:void 0,value:this.state.value,onChange:this.onChange.bind(this),onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onCompositionStart:s,onCompositionEnd:l};return r&&(c["aria-disabled"]=r),c},t.prototype.getInputNode=function(){return this.inputRef},t.prototype.focus=function(e,t,n){void 0===n&&(n=!1),this.inputRef.focus({preventScroll:n}),"number"==typeof e&&(this.inputRef.selectionStart=e),"number"==typeof t&&(this.inputRef.selectionEnd=t)},t.propTypes=Fn(Fn({},sc.propTypes),{value:Nn.oneOfType([Nn.string,Nn.number]),defaultValue:Nn.oneOfType([Nn.string,Nn.number]),onChange:Nn.func,onKeyDown:Nn.func,disabled:Nn.bool,maxLength:Nn.number,showLimitHint:Nn.bool,cutString:Nn.bool,readOnly:Nn.bool,trim:Nn.bool,placeholder:Nn.string,onFocus:Nn.func,onBlur:Nn.func,getValueLength:Nn.func,inputStyle:Nn.object,className:Nn.string,style:Nn.object,htmlType:Nn.string,name:Nn.string,rtl:Nn.bool,state:Nn.oneOf(["error","loading","success","warning"]),locale:Nn.object,isPreview:Nn.bool,renderPreview:Nn.func,size:Nn.oneOf(["small","medium","large"]),composition:Nn.bool,onCompositionStart:Nn.func,onCompositionEnd:Nn.func}),t.defaultProps={disabled:!1,prefix:"next-",size:"medium",maxLength:void 0,showLimitHint:!1,cutString:!0,readOnly:!1,isPreview:!1,trim:!1,composition:!1,onFocus:Io.noop,onBlur:Io.noop,onChange:Io.noop,onKeyDown:Io.noop,getValueLength:Io.noop,onCompositionStart:Io.noop,onCompositionEnd:Io.noop,locale:Xs.Input},t}(b.Component);const ef=lr(Zh);var tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e,t,n,r=this.props,o=r.className,i=r.style,a=r.children,A=r.prefix,s=r.addonBefore,l=r.addonAfter,c=r.addonBeforeClassName,u=r.addonAfterClassName,d=r.rtl,p=r.disabled,h=Sn(r,["className","style","children","prefix","addonBefore","addonAfter","addonBeforeClassName","addonAfterClassName","rtl","disabled"]),f=_n(((e={})["".concat(A,"input-group")]=!0,e["".concat(A,"disabled")]=p,e[o]=!!o,e)),m="".concat(A,"input-group-addon"),g=_n(m,((t={})["".concat(A,"before")]=!0,t[c]=c,t)),y=_n(m,((n={})["".concat(A,"after")]=!0,n[u]=u,n)),v=s?b.createElement("span",{className:g},s):null,w=l?b.createElement("span",{className:y},l):null;return b.createElement("span",Fn({},h,{disabled:p,dir:d?"rtl":void 0,className:f,style:i}),v,a,w)},t.displayName="Group",t.propTypes={prefix:Nn.string,className:Nn.string,style:Nn.object,children:Nn.node,addonBefore:Nn.node,addonBeforeClassName:Nn.string,addonAfter:Nn.node,addonAfterClassName:Nn.string,rtl:Nn.bool},t.defaultProps={prefix:"next-"},t}(b.Component);const nf=sc.config(tf);function rf(e){e.preventDefault()}var of=function(e){function t(t){var n,r=e.call(this,t)||this;return r.handleKeyDown=function(e){13===e.keyCode&&r.props.onPressEnter(e),r.onKeyDown(e)},n="value"in t?t.value:t.defaultValue,r.state={value:void 0===n?"":n},r}return kn(t,e),t.prototype.getValueLength=function(e){var t="".concat(e),n=this.props.getValueLength(t);return"number"!=typeof n&&(n=t.length),n},t.prototype.renderControl=function(){var e,t=this,n=this.props,r=n.hasClear,o=n.readOnly,i=n.state,a=n.prefix,A=n.hint,s=n.extra,l=n.locale,c=n.disabled,u=n.hoverShowClear,d=this.renderLength(),p=null;"success"===i?p=b.createElement(Xd,{type:"success-filling",className:"".concat(a,"input-success-icon")}):"loading"===i?p=b.createElement(Xd,{type:"loading",className:"".concat(a,"input-loading-icon")}):"warning"===i&&(p=b.createElement(Xd,{type:"warning",className:"".concat(a,"input-warning-icon")}));var h=null,f=r&&!o&&!!"".concat(this.state.value)&&!c;if(A||f){var m=null;if(A)m="string"==typeof A?b.createElement(Xd,{type:A,className:"".concat(a,"input-hint")}):b.isValidElement(A)?b.cloneElement(A,{className:_n(A.props.className,"".concat(a,"input-hint"))}):A;else{var g=_n(((e={})["".concat(a,"input-hint")]=!0,e["".concat(a,"input-clear-icon")]=!0,e["".concat(a,"input-hover-show")]=u,e));m=b.createElement(Xd,{type:"delete-filling",role:"button",tabIndex:0,className:g,"aria-label":l.clear,onClick:this.onClear.bind(this),onMouseDown:rf,onKeyDown:this.handleKeyDownFromClear})}h=b.createElement("span",{className:"".concat(a,"input-hint-wrap")},r&&A?b.createElement(Xd,{type:"delete-filling",role:"button",tabIndex:0,className:"".concat(a,"input-clear ").concat(a,"input-clear-icon"),"aria-label":l.clear,onClick:this.onClear.bind(this),onMouseDown:rf,onKeyDown:this.handleKeyDownFromClear}):null,m)}return"loading"===i&&(h=null),h||d||p||s?b.createElement("span",{onClick:function(){return t.focus()},className:"".concat(a,"input-control")},h,d,p,s):null},t.prototype.renderLabel=function(){var e=this.props,t=e.label,n=e.prefix,r=e.id;return t?b.createElement("label",{className:"".concat(n,"input-label"),htmlFor:r},t):null},t.prototype.renderInner=function(e,t){return e?b.createElement("span",{className:t},e):null},t.prototype.render=function(){var e,n,r,o,i,a,A,s=this.props,l=s.size,c=s.htmlType,u=s.htmlSize,d=s.autoComplete,p=s.autoFocus,h=s.disabled,f=s.style,m=s.innerBefore,g=s.innerAfter,y=s.innerBeforeClassName,v=s.innerAfterClassName,w=s.className,B=s.hasBorder,C=s.prefix,x=s.isPreview,E=s.renderPreview,k=s.addonBefore,F=s.addonAfter,S=s.addonTextBefore,Q=s.addonTextAfter,U=s.inputRender,O=s.rtl,T=s.composition,M=k||F||S||Q,I=_n(this.getClass(),((e={})["".concat(C).concat(l)]=!0,e["".concat(C,"hidden")]="hidden"===this.props.htmlType,e["".concat(C,"noborder")]=!B||"file"===this.props.htmlType,e["".concat(C,"input-group-auto-width")]=M,e["".concat(C,"disabled")]=h,e[w]=!!w&&!M,e)),N="".concat(C,"input-inner"),H=_n(((n={})[N]=!0,n["".concat(C,"before")]=!0,n[y]=y,n)),_=_n(((r={})[N]=!0,r["".concat(C,"after")]=!0,r["".concat(C,"input-inner-text")]="string"==typeof g,r[v]=v,r)),P=_n(((o={})["".concat(C,"form-preview")]=!0,o[w]=!!w,o)),D=this.getProps(),L=Ho.pickAttrsWith(this.props,"data-"),R=Ho.pickOthers(Object.assign({},L,t.propTypes),this.props);if(x){var z=D.value,K=this.props.label;return"function"==typeof E?b.createElement("div",Fn({},R,{className:P}),E(z,this.props)):b.createElement("div",Fn({},R,{className:P}),k||S,K,m,z,g,F||Q)}var j={};T&&(j.onCompositionStart=this.handleCompositionStart,j.onCompositionEnd=this.handleCompositionEnd);var V=b.createElement("input",Fn({},R,D,j,{height:"100%",type:c,size:u,autoFocus:p,autoComplete:d,onKeyDown:this.handleKeyDown,ref:this.saveRef})),$=b.createElement("span",Fn({},L,{dir:O?"rtl":void 0,className:I,style:M?void 0:f}),this.renderLabel(),this.renderInner(m,H),U(V),this.renderInner(g,_),this.renderControl()),G=_n(((i={})["".concat(C,"input-group-text")]=!0,i["".concat(C).concat(l)]=!!l,i["".concat(C,"disabled")]=h,i)),W=_n(((a={})[G]=S,a)),Y=_n(((A={})[G]=Q,A));return M?b.createElement(nf,Fn({},L,{prefix:C,className:w,style:f,disabled:h,addonBefore:k||S,addonBeforeClassName:W,addonAfter:F||Q,addonAfterClassName:Y}),$):$},t.displayName="Input",t.getDerivedStateFromProps=ef.getDerivedStateFromProps,t.propTypes=Fn(Fn({},ef.propTypes),{label:Nn.node,hasClear:Nn.bool,hasBorder:Nn.bool,state:Nn.oneOf(["error","loading","success","warning"]),onPressEnter:Nn.func,htmlType:Nn.string,htmlSize:Nn.string,hint:Nn.oneOfType([Nn.string,Nn.node]),innerBefore:Nn.node,innerAfter:Nn.node,addonBefore:Nn.node,addonAfter:Nn.node,addonTextBefore:Nn.node,addonTextAfter:Nn.node,autoComplete:Nn.string,autoFocus:Nn.bool,inputRender:Nn.func,extra:Nn.node,innerBeforeClassName:Nn.string,innerAfterClassName:Nn.string,isPreview:Nn.bool,renderPreview:Nn.func,hoverShowClear:Nn.bool}),t.defaultProps=Fn(Fn({},ef.defaultProps),{autoComplete:"off",hasBorder:!0,isPreview:!1,hoverShowClear:!1,onPressEnter:Io.noop,inputRender:function(e){return e}}),t}(ef);const af=of;function Af(e){e.preventDefault()}var sf=function(e){function t(){var t=e.apply(this,Un([],Qn(arguments),!1))||this;return t.state={hint:"eye-close",htmlType:"password"},t.toggleEye=function(e){if(e.preventDefault(),!t.props.disabled){var n="eye"===t.state.hint;t.setState({hint:n?"eye-close":"eye",htmlType:n||!t.props.showToggle?"password":"text"})}},t}return kn(t,e),t.prototype.render=function(){var e=this.props,t=e.showToggle,n=Sn(e,["showToggle"]),r=this.state,o=r.hint,i=r.htmlType,a=t?b.createElement(Xd,{type:o,onClick:this.toggleEye,onMouseDown:Af}):null;return b.createElement(af,Fn({},n,{extra:a,htmlType:i}))},t.displayName="Password",t.getDerivedStateFromProps=af.getDerivedStateFromProps,t.propTypes=Fn(Fn({},af.propTypes),{showToggle:Nn.bool}),t.defaultProps=Fn(Fn({},af.defaultProps),{showToggle:!0}),t}(af);const lf=sf;var cf=!("undefined"==typeof navigator||!navigator||!navigator.userAgent)&&navigator.userAgent.match(/^((?!chrome|android|windows).)*safari/i),uf={visibility:"hidden",position:"absolute",zIndex:"-1000",top:"-1000px",overflowY:"hidden",left:0,right:0},df=function(e){function t(t){var n,r=e.call(this,t)||this;return r._resizeTextArea=function(e){var t,n;r.nextFrameActionId&&(t=r.nextFrameActionId,window.cancelAnimationFrame?window.cancelAnimationFrame(t):window.clearTimeout(t)),r.nextFrameActionId=(n=function(){var t=r._getHeight(e),n=r.state.maxHeight?r.state.maxHeight:1/0;r.setState({height:r._getHeight(e),overflowY:t<=n?"hidden":void 0})},window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,1))},n="value"in t?t.value:t.defaultValue,r.state={value:null==n?"":n},r}return kn(t,e),t.prototype.componentDidMount=function(){var e=this.props.autoHeight;e&&("object"==typeof e?this.setState(this._getMinMaxHeight(e,this.state.value)):this.setState({height:this._getHeight(this.state.value),overflowY:"hidden"}))},t.prototype.componentDidUpdate=function(e){!this.props.autoHeight||this.props.value===e.value&&this.props.isPreview===e.isPreview||this._resizeTextArea(this.props.value)},t.prototype._getMinMaxHeight=function(e,t){var n=e.minRows,r=e.maxRows,o=w.findDOMNode(this.helpRef);if(!o)return{};o.setAttribute("rows",n);var i=o.clientHeight;o.setAttribute("rows",r);var a=o.clientHeight;o.setAttribute("rows","1");var A=this._getHeight(t);return{minHeight:i,maxHeight:a,height:A,overflowY:A<=a?"hidden":void 0}},t.prototype._getHeight=function(e){var t=w.findDOMNode(this.helpRef);return t?(t.value=e,t.scrollHeight):0},t.prototype.ieHack=function(e){if(9===To.ieVersion&&this.props.maxLength){var t=parseInt(this.props.maxLength),n=e;this.getValueLength(n)>t&&this.props.cutString&&(n=(n=(n=n.replace(/\n/g,"\n\n")).substr(0,t)).replace(/\n\n/g,"\n"))}return this.props.autoHeight&&this._resizeTextArea(e),e},t.prototype.getValueLength=function(e){var t=this.props,n=t.maxLength,r=t.cutString,o="".concat(e),i=this.props.getValueLength(o);return"number"!=typeof i&&(i=o.length),(To.ieVersion||cf)&&(i=i+o.split("\n").length-1)>n&&r&&(i=n),i},t.prototype.saveTextAreaRef=function(e){this.inputRef=e},t.prototype.saveHelpRef=function(e){this.helpRef=e},t.prototype.renderClear=function(){var e,t=this.props,n=t.hasClear,r=t.readOnly,o=t.state,i=t.prefix,a=t.disabled,A=t.locale,s=null,l=n&&!r&&!!"".concat(this.state.value)&&!a,c=_n(((e={})["".concat(i,"input-textarea-clear")]=!0,e));return s=l?b.createElement("span",{className:c,onClick:this.onClear.bind(this),onKeyDown:this.handleKeyDownFromClear}," ",A.clear):null,"loading"===o&&(s=null),s},t.prototype.renderControl=function(){var e=this,t=this.props.prefix,n=this.renderLength(),r=this.renderClear(),o=Boolean(n&&r),i=_n("".concat(t,"input-control"),"".concat(t,"input-textarea-control"));return n||r?b.createElement("span",{onClick:function(){return e.focus()},className:i},n,o&&b.createElement("span",{className:"".concat(t,"input-textarea-control-line")}),r):null},t.prototype.render=function(){var e,n,r=this.props,o=r.rows,i=r.style,a=r.className,A=r.autoHeight,s=r.isPreview,l=r.renderPreview,c=r.prefix,u=r.rtl,d=r.hasBorder,p=r.size,h=r.composition,f=_n(this.getClass(),((e={})["".concat(c).concat(p)]="large"===p||"small"===p,e["".concat(c,"input-textarea")]=!0,e["".concat(c,"noborder")]=!d,e[a]=!!a,e)),m=this.getProps(),g=Ho.pickAttrsWith(this.props,"data-"),y=Ho.pickOthers(Object.assign({},g,t.propTypes),this.props),v=Fn(Fn({},m.style),{height:this.state.height,minHeight:this.state.minHeight,maxHeight:this.state.maxHeight,overflowY:this.state.overflowY}),w=_n(((n={})["".concat(c,"input-textarea")]=!0,n["".concat(c,"form-preview")]=!0,n[a]=!!a,n)),B=A?Fn(Fn({},i),{position:"relative"}):i;if(s){var C=m.value;return"renderPreview"in this.props?b.createElement("div",Fn({},y,{className:w}),l(C,this.props)):b.createElement("div",Fn({},y,{className:w}),C.split("\n").map(function(e,t){return b.createElement("p",{key:"p-".concat(t)},e)}))}var x={};return h&&(x.onCompositionStart=this.handleCompositionStart,x.onCompositionEnd=this.handleCompositionEnd),b.createElement("span",Fn({className:f,style:B,dir:u?"rtl":void 0},g),b.createElement("textarea",Fn({},y,m,x,{"data-real":!0,rows:o,style:v,ref:this.saveRef.bind(this),onKeyDown:this.onKeyDown.bind(this)})),A?b.createElement("textarea",{"data-fake":!0,ref:this.saveHelpRef.bind(this),style:Fn(Fn({},m.style),uf),rows:1}):null,this.renderControl())},t.displayName="TextArea",t.getDerivedStateFromProps=ef.getDerivedStateFromProps,t.propTypes=Fn(Fn({},ef.propTypes),{hasBorder:Nn.bool,state:Nn.oneOf(["error","warning"]),autoHeight:Nn.oneOfType([Nn.bool,Nn.object]),rows:Nn.number,isPreview:Nn.bool,renderPreview:Nn.func,locale:Nn.object}),t.defaultProps=Fn(Fn({},ef.defaultProps),{hasBorder:!0,isPreview:!1,rows:4,autoHeight:!1,locale:Xs.TextArea}),t}(ef);const pf=df;var hf=pc(af,{Password:sc.config(lf,{exportNames:["getInputNode","focus"],transform:function(e,t){if("hasLimitHint"in e){t("hasLimitHint","showLimitHint","Input");var n=e.hasLimitHint,r=Sn(e,["hasLimitHint"]);e=Fn({showLimitHint:n},r)}return e}}),TextArea:sc.config(pf,{exportNames:["getInputNode","focus"],transform:function(e,t){if("hasLimitHint"in e){t("hasLimitHint","showLimitHint","Input");var n=e.hasLimitHint,r=Sn(e,["hasLimitHint"]);e=Fn({showLimitHint:n},r)}return e}}),Group:nf});const ff=sc.config(hf,{exportNames:["getInputNode","focus"],transform:function(e,t){if("hasLimitHint"in e){t("hasLimitHint","showLimitHint","Input");var n=e.hasLimitHint,r=Sn(e,["hasLimitHint"]);e=Fn({showLimitHint:n},r)}return e}});var mf=Io.makeChain,gf=Ho.pickOthers,yf=function(){},vf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.componentDidUpdate=function(){var e=this.props,t=e.height,n=e.style,r=e.v2,o=n,i=o.maxHeight,a=o.height,A=void 0===a?i||t:a;if(this.bodyNode&&r&&A&&"auto"!==A){var s={},l=0,c=0;this.headerNode&&(l=this.headerNode.getBoundingClientRect().height),this.footerNode&&(c=this.footerNode.getBoundingClientRect().height);var u=l+c,d=A;A&&"string"==typeof A&&(d.match(/calc|vh/)?(s.maxHeight="calc(".concat(A," - ").concat(u,"px)"),s.overflowY="auto"):d=parseInt(A)),"number"==typeof d&&d>u&&(s.maxHeight=d-u,s.overflowY="auto"),Oo.setStyle(this.bodyNode,s)}},t.prototype.getNode=function(e,t){this[e]=t},t.prototype.renderHeader=function(){var e=this.props,t=e.prefix,n=e.title;return n?(this.titleId=Do("dialog-title-"),b.createElement("div",{className:"".concat(t,"dialog-header"),id:this.titleId,ref:this.getNode.bind(this,"headerNode"),role:"heading","aria-level":1},n)):null},t.prototype.renderBody=function(){var e,t=this.props,n=t.prefix,r=t.children,o=t.footer,i=t.noPadding;return r?b.createElement("div",{className:_n("".concat(n,"dialog-body"),(e={},e["".concat(n,"dialog-body-no-footer")]=!1===o,e["".concat(n,"dialog-body-no-padding")]=!0===i,e)),ref:this.getNode.bind(this,"bodyNode")},r):null},t.prototype.renderFooter=function(){var e,t=this,n=this.props,r=n.prefix,o=n.footer,i=n.footerAlign,a=n.footerActions,A=n.locale,s=n.height;if(!1===o)return null;var l=_n(((e={})["".concat(r,"dialog-footer")]=!0,e["".concat(r,"align-").concat(i)]=!0,e["".concat(r,"dialog-footer-fixed-height")]=!!s,e)),c=!0!==o&&o?o:a.map(function(e){var n=t.props["".concat(e,"Props")],o=Fn(Fn({},n),{prefix:r,className:_n("".concat(r,"dialog-btn"),n.className),onClick:mf(t.props["on".concat(e[0].toUpperCase()+e.slice(1))],n.onClick),children:n.children||A[e]});return"ok"===e&&(o.type="primary"),b.createElement(Jh,Fn({key:e},o))});return b.createElement("div",{className:l,ref:this.getNode.bind(this,"footerNode")},c)},t.prototype.renderCloseLink=function(){var e=this.props,t=e.prefix,n=e.closeable,r=e.onClose,o=e.locale,i=e.closeIcon;return n?b.createElement("a",{role:"button","aria-label":o.close,className:"".concat(t,"dialog-close"),onClick:r},i||b.createElement(Xd,{className:"".concat(t,"dialog-close-icon"),type:"close"})):null},t.prototype.render=function(){var e,n=this.props,r=n.prefix,o=n.className,i=n.closeable,a=n.title,A=n.role,s=n.rtl,l=gf(t.propTypes,this.props),c=_n(((e={})["".concat(r,"dialog")]=!0,e["".concat(r,"closeable")]=i,e[o]=!!o,e)),u=this.renderHeader(),d=this.renderBody(),p=this.renderFooter(),h=this.renderCloseLink(),f={role:A,"aria-modal":"true"};return a&&(f["aria-labelledby"]=this.titleId),l.style=Object.assign({},Ho.pickProps(["height","maxHeight","width"],this.props),l.style),b.createElement("div",Fn({},f,{className:c},l,{dir:s?"rtl":void 0}),u,d,p,h)},t.propTypes={prefix:Nn.string,className:Nn.string,title:Nn.node,children:Nn.node,footer:Nn.oneOfType([Nn.bool,Nn.node]),footerAlign:Nn.oneOf(["left","center","right"]),footerActions:Nn.array,onOk:Nn.func,onCancel:Nn.func,okProps:Nn.object,cancelProps:Nn.object,closeable:Nn.bool,onClose:Nn.func,locale:Nn.object,role:Nn.string,rtl:Nn.bool,width:Nn.oneOfType([Nn.number,Nn.string]),height:Nn.oneOfType([Nn.number,Nn.string]),maxHeight:Nn.oneOfType([Nn.number,Nn.string]),v2:Nn.bool,closeIcon:Nn.node,pure:Nn.bool,noPadding:Nn.bool},t.defaultProps={prefix:"next-",footerAlign:"right",footerActions:["ok","cancel"],onOk:yf,onCancel:yf,okProps:{},cancelProps:{},closeable:!0,onClose:yf,locale:Xs.Dialog,role:"dialog"},t}(b.Component);const bf=vf;var wf=function(){},Bf=Po.limitTabRange,Cf=Io.bindCtx,xf=Ho.pickOthers,Ef=Oo.getStyle,kf=Oo.setStyle;function Ff(e,t){var n=Ef(e,"boxSizing");return To.ieVersion&&function(e){return-1!==["width","height"].indexOf(e)}(t)&&"border-box"===n?parseFloat(e.getBoundingClientRect()[t].toFixed(1)):Ef(e,t)}var Sf=function(e){function t(t){var n=e.call(this,t)||this;return Cf(n,["onKeyDown","beforePosition","adjustPosition","getOverlayRef"]),n}return kn(t,e),t.prototype.componentDidMount=function(){Mo.on(document,"keydown",this.onKeyDown),this.useCSSToPosition()||this.adjustPosition()},t.prototype.componentWillUnmount=function(){Mo.off(document,"keydown",this.onKeyDown)},t.prototype.useCSSToPosition=function(){var e=this.props,t=e.align,n=e.isFullScreen;return"cc cc"===t&&n},t.prototype.onKeyDown=function(e){if(this.overlay){var t=this.getInnerNode();t&&Bf(t,e)}},t.prototype.beforePosition=function(){if(this.props.visible&&this.overlay){var e=this.getInner();if(e){var t=this.getInnerNode();this._lastDialogHeight!==Ff(t,"height")&&this.revertSize(e.bodyNode)}}},t.prototype.adjustPosition=function(){if(this.props.visible&&this.overlay){var e=this.getInner();if(e){var t=this.getInnerNode(),n=Ef(t,"top"),r=this.props.minMargin;n<r&&(n=r,kf(t,"top","".concat(r,"px")));var o=Ff(t,"height"),i=window.innerHeight||document.documentElement.clientHeight;i<o+2*n-1||this.props.height?this.adjustSize(e,t,Math.min(o,i-2*n)):this.revertSize(e.bodyNode),this._lastDialogHeight=o}}},t.prototype.adjustSize=function(e,t,n){var r=e.headerNode,o=e.bodyNode,i=Qn([r,e.footerNode].map(function(e){return e?Ff(e,"height"):0}),2),a=n-i[0]-i[1]-["padding-top","padding-bottom"].reduce(function(e,n){return e+Ef(t,n)},0);a<0&&(a=1),o&&(this.dialogBodyStyleMaxHeight=o.style.maxHeight,this.dialogBodyStyleOverflowY=o.style.overflowY,kf(o,{"max-height":"".concat(a,"px"),"overflow-y":"auto"}))},t.prototype.revertSize=function(e){kf(e,{"max-height":this.dialogBodyStyleMaxHeight,"overflow-y":this.dialogBodyStyleOverflowY})},t.prototype.mapcloseableToConfig=function(e){return["esc","close","mask"].reduce(function(t,n){var r=n.charAt(0).toUpperCase()+n.substr(1),o="boolean"==typeof e?e:e.split(",").indexOf(n)>-1;return"esc"===n||"mask"===n?t["canCloseBy".concat(r)]=o:t["canCloseBy".concat(r,"Click")]=o,t},{})},t.prototype.getOverlayRef=function(e){this.overlay=e},t.prototype.getInner=function(){return this.overlay.getInstance().getContent()},t.prototype.getInnerNode=function(){return this.overlay.getInstance().getContentNode()},t.prototype.renderInner=function(e){var n=this.props,r=n.prefix,o=n.className,i=n.title,a=n.children,A=n.footer,s=n.footerAlign,l=n.footerActions,c=n.onOk,u=n.onCancel,d=n.okProps,p=n.cancelProps,h=n.onClose,f=n.locale,m=n.visible,g=n.rtl,y=n.height,v=n.noPadding,w=xf(Object.keys(t.propTypes),this.props);return b.createElement(bf,Fn({prefix:r,className:o,title:i,footer:A,footerAlign:s,footerActions:l,onOk:m?c:wf,onCancel:m?u:wf,okProps:d,cancelProps:p,locale:f,closeable:e,rtl:g,onClose:h.bind(this,"closeClick"),height:y,noPadding:v},w),a)},t.prototype.render=function(){var e=this.props,t=e.prefix,n=e.visible,r=e.hasMask,o=e.animation,i=e.autoFocus,a=e.closeable,A=e.closeMode,s=e.onClose,l=e.afterClose,c=e.shouldUpdatePosition,u=e.align,d=e.popupContainer,p=e.cache,h=e.overlayProps,f=e.rtl,m=this.useCSSToPosition(),g="closeMode"in this.props?Array.isArray(A)?A.join(","):A:a,y=this.mapcloseableToConfig(g),v=y.canCloseByCloseClick,w=Sn(y,["canCloseByCloseClick"]),B=Fn(Fn(Fn(Fn({disableScroll:!0,container:d,cache:p},h),{prefix:t,visible:n,animation:o,hasMask:r,autoFocus:i,afterClose:l}),w),{canCloseByOutSideClick:!1,align:!m&&u,onRequestClose:s,needAdjust:!1,ref:this.getOverlayRef,rtl:f,maskClass:m?"".concat(t,"dialog-container"):"",isChildrenInMask:m&&r});m||(B.beforePosition=this.beforePosition,B.onPosition=this.adjustPosition,B.shouldUpdatePosition=c);var C=this.renderInner(v);return b.createElement(Vd,Fn({},B),m&&!r?b.createElement("div",{className:"".concat(t,"dialog-container"),dir:f?"rtl":void 0},C):C)},t.propTypes={prefix:Nn.string,pure:Nn.bool,rtl:Nn.bool,className:Nn.string,visible:Nn.bool,title:Nn.node,children:Nn.node,footer:Nn.oneOfType([Nn.bool,Nn.node]),footerAlign:Nn.oneOf(["left","center","right"]),footerActions:Nn.array,onOk:Nn.func,onCancel:Nn.func,okProps:Nn.object,cancelProps:Nn.object,closeMode:Nn.oneOfType([Nn.arrayOf(Nn.oneOf(["close","mask","esc"])),Nn.oneOf(["close","mask","esc"])]),cache:Nn.bool,afterClose:Nn.func,hasMask:Nn.bool,animation:Nn.oneOfType([Nn.object,Nn.bool]),autoFocus:Nn.bool,overlayProps:Nn.object,locale:Nn.object,popupContainer:Nn.any,height:Nn.oneOfType([Nn.string,Nn.number]),v2:Nn.bool,width:Nn.oneOfType([Nn.string,Nn.number]),top:Nn.number,bottom:Nn.number,closeIcon:Nn.node,centered:Nn.bool,overflowScroll:Nn.bool,wrapperClassName:Nn.string,closeable:Nn.oneOfType([Nn.string,Nn.bool]),onClose:Nn.func,align:Nn.oneOfType([Nn.string,Nn.bool]),isFullScreen:Nn.bool,shouldUpdatePosition:Nn.bool,minMargin:Nn.number,noPadding:Nn.bool},t.defaultProps={prefix:"next-",pure:!1,visible:!1,footerAlign:"right",footerActions:["ok","cancel"],onOk:wf,onCancel:wf,cache:!1,okProps:{},cancelProps:{},closeable:"esc,close",onClose:wf,afterClose:wf,centered:!1,hasMask:!0,animation:{in:"fadeInUp",out:"fadeOutUp"},autoFocus:!1,align:"cc cc",isFullScreen:!1,overflowScroll:!0,shouldUpdatePosition:!1,minMargin:40,bottom:40,overlayProps:{},locale:Xs.Dialog,noPadding:!1},t.displayName="Dialog",t}(b.Component);const Qf=Sf;var Uf=[];const Of={lock:function(e,t){var n=e.getAttribute("style"),r=Do();return Uf.push({uuid:r,container:e,originStyle:n}),Oo.setStyle(e,t),r},unlock:function(e,t){var n=Uf.filter(function(t){return t.container===e}),r=n.find(function(e){return e.uuid===t});if(r){var o=n.indexOf(r);if(-1!==o&&o<n.length-1){var i=r.originStyle;return n[o+1].originStyle=i,void Uf.splice(Uf.indexOf(r),1)}e.setAttribute("style",r.originStyle||""),Uf.pop()}}};var Tf=Td.OverlayContext,Mf=Io.noop,If=function(e){var t,n,r;if(!b.useState||!b.useRef||!b.useEffect)return No.warning("need react version > 16.8.0"),null;var o=e.prefix,i=void 0===o?"next-":o,a=e.afterClose,A=void 0===a?Mf:a,s=e.hasMask,l=void 0===s||s,c=e.autoFocus,u=void 0!==c&&c,d=e.className,p=e.title,h=e.children,f=e.footer,m=e.footerAlign,g=e.footerActions,y=e.onOk,v=void 0===y?Mf:y,B=e.onCancel,C=e.okProps,x=e.cancelProps,E=e.locale,k=void 0===E?Xs.Dialog:E,F=e.rtl,S=e.visible,Q=e.closeMode,U=void 0===Q?["close","esc"]:Q,O=e.closeIcon,T=e.animation,M=void 0===T?{in:"fadeInUp",out:"fadeOutUp"}:T,I=e.cache,N=e.wrapperStyle,H=e.popupContainer,_=void 0===H?"undefined"!=typeof document?document.body:null:H,P=e.dialogRender,D=e.centered,L=e.top,R=void 0===L?D?40:100:L,z=e.bottom,K=void 0===z?40:z,j=e.width,V=void 0===j?520:j,$=e.height,G=e.isFullScreen,W=e.overflowScroll,Y=void 0===W?!G:W,q=e.minMargin,X=e.onClose,J=e.style,Z=e.wrapperClassName,ee=Sn(e,["prefix","afterClose","hasMask","autoFocus","className","title","children","footer","footerAlign","footerActions","onOk","onCancel","okProps","cancelProps","locale","rtl","visible","closeMode","closeIcon","animation","cache","wrapperStyle","popupContainer","dialogRender","centered","top","bottom","width","height","isFullScreen","overflowScroll","minMargin","onClose","style","wrapperClassName"]);"isFullScreen"in e&&No.deprecated("isFullScreen","overflowScroll","Dialog v2"),"minMargin"in e&&No.deprecated("minMargin","top/bottom","Dialog v2");var te=Qn(b.useState(S||!1),2),ne=te[0],re=te[1],oe=Qn(b.useState(S),2),ie=oe[0],ae=oe[1],Ae="string"==typeof _?function(){return document.getElementById(_)}:"function"!=typeof _?function(){return _}:_,se=Qn(b.useState(Ae()),2),le=se[0],ce=se[1],ue=b.useRef(null),de=b.useRef(null),pe=b.useRef(),he=b.useRef(null),fe=Qn(b.useState(Do()),1)[0],me=b.useContext(Tf),ge=me.setVisibleOverlayToParent,ye=Sn(me,["setVisibleOverlayToParent"]),ve=b.useRef(new Map),be=b.useRef(!1),we=Qn(b.useState(),2)[1],Be=function(e){be.current=e,we({})},Ce=!1,xe=!1,Ee=!1;(Array.isArray(U)?U:[U]).forEach(function(e){switch(e){case"esc":Ce=!0;break;case"mask":xe=!0;break;case"close":Ee=!0}}),b.useEffect(function(){"visible"in e&&ae(S)},[S]),b.useEffect(function(){if(ie&&l){var e={overflow:"hidden"};if(Oo.hasScroll(document.body))Oo.scrollbar().width&&(e.paddingRight="".concat(Oo.getStyle(document.body,"paddingRight")+Oo.scrollbar().width,"px"));he.current=Of.lock(document.body,e)}},[ie&&l]);var ke=function(e,t){ge(fe,null),"function"==typeof X&&X(e,t)},Fe=function(e){27===e.keyCode&&Ce&&!ve.current.size&&ke("esc",e)};b.useEffect(function(){if(ie&&Ce)return document.body.addEventListener("keydown",Fe,!1),function(){document.body.removeEventListener("keydown",Fe,!1)}},[ie&&Ce]),b.useEffect(function(){!ne&&ie&&re(!0)},[ie]),b.useEffect(function(){le||setTimeout(function(){ce(Ae())})},[le]);var Se=function(){if(!be.current){if(Be(!0),Oo.setStyle(de.current,"display","none"),Of.unlock(document.body,he.current),u&&pe.current){try{pe.current.focus()}finally{}pe.current=void 0}A()}};if(b.useEffect(function(){return function(){Se()}},[]),!1===ne||!le)return null;if(!ie&&!I&&be.current)return null;var Qe=_n(((t={})["".concat(i,"overlay-wrapper")]=!0,t[Z]=!!Z,t.opened=ie,t)),Ue=_n(((n={})["".concat(i,"dialog-v2")]=!0,n[d]=!!d,n)),Oe={};D?R||K||!q?(R&&(Oe.marginTop=R),K&&(Oe.marginBottom=K)):(Oe.marginTop=q,Oe.marginBottom=q):(R&&(Oe.top=R),K&&(Oe.paddingBottom=K));var Te=J||{};Y&&!Te.maxHeight&&(Te.maxHeight="calc(100vh - ".concat(R+K,"px)"));var Me={appear:300,enter:300,exit:250},Ie=b.createElement(mu.OverlayAnimate,{visible:ie,animation:M,timeout:Me,onEnter:function(){Be(!1),Oo.setStyle(de.current,"display","")},onEntered:function(){if(u&&ue.current&&ue.current.bodyNode){var e=Po.getFocusNodeList(ue.current.bodyNode);e.length>0&&e[0]&&(pe.current=document.activeElement,e[0].focus())}ge(fe,de.current)},onExited:Se},b.createElement(bf,Fn({},ee,{style:D?Fn(Fn({},Oe),Te):Te,v2:!0,ref:ue,prefix:i,className:Ue,title:p,footer:f,footerAlign:m,footerActions:g,onOk:ie?v:Mf,onCancel:ie?function(e){"function"==typeof B?B(e):ke("cancelBtn",e)}:Mf,okProps:C,cancelProps:x,locale:k,closeable:Ee,rtl:F,onClose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ke.apply(void 0,Un(["closeClick"],Qn(e),!1))},closeIcon:O,height:$,width:V}),h));"function"==typeof P&&(Ie=P(Ie));var Ne=_n(((r={})["".concat(i,"overlay-inner")]=!0,r["".concat(i,"dialog-wrapper")]=!0,r["".concat(i,"dialog-centered")]=D,r));return b.createElement(Tf.Provider,{value:Fn(Fn({},ye),{setVisibleOverlayToParent:function(e,t){t?ve.current.set(e,t):ve.current.delete(e),ge(e,t)}})},w.createPortal(b.createElement("div",{className:Qe,style:N,ref:de},l?b.createElement(mu.OverlayAnimate,{visible:ie,animation:!!M&&{in:"fadeIn",out:"fadeOut"},timeout:Me,unmountOnExit:!0},b.createElement("div",{className:"".concat(i,"overlay-backdrop")})):null,b.createElement("div",{className:Ne,onClick:function(e){if(xe){if("click"===e.type&&ue.current){var t=w.findDOMNode(ue.current);if(t&&t.contains(e.target))return}ke("maskClick",e)}}},D?Ie:b.createElement("div",{style:Oe,className:"".concat(i,"dialog-inner-wrapper")},Ie))),le))};If.displayName="Dialog";const Nf=If;var Hf=function(){},_f=function(e){function t(){var t=e.apply(this,Un([],Qn(arguments),!1))||this;return t.state={visible:void 0===t.props.visible?t.props.defaultVisible:t.props.visible},t.onClose=function(){"visible"in t.props||t.setState({visible:!1}),t.props.onClose()},t}return kn(t,e),t.getDerivedStateFromProps=function(e){return"visible"in e?{visible:e.visible}:{}},t.prototype.render=function(){var e,n=this.props,r=n.prefix,o=n.className,i=n.style,a=n.type,A=n.shape,s=n.size,l=n.title,c=n.children,u=n.iconType,d=n.closeable,p=n.afterClose,h=n.animation,f=n.rtl,m=n.locale,g=Fn({},Ho.pickOthers(Object.keys(t.propTypes),this.props)),y=this.state.visible,v="".concat(r,"message"),w=_n(((e={})[v]=!0,e["".concat(r,"message-").concat(a)]=a,e["".concat(r).concat(A)]=A,e["".concat(r).concat(s)]=s,e["".concat(r,"title-content")]=!!l,e["".concat(r,"only-content")]=!l&&!!c,e[o]=o,e)),B=y?b.createElement("div",Fn({role:"alert",style:i},g,{className:w,dir:f?"rtl":void 0}),d?b.createElement("a",{role:"button","aria-label":m.closeAriaLabel,className:"".concat(v,"-close"),onClick:this.onClose},b.createElement(Xd,{type:"close"})):null,!1!==u?b.createElement(Xd,{className:"".concat(v,"-symbol ").concat(!u&&"".concat(v,"-symbol-icon")),type:u}):null,l?b.createElement("div",{className:"".concat(v,"-title")},l):null,c?b.createElement("div",{className:"".concat(v,"-content")},c):null):null;return h?b.createElement(mu.Expand,{animationAppear:!1,afterLeave:p},B):B},t.propTypes={prefix:Nn.string,pure:Nn.bool,className:Nn.string,style:Nn.object,type:Nn.oneOf(["success","warning","error","notice","help","loading"]),shape:Nn.oneOf(["inline","addon","toast"]),size:Nn.oneOf(["medium","large"]),title:Nn.node,children:Nn.node,defaultVisible:Nn.bool,visible:Nn.bool,iconType:Nn.oneOfType([Nn.string,Nn.bool]),closeable:Nn.bool,onClose:Nn.func,afterClose:Nn.func,animation:Nn.bool,locale:Nn.object,rtl:Nn.bool},t.displayName="Message",t.defaultProps={prefix:"next-",pure:!1,type:"success",shape:"inline",size:"medium",defaultVisible:!0,closeable:!1,onClose:Hf,afterClose:Hf,animation:!0,locale:Xs.Message},t}(b.Component);const Pf=sc.config(lr(_f));var Df,Lf=sc.config,Rf={},zf=function(e){function t(){var t=e.apply(this,Un([],Qn(arguments),!1))||this;return t.state={visible:!0},t.handleClose=function(e){void 0===e&&(e=!1),t.setState({visible:!1}),e||t.props.onClose&&t.props.onClose()},t}return kn(t,e),t.prototype.componentWillUnmount=function(){var e=this.props.timeoutId;if(e in Rf){var t=Rf[e];clearTimeout(t),delete Rf[e]}},t.prototype.render=function(){var e=this.props,t=e.prefix,n=e.type,r=e.title,o=e.content,i=e.align,a=e.offset,A=e.hasMask,s=e.afterClose,l=e.animation,c=e.overlayProps;e.timeoutId;var u=e.className,d=e.style,p=Sn(e,["prefix","type","title","content","align","offset","hasMask","afterClose","animation","overlayProps","timeoutId","className","style"]),h=this.state.visible;return b.createElement(Vd,Fn({},c,{prefix:t,animation:l,visible:h,align:i,offset:a,hasMask:A,afterClose:s}),b.createElement(Pf,Fn({},p,{prefix:t,visible:!0,type:n,shape:"toast",title:r,style:d,className:"".concat(t,"message-wrapper ").concat(u),onClose:this.handleClose}),o))},t.contextTypes={prefix:Nn.string},t.propTypes={prefix:Nn.string,type:Nn.string,title:Nn.node,content:Nn.node,align:Nn.string,offset:Nn.array,hasMask:Nn.bool,afterClose:Nn.func,animation:Nn.oneOfType([Nn.object,Nn.bool]),overlayProps:Nn.object,onClose:Nn.func,timeoutId:Nn.string,style:Nn.object,className:Nn.string},t.defaultProps={prefix:"next-",align:"tc tc",offset:[0,30],hasMask:!1,animation:{in:"pulse",out:"zoomOut"},style:{},className:""},t}(b.Component),Kf=Lf(zf);function jf(){Df&&(Df.destroy(),Df=null)}function Vf(e,t){jf(),e=function(e,t){var n,r={};return"string"==typeof e||b.isValidElement(e)?r.title=e:(n=e,"[object Object]"==={}.toString.call(n)&&(r=Fn({},e))),"number"!=typeof r.duration&&(r.duration=3e3),t&&(r.type=t),r}(e,t);var n=Do();if(Df=function(e){e.duration;var t=e.afterClose,n=e.contextConfig,r=Sn(e,["duration","afterClose","contextConfig"]),o=document.createElement("div");document.body.appendChild(o);var i=n;i||(i=sc.getContext());var a,A=null,s=!1,l=function(){var e=A&&A.getInstance();e&&e.handleClose(!0),s=!0};return w.render(b.createElement(sc,Fn({},i),b.createElement(Kf,Fn({afterClose:function(){w.unmountComponentAtNode(o),document.body.removeChild(o),t&&t()}},r,{ref:function(e){a=e}}))),o,function(){(A=a)&&s&&l()}),{component:A,destroy:l}}(Fn(Fn({},e),{timeoutId:n})),e.duration>0){var r=setTimeout(jf,e.duration);Rf[n]=r}}function $f(e){Vf(e)}function Gf(){jf()}function Wf(e){Vf(e,"success")}function Yf(e){Vf(e,"warning")}function qf(e){Vf(e,"error")}function Xf(e){Vf(e,"help")}function Jf(e){Vf(e,"loading")}function Zf(e){Vf(e,"notice")}const em={show:$f,hide:Gf,success:Wf,warning:Yf,error:qf,help:Xf,loading:Jf,notice:Zf};var tm,nm={top:8,maxCount:0,duration:3e3},rm=sc.config(function(e){var t=e.prefix,n=void 0===t?"next-":t,r=e.dataSource,o=void 0===r?[]:r,i=Qn(b.useState(),2)[1];return o.forEach(function(e){e.timer||(e.timer=setTimeout(function(){var t=o.indexOf(e);if(t>-1){var n=o[t];"function"==typeof n.onClose&&n.onClose(),o.splice(t,1),i({})}},e.duration))}),b.createElement("div",{className:"".concat(n,"message-wrapper-v2"),style:{top:nm.top}},b.createElement(mu,{animationAppear:!0,animation:{appear:"pulse",enter:"pulse",leave:"".concat(n,"message-fade-leave")},singleMode:!1},o.map(function(e){var t=e.key,r=e.className,o=e.type,i=e.title,a=e.content,A=e.style,s=Sn(e,["key","className","type","title","content","style"]);return b.createElement("div",{className:"".concat(n,"message-list"),key:t},b.createElement(Pf,Fn({},s,{className:r,prefix:n,visible:!0,type:o,shape:"toast",title:i,style:A}),a))})))}),om=[];function im(e){return function(t){return t=function(e,t){var n={};return"string"==typeof e||b.isValidElement(e)?n.title=e:"Object"===Ho.typeOf(e)&&(n=Fn({},e)),t&&(n.type=t),n}(t,e),function(e){var t=e.key,n=void 0===t?Do("message-"):t,r=Sn(e,["key"]);tm||(tm=document.createElement("div"),document.body.appendChild(tm));var o=nm.maxCount,i=Fn({key:n,duration:nm.duration},r);return om.push(i),o&&om.length>o&&om.shift(),w.render(b.createElement(sc,Fn({},sc.getContext()),b.createElement(rm,{dataSource:om})),tm),{key:n,close:function(){i.timer&&clearTimeout(i.timer);var e=om.indexOf(i);e>-1&&("function"==typeof i.onClose&&i.onClose(),om.splice(e,1),w.render(b.createElement(sc,Fn({},sc.getContext()),b.createElement(rm,{dataSource:om})),tm))}}}(t)}}const am={open:im(),success:im("success"),warning:im("warning"),error:im("error"),help:im("help"),loading:im("loading"),notice:im("notice"),close:function(e){if(e){var t=om.findIndex(function(t){return t.key===e});om.splice(t,1)}else om=[];tm&&w.render(b.createElement(sc,Fn({},sc.getContext()),b.createElement(rm,{dataSource:om})),tm)},destory:function(){tm&&tm&&(w.unmountComponentAtNode(tm),tm.parentNode.removeChild(tm),tm=null)},config:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(b.useState)return Object.assign.apply(Object,Un([nm],Qn(e),!1));No.warning("need react version > 16.8.0")}};var Am=pc(Pf,{show:em.show,success:em.success,warning:em.warning,error:em.error,notice:em.notice,help:em.help,loading:em.loading,hide:em.hide,withContext:function(e){return function(t){return b.createElement(sc.Consumer,null,function(n){return b.createElement(e,Fn({},t,{contextMessage:{show:function(e){return void 0===e&&(e={}),$f(Fn(Fn({},e),{contextConfig:n}))},hide:Gf,success:function(e){return void 0===e&&(e={}),Wf(Fn(Fn({},e),{contextConfig:n}))},warning:function(e){return void 0===e&&(e={}),Yf(Fn(Fn({},e),{contextConfig:n}))},error:function(e){return void 0===e&&(e={}),qf(Fn(Fn({},e),{contextConfig:n}))},help:function(e){return void 0===e&&(e={}),Xf(Fn(Fn({},e),{contextConfig:n}))},loading:function(e){return void 0===e&&(e={}),Jf(Fn(Fn({},e),{contextConfig:n}))},notice:function(e){return void 0===e&&(e={}),Zf(Fn(Fn({},e),{contextConfig:n}))}}}))})}}}),sm=sc.config(Am,{componentName:"Message"});const lm=sm;var cm=!1;sm.config=function(e){am.config(e),cm||(sm.show=am.open,sm.open=am.open,sm.hide=am.close,sm.close=am.close,sm.destory=am.destory,sm.success=am.success,sm.warning=am.warning,sm.error=am.error,sm.notice=am.notice,sm.help=am.help,sm.loading=am.loading,cm=!0)};var um=sc.config(Qf),dm=sc.config(b.forwardRef(function(e,t){return b.useImperativeHandle(t,function(){}),b.createElement(Nf,Fn({},e))})),pm=function(){},hm={alert:"warning",confirm:"help",success:"success",error:"error",warning:"warning",notice:"notice",help:"help"},fm=function(e){var t=e.type,n=e.messageProps,r=void 0===n?{}:n,o=e.title,i=e.rtl,a=e.prefix,A=void 0===a?"next-":a,s=e.content;return b.createElement(lm,Fn({size:"large",shape:"addon",type:hm[t]},r,{title:o,rtl:i,className:_n("".concat(A,"dialog-message"),r.className)}),s)},mm=function(e){function t(){var t=e.apply(this,Un([],Qn(arguments),!1))||this;return t.state={visible:!0,okLoading:!1,cancelLoading:!1},t.close=function(){t.setState({visible:!1})},t.okLoading=function(e){t.setState({okLoading:e})},t.cancelLoading=function(e){t.setState({cancelLoading:e})},t}return kn(t,e),t.prototype.wrapper=function(e,t,n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=e.apply(void 0,Un([],Qn(r),!1));if(i&&i.then)n(!0),i.then(function(e){if(n(!1),!1!==e)return t()}).catch(function(e){throw n(!1),e});else if(!1!==i)return t()}},t.prototype.render=function(){var e=this.props,t=e.prefix,n=e.type,r=e.title,o=e.content,i=e.messageProps,a=e.footerActions,A=e.onOk,s=e.onCancel,l=e.onClose,c=e.okProps,u=e.cancelProps,d=e.needWrapper,p=e.rtl,h=e.className,f=e.v2,m=e.width,g=void 0===m?420:m,y=Sn(e,["prefix","type","title","content","messageProps","footerActions","onOk","onCancel","onClose","okProps","cancelProps","needWrapper","rtl","className","v2","width"]),v=d&&n?null:r,w=d&&n?b.createElement(fm,{type:n,messageProps:i,title:r,rtl:p,prefix:t,content:o}):o,B=a||("confirm"===n?["ok","cancel"]:["alert","success","error","notice","warning","help"].indexOf(n)>-1?["ok"]:void 0),C=this.wrapper(A,this.close,this.okLoading),x=this.wrapper(s,this.close,this.cancelLoading),E=this.wrapper(l,this.close,this.cancelLoading),k=this.state,F=k.visible,S=k.okLoading,Q=k.cancelLoading,U=Fn({},c);"loading"in c||(U.loading=S);var O=Fn({},u);"loading"in u||(O.loading=Q);var T=_n("".concat(t,"dialog-quick"),h),M=f?dm:um;return b.createElement(M,Fn({prefix:t,role:"alertdialog"},y,{visible:F,title:v,rtl:p,footerActions:B,onOk:this.state.loading?pm:C,onCancel:x,onClose:E,okProps:U,cancelProps:O,className:T,width:f?g:void 0}),w)},t.propTypes={prefix:Nn.string,pure:Nn.bool,rtl:Nn.bool,type:Nn.oneOf(["alert","confirm","success","error","notice","warning","help"]),title:Nn.node,content:Nn.node,messageProps:Nn.object,footerActions:Nn.array,onOk:Nn.func,onCancel:Nn.func,onClose:Nn.func,okProps:Nn.object,cancelProps:Nn.object,locale:Nn.object,needWrapper:Nn.bool,className:Nn.string},t.defaultProps={prefix:"next-",pure:!1,messageProps:{},onOk:pm,onCancel:pm,onClose:pm,okProps:{},cancelProps:{},locale:Xs.Dialog,needWrapper:!0},t}(b.Component),gm=sc.config(mm,{componentName:"Dialog"}),ym=function(e){void 0===e&&(e={});var t=document.createElement("div");document.body.appendChild(t);var n,r,o=e.contextConfig;return o||(o=sc.getContext()),w.render(b.createElement(sc,Fn({},o),b.createElement(gm,Fn({},e,{afterClose:function(){var n;e.afterClose&&e.afterClose(),w.unmountComponentAtNode(t),null===(n=t.parentNode)||void 0===n||n.removeChild(t)},ref:function(e){r=e}}))),t,function(){n=r}),{hide:function(){var e=n&&n.getInstance();e&&e.close()}}},vm=function(e){return function(t){return void 0===t&&(t={}),t.type=e,ym(t)}},bm=vm("alert"),wm=vm("success"),Bm=vm("error"),Cm=vm("notice"),xm=vm("warning"),Em=vm("help"),km=vm("confirm"),Fm=function(e){return function(t){return b.createElement(sc.Consumer,null,function(n){return b.createElement(e,Fn({},t,{contextDialog:{show:function(e){return void 0===e&&(e={}),ym(Fn(Fn({},e),{contextConfig:n}))},alert:function(e){return void 0===e&&(e={}),bm(Fn(Fn({},e),{contextConfig:n}))},confirm:function(e){return void 0===e&&(e={}),km(Fn(Fn({},e),{contextConfig:n}))},success:function(e){return void 0===e&&(e={}),wm(Fn(Fn({},e),{contextConfig:n}))},error:function(e){return void 0===e&&(e={}),Bm(Fn(Fn({},e),{contextConfig:n}))},warning:function(e){return void 0===e&&(e={}),xm(Fn(Fn({},e),{contextConfig:n}))},notice:function(e){return void 0===e&&(e={}),Cm(Fn(Fn({},e),{contextConfig:n}))},help:function(e){return void 0===e&&(e={}),Em(Fn(Fn({},e),{contextConfig:n}))}}}))})}};function Sm(e,t){if("closable"in e){t("closable","closeable","Dialog");var n=e.closable,r=Sn(e,["closable"]);e=Fn({closeable:n},r)}if("v2"in e){var o=Fn({},e);return"align"in e&&(delete o.align,t("align","centered","<Dialog v2 />")),"shouldUpdatePosition"in e&&(delete o.shouldUpdatePosition,No.warning("Warning: [ shouldUpdatePosition ] is deprecated at [ <Dialog v2 /> ]")),"minMargin"in e&&t("minMargin","top/bottom","<Dialog v2 />"),"isFullScreen"in e&&(e.overFlowScroll=!e.isFullScreen,delete o.isFullScreen,t("isFullScreen","overFlowScroll","<Dialog v2 />")),o}return["target","offset","beforeOpen","onOpen","afterOpen","beforePosition","onPosition","cache","safeNode","wrapperClassName","container"].forEach(function(n){var r;if(n in e){t(n,"overlayProps.".concat(n),"Dialog");var o=e.overlayProps,i=Sn(e,["overlayProps"]),a=Fn(((r={})[n]=e[n],r),o||{});delete i[n],e=Fn({overlayProps:a},i)}}),e}var Qm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e=this.props,t=e.v2,n=Sn(e,["v2"]);return t?b.createElement(Nf,Fn({},n)):b.createElement(Qf,Fn({},n))},t.displayName="Dialog",t.Inner=bf,t.withContext=Fm,t.show=function(e){return!1!==sc.getContextProps(e,"Dialog").warning&&(e=Sm(e,No.deprecated)),ym(e)},t.alert=function(e){return!1!==sc.getContextProps(e,"Dialog").warning&&(e=Sm(e,No.deprecated)),bm(e)},t.confirm=function(e){return!1!==sc.getContextProps(e,"Dialog").warning&&(e=Sm(e,No.deprecated)),km(e)},t.success=function(e){return wm(e)},t.error=function(e){return Bm(e)},t.notice=function(e){return Cm(e)},t.warning=function(e){return xm(e)},t.help=function(e){return Em(e)},t}(b.Component);const Um=sc.config(Qm,{transform:function(e,t){return Sm(e,t)}});var Om=function(){},Tm=Ho.pickOthers,Mm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.renderHeader=function(){var e,t=this.props,n=t.prefix,r=t.title,o=t.headerStyle,i=this.renderCloseLink(),a=_n(((e={})["".concat(n,"drawer-header")]=!0,e["".concat(n,"drawer-no-title")]=!r,e));return b.createElement("div",Fn({},{role:"heading","aria-level":1},{className:a,style:o}),r,i)},t.prototype.renderBody=function(){var e=this.props,t=e.prefix,n=e.children,r=e.bodyStyle;return n?b.createElement("div",{className:"".concat(t,"drawer-body"),style:r},n):null},t.prototype.renderCloseLink=function(){var e=this.props,t=e.prefix,n=e.closeable,r=e.onClose,o=e.locale,i={role:"button","aria-label":null==o?void 0:o.close};return n?b.createElement("a",Fn({},i,{className:"".concat(t,"drawer-close"),onClick:r}),b.createElement(Xd,{className:"".concat(t,"drawer-close-icon"),type:"close"})):null},t.prototype.render=function(){var e,n=this.props,r=n.prefix,o=n.className,i=n.closeable,a=n.placement,A=n.role,s=n.rtl,l=n.v2,c=Tm(Object.keys(t.propTypes),this.props),u=_n(((e={})["".concat(r,"drawer")]=!0,e["".concat(r,"drawer-").concat(a)]=!l,e["".concat(r,"closeable")]=i,e[o]=!!o,e)),d={role:A,"aria-modal":"true"},p=this.renderHeader(),h=this.renderBody();return b.createElement("div",Fn({},d,{className:u},c,{dir:s?"rtl":void 0}),l?b.createElement("div",{className:"".concat(r,"drawer-content")},p,h):b.createElement("div",{style:{height:"100%",overflow:"auto"}},p,h))},t.propTypes={prefix:Nn.string,className:Nn.string,closeable:Nn.bool,role:Nn.string,title:Nn.node,placement:Nn.oneOf(["top","right","bottom","left"]),rtl:Nn.bool,onClose:Nn.func,locale:Nn.object,headerStyle:Nn.object,bodyStyle:Nn.object,afterClose:Nn.func,beforeOpen:Nn.func,beforeClose:Nn.func,cache:Nn.bool,shouldUpdatePosition:Nn.bool,v2:Nn.bool},t.defaultProps={prefix:"next-",closeable:!0,role:"dialog",onClose:Om,locale:Xs.Drawer},t}(b.Component);const Im=Mm;var Nm=function(){},Hm=Vd.Popup,_m=Ho.pickOthers,Pm=function(e){function t(){var t=e.apply(this,Un([],Qn(arguments),!1))||this;return t.overlay=null,t.getAlign=function(e){var t;switch(e){case"top":case"left":t="tl tl";break;case"bottom":t="bl bl";break;default:t="tr tr"}return t},t.getAnimation=function(e){if("animation"in t.props)return t.props.animation;var n;switch(e){case"top":n={in:"slideInDown",out:"slideOutUp"};break;case"bottom":n={in:"slideInUp",out:"slideOutDown"};break;case"left":n={in:"slideInLeft",out:"slideOutLeft"};break;default:n={in:"slideInRight",out:"slideOutRight"}}return n},t.getOverlayRef=function(e){t.overlay=e},t.mapcloseableToConfig=function(e){return["esc","close","mask"].reduce(function(t,n){var r=n.charAt(0).toUpperCase()+n.substr(1),o="boolean"==typeof e?e:e.split(",").indexOf(n)>-1;return"esc"===n||"mask"===n?t["canCloseBy".concat(r)]=o:t["canCloseBy".concat(r,"Click")]=o,t},{})},t.handleVisibleChange=function(e,n,r){var o=t.props,i=o.onClose,a=o.onVisibleChange;!1===e&&i&&i(n,r),a&&a(e,n,r)},t}return kn(t,e),t.prototype.renderInner=function(e){var n=this.props,r=n.prefix,o=n.className,i=n.children,a=n.title,A=n.onClose,s=n.locale,l=n.headerStyle,c=n.bodyStyle,u=n.placement,d=n.rtl,p=_m(t.propTypes,this.props);return b.createElement(Im,Fn({prefix:r,title:a,className:o,locale:s,closeable:e,rtl:d,headerStyle:l,bodyStyle:c,placement:u,onClose:A.bind(this,"closeClick")},p),i)},t.prototype.render=function(){var e=this.props,t=e.prefix,n=e.style,r=e.width,o=e.height,i=e.trigger,a=e.triggerType;e.animation;var A=e.hasMask,s=e.visible,l=e.placement;e.onClose,e.onVisibleChange;var c=e.closeable,u=e.closeMode,d=e.rtl,p=e.popupContainer;e.content,e.title;var h=Sn(e,["prefix","style","width","height","trigger","triggerType","animation","hasMask","visible","placement","onClose","onVisibleChange","closeable","closeMode","rtl","popupContainer","content","title"]),f=Fn({width:r,height:o},n),m="closeMode"in this.props?Array.isArray(u)?u.join(","):u:c,g=this.mapcloseableToConfig(m),y=g.canCloseByCloseClick,v=Sn(g,["canCloseByCloseClick"]),w=Fn(Fn({prefix:t,visible:s,trigger:i,triggerType:a,onVisibleChange:this.handleVisibleChange,animation:this.getAnimation(l),hasMask:A,align:this.getAlign(l)},v),{canCloseByOutSideClick:!1,disableScroll:!0,ref:this.getOverlayRef,rtl:d,target:"viewport",style:f,needAdjust:!1,container:p}),B=this.renderInner(y);return b.createElement(Hm,Fn({},w,h),B)},t.displayName="Drawer",t.propTypes=Fn(Fn({},Hm.propTypes||{}),{prefix:Nn.string,pure:Nn.bool,rtl:Nn.bool,trigger:Nn.element,triggerType:Nn.oneOfType([Nn.string,Nn.array]),width:Nn.oneOfType([Nn.number,Nn.string]),height:Nn.oneOfType([Nn.number,Nn.string]),closeable:Nn.oneOfType([Nn.string,Nn.bool]),cache:Nn.bool,closeMode:Nn.oneOfType([Nn.arrayOf(Nn.oneOf(["close","mask","esc"])),Nn.oneOf(["close","mask","esc"])]),onClose:Nn.func,afterOpen:Nn.func,placement:Nn.oneOf(["top","right","bottom","left"]),title:Nn.node,headerStyle:Nn.object,bodyStyle:Nn.object,visible:Nn.bool,hasMask:Nn.bool,onVisibleChange:Nn.func,animation:Nn.oneOfType([Nn.object,Nn.bool]),locale:Nn.object,popupContainer:Nn.any,v2:Nn.bool,afterClose:Nn.func}),t.defaultProps={prefix:"next-",triggerType:"click",trigger:null,closeable:!0,onClose:Nm,hasMask:!0,placement:"right",locale:Xs.Drawer},t}(b.Component);const Dm=Pm;var Lm=Td.OverlayContext,Rm=Io.noop,zm=function(e){var t,n,r;if(!b.useState||!b.useRef||!b.useEffect)return No.warning("need react version > 16.8.0"),null;var o=e.prefix,i=void 0===o?"next-":o,a=e.hasMask,A=void 0===a||a,s=e.autoFocus,l=void 0!==s&&s,c=e.className,u=e.title,d=e.children,p=e.cache,h=e.closeMode,f=void 0===h?["close","mask","esc"]:h,m=e.width,g=e.height,y=e.onClose,v=e.placement,B=void 0===v?"right":v,C=e.headerStyle,x=e.bodyStyle,E=e.visible,k=e.afterClose,F=void 0===k?Rm:k,S=e.locale,Q=void 0===S?Xs.Drawer:S,U=e.rtl,O=e.animation,T=e.wrapperStyle,M=e.popupContainer,I=void 0===M?document.body:M,N=e.style,H=Sn(e,["prefix","hasMask","autoFocus","className","title","children","cache","closeMode","width","height","onClose","placement","headerStyle","bodyStyle","visible","afterClose","locale","rtl","animation","wrapperStyle","popupContainer","style"]),_=Qn(b.useState(E||!1),2),P=_[0],D=_[1],L=Qn(b.useState(E),2),R=L[0],z=L[1],K="string"==typeof I?function(){return document.getElementById(I)}:"function"!=typeof I?function(){return I}:I,j=Qn(b.useState(K()),2),V=j[0],$=j[1],G=b.useRef(null),W=b.useRef(null),Y=b.useRef(null),q=b.useRef(null),X=Qn(b.useState(Do()),1)[0],J=b.useContext(Lm),Z=J.setVisibleOverlayToParent,ee=Sn(J,["setVisibleOverlayToParent"]),te=b.useRef(new Map),ne=b.useRef(!1),re=Qn(b.useState(),2)[1],oe=function(e){ne.current=e,re({})},ie=!1,ae=!1,Ae=!1;(Array.isArray(f)?f:[f]).forEach(function(e){switch(e){case"esc":ie=!0;break;case"mask":ae=!0;break;case"close":Ae=!0}}),b.useEffect(function(){"visible"in e&&z(E)},[E]),b.useEffect(function(){if(R&&A){var e={overflow:"hidden"};if(Oo.hasScroll(document.body))Oo.scrollbar().width&&(e.paddingRight="".concat(Oo.getStyle(document.body,"paddingRight")+Oo.scrollbar().width,"px"));q.current=Of.lock(document.body,e)}},[R&&A]);var se=function(e,t){Z(X,null),"function"==typeof y&&y(e,t)},le=function(e){27===e.keyCode&&ie&&!te.current.size&&se("esc",e)};b.useEffect(function(){if(R&&ie)return document.body.addEventListener("keydown",le,!1),function(){document.body.removeEventListener("keydown",le,!1)}},[R&&ie]),b.useEffect(function(){!P&&R&&D(!0)},[R]),b.useEffect(function(){V||setTimeout(function(){$(K())})},[V]);var ce=function(){if(!ne.current){if(oe(!0),Oo.setStyle(W.current,"display","none"),Of.unlock(document.body,q.current),l&&Y.current){try{Y.current.focus()}finally{}Y.current=null}F()}};if(b.useEffect(function(){return function(){ce()}},[]),!1===P||!V)return null;if(!R&&!p&&ne.current)return null;var ue=_n(((t={})["".concat(i,"overlay-wrapper")]=!0,t.opened=R,t)),de=_n(((n={})["".concat(i,"overlay-inner")]=!0,n["".concat(i,"drawer-wrapper")]=!0,n["".concat(i,"drawer-").concat(B)]=!0,n[c]=!!c,n)),pe=_n(((r={})["".concat(i,"drawer-v2")]=!0,r[c]=!!c,r)),he=null===O||!1===O?void 0:O||function(e){var t;switch(e){case"top":t={in:"slideInDown",out:"slideOutUp"};break;case"bottom":t={in:"slideInUp",out:"slideOutDown"};break;case"left":t={in:"slideInLeft",out:"slideOutLeft"};break;default:t={in:"slideInRight",out:"slideOutRight"}}return t}(B),fe={appear:300,enter:300,exit:250},me=Fn({width:m,height:g},N);return b.createElement(Lm.Provider,{value:Fn(Fn({},ee),{setVisibleOverlayToParent:function(e,t){t?te.current.set(e,t):te.current.delete(e),Z(e,t)}})},w.createPortal(b.createElement("div",{className:ue,style:T,ref:W},A?b.createElement(mu.OverlayAnimate,{visible:R,animation:!!he&&{in:"fadeIn",out:"fadeOut"},timeout:fe,unmountOnExit:!0},b.createElement("div",{className:"".concat(i,"overlay-backdrop"),onClick:function(e){ae&&se("maskClick",e)}})):null,b.createElement("div",{className:de,style:me,ref:G},b.createElement(mu.OverlayAnimate,{visible:R,animation:he,timeout:fe,onEnter:function(){oe(!1),Oo.setStyle(W.current,"display","")},onEntered:function(){if(l&&G.current&&G.current.bodyNode){var e=Po.getFocusNodeList(G.current.bodyNode);if(e.length>0&&e[0])Y.current=document.activeElement,e[0].focus()}Z(X,G.current)},onExited:ce},b.createElement(Im,Fn({},H,{v2:!0,prefix:i,title:u,className:pe,locale:Q,closeable:Ae,rtl:U,headerStyle:C,bodyStyle:x,onClose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return se.apply(void 0,Un(["closeClick"],Qn(e),!1))}}),d)))),V))};zm.displayName="Drawer";const Km=zm;var jm=function(e){function t(){var t=e.apply(this,Un([],Qn(arguments),!1))||this;return t.state={visible:!0,loading:!1},t.close=function(){t.setState({visible:!1})},t}return kn(t,e),t.prototype.render=function(){var e=this.props;e.visible;var t=e.content,n=Sn(e,["visible","content"]);return b.createElement(Km,Fn({},n,{visible:this.state.visible}),t)},t}(b.Component),Vm=sc.config(jm,{componentName:"Drawer"}),$m=function(e){void 0===e&&(e={});var t=document.createElement("div");document.body.appendChild(t);var n,r,o=e.contextConfig;o||(o=sc.getContext());var i=function(){var t=n&&n.getInstance();t&&t.close(),e.onClose&&e.onClose()};return w.render(b.createElement(sc,Fn({},o),b.createElement(Vm,Fn({},e,{onClose:i,afterClose:function(){var n;e.afterClose&&e.afterClose(),w.unmountComponentAtNode(t),null===(n=t.parentNode)||void 0===n||n.removeChild(t)},ref:function(e){r=e}}))),t,function(){n=r}),{hide:i}},Gm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e=this.props,t=e.v2,n=Sn(e,["v2"]);return t?b.createElement(Km,Fn({},n)):b.createElement(Dm,Fn({},n))},t}(b.Component);Gm.Inner=Im,Gm.show=$m,Gm.withContext=function(e){return function(t){return b.createElement(sc.Consumer,null,function(n){return b.createElement(e,Fn({},t,{contextDialog:{show:function(e){return void 0===e&&(e={}),$m(Fn(Fn({},e),{contextConfig:n}))}}}))})}};const Wm=sc.config(Gm);var Ym=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype.render=function(){var e,n,r,o,i=this.props,a=i.tip,A=i.visible,s=i.children,l=i.className,c=i.style,u=i.indicator,d=i.color,p=i.prefix,h=i.fullScreen,f=i.disableScroll,m=i.onVisibleChange,g=i.tipAlign,y=i.size,v=i.inline,w=i.rtl,B=i.safeNode,C=null,x="".concat(p,"loading-dot");if(u)C=u;else{var E=d,k=_n(((e={})["".concat(p,"loading-fusion-reactor")]=!0,e["".concat(p,"loading-medium-fusion-reactor")]="medium"===y,e));C=b.createElement("div",{className:k,dir:w?"rtl":void 0},b.createElement("span",{className:x,style:{backgroundColor:E}}),b.createElement("span",{className:x,style:{backgroundColor:E}}),b.createElement("span",{className:x,style:{backgroundColor:E}}),b.createElement("span",{className:x,style:{backgroundColor:E}}))}var F=_n(((n={})["".concat(p,"loading")]=!0,n["".concat(p,"open")]=A,n["".concat(p,"loading-inline")]=v,n[l]=l,n)),S=_n(((r={})["".concat(p,"loading-tip")]=!0,r["".concat(p,"loading-tip-fullscreen")]=h,r["".concat(p,"loading-right-tip")]="right"===g,r)),Q=Ho.pickOthers(t.propTypes,this.props),U=_n(((o={})["".concat(p,"loading-component")]=A,o["".concat(p,"loading-wrap")]=!0,o));return h?[s,b.createElement(Vd,Fn({key:"overlay",hasMask:!0,align:"cc cc",safeNode:B,disableScroll:f},Q,{className:l,style:c,visible:A,onRequestClose:m}),b.createElement("div",{className:S},b.createElement("div",{className:"".concat(p,"loading-indicator")},C),b.createElement("div",{className:"".concat(p,"loading-tip-content")},a),b.createElement("div",{className:"".concat(p,"loading-tip-placeholder")},a)))]:b.createElement("div",Fn({className:F,style:c},Q),A?b.createElement("div",{className:S},b.createElement("div",{className:"".concat(p,"loading-indicator")},C),b.createElement("div",{className:"".concat(p,"loading-tip-content")},a),b.createElement("div",{className:"".concat(p,"loading-tip-placeholder")},a)):null,b.createElement("div",{className:U},A?b.createElement("div",{className:"".concat(p,"loading-masker")}):null,s))},t.propTypes=Fn(Fn({},sc.propTypes),{prefix:Nn.string,tip:Nn.any,tipAlign:Nn.oneOf(["right","bottom"]),visible:Nn.bool,onVisibleChange:Nn.func,className:Nn.string,style:Nn.object,size:Nn.oneOf(["large","medium"]),indicator:Nn.any,color:Nn.string,fullScreen:Nn.bool,disableScroll:Nn.bool,safeNode:Nn.any,children:Nn.any,inline:Nn.bool,rtl:Nn.bool}),t.defaultProps={prefix:"next-",visible:!0,onVisibleChange:Io.noop,animate:null,tipAlign:"bottom",size:"large",inline:!0,disableScroll:!1},t}(b.Component);const qm=sc.config(Ym);var Xm=1e6,Jm=1e6,Zm="[big.js] ",eg=Zm+"Invalid ",tg=eg+"decimal places",ng=eg+"rounding mode",rg=Zm+"Division by zero",og={},ig=void 0,ag=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Ag(e,t,n,r){var o=e.c;if(n===ig&&(n=e.constructor.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error(ng);if(t<1)r=3===n&&(r||!!o[0])||0===t&&(1===n&&o[0]>=5||2===n&&(o[0]>5||5===o[0]&&(r||o[1]!==ig))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){if(r=1===n&&o[t]>=5||2===n&&(o[t]>5||5===o[t]&&(r||o[t+1]!==ig||1&o[t-1]))||3===n&&(r||!!o[0]),o.length=t,r)for(;++o[--t]>9;)if(o[t]=0,0===t){++e.e,o.unshift(1);break}for(t=o.length;!o[--t];)o.pop()}return e}function sg(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}og.abs=function(){var e=new this.constructor(this);return e.s=1,e},og.cmp=function(e){var t,n=this,r=n.c,o=(e=new n.constructor(e)).c,i=n.s,a=e.s,A=n.e,s=e.e;if(!r[0]||!o[0])return r[0]?i:o[0]?-a:0;if(i!=a)return i;if(t=i<0,A!=s)return A>s^t?1:-1;for(a=(A=r.length)<(s=o.length)?A:s,i=-1;++i<a;)if(r[i]!=o[i])return r[i]>o[i]^t?1:-1;return A==s?0:A>s^t?1:-1},og.div=function(e){var t=this,n=t.constructor,r=t.c,o=(e=new n(e)).c,i=t.s==e.s?1:-1,a=n.DP;if(a!==~~a||a<0||a>Xm)throw Error(tg);if(!o[0])throw Error(rg);if(!r[0])return e.s=i,e.c=[e.e=0],e;var A,s,l,c,u,d=o.slice(),p=A=o.length,h=r.length,f=r.slice(0,A),m=f.length,g=e,y=g.c=[],v=0,b=a+(g.e=t.e-e.e)+1;for(g.s=i,i=b<0?0:b,d.unshift(0);m++<A;)f.push(0);do{for(l=0;l<10;l++){if(A!=(m=f.length))c=A>m?1:-1;else for(u=-1,c=0;++u<A;)if(o[u]!=f[u]){c=o[u]>f[u]?1:-1;break}if(!(c<0))break;for(s=m==A?o:d;m;){if(f[--m]<s[m]){for(u=m;u&&!f[--u];)f[u]=9;--f[u],f[m]+=10}f[m]-=s[m]}for(;!f[0];)f.shift()}y[v++]=c?l:++l,f[0]&&c?f[m]=r[p]||0:f=[r[p]]}while((p++<h||f[0]!==ig)&&i--);return y[0]||1==v||(y.shift(),g.e--,b--),v>b&&Ag(g,b,n.RM,f[0]!==ig),g},og.eq=function(e){return 0===this.cmp(e)},og.gt=function(e){return this.cmp(e)>0},og.gte=function(e){return this.cmp(e)>-1},og.lt=function(e){return this.cmp(e)<0},og.lte=function(e){return this.cmp(e)<1},og.minus=og.sub=function(e){var t,n,r,o,i=this,a=i.constructor,A=i.s,s=(e=new a(e)).s;if(A!=s)return e.s=-s,i.plus(e);var l=i.c.slice(),c=i.e,u=e.c,d=e.e;if(!l[0]||!u[0])return u[0]?e.s=-s:l[0]?e=new a(i):e.s=1,e;if(A=c-d){for((o=A<0)?(A=-A,r=l):(d=c,r=u),r.reverse(),s=A;s--;)r.push(0);r.reverse()}else for(n=((o=l.length<u.length)?l:u).length,A=s=0;s<n;s++)if(l[s]!=u[s]){o=l[s]<u[s];break}if(o&&(r=l,l=u,u=r,e.s=-e.s),(s=(n=u.length)-(t=l.length))>0)for(;s--;)l[t++]=0;for(s=t;n>A;){if(l[--n]<u[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=u[n]}for(;0===l[--s];)l.pop();for(;0===l[0];)l.shift(),--d;return l[0]||(e.s=1,l=[d=0]),e.c=l,e.e=d,e},og.mod=function(e){var t,n=this,r=n.constructor,o=n.s,i=(e=new r(e)).s;if(!e.c[0])throw Error(rg);return n.s=e.s=1,t=1==e.cmp(n),n.s=o,e.s=i,t?new r(n):(o=r.DP,i=r.RM,r.DP=r.RM=0,n=n.div(e),r.DP=o,r.RM=i,this.minus(n.times(e)))},og.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},og.plus=og.add=function(e){var t,n,r,o=this,i=o.constructor;if(e=new i(e),o.s!=e.s)return e.s=-e.s,o.minus(e);var a=o.e,A=o.c,s=e.e,l=e.c;if(!A[0]||!l[0])return l[0]||(A[0]?e=new i(o):e.s=o.s),e;if(A=A.slice(),t=a-s){for(t>0?(s=a,r=l):(t=-t,r=A),r.reverse();t--;)r.push(0);r.reverse()}for(A.length-l.length<0&&(r=l,l=A,A=r),t=l.length,n=0;t;A[t]%=10)n=(A[--t]=A[t]+l[t]+n)/10|0;for(n&&(A.unshift(n),++s),t=A.length;0===A[--t];)A.pop();return e.c=A,e.e=s,e},og.pow=function(e){var t=this,n=new t.constructor("1"),r=n,o=e<0;if(e!==~~e||e<-1e6||e>Jm)throw Error(eg+"exponent");for(o&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return o?n.div(r):r},og.prec=function(e,t){if(e!==~~e||e<1||e>Xm)throw Error(eg+"precision");return Ag(new this.constructor(this),e,t)},og.round=function(e,t){if(e===ig)e=0;else if(e!==~~e||e<-Xm||e>Xm)throw Error(tg);return Ag(new this.constructor(this),e+this.e+1,t)},og.sqrt=function(){var e,t,n,r=this,o=r.constructor,i=r.s,a=r.e,A=new o("0.5");if(!r.c[0])return new o(r);if(i<0)throw Error(Zm+"No square root");0===(i=Math.sqrt(+sg(r,!0,!0)))||i===1/0?((t=r.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),e=new o(((i=Math.sqrt(t))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+a)):e=new o(i+""),a=e.e+(o.DP+=4);do{n=e,e=A.times(n.plus(r.div(n)))}while(n.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return Ag(e,(o.DP-=4)+e.e+1,o.RM)},og.times=og.mul=function(e){var t,n=this,r=n.constructor,o=n.c,i=(e=new r(e)).c,a=o.length,A=i.length,s=n.e,l=e.e;if(e.s=n.s==e.s?1:-1,!o[0]||!i[0])return e.c=[e.e=0],e;for(e.e=s+l,a<A&&(t=o,o=i,i=t,l=a,a=A,A=l),t=new Array(l=a+A);l--;)t[l]=0;for(s=A;s--;){for(A=0,l=a+s;l>s;)A=t[l]+i[s]*o[l-s-1]+A,t[l--]=A%10,A=A/10|0;t[l]=A}for(A?++e.e:t.shift(),s=t.length;!t[--s];)t.pop();return e.c=t,e},og.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==ig){if(e!==~~e||e<0||e>Xm)throw Error(tg);for(n=Ag(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return sg(n,!0,!!r)},og.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==ig){if(e!==~~e||e<0||e>Xm)throw Error(tg);for(e=e+(n=Ag(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return sg(n,!1,!!r)},og[Symbol.for("nodejs.util.inspect.custom")]=og.toJSON=og.toString=function(){var e=this,t=e.constructor;return sg(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},og.toNumber=function(){var e=+sg(this,!0,!0);if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(Zm+"Imprecise conversion");return e},og.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==ig){if(e!==~~e||e<1||e>Xm)throw Error(eg+"precision");for(n=Ag(new r(n),e,t);n.c.length<e;)n.c.push(0)}return sg(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},og.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(Zm+"valueOf disallowed");return sg(e,e.e<=t.NE||e.e>=t.PE,!0)};var lg=function e(){function t(n){var r=this;if(!(r instanceof t))return n===ig?e():new t(n);if(n instanceof t)r.s=n.s,r.e=n.e,r.c=n.c.slice();else{if("string"!=typeof n){if(!0===t.strict&&"bigint"!=typeof n)throw TypeError(eg+"value");n=0===n&&1/n<0?"-0":String(n)}!function(e,t){var n,r,o;if(!ag.test(t))throw Error(eg+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".",""));(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length);for(o=t.length,r=0;r<o&&"0"==t.charAt(r);)++r;if(r==o)e.c=[e.e=0];else{for(;o>0&&"0"==t.charAt(--o););for(e.e=n-r-1,e.c=[],n=0;r<=o;)e.c[n++]=+t.charAt(r++)}}(r,n)}r.constructor=t}return t.prototype=og,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.strict=false,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}(),cg=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,ug=Number.MIN_SAFE_INTEGER||1-Math.pow(2,53),dg=Ho.isNil,pg=function(e){function t(t){var n=e.call(this,t)||this;n.onFocus=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=n.props.onFocus;n.setFocus(!0),o&&o.apply(void 0,Un([e],Qn(t),!1))},n.onBlur=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=n.props,i=o.editable,a=o.stringMode,A=o.onBlur,s="".concat(n.state.displayValue);if(!0!==i||isNaN(s)||n.withinMinMax(s))n.setDisplayValue({displayValue:n.state.value});else{var l=n.correctValue(s);l=a?lg(l).toFixed(n.getPrecision()):l,n.state.value!==l&&n.setValue({value:l,e:e}),n.setDisplayValue({displayValue:l})}n.setFocus(!1),A&&A.apply(void 0,Un([e],Qn(t),!1))},n.onKeyDown=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];38===e.keyCode?n.up(!1,e):40===e.keyCode&&n.down(!1,e);var o=n.props.onKeyDown;o&&o.apply(void 0,Un([e],Qn(t),!1))};var r,o=t.defaultValue,i=t.stringMode;return r=null==(r="value"in t?t.value:o)?"":i?"".concat(r):r,n.state={value:r,hasFocused:!1,onlyDisplay:!1,displayValue:r,max:i?1/0:cg,min:i?-1/0:ug},n}return kn(t,e),t.getDerivedStateFromProps=function(e,t){if(t.onlyDisplay)return{value:t.value,displayValue:t.displayValue,onlyDisplay:!1};var n={},r=e.value,o=e.stringMode;if("value"in e&&"".concat(e.value)!=="".concat(t.value)){var i=null==r?"":o?"".concat(r):r;n.value=i,""!==t.displayValue&&Number(t.displayValue)===e.value||(n.displayValue=i)}var a=e.min,A=e.max;return"min"in e&&a!==t.min&&(n.min=dg(a)?o?-1/0:ug:a),"max"in e&&A!==t.max&&(n.max=dg(A)?o?1/0:cg:A),Object.keys(n).length?n:null},t.prototype.isGreaterThan=function(e,t){if(this.props.stringMode)try{return lg(e).gt(t)}catch(n){return Number(e)>Number(t)}return Number(e)>Number(t)},t.prototype.correctBoundary=function(e){var t=this.state,n=t.max,r=t.min;return this.isGreaterThan(r,e)?r:this.isGreaterThan(e,n)?n:e},t.prototype.setFocus=function(e){"function"==typeof this.props.format&&this.setState({hasFocused:e})},t.prototype.withinMinMax=function(e){var t=this.state,n=t.max,r=t.min;return!(isNaN(e)||this.isGreaterThan(e,n)||this.isGreaterThan(r,e))},t.prototype.withinMin=function(e){var t=this.state.min;return!isNaN(e)&&!this.isGreaterThan(t,e)},t.prototype.setDisplayValue=function(e){var t=e.displayValue,n=e.onlyDisplay,r=void 0!==n&&n;this.setState({displayValue:t,onlyDisplay:r})},t.prototype.getDisplayValue=function(){var e=this.state,t=e.displayValue,n=e.hasFocused,r=this.props.format;return"function"!=typeof r||n?"number"==typeof t&&1/t==-1/0?"-0":t:r(t)},t.prototype.shouldFireOnChange=function(e){return!(isNaN(e)||!this.withinMin(e))},t.prototype.onChange=function(e,t){e=(e=e.replace("\u3002",".").trim()).replace(/[^-.\d]/g,"");var n=!1;if(!0===this.props.editable&&this.shouldFireOnChange(e)){var r=this.correctValue(e);this.state.value!==r&&this.setValue({value:r,e:t}),void 0!==this.props.max&&this.isGreaterThan(e,this.state.max)&&(e=String(r))}else n=!0;this.setDisplayValue({displayValue:e,onlyDisplay:n})},t.prototype.correctValue=function(e){var t=e;if(""!==t){var n=this.getPrecision(),r=e.length-e.indexOf(".")-1,o=e.indexOf("."),i=0!==n?o+1+n:o+n;o>-1&&r>n&&(t=t.substr(0,i)),t=this.correctBoundary(t),t=this.props.stringMode?lg(t).toFixed():Number(t)}return isNaN(t)&&(t=this.state.value),"".concat(t)!=="".concat(e)&&(/\.[0-9]*0+$/g.test(e)||this.props.onCorrect({currentValue:t,oldValue:e})),t},t.prototype.setValue=function(e){var t=e.value,n=e.e,r=e.triggerType;"value"in this.props&&t!==this.props.value||this.setState({value:t}),this.props.onChange(isNaN(t)||""===t?void 0:t,Fn(Fn({},n),{triggerType:r}))},t.prototype.getPrecision=function(){var e=this.props.step.toString();if(e.indexOf("e-")>=0)return parseInt(e.slice(e.indexOf("e-")),10);var t=0;return e.indexOf(".")>=0&&(t=e.length-e.indexOf(".")-1),Math.max(t,this.props.precision)},t.prototype.getPrecisionFactor=function(){var e=this.getPrecision();return Math.pow(10,e)},t.prototype.up=function(e,t){this.step("up",e,t)},t.prototype.down=function(e,t){this.step("down",e,t)},t.prototype.step=function(e,t,n){n&&n.preventDefault();var r=this.props.onDisabled;if(t)return r&&r(n);var o=this.state.value;if(!isNaN(o)){""!==o||this.props.stringMode||(o=0);var i=this["".concat(e,"Step")](o);i=this.correctBoundary(i),"value"in this.props||this.setDisplayValue({displayValue:i}),this.setValue({value:i,e:n,triggerType:e})}},t.prototype.upStep=function(e){var t=this.props,n=t.step,r=t.stringMode,o=this.getPrecisionFactor();if("number"==typeof e&&!r){var i=(o*e+o*n)/o;return this.hackChrome(i)}return lg(e||"0").plus(n).toFixed(this.getPrecision())},t.prototype.downStep=function(e){var t=this.props,n=t.step,r=t.stringMode,o=this.getPrecisionFactor();if("number"==typeof e&&!r){var i=(o*e-o*n)/o;return this.hackChrome(i)}return lg(e||"0").minus(n).toFixed(this.getPrecision())},t.prototype.hackChrome=function(e){var t=this.getPrecision();return t>0?Number(Number(e).toFixed(t)):e},t.prototype.focus=function(){this.inputRef&&this.inputRef.getInstance().focus()},t.prototype.saveInputRef=function(e){this.inputRef=e},t.prototype.getInputNode=function(){return this.inputRef},t.prototype.handleMouseDown=function(e){e.preventDefault()},t.prototype.render=function(){var e,n,r=this.props,o=r.device,i=r.prefix,a=r.rtl,A=r.disabled,s=r.style,l=r.className,c=r.size,u=r.autoFocus,d=r.editable,p=r.state,h=r.label,f=r.upBtnProps,m=void 0===f?{}:f,g=r.downBtnProps,y=void 0===g?{}:g,v=r.innerAfter,w=r.isPreview,B=r.renderPreview,C=r.hasTrigger,x=r.alwaysShowTrigger,E=this.state,k=E.max,F=E.min,S="phone"===o||"tablet"===o||"inline"===this.props.type?"inline":"normal",Q="".concat(i,"number-picker"),U=_n(((e={})[Q]=!0,e["".concat(Q,"-").concat(S)]=S,e["".concat(i).concat(c)]=!0,e["".concat(Q,"-show-trigger")]=x,e["".concat(Q,"-no-trigger")]=!C,e["".concat(i,"disabled")]=A,e),l),O=!1,T=!1,M=this.state.value;isNaN(M)||(this.isGreaterThan(k,M)||(O=!0),(this.isGreaterThan(F,M)||F===M)&&(T=!0));var I=null,N=null,H=null;"normal"===S?I=b.createElement("span",{className:"".concat(Q,"-handler")},b.createElement(Jh,Fn({},m,{onMouseDown:this.handleMouseDown,disabled:A,className:"".concat(m.className||""," ").concat(O?"disabled":""),onClick:this.up.bind(this,O),tabIndex:-1,"aria-label":"icon-up"}),b.createElement(Xd,{type:"arrow-up",className:"".concat(Q,"-up-icon")})),b.createElement(Jh,Fn({},y,{onMouseDown:this.handleMouseDown,disabled:A,className:"".concat(y.className||""," ").concat(T?"disabled":""),onClick:this.down.bind(this,T),tabIndex:-1,"aria-label":"icon-down"}),b.createElement(Xd,{type:"arrow-down",className:"".concat(Q,"-down-icon")}))):(N=b.createElement(Jh,Fn({},y,{size:c,disabled:A,className:"".concat(y.className||""," ").concat(T?"disabled":""),onClick:this.down.bind(this,T),tabIndex:-1,"aria-label":"icon-minus"}),b.createElement(Xd,{type:"minus",className:"".concat(Q,"-minus-icon")})),H=b.createElement(Jh,Fn({},m,{size:c,disabled:A,className:"".concat(m.className||""," ").concat(O?"disabled":""),onClick:this.up.bind(this,O),tabIndex:-1,"aria-label":"icon-add"}),b.createElement(Xd,{type:"add",className:"".concat(Q,"-add-icon")})));var _=Ho.pickOthers(t.propTypes,this.props),P=Ho.pickAttrsWith(this.props,"data-"),D=_n(((n={})["".concat(i,"form-preview")]=!0,n),l);return w?"function"==typeof B?b.createElement("div",Fn({},_,{style:s,className:D}),B(this.getDisplayValue(),this.props)):b.createElement("p",Fn({},_,{style:s,className:D}),this.getDisplayValue(),"\xa0",v):b.createElement("span",Fn({className:U,style:s,dir:a?"rtl":void 0},P),b.createElement(ff,Fn({},_,{hasClear:!1,max:k,min:F,"aria-label":"number picker",state:"error"===p?"error":void 0,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown,autoFocus:u,readOnly:!d,value:this.getDisplayValue(),disabled:A,size:c,onChange:this.onChange.bind(this),ref:this.saveInputRef.bind(this),label:h,innerAfter:v,extra:C?I:null,addonBefore:N,addonAfter:H,composition:!0})))},t.propTypes={prefix:Nn.string,type:Nn.oneOf(["normal","inline"]),size:Nn.oneOf(["large","medium","small"]),value:Nn.oneOfType([Nn.number,Nn.string]),defaultValue:Nn.oneOfType([Nn.number,Nn.string]),disabled:Nn.bool,step:Nn.oneOfType([Nn.number,Nn.string]),precision:Nn.number,editable:Nn.bool,autoFocus:Nn.bool,onChange:Nn.func,onKeyDown:Nn.func,onFocus:Nn.func,onBlur:Nn.func,onCorrect:Nn.func,onDisabled:Nn.func,max:Nn.oneOfType([Nn.number,Nn.string]),min:Nn.oneOfType([Nn.number,Nn.string]),className:Nn.string,style:Nn.object,state:Nn.oneOf(["error"]),format:Nn.func,upBtnProps:Nn.object,downBtnProps:Nn.object,label:Nn.node,innerAfter:Nn.node,rtl:Nn.bool,isPreview:Nn.bool,renderPreview:Nn.func,device:Nn.oneOf(["phone","tablet","desktop"]),hasTrigger:Nn.bool,alwaysShowTrigger:Nn.bool,stringMode:Nn.bool},t.defaultProps={prefix:"next-",type:"normal",size:"medium",step:1,style:{},precision:0,editable:!0,onChange:Io.noop,onKeyDown:Io.noop,onBlur:Io.noop,onCorrect:Io.noop,onDisabled:Io.noop,hasTrigger:!0,alwaysShowTrigger:!1,stringMode:!1},t.displayName="NumberPicker",t}(b.Component);const hg=lr(pg),fg=sc.config(hg,{transform:function(e){return"onDisabled"in e&&"function"==typeof e.onDisabled&&No.warning("[NumberPicker]: onDisabled is deleted!"),"state"in e&&"success"===e.state&&delete e.state,e},exportNames:["getInputNode"]});function mg(e,t,n){return Array.isArray(t)||(t=[n,t]),e>=t[0]&&e<=t[1]}function gg(e,t,n){return 100*(n-e)/(t-e)}function yg(e){var t=0,n=e.toString();return-1!==n.indexOf(".")&&(t=n.length-n.indexOf(".")-1),t}function vg(e,t){return Array.isArray(e)?e[0]===t[0]&&e[1]===t[1]:e===t}var bg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype._renderItems=function(){var e=this.props,t=e.min,n=e.max,r=e.value,o=e.prefix,i=e.scales,a=e.rtl,A=[];return i.forEach(function(e,i){var s,l,c=_n(((s={})["".concat(o,"range-scale-item")]=!0,s.activated=mg(e,r,t),s));l=a?{right:"".concat(gg(t,n,e),"%"),left:"auto"}:{left:"".concat(gg(t,n,e),"%"),right:"auto"},A.push(b.createElement("span",{className:c,style:l,key:i}))}),A},t.prototype.render=function(){var e,t=this.props.prefix,n=_n(((e={})["".concat(t,"range-scale")]=!0,e)),r=this._renderItems();return b.createElement("div",{className:n},r)},t.displayName="Scale",t.propTypes={min:Nn.number,max:Nn.number,value:Nn.oneOfType([Nn.number,Nn.arrayOf(Nn.number)]),prefix:Nn.string,scales:Nn.arrayOf(Nn.number),rtl:Nn.bool},t.defaultProps={prefix:"next-",min:0,max:100,value:0,rtl:!1},t}(b.Component);const wg=bg;var Bg=function(e){var t,n=e.prefix,r=_n(((t={})["".concat(n,"range-track")]=!0,t));return b.createElement("div",{className:r})};Bg.propTypes={prefix:Nn.string},Bg.defaultProps={prefix:"next-"},Bg.displayName="Track";const Cg=Bg;var xg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype._getStyle=function(){var e=this.props,t=e.min,n=e.max,r=e.reverse,o=e.rtl,i=this.props.value;Array.isArray(i)||(i=[t,i]);var a=100*(i[1]-i[0])/(n-t);return o||r?o&&!r?{width:"".concat(a,"%"),left:"".concat(gg(t,n,n+t-i[1]),"%")}:!o&&r?{width:"".concat(100-a,"%"),left:"".concat(gg(t,n,i[0])+a,"%")}:{width:"".concat(100-a,"%"),left:"".concat(gg(t,n,i[0]),"%")}:{width:"".concat(a,"%"),left:"".concat(gg(t,n,i[0]),"%")}},t.prototype._getStyleLeft=function(){var e=this.props,t=e.min,n=e.max,r=e.rtl,o=this.props.value;Array.isArray(o)||(o=[t,o]);var i={width:"".concat(gg(t,n,o[0]),"%"),left:0};return r&&(i.width="".concat(100-gg(t,n,o[1]),"%")),i},t.prototype._getStyleRight=function(){var e=this.props,t=e.min,n=e.max,r=e.rtl,o=this.props.value;Array.isArray(o)||(o=[t,o]);var i=100*(o[1]-o[0])/(n-t),a={width:"".concat(100-gg(t,n,o[0])-i,"%"),left:"".concat(gg(t,n,o[0])+i,"%")};return r&&(a={width:"".concat(gg(t,n,o[0]),"%"),left:"".concat(100-gg(t,n,o[0]),"%")}),a},t.prototype.render=function(){var e,t=this.props,n=t.prefix,r=t.slider,o=t.reverse,i=_n(((e={})["".concat(n,"range-selected")]=!0,e)),a=b.createElement("div",{className:i,style:this._getStyle()});return"double"===r&&o&&(a=b.createElement("div",null,b.createElement("div",{className:i,style:this._getStyleLeft()}),b.createElement("div",{className:i,style:this._getStyleRight()}))),a},t.displayName="Selected",t.propTypes={min:Nn.number,max:Nn.number,slider:Nn.string,value:Nn.oneOfType([Nn.number,Nn.arrayOf(Nn.number)]),prefix:Nn.string,reverse:Nn.bool,rtl:Nn.bool},t.defaultProps={prefix:"next-",slider:"single",min:0,max:100,value:0,reverse:!1,rtl:!1},t}(b.Component);const Eg=xg;var kg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kn(t,e),t.prototype._renderItems=function(){var e=this.props,t=e.min,n=e.max,r=e.value,o=e.prefix,i=e.marks,a=e.rtl,A=[];return Object.keys(i).forEach(function(e,s){var l,c,u=_n(((l={})["".concat(o,"range-mark-text")]=!0,l.activated=mg(e,r,t),l));c=a?{right:"".concat(gg(t,n,e),"%"),left:"auto"}:{left:"".concat(gg(t,n,e),"%"),right:"auto"},A.push(b.createElement("span",{className:u,style:c,key:s},i[e]))}),A},t.prototype.render=function(){var e,t=this.props,n=t.prefix,r=t.marksPosition,o="".concat(n,"above"===r?"range-mark-above":"range-mark-below"),i=_n(o,((e={})["".concat(n,"range-mark")]=!0,e)),a=this._renderItems();return b.createElement("div",{className:i},a)},t.displayName="Mark",t.propTypes={min:Nn.number,max:Nn.number,value:Nn.oneOfType([Nn.number,Nn.arrayOf(Nn.number)]),prefix:Nn.string,marks:Nn.object,marksPosition:Nn.string,rtl:Nn.bool},t.defaultProps={prefix:"next-",min:0,max:100,value:0,marksPosition:"",rtl:!1},t}(b.Component);const Fg=kg;function Sg(e){var t,n=e.prefix,r=e.hasMovingClass,o=e.min,i=e.max,a=e.value,A=e.onKeyDown,s=e.rtl,l=_n(((t={})["".concat(n,"range-slider")]=!0,t["".concat(n,"range-slider-moving")]=r,t));return b.createElement("div",Fn({className:l,onKeyDown:A,role:"slider",tabIndex:0},function(e,t,n,r){return{style:{left:"".concat(r?100-gg(e,t,n):gg(e,t,n),"%"),zIndex:100},"aria-valuenow":n,"aria-valuetext":n,"aria-valuemin":e,"aria-valuemax":t}}(o,i,a,s)),b.createElement("div",{className:"".concat(n,"range-slider-inner")}))}Sg.propTypes={min:Nn.number,max:Nn.number,value:Nn.number,prefix:Nn.string,hasMovingClass:Nn.bool,rtl:Nn.bool},Sg.defaultProps={prefix:"next-",min:0,max:100,value:0,hasMovingClass:!1,rtl:!1},Sg.displayName="Slider";var Qg=fp.Tooltip,Ug=Io.noop;function Og(e,t,n,r){return r?{left:"".concat(gg(e,t,t+e-n[1]),"%"),right:"".concat(gg(e,t,n[0]),"%")}:{left:"".concat(gg(e,t,n[0]),"%"),right:"".concat(100-gg(e,t,n[1]),"%")}}function Tg(e){var t=e.prefix,n=e.min,r=e.max,o=e.value,i=e.disabled,a=e.onMouseEnter,A=e.onMouseLeave,s=e.onMouseDown,l=e.rtl,c=!i&&e.hasMovingClass?"".concat(t,"range-active"):"";return b.createElement("div",{className:"".concat(t,"range-frag ").concat(c),style:Og(n,r,o,l),onMouseEnter:a,onMouseLeave:A,onMouseDown:s},b.createElement("div",{className:"".concat(t,"range-selected")}),b.createElement("div",{className:"".concat(t,"range-slider")},b.createElement("div",{className:"".concat(t,"range-slider-inner")})),b.createElement("div",{className:"".concat(t,"range-slider")},b.createElement("div",{className:"".concat(t,"range-slider-inner")})))}Tg.propTypes={prefix:Nn.string,min:Nn.number,max:Nn.number,hasMovingClass:Nn.bool,onMouseEnter:Nn.func,onMouseLeave:Nn.func,onMouseDown:Nn.func,value:Nn.arrayOf(Nn.number),disabled:Nn.bool,rtl:Nn.bool};var Mg=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasMovingClass:!1,onTooltipVisibleChange:!1,tooltipAnimation:!0},n}return kn(t,e),t.prototype._onMouseEnter=function(){"down"!==this.keyState&&(this.keyState="enter"),this.setState({hasMovingClass:!0})},t.prototype._onMouseLeave=function(){"enter"===this.keyState&&this.setState({hasMovingClass:!1})},t.prototype._onMouseDown=function(){this.keyState="down",this.setState({hasMovingClass:!0}),this._addDocumentEvents()},t.prototype._onMouseUp=function(){"down"===this.keyState&&(this.keyState="",this._removeDocumentEvents(),this.setState({hasMovingClass:!1}))},t.prototype._addDocumentEvents=function(){this._onMouseUpListener=Mo.on(document,"mouseup",this._onMouseUp.bind(this))},t.prototype._removeDocumentEvents=function(){this._onMouseUpListener&&(this._onMouseUpListener.off(),this._onMouseUpListener=null)},t.prototype.render=function(){var e=this.props,t=e.hasTip,n=e.value,r=e.tipRender,o=e.tooltipVisible,i=e.hasMovingClass,a={hasMovingClass:i||this.state.hasMovingClass,onMouseEnter:this._onMouseEnter.bind(this),onMouseLeave:this._onMouseLeave.bind(this),onMouseDown:this._onMouseDown.bind(this)};return t?b.createElement(Qg,{popupContainer:function(e){return e.parentNode},popupProps:{visible:o||i,animation:!!this.state.tooltipAnimation&&{in:"expandInUp",out:"expandOutDown"}},trigger:Tg(Fn(Fn({},this.props),a)),align:"t"},r("".concat(n[0],"-").concat(n[1]))):Tg(Fn(Fn({},this.props),a))},t.displayName="FixedSlider",t.propTypes={hasTip:Nn.bool,tooltipVisible:Nn.bool,onTooltipVisibleChange:Nn.func,tooltipAnimation:Nn.oneOfType([Nn.bool,Nn.object]),value:Nn.oneOfType([Nn.number,Nn.arrayOf(Nn.number)]),tipRender:Nn.func,disabled:Nn.bool,hasMovingClass:Nn.bool,rtl:Nn.bool},t.defaultProps={disabled:!1,hasTip:!0,onChange:Ug,onProcess:Ug,tipRender:function(e){return e},reverse:!1,rtl:!1},t}(b.Component);const Ig=Mg;var Ng=fp.Tooltip,Hg=Io.noop,_g=Io.bindCtx,Pg=Ho.pickOthers;function Dg(e,t){return t||"double"===e}function Lg(e){var t=e.hasTip,n=e.value,r=e.tipRender,o=e.slider,i=e.tooltipVisible,a=e.onTooltipVisibleChange,A=e.tooltipAnimation;if(Dg(o)){var s=n;return t?b.createElement(Ng,{popupContainer:function(e){return e.parentNode},popupProps:{visible:i,onVisibleChange:a,animation:A,needAdjust:!1},trigger:Sg(Fn(Fn({},e),{value:s[0]})),align:"t"},r("".concat(s[0]))):Sg(Fn(Fn({},e),{value:s[0]}))}return null}function Rg(e){var t=Object.assign({},e),n=t.hasTip,r=t.value,o=t.tipRender,i=t.slider,a=t.tooltipVisible,A=t.onTooltipVisibleChange,s=t.tooltipAnimation;if(Dg(i)){var l=r;return delete t.onKeyDown,n?b.createElement(Ng,{popupContainer:function(e){return e.parentNode},popupProps:{visible:a,onVisibleChange:A,animation:s,needAdjust:!1},trigger:Sg(Fn(Fn({},t),{value:l[1]})),align:"t"},o(l[1])):Sg(Fn(Fn({},t),{value:l[1]}))}return n?b.createElement(Ng,{popupContainer:function(e){return e.parentNode},popupProps:{visible:a,onVisibleChange:A,animation:s,needAdjust:!1},animation:{in:"fadeInUp",out:"fadeOutDown"},trigger:Sg(t),align:"t"},o(r)):Sg(t)}function zg(e){e.stopPropagation(),e.preventDefault()}Lg.propTypes={hasTip:Nn.bool,tooltipVisible:Nn.bool,onTooltipVisibleChange:Nn.func,tooltipAnimation:Nn.oneOfType([Nn.bool,Nn.object]),value:Nn.oneOfType([Nn.number,Nn.arrayOf(Nn.number)]),tipRender:Nn.func,slider:Nn.oneOf(["single","double"])},Rg.propTypes={hasTip:Nn.bool,tooltipVisible:Nn.bool,onTooltipVisibleChange:Nn.func,tooltipAnimation:Nn.oneOfType([Nn.bool,Nn.object]),value:Nn.oneOfType([Nn.number,Nn.arrayOf(Nn.number)]),tipRender:Nn.func,slider:Nn.oneOf(["single","double"])},Rg.displayName="UpperSlider";var Kg=function(e){function t(t){var n=e.call(this,t)||this,r=t.min,o=Dg(t.slider)?[r,r]:r,i="defaultValue"in t?t.defaultValue:o,a=void 0!==t.value?t.value:i;return n.state={value:a,tempValue:a,hasMovingClass:!1,lowerTooltipVisible:!1,upperTooltipVisible:!1,tooltipAnimation:!0},_g(n,["handleLowerTooltipVisibleChange","handleUpperTooltipVisibleChange","onKeyDown"]),n}return kn(t,e),t.getDerivedStateFromProps=function(e,t){if("value"in e){var n=e.min,r=e.slider,o=e.value,i=t.hasMovingClass,a={value:o};return void 0===o&&(a.value=Dg(r)?[n,n]:n),i||(a.tempValue=a.value),a}return null},t.prototype._marksToScales=function(e){var t=[];if("[object Object]"===Object.prototype.toString.call(e))for(var n in e)Object.hasOwnProperty.call(e,n)&&t.push(parseInt(n));else t=e;return t},t.prototype._calcScales=function(){var e=this.props,t=e.min,n=e.max,r=e.marks,o=this._marksToScales(r);if(!1!==o){if(Array.isArray(o))return o;var i=(n-t)/o,a=[];a.push(t);for(var A=1;A<o;A++)a.push(t+A*i);return a.push(n),a}return[]},t.prototype._calcMarks=function(){var e=this.props,t=e.min,n=e.max,r=e.marks,o={};if(Array.isArray(r))r.forEach(function(e){o[e]=e.toString()});else if("number"==typeof r){var i=(n-t)/r;o[t]=t;for(var a=1;a<r;a++){var A=t+a*i,s=yg(A);s>2&&(s=2),A=A.toFixed(s),o[A]=A}o[n]=n}else o=r;return o},t.prototype._onMouseDown=function(e){0===e.button&&(this._start(e.pageX),this._addDocumentMouseEvents(),zg(e))},t.prototype._onTouchStart=function(e){this._start(e.targetTouches[0].pageX),this._addDocumentTouchEvents(),e.stopPropagation()},t.prototype.onKeyDown=function(e){if(!this.props.disabled&&(e.keyCode===Lo.LEFT_ARROW||e.keyCode===Lo.RIGHT_ARROW)){e.stopPropagation(),e.preventDefault();var t=void 0;(t=e.keyCode===Lo.LEFT_ARROW?this.state.value-this.props.step:this.state.value+this.props.step)>this.props.max&&(t=this.props.max),t<this.props.min&&(t=this.props.min),t!==this.state.value&&(this.setState({value:t}),this.props.onChange(t))}},t.prototype._onContextMenu=function(e){zg(e)},t.prototype._start=function(e){this.setState({hasMovingClass:!0});var t=this.state.tempValue,n=this.dom,r=Oo.getOffset(n).left,o=n.clientWidth;if(!o&&n.style.width){var i=n.style.width.indexOf("px");-1!==i&&(o=Number(n.style.width.slice(0,i)))}this._moving={start:r,end:r+o,startValue:t},this._onProcess(e,!0)},t.prototype._end=function(){var e=this._moving.startValue,t=this.state,n=t.tempValue,r=t.value;this._moving=null,this._removeDocumentEvents(),this.setState({hasMovingClass:!1,lowerTooltipVisible:!1,upperTooltipVisible:!1,tooltipAnimation:!0}),vg(n,e)||("value"in this.props?this.setState({tempValue:r,value:r}):this.setState({value:n}),this.props.onChange(n))},t.prototype._move=function(e){var t="mousemove"===e.type?e.pageX:e.targetTouches[0].pageX;this._onProcess(t)},t.prototype._onProcess=function(e,t){var n=this.state.tempValue,r=this._positionToCurrent(e);this.isFixedWidth?t&&(this.lastPosition=r):t?(this.lastPosition=r,Dg(this.props.slider)?this._moving.dragging=function(e,t){var n="upper";n=e>t[1]?"upper":e<t[0]||e<(t[0]+t[1])/2?"lower":"upper";return n}(r,n):this._moving.dragging="upper",this.setState({lowerTooltipVisible:"lower"===this._moving.dragging,upperTooltipVisible:"upper"===this._moving.dragging,tooltipAnimation:!1})):"lower"===this.oldDragging&&"upper"===this._moving.dragging?this.setState({upperTooltipVisible:!0,lowerTooltipVisible:!1}):"upper"===this.oldDragging&&"lower"===this._moving.dragging&&this.setState({upperTooltipVisible:!1,lowerTooltipVisible:!0}),this.oldDragging=this._moving.dragging;var o=this._currentToValue(r,n,this.lastPosition,this.isFixedWidth);this.lastPosition=r,vg(o,n)||(this.setState({tempValue:o}),this.props.onProcess(o))},t.prototype._addDocumentMouseEvents=function(){this._onMouseMoveListener=Mo.on(document,"mousemove",this._move.bind(this)),this._onMouseUpListener=Mo.on(document,"mouseup",this._end.bind(this)),this._onContextMenuListener=Mo.on(document,"contextmenu",this._onContextMenu.bind(this))},t.prototype._addDocumentTouchEvents=function(){this._onTouchMoveListener=Mo.on(document,"touchmove",this._move.bind(this)),this._onTouchEndListener=Mo.on(document,"touchend",this._end.bind(this))},t.prototype._removeDocumentEvents=function(){this._onMouseMoveListener&&(this._onMouseMoveListener.off(),this._onMouseMoveListener=null),this._onMouseUpListener&&(this._onMouseUpListener.off(),this._onMouseUpListener=null),this._onTouchMoveListener&&(this._onTouchMoveListener.off(),this._onTouchMoveListener=null),this._onTouchEndListener&&(this._onTouchEndListener.off(),this._onTouchEndListener=null),this._onContextMenuListener&&(this._onContextMenuListener.off(),this._onContextMenuListener=null)},t.prototype._positionToCurrent=function(e){var t=this._moving,n=t.start,r=t.end,o=this.props,i=o.step,a=o.min,A=o.max,s=o.rtl;e<n?e=n:e>r&&(e=r);var l=gg(n,r,e);l=s?100-l:l;var c=(a+parseFloat((Math.round(l/100*(A-a)/i)*i).toFixed(yg(i)))).toFixed(yg(i));return Number(c)},t.prototype._currentToValue=function(e,t,n,r){var o=this._moving.dragging,i=this.props,a=i.min,A=i.max;if(Dg(this.props.slider,r)){var s=void 0,l=t,c=yg(this.props.step),u=e-n,d=+(+l[0]+u).toFixed(c),p=+(+l[1]+u).toFixed(c),h=+(A-l[1]+l[0]).toFixed(c),f=+(a+l[1]-l[0]).toFixed(c);return r?s=d<a?[a,f]:p>A?[h,A]:[d,p]:"lower"===o?e>l[1]?(s=[l[1],e],this._moving.dragging="upper"):s=[e,l[1]]:"upper"===o&&(e<l[0]?(s=[e,l[0]],this._moving.dragging="lower"):s=[l[0],e]),s}return e},t.prototype.handleLowerTooltipVisibleChange=function(e){this.state.hasMovingClass||this.setState({lowerTooltipVisible:e})},t.prototype.handleUpperTooltipVisibleChange=function(e){this.state.hasMovingClass||this.setState({upperTooltipVisible:e})},t.prototype.render=function(){var e,n=this,r=this._moving?this.state.tempValue:this.state.value,o=this.props,i=o.prefix,a=o.min,A=o.max,s=o.disabled,l=o.style,c=o.id,u=o.slider,d=o.reverse,p=o.className,h=o.marks,f=o.marksPosition,m=o.hasTip,g=o.tipRender,y=o.fixedWidth,v=o.defaultValue,w=o.tooltipVisible,B=o.rtl,C=o.isPreview,x=o.renderPreview,E=Pg(Object.keys(t.propTypes),this.props),k=_n(((e={})["".concat(i,"range")]=!0,e.disabled=s,e[p]=p,e));Array.isArray(r)?r.forEach(function(e,t){e>A&&(r[t]=A)}):r>A&&(r=A);var F={prefix:i,min:a,max:A,value:r,reverse:d,slider:u,hasTip:m,tipRender:g,marksPosition:f,tooltipVisible:w,hasMovingClass:this.state.hasMovingClass,disabled:s,rtl:B};if(this.isFixedWidth=y&&(r?Array.isArray(r):!!v&&Array.isArray(v)),C){var S=_n(p,"".concat(i,"form-preview"));return"renderPreview"in this.props?b.createElement("div",Fn({id:c,dir:B?"rtl":"ltr"},E,{className:S}),x(r,this.props)):b.createElement("p",Fn({id:c,dir:B?"rtl":"ltr"},E,{className:S}),Array.isArray(r)?r.join("~"):r)}return b.createElement("div",Fn({ref:function(e){n.dom=e}},E,{style:l,className:k,id:c,dir:B?"rtl":"ltr",onMouseDown:s?Hg:this._onMouseDown.bind(this),onTouchStart:s?Hg:this._onTouchStart.bind(this)}),!1!==h&&"above"===f?b.createElement(Fg,Fn({},F,{marks:this._calcMarks()})):null,b.createElement("div",{className:"".concat(i,"range-inner")},b.createElement(wg,Fn({},F,{scales:this._calcScales()})),b.createElement(Cg,Fn({},F)),this.isFixedWidth?b.createElement(Ig,Fn({},F)):b.createElement("div",null,b.createElement(Eg,Fn({},F)),b.createElement(Lg,Fn({},F,{hasMovingClass:this.state.hasMovingClass&&this._moving&&"lower"===this._moving.dragging,tooltipVisible:w||this.state.lowerTooltipVisible,onTooltipVisibleChange:this.handleLowerTooltipVisibleChange,tooltipAnimation:!!this.state.tooltipAnimation&&{in:"expandInUp",out:"expandOutDown"}})),b.createElement(Rg,Fn({},F,{onKeyDown:this.onKeyDown,hasMovingClass:this.state.hasMovingClass&&this._moving&&"upper"===this._moving.dragging,tooltipVisible:w||this.state.upperTooltipVisible,onTooltipVisibleChange:this.handleUpperTooltipVisibleChange,tooltipAnimation:!!this.state.tooltipAnimation&&{in:"expandInUp",out:"expandOutDown"}})))),!1!==h&&"below"===f?b.createElement(Fg,Fn({},F,{marks:this._calcMarks()})):null)},t.displayName="Range",t.contextTypes={prefix:Nn.string},t.propTypes={prefix:Nn.string,className:Nn.string,style:Nn.object,slider:Nn.oneOf(["single","double"]),min:Nn.number,max:Nn.number,step:Nn.number,value:Nn.oneOfType([Nn.number,Nn.arrayOf(Nn.number)]),tempValue:Nn.oneOfType([Nn.number,Nn.arrayOf(Nn.number)]),defaultValue:Nn.oneOfType([Nn.number,Nn.arrayOf(Nn.number)]),marks:Nn.oneOfType([Nn.bool,Nn.number,Nn.arrayOf(Nn.number),Nn.object]),marksPosition:Nn.oneOf(["above","below"]),disabled:Nn.bool,onChange:Nn.func,onProcess:Nn.func,hasTip:Nn.bool,tipRender:Nn.func,id:Nn.string,reverse:Nn.bool,pure:Nn.bool,fixedWidth:Nn.bool,tooltipVisible:Nn.bool,rtl:Nn.bool,isPreview:Nn.bool,renderPreview:Nn.func},t.defaultProps={prefix:"next-",slider:"single",min:0,max:100,step:1,marks:!1,disabled:!1,fixedWidth:!1,tooltipVisible:!1,hasTip:!0,onChange:Hg,onProcess:Hg,tipRender:function(e){return e},reverse:!1,pure:!1,marksPosition:"above",rtl:!1,isPreview:!1},t}(b.Component);const jg=lr(Kg),Vg=sc.config(jg,{transform:function(e,t){if("hasTips"in e){t("hasTips","hasTip","Range");var n=e.hasTips,r=Sn(e,["hasTips"]);e=Fn({hasTip:n},r)}if("tipFormatter"in e){t("tipFormatter","tipRender","Range");var o=e.tipFormatter;r=Sn(e,["tipFormatter"]);e=Fn({tipRender:o},r)}return e}});var $g=function(e){function t(t){var n=e.call(this,t)||this,r=t.checked||t.defaultChecked;return n.onChange=n.onChange.bind(n),n.onKeyDown=n.onKeyDown.bind(n),n.state={checked:r},n}return kn(t,e),t.getDerivedStateFromProps=function(e,t){return"checked"in e&&e.checked!==t.checked?{checked:!!e.checked}:null},t.prototype.onChange=function(e){var t=!this.state.checked;"checked"in this.props||this.setState({checked:t}),this.props.onChange(t,e),this.props.onClick&&this.props.onClick(e)},t.prototype.onKeyDown=function(e){e.keyCode!==Lo.ENTER&&e.keyCode!==Lo.SPACE||this.onChange(e),this.props.onKeyDown&&this.props.onKeyDown(e)},t.prototype.render=function(){var e,t,n=this.props,r=n.prefix,o=n.className,i=n.disabled,a=n.readOnly,A=n.size,s=n.loading,l=n.autoWidth,c=n.checkedChildren,u=n.unCheckedChildren,d=n.rtl,p=n.isPreview,h=n.renderPreview,f=n.locale;n.onChange;var m=Sn(n,["prefix","className","disabled","readOnly","size","loading","autoWidth","checkedChildren","unCheckedChildren","rtl","isPreview","renderPreview","locale","onChange"]),g=this.state.checked,y=g?"on":"off",v=g?c:u,w=A;"small"!==w&&"medium"!==w&&(w="medium");var B,C=_n(((e={})["".concat(r,"switch")]=!0,e["".concat(r,"switch-loading")]=s,e["".concat(r,"switch-").concat(y)]=!0,e["".concat(r,"switch-").concat(w)]=!0,e["".concat(r,"switch-auto-width")]=l,e),o);if(B=i||a?{disabled:!0,onClick:void 0}:{onClick:this.onChange,tabIndex:0,onKeyDown:this.onKeyDown,disabled:!1},p){var x=_n(o,((t={})["".concat(r,"form-preview")]=!0,t));return"function"==typeof h?b.createElement("div",Fn({className:x},m),h(g,this.props)):b.createElement("p",Fn({className:x},m),v||f[y])}return b.createElement("div",Fn({role:"switch",dir:d?"rtl":void 0,tabIndex:0},m,{className:C},B,{"aria-checked":g}),b.createElement("div",{className:"".concat(r,"switch-btn")},s&&b.createElement(Xd,{type:"loading",className:"".concat(r,"switch-inner-icon")})),b.createElement("div",{className:"".concat(r,"switch-children")},v))},t.displayName="Switch",t.propTypes=Fn(Fn({},sc.propTypes),{name:Nn.string,prefix:Nn.string,rtl:Nn.bool,pure:Nn.bool,className:Nn.string,style:Nn.object,checkedChildren:Nn.any,unCheckedChildren:Nn.any,onChange:Nn.func,checked:Nn.bool,defaultChecked:Nn.bool,disabled:Nn.bool,loading:Nn.bool,size:Nn.oneOf(["medium","small"]),onClick:Nn.func,onKeyDown:Nn.func,isPreview:Nn.bool,renderPreview:Nn.func,autoWidth:Nn.bool,locale:Nn.object}),t.defaultProps={prefix:"next-",size:"medium",disabled:!1,defaultChecked:!1,isPreview:!1,loading:!1,readOnly:!1,autoWidth:!1,onChange:function(){},locale:Xs.Switch},t}(b.Component);const Gg=sc.config(lr($g));var Wg={exports:{}},Yg=Wg.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=Yg);var qg=Wg.exports,Xg={exports:{}},Jg=Xg.exports={version:"2.6.12"};"number"==typeof __e&&(__e=Jg);var Zg,ey,ty=Xg.exports,ny=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},ry=function(e,t,n){if(ny(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},oy={},iy=function(e){return"object"==typeof e?null!==e:"function"==typeof e},ay=iy,Ay=function(e){if(!ay(e))throw TypeError(e+" is not an object!");return e},sy=function(e){try{return!!e()}catch(t){return!0}},ly=!sy(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a});function cy(){if(ey)return Zg;ey=1;var e=iy,t=qg.document,n=e(t)&&e(t.createElement);return Zg=function(e){return n?t.createElement(e):{}}}var uy=!ly&&!sy(function(){return 7!=Object.defineProperty(cy()("div"),"a",{get:function(){return 7}}).a}),dy=iy,py=function(e,t){if(!dy(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!dy(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!dy(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!dy(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},hy=Ay,fy=uy,my=py,gy=Object.defineProperty;oy.f=ly?Object.defineProperty:function(e,t,n){if(hy(e),t=my(t,!0),hy(n),fy)try{return gy(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e};var yy=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vy=oy,by=yy,wy=ly?function(e,t,n){return vy.f(e,t,by(1,n))}:function(e,t,n){return e[t]=n,e},By={}.hasOwnProperty,Cy=function(e,t){return By.call(e,t)},xy=qg,Ey=ty,ky=ry,Fy=wy,Sy=Cy,Qy="prototype",Uy=function(e,t,n){var r,o,i,a=e&Uy.F,A=e&Uy.G,s=e&Uy.S,l=e&Uy.P,c=e&Uy.B,u=e&Uy.W,d=A?Ey:Ey[t]||(Ey[t]={}),p=d[Qy],h=A?xy:s?xy[t]:(xy[t]||{})[Qy];for(r in A&&(n=t),n)(o=!a&&h&&void 0!==h[r])&&Sy(d,r)||(i=o?h[r]:n[r],d[r]=A&&"function"!=typeof h[r]?n[r]:c&&o?ky(i,xy):u&&h[r]==i?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[Qy]=e[Qy],t}(i):l&&"function"==typeof i?ky(Function.call,i):i,l&&((d.virtual||(d.virtual={}))[r]=i,e&Uy.R&&p&&!p[r]&&Fy(p,r,i)))};Uy.F=1,Uy.G=2,Uy.S=4,Uy.P=8,Uy.B=16,Uy.W=32,Uy.U=64,Uy.R=128;var Oy=Uy,Ty={}.toString,My=function(e){return Ty.call(e).slice(8,-1)},Iy=My,Ny=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==Iy(e)?e.split(""):Object(e)},Hy=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e},_y=Ny,Py=Hy,Dy=function(e){return _y(Py(e))},Ly=Math.ceil,Ry=Math.floor,zy=function(e){return isNaN(e=+e)?0:(e>0?Ry:Ly)(e)},Ky=zy,jy=Math.min,Vy=zy,$y=Math.max,Gy=Math.min,Wy=Dy,Yy=function(e){return e>0?jy(Ky(e),9007199254740991):0},qy=function(e,t){return(e=Vy(e))<0?$y(e+t,0):Gy(e,t)},Xy={exports:{}},Jy=ty,Zy=qg,ev="__core-js_shared__",tv=Zy[ev]||(Zy[ev]={});(Xy.exports=function(e,t){return tv[e]||(tv[e]=void 0!==t?t:{})})("versions",[]).push({version:Jy.version,mode:"pure",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"});var nv,rv=Xy.exports,ov=0,iv=Math.random(),av=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++ov+iv).toString(36))},Av=rv("keys"),sv=av,lv=function(e){return Av[e]||(Av[e]=sv(e))},cv=Cy,uv=Dy,dv=(nv=!1,function(e,t,n){var r,o=Wy(e),i=Yy(o.length),a=qy(n,i);if(nv&&t!=t){for(;i>a;)if((r=o[a++])!=r)return!0}else for(;i>a;a++)if((nv||a in o)&&o[a]===t)return nv||a||0;return!nv&&-1}),pv=lv("IE_PROTO"),hv=function(e,t){var n,r=uv(e),o=0,i=[];for(n in r)n!=pv&&cv(r,n)&&i.push(n);for(;t.length>o;)cv(r,n=t[o++])&&(~dv(i,n)||i.push(n));return i},fv="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),mv=hv,gv=fv,yv=Object.keys||function(e){return mv(e,gv)},vv={};vv.f=Object.getOwnPropertySymbols;var bv={};bv.f={}.propertyIsEnumerable;var wv,Bv,Cv=Hy,xv=function(e){return Object(Cv(e))};var Ev=Oy;Ev(Ev.S+Ev.F,"Object",{assign:function(){if(Bv)return wv;Bv=1;var e=ly,t=yv,n=vv,r=bv,o=xv,i=Ny,a=Object.assign;return wv=!a||sy(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=a({},e)[n]||Object.keys(a({},t)).join("")!=r})?function(a,A){for(var s=o(a),l=arguments.length,c=1,u=n.f,d=r.f;l>c;)for(var p,h=i(arguments[c++]),f=u?t(h).concat(u(h)):t(h),m=f.length,g=0;m>g;)p=f[g++],e&&!d.call(h,p)||(s[p]=h[p]);return s}:a,wv}()});var kv,Fv=ty.Object.assign;var Sv,Qv,Uv=((kv={default:Fv,__esModule:!0})&&kv.__esModule?kv:{default:kv}).default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ov=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Tv={},Mv=zy,Iv=Hy,Nv=wy,Hv={},_v=oy,Pv=Ay,Dv=yv,Lv=ly?Object.defineProperties:function(e,t){Pv(e);for(var n,r=Dv(t),o=r.length,i=0;o>i;)_v.f(e,n=r[i++],t[n]);return e};var Rv=Ay,zv=Lv,Kv=fv,jv=lv("IE_PROTO"),Vv=function(){},$v="prototype",Gv=function(){var e,t=cy()("iframe"),n=Kv.length;for(t.style.display="none",function(){if(Qv)return Sv;Qv=1;var e=qg.document;return Sv=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),Gv=e.F;n--;)delete Gv[$v][Kv[n]];return Gv()},Wv=Object.create||function(e,t){var n;return null!==e?(Vv[$v]=Rv(e),n=new Vv,Vv[$v]=null,n[jv]=e):n=Gv(),void 0===t?n:zv(n,t)},Yv={exports:{}},qv=rv("wks"),Xv=av,Jv=qg.Symbol,Zv="function"==typeof Jv;(Yv.exports=function(e){return qv[e]||(qv[e]=Zv&&Jv[e]||(Zv?Jv:Xv)("Symbol."+e))}).store=qv;var eb=Yv.exports,tb=oy.f,nb=Cy,rb=eb("toStringTag"),ob=function(e,t,n){e&&!nb(e=n?e:e.prototype,rb)&&tb(e,rb,{configurable:!0,value:t})},ib=Wv,ab=yy,Ab=ob,sb={};wy(sb,eb("iterator"),function(){return this});var lb,cb=Cy,ub=xv,db=lv("IE_PROTO"),pb=Object.prototype,hb=Object.getPrototypeOf||function(e){return e=ub(e),cb(e,db)?e[db]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?pb:null},fb=Oy,mb=Nv,gb=wy,yb=Hv,vb=function(e,t,n){e.prototype=ib(sb,{next:ab(1,n)}),Ab(e,t+" Iterator")},bb=ob,wb=hb,Bb=eb("iterator"),Cb=!([].keys&&"next"in[].keys()),xb="keys",Eb="values",kb=function(){return this},Fb=function(e,t,n,r,o,i,a){vb(n,t,r);var A,s,l,c=function(e){if(!Cb&&e in h)return h[e];switch(e){case xb:case Eb:return function(){return new n(this,e)}}return function(){return new n(this,e)}},u=t+" Iterator",d=o==Eb,p=!1,h=e.prototype,f=h[Bb]||h["@@iterator"]||o&&h[o],m=f||c(o),g=o?d?c("entries"):m:void 0,y="Array"==t&&h.entries||f;if(y&&(l=wb(y.call(new e)))!==Object.prototype&&l.next&&bb(l,u,!0),d&&f&&f.name!==Eb&&(p=!0,m=function(){return f.call(this)}),a&&(Cb||p||!h[Bb])&&gb(h,Bb,m),yb[t]=m,yb[u]=kb,o)if(A={values:d?m:c(Eb),keys:i?m:c(xb),entries:g},a)for(s in A)s in h||mb(h,s,A[s]);else fb(fb.P+fb.F*(Cb||p),t,A);return A},Sb=(lb=!0,function(e,t){var n,r,o=String(Iv(e)),i=Mv(t),a=o.length;return i<0||i>=a?lb?"":void 0:(n=o.charCodeAt(i))<55296||n>56319||i+1===a||(r=o.charCodeAt(i+1))<56320||r>57343?lb?o.charAt(i):n:lb?o.slice(i,i+2):r-56320+(n-55296<<10)+65536});Fb(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=Sb(t,n),this._i+=e.length,{value:e,done:!1})});var Qb=function(e,t){return{value:t,done:!!e}},Ub=Hv,Ob=Dy;Fb(Array,"Array",function(e,t){this._t=Ob(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,Qb(1)):Qb(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),Ub.Arguments=Ub.Array;for(var Tb=qg,Mb=wy,Ib=Hv,Nb=eb("toStringTag"),Hb="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),_b=0;_b<Hb.length;_b++){var Pb=Hb[_b],Db=Tb[Pb],Lb=Db&&Db.prototype;Lb&&!Lb[Nb]&&Mb(Lb,Nb,Pb),Ib[Pb]=Ib.Array}var Rb={};Rb.f=eb;var zb={default:Rb.f("iterator"),__esModule:!0},Kb={exports:{}},jb=av("meta"),Vb=iy,$b=Cy,Gb=oy.f,Wb=0,Yb=Object.isExtensible||function(){return!0},qb=!sy(function(){return Yb(Object.preventExtensions({}))}),Xb=function(e){Gb(e,jb,{value:{i:"O"+ ++Wb,w:{}}})},Jb=Kb.exports={KEY:jb,NEED:!1,fastKey:function(e,t){if(!Vb(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!$b(e,jb)){if(!Yb(e))return"F";if(!t)return"E";Xb(e)}return e[jb].i},getWeak:function(e,t){if(!$b(e,jb)){if(!Yb(e))return!0;if(!t)return!1;Xb(e)}return e[jb].w},onFreeze:function(e){return qb&&Jb.NEED&&Yb(e)&&!$b(e,jb)&&Xb(e),e}},Zb=Kb.exports,ew=ty,tw=Rb,nw=oy.f,rw=function(e){var t=ew.Symbol||(ew.Symbol={});"_"==e.charAt(0)||e in t||nw(t,e,{value:tw.f(e)})},ow=yv,iw=vv,aw=bv,Aw=My,sw=Array.isArray||function(e){return"Array"==Aw(e)},lw={},cw={},uw=hv,dw=fv.concat("length","prototype");cw.f=Object.getOwnPropertyNames||function(e){return uw(e,dw)};var pw=Dy,hw=cw.f,fw={}.toString,mw="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];lw.f=function(e){return mw&&"[object Window]"==fw.call(e)?function(e){try{return hw(e)}catch(t){return mw.slice()}}(e):hw(pw(e))};var gw={},yw=bv,vw=yy,bw=Dy,ww=py,Bw=Cy,Cw=uy,xw=Object.getOwnPropertyDescriptor;gw.f=ly?xw:function(e,t){if(e=bw(e),t=ww(t,!0),Cw)try{return xw(e,t)}catch(n){}if(Bw(e,t))return vw(!yw.f.call(e,t),e[t])};var Ew=qg,kw=Cy,Fw=ly,Sw=Oy,Qw=Nv,Uw=Zb.KEY,Ow=sy,Tw=rv,Mw=ob,Iw=av,Nw=eb,Hw=Rb,_w=rw,Pw=function(e){var t=ow(e),n=iw.f;if(n)for(var r,o=n(e),i=aw.f,a=0;o.length>a;)i.call(e,r=o[a++])&&t.push(r);return t},Dw=sw,Lw=Ay,Rw=iy,zw=xv,Kw=Dy,jw=py,Vw=yy,$w=Wv,Gw=lw,Ww=gw,Yw=vv,qw=oy,Xw=yv,Jw=Ww.f,Zw=qw.f,eB=Gw.f,tB=Ew.Symbol,nB=Ew.JSON,rB=nB&&nB.stringify,oB="prototype",iB=Nw("_hidden"),aB=Nw("toPrimitive"),AB={}.propertyIsEnumerable,sB=Tw("symbol-registry"),lB=Tw("symbols"),cB=Tw("op-symbols"),uB=Object[oB],dB="function"==typeof tB&&!!Yw.f,pB=Ew.QObject,hB=!pB||!pB[oB]||!pB[oB].findChild,fB=Fw&&Ow(function(){return 7!=$w(Zw({},"a",{get:function(){return Zw(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=Jw(uB,t);r&&delete uB[t],Zw(e,t,n),r&&e!==uB&&Zw(uB,t,r)}:Zw,mB=function(e){var t=lB[e]=$w(tB[oB]);return t._k=e,t},gB=dB&&"symbol"==typeof tB.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof tB},yB=function(e,t,n){return e===uB&&yB(cB,t,n),Lw(e),t=jw(t,!0),Lw(n),kw(lB,t)?(n.enumerable?(kw(e,iB)&&e[iB][t]&&(e[iB][t]=!1),n=$w(n,{enumerable:Vw(0,!1)})):(kw(e,iB)||Zw(e,iB,Vw(1,{})),e[iB][t]=!0),fB(e,t,n)):Zw(e,t,n)},vB=function(e,t){Lw(e);for(var n,r=Pw(t=Kw(t)),o=0,i=r.length;i>o;)yB(e,n=r[o++],t[n]);return e},bB=function(e){var t=AB.call(this,e=jw(e,!0));return!(this===uB&&kw(lB,e)&&!kw(cB,e))&&(!(t||!kw(this,e)||!kw(lB,e)||kw(this,iB)&&this[iB][e])||t)},wB=function(e,t){if(e=Kw(e),t=jw(t,!0),e!==uB||!kw(lB,t)||kw(cB,t)){var n=Jw(e,t);return!n||!kw(lB,t)||kw(e,iB)&&e[iB][t]||(n.enumerable=!0),n}},BB=function(e){for(var t,n=eB(Kw(e)),r=[],o=0;n.length>o;)kw(lB,t=n[o++])||t==iB||t==Uw||r.push(t);return r},CB=function(e){for(var t,n=e===uB,r=eB(n?cB:Kw(e)),o=[],i=0;r.length>i;)!kw(lB,t=r[i++])||n&&!kw(uB,t)||o.push(lB[t]);return o};dB||(tB=function(){if(this instanceof tB)throw TypeError("Symbol is not a constructor!");var e=Iw(arguments.length>0?arguments[0]:void 0),t=function(n){this===uB&&t.call(cB,n),kw(this,iB)&&kw(this[iB],e)&&(this[iB][e]=!1),fB(this,e,Vw(1,n))};return Fw&&hB&&fB(uB,e,{configurable:!0,set:t}),mB(e)},Qw(tB[oB],"toString",function(){return this._k}),Ww.f=wB,qw.f=yB,cw.f=Gw.f=BB,bv.f=bB,Yw.f=CB,Hw.f=function(e){return mB(Nw(e))}),Sw(Sw.G+Sw.W+Sw.F*!dB,{Symbol:tB});for(var xB="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),EB=0;xB.length>EB;)Nw(xB[EB++]);for(var kB=Xw(Nw.store),FB=0;kB.length>FB;)_w(kB[FB++]);Sw(Sw.S+Sw.F*!dB,"Symbol",{for:function(e){return kw(sB,e+="")?sB[e]:sB[e]=tB(e)},keyFor:function(e){if(!gB(e))throw TypeError(e+" is not a symbol!");for(var t in sB)if(sB[t]===e)return t},useSetter:function(){hB=!0},useSimple:function(){hB=!1}}),Sw(Sw.S+Sw.F*!dB,"Object",{create:function(e,t){return void 0===t?$w(e):vB($w(e),t)},defineProperty:yB,defineProperties:vB,getOwnPropertyDescriptor:wB,getOwnPropertyNames:BB,getOwnPropertySymbols:CB});var SB=Ow(function(){Yw.f(1)});Sw(Sw.S+Sw.F*SB,"Object",{getOwnPropertySymbols:function(e){return Yw.f(zw(e))}}),nB&&Sw(Sw.S+Sw.F*(!dB||Ow(function(){var e=tB();return"[null]"!=rB([e])||"{}"!=rB({a:e})||"{}"!=rB(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(Rw(t)||void 0!==e)&&!gB(e))return Dw(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!gB(t))return t}),r[1]=t,rB.apply(nB,r)}}),tB[oB][aB]||wy(tB[oB],aB,tB[oB].valueOf),Mw(tB,"Symbol"),Mw(Math,"Math",!0),Mw(Ew.JSON,"JSON",!0),rw("asyncIterator"),rw("observable");var QB={default:ty.Symbol,__esModule:!0};Tv.__esModule=!0;var UB=MB(zb),OB=MB(QB),TB="function"==typeof OB.default&&"symbol"==typeof UB.default?function(e){return typeof e}:function(e){return e&&"function"==typeof OB.default&&e.constructor===OB.default&&e!==OB.default.prototype?"symbol":typeof e};function MB(e){return e&&e.__esModule?e:{default:e}}var IB=Tv.default="function"==typeof OB.default&&"symbol"===TB(UB.default)?function(e){return void 0===e?"undefined":TB(e)}:function(e){return e&&"function"==typeof OB.default&&e.constructor===OB.default&&e!==OB.default.prototype?"symbol":void 0===e?"undefined":TB(e)},NB=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},HB=function(e){return e&&e.__esModule?e:{default:e}}(Tv);var _B,PB,DB=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,HB.default)(t))&&"function"!=typeof t?e:t};Oy(Oy.S,"Object",{setPrototypeOf:function(){if(PB)return _B;PB=1;var e=iy,t=Ay,n=function(n,r){if(t(n),!e(r)&&null!==r)throw TypeError(r+": can't set as prototype!")};return _B={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=ry(Function.call,gw.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,o){return n(e,o),t?e.__proto__=o:r(e,o),e}}({},!1):void 0),check:n},_B}().set});var LB={default:ty.Object.setPrototypeOf,__esModule:!0};Oy(Oy.S,"Object",{create:Wv});var RB=ty.Object,zB={default:function(e,t){return RB.create(e,t)},__esModule:!0},KB=$B(LB),jB=$B(zB),VB=$B(Tv);function $B(e){return e&&e.__esModule?e:{default:e}}var GB=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,VB.default)(t)));e.prototype=(0,jB.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(KB.default?(0,KB.default)(e,t):e.__proto__=t)},WB=Object.prototype.hasOwnProperty;function YB(e,t){for(var n in e)if(WB.call(e,n))return e[n]===t[n];return!1}function qB(e,t){if(!e&&!t||e===t)return!0;if(!e!=!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!YB(e[n],t[n]))return!1;return!0}function XB(e,t){var n,r=0,o=0;for(n in e)if(WB.call(e,n)){switch(n){case"transform":if(!qB(e[n],t[n]))return!1;break;case"shadowOffset":if(!XB(e[n],t[n]))return!1;break;default:if(e[n]!==t[n])return!1}r++}for(n in t)WB.call(t,n)&&o++;return r===o}var JB=function e(t,n){if(!t&&!n||t===n)return!0;if(!t!=!n)return!1;if("object"==typeof t){if(t instanceof Array){for(var r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1;return t.length===n.length}return XB(t,n)}return t===n},ZB=JB,eC=Object.prototype.hasOwnProperty;function tC(e){return Array.isArray(e)?"array":typeof e}function nC(e,t){var n=tC(e);if(n!==tC(t))return!1;switch(n){case"array":if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!nC(e[r],t[r]))return!1;return!0;case"object":return e&&t?e.type===t.type&&(e.key===t.key&&(e.ref===t.ref&&rC(e.props,t.props))):e===t;default:return e===t}}function rC(e,t){var n=0,r=0;for(var o in e)if(eC.call(e,o)){if("style"===o){if(!ZB(e[o],t[o]))return!1}else if("children"===o);else if(e[o]!==t[o])return!1;n++}for(var o in t)eC.call(t,o)&&r++;return n===r&&nC(e.children,t.children)}const oC=ne(rC);var iC,aC,AC,sC,lC=["defaultProps","propTypes","contextTypes","childContextTypes","displayName","getDerivedStateFromProps"],cC=function(e,t){Object.keys(t).forEach(function(n){-1===lC.indexOf(n)&&(e[n]=t[n])})},uC=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments[4],i=t.length;t.forEach(function(e,t){var a,A="left"===n&&t===i-1,s="right"===n&&0===t,l={position:"sticky"},c=r[t];c>-1&&(l[n]=c),e.className=_n(e.className,((a={})[o+"table-fix-"+n]=!0,a[o+"table-fix-left-last"]=A,a[o+"table-fix-right-first"]=s,a)),e.style=Uv({},e.style,l),e.cellStyle=l});var a=function e(t){return(Array.isArray(t&&t.children)&&t.children.length||0)>0?t.children.reduce(function(t,n,r){return t+e(n.children)},0):1},A=function(e,t){return e.reduce(function(e,n,r){return r<t?e+a(n):e},0)};!function e(t,i){"right"===n&&t.reverse(),t.forEach(function(a,s){var l,c,u,d,p,h,f,m="right"===n?i-A(t,s):i+A(t,s);a.children&&(e(a.children,m),l=a,c=m,u=n,d=s===t.length-1,h={position:"sticky"},(f=r[c])>-1&&(h[u]=f),l.className=_n(l.className,((p={})[o+"table-fix-"+u]=!0,p[o+"table-fix-left-last"]="left"===u&&d,p[o+"table-fix-right-first"]="right"===u&&d,p)),l.style=Uv({},l.style,h),l.cellStyle=h)}),"right"===n&&t.reverse()}(e,"left"===n?0:i-1)},dC=function(){},pC=(aC=iC=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.onClick=function(e){var t=r.props,n=t.record,o=t.rowIndex;r.props.onClick(n,o,e)},r.onMouseEnter=function(e){var t=r.props,n=t.record,o=t.rowIndex,i=t.__rowIndex||o;r.onRowHover(n,i,!0,e)},r.onMouseLeave=function(e){var t=r.props,n=t.record,o=t.rowIndex,i=t.__rowIndex||o;r.onRowHover(n,i,!1,e)},DB(r,n)}return GB(t,e),t.prototype.shouldComponentUpdate=function(e){return!e.pure||!Ho.shallowEqual(this.props,e)},t.prototype.onRowHover=function(e,t,n,r){var o=this.props,i=o.onMouseEnter,a=o.onMouseLeave,A=w.findDOMNode(this);n?(i(e,t,r),A&&Oo.addClass(A,"hovered")):(a(e,t,r),A&&Oo.removeClass(A,"hovered"))},t.prototype.renderCells=function(e,t){var n=this,r=this.props,o=r.Cell,i=r.columns,a=r.getCellProps,A=r.cellRef,s=r.prefix,l=r.primaryKey,c=r.__rowIndex,u=r.pure,d=r.locale,p=r.rtl;t=void 0!==t?t:this.props.rowIndex;var h=this.context.lockType;return i.map(function(r,f){var m,g=r.dataIndex,y=r.align;r.alignHeader;var v=r.width;r.colSpan,r.style;var w=r.cellStyle,B=r.__colIndex,C=Ov(r,["dataIndex","align","alignHeader","width","colSpan","style","cellStyle","__colIndex"]),x="__colIndex"in r?B:f,E=function(e,t){if(!e||!t)return!1;var n=(t=t.toString()).split("."),r=void 0,o=void 0;if(n.length&&((o=n[0]).indexOf("[")>=0?(o=o.match(/(.*)\[(.*)\]/))&&"object"===IB(o[1])&&"object"===IB(e[o[1]])&&(r=e[o[1]][o[2]]):r=e[n[0]],r))for(var i=1;i<n.length&&void 0!==(r=r[n[i]]);i++);return r}(e,g),k=a(t,x,g,e)||{};if(n.context.notRenderCellIndex){var F=n.context.notRenderCellIndex.map(function(e){return e.toString()}).indexOf([t,x].toString());if(F>-1)return n.context.notRenderCellIndex.splice(F,1),null}(k.colSpan&&k.colSpan>1||k.rowSpan&&k.rowSpan>1)&&n._getNotRenderCellIndex(x,t,k.colSpan||1,k.rowSpan||1);var S=k.className,Q=_n(((m={first:"right"!==h&&0===x,last:"left"!==h&&(x===i.length-1||x+k.colSpan===i.length)})[r.className]=r.className,m[S]=S,m)),U=Uv({},k.style,w);return b.createElement(o,Uv({key:c+"-"+x},C,k,{style:U,"data-next-table-col":x,"data-next-table-row":t,ref:function(e){return A(c,x,e)},prefix:s,pure:u,primaryKey:l,record:e,className:Q,value:E,colIndex:x,rowIndex:t,align:y,locale:d,rtl:p,width:v}))})},t.prototype._getNotRenderCellIndex=function(e,t,n,r){for(var o=n,i=r,a=[],A=0;A<o;A++)for(var s=0;s<i;s++)a.push([t+s,e+A]);[].push.apply(this.context.notRenderCellIndex,a)},t.prototype.render=function(){var e,t=this.props,n=t.prefix,r=t.className;t.onClick,t.onMouseEnter,t.onMouseLeave,t.columns,t.Cell,t.getCellProps,t.rowIndex;var o=t.record;t.__rowIndex;var i=t.children;t.primaryKey,t.cellRef,t.colGroup,t.pure,t.locale,t.expandedIndexSimulate,t.tableEl,t.rtl;var a=t.wrapper,A=Ov(t,["prefix","className","onClick","onMouseEnter","onMouseLeave","columns","Cell","getCellProps","rowIndex","record","__rowIndex","children","primaryKey","cellRef","colGroup","pure","locale","expandedIndexSimulate","tableEl","rtl","wrapper"]),s=_n(((e={})[n+"table-row"]=!0,e[r]=r,e));return a(b.createElement("tr",Uv({className:s,role:"row"},A,{onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave}),this.renderCells(o),i))},t}(b.Component),iC.propTypes={prefix:Nn.string,pure:Nn.bool,primaryKey:Nn.oneOfType([Nn.symbol,Nn.string]),className:Nn.string,columns:Nn.array,record:Nn.any,Cell:Nn.func,rowIndex:Nn.number,getCellProps:Nn.func,onClick:Nn.func,onMouseEnter:Nn.func,onMouseLeave:Nn.func,children:Nn.any,cellRef:Nn.func,colGroup:Nn.object,locale:Nn.object,wrapper:Nn.func},iC.defaultProps={prefix:"next-",primaryKey:"id",columns:[],record:{},getCellProps:dC,onClick:dC,onMouseEnter:dC,onMouseLeave:dC,cellRef:dC,colGroup:{},wrapper:function(e){return e}},iC.contextTypes={notRenderCellIndex:Nn.array,lockType:Nn.oneOf(["left","right"])},aC);pC.displayName="Row";var hC,fC,mC=(sC=AC=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.shouldComponentUpdate=function(e){return!e.pure||!Ho.shallowEqual(this.props,e)},t.prototype.render=function(){var e,t=this.props,n=t.prefix,r=t.className,o=t.cell,i=t.value;t.resizable,t.asyncResizable,t.colIndex;var a=t.rowIndex,A=t.__colIndex,s=t.record,l=t.context,c=t.align,u=t.style,d=void 0===u?{}:u,p=t.component,h=t.children;t.title,t.width;var f=t.innerStyle;t.primaryKey,t.__normalized,t.filterMode,t.filterMenuProps,t.filterProps,t.filters,t.sortable,t.sortDirections,t.lock,t.pure,t.locale,t.expandedIndexSimulate;var m=t.rtl,g=t.isIconLeft,y=t.type,v=t.htmlTitle,w=t.wordBreak,B=Ov(t,["prefix","className","cell","value","resizable","asyncResizable","colIndex","rowIndex","__colIndex","record","context","align","style","component","children","title","width","innerStyle","primaryKey","__normalized","filterMode","filterMenuProps","filterProps","filters","sortable","sortDirections","lock","pure","locale","expandedIndexSimulate","rtl","isIconLeft","type","htmlTitle","wordBreak"]),C=Uv({},d),x={value:i,index:a,record:s,context:l},E=o;b.isValidElement(E)?E=b.cloneElement(E,"header"===y?void 0:x):"function"==typeof E&&(E=E(i,a,s,l)),c&&(C.textAlign=c,m&&(C.textAlign="left"===c?"right":"right"===c?"left":c));var k=_n(((e={})[n+"table-cell"]=!0,e[n+"table-word-break-"+w]=!!w,e[r]=r,e));return b.createElement(p,Uv({},zo(B),{className:k,style:C,role:"gridcell"}),b.createElement("div",{className:n+"table-cell-wrapper",ref:this.props.getCellDomRef,style:f,title:v,"data-next-table-col":A,"data-next-table-row":a},g?h:E,g?E:h))},t}(b.Component),AC.propTypes={prefix:Nn.string,pure:Nn.bool,primaryKey:Nn.oneOfType([Nn.symbol,Nn.string]),className:Nn.string,record:Nn.any,value:Nn.any,isIconLeft:Nn.bool,colIndex:Nn.number,rowIndex:Nn.number,__colIndex:Nn.oneOfType([Nn.number,Nn.string]),title:Nn.any,width:Nn.oneOfType([Nn.number,Nn.string]),context:Nn.any,cell:Nn.oneOfType([Nn.element,Nn.node,Nn.func]),align:Nn.oneOf(["left","center","right"]),component:Nn.oneOf(["td","th","div"]),children:Nn.any,style:Nn.object,innerStyle:Nn.object,filterMode:Nn.oneOf(["single","multiple"]),filterMenuProps:Nn.object,filterProps:Nn.object,filters:Nn.array,sortable:Nn.bool,sortDirections:Nn.arrayOf(Nn.oneOf(["desc","asc","default"])),lock:Nn.any,type:Nn.oneOf(["header","body"]),resizable:Nn.bool,asyncResizable:Nn.bool,__normalized:Nn.bool},AC.defaultProps={component:"td",type:"body",isIconLeft:!1,cell:function(e){return e},prefix:"next-"},sC);mC.displayName="Cell";var gC,yC,vC,bC=function(){},wC=(fC=hC=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.getRowRef=function(e,t){r.props.rowRef(e,t)},r.onRowClick=function(e,t,n){r.props.onRowClick(e,t,n)},r.onRowMouseEnter=function(e,t,n){r.props.onRowMouseEnter(e,t,n)},r.onRowMouseLeave=function(e,t,n){r.props.onRowMouseLeave(e,t,n)},r.onBodyMouseOver=function(e){r.props.onBodyMouseOver(e)},r.onBodyMouseOut=function(e){r.props.onBodyMouseOut(e)},r.getEmptyNode=function(e){r.emptyNode=e},r.setEmptyDomStyle=function(){var e=r.props.tableEl,t=Oo.getStyle(e,"borderLeftWidth"),n=(e&&e.getBoundingClientRect().width)-t-1||"100%";Oo.setStyle(r.emptyNode,{width:n})},DB(r,n)}return GB(t,e),t.prototype.componentDidMount=function(){Mo.on(window,"resize",this.setEmptyDomStyle)},t.prototype.componentDidUpdate=function(){this.setEmptyDomStyle()},t.prototype.componentWillUnmount=function(){Mo.off(window,"resize",this.setEmptyDomStyle)},t.prototype.render=function(){var e=this,t=this.props,n=t.prefix,r=t.className,o=t.children,i=t.component,a=t.colGroup,A=t.loading,s=t.emptyContent,l=t.components,c=t.getCellProps,u=t.primaryKey,d=t.getRowProps,p=t.dataSource,h=t.cellRef,f=t.columns;t.rowRef,t.onRowClick,t.onRowMouseEnter,t.onRowMouseLeave,t.onBodyMouseOver,t.onBodyMouseOut;var m=t.locale,g=t.pure,y=t.expandedIndexSimulate,v=t.tableEl,w=t.rtl,B=t.crossline;t.tableWidth;var C=Ov(t,["prefix","className","children","component","colGroup","loading","emptyContent","components","getCellProps","primaryKey","getRowProps","dataSource","cellRef","columns","rowRef","onRowClick","onRowMouseEnter","onRowMouseLeave","onBodyMouseOver","onBodyMouseOut","locale","pure","expandedIndexSimulate","tableEl","rtl","crossline","tableWidth"]),x=+(v&&v.clientWidth)-1||"100%",E=l.Row,k=void 0===E?pC:E,F=l.Cell,S=void 0===F?mC:F,Q=A?b.createElement("span",null,"\xa0"):s||m.empty,U=b.createElement("tr",null,b.createElement("td",{colSpan:f.length},b.createElement("div",{ref:this.getEmptyNode,className:n+"table-empty",style:{position:"sticky",left:0,overflow:"hidden",width:x}},Q)));"div"===i&&(U=b.createElement("table",{role:"table"},b.createElement("tbody",null,U))),p.length?U=p.map(function(t,r){var o,i={},A="object"===(void 0===t?"undefined":IB(t))&&"__rowIndex"in t?t.__rowIndex:r,s=(i=(i=y?t.__expanded?{}:d(t,r/2):d(t,A))||{}).className,l=_n(((o={first:0===r,last:r===p.length-1})[s]=s,o)),B=t.__expanded?"expanded":"";return b.createElement(k,Uv({key:""+(t[u]||(0===t[u]?0:A))+B},i,{ref:e.getRowRef.bind(e,B?A+"_expanded":A),colGroup:a,rtl:w,columns:f,primaryKey:u,record:t,rowIndex:A,__rowIndex:A,prefix:n,pure:g,cellRef:h,getCellProps:c,className:l,Cell:S,tableEl:v,onClick:e.onRowClick,locale:m,onMouseEnter:e.onRowMouseEnter,onMouseLeave:e.onRowMouseLeave}))}):this.setEmptyDomStyle();var O=B?{onMouseOver:this.onBodyMouseOver,onMouseOut:this.onBodyMouseOut}:{};return b.createElement(i,Uv({className:r},C,O),U,o)},t}(b.Component),hC.propTypes={loading:Nn.bool,emptyContent:Nn.any,tableEl:Nn.any,prefix:Nn.string,pure:Nn.bool,components:Nn.object,getCellProps:Nn.func,cellRef:Nn.func,primaryKey:Nn.oneOfType([Nn.symbol,Nn.string]),getRowProps:Nn.func,rowRef:Nn.func,dataSource:Nn.array,children:Nn.any,className:Nn.string,component:Nn.string,colGroup:Nn.object,columns:Nn.array,onRowClick:Nn.func,onRowMouseEnter:Nn.func,onRowMouseLeave:Nn.func,onBodyMouseOver:Nn.func,onBodyMouseOut:Nn.func,locale:Nn.object,crossline:Nn.bool,tableWidth:Nn.number},hC.defaultProps={loading:!1,prefix:"next-",components:{},getCellProps:bC,cellRef:bC,primaryKey:"id",getRowProps:bC,rowRef:bC,dataSource:[],component:"tbody",columns:[]},fC);wC.displayName="Body";var BC=(yC=gC=function(e){function t(n){NB(this,t);var r=DB(this,e.call(this,n));vC.call(r);var o=(n.filterParams||{})[n.dataIndex]||{};return r.state={visible:o.visible||!1,selectedKeys:o.selectedKeys||[],selectedKeysChangedByInner:!0},r._selectedKeys=[].concat(r.state.selectedKeys),r}return GB(t,e),t.getDerivedStateFromProps=function(e,t){var n={};if(e.hasOwnProperty("filterParams")&&void 0!==e.filterParams){var r=e.dataIndex||this.props.dataIndex,o=(e.filterParams||{})[r]||{},i=void 0;t.selectedKeysChangedByInner?(i=t.selectedKeys||[],n.selectedKeysChangedByInner=!1):i=o.selectedKeys||[],n.selectedKeys=i}return n},t.prototype.componentDidUpdate=function(e,t){var n=t.selectedKeys;this._selectedKeys=[].concat(n)},t.prototype.render=function(){var e,t,n,r=this.props,o=r.filters,i=r.prefix,a=r.locale,A=r.className,s=r.filterMode,l=r.filterMenuProps,c=r.filterProps,u=r.rtl,d=_n(c&&c.className,((e={})[i+"table-filter-menu"]=!0,e)),p=this.state,h=p.visible,f=p.selectedKeys,m=l||{},g=m.subMenuSelectable,y=Ov(m,["subMenuSelectable"]);function v(e){return e.map(function(e){return e.children?(t=e,n=e.children,b.createElement(Vh.SubMenu,{label:t.label,key:t.value,selectable:g},v(n))):function(e){return b.createElement(Vh.Item,{key:e.value},e.label)}(e);var t,n})}var w=v(o),B=b.createElement("div",{className:i+"table-filter-footer"},b.createElement(Jh,{type:"primary",onClick:this.onFilterConfirm},a.ok),b.createElement(Jh,{onClick:this.onFilterClear},a.reset)),C=_n(((t={})[i+"table-filter"]=!0,t[A]=A,t)),x=_n(((n={})[i+"table-filter-active"]=f&&f.length>0,n));return b.createElement(Bp,Uv({trigger:b.createElement("span",{role:"button","aria-label":a.filter,onKeyDown:this.filterKeydown,tabIndex:"0",className:C},b.createElement(Xd,{type:"filter",size:"small",className:x})),triggerType:"click",visible:h,autoFocus:!0,rtl:u,needAdjust:!1,onVisibleChange:this.onFilterVisible,className:d},c),b.createElement(Vh,Uv({footer:B,rtl:u,selectedKeys:f,selectMode:s,onSelect:this.onFilterSelect},y),w))},t}(b.Component),gC.propTypes={dataIndex:Nn.string,filters:Nn.array,filterMode:Nn.string,filterParams:Nn.object,filterMenuProps:Nn.object,filterProps:Nn.object,locale:Nn.object,onFilter:Nn.func,prefix:Nn.string,rtl:Nn.bool},gC.defaultProps={onFilter:function(){}},vC=function(){var e=this;this.filterKeydown=function(t){t.preventDefault(),t.stopPropagation(),t.keyCode===Lo.ENTER&&e.setState({visible:!e.state.visible})},this.onFilterVisible=function(t){if(e.setState({visible:t}),!t){var n=[].concat(e._selectedKeys);e.setState({selectedKeysChangedByInner:!0,selectedKeys:n})}},this.onFilterSelect=function(t){e.setState({visible:!0,selectedKeysChangedByInner:!0,selectedKeys:t})},this.onFilterConfirm=function(){var t=e.state.selectedKeys,n={};n[e.props.dataIndex]={visible:!1,selectedKeys:t},e._selectedKeys=[].concat(t),e.setState({visible:!1,selectedKeysChangedByInner:!0}),e.props.onFilter(n)},this.onFilterClear=function(){var t={};t[e.props.dataIndex]={visible:!1,selectedKeys:[]},e._selectedKeys=[],e.setState({selectedKeys:[],visible:!1,selectedKeysChangedByInner:!0}),e.props.onFilter(t)}},yC);BC.displayName="Filter";const CC=lr(BC);var xC,EC,kC,FC,SC=(EC=xC=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.handleClick=function(){var e=r.props,t=e.sort,n=e.dataIndex,o=e.sortDirections,i="";o.forEach(function(e,r){t[n]===e&&(i=o.length-1>r?o[r+1]:o[0])}),t[n]||(i=o[0]),r.onSort(n,i)},r.keydownHandler=function(e){e.preventDefault(),e.stopPropagation(),e.keyCode===Lo.ENTER&&r.handleClick()},r.onSort=function(e,t){var n={};n[e]=t,r.props.onSort(e,t,n)},DB(r,n)}return GB(t,e),t.prototype.renderSort=function(){var e,t=this.props,n=t.prefix,r=t.sort,o=t.sortIcons,i=t.className,a=t.dataIndex,A=t.locale,s=t.sortDirections,l=t.rtl,c=r[a],u={desc:"descending",asc:"ascending"},d=s.map(function(e){return"default"===e?null:b.createElement("a",{key:e,className:c===e?"current":""},o?o[e]:b.createElement(Xd,{rtl:l,type:u[e],size:"xs"}))}),p=_n(((e={})[n+"table-sort"]=!0,e[i]=i,e));return b.createElement("span",{role:"button",tabIndex:"0","aria-label":A[c],className:p,onClick:this.handleClick.bind(this),onKeyDown:this.keydownHandler},d)},t.prototype.render=function(){return this.renderSort()},t}(b.Component),xC.propTypes={prefix:Nn.string,rtl:Nn.bool,className:Nn.string,sort:Nn.object,sortIcons:Nn.object,onSort:Nn.func,sortDirections:Nn.arrayOf(Nn.oneOf(["desc","asc","default"])),dataIndex:Nn.string,locale:Nn.object},xC.defaultProps={sort:{},sortDirections:["desc","asc"]},EC);SC.displayName="Sort";var QC=(FC=kC=function(e){function t(){NB(this,t);var n=DB(this,e.call(this));return n.showResizeProxy=function(){n.props.resizeProxyDomRef.style.cssText="display:block;left:"+n.startLeft+"px;"},n.moveResizeProxy=function(){var e=n.startLeft+n.changedPageX;n.props.resizeProxyDomRef.style.cssText="left:"+e+"px;display:block;"},n.resetResizeProxy=function(){n.asyncResizeFlag&&n.props.onChange(n.props.dataIndex,n.changedPageX),n.changedPageX=0,n.tRight=0,n.asyncResizeFlag=!1,n.props.resizeProxyDomRef.style.cssText="display:none;"},n.movingLimit=function(){var e=n.startLeft+n.changedPageX;e>n.tRight&&(e=n.tRight,n.changedPageX=n.tRight-n.startLeft),e-n.cellLeft<n.cellMinWidth&&(n.changedPageX=n.cellLeft+n.cellMinWidth-n.startLeft),e<0&&(n.changedPageX=0-n.startLeft),n.props.col.width+n.changedPageX<n.cellMinWidth&&(n.changedPageX=n.cellMinWidth-n.props.col.width)},n.onMouseDown=function(e){var t=n.props.tableEl.getBoundingClientRect(),r=t.left,o=t.width;if(n.props.cellDomRef&&n.props.cellDomRef.current){var i=n.props.cellDomRef.current.getBoundingClientRect().left;n.lastPageX=e.pageX,n.tLeft=r,n.tRight=o,n.startLeft=e.pageX-r,n.cellLeft=i-r,n.props.asyncResizable&&n.showResizeProxy(),Mo.on(document,"mousemove",n.onMouseMove),Mo.on(document,"mouseup",n.onMouseUp),n.unSelect()}},n.onMouseMove=function(e){var t=e.pageX;if(n.changedPageX=t-n.lastPageX,n.props.rtl&&(n.changedPageX=-n.changedPageX),n.props.hasLock&&(n.props.asyncResizable||(n.cellLeft=n.props.cellDomRef.current.getBoundingClientRect().left-n.tLeft)),n.movingLimit(),n.props.asyncResizable)return n.asyncResizeFlag=!0,void n.moveResizeProxy();n.props.onChange(n.props.dataIndex,n.changedPageX),n.lastPageX=t},n.onMouseUp=function(){n.props.asyncResizable&&n.resetResizeProxy(),n.startLeft=0,n.destory()},n.cellMinWidth=40,n.lastPageX=0,n.tRight=0,n.tLeft=0,n.cellLeft=0,n.startLeft=0,n.changedPageX=0,n.asyncResizeFlag=!1,n}return GB(t,e),t.prototype.componentWillUnmount=function(){this.destory()},t.prototype.destory=function(){Mo.off(document,"mousemove",this.onMouseMove),Mo.off(document,"mouseup",this.onMouseUp),this.select()},t.prototype.unSelect=function(){Oo.setStyle(document.body,{userSelect:"none",cursor:"ew-resize"}),document.body.setAttribute("unselectable","on")},t.prototype.select=function(){Oo.setStyle(document.body,{userSelect:"",cursor:""}),document.body.removeAttribute("unselectable")},t.prototype.render=function(){var e=this.props.prefix;return b.createElement("a",{className:e+"table-resize-handler",onMouseDown:this.onMouseDown})},t}(b.Component),kC.propTypes={prefix:Nn.string,rtl:Nn.bool,onChange:Nn.func,dataIndex:Nn.string,tableEl:Nn.any,resizeProxyDomRef:Nn.any,cellDomRef:Nn.any,col:Nn.any,hasLock:Nn.bool,asyncResizable:Nn.bool},kC.defaultProps={onChange:function(){}},FC);QC.displayName="Resize";const UC=QC;var OC,TC,MC,IC,NC=function(){},HC=(TC=OC=function(e){function t(){NB(this,t);var n=DB(this,e.call(this));return n.checkHasLock=function(){for(var e=n.props.columns,t=!1,r=0;r<e.length;r++){for(var o=e[r],i=0;i<o.length;i++){if(o[i].lock){t=!0;break}}if(t)break}n.hasLock=t},n.getCellRef=function(e,t,r){n.props.headerCellRef(e,t,r);var o=n.props.columns,i=o[e]&&o[e][t];i&&i.ref&&"function"==typeof i.ref&&i.ref(r)},n.createCellDomRef=function(e,t){var r=n.getCellDomRefKey(e,t);return n[r]||(n[r]={}),n[r]},n.getCellDomRef=function(e,t){e&&(e.current=t)},n.getCellDomRefKey=function(e,t){return"header_cell_"+e+"_"+t},n.onSort=function(e,t,r){n.props.onSort(e,t,r)},n.hasLock=!1,n}return GB(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.prefix,r=t.className,o=t.children,i=t.component;t.colGroup;var a=t.columns,A=t.locale,s=t.filterParams,l=t.onFilter,c=t.components;t.affixRef,t.headerCellRef,t.onSort;var u=t.sort,d=t.sortIcons,p=t.onResizeChange,h=t.pure,f=t.rtl;t.tableWidth;var m=t.tableEl,g=t.resizeProxyDomRef,y=Ov(t,["prefix","className","children","component","colGroup","columns","locale","filterParams","onFilter","components","affixRef","headerCellRef","onSort","sort","sortIcons","onResizeChange","pure","rtl","tableWidth","tableEl","resizeProxyDomRef"]);this.checkHasLock();var v=c.Cell,w=void 0===v?mC:v,B=c.Filter,C=void 0===B?CC:B,x=c.Sort,E=void 0===x?SC:x,k=c.Resize,F=void 0===k?UC:k,S=a.length,Q=a.map(function(t,r){var o=t.map(function(t,o){var i,a=e.createCellDomRef(r,o),c=t.title,y=t.colSpan,v=t.sortable,B=t.sortDirections,x=t.resizable,k=t.asyncResizable,Q=t.dataIndex,U=t.filters,O=t.filterMode,T=t.filterMenuProps,M=t.filterProps;t.width;var I=t.align,N=t.alignHeader,H=t.className;t.__normalized,t.lock,t.cellStyle;var _=t.wordBreak,P=Ov(t,["title","colSpan","sortable","sortDirections","resizable","asyncResizable","dataIndex","filters","filterMode","filterMenuProps","filterProps","width","align","alignHeader","className","__normalized","lock","cellStyle","wordBreak"]),D=u?u[Q]:"";H=_n(((i={})[n+"table-header-node"]=!0,i[n+"table-header-resizable"]=x||k,i[n+"table-word-break-"+_]=!!_,i[n+"table-header-sort-"+D]=v&&D,i[H]=H,i));var L={},R=void 0,z=void 0,K=void 0;return L.colSpan=y,t.children&&t.children.length||(v&&(R=b.createElement(E,{prefix:n,className:n+"table-header-icon",dataIndex:Q,onSort:e.onSort,sortDirections:B,sortIcons:d,sort:u,rtl:f,locale:A})),(k||x)&&(K=b.createElement(F,{asyncResizable:k,hasLock:e.hasLock,col:t,tableEl:m,prefix:n,rtl:f,dataIndex:Q,resizeProxyDomRef:g,cellDomRef:a,onChange:p})),U&&(z=U.length?b.createElement(C,{dataIndex:Q,className:n+"table-header-icon",filters:U,prefix:n,locale:A,rtl:f,filterParams:s,filterMode:O,filterMenuProps:T,filterProps:M,onFilter:l}):null),L.rowSpan=S-r),0===+L.colSpan?null:b.createElement(w,Uv({},P,L,{key:o,prefix:n,pure:h,rtl:f,cell:c,component:"th",align:N||I,className:H,ref:e.getCellRef.bind(e,r,o),getCellDomRef:e.getCellDomRef.bind(e,a),type:"header"}),R,z,K)});return b.createElement("tr",{key:r},o)});return b.createElement(i,Uv({className:r},y),Q,o)},t}(b.Component),OC.propTypes={children:Nn.any,prefix:Nn.string,pure:Nn.bool,className:Nn.string,component:Nn.string,columns:Nn.array,colGroup:Nn.object,headerCellRef:Nn.func,locale:Nn.object,filterParams:Nn.object,onFilter:Nn.func,components:Nn.object,sort:Nn.object,sortIcons:Nn.object,onSort:Nn.func,onResizeChange:Nn.func,tableWidth:Nn.number,tableEl:Nn.any},OC.defaultProps={component:"thead",columns:[],headerCellRef:NC,onFilter:NC,components:{},onSort:NC,onResizeChange:NC},TC);HC.displayName="Header";var _C,PC,DC=(IC=MC=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.render=function(){var e=this.props,t=e.colGroup,n=e.children,r=e.tableWidth,o=e.component;return b.createElement(o,{role:"table",style:{width:r}},t,n)},t}(b.Component),MC.propTypes={tableWidth:Nn.number},IC);DC.displayName="Wrapper",DC.defaultProps={component:"table"},DC.propTypes={children:Nn.any,prefix:Nn.string,colGroup:Nn.any,component:Nn.string};var LC,RC,zC=(PC=_C=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.render=function(){return null},t}(b.Component),_C.propTypes={dataIndex:Nn.string,cell:Nn.oneOfType([Nn.element,Nn.node,Nn.func]),title:Nn.oneOfType([Nn.element,Nn.node,Nn.func]),htmlTitle:Nn.string,sortable:Nn.bool,sortDirections:Nn.arrayOf(Nn.oneOf(["desc","asc","default"])),width:Nn.oneOfType([Nn.number,Nn.string]),align:Nn.oneOf(["left","center","right"]),alignHeader:Nn.oneOf(["left","center","right"]),filters:Nn.arrayOf(Nn.shape({label:Nn.string,value:Nn.oneOfType([Nn.node,Nn.string])})),filterMode:Nn.oneOf(["single","multiple"]),filterMenuProps:Nn.object,filterProps:Nn.object,lock:Nn.oneOfType([Nn.bool,Nn.string]),resizable:Nn.bool,asyncResizable:Nn.bool,colSpan:Nn.number,wordBreak:Nn.oneOf(["all","word"])},_C.contextTypes={parent:Nn.any},_C.defaultProps={cell:function(e){return e},filterMode:"multiple",filterMenuProps:{subMenuSelectable:!1},filterProps:{},resizable:!1,asyncResizable:!1},_C._typeMark="column",PC);zC.displayName="Column";var KC,jC,VC=(RC=LC=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.getChildContext=function(){return{parent:this}},t.prototype.render=function(){return null},t}(b.Component),LC.propTypes={title:Nn.oneOfType([Nn.element,Nn.node,Nn.func])},LC.childContextTypes={parent:Nn.any},LC.defaultProps={title:"column-group"},LC._typeMark="columnGroup",RC);VC.displayName="ColumnGroup";var $C=b.Children,GC=function(){},WC=(jC=KC=function(e){function t(n,r){NB(this,t);var o=DB(this,e.call(this,n,r));o.state={sort:o.props.sort||{}},o.onSort=function(e,t,n){void 0===o.props.sort?o.setState({sort:n},function(){o.props.onSort(e,t,n)}):o.props.onSort(e,t,n)},o.onFilter=function(e){o.props.onFilter(e)},o.onResizeChange=function(e,t){o.props.onResizeChange(e,t)},o.getResizeProxyDomRef=function(e){if(!e)return o.resizeProxyDomRef;o.resizeProxyDomRef=e},o.getWrapperRef=function(e){if(!e)return o.wrapper;o.wrapper=e},o.getAffixRef=function(e){if(!e)return o.affixRef;o.affixRef=e},o.getHeaderCellRef=function(e,t,n){var r="header_cell_"+e+"_"+t;if(!n)return o[r];o[r]=n},o.getRowRef=function(e,t){var n="row_"+e;if(!t)return o[n];o[n]=t},o.getCellRef=function(e,t,n){var r="cell_"+e+"_"+t;if(!n)return o[r];o[r]=n},o.handleColHoverClass=function(e,t,n){var r=o.props.crossline,i=n?"addClass":"removeClass";r&&o.props.entireDataSource.forEach(function(e,n){try{var r=w.findDOMNode(o.getCellRef(n,t));r&&Oo[i](r,"hovered")}catch(a){return null}})},o.findEventTarget=function(e){var t=o.props.prefix,n=Oo.getClosest(e.target,"td."+t+"table-cell"),r=n&&n.getAttribute("data-next-table-col"),i=n&&n.getAttribute("data-next-table-row");try{if(w.findDOMNode(o.getCellRef(i,r))===n)return{colIndex:r,rowIndex:i}}catch(a){return{}}return{}},o.onBodyMouseOver=function(e){if(o.props.crossline){var t=o.findEventTarget(e),n=t.colIndex,r=t.rowIndex;n&&r&&(o.handleColHoverClass(r,n,!0),o.colIndex=n,o.rowIndex=r)}},o.onBodyMouseOut=function(e){if(o.props.crossline){var t=o.findEventTarget(e),n=t.colIndex,r=t.rowIndex;n&&r&&(o.handleColHoverClass(o.rowIndex,o.colIndex,!1),o.colIndex=-1,o.rowIndex=-1)}},o.addColIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e.forEach(function(e,n){e.__colIndex=t+n})},o.getTableEl=function(e){o.tableEl=e};var i=o.context,a=i.getTableInstance,A=i.getTableInstanceForVirtual,s=i.getTableInstanceForFixed,l=i.getTableInstanceForExpand;return a&&a(n.lockType,o),s&&s(n.lockType,o),A&&A(n.lockType,o),l&&l(o),o.notRenderCellIndex=[],o}return GB(t,e),t.prototype.getChildContext=function(){return{notRenderCellIndex:this.notRenderCellIndex||[],lockType:this.props.lockType}},t.getDerivedStateFromProps=function(e){var t={};return void 0!==e.sort&&(t.sort=e.sort),t},t.prototype.componentDidMount=function(){this.notRenderCellIndex=[]},t.prototype.shouldComponentUpdate=function(e,t,n){return!e.pure||!(oC(e,this.props)&&Ho.shallowEqual(t,this.state)&&Ho.shallowEqual(n,this.context))},t.prototype.componentDidUpdate=function(){this.notRenderCellIndex=[]},t.prototype.normalizeChildrenState=function(e){var t=e.columns;return e.children&&(t=this.normalizeChildren(e)),this.fetchInfoFromBinaryChildren(t)},t.prototype.normalizeChildren=function(e){var t=e.columns;return e.children&&(t=function e(t){var n=[];return $C.forEach(t,function(t){if(t){var r=Uv({},t.props);t.ref&&(r.ref=t.ref),t&&["function","object"].indexOf(IB(t.type))>-1&&("column"===t.type._typeMark||"columnGroup"===t.type._typeMark)||No.warning("Use <Table.Column/>, <Table.ColumnGroup/> as child."),n.push(r),t.props.children&&(r.children=e(t.props.children))}}),n}(e.children)),t},t.prototype.fetchInfoFromBinaryChildren=function(e){var t=!1,n=[],r=[],o=function e(t,n){return n=n||0,t.forEach(function(t){t.children?n=e(t.children,n):n+=1}),n};!function e(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments[1];r[i]=r[i]||[],o.forEach(function(o){o.headerCellRowIndex=i,o.headerCellColIndex=r[i].length,o.children?(t=!0,e(o.children,i+1)):n.push(o),r[i].push(o)})}(e,0),r.forEach(function(e,t){e.forEach(function(e,n){var i=void 0,a=e.children;a&&(i=o(a),e.colSpan=i,r[t][n]=e)})});var i=this.props,a=i.lockType,A=i.lengths,s="right"===a?A.origin-A.right:0;return this.addColIndex(n,s),{flatChildren:n,groupChildren:r,hasGroupHeader:t}},t.prototype.renderColGroup=function(e){var t=e.map(function(e,t){var n=e.width,r={};return n&&(r={width:n}),b.createElement("col",{style:r,key:t})});return b.createElement("colgroup",{key:"table-colgroup"},t)},t.prototype.renderTable=function(e,t){if(t.length||!t.length&&!this.props.lockType){var n=this.props,r=n.hasHeader,o=n.components,i=n.prefix,a=n.wrapperContent,A=n.filterParams,s=n.locale,l=n.dataSource,c=n.emptyContent,u=n.loading,d=n.primaryKey,p=n.cellProps,h=n.rowProps,f=n.onRowClick,m=n.onRowMouseEnter,g=n.onRowMouseLeave,y=n.expandedIndexSimulate,v=n.pure,w=n.rtl,B=n.crossline,C=n.sortIcons,x=n.tableWidth,E=this.state.sort,k=o.Header,F=void 0===k?HC:k,S=o.Wrapper,Q=void 0===S?DC:S,U=o.Body,O=void 0===U?wC:U,T=this.renderColGroup(t);return[b.createElement("div",{key:i+"table-column-resize-proxy",ref:this.getResizeProxyDomRef,className:i+"table-column-resize-proxy"}),b.createElement(Q,{key:i+"table-wrapper",colGroup:T,ref:this.getWrapperRef,prefix:i,tableWidth:x},r?b.createElement(F,{prefix:i,rtl:w,pure:v,affixRef:this.getAffixRef,colGroup:T,className:i+"table-header",filterParams:A,tableEl:this.tableEl,columns:e,locale:s,headerCellRef:this.getHeaderCellRef,components:o,onFilter:this.onFilter,sort:E,onResizeChange:this.onResizeChange,onSort:this.onSort,sortIcons:C,tableWidth:x,resizeProxyDomRef:this.resizeProxyDomRef}):null,b.createElement(O,{prefix:i,rtl:w,pure:v,crossline:B,colGroup:T,className:i+"table-body",components:o,loading:u,emptyContent:c,getCellProps:p,primaryKey:d,getRowProps:h,columns:t,rowRef:this.getRowRef,cellRef:this.getCellRef,onRowClick:f,expandedIndexSimulate:y,tableEl:this.tableEl,onRowMouseEnter:m,onRowMouseLeave:g,dataSource:l,locale:s,onBodyMouseOver:this.onBodyMouseOver,onBodyMouseOut:this.onBodyMouseOut,tableWidth:x}),a)]}return null},t.prototype.render=function(){var e,n,r=this.normalizeChildrenState(this.props);this.groupChildren=r.groupChildren,this.flatChildren=r.flatChildren;var o=this.renderTable(r.groupChildren,r.flatChildren),i=this.props,a=i.className,A=i.style,s=i.hasBorder,l=i.isZebra,c=i.loading,u=i.size,d=i.hasHeader,p=i.prefix;i.dataSource,i.entireDataSource,i.onSort,i.onResizeChange,i.onRowClick,i.onRowMouseEnter,i.onRowMouseLeave,i.onFilter,i.rowProps,i.cellProps,i.scrollToRow,i.primaryKey,i.components,i.wrapperContent,i.lockType,i.locale,i.expandedIndexSimulate,i.refs,i.pure;var h=i.rtl;i.emptyContent,i.filterParams,i.columns,i.sortIcons;var f=i.loadingComponent,m=void 0===f?qm:f,g=i.tableLayout;i.tableWidth;var y=i.ref,v=Ov(i,["className","style","hasBorder","isZebra","loading","size","hasHeader","prefix","dataSource","entireDataSource","onSort","onResizeChange","onRowClick","onRowMouseEnter","onRowMouseLeave","onFilter","rowProps","cellProps","scrollToRow","primaryKey","components","wrapperContent","lockType","locale","expandedIndexSimulate","refs","pure","rtl","emptyContent","filterParams","columns","sortIcons","loadingComponent","tableLayout","tableWidth","ref"]),w=_n(((e={})[p+"table"]=!0,e[p+"table-"+u]=u,e[p+"table-layout-"+g]=g,e[p+"table-loading"]=c,e["only-bottom-border"]=!s,e["no-header"]=!d,e.zebra=l,e[a]=a,e));h&&(v.dir="rtl");var B=_n(((n={})[p+"table-loading-content"]=!0,n));return b.createElement("div",Uv({className:w,style:A,ref:y||this.getTableEl},Ho.pickOthers(Object.keys(t.propTypes),v)),o,c?b.createElement(m,{className:B}):null)},t}(b.Component),KC.Column=zC,KC.ColumnGroup=VC,KC.Header=HC,KC.Body=wC,KC.Wrapper=DC,KC.Row=pC,KC.Cell=mC,KC.Filter=CC,KC.Sort=SC,KC.propTypes=Uv({},sc.propTypes,{prefix:Nn.string,pure:Nn.bool,rtl:Nn.bool,tableLayout:Nn.oneOf(["fixed","auto"]),tableWidth:Nn.number,className:Nn.string,style:Nn.object,size:Nn.oneOf(["small","medium"]),dataSource:Nn.array,entireDataSource:Nn.array,onRowClick:Nn.func,onRowMouseEnter:Nn.func,onRowMouseLeave:Nn.func,onSort:Nn.func,onFilter:Nn.func,onResizeChange:Nn.func,rowProps:Nn.func,cellProps:Nn.func,keepForwardRenderRows:Nn.number,hasBorder:Nn.bool,hasHeader:Nn.bool,isZebra:Nn.bool,loading:Nn.bool,loadingComponent:Nn.func,filterParams:Nn.object,sort:Nn.object,sortIcons:Nn.object,locale:Nn.object,components:Nn.object,columns:Nn.array,emptyContent:Nn.node,primaryKey:Nn.oneOfType([Nn.symbol,Nn.string]),lockType:Nn.oneOf(["left","right"]),wrapperContent:Nn.any,refs:Nn.object,expandedRowRender:Nn.func,rowExpandable:Nn.func,expandedRowIndent:Nn.array,hasExpandedRowCtrl:Nn.bool,getExpandedColProps:Nn.func,openRowKeys:Nn.array,defaultOpenRowKeys:Nn.array,onRowOpen:Nn.func,onExpandedRowClick:Nn.func,fixedHeader:Nn.bool,maxBodyHeight:Nn.oneOfType([Nn.number,Nn.string]),rowSelection:Nn.object,stickyHeader:Nn.bool,offsetTop:Nn.number,affixProps:Nn.object,indent:Nn.number,isTree:Nn.bool,useVirtual:Nn.bool,rowHeight:Nn.oneOfType([Nn.number,Nn.func]),scrollToRow:Nn.number,onBodyScroll:Nn.func,expandedIndexSimulate:Nn.bool,crossline:Nn.bool,lengths:Nn.object}),KC.defaultProps={dataSource:[],onRowClick:GC,onRowMouseEnter:GC,onRowMouseLeave:GC,onSort:GC,onFilter:GC,onResizeChange:GC,size:"medium",rowProps:GC,cellProps:GC,prefix:"next-",hasBorder:!0,keepForwardRenderRows:10,hasHeader:!0,isZebra:!1,loading:!1,expandedIndexSimulate:!1,primaryKey:"id",components:{},locale:Xs.Table,crossline:!1},KC.childContextTypes={notRenderCellIndex:Nn.array,lockType:Nn.oneOf(["left","right"])},KC.contextTypes={getTableInstance:Nn.func,getTableInstanceForFixed:Nn.func,getTableInstanceForVirtual:Nn.func,getTableInstanceForExpand:Nn.func},jC);WC.displayName="Table";const YC=lr(WC);var qC,XC,JC,ZC,ex=(XC=qC=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.onMouseEnter=function(e,t,n){var o=r.context.onRowMouseEnter,i=r.props.onMouseEnter;o&&o(e,t,n),i(e,t,n)},r.onMouseLeave=function(e,t,n){var o=r.context.onRowMouseLeave,i=r.props.onMouseLeave;o&&o(e,t,n),i(e,t,n)},DB(r,n)}return GB(t,e),t.prototype.render=function(){return b.createElement(pC,Uv({},this.props,{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave}))},t}(b.Component),qC.propTypes=Uv({},pC.propTypes),qC.contextTypes={onRowMouseEnter:Nn.func,onRowMouseLeave:Nn.func},qC.defaultProps=Uv({},pC.defaultProps),XC);ex.displayName="LockRow";var tx,nx,rx=(ZC=JC=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.getExpandedRow=function(e,t){var n=r.context.getExpandedRowRef;n&&n(e,t)},DB(r,n)}return GB(t,e),t.prototype.renderExpandedRow=function(e,t){var n=this.context,r=n.expandedRowRender,o=n.expandedRowIndent,i=n.openRowKeys,a=n.lockType,A=n.expandedIndexSimulate,s=n.expandedRowWidthEquals2Table,l=A?(t-1)/2:t,c=this.props,u=c.columns,d=c.cellRef,p=u.length,h=u[0]&&u[0].__colIndex||0;if(r){var f=this.props,m=f.primaryKey,g=f.prefix,y=o[0],v=o[1],w=y+v,B=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],o=function(e){r.push(b.createElement("td",{key:e,ref:function(r){return d(t,e+n,r)}},"\xa0"))},i=0;i<e;i++)o(i);return r},C=void 0;if(w>p&&!a&&No.warning("It's not allowed expandedRowIndent is more than the number of columns."),y<u.length&&"left"===a&&No.warning("expandedRowIndent left is less than the number of left lock columns."),v<u.length&&"right"===a&&No.warning("expandedRowIndent right is less than the number of right lock columns."),a)return i.indexOf(e[m])>-1?b.createElement("tr",{className:g+"table-expanded-row",key:"expanded-"+l},b.createElement("td",{colSpan:p,ref:function(e){return d(t,h,e)}},"\xa0")):null;var x={position:"sticky",left:0};C=r(e,l),C=b.isValidElement(C)?s?b.createElement("div",{className:g+"table-expanded-area",ref:this.getExpandedRow.bind(this,e[m]),style:x},C):C:b.createElement("div",{className:g+"table-cell-wrapper",ref:this.getExpandedRow.bind(this,e[m]),style:s&&x},C);var E=u.length;return u.forEach(function(e){"right"===e.lock&&E--}),i.indexOf(e[m])>-1?b.createElement("tr",{className:g+"table-expanded-row",key:"expanded-"+(e[m]||l)},B(y),b.createElement("td",{colSpan:p-w},C),B(v,E)):null}return null},t.prototype.render=function(){var e=this.props,t=e.record,n=e.rowIndex,r=e.columns,o=Ov(e,["record","rowIndex","columns"]),i=this.context.expandedIndexSimulate;if(t.__expanded)return this.renderExpandedRow(t,n,r);var a=i?n/2:n;return b.createElement(ex,Uv({},o,{record:t,columns:r,__rowIndex:n,rowIndex:a}))},t}(b.Component),JC.propTypes=Uv({},ex.propTypes),JC.defaultProps=Uv({},ex.defaultProps),JC.contextTypes={openRowKeys:Nn.array,expandedRowRender:Nn.func,expandedRowIndent:Nn.array,expandedIndexSimulate:Nn.bool,expandedRowWidthEquals2Table:Nn.bool,lockType:Nn.oneOf(["left","right"]),getExpandedRowRef:Nn.func},ZC);rx.displayName="ExpandedRow";var ox,ix,ax=(nx=tx=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.record,o=t.primaryKey,i=this.context.selectedRowKeys,a=_n(((e={selected:i.indexOf(r[o])>-1})[n]=n,e));return b.createElement(rx,Uv({},this.props,{className:a}))},t}(b.Component),tx.propTypes=Uv({},rx.propTypes),tx.defaultProps=Uv({},rx.defaultProps),tx.contextTypes={selectedRowKeys:Nn.array},nx);ax.displayName="SelectionRow";var Ax,sx,lx=(ix=ox=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.record,o=t.primaryKey,i=t.prefix,a=Ov(t,["className","record","primaryKey","prefix"]),A=this.context,s=A.treeStatus,l=A.openRowKeys,c=_n(((e={hidden:!(s.indexOf(r[o])>-1)&&0!==r.__level})[i+"table-row-level-"+r.__level]=!0,e.opened=l.indexOf(r[o])>-1,e[n]=n,e));return b.createElement(ax,Uv({},a,{record:r,className:c,primaryKey:o,prefix:i}))},t}(b.Component),ox.propTypes=Uv({},ax.propTypes),ox.defaultProps=Uv({},ax.defaultProps),ox.contextTypes={treeStatus:Nn.array,openRowKeys:Nn.array},ix);lx.displayName="TreeRow";var cx=(sx=Ax=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.onTreeNodeClick=function(e,t){t.stopPropagation(),r.context.onTreeNodeClick(e)},r.expandedKeydown=function(e,t){t.preventDefault(),t.stopPropagation(),t.keyCode===Lo.ENTER&&r.onTreeNodeClick(e,t)},DB(r,n)}return GB(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.colIndex,r=t.record,o=t.prefix,i=t.primaryKey,a=t.locale,A=t.rtl,s=t.children,l=this.context,c=l.openTreeRowKeys,u=l.indent,d=l.isTree,p=void 0,h=void 0;if(n===(l.rowSelection?1:0)){var f,m=void 0;if(d)if((f={})[A?"paddingRight":"paddingLeft"]=u*(r.__level+1),p=f,h=b.createElement(Xd,{size:"xs",rtl:A,className:o+"table-tree-placeholder",type:"arrow-right"}),r.children&&r.children.length){var g=c.indexOf(r[i])>-1;m=g?"arrow-down":"arrow-right",h=b.createElement(Xd,{className:o+"table-tree-arrow",type:m,size:"xs",rtl:A,onClick:function(t){return e.onTreeNodeClick(r,t)},onKeyDown:function(t){return e.expandedKeydown(r,t)},role:"button",tabIndex:"0","aria-expanded":g,"aria-label":g?a.expanded:a.folded})}}return b.createElement(mC,Uv({},this.props,{innerStyle:p,isIconLeft:!!h}),s,h)},t}(b.Component),Ax.propTypes=Uv({indent:Nn.number,locale:Nn.object},mC.propTypes),Ax.defaultProps=Uv({},mC.defaultProps,{component:"td",indent:20}),Ax.contextTypes={openTreeRowKeys:Nn.array,indent:Nn.number,onTreeNodeClick:Nn.func,isTree:Nn.bool,rowSelection:Nn.object},sx);cx.displayName="TreeCell";var ux,dx,px=function(){};function hx(e){var t,n,r=(n=t=function(t){function n(e,r){NB(this,n);var o=DB(this,t.call(this,e,r));return o.onTreeNodeClick=function(e){var t,n,r,i=o.props.primaryKey,a=e[i],A=o.ds,s=[].concat(o.state.openRowKeys),l=s.indexOf(a);l>-1?(n=[t=a],r=function e(t){t.forEach(function(t){n.push(t[i]),t.children&&e(t.children)})},A.forEach(function(e){e[i]===t&&e.children&&r(e.children)}),n).forEach(function(e){var t=s.indexOf(e);t>-1&&s.splice(t,1)}):s.push(a);"openRowKeys"in o.props||o.setState({openRowKeys:s}),o.props.onRowOpen(s,a,-1===l,e)},o.state={openRowKeys:e.openRowKeys||e.defaultOpenRowKeys||[]},o}return GB(n,t),n.prototype.getChildContext=function(){return{openTreeRowKeys:this.state.openRowKeys,indent:this.props.indent,treeStatus:this.getTreeNodeStatus(this.ds),onTreeNodeClick:this.onTreeNodeClick,isTree:this.props.isTree}},n.getDerivedStateFromProps=function(e){return"openRowKeys"in e?{openRowKeys:e.openRowKeys||[]}:null},n.prototype.normalizeDataSource=function(e){var t=this.state.openRowKeys,n=this.props.primaryKey,r=[];return function e(o,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;o.forEach(function(o){o.__level=i,0===i||t.indexOf(a)>-1?o.__hidden=!1:o.__hidden=!0,r.push(o),o.children&&e(o.children,i+1,o[n])})}(e,0),this.ds=r,r},n.prototype.getTreeNodeStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.state.openRowKeys,n=this.props.primaryKey,r=[];return t.forEach(function(t){e.forEach(function(e){e[n]===t&&e.children&&e.children.forEach(function(e){r.push(e[n])})})}),r},n.prototype.render=function(){var t=this.props,n=t.components,r=t.isTree,o=t.dataSource;t.indent;var i=Ov(t,["components","isTree","dataSource","indent"]);return r&&((n=Uv({},n)).Row||(n.Row=lx),n.Cell||(n.Cell=cx),o=this.normalizeDataSource(o)),b.createElement(e,Uv({},i,{dataSource:o,components:n}))},n}(b.Component),t.TreeRow=lx,t.TreeCell=cx,t.propTypes=Uv({openRowKeys:Nn.array,defaultOpenRowKeys:Nn.array,onRowOpen:Nn.func,primaryKey:Nn.oneOfType([Nn.symbol,Nn.string]),indent:Nn.number,isTree:Nn.bool,locale:Nn.object},e.propTypes),t.defaultProps=Uv({},e.defaultProps,{primaryKey:"id",onRowOpen:px,components:{},indent:12}),t.childContextTypes={openTreeRowKeys:Nn.array,indent:Nn.number,treeStatus:Nn.array,onTreeNodeClick:Nn.func,isTree:Nn.bool},n);return r.displayName="TreeTable",cC(r,e),lr(r)}var fx,mx,gx=(dx=ux=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.componentDidMount=function(){this.context.getNode("header",w.findDOMNode(this))},t.prototype.render=function(){var e=this.props,t=e.prefix,n=e.className,r=e.colGroup,o=e.tableWidth,i=Ov(e,["prefix","className","colGroup","tableWidth"]),a=this.context,A=a.onFixedScrollSync,s=a.lockType;return b.createElement("div",{className:n,onScroll:A},b.createElement("div",{className:t+"table-header-inner",style:{overflow:"unset"}},b.createElement("table",{style:{width:o}},r,b.createElement(HC,Uv({},i,{prefix:t})))),!s&&b.createElement("div",{className:t+"table-header-fixer",style:{position:"absolute",right:0}}))},t}(b.Component),ux.propTypes={children:Nn.any,prefix:Nn.string,className:Nn.string,colGroup:Nn.any,tableWidth:Nn.number},ux.contextTypes={getNode:Nn.func,onFixedScrollSync:Nn.func,lockType:Nn.oneOf(["left","right"])},dx);gx.displayName="FixedHeader";var yx,vx,bx=(mx=fx=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.onBodyScroll=function(e){var t=r.context.onFixedScrollSync;t&&t(e),"onLockScroll"in r.props&&"function"==typeof r.props.onLockScroll&&r.props.onLockScroll(e)},DB(r,n)}return GB(t,e),t.prototype.componentDidMount=function(){var e=this.context.getNode;e&&e("body",w.findDOMNode(this))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.colGroup;e.onLockScroll;var r=e.tableWidth,o=Ov(e,["className","colGroup","onLockScroll","tableWidth"]),i=this.context,a=i.maxBodyHeight,A={};return i.fixedHeader&&(A.maxHeight=a,A.position="relative"),b.createElement("div",{style:A,className:t,onScroll:this.onBodyScroll},b.createElement("table",{style:{width:r}},n,b.createElement(wC,Uv({},o,{colGroup:n}))))},t}(b.Component),fx.propTypes={children:Nn.any,prefix:Nn.string,className:Nn.string,colGroup:Nn.any,onLockScroll:Nn.func,tableWidth:Nn.number},fx.contextTypes={fixedHeader:Nn.bool,maxBodyHeight:Nn.oneOfType([Nn.number,Nn.string]),onFixedScrollSync:Nn.func,getNode:Nn.func},mx);bx.displayName="FixedBody";var wx=(vx=yx=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.wrapperContent,r=e.prefix;return b.createElement("div",{className:r+"table-inner"},t,n)},t}(b.Component),yx.propTypes={children:Nn.any,prefix:Nn.string,colGroup:Nn.any,wrapperContent:Nn.any},vx);function Bx(e,t){var n,r,o=(r=n=function(t){function n(){var e,r;NB(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=DB(this,t.call.apply(t,[this].concat(i))),r.state={},r.getNode=function(e,t,n){n=n?n.charAt(0).toUpperCase()+n.substr(1):"",r[""+e+n+"Node"]=t},r.getTableInstance=function(e,t){r.tableInc=t},r.onFixedScrollSync=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{currentTarget:{}}).currentTarget||{},t=r.headerNode,n=r.bodyNode,o=e.scrollLeft,i=!(o<e.scrollWidth-e.clientWidth),a=r.props,A=a.prefix;if(!a.loading&&i!==r.scrollToRightEnd){r.scrollToRightEnd=i;var s=r.getTableNode();Oo[i?"removeClass":"addClass"](s,A+"table-scrolling-to-right")}r.scrollTarget&&r.scrollTarget!==e||(r.scrollTarget=e,window.clearTimeout(r.timeoutId),r.timeoutId=window.setTimeout(function(){r.scrollTarget=null,r.timeoutId=void 0},100),e===n?t&&o!==t.scrollLeft&&(t.scrollLeft=o):e===t&&n&&o!==n.scrollLeft&&(n.scrollLeft=o))},DB(r,e)}return GB(n,t),n.prototype.getChildContext=function(){return{fixedHeader:this.props.fixedHeader,maxBodyHeight:this.props.maxBodyHeight,getTableInstanceForFixed:this.getTableInstance,onFixedScrollSync:this.onFixedScrollSync,getNode:this.getNode}},n.prototype.componentDidMount=function(){this.adjustFixedHeaderSize(),this.scrollToRightEnd=void 0,this.onFixedScrollSync({currentTarget:this.bodyNode,target:this.bodyNode})},n.prototype.componentDidUpdate=function(){this.adjustFixedHeaderSize(),this.onFixedScrollSync({currentTarget:this.bodyNode,target:this.bodyNode})},n.prototype.getTableNode=function(){var e=this.tableInc;try{return w.findDOMNode(e.tableEl)}catch(t){return null}},n.prototype.adjustFixedHeaderSize=function(){var e=this.props,t=e.hasHeader,n=e.rtl,r=e.prefix,o=n?"paddingLeft":"paddingRight",i=n?"marginLeft":"marginRight",a=this.bodyNode,A=+Oo.scrollbar().width||0;if(t&&!this.props.lockType&&a){var s=a.scrollHeight>a.clientHeight,l=(a.scrollWidth,a.clientWidth,{});s||(l[o]=0,l[i]=0),+A&&(l.marginBottom=-A,l.paddingBottom=A,s&&(l[i]=A)),Oo.setStyle(this.headerNode,l)}if(t&&!this.props.lockType&&this.headerNode){var c=this.headerNode.querySelector("."+r+"table-header-fixer"),u=Oo.getStyle(this.headerNode,"height"),d=Oo.getStyle(this.headerNode,"paddingBottom");Oo.setStyle(c,{width:A,height:u-d})}},n.prototype.render=function(){var t=this.props,n=t.components,r=t.className,o=t.prefix,i=t.fixedHeader,a=t.lockType,A=t.dataSource;t.maxBodyHeight;var s,l=Ov(t,["components","className","prefix","fixedHeader","lockType","dataSource","maxBodyHeight"]);i&&((n=Uv({},n)).Header||(n.Header=gx),n.Body||(n.Body=bx),n.Wrapper||(n.Wrapper=wx),r=_n(((s={})[o+"table-fixed"]=!0,s[o+"table-wrap-empty"]=!A.length,s[r]=r,s)));return b.createElement(e,Uv({},l,{dataSource:A,lockType:a,components:n,className:r,prefix:o}))},n}(b.Component),n.FixedHeader=gx,n.FixedBody=bx,n.FixedWrapper=wx,n.propTypes=Uv({hasHeader:Nn.bool,fixedHeader:Nn.bool,maxBodyHeight:Nn.oneOfType([Nn.number,Nn.string])},e.propTypes),n.defaultProps=Uv({},e.defaultProps,{hasHeader:!0,fixedHeader:!1,maxBodyHeight:200,components:{},refs:{},prefix:"next-"}),n.childContextTypes={fixedHeader:Nn.bool,getNode:Nn.func,onFixedScrollSync:Nn.func,getTableInstanceForFixed:Nn.func,maxBodyHeight:Nn.oneOfType([Nn.number,Nn.string])},r);return o.displayName="FixedTable",cC(o,e),o}wx.displayName="FixedWrapper";var Cx=Io.makeChain,xx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"this",n={},r=[];return e.forEach(function(e){var o=void 0;o="this"===t?e:e[t],n[o]||(r.push(e),n[o]=!0)}),r};function Ex(e){var t,n,r=(n=t=function(t){function n(e,r){NB(this,n);var o=DB(this,t.call(this,e,r));return o.addSelection=function(e){var t=o.props,n=t.prefix,r=t.rowSelection,i=t.size,a=r.columnProps&&r.columnProps()||{};e.find(function(e){return"selection"===e.key})||e.unshift(Uv({key:"selection",title:o.renderSelectionHeader.bind(o),cell:o.renderSelectionBody.bind(o),width:"small"===i?34:50,className:n+"table-selection "+n+"table-prerow",__normalized:!0},a))},o.renderSelectionHeader=function(){var e=o.selectAllRow,t={},n=o.props,r=n.rowSelection,i=n.primaryKey,a=n.dataSource,A=n.entireDataSource,s=n.locale,l=o.state.selectedRowKeys,c=r.mode?r.mode:"multiple",u=!!l.length,d=!1,p=A||a;o.flatDataSource(p).filter(function(e,t){return!r.getProps||!(r.getProps(e,t)||{}).disabled}).map(function(e){return e[i]}).forEach(function(e){-1===l.indexOf(e)?u=!1:d=!0}),t.onClick=Cx(function(e){e.stopPropagation()},t.onClick);var h=r.titleProps&&r.titleProps()||{};return u&&(d=!1),["multiple"===c?b.createElement(hh,Uv({key:"_total",indeterminate:d,"aria-label":s.selectAll,checked:u,onChange:e},t,h)):null,r.titleAddons&&r.titleAddons()]},o.renderSelectionBody=function(e,t,n){var r=o.props,i=r.rowSelection,a=r.primaryKey,A=o.state.selectedRowKeys,s=i.mode?i.mode:"multiple",l=A.indexOf(n[a])>-1,c=o.selectOneRow.bind(o,t,n),u=i.getProps&&i.getProps(n,t)||{};return u.onClick=Cx(function(e){e.stopPropagation()},u.onClick),"multiple"===s?b.createElement(hh,Uv({checked:l,onChange:c},u)):b.createElement(Eh,Uv({checked:l,onChange:c},u))},o.selectAllRow=function(e,t){var n=[].concat(o.state.selectedRowKeys),r=o.props,i=r.rowSelection,a=r.primaryKey,A=r.dataSource,s=r.entireDataSource,l=o.state.selectedRowKeys,c=i.getProps,u={},d=[],p=s||A;o.flatDataSource(p).forEach(function(t,r){var o=t[a];if(c&&(u=c(t,r)||{}),e&&(!u.disabled||l.indexOf(o)>-1))n.push(o),d.push(t);else if(u.disabled&&l.indexOf(o)>-1)n.push(o),d.push(t);else{var i=n.indexOf(o);i>-1&&n.splice(i,1)}}),d=xx(d,a),"function"==typeof i.onSelectAll&&i.onSelectAll(e,d),o.triggerSelection(i,xx(n),d),t.stopPropagation()},o.state={selectedRowKeys:e.rowSelection&&"selectedRowKeys"in e.rowSelection&&e.rowSelection.selectedRowKeys||[]},o}return GB(n,t),n.prototype.getChildContext=function(){return{rowSelection:this.props.rowSelection,selectedRowKeys:this.state.selectedRowKeys}},n.getDerivedStateFromProps=function(e){return e.rowSelection&&"selectedRowKeys"in e.rowSelection?{selectedRowKeys:e.rowSelection.selectedRowKeys||[]}:null},n.prototype.normalizeChildren=function(e){var t=this.props,n=t.prefix,r=t.rowSelection,o=t.size;if(r){e=b.Children.map(e,function(e,t){return b.cloneElement(e,{key:t})});var i=r.columnProps&&r.columnProps()||{};return e.unshift(b.createElement(zC,Uv({key:"selection",title:this.renderSelectionHeader.bind(this),cell:this.renderSelectionBody.bind(this),width:"small"===o?34:50,className:n+"table-selection "+n+"table-prerow",__normalized:!0},i))),e}return e},n.prototype.selectOneRow=function(e,t,n,r){var o=[].concat(this.state.selectedRowKeys),i=void 0,a=this.props,A=a.primaryKey,s=a.rowSelection,l=a.dataSource,c=a.entireDataSource,u=s.mode?s.mode:"multiple",d=t[A];null==d&&No.warning("Can't get value from record using given "+A+" as primaryKey."),"multiple"===u?n?o.push(d):(i=o.indexOf(d),o.splice(i,1)):n&&(o=[d]);var p=l;Array.isArray(c)&&c.length>l.length&&(p=c);var h=xx(p.filter(function(e){return o.indexOf(e[A])>-1}),A);"function"==typeof s.onSelect&&s.onSelect(n,t,h),this.triggerSelection(s,o,h),r.stopPropagation()},n.prototype.triggerSelection=function(e,t,n){"selectedRowKeys"in e||this.setState({selectedRowKeys:t}),"function"==typeof e.onChange&&e.onChange(t,n)},n.prototype.flatDataSource=function(e){var t=e,n=this.context.listHeader;if(n){t=[];var r=n.hasChildrenSelection,o=n.hasSelection;e.forEach(function(e){var n=e.children;o&&t.push(e),n&&r&&(t=t.concat(n))})}return t},n.prototype.render=function(){var t=this.props,n=t.rowSelection,r=t.components,o=t.children,i=t.columns,a=Ov(t,["rowSelection","components","children","columns"]);return n&&(i&&!o?this.addSelection(i):o=this.normalizeChildren(o||[]),(r=Uv({},r)).Row=r.Row||ax),b.createElement(e,Uv({},a,{columns:i,components:r,children:o}))},n}(b.Component),t.SelectionRow=ax,t.propTypes=Uv({rowSelection:Nn.object,primaryKey:Nn.oneOfType([Nn.symbol,Nn.string]),dataSource:Nn.array,entireDataSource:Nn.array},e.propTypes),t.defaultProps=Uv({},e.defaultProps,{locale:Xs.Table,primaryKey:"id",prefix:"next-"}),t.contextTypes={listHeader:Nn.any},t.childContextTypes={rowSelection:Nn.object,selectedRowKeys:Nn.array},n);return r.displayName="SelectionTable",cC(r,e),lr(r)}var kx,Fx,Sx=function(){};function Qx(e,t){var n,r,o=(r=n=function(n){function r(){var e,t;NB(this,r);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=t=DB(this,n.call.apply(n,[this].concat(i))),t.state={openRowKeys:t.props.openRowKeys||t.props.defaultOpenRowKeys||[]},t.saveExpandedRowRef=function(e,n){t.expandedRowRefs||(t.expandedRowRefs={}),t.expandedRowRefs[e]=n},t.setExpandedWidth=function(){var e=t.props.prefix,n=t.getTableNode(),r=+(n&&n.clientWidth)-1||"100%",o=n&&n.querySelector("."+e+"table-body");Object.keys(t.expandedRowRefs||{}).forEach(function(e){Oo.setStyle(t.expandedRowRefs[e],{width:o&&o.clientWidth||r})})},t.getTableInstance=function(e){t.tableInc=e},t.expandedKeydown=function(e,n,r,o){o.preventDefault(),o.stopPropagation(),o.keyCode===Lo.ENTER&&t.onExpandedClick(e,n,r,o)},t.renderExpandedCell=function(e,n,r){var o,i=t.props,a=i.getExpandedColProps,A=i.prefix,s=i.locale,l=i.rowExpandable;if("function"==typeof l&&!l(r,n))return"";var c=t.state.openRowKeys,u=t.props.primaryKey,d=c.indexOf(r[u])>-1,p=d?b.createElement(Xd,{type:"minus",size:"xs",className:A+"table-expand-unfold"}):b.createElement(Xd,{type:"add",size:"xs",className:A+"table-expand-fold"}),h=a(r,n)||{},f=_n(((o={})[A+"table-expanded-ctrl"]=!0,o.disabled=h.disabled,o[h.className]=h.className,o));return h.disabled||(h.onClick=t.onExpandedClick.bind(t,e,r,n)),b.createElement("span",Uv({},h,{role:"button",tabIndex:"0",onKeyDown:t.expandedKeydown.bind(t,e,r,n),"aria-label":d?s.expanded:s.folded,"aria-expanded":d,className:f}),p)},t.addExpandCtrl=function(e){var n=t.props,r=n.prefix,o=n.size;e.find(function(e){return"expanded"===e.key})||e.unshift({key:"expanded",title:"",cell:t.renderExpandedCell.bind(t),width:"small"===o?34:50,className:r+"table-expanded "+r+"table-prerow",__normalized:!0})},DB(t,e)}return GB(r,n),r.prototype.getChildContext=function(){return{openRowKeys:this.state.openRowKeys,expandedRowRender:this.props.expandedRowRender,expandedIndexSimulate:this.props.expandedIndexSimulate,expandedRowWidthEquals2Table:t,getExpandedRowRef:this.saveExpandedRowRef,getTableInstanceForExpand:this.getTableInstance,expandedRowIndent:t?[0,0]:this.props.expandedRowIndent}},r.getDerivedStateFromProps=function(e){return"openRowKeys"in e?{openRowKeys:e.openRowKeys||[]}:null},r.prototype.componentDidMount=function(){this.setExpandedWidth(),Mo.on(window,"resize",this.setExpandedWidth)},r.prototype.componentDidUpdate=function(){this.setExpandedWidth()},r.prototype.componentWillUnmount=function(){Mo.off(window,"resize",this.setExpandedWidth)},r.prototype.getTableNode=function(){var e=this.tableInc;try{return w.findDOMNode(e.tableEl)}catch(t){return null}},r.prototype.onExpandedClick=function(e,t,n,r){var o=[].concat(this.state.openRowKeys),i=t[this.props.primaryKey],a=o.indexOf(i);a>-1?o.splice(a,1):o.push(i),"openRowKeys"in this.props||this.setState({openRowKeys:o}),this.props.onRowOpen(o,i,-1===a,t),r.stopPropagation()},r.prototype.normalizeChildren=function(e){var t=this.props,n=t.prefix,r=t.size,o=b.Children.map(e,function(e,t){return b.cloneElement(e,{key:t})});return o.unshift(b.createElement(zC,{title:"",key:"expanded",cell:this.renderExpandedCell.bind(this),width:"small"===r?34:50,className:n+"table-expanded "+n+"table-prerow",__normalized:!0})),o},r.prototype.normalizeDataSource=function(e){var t=[];return e.forEach(function(e){var n=Uv({},e);n.__expanded=!0,t.push(e,n)}),t},r.prototype.render=function(){var t=this.props,n=t.components;t.openRowKeys;var r=t.expandedRowRender;t.rowExpandable;var o=t.hasExpandedRowCtrl,i=t.children,a=t.columns,A=t.dataSource,s=t.entireDataSource;t.getExpandedColProps,t.expandedRowIndent,t.onRowOpen,t.onExpandedRowClick;var l=Ov(t,["components","openRowKeys","expandedRowRender","rowExpandable","hasExpandedRowCtrl","children","columns","dataSource","entireDataSource","getExpandedColProps","expandedRowIndent","onRowOpen","onExpandedRowClick"]);(r&&!n.Row&&((n=Uv({},n)).Row=rx,A=this.normalizeDataSource(A),s=this.normalizeDataSource(s)),r&&o)&&(a&&!i?this.addExpandCtrl(a):i=this.normalizeChildren(i||[]));return b.createElement(e,Uv({},l,{columns:a,dataSource:A,entireDataSource:s,components:n}),i)},r}(b.Component),n.ExpandedRow=rx,n.propTypes=Uv({expandedRowRender:Nn.func,rowExpandable:Nn.func,expandedRowIndent:Nn.array,openRowKeys:Nn.array,defaultOpenRowKeys:Nn.array,hasExpandedRowCtrl:Nn.bool,getExpandedColProps:Nn.func,onRowOpen:Nn.func,onExpandedRowClick:Nn.func,locale:Nn.object},e.propTypes),n.defaultProps=Uv({},e.defaultProps,{getExpandedColProps:Sx,onRowOpen:Sx,hasExpandedRowCtrl:!0,components:{},expandedRowIndent:t?[0,0]:[1,0],prefix:"next-"}),n.childContextTypes={openRowKeys:Nn.array,expandedRowRender:Nn.func,expandedIndexSimulate:Nn.bool,expandedRowWidthEquals2Table:Nn.bool,expandedRowIndent:Nn.array,getExpandedRowRef:Nn.func,getTableInstanceForExpand:Nn.func},r);return o.displayName="ExpandedTable",cC(o,e),lr(o)}var Ux=(Fx=kx=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.tableRef=function(e){r.tableNode=e},r.virtualScrollRef=function(e){r.virtualScrollNode=e},r.onScroll=function(e){r.context.onFixedScrollSync(e),r.context.onLockBodyScroll(e),r.context.onVirtualScroll()},DB(r,n)}return GB(t,e),t.prototype.componentDidMount=function(){var e=w.findDOMNode(this);this.context.getNode("body",e),this.context.getBodyNode(e,this.context.lockType),this.context.getLockNode("body",e,this.context.lockType)},t.prototype.render=function(){var e=this.props,t=e.prefix,n=e.className,r=e.colGroup,o=e.tableWidth,i=Ov(e,["prefix","className","colGroup","tableWidth"]),a=this.context,A=a.maxBodyHeight,s=a.bodyHeight,l=a.innerTop,c={width:o},u={position:"relative"};return s>A&&(u.height=s),b.createElement("div",{style:{maxHeight:A},className:n,onScroll:this.onScroll},b.createElement("div",{style:u,ref:this.virtualScrollRef},b.createElement("div",{style:{position:"relative",transform:"translateY("+l+"px)",willChange:"transform"}},b.createElement("table",{ref:this.tableRef,style:c},r,b.createElement(wC,Uv({},i,{prefix:t}))))))},t}(b.Component),kx.propTypes={children:Nn.any,prefix:Nn.string,className:Nn.string,colGroup:Nn.any,tableWidth:Nn.number},kx.contextTypes={maxBodyHeight:Nn.oneOfType([Nn.number,Nn.string]),onBodyScroll:Nn.func,onFixedScrollSync:Nn.func,onVirtualScroll:Nn.func,onLockBodyScroll:Nn.func,bodyHeight:Nn.number,innerTop:Nn.number,getNode:Nn.func,getBodyNode:Nn.func,getLockNode:Nn.func,lockType:Nn.oneOf(["left","right"])},Fx);Ux.displayName="VirtualBody";var Ox,Tx,Mx=function(){};function Ix(e){var t,n,r=(n=t=function(t){function n(e,r){NB(this,n);var o=DB(this,t.call(this,e,r));o.onScroll=function(){var e=o.bodyNode.scrollTop;if(e!==o.lastScrollTop){var t=o.computeScrollToRow(e);"scrollToRow"in o.props||o.setState({scrollToRow:t}),o.props.onBodyScroll(t),o.lastScrollTop=e}},o.getBodyNode=function(e,t){t=t?t.charAt(0).toUpperCase()+t.substr(1):"",o["body"+t+"Node"]=e},o.getTableInstance=function(e,t){e=e?e.charAt(0).toUpperCase()+e.substr(1):"",o["table"+e+"Inc"]=t};var i=e.useVirtual,a=e.dataSource,A=i&&a&&a.length>0;return o.state={rowHeight:o.props.rowHeight,scrollToRow:o.props.scrollToRow,height:o.props.maxBodyHeight,hasVirtualData:A},o}return GB(n,t),n.prototype.getChildContext=function(){return{onVirtualScroll:this.onScroll,bodyHeight:this.computeBodyHeight(),innerTop:this.computeInnerTop(),getBodyNode:this.getBodyNode,getTableInstanceForVirtual:this.getTableInstance,rowSelection:this.rowSelection}},n.getDerivedStateFromProps=function(e,t){var n={};return"maxBodyHeight"in e&&t.height!==e.maxBodyHeight&&(n.height=e.maxBodyHeight),"scrollToRow"in e&&(n.scrollToRow=e.scrollToRow),t.useVirtual===e.useVirtual&&t.dataSource===e.dataSource||(n.hasVirtualData=e.useVirtual&&e.dataSource&&e.dataSource.length>0),n},n.prototype.componentDidMount=function(){this.state.hasVirtualData&&this.bodyNode?this.lastScrollTop=this.bodyNode.scrollTop:this.lastScrollTop=0,this.adjustScrollTop(),this.adjustSize(),this.reComputeSize()},n.prototype.componentDidUpdate=function(){this.adjustScrollTop(),this.adjustSize(),this.reComputeSize()},n.prototype.reComputeSize=function(){var e=this.state,t=e.rowHeight,n=e.hasVirtualData;if("function"==typeof t&&n){var r=this.getRowNode(),o=r&&r.clientHeight;o!==this.state.rowHeight&&this.setState({rowHeight:o})}},n.prototype.computeBodyHeight=function(){var e=this.state.rowHeight,t=this.props.dataSource;if("function"==typeof e)return 0;var n=0;return t.forEach(function(e){e.__hidden||(n+=1)}),n*e},n.prototype.computeInnerTop=function(){var e=this.props.keepForwardRenderRows,t=this.state.rowHeight;return"function"==typeof t?0:Math.max(this.start-e,0)*t},n.prototype.getVisibleRange=function(e){var t=this.state,n=t.height,r=t.rowHeight,o=this.props.dataSource.length,i=void 0,a=0,A=0;return"function"==typeof r?i=1:(a=parseInt(Oo.getPixels(n)/r,10),"number"==typeof e&&(A=e<o?e:0),i=Math.min(+A+1+a+10,o)),this.end=i,this.visibleCount=a,{start:A,end:i}},n.prototype.adjustScrollTop=function(){var e=this.state,t=e.rowHeight,n=e.hasVirtualData,r=e.scrollToRow,o=Math.floor(this.lastScrollTop/t);n&&this.bodyNode&&(this.bodyNode.scrollTop=o!==r?t*r:this.lastScrollTop%t+t*r)},n.prototype.adjustSize=function(){if(this.state.hasVirtualData&&this.bodyNode){var e=this.bodyNode,t=e.querySelector("div"),n=e.clientHeight,r=e.clientWidth,o=this.tableInc,i=w.findDOMNode(o),a=this.props.prefix,A=i.querySelector("."+a+"table-header table"),s=A&&A.clientWidth;if(r<s){Oo.setStyle(t,"min-width",s);var l=this.bodyLeftNode,c=this.bodyRightNode;l&&Oo.setStyle(l,"max-height",n),c&&Oo.setStyle(c,"max-height",n)}else Oo.setStyle(t,"min-width","auto")}},n.prototype.computeScrollToRow=function(e){var t=this.state.rowHeight,n=parseInt(e/t);return this.start=n,n},n.prototype.getRowNode=function(){try{return w.findDOMNode(this.tableInc.getRowRef(0))}catch(e){return null}},n.prototype.render=function(){var t=this.props;t.useVirtual;var n=t.components,r=t.dataSource,o=t.fixedHeader;t.rowHeight;var i=t.scrollToRow;t.onBodyScroll;var a=t.keepForwardRenderRows,A=Ov(t,["useVirtual","components","dataSource","fixedHeader","rowHeight","scrollToRow","onBodyScroll","keepForwardRenderRows"]),s=r,l=r;if(this.rowSelection=this.props.rowSelection,this.state.hasVirtualData){l=[],n=Uv({},n);var c=this.getVisibleRange(this.state.scrollToRow),u=c.start,d=c.end,p=-1;r.forEach(function(e,t,n){e.__hidden||(p+=1)>=Math.max(u-a,0)&&p<d&&l.push(e),e.__rowIndex=t}),n.Body||(n.Body=Ux),o=!0}return b.createElement(e,Uv({},A,{scrollToRow:i,dataSource:l,entireDataSource:s,components:n,fixedHeader:o}))},n}(b.Component),t.VirtualBody=Ux,t.propTypes=Uv({useVirtual:Nn.bool,rowHeight:Nn.oneOfType([Nn.number,Nn.func]),maxBodyHeight:Nn.oneOfType([Nn.number,Nn.string]),primaryKey:Nn.oneOfType([Nn.symbol,Nn.string]),dataSource:Nn.array,onBodyScroll:Nn.func,keepForwardRenderRows:Nn.number},e.propTypes),t.defaultProps=Uv({},e.defaultProps,{primaryKey:"id",rowHeight:Mx,maxBodyHeight:200,components:{},prefix:"next-",onBodyScroll:Mx,keepForwardRenderRows:10}),t.childContextTypes={onVirtualScroll:Nn.func,bodyHeight:Nn.number,innerTop:Nn.number,getBodyNode:Nn.func,getTableInstanceForVirtual:Nn.func,rowSelection:Nn.object},n);return r.displayName="VirtualTable",cC(r,e),lr(r)}var Nx,Hx,_x=(Tx=Ox=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.onBodyScroll=function(e){r.context.onLockBodyScroll(e)},DB(r,n)}return GB(t,e),t.prototype.componentDidMount=function(){this.context.getLockNode("body",w.findDOMNode(this),this.context.lockType)},t.prototype.render=function(){var e={onLockScroll:this.onBodyScroll};return b.createElement(bx,Uv({},this.props,e))},t}(b.Component),Ox.propTypes=Uv({},bx.propTypes),Ox.contextTypes=Uv({},bx.contextTypes,{getLockNode:Nn.func,onLockBodyScroll:Nn.func,lockType:Nn.oneOf(["left","right"])}),Tx);_x.displayName="LockBody";var Px,Dx,Lx=(Hx=Nx=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.componentDidMount=function(){var e=this.context,t=e.getNode,n=e.getLockNode;t&&t("header",w.findDOMNode(this),this.context.lockType),n&&n("header",w.findDOMNode(this),this.context.lockType)},t}(gx),Nx.propTypes=Uv({},gx.propTypes),Nx.contextTypes=Uv({},gx.contextTypes,{getLockNode:Nn.func,lockType:Nn.oneOf(["left","right"])}),Hx),Rx=To.ieVersion;function zx(e){var t,n,r=(n=t=function(t){function n(e,r){NB(this,n);var o=DB(this,t.call(this,e,r));return o.state={},o.getTableInstance=function(e,t){e=e?e.charAt(0).toUpperCase()+e.substr(1):"",o["table"+e+"Inc"]=t},o.getNode=function(e,t,n){n=n?n.charAt(0).toUpperCase()+n.substr(1):"",o[""+e+n+"Node"]=t,"header"!==e||o.innerHeaderNode||n||(o.innerHeaderNode=o.headerNode.querySelector("div"))},o.onRowMouseEnter=function(e,t){o.isLock()&&[o.getRowNode(t),o.getRowNode(t,"left"),o.getRowNode(t,"right")].forEach(function(e){e&&Oo.addClass(e,"hovered")})},o.onRowMouseLeave=function(e,t){o.isLock()&&[o.getRowNode(t),o.getRowNode(t,"left"),o.getRowNode(t,"right")].forEach(function(e){e&&Oo.removeClass(e,"hovered")})},o.onLockBodyScrollTop=function(e){var t=e.target;if(e.currentTarget===t){var n=t.scrollTop;if(o.isLock()&&n!==o.lastScrollTop){var r=o.bodyRightNode;[o.bodyLeftNode,r,o.bodyNode].forEach(function(e){e&&e.scrollTop!==n&&(e.scrollTop=n)}),o.lastScrollTop=n}}},o.onLockBodyScrollLeft=function(){if(o.isLock()){var e=o.props.rtl,t=e?o.getWrapperNode("left"):o.getWrapperNode("right"),n=e?o.getWrapperNode("right"):o.getWrapperNode("left"),r="shadow",i=o.bodyNode.scrollLeft;0===i?(n&&Oo.removeClass(n,r),t&&Oo.addClass(t,r)):i===o.bodyNode.scrollWidth-o.bodyNode.clientWidth?(n&&Oo.addClass(n,r),t&&Oo.removeClass(t,r)):(n&&Oo.addClass(n,r),t&&Oo.addClass(t,r))}},o.onLockBodyScroll=function(e){o.onLockBodyScrollTop(e),o.onLockBodyScrollLeft()},o.adjustSize=function(){o.adjustIfTableNotNeedLock()||(o.adjustHeaderSize(),o.adjustBodySize(),o.adjustRowHeight(),o.onLockBodyScrollLeft())},o.getFlatenChildrenLength=function(){return function e(t){var n=[];return t.forEach(function(t){t&&t.children?n.push.apply(n,e(t.children)):n.push(t)}),n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).length},o.saveLockLeftRef=function(e){o.lockLeftEl=e},o.saveLockRightRef=function(e){o.lockRightEl=e},o.lockLeftChildren=[],o.lockRightChildren=[],o}return GB(n,t),n.prototype.getChildContext=function(){return{getTableInstance:this.getTableInstance,getLockNode:this.getNode,onLockBodyScroll:this.onLockBodyScroll,onRowMouseEnter:this.onRowMouseEnter,onRowMouseLeave:this.onRowMouseLeave}},n.prototype.componentDidMount=function(){Mo.on(window,"resize",this.adjustSize),this.scroll(),this.adjustSize(),this.forceUpdate()},n.prototype.shouldComponentUpdate=function(e,t,n){return!e.pure||!(oC(e,this.props)&&Ho.shallowEqual(n,this.context))},n.prototype.componentDidUpdate=function(){this.adjustSize(),this._isLock=!1},n.prototype.componentWillUnmount=function(){Mo.off(window,"resize",this.adjustSize)},n.prototype.normalizeChildrenState=function(e){var t=this.normalizeChildren(e),n=this.splitFromNormalizeChildren(t);return{lockLeftChildren:n.lockLeftChildren,lockRightChildren:n.lockRightChildren,children:this.mergeFromSplitLockChildren(n)}},n.prototype.normalizeChildren=function(e){var t=e.children,n=e.columns,r=!1,o=void 0,i=function(e){[!0,"left","right"].indexOf(e.lock)>-1&&("width"in e||No.warning("Should config width for lock column named [ "+e.dataIndex+" ]."),r=!0)};if(n&&!t){o=n;!function e(t){t.forEach(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(t),t.children&&e(t.children)})}(n)}else{o=function e(t){var n=[];return b.Children.forEach(t,function(t){if(t){var r=Uv({},t.props);i(r),n.push(r),t.props.children&&(r.children=e(t.props.children))}}),n}(t)}return o.forEach(function(e){e.__normalized&&r&&(e.lock=e.lock||"left",delete e.__normalized)}),this._isLock=r,o},n.prototype.splitFromNormalizeChildren=function(e){var t=Kx(e),n=Kx(e),r=Kx(e),o=function e(t,n){var r=[];return t.forEach(function(t){t.children?e(t.children,n).length||r.push(t):n(t)||r.push(t)}),r.forEach(function(e){var n=t.indexOf(e);t.splice(n,1)}),t};return o(n,function(e){if(!0===e.lock||"left"===e.lock)return"left"}),o(r,function(e){if("right"===e.lock)return"right"}),o(t,function(e){return!0!==e.lock&&"left"!==e.lock&&"right"!==e.lock}),{lockLeftChildren:n,lockRightChildren:r,originChildren:t}},n.prototype.mergeFromSplitLockChildren=function(e){var t=e.lockLeftChildren,n=e.lockRightChildren,r=e.originChildren;return Array.prototype.unshift.apply(r,t),r=r.concat(n)},n.prototype.scroll=function(){var e=this.props,t=e.scrollToCol,n=void 0===t?0:t,r=e.scrollToRow,o=void 0===r?0:r;if((n||o)&&this.bodyNode){var i=this.getCellNode(0,n),a=this.getCellNode(o,0),A=this.bodyNode.getBoundingClientRect()||{};if(i){var s=i.getBoundingClientRect().left-A.left;this.bodyNode.scrollLeft=s}if(a){var l=a.getBoundingClientRect().top-A.top;this.bodyNode.scrollTop=l}}},n.prototype.isLock=function(){return this.lockLeftChildren.length||this.lockRightChildren.length},n.prototype.isOriginLock=function(){return this._isLock},n.prototype.removeLockTable=function(){var e=this.lockLeftChildren.length,t=this.lockRightChildren.length;if(e&&(this._notNeedAdjustLockLeft=!0),t&&(this._notNeedAdjustLockRight=!0),t||e)return this.forceUpdate(),!0},n.prototype.adjustIfTableNotNeedLock=function(){var e=this;if(this.isOriginLock()){var t=this.tableInc.flatChildren.map(function(t,n){var r=e.getCellNode(0,n)||{},o=e.getHeaderCellNode(0,n)||{};try{return{cellWidths:parseFloat(getComputedStyle(r).width)||0,headerWidths:parseFloat(getComputedStyle(o).width)||0}}catch(i){return{cellWidths:r.clientWidth||0,headerWidths:o.clientWidth||0}}}).reduce(function(e,t){return{cellWidths:e.cellWidths+t.cellWidths,headerWidths:e.headerWidths+t.headerWidths}},{cellWidths:0,headerWidths:0}),n=void 0;try{n=w.findDOMNode(this).clientWidth}catch(o){n=0}if(0===n)return!0;var r=parseInt(t.cellWidths)||parseInt(t.headerWidths);if(r<=n&&r>0)this.removeLockTable();else{if(!this._notNeedAdjustLockLeft&&!this._notNeedAdjustLockRight)return this._notNeedAdjustLockLeft=this._notNeedAdjustLockRight=!1,!1;this._notNeedAdjustLockLeft=this._notNeedAdjustLockRight=!1,this.forceUpdate()}}return!1},n.prototype.adjustBodySize=function(){var e,t=this.props,n=t.rtl,r=t.hasHeader,o=this.headerNode,i=n?"paddingLeft":"paddingRight",a=n?"marginLeft":"marginRight",A=+Oo.scrollbar().width||0,s=((e={})[i]=A,e[a]=A,e),l=this.bodyNode,c=l&&l.scrollHeight>l.clientHeight;if(this.isLock()){var u=this.bodyLeftNode,d=this.bodyRightNode,p=this.getWrapperNode("right"),h=c?A:0,f=l.offsetHeight-A;c||(s[i]=0,s[a]=0),+A?(s.marginBottom=-A,s.paddingBottom=A):(s.marginBottom=-20,s.paddingBottom=20);var m={"max-height":f};r||+A||(m[a]=0),+A&&(m[a]=-A),u&&Oo.setStyle(u,m),d&&Oo.setStyle(d,m),p&&+A&&Oo.setStyle(p,n?"left":"right",h+"px")}else s.marginBottom=-A,s.paddingBottom=A,s[a]=0,c||(s[i]=0);o&&Oo.setStyle(o,s)},n.prototype.adjustHeaderSize=function(){var e=this;this.isLock()&&this.tableInc.groupChildren.forEach(function(t,n){var r=e.tableInc.groupChildren[n].length-1,o=e.getHeaderCellNode(n,r),i=e.getHeaderCellNode(n,0),a=e.getHeaderCellNode(n,0,"right"),A=e.getHeaderCellNode(n,0,"left");if(o&&a){var s=o.offsetHeight;Oo.setStyle(a,"height",s),setTimeout(function(){var t=e.tableRightInc.affixRef;return t&&t.getInstance()&&t.getInstance().updatePosition()})}if(i&&A){var l=i.offsetHeight;Oo.setStyle(A,"height",l),setTimeout(function(){var t=e.tableLeftInc.affixRef;return t&&t.getInstance()&&t.getInstance().updatePosition()})}})},n.prototype.adjustRowHeight=function(){var e=this;this.isLock()&&this.tableInc.props.dataSource.forEach(function(t,n){var r=("object"===(void 0===t?"undefined":IB(t))&&"__rowIndex"in t?t.__rowIndex:n)+(t.__expanded?"_expanded":"");e.setRowHeight(r,"left"),e.setRowHeight(r,"right")})},n.prototype.setRowHeight=function(e,t){var n=this.getRowNode(e,t),r=this.getRowNode(e),o=(Rx?r&&r.offsetHeight:r&&parseFloat(getComputedStyle(r).height))||"auto",i=(Rx?n&&n.offsetHeight:n&&parseFloat(getComputedStyle(n).height))||"auto";n&&o!==i&&Oo.setStyle(n,"height",o)},n.prototype.getWrapperNode=function(e){e=e?e.charAt(0).toUpperCase()+e.substr(1):"";try{return w.findDOMNode(this["lock"+e+"El"])}catch(t){return null}},n.prototype.getRowNode=function(e,t){var n=this["table"+(t=t?t.charAt(0).toUpperCase()+t.substr(1):"")+"Inc"];try{return w.findDOMNode(n.getRowRef(e))}catch(r){return null}},n.prototype.getHeaderCellNode=function(e,t,n){var r=this["table"+(n=n?n.charAt(0).toUpperCase()+n.substr(1):"")+"Inc"];try{return w.findDOMNode(r.getHeaderCellRef(e,t))}catch(o){return null}},n.prototype.getCellNode=function(e,t,n){var r=this["table"+(n=n?n.charAt(0).toUpperCase()+n.substr(1):"")+"Inc"];try{return w.findDOMNode(r.getCellRef(e,t))}catch(o){return null}},n.prototype.render=function(){var t=this.props;t.children,t.columns;var n=t.prefix,r=t.components,o=t.className,i=t.dataSource,a=t.tableWidth,A=Ov(t,["children","columns","prefix","components","className","dataSource","tableWidth"]),s=this.normalizeChildrenState(this.props),l=s.lockLeftChildren,c=s.lockRightChildren,u=s.children,d={left:this.getFlatenChildrenLength(l),right:this.getFlatenChildrenLength(c),origin:this.getFlatenChildrenLength(u)};if(this._notNeedAdjustLockLeft&&(l=[]),this._notNeedAdjustLockRight&&(c=[]),this.lockLeftChildren=l,this.lockRightChildren=c,this.isOriginLock()){var p;(r=Uv({},r)).Body=r.Body||_x,r.Header=r.Header||Lx,r.Wrapper=r.Wrapper||wx,r.Row=r.Row||ex,o=_n(((p={})[n+"table-lock"]=!0,p[n+"table-wrap-empty"]=!i.length,p[o]=o,p));var h=[b.createElement(e,Uv({},A,{dataSource:i,key:"lock-left",columns:l,className:n+"table-lock-left",lengths:d,prefix:n,lockType:"left",components:r,ref:this.saveLockLeftRef,loading:!1,"aria-hidden":!0})),b.createElement(e,Uv({},A,{dataSource:i,key:"lock-right",columns:c,className:n+"table-lock-right",lengths:d,prefix:n,lockType:"right",components:r,ref:this.saveLockRightRef,loading:!1,"aria-hidden":!0}))];return b.createElement(e,Uv({},A,{tableWidth:a,dataSource:i,columns:u,prefix:n,lengths:d,wrapperContent:h,components:r,className:o}))}return b.createElement(e,this.props)},n}(b.Component),t.LockRow=ex,t.LockBody=_x,t.LockHeader=Lx,t.propTypes=Uv({scrollToCol:Nn.number,scrollToRow:Nn.number},e.propTypes),t.defaultProps=Uv({},e.defaultProps),t.childContextTypes={getTableInstance:Nn.func,getLockNode:Nn.func,onLockBodyScroll:Nn.func,onRowMouseEnter:Nn.func,onRowMouseLeave:Nn.func},n);return r.displayName="LockTable",cC(r,e),r}function Kx(e){return function e(t){return t.map(function(t){var n=Uv({},t);return t.children&&(t.children=e(t.children)),n})}(e)}function jx(e){return function e(t){return t.map(function(t){var n=Uv({},t);return t.children&&(t.children=e(t.children)),n})}(e)}var Vx,$x,Gx=(Dx=Px=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.render=function(){return null},t}(b.Component),Px.propTypes={cell:Nn.oneOfType([Nn.element,Nn.node,Nn.func]),hasChildrenSelection:Nn.bool,hasSelection:Nn.bool,useFirstLevelDataWhenNoChildren:Nn.bool},Px.defaultProps={cell:function(){return""},hasSelection:!0,hasChildrenSelection:!1,useFirstLevelDataWhenNoChildren:!1},Px._typeMark="listHeader",Dx);Gx.displayName="ListHeader";var Wx,Yx,qx=($x=Vx=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.render=function(){return null},t}(b.Component),Vx.propTypes={cell:Nn.oneOfType([Nn.element,Nn.node,Nn.func])},Vx.defaultProps={cell:function(){return""}},Vx._typeMark="listFooter",$x);qx.displayName="ListFooter";var Xx,Jx,Zx,eE,tE=(Yx=Wx=function(e){function t(){return NB(this,t),DB(this,e.apply(this,arguments))}return GB(t,e),t.prototype.render=function(){var e,t=this.props,n=t.prefix,r=t.className;t.onClick,t.onMouseEnter,t.onMouseLeave,t.columns,t.Cell,t.rowIndex,t.__rowIndex,t.record,t.children,t.primaryKey;var o=t.colGroup;t.cellRef,t.getCellProps,t.locale,t.wrapper,t.rtl,t.tableEl;var i=Ov(t,["prefix","className","onClick","onMouseEnter","onMouseLeave","columns","Cell","rowIndex","__rowIndex","record","children","primaryKey","colGroup","cellRef","getCellProps","locale","wrapper","rtl","tableEl"]),a=_n(((e={})[n+"table-row"]=!0,e[r]=r,e));return this.context.notRenderCellIndex=[],b.createElement("table",Uv({className:a,role:"row"},i,{onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave}),o,b.createElement("tbody",null,this.renderContent("header"),this.renderChildren(),this.renderContent("footer")))},t.prototype.isChildrenSelection=function(){return this.context.listHeader&&this.context.listHeader.hasChildrenSelection},t.prototype.isFirstLevelDataWhenNoChildren=function(){return this.context.listHeader&&this.context.listHeader.useFirstLevelDataWhenNoChildren},t.prototype.isSelection=function(){return this.context.listHeader&&this.context.listHeader.hasSelection},t.prototype.renderChildren=function(){var e=this,t=this.props,n=t.record,r=t.primaryKey,o=n.children,i=o;return this.isFirstLevelDataWhenNoChildren()&&(No.warning("useFirstLevelDataWhenNoChildren is deprecated, change your dataSource structure, make sure there is 'children' in your dataSource."),i=o||[n]),i?i.map(function(t,n){var o=e.renderCells(t,n);return e.isChildrenSelection()?(t[r]||No.warning("record.children/recored should contains primaryKey when childrenSelection is true."),b.createElement("tr",{key:t[r]},o)):(e.context.rowSelection&&(o.shift(),o[0]=o[0]&&b.cloneElement(o[0],Uv({colSpan:2},o[0].props))),b.createElement("tr",{key:n},o))}):null},t.prototype.renderContent=function(e){var t=this.props,n=t.columns,r=t.prefix,o=t.record,i=t.rowIndex,a=e.charAt(0).toUpperCase()+e.substr(1),A=this.context["list"+a],s=void 0;if(A&&(b.isValidElement(A.cell)?s=b.cloneElement(A.cell,{record:o,index:i}):"function"==typeof A.cell&&(s=A.cell(o,i)),s)){var l=this.renderCells(o);"header"===e&&this.context.rowSelection&&this.isSelection()?((l=l.slice(0,1)).push(b.createElement("td",{colSpan:n.length-1,key:"listNode"},b.createElement("div",{className:r+"table-cell-wrapper"},s))),s=b.createElement("tr",{className:r+"table-group-"+e},l)):s=b.createElement("tr",{className:r+"table-group-"+e},b.createElement("td",{colSpan:n.length},b.createElement("div",{className:r+"table-cell-wrapper"},s)))}return s},t}(pC),Wx.contextTypes={listHeader:Nn.any,listFooter:Nn.any,rowSelection:Nn.object,notRenderCellIndex:Nn.array,lockType:Nn.oneOf(["left","right"])},Yx),nE=(Jx=Xx=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.onScroll=function(e){var t=r.context.onFixedScrollSync;t&&t(e)},DB(r,n)}return GB(t,e),t.prototype.componentDidMount=function(){var e=this.context.getNode;e&&e("body",w.findDOMNode(this))},t.prototype.render=function(){return b.createElement(wC,Uv({component:"div",onScroll:this.onScroll},this.props))},t}(b.Component),Xx.contextTypes={getNode:Nn.func,onFixedScrollSync:Nn.func},Jx);function rE(e){var t,n,r=(n=t=function(t){function n(){var e,r;NB(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=DB(this,t.call.apply(t,[this].concat(i))),r.state={},DB(r,e)}return GB(n,t),n.prototype.getChildContext=function(){return{listHeader:this.listHeader,listFooter:this.listFooter,rowSelection:this.rowSelection}},n.prototype.normalizeDataSource=function(e){var t=[];return function e(n,r){n.forEach(function(n){var o=Uv({},n);o.__level=r,t.push(o),o.children&&e(o.children,r+1)})}(e,0),this.ds=t,t},n.prototype.render=function(){var t,n=this,r=this.props,o=r.components,i=r.children,a=r.className,A=r.prefix,s=Ov(r,["components","children","className","prefix"]),l=!1,c=[];(b.Children.forEach(i,function(e){e&&(["function","object"].indexOf(IB(e.type))>-1?"listHeader"===e.type._typeMark?(n.listHeader=e.props,l=!0):"listFooter"===e.type._typeMark?n.listFooter=e.props:c.push(e):c.push(e))}),this.rowSelection=this.props.rowSelection,l)&&((o=Uv({},o)).Row=o.Row||tE,o.Body=o.Body||nE,o.Header=o.Header||gx,o.Wrapper=o.Wrapper||wx,a=_n(((t={})[A+"table-group"]=!0,t[a]=a,t)));return b.createElement(e,Uv({},s,{components:o,children:c.length>0?c:void 0,className:a,prefix:A}))},n}(b.Component),t.ListHeader=Gx,t.ListFooter=qx,t.ListRow=tE,t.ListBody=nE,t.propTypes=Uv({},e.propTypes),t.defaultProps=Uv({},e.defaultProps),t.childContextTypes={listHeader:Nn.any,listFooter:Nn.any,rowSelection:Nn.object},n);return r.displayName="ListTable",cC(r,e),r}nE.displayName="ListBody";var oE=(eE=Zx=function(e){function t(){var n,r;NB(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=DB(this,e.call.apply(e,[this].concat(i))),r.getAffixRef=function(e){r.props.affixRef&&r.props.affixRef(e)},DB(r,n)}return GB(t,e),t.prototype.render=function(){var e,t=this.props.prefix,n=this.context,r=n.Header,o=n.offsetTop,i=n.affixProps||{},a=i.className,A=Ov(i,["className"]),s=_n(((e={})[t+"table-affix"]=!0,e.className=a,e));return b.createElement(dc,Uv({ref:this.getAffixRef},A,{className:s,offsetTop:o}),b.createElement(r,this.props))},t}(b.Component),Zx.propTypes={prefix:Nn.string},Zx.contextTypes={Header:Nn.any,offsetTop:Nn.number,affixProps:Nn.object},eE);function iE(e){var t,n,r=(n=t=function(t){function n(){var e,r;NB(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=DB(this,t.call.apply(t,[this].concat(i))),r.state={},DB(r,e)}return GB(n,t),n.prototype.getChildContext=function(){return{Header:this.props.components.Header||gx,offsetTop:this.props.offsetTop,affixProps:this.props.affixProps}},n.prototype.render=function(){var t=this.props,n=t.stickyHeader;t.offsetTop,t.affixProps;var r=Ov(t,["stickyHeader","offsetTop","affixProps"]),o=this.props,i=o.components,a=o.maxBodyHeight,A=o.fixedHeader;return n&&((i=Uv({},i)).Header=oE,A=!0,a=Math.max(a,1e4)),b.createElement(e,Uv({},r,{components:i,fixedHeader:A,maxBodyHeight:a}))},n}(b.Component),t.StickyHeader=oE,t.propTypes=Uv({stickyHeader:Nn.bool,offsetTop:Nn.number,affixProps:Nn.object,components:Nn.object},e.propTypes),t.defaultProps=Uv({components:{}},e.defaultProps),t.childContextTypes={Header:Nn.any,offsetTop:Nn.number,affixProps:Nn.object},n);return r.displayName="StickyTable",cC(r,e),r}oE.displayName="StickHeader";var aE=To.ieVersion,AE=[Bx,zx,Ex,Qx,Ix,hx,rE,iE],sE=AE.reduce(function(e,t){return e=t(e)},YC);zx._typeMark="lock",Qx._typeMark="expanded",Bx._typeMark="fixed";var lE=AE.reduce(function(e,t){var n,r,o,i,a=!aE;return e="lock"===t._typeMark?a?(n=e,o=r=function(e){function t(n,r){NB(this,t);var o=DB(this,e.call(this,n));return o.state={},o.updateOffsetArr=function(){var e=o.splitChildren||{},t=e.lockLeftChildren,n=e.lockRightChildren,r=e.originChildren,i=o.getFlatenChildren(t).length,a=o.getFlatenChildren(n).length,A=i+a+o.getFlatenChildren(r).length,s=i>0,l=a>0,c=o.getStickyWidth(t,"left",A),u=o.getStickyWidth(n,"right",A),d={};""+c!=""+o.state.leftOffsetArr&&(d.leftOffsetArr=c),""+u!=""+o.state.rightOffsetArr&&(d.rightOffsetArr=u),s!==o.state.hasLockLeft&&(d.hasLockLeft=s),l!==o.state.hasLockRight&&(d.hasLockRight=l),Object.keys(d).length>0&&o.setState(d)},o.onLockBodyScroll=function(e,t){var n=e.currentTarget||{},r=n.scrollLeft,i=n.scrollWidth,a=n.clientWidth,A=o.pingRight,s=o.pingLeft,l=r>0&&o.state.hasLockLeft,c=r<i-a&&o.state.hasLockRight;if(t||s!==l||A!==c){var u=o.props.prefix,d=o.getTableNode();o.pingLeft=l,o.pingRight=c,Oo[l?"addClass":"removeClass"](d,u+"table-ping-left"),Oo[c?"addClass":"removeClass"](d,u+"table-ping-right")}},o.getStickyWidth=function(e,t,n){var r=o.props;r.dataSource,r.scrollToRow;var i=[],a=o.getFlatenChildren(e),A=a.length;return a.reduce(function(e,n,r){var i="left"===t?r:A-1-r,s="left"===t?i-1:i+1;if("left"===t&&0===i)return e[0]=0,e;if("right"===t&&i===A-1)return e[i]=0,e;var l=a[s],c=l.headerCellRowIndex,u=l.headerCellColIndex,d=o.getHeaderCellNode(c,u),p=0;return d&&(p=parseFloat(getComputedStyle(d).width)||0),e[i]=(e[s]||0)+p,e},i),i},o.getTableInstance=function(e,t){o.tableInc=t},o.getNode=function(e,t){o[e+"Node"]=t},o.getFlatenChildren=function(){return function e(t){var n=[];return t.forEach(function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)}),n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])},o.state={hasLockLeft:!0,hasLockRight:!0},o.pingLeft=!1,o.pingRight=!1,o}return GB(t,e),t.prototype.getChildContext=function(){return{getTableInstance:this.getTableInstance,getLockNode:this.getNode,onLockBodyScroll:this.onLockBodyScroll}},t.prototype.componentDidMount=function(){var e=this.props.dataSource,t=!(e&&e.length>0);this.updateOffsetArr(),this.onLockBodyScroll(t?{currentTarget:this.headerNode}:{currentTarget:this.bodyNode}),this.forceUpdate(),Mo.on(window,"resize",this.updateOffsetArr)},t.prototype.shouldComponentUpdate=function(e,t,n){return!e.pure||!(oC(e,this.props)&&Ho.shallowEqual(n,this.context))},t.prototype.componentDidUpdate=function(){this.updateOffsetArr(),this.onLockBodyScroll(this.bodyNode?{currentTarget:this.bodyNode}:{currentTarget:this.headerNode},!0)},t.prototype.componentWillUnmount=function(){this.pingLeft=!1,this.pingRight=!1,Mo.off(window,"resize",this.updateOffsetArr)},t.prototype.normalizeChildrenState=function(e){var t=this.normalizeChildren(e);return this.splitChildren=this.splitFromNormalizeChildren(t),this.mergeFromSplitLockChildren(this.splitChildren,e.prefix)},t.prototype.normalizeChildren=function(e){var t=e.children,n=e.columns,r=!1,o=void 0;return n&&!t?(o=n,r=n.find(function(e){return[!0,"left","right"].indexOf(e.lock)>-1})):o=function e(t){var n=[];return b.Children.forEach(t,function(t){if(t){var o=Uv({},t.props);[!0,"left","right"].indexOf(o.lock)>-1&&(r=!0,"width"in o||No.warning("Should config width for lock column named [ "+o.dataIndex+" ].")),n.push(o),t.props.children&&(o.children=e(t.props.children))}}),n}(t),o.forEach(function(e){e.__normalized&&r&&(e.lock=e.lock||"left",delete e.__normalized)}),o},t.prototype.splitFromNormalizeChildren=function(e){var t=jx(e),n=jx(e),r=jx(e),o=function e(t,n){var r=[];return t.forEach(function(t){t.children?e(t.children,n).length||r.push(t):n(t)||r.push(t)}),r.forEach(function(e){var n=t.indexOf(e);t.splice(n,1)}),t};return o(n,function(e){if(!0===e.lock||"left"===e.lock)return"left"}),o(r,function(e){if("right"===e.lock)return"right"}),o(t,function(e){return!0!==e.lock&&"left"!==e.lock&&"right"!==e.lock}),{lockLeftChildren:n,lockRightChildren:r,originChildren:t}},t.prototype.mergeFromSplitLockChildren=function(e,t){var n=e.lockLeftChildren,r=e.lockRightChildren,o=e.originChildren,i=this.getFlatenChildren(n),a=this.getFlatenChildren(r);return uC(n,i,"left",this.state.leftOffsetArr,t),uC(r,a,"right",this.state.rightOffsetArr,t),[].concat(n,o,r)},t.prototype.getCellNode=function(e,t){var n=this.tableInc;try{return w.findDOMNode(n.getCellRef(e,t))}catch(r){return null}},t.prototype.getTableNode=function(){var e=this.tableInc;try{return w.findDOMNode(e.tableEl)}catch(t){return null}},t.prototype.getHeaderCellNode=function(e,t){var n=this.tableInc;try{return w.findDOMNode(n.getHeaderCellRef(e,t))}catch(r){return null}},t.prototype.render=function(){var e,t=this.props;t.children,t.columns;var r=t.prefix,o=t.components;t.scrollToRow;var i=t.className,a=t.dataSource,A=Ov(t,["children","columns","prefix","components","scrollToRow","className","dataSource"]),s=this.normalizeChildrenState(this.props);return(o=Uv({},o)).Body=o.Body||_x,o.Header=o.Header||Lx,o.Wrapper=o.Wrapper||wx,o.Row=o.Row||ex,i=_n(((e={})[r+"table-lock"]=!0,e[r+"table-stickylock"]=!0,e[r+"table-wrap-empty"]=!a.length,e[i]=i,e)),b.createElement(n,Uv({},A,{dataSource:a,columns:s,prefix:r,components:o,className:i}))},t}(b.Component),r.LockRow=ex,r.LockBody=_x,r.LockHeader=Lx,r.propTypes=Uv({scrollToCol:Nn.number,scrollToRow:Nn.number},n.propTypes),r.defaultProps=Uv({},n.defaultProps),r.childContextTypes={getTableInstance:Nn.func,getLockNode:Nn.func,onLockBodyScroll:Nn.func},(i=o).displayName="LockTable",cC(i,n),i):zx(e):"expanded"===t._typeMark?a?Qx(e,!0):Qx(e):"fixed"===t._typeMark?Bx(e):t(e),e},YC);sE.Base=YC,sE.fixed=Bx,sE.lock=zx,sE.selection=Ex,sE.expanded=Qx,sE.tree=hx,sE.virtual=Ix,sE.list=rE,sE.sticky=iE,sE.GroupHeader=Gx,sE.GroupFooter=qx,sE.StickyLock=sc.config(lE,{componentName:"Table"});const cE=sc.config(sE,{componentName:"Table",transform:function(e,t){if("columns"in e&&void 0!==e.columns){var n=e,r=n.columns,o=Ov(n,["columns"]),i=[].concat(r);e=Uv({columns:i},o)}if("expandedRowKeys"in e){t("expandedRowKeys","openRowKeys","Table");var a=e,A=a.expandedRowKeys,s=Ov(a,["expandedRowKeys"]);e=Uv({openRowKeys:A},s)}if("onExpandedChange"in e){t("onExpandedChange","onRowOpen","Table");var l=e,c=l.onExpandedChange,u=Ov(l,["onExpandedChange"]);e=Uv({onRowOpen:c},u)}if("isLoading"in e){t("isLoading","loading","Table");var d=e,p=d.isLoading,h=Ov(d,["isLoading"]);e=Uv({loading:p},h)}if("indentSize"in e){t("indentSize","indent","Table");var f=e,m=f.indentSize,g=Ov(f,["indentSize"]);e=Uv({indent:m},g)}if("optimization"in e){t("optimization","pure","Table");var y=e,v=y.optimization,b=Ov(y,["optimization"]);e=Uv({pure:v},b)}if("getRowClassName"in e){t("getRowClassName","getRowProps","Table");var w=e,B=w.getRowClassName,C=w.getRowProps,x=Ov(w,["getRowClassName","getRowProps"]);if(B){e=Uv({getRowProps:function(){return Uv({className:B.apply(void 0,arguments)},C?C.apply(void 0,arguments):{})}},x)}else e=Uv({getRowProps:C},x)}if("getRowProps"in e){t("getRowProps","rowProps","Table in 1.15.0");var E=e,k=E.getRowProps,F=Ov(E,["getRowProps"]);e=Uv({rowProps:k},F)}if("getCellProps"in e){t("getCellProps","cellProps","Table in 1.15.0");var S=e,Q=S.getCellProps,U=Ov(S,["getCellProps"]);e=Uv({cellProps:Q},U)}return e}});var uE=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}},dE={"text/plain":"Text","text/html":"Url",default:"Text"};const pE=ne(function(e,t){var n,r,o,i,a,A=!1;t||(t={}),t.debug;try{if(r=uE(),o=document.createRange(),i=document.getSelection(),(a=document.createElement("span")).textContent=e,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){window.clipboardData.clearData();var r=dE[t.format]||dE.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),i.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");A=!0}catch(s){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),A=!0}catch(l){n=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(n,e)}}finally{i&&("function"==typeof i.removeRange?i.removeRange(o):i.removeAllRanges()),a&&document.body.removeChild(a),r()}return A});function hE(e){if(Array.isArray(e))return e}function fE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mE(e,t){if(e){if("string"==typeof e)return fE(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fE(e,t):void 0}}function gE(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yE(e,t){return hE(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,A=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(A.push(r.value),A.length!==t);s=!0);}catch(c){l=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return A}}(e,t)||mE(e,t)||gE()}var vE=Eh.Group,bE=function(e){var t=e.commission,n=e.marketingProductsId,r=e.price,o=yE(b.useState(!1),2),i=o[0],a=o[1],A=yE(b.useState(Number),2),s=A[0],l=A[1],c=yE(b.useState(5),2),u=c[0],d=c[1],p=yE(b.useState(10),2),h=p[0],f=p[1],m=yE(b.useState(0),2),g=m[0],y=m[1],v=yE(b.useState("7"),2),w=v[0],B=v[1],C=yE(b.useState(""),2),x=C[0],E=C[1],k=yE(b.useState(""),2),F=k[0],S=k[1],Q=yE(b.useState(!1),2),U=Q[0],O=Q[1],T=yE(b.useState(!1),2),M=T[0],I=T[1],N=yE(b.useState(!1),2),H=N[0],_=N[1],P=yE(b.useState(""),2),D=P[0],L=P[1],R=yE(b.useState(""),2),z=R[0],j=R[1];b.useEffect(function(){function e(){return(e=K(ke.mark(function e(){var t;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Ge();case 1:t=e.sent,j(t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}U||V(),function(){e.apply(this,arguments)}()},[]),b.useEffect(function(){var e=function(){var e=K(ke.mark(function e(){var t,r,o;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pt({actItemId:n});case 1:if("200"!==(t=e.sent).code||!t.data){e.next=3;break}if((r=t.data).couponTotalInventory!=r.cntCreate){e.next=2;break}return V(),e.abrupt("return");case 2:l(Number(r.couponAmount)/100),f(r.couponTotalInventory),o=new Date(r.gmtEnd).toLocaleDateString().replace(/[/]/g,"."),E(o),S(r.gmtEnd),y(r.cntUsed),a(!0),O(!0),e.next=4;break;case 3:V();case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();e()},[n]);var V=function(){var e=Number((Math.floor(5*r)/100).toFixed(2));a(!1),O(!1),B("7"),S(""),l(e),d(5),f(10);var t=G("7");E(t)},$=function(){var e=K(ke.mark(function e(t){var r,o,i,A;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!U){e.next=1;break}I(!0),e.next=3;break;case 1:return e.next=2,ut({actItemId:n});case 2:"200"===(r=e.sent).code?(o=(new Date).getTime(),i=null==r?void 0:r.data,i-o<6048e5?(L("\u4e91\u5927\u4f7f\u6d3b\u52a8\u89c4\u5219\u5373\u5c06\u5230\u671f\uff0c\u65e0\u6cd5\u542f\u7528\u7ea2\u5305\u6d3b\u52a8"),_(!0)):a(t)):(A=z.YOUJIN_REWORD_NO_START||"\u672c\u5546\u54c1\u6682\u4e0d\u652f\u6301\u4f63\u91d1\u8ba9\u5229",L(A),_(!0));case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),G=function(e){var t=new Date;t.setDate(t.getDate()+Number(e));var n=t.toLocaleDateString().replace(/[/]/g,"."),r=t.getTime().toString();return S(r),n},W=function(){var e=K(ke.mark(function e(){var t,r,o;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(Number(s)<=0)){e.next=1;break}return L("\u7ea2\u5305\u6700\u5c0f\u91d1\u989d\u4e0d\u80fd\u4e3a0"),_(!0),e.abrupt("return");case 1:return t=(new Date).getTime(),r={actItemId:n,couponTotalInventory:Number(h),couponAmount:parseInt("".concat(100*s)),gmtStart:t,gmtEnd:F},e.next=2,At(r);case 2:"200"===(o=e.sent).code?O(!0):(L((null==o?void 0:o.message)||""),_(!0));case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=K(ke.mark(function e(){var t;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,lt({actItemId:n});case 1:"200"===(t=e.sent).code?(I(!1),V()):(I(!1),_(!0),L((null==t?void 0:t.message)||""));case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return b.createElement("div",{className:"product-info-redenv"},b.createElement("div",{className:"redenv-title"},b.createElement("div",{className:"redenv-top"},"\u7ea2\u5305\u6d3b\u52a8",b.createElement(Gg,{className:"redenv-switch",checked:i,autoWidth:!0,onChange:$}),U&&b.createElement("span",{className:"redenv-tip pc-tip"},"\u8fdb\u884c\u4e2d\u7684\u6d3b\u52a8\u4e0d\u80fd\u4fee\u6539\uff0c\u5982\u9700\u8c03\u6574\u8bf7\u7ed3\u675f\u5f53\u524d\u6d3b\u52a8\u91cd\u65b0\u8bbe\u7f6e")),b.createElement("div",{className:"redenv-record"})),U&&b.createElement("span",{className:"redenv-tip h5-tip"},"\u8fdb\u884c\u4e2d\u7684\u6d3b\u52a8\u4e0d\u80fd\u4fee\u6539\uff0c\u5982\u9700\u8c03\u6574\u8bf7\u7ed3\u675f\u5f53\u524d\u6d3b\u52a8\u91cd\u65b0\u8bbe\u7f6e"),b.createElement("div",{className:"redenv-desc"},"\u7528\u90e8\u5206\u4f63\u91d1\u53d1\u7ea2\u5305\u4fc3\u6210\u4ea4\uff08\u4ec5\u9650\u8d2d\u4e70\u5f53\u524d\u4ea7\u54c1\uff09\uff0c\u8ba9\u7528\u6237\u4eab\u53d7\u6298\u4e0a\u6298\uff1b\u6210\u5355\u540e\u4ece\u4f63\u91d1\u6263\u51cf\u7ea2\u5305\u91d1\u989d\u3002"),i&&b.createElement("div",{className:"redenv-acticity"},b.createElement("div",{className:"reword-limit redenv-flex"},b.createElement("div",{className:"redenv-title ".concat(U&&"center")},"\u7ea2\u5305\u91d1\u989d"),U?b.createElement("div",{className:"limit-open"},"\uffe5",s):b.createElement("div",{className:"reword-limit-setup"},b.createElement("div",{className:"limit pc-limit"},"\uffe5",s),b.createElement("div",{className:"setup-limit"},b.createElement("div",{className:"setup-limit-title"},"\u8bbe\u7f6e\u7ea2\u5305\u91d1\u989d",b.createElement("div",{className:"limit h5-limit"},"\uffe5",s)),b.createElement(Vg,{className:"setup-limit-range",hasTip:!1,min:0,max:20,step:5,marks:{0:"",5:"5%",10:"10%",15:"15%",20:"20%"},onChange:function(e){var t=parseInt("".concat(r*e))/100;l(t)},defaultValue:u})))),b.createElement("div",{className:"reword-quantity redenv-flex"},b.createElement("div",{className:"redenv-title ".concat(U&&"center")},"\u7ea2\u5305\u6570\u91cf"),U?b.createElement("div",{className:"number-open"},b.createElement("span",null,h)," \u4e2a (\u5269\u4f59".concat(h-g,"\u4e2a)")):b.createElement("div",{className:"redenv-number"},b.createElement(fg,{className:"number-picker",defaultValue:h,step:1,min:1,max:1e3,type:"inline",onChange:function(e){f(e)}}),b.createElement("span",{className:"number-unit"},"\u4e2a"))),b.createElement("div",{className:"acticity-validity-period redenv-flex"},b.createElement("div",{className:"redenv-title ".concat(U&&"center")},"\u6d3b\u52a8\u6709\u6548\u671f"),U?b.createElement("div",{className:"redenv-time"},x," \u622a\u6b62"):b.createElement("div",null,b.createElement(vE,{className:"redenv-radio",shape:"button",defaultValue:"7",value:w,onChange:function(e){B(e);var t=G(e);E(t)}},b.createElement(Eh,{id:"banana",value:"7"},"7\u5929"),b.createElement(Eh,{id:"watermelon",value:"15"},"15\u5929"),b.createElement(Eh,{id:"peach",value:"30"},"30\u5929")),b.createElement("div",{className:"redenv-time"},x," \u622a\u6b62"))),b.createElement("div",{className:"acticity-effect redenv-flex"},b.createElement("div",{className:"redenv-title"},"\u6d3b\u52a8\u6548\u679c"),b.createElement("div",{className:"redenv-effect"},b.createElement("div",{className:"redenv-center"},b.createElement("div",{className:"redenv-center-word"},"\u7528\u6237\u9886\u53d6\u7ea2\u5305\u4e0b\u5355\uff0c\u53ef\u7528\u7ea2\u5305\u62b5\u6263 \xa5 ",s,"\uff0c\u5ba2\u6237\u8d2d\u4e70\u540e\u9884\u8ba1\u60a8\u53ef\u5f97",b.createElement("span",{className:"light"},"\xa5 ",Math.round(100*(t-s))/100," \u4f63\u91d1")),b.createElement("div",{className:"redenv-center-word"},"\u7ea2\u5305\u9886\u5b8c\u6216\u6d3b\u52a8\u5230\u671f\uff0c\u6062\u590d\u6e20\u9053\u4ef7\uff0c\u6bcf\u5355\u9884\u4f30",b.createElement("span",{className:"light"}," \xa5 ",t," \u4f63\u91d1"))),!U&&b.createElement(Jh,{className:"redenv-btn",type:"primary",onClick:W},"\u53d1\u5e03\u6d3b\u52a8")))),b.createElement(Um,{visible:M,className:"buy-details-dialog",title:b.createElement("div",null,b.createElement("div",{className:"buy-details-dialog-icon"},b.createElement(cn,{name:"info"})),b.createElement("span",null,"\u786e\u5b9a\u6d3b\u52a8\u7ed3\u675f\u5417\uff1f")),footer:[b.createElement(Jh,{type:"secondary",className:"details-dialog-btn secondary",onClick:function(){I(!1)}},"\u518d\u60f3\u60f3"),b.createElement(Jh,{type:"primary",className:"details-dialog-btn",onClick:function(){Y()}},"\u7ed3\u675f\u6d3b\u52a8")],onClose:function(){I(!1)}},b.createElement("div",null,"\u5df2\u9886\u53d6\u7ea2\u5305\u3001\u6b63\u5728\u4e0b\u5355\u8fc7\u7a0b\u4e2d\u7684\u7528\u6237\u5c06\u4e0d\u53d7\u5f71\u54cd\uff0c\u4ecd\u53ef\u4f7f\u7528\u7ea2\u5305")),b.createElement(Um,{visible:H,className:"buy-details-dialog",title:b.createElement("div",null,b.createElement("div",{className:"buy-details-dialog-icon"},b.createElement(cn,{name:"info"})),b.createElement("span",null,"\u63d0\u793a")),footer:b.createElement(Jh,{type:"primary",className:"details-dialog-btn",onClick:function(){_(!1)}},"\u77e5\u9053\u4e86"),onClose:function(){_(!1)}},b.createElement("div",null,D)))};const wE=b.memo(bE);function BE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CE(e){return Wm.show(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BE(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))}function xE(e){pE(e),on("\u590d\u5236\u6210\u529f\uff0c\u5feb\u53bb\u5206\u4eab\u5427")}function EE(e){e&&(null!=e&&e.value&&(null==e?void 0:e.value.length)>0?function(e){try{var t=document.createElement("iframe");t.src=e,t.style.display="none",document.body.appendChild(t)}catch(n){}}(e.value):function(e,t){var n=new Image;n.setAttribute("crossOrigin","anonymous"),n.src=e,n.onload=function(){var e=document.createElement("canvas");e.width=n.width,e.height=n.height;var r=e.getContext("2d");null==r||r.drawImage(n,0,0,n.width,n.height);var o=n.src.substring(n.src.lastIndexOf(".")+1).toLowerCase(),i=e.toDataURL(o);t(i)}}(e,function(e){var t=document.createElement("a");t.download="\u7d20\u6750",t.href=e,t.click(),t.remove()}))}function kE(e){var t=e.list,n=e.shareUrl,r=void 0===n?"":n,o=e.shareList,i=void 0===o?[]:o,a=e.marketingProductsId,A=t.title,s=void 0===A?"":A,l=t.type,c=void 0===l?"":l,u=t.price,d=void 0===u?"":u,p=t.commission,h=void 0===p?"":p,f=i.description,m=void 0===f?"":f,g=i.image,y=void 0===g?"":g,v=i.exts,w=void 0===v?{}:v,B=[t];return b.createElement(b.Fragment,null,b.createElement("div",{className:"product-info"},b.createElement("div",{className:"product-info-title"},b.createElement("div",{className:"title"},"\u63a8\u5e7f\u5546\u54c1"),b.createElement("div",{className:"price"},b.createElement(cn,{name:"transanction"}),b.createElement("span",{className:"title"},"\u9884\u4f30\u53ef\u8d5a\u4f63\u91d1\uff1a"),b.createElement("span",{className:"yongjin"},b.createElement("span",{className:"spacing"},"\xa5"),b.createElement("span",{className:"light"},h.toString().split(".")[0]||""),".",h.toString().split(".")[1]||"00"))),b.createElement("div",{className:"product-info-cont h5-product-info-cont"},b.createElement("div",{className:"cont-name"},b.createElement("div",{className:"cont-name-title"},"\u5546\u54c1"),b.createElement("div",{className:"cont-name-info"},b.createElement("span",{className:"bold"},s.split(",")[0]),b.createElement("span",null,s.split(",")[1]))),b.createElement("div",{className:"cont-name"},b.createElement("div",{className:"cont-name-title"},"\u5546\u54c1\u89c4\u683c"),b.createElement("div",{className:"cont-name-guie"},c.split(",").map(function(e){return b.createElement("span",{key:e},e)}))),b.createElement("div",{className:"cont-name"},b.createElement("div",{className:"cont-name-title"},"\u6e20\u9053\u4ef7\u683c"),b.createElement("div",{className:"cont-name-pri"},b.createElement("span",null,b.createElement("span",{className:"spacing"},"\xa5"),d||""))),b.createElement("div",{className:"cont-name"},b.createElement("div",{className:"cont-name-title cont-flex"},"\u9884\u4f30\u4f63\u91d1",b.createElement(fp,{className:"table-balloon",triggerType:"click",title:"\u9884\u4f30\u60a8\u5728\u5f53\u524d\u4e91\u5927\u4f7f\u7b49\u7ea7\u4e0b\u53ef\u83b7\u5f97\u7684\u8fd4\u4f63\u5956\u52b1\u91d1\u989d\u3002",trigger:b.createElement("div",{className:"cont-flex-icon"},b.createElement(cn,{name:"info"})),align:"r"})),b.createElement("div",{className:"cont-name-yongjin"},b.createElement("span",null,"\u63a8\u8350\u65b0\u5ba2\u8d2d\u4e70\u540e\u53ef\u5f97",b.createElement("span",{className:"light"},b.createElement("span",{className:"spacing"},"\xa5"),h||""))))),b.createElement("div",{className:"product-info-cont pc-product-info-cont"},b.createElement(cE.StickyLock,{dataSource:B},b.createElement(cE.Column,{title:b.createElement("span",{className:"table-title"},"\u5546\u54c1"),dataIndex:"title",width:"152px",cell:function(e){return b.createElement("div",{className:"table-name"},b.createElement("span",{className:"bold"},(null==e?void 0:e.split(",")[0])||""),b.createElement("span",null,(null==e?void 0:e.split(",")[1])||""))}}),b.createElement(cE.Column,{title:b.createElement("span",{className:"table-title"},"\u5546\u54c1\u89c4\u683c"),dataIndex:"type",width:"152px",cell:function(e){return b.createElement("div",{className:"table-guie"},e&&e.length>0&&e.split(",").map(function(e){return b.createElement("span",{key:e},e)}))}}),b.createElement(cE.Column,{title:b.createElement("span",{className:"table-title"},"\u6e20\u9053\u4ef7\u683c"),dataIndex:"price",width:"152px",cell:function(e){return b.createElement("div",{className:"table-pri"},b.createElement("span",null,b.createElement("span",{className:"spacing"},"\xa5"),e||""))}}),b.createElement(cE.Column,{title:b.createElement("div",{className:"table-title balloon"},b.createElement("span",{className:"table-title"},"\u9884\u4f30\u4f63\u91d1"),b.createElement(fp,{className:"table-balloon",triggerType:"hover",title:"\u9884\u4f30\u60a8\u5728\u5f53\u524d\u4e91\u5927\u4f7f\u7b49\u7ea7\u4e0b\u53ef\u83b7\u5f97\u7684\u8fd4\u4f63\u5956\u52b1\u91d1\u989d\u3002",trigger:b.createElement("div",null,b.createElement(cn,{name:"info"})),align:"b"})),dataIndex:"commission",cell:function(e){return b.createElement("div",{className:"table-yongjin"},b.createElement("span",null,"\u63a8\u8350\u65b0\u5ba2\u8d2d\u4e70\u540e\u53ef\u5f97",b.createElement("span",{className:"light"},b.createElement("span",{className:"spacing"},"\xa5"),e||"")))}}))),b.createElement(wE,{commission:h,price:d,marketingProductsId:a})),b.createElement("div",{className:"material-info"},b.createElement("div",{className:"material-info-title"},"\u63a8\u5e7f\u7d20\u6750"),b.createElement("div",{className:"material-info-link material-info-current"},b.createElement("span",{className:"info-title"},"\u63a8\u5e7f\u94fe\u63a5"),b.createElement("div",{className:"info-input"},r||""),b.createElement(an,{type:"primary",className:"info-btn",onClick:function(){xE(r||"")}},"\u590d\u5236\u94fe\u63a5")),b.createElement("div",{className:"material-info-text material-info-current"},b.createElement("span",{className:"info-title"},"\u63a8\u5e7f\u6587\u6848"),b.createElement("div",{className:"info-input"},m),b.createElement(an,{type:"primary",className:"info-btn",onClick:function(){r?xE("".concat(m," \u70b9\u51fb\u3010 ").concat(r," \u3011\u7acb\u5373\u8d2d\u4e70")):xE(m)}},"\u590d\u5236\u6587\u6848")),b.createElement("div",{className:"material-info-img"},b.createElement("span",{className:"img-title"},"\u56fe\u7247\u7d20\u6750"),b.createElement("img",{className:"img",src:y}),b.createElement("div",{className:"img-btn-cont"},b.createElement(an,{className:"img-btn",type:"primary",onClick:function(){EE(w.url?w.url:y)}},b.createElement(cn,{name:"download"}),"\u4e0b\u8f7d\u7d20\u6750",w.url&&w.url.value&&w.url.value.length>0&&"\u5305"),b.createElement("span",{className:"img-desc"},"\u4e0b\u8f7d\u5b98\u65b9\u63a8\u5e7f\u7d20\u6750\uff0c\u7528\u4e8e\u6e20\u9053\u4f20\u64ad\u4f7f\u7528")))))}function FE(e){return SE.apply(this,arguments)}function SE(){return(SE=K(ke.mark(function e(t){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){var n=CE({className:"check-product-info info-drawer",placement:"right",onClose:function(){e(!1)},closeMode:"close",cache:!0,title:b.createElement(b.Fragment,null,b.createElement("div",{className:"check-title"},b.createElement("div",{onClick:function(){n()}},b.createElement(cn,{name:"arrow_left"})),b.createElement("span",null,"\u7acb\u5373\u63a8\u5e7f\u8d5a\u4f63\u91d1")),b.createElement("div",{className:"title"},"\u7acb\u5373\u63a8\u5e7f\u8d5a\u4f63\u91d1")),content:kE(t)}).hide}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}var QE,UE,OE=Object.defineProperty,TE=Object.getOwnPropertySymbols,ME=Object.prototype.hasOwnProperty,IE=Object.prototype.propertyIsEnumerable,NE=(e,t,n)=>t in e?OE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,HE=(e,t)=>{for(var n in t||(t={}))ME.call(t,n)&&NE(e,n,t[n]);if(TE)for(var n of TE(t))IE.call(t,n)&&NE(e,n,t[n]);return e},_E=(e,t)=>{var n={};for(var r in e)ME.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&TE)for(var r of TE(e))t.indexOf(r)<0&&IE.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw"Version value out of range";if(o<-1||o>7)throw"Mask value out of range";this.size=4*e+17;let a=[];for(let t=0;t<this.size;t++)a.push(!1);for(let t=0;t<this.size;t++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const A=this.addEccAndInterleave(r);if(this.drawCodewords(A),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,s=-1,l=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||s<-1||s>7)throw"Invalid value";let c,u;for(c=o;;c++){const r=8*t.getNumDataCodewords(c,n),o=A.getTotalBits(e,c);if(o<=r){u=o;break}if(c>=a)throw"Data too long"}for(const r of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&u<=8*t.getNumDataCodewords(c,r)&&(n=r);let d=[];for(const t of e){r(t.mode.modeBits,4,d),r(t.numChars,t.mode.numCharCountBits(c),d);for(const e of t.getData())d.push(e)}i(d.length==u);const p=8*t.getNumDataCodewords(c,n);i(d.length<=p),r(0,Math.min(4,p-d.length),d),r(0,(8-d.length%8)%8,d),i(d.length%8==0);for(let t=236;d.length<p;t^=253)r(t,8,d);let h=[];for(;8*h.length<d.length;)h.push(0);return d.forEach((e,t)=>h[t>>>3]|=e<<7-(7&t)),new t(c,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let o=0;o<10;o++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let i=0;i<=5;i++)this.setFunctionModule(8,i,o(r,i));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,o(r,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,o(r,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,o(r,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let n=0;n<18;n++){const e=o(t,n),r=this.size-11+n%3,i=Math.floor(n/3);this.setFunctionModule(r,i,e),this.setFunctionModule(i,r,e)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw"Invalid argument";const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],A=Math.floor(t.getNumRawDataModules(n)/8),s=o-A%o,l=Math.floor(A/o);let c=[];const u=t.reedSolomonComputeDivisor(a);for(let i=0,p=0;i<o;i++){let n=e.slice(p,p+l-a+(i<s?0:1));p+=n.length;const r=t.reedSolomonComputeRemainder(n,u);i<s&&n.push(0),c.push(n.concat(r))}let d=[];for(let t=0;t<c[0].length;t++)c.forEach((e,n)=>{(t!=l-a||n>=s)&&d.push(e[t])});return i(d.length==A),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw"Invalid argument";let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,A=!(t+1&2)?this.size-1-r:r;!this.isFunction[A][a]&&n<8*e.length&&(this.modules[A][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw"Mask value out of range";for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw"Unreachable"}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let i=0;i<this.size;i++){let n=!1,r=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[i][a]==n?(r++,5==r?e+=t.PENALTY_N1:r>5&&e++):(this.finderPenaltyAddHistory(r,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[i][a],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,o)*t.PENALTY_N3}for(let i=0;i<this.size;i++){let n=!1,r=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][i]==n?(r++,5==r?e+=t.PENALTY_N1:r>5&&e++):(this.finderPenaltyAddHistory(r,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[a][i],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,o)*t.PENALTY_N3}for(let i=0;i<this.size-1;i++)for(let n=0;n<this.size-1;n++){const r=this.modules[i][n];r==this.modules[i][n+1]&&r==this.modules[i+1][n]&&r==this.modules[i+1][n+1]&&(e+=t.PENALTY_N2)}let n=0;for(const t of this.modules)n=t.reduce((e,t)=>e+(t?1:0),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw"Version number out of range";let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw"Degree out of range";let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(const o of e){const e=o^r.shift();r.push(0),n.forEach((n,o)=>r[o]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw"Byte out of range";let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw"Value out of range";for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return!!(e>>>t&1)}function i(e){if(!e)throw"Assertion error"}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.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.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]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw"Invalid argument";this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw"String contains non-numeric characters";let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw"String contains unencodable characters in alphanumeric mode";let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw"ECI assignment value out of range";if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw"ECI assignment value out of range";r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let A=a;A.NUMERIC_REGEX=/^[0-9]*$/,A.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,A.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=A})(QE||(QE={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})((UE=QE||(QE={})).QrCode||(UE.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(e.QrSegment||(e.QrSegment={}))})(QE||(QE={}));var PE=QE,DE={L:PE.QrCode.Ecc.LOW,M:PE.QrCode.Ecc.MEDIUM,Q:PE.QrCode.Ecc.QUARTILE,H:PE.QrCode.Ecc.HIGH},LE={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};
/**
 * @license qrcode.react
 * Copyright (c) Paul O'Shannessy
 * SPDX-License-Identifier: ISC
 */function RE(e,t=0){const n=[];return e.forEach(function(e,r){let o=null;e.forEach(function(i,a){if(!i&&null!==o)return n.push(`M${o+t} ${r+t}h${a-o}v1H${o+t}z`),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${o+t},${r+t} h${a+1-o}v1H${o+t}z`)}})}),n.join("")}function zE(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>(n<t.x||n>=t.x+t.w)&&e))}function KE(e,t){const{imageSettings:n,size:r,includeMargin:o}=e;if(null==n)return null;const i=o?4:0,a=t.length+2*i,A=Math.floor(.1*r),s=a/r,l=(n.width||A)*s,c=(n.height||A)*s,u=null==n.x?t.length/2-l/2:n.x*s,d=null==n.y?t.length/2-c/2:n.y*s;let p=null;if(n.excavate){let e=Math.floor(u),t=Math.floor(d);p={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:l,excavation:p}}var jE=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function VE(e){const t=b.useRef(null),n=b.useRef(null);function r(){const{value:r,size:o,level:i,bgColor:a,fgColor:A,includeMargin:s}=e;if(null!=t.current){const l=t.current,c=l.getContext("2d");if(!c)return;let u=PE.QrCode.encodeText(r,DE[i]).getModules();const d=s?4:0,p=u.length+2*d,h=KE(e,u),f=n.current,m=null!=h&&null!==f&&f.complete&&0!==f.naturalHeight&&0!==f.naturalWidth;m&&null!=h.excavation&&(u=zE(u,h.excavation));const g=window.devicePixelRatio||1;l.height=l.width=o*g;const y=o/p*g;c.scale(y,y),c.fillStyle=a,c.fillRect(0,0,p,p),c.fillStyle=A,jE?c.fill(new Path2D(RE(u,d))):u.forEach(function(e,t){e.forEach(function(e,n){e&&c.fillRect(n+d,t+d,1,1)})}),m&&c.drawImage(f,h.x+d,h.y+d,h.w,h.h)}}b.useEffect(()=>{r()});const o=e,{value:i,size:a,level:A,bgColor:s,fgColor:l,style:c,includeMargin:u,imageSettings:d}=o,p=_E(o,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),h=HE({height:a,width:a},c);let f=null,m=null==d?void 0:d.src;return null!=m&&(f=b.createElement("img",{src:m,key:m,style:{display:"none"},onLoad:()=>{r()},ref:n})),b.createElement(b.Fragment,null,b.createElement("canvas",HE({style:h,height:a,width:a,ref:t},p)),f)}function $E(e){const t=e,{value:n,size:r,level:o,bgColor:i,fgColor:a,includeMargin:A,imageSettings:s}=t,l=_E(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let c=PE.QrCode.encodeText(n,DE[o]).getModules();const u=A?4:0,d=c.length+2*u,p=KE(e,c);let h=null;null!=s&&null!=p&&(null!=p.excavation&&(c=zE(c,p.excavation)),h=b.createElement("image",{xlinkHref:s.src,height:p.h,width:p.w,x:p.x+u,y:p.y+u,preserveAspectRatio:"none"}));const f=RE(c,u);return b.createElement("svg",HE({shapeRendering:"crispEdges",height:r,width:r,viewBox:`0 0 ${d} ${d}`},l),b.createElement("path",{fill:i,d:`M0,0 h${d}v${d}H0z`}),b.createElement("path",{fill:a,d:f}),h)}VE.defaultProps=LE,$E.defaultProps=LE;var GE=e=>{const t=e,{renderAs:n}=t,r=_E(t,["renderAs"]),o="svg"===n?$E:VE;return b.createElement(o,HE({},r))};GE.defaultProps=HE({renderAs:"canvas"},LE);function WE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WE(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qE(e){return nn.show(YE(YE({},e),{},{closeable:"close"}))}function XE(e,t){return JE.apply(this,arguments)}function JE(){return JE=K(ke.mark(function e(t,n){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=K(ke.mark(function e(r){var o;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o="",o=t.indexOf("?")>-1?"".concat(t).concat(n?"&userCode="+n:""):"".concat(t).concat(n?"?userCode="+n:""),qE({className:"".concat(An.share_dialog," share"),title:"",content:b.createElement("div",{className:An.share_view},b.createElement("div",{className:An.share_title},"\u4f7f\u7528\u9489\u9489\u3001\u5fae\u4fe1\u3001\u652f\u4ed8\u5b9d\u7b49\u626b\u63cf\u4e0b\u65b9\u4e8c\u7ef4\u7801"),b.createElement("div",{className:An.share_desc},"\u6253\u5f00\u624b\u673a\u7aef\u6d3b\u52a8\u9875\u9762\uff0c\u53ef\u8fdb\u884c\u5206\u4eab"),b.createElement("div",{className:An.share_content},o?b.createElement(GE,{value:o,size:100,id:"qrCode"}):b.createElement("div",{className:An.noImg}),b.createElement(an,{type:"primary",className:An.copy_,onClick:function(){pE(o),on("\u590d\u5236\u6210\u529f\uff0c\u5feb\u53bb\u5206\u4eab\u5427")}},b.createElement(cn,{name:"connection-line"}),"\u590d\u5236\u94fe\u63a5"))),footer:!1,onClose:function(){r(!1)}});case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e)})),JE.apply(this,arguments)}function ZE(e){return ek.apply(this,arguments)}function ek(){return ek=K(ke.mark(function e(t){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=K(ke.mark(function e(n){var r,o;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=qE({className:"".concat(An.currency_dialog),title:b.createElement("div",{className:An["dialog-title"]},b.createElement(cn,{name:"info"}),b.createElement("span",null,"\u63d0\u9192")),content:b.createElement("div",{className:An.share_title},t),footer:[b.createElement(an,{className:"".concat(An.btn," ").concat(An["btn-primary"]),type:"primary",onClick:function(){o(),n(!1)}},"\u77e5\u9053\u4e86")],onClose:function(){n(!1)}}),o=r.hide;case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e)})),ek.apply(this,arguments)}function tk(e,t,n){return nk.apply(this,arguments)}function nk(){return nk=K(ke.mark(function e(t,n,r){var o,i,a,A,s,l,c,u,d,p;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.title,i=void 0===o?"":o,a=n.btnText,A=void 0===a?"":a,s=n.description,l=void 0===s?"":s,c=n.linkText,u=void 0===c?"":c,d=n.linkUrl,p=void 0===d?"":d,e.abrupt("return",new Promise(function(){var e=K(ke.mark(function e(n){var o,a;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=qE({className:"activity_dialog",title:b.createElement("div",{className:"activity-title"},b.createElement("span",null,i||"\u606d\u559c\u60a8\u83b7\u5f97\u73b0\u91d1\u7ea2\u5305")),content:b.createElement("div",{className:"activity-cont"},b.createElement("span",null,t),"prize"===r&&"\u5143"),footer:[b.createElement(an,{className:"acticity-btn",type:"secondary",onClick:function(){a(),n(!1)}},A||"\u8fd4\u56de\u6d3b\u52a8"),b.createElement("div",{className:"acticity-apply"},b.createElement("span",{className:"apply-desc"},l||"\u7ed1\u5b9a\u4e2a\u4eba\u652f\u4ed8\u5b9d\u53ef\u63d0\u73b0\u3002"),u&&b.createElement("a",{href:p,target:"_blank"},u||"\u53bb\u63d0\u73b0",b.createElement(cn,{name:"arrow_right"})))],onClose:function(){n(!1)}}),a=o.hide;case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e)})),nk.apply(this,arguments)}var rk={};const ok=function(e,t){var n=Qn(b.useState(e?"loading":"unset"),2),r=n[0],o=n[1],i=b.useRef(void 0);return b.useEffect(function(){if(e){var n=e.replace(/[|#].*$/,"");if("css"===(null==t?void 0:t.type)||!(null==t?void 0:t.type)&&/(^css!|\.css$)/.test(n)){var r=function(e,t){void 0===t&&(t={});var n=document.querySelector('link[href="'.concat(e,'"]'));if(!n){var r=document.createElement("link");return r.rel="stylesheet",r.href=e,Object.keys(t).forEach(function(e){r[e]=t[e]}),"hideFocus"in r&&r.relList&&(r.rel="preload",r.as="style"),r.setAttribute("data-status","loading"),document.head.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null==t?void 0:t.css);i.current=r.ref,o(r.status)}else if("js"===(null==t?void 0:t.type)||!(null==t?void 0:t.type)&&/(^js!|\.js$)/.test(n)){r=function(e,t){void 0===t&&(t={});var n=document.querySelector('script[src="'.concat(e,'"]'));if(!n){var r=document.createElement("script");return r.src=e,Object.keys(t).forEach(function(e){r[e]=t[e]}),r.setAttribute("data-status","loading"),document.body.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null==t?void 0:t.js);i.current=r.ref,o(r.status)}if(i.current){void 0===rk[e]?rk[e]=1:rk[e]+=1;var a=function(e){var t,n="load"===e.type?"ready":"error";null===(t=i.current)||void 0===t||t.setAttribute("data-status",n),o(n)};return i.current.addEventListener("load",a),i.current.addEventListener("error",a),function(){var n,r,o;null===(n=i.current)||void 0===n||n.removeEventListener("load",a),null===(r=i.current)||void 0===r||r.removeEventListener("error",a),rk[e]-=1,0!==rk[e]||(null==t?void 0:t.keepWhenUnused)||null===(o=i.current)||void 0===o||o.remove(),i.current=void 0}}}else o("unset")},[e]),r};function ik(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let ak={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};function Ak(e){ak=e}const sk=/[&<>"']/,lk=new RegExp(sk.source,"g"),ck=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,uk=new RegExp(ck.source,"g"),dk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pk=e=>dk[e];function hk(e,t){if(t){if(sk.test(e))return e.replace(lk,pk)}else if(ck.test(e))return e.replace(uk,pk);return e}const fk=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function mk(e){return e.replace(fk,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const gk=/(^|[^\[])\^/g;function yk(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(gk,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const vk=/[^\w:]/g,bk=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function wk(e,t,n){if(e){let e;try{e=decodeURIComponent(mk(n)).replace(vk,"").toLowerCase()}catch(r){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!bk.test(n)&&(n=function(e,t){Bk[" "+e]||(Ck.test(e)?Bk[" "+e]=e+"/":Bk[" "+e]=Sk(e,"/",!0));e=Bk[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(xk,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Ek,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}const Bk={},Ck=/^[^:]+:\/*[^/]*$/,xk=/^([^:]+:)[\s\S]*$/,Ek=/^([^:]+:\/*[^/]*)[\s\S]*$/;const kk={exec:function(){}};function Fk(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function Sk(e,t,n){const r=e.length;if(0===r)return"";let o=0;for(;o<r;){const i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.slice(0,r-o)}function Qk(e,t,n,r){const o=t.href,i=t.title?hk(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:o,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:i,text:hk(a)}}let Uk=class{constructor(e){this.options=e||ak}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Sk(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map(e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Sk(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,a,A,s,l,c,u,d,p,h=t[1].trim();const f=h.length>1,m={type:"list",raw:"",ordered:f,start:f?+h.slice(0,-1):"",loose:!1,items:[]};h=f?`\\d{1,9}\\${h.slice(-1)}`:`\\${h}`,this.options.pedantic&&(h=f?h:"[*+-]");const g=new RegExp(`^( {0,3}${h})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,t=g.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),l=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],this.options.pedantic?(i=2,d=l.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=l.slice(i),i+=t[1].length),A=!1,!l&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),p=!0),!p){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),o=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),a=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(u=e.split("\n",1)[0],c=u,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!o.test(c))&&!a.test(c)&&!t.test(c)&&!r.test(e);){if(c.search(/[^ ]/)>=i||!c.trim())d+="\n"+c.slice(i);else{if(A)break;if(l.search(/[^ ]/)>=4)break;if(o.test(l))break;if(a.test(l))break;if(r.test(l))break;d+="\n"+c}A||c.trim()||(A=!0),n+=u+"\n",e=e.substring(u.length+1),l=c.slice(i)}}m.loose||(s?m.loose=!0:/\n *\n *$/.test(n)&&(s=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(o="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(a=0;a<y;a++)if(this.lexer.state.top=!1,m.items[a].tokens=this.lexer.blockTokens(m.items[a].text,[]),!m.loose){const e=m.items[a].tokens.filter(e=>"space"===e.type),t=e.length>0&&e.some(e=>/\n.*\n/.test(e.raw));m.loose=t}if(m.loose)for(a=0;a<y;a++)m.items[a].loose=!0;return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",block:!0,raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):hk(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Fk(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,o,i,a=e.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(a=e.rows.length,n=0;n<a;n++)e.rows[n]=Fk(e.rows[n],e.header.length).map(e=>({text:e}));for(a=e.header.length,r=0;r<a;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(a=e.rows.length,r=0;r<a;r++)for(i=e.rows[r],o=0;o<i.length;o++)i[o].tokens=this.lexer.inline(i[o].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:hk(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):hk(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Sk(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,o=0;for(;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Qk(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Qk(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=r[0].length-1;let o,i,a=n,A=0;const s="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=s.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){A+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+A);const t=e.slice(0,n+r.index+i+1);if(Math.min(n,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const s=t.slice(2,-2);return{type:"strong",raw:t,text:s,tokens:this.lexer.inlineTokens(s)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=hk(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=hk(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=hk(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=hk(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=hk(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):hk(n[0]):n[0]:hk(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}};const Ok={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:kk,lheading:/^((?:(?!^bull ).|\n(?!\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ok.def=yk(Ok.def).replace("label",Ok._label).replace("title",Ok._title).getRegex(),Ok.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ok.listItemStart=yk(/^( *)(bull) */).replace("bull",Ok.bullet).getRegex(),Ok.list=yk(Ok.list).replace(/bull/g,Ok.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ok.def.source+")").getRegex(),Ok._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ok._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ok.html=yk(Ok.html,"i").replace("comment",Ok._comment).replace("tag",Ok._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ok.lheading=yk(Ok.lheading).replace(/bull/g,Ok.bullet).getRegex(),Ok.paragraph=yk(Ok._paragraph).replace("hr",Ok.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ok._tag).getRegex(),Ok.blockquote=yk(Ok.blockquote).replace("paragraph",Ok.paragraph).getRegex(),Ok.normal=h({},Ok),Ok.gfm=f(h({},Ok.normal),{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ok.gfm.table=yk(Ok.gfm.table).replace("hr",Ok.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ok._tag).getRegex(),Ok.gfm.paragraph=yk(Ok._paragraph).replace("hr",Ok.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ok.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ok._tag).getRegex(),Ok.pedantic=f(h({},Ok.normal),{html:yk("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ok._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:kk,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:yk(Ok.normal._paragraph).replace("hr",Ok.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ok.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Tk={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:kk,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:kk,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^((?![*_])[\spunctuation])/};function Mk(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function Ik(e){let t,n,r="";const o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}Tk._punctuation="\\p{P}$+<=>`^|~",Tk.punctuation=yk(Tk.punctuation,"u").replace(/punctuation/g,Tk._punctuation).getRegex(),Tk.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Tk.anyPunctuation=/\\[punct]/g,Tk._escapes=/\\([punct])/g,Tk._comment=yk(Ok._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Tk.emStrong.lDelim=yk(Tk.emStrong.lDelim,"u").replace(/punct/g,Tk._punctuation).getRegex(),Tk.emStrong.rDelimAst=yk(Tk.emStrong.rDelimAst,"gu").replace(/punct/g,Tk._punctuation).getRegex(),Tk.emStrong.rDelimUnd=yk(Tk.emStrong.rDelimUnd,"gu").replace(/punct/g,Tk._punctuation).getRegex(),Tk.anyPunctuation=yk(Tk.anyPunctuation,"gu").replace(/punct/g,Tk._punctuation).getRegex(),Tk._escapes=yk(Tk._escapes,"gu").replace(/punct/g,Tk._punctuation).getRegex(),Tk._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Tk._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Tk.autolink=yk(Tk.autolink).replace("scheme",Tk._scheme).replace("email",Tk._email).getRegex(),Tk._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Tk.tag=yk(Tk.tag).replace("comment",Tk._comment).replace("attribute",Tk._attribute).getRegex(),Tk._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Tk._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Tk._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Tk.link=yk(Tk.link).replace("label",Tk._label).replace("href",Tk._href).replace("title",Tk._title).getRegex(),Tk.reflink=yk(Tk.reflink).replace("label",Tk._label).replace("ref",Ok._label).getRegex(),Tk.nolink=yk(Tk.nolink).replace("ref",Ok._label).getRegex(),Tk.reflinkSearch=yk(Tk.reflinkSearch,"g").replace("reflink",Tk.reflink).replace("nolink",Tk.nolink).getRegex(),Tk.normal=h({},Tk),Tk.pedantic=f(h({},Tk.normal),{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:yk(/^!?\[(label)\]\((.*?)\)/).replace("label",Tk._label).getRegex(),reflink:yk(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Tk._label).getRegex()}),Tk.gfm=f(h({},Tk.normal),{escape:yk(Tk.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Tk.gfm.url=yk(Tk.gfm.url,"i").replace("email",Tk.gfm._extended_email).getRegex(),Tk.breaks=f(h({},Tk.gfm),{br:yk(Tk.br).replace("{2,}","*").getRegex(),text:yk(Tk.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});let Nk=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ak,this.options.tokenizer=this.options.tokenizer||new Uk,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Ok.normal,inline:Tk.normal};this.options.pedantic?(t.block=Ok.pedantic,t.inline=Tk.pedantic):this.options.gfm&&(t.block=Ok.gfm,this.options.breaks?t.inline=Tk.breaks:t.inline=Tk.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ok,inline:Tk}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,o,i;for(e=this.options.pedantic?e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,n)=>t+"    ".repeat(n.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach(function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=o.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,o,i,a,A,s=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(s));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,i.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(A=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,s,A))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,Ik))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Ik))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach(function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(o,Mk))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(A=n.raw.slice(-1)),a=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}},Hk=class{constructor(e){this.options=e||ak}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+hk(r)+'">'+(n?e:hk(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:hk(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e,t){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=wk(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=wk(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}};class _k{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Pk{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}let Dk=class e{constructor(e){this.options=e||ak,this.options.renderer=this.options.renderer||new Hk,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new _k,this.slugger=new Pk}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n,r,o,i,a,A,s,l,c,u,d,p,h,f,m,g,y,v,b,w="";const B=e.length;for(n=0;n<B;n++)if(u=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(b=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==b||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))w+=b||"";else switch(u.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(u.tokens),u.depth,mk(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(l="",s="",i=u.header.length,r=0;r<i;r++)s+=this.renderer.tablecell(this.parseInline(u.header[r].tokens),{header:!0,align:u.align[r]});for(l+=this.renderer.tablerow(s),c="",i=u.rows.length,r=0;r<i;r++){for(A=u.rows[r],s="",a=A.length,o=0;o<a;o++)s+=this.renderer.tablecell(this.parseInline(A[o].tokens),{header:!1,align:u.align[o]});c+=this.renderer.tablerow(s)}w+=this.renderer.table(l,c);continue;case"blockquote":c=this.parse(u.tokens),w+=this.renderer.blockquote(c);continue;case"list":for(d=u.ordered,p=u.start,h=u.loose,i=u.items.length,c="",r=0;r<i;r++)m=u.items[r],g=m.checked,y=m.task,f="",m.task&&(v=this.renderer.checkbox(g),h?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=v+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=v+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:v}):f+=v),f+=this.parse(m.tokens,h),c+=this.renderer.listitem(f,y,g);w+=this.renderer.list(c,d,p);continue;case"html":w+=this.renderer.html(u.text,u.block);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;n+1<B&&"text"===e[n+1].type;)u=e[++n],c+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);w+=t?this.renderer.paragraph(c):c;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return;throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let n,r,o,i="";const a=e.length;for(n=0;n<a;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(o=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=o||"";else switch(r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return;throw new Error(e)}}return i}};class Lk{constructor(e){this.options=e||ak}preprocess(e){return e}postprocess(e){return e}}m(Lk,"passThroughHooks",new Set(["preprocess","postprocess"]));r=new WeakSet,o=function(e,t){return(n,r,o)=>{"function"==typeof r&&(o=r,r=null);const A=h({},r);r=h(h({},this.defaults),A);const s=y(this,i,a).call(this,r.silent,r.async,o);if(null==n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(e){e&&!e.silent&&(e.sanitize||e.sanitizer,e.highlight||e.langPrefix,e.mangle,e.baseUrl,e.smartypants,e.xhtml,e.headerIds||e.headerPrefix)}(r),r.hooks&&(r.hooks.options=r),o){const i=r.highlight;let a;try{r.hooks&&(n=r.hooks.preprocess(n)),a=e(n,r)}catch(l){return s(l)}const A=e=>{let n;if(!e)try{r.walkTokens&&this.walkTokens(a,r.walkTokens),n=t(a,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(l){e=l}return r.highlight=i,e?s(e):o(null,n)};if(!i||i.length<3)return A();if(delete r.highlight,!a.length)return A();let c=0;return this.walkTokens(a,e=>{"code"===e.type&&(c++,setTimeout(()=>{i(e.text,e.lang,(t,n)=>{if(t)return A(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),c--,0===c&&A()})},0))}),void(0===c&&A())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(t=>e(t,r)).then(e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>t(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(s);try{r.hooks&&(n=r.hooks.preprocess(n));const o=e(n,r);r.walkTokens&&this.walkTokens(o,r.walkTokens);let i=t(o,r);return r.hooks&&(i=r.hooks.postprocess(i)),i}catch(l){return s(l)}}},i=new WeakSet,a=function(e,t,n){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+hk(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):n?void n(null,e):e}if(t)return Promise.reject(r);if(!n)throw r;n(r)}};const Rk=new class{constructor(...e){g(this,r),g(this,i),m(this,"defaults",{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}),m(this,"options",this.setOptions),m(this,"parse",y(this,r,o).call(this,Nk.lex,Dk.parse)),m(this,"parseInline",y(this,r,o).call(this,Nk.lexInline,Dk.parseInline)),m(this,"Parser",Dk),m(this,"parser",Dk.parse),m(this,"Renderer",Hk),m(this,"TextRenderer",_k),m(this,"Lexer",Nk),m(this,"lexer",Nk.lex),m(this,"Tokenizer",Uk),m(this,"Slugger",Pk),m(this,"Hooks",Lk),this.use(...e)}walkTokens(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(const e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:this.defaults.extensions&&this.defaults.extensions.childTokens&&this.defaults.extensions.childTokens[r.type]?this.defaults.extensions.childTokens[r.type].forEach(e=>{n=n.concat(this.walkTokens(r[e],t))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,t)))}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const n=h({},e);if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){const t=this.defaults.renderer||new Hk(this.defaults);for(const n in e.renderer){const r=t[n];t[n]=(...o)=>{let i=e.renderer[n].apply(t,o);return!1===i&&(i=r.apply(t,o)),i}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new Uk(this.defaults);for(const n in e.tokenizer){const r=t[n];t[n]=(...o)=>{let i=e.tokenizer[n].apply(t,o);return!1===i&&(i=r.apply(t,o)),i}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new Lk;for(const n in e.hooks){const r=t[n];Lk.passThroughHooks.has(n)?t[n]=o=>{if(this.defaults.async)return Promise.resolve(e.hooks[n].call(t,o)).then(e=>r.call(t,e));const i=e.hooks[n].call(t,o);return r.call(t,i)}:t[n]=(...o)=>{let i=e.hooks[n].apply(t,o);return!1===i&&(i=r.apply(t,o)),i}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens;n.walkTokens=function(n){let r=[];return r.push(e.walkTokens.call(this,n)),t&&(r=r.concat(t.call(this,n))),r}}this.defaults=h(h({},this.defaults),n)}),this}setOptions(e){return this.defaults=h(h({},this.defaults),e),this}}(ak);function zk(e,t,n){return Rk.parse(e,t,n)}zk.options=zk.setOptions=function(e){return Rk.setOptions(e),zk.defaults=Rk.defaults,Ak(zk.defaults),zk},zk.getDefaults=ik,zk.defaults=ak,zk.use=function(...e){return Rk.use(...e),zk.defaults=Rk.defaults,Ak(zk.defaults),zk},zk.walkTokens=function(e,t){return Rk.walkTokens(e,t)},zk.parseInline=Rk.parseInline,zk.Parser=Dk,zk.parser=Dk.parse,zk.Renderer=Hk,zk.TextRenderer=_k,zk.Lexer=Nk,zk.lexer=Nk.lex,zk.Tokenizer=Uk,zk.Slugger=Pk,zk.Hooks=Lk,zk.parse=zk,zk.options,zk.setOptions,zk.use,zk.walkTokens,zk.parseInline;var Kk={exports:{}};!function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,o){r[o]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var A in i)if(i.hasOwnProperty(A)){if(A==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(A)||(a[A]=i[A])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,function(t,n){n===l&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var A in t)if(t.hasOwnProperty(A)){n.call(t,A,t[A],r||A);var s=t[A],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,A,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),a=o.languages[i];o.util.setLanguage(t,i);var A=t.parentElement;A&&"pre"===A.nodeName.toLowerCase()&&o.util.setLanguage(A,i);var s={element:t,language:i,grammar:a,code:t.textContent};function l(e){s.highlightedCode=e,o.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,o.hooks.run("after-highlight",s),o.hooks.run("complete",s),r&&r.call(s.element)}if(o.hooks.run("before-sanity-check",s),(A=s.element.parentElement)&&"pre"===A.nodeName.toLowerCase()&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!s.code)return o.hooks.run("complete",s),void(r&&r.call(s.element));if(o.hooks.run("before-highlight",s),s.grammar)if(n&&e.Worker){var c=new Worker(o.filename);c.onmessage=function(e){l(e.data)},c.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else l(o.highlight(s.code,s.grammar,s.language));else l(o.util.encode(s.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),A(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function A(e,t,n,r,s,u){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(u&&u.cause==d+","+h)return;var f=p[h],m=f.inside,g=!!f.lookbehind,y=!!f.greedy,v=f.alias;if(y&&!f.pattern.global){var b=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,b+"g")}for(var w=f.pattern||f,B=r.next,C=s;B!==t.tail&&!(u&&C>=u.reach);C+=B.value.length,B=B.next){var x=B.value;if(t.length>e.length)return;if(!(x instanceof i)){var E,k=1;if(y){if(!(E=a(w,C,e,g))||E.index>=e.length)break;var F=E.index,S=E.index+E[0].length,Q=C;for(Q+=B.value.length;F>=Q;)Q+=(B=B.next).value.length;if(C=Q-=B.value.length,B.value instanceof i)continue;for(var U=B;U!==t.tail&&(Q<S||"string"==typeof U.value);U=U.next)k++,Q+=U.value.length;k--,x=e.slice(C,Q),E.index-=C}else if(!(E=a(w,0,x,g)))continue;F=E.index;var O=E[0],T=x.slice(0,F),M=x.slice(F+O.length),I=C+x.length;u&&I>u.reach&&(u.reach=I);var N=B.prev;if(T&&(N=l(t,N,T),C+=T.length),c(t,N,k),B=l(t,N,new i(d,m?o.tokenize(O,m):O,v,O)),M&&l(t,B,M),k>1){var H={cause:d+","+h,reach:I};A(e,t,n,B.prev,C,H),u&&H.reach>u.reach&&(u.reach=H.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var A="";for(var s in i.attributes)A+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+A+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()},!1),o):o;var u=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(u&&(o.filename=u.src,u.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&u&&u.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
/**
   * Prism: Lightweight, robust, elegant syntax highlighting
   *
   * @license MIT <https://opensource.org/licenses/MIT>
   * @author Lea Verou <https://lea.verou.me>
   * @namespace
   * @public
   */e.exports&&(e.exports=t),void 0!==te&&(te.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';t.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),t.hooks.add("before-sanity-check",function(a){var A=a.element;if(A.matches(i)){a.code="",A.setAttribute(n,r);var s=A.appendChild(document.createElement("CODE"));s.textContent="Loading\u2026";var l=A.getAttribute("data-src"),c=a.language;if("none"===c){var u=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=e[u]||u}t.util.setLanguage(s,c),t.util.setLanguage(A,c);var d=t.plugins.autoloader;d&&d.loadLanguages(c),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("\u2716 Error "+r.status+" while fetching file: "+r.statusText):n("\u2716 Error: File does not exist or is empty"))},r.send(null)}(l,function(e){A.setAttribute(n,o);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(A.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),a=r[0],l=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),l<0&&(l+=i.length),l=Math.max(0,Math.min(l,i.length)),e=i.slice(a,l).join("\n"),A.hasAttribute("data-start")||A.setAttribute("data-start",String(a+1))}s.textContent=e,t.highlightElement(s)},function(e){A.setAttribute(n,"failed"),s.textContent=e})}}),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||(a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(Kk);const jk=ne(Kk.exports);class Vk{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new Vk(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class $k{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new $k(t,Vk.range(this,e))}}class Gk{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n,r,o="KaTeX parse error: "+e,i=t&&t.loc;if(i&&i.start<=i.end){var a=i.lexer.input;n=i.start,r=i.end,n===a.length?o+=" at end of input: ":o+=" at position "+(n+1)+": ";var A=a.slice(n,r).replace(/[^]/g,"$&\u0332");o+=(n>15?"\u2026"+a.slice(n-15,n):a.slice(0,n))+A+(r+15<a.length?a.slice(r,r+15)+"\u2026":a.slice(r))}var s=new Error(o);return s.name="ParseError",s.__proto__=Gk.prototype,s.position=n,null!=n&&null!=r&&(s.length=r-n),s.rawMessage=e,s}}Gk.prototype.__proto__=Error.prototype;var Wk=/([A-Z])/g,Yk={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},qk=/[&><"']/g;var Xk=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},Jk={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(qk,e=>Yk[e])},hyphenate:function(e){return e.replace(Wk,"-$1").toLowerCase()},getBaseElem:Xk,isCharacterBox:function(e){var t=Xk(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},Zk={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function eF(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!=typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class tF{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},Zk)if(Zk.hasOwnProperty(t)){var n=Zk[t];this[t]=void 0!==e[t]?n.processor?n.processor(e[t]):e[t]:eF(n)}}reportNonstrict(e,t,n){var r=this.strict;if("function"==typeof r&&(r=r(e,t,n)),r&&"ignore"!==r&&(!0===r||"error"===r))throw new Gk("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n)}useStrictBehavior(e,t,n){var r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(o){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=Jk.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class nF{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return rF[oF[this.id]]}sub(){return rF[iF[this.id]]}fracNum(){return rF[aF[this.id]]}fracDen(){return rF[AF[this.id]]}cramp(){return rF[sF[this.id]]}text(){return rF[lF[this.id]]}isTight(){return this.size>=2}}var rF=[new nF(0,0,!1),new nF(1,0,!0),new nF(2,1,!1),new nF(3,1,!0),new nF(4,2,!1),new nF(5,2,!0),new nF(6,3,!1),new nF(7,3,!0)],oF=[4,5,4,5,6,7,6,7],iF=[5,5,5,5,7,7,7,7],aF=[2,3,4,5,6,7,6,7],AF=[3,3,5,5,7,7,7,7],sF=[1,1,3,3,5,5,7,7],lF=[0,1,2,3,2,3,2,3],cF={DISPLAY:rF[0],TEXT:rF[2],SCRIPT:rF[4],SCRIPTSCRIPT:rF[6]},uF=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var dF=[];function pF(e){for(var t=0;t<dF.length;t+=2)if(e>=dF[t]&&e<=dF[t+1])return!0;return!1}uF.forEach(e=>e.blocks.forEach(e=>dF.push(...e)));var hF=80,fF={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class mF{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Jk.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var gF={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},yF={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},vF={"\xc5":"A","\xd0":"D","\xde":"o","\xe5":"a","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};function bF(e,t,n){if(!gF[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),o=gF[t][r];if(!o&&e[0]in vF&&(r=vF[e[0]].charCodeAt(0),o=gF[t][r]),o||"text"!==n||pF(r)&&(o=gF[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var wF={};var BF=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],CF=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],xF=function(e,t){return t.size<2?e:BF[e-1][t.size-1]};class EF{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||EF.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=CF[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return new EF(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:xF(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:CF[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=xF(EF.BASESIZE,e);return this.size===t&&this.textSize===EF.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==EF.BASESIZE?["sizing","reset-size"+this.size,"size"+EF.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!wF[t=e>=5?0:e>=3?1:2]){var n=wF[t]={cssEmPerMu:yF.quad[t]/18};for(var r in yF)yF.hasOwnProperty(r)&&(n[r]=yF[r][t])}return wF[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}EF.BASESIZE=6;var kF={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},FF={ex:!0,em:!0,mu:!0},SF=function(e){return"string"!=typeof e&&(e=e.unit),e in kF||e in FF||"ex"===e},QF=function(e,t){var n;if(e.unit in kF)n=kF[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new Gk("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},UF=function(e){return+e.toFixed(4)+"em"},OF=function(e){return e.filter(e=>e).join(" ")},TF=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},MF=function(e){var t=document.createElement(e);for(var n in t.className=OF(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var o=0;o<this.children.length;o++)t.appendChild(this.children[o].toNode());return t},IF=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+Jk.escape(OF(this.classes))+'"');var n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=Jk.hyphenate(r)+":"+this.style[r]+";");for(var o in n&&(t+=' style="'+Jk.escape(n)+'"'),this.attributes)this.attributes.hasOwnProperty(o)&&(t+=" "+o+'="'+Jk.escape(this.attributes[o])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"};class NF{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,TF.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Jk.contains(this.classes,e)}toNode(){return MF.call(this,"span")}toMarkup(){return IF.call(this,"span")}}class HF{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,TF.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Jk.contains(this.classes,e)}toNode(){return MF.call(this,"a")}toMarkup(){return IF.call(this,"a")}}class _F{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return Jk.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e="<img  src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=Jk.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+Jk.escape(t)+'"'),e+="'/>"}}var PF={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"};class DF{constructor(e,t,n,r,o,i,a,A){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=o||0,this.width=i||0,this.classes=a||[],this.style=A||{},this.maxFontSize=0;var s=function(e){for(var t=0;t<uF.length;t++)for(var n=uF[t],r=0;r<n.blocks.length;r++){var o=n.blocks[r];if(e>=o[0]&&e<=o[1])return n.name}return null}(this.text.charCodeAt(0));s&&this.classes.push(s+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=PF[this.text])}hasClass(e){return Jk.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=UF(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=OF(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=Jk.escape(OF(this.classes)),t+='"');var n="";for(var r in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=Jk.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+Jk.escape(n)+'"');var o=Jk.escape(this.text);return e?(t+=">",t+=o,t+="</span>"):o}}class LF{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>"}}class RF{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",fF[this.pathName]),e}toMarkup(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+fF[this.pathName]+"'/>"}}class zF{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>"}}function KF(e){if(e instanceof DF)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var jF={bin:1,close:1,inner:1,open:1,punct:1,rel:1},VF={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},$F={math:{},text:{}};function GF(e,t,n,r,o,i){$F[e][o]={font:t,group:n,replace:r},i&&r&&($F[e][r]=$F[e][o])}var WF="math",YF="text",qF="main",XF="ams",JF="accent-token",ZF="bin",eS="close",tS="inner",nS="mathord",rS="op-token",oS="open",iS="punct",aS="rel",AS="spacing",sS="textord";GF(WF,qF,aS,"\u2261","\\equiv",!0),GF(WF,qF,aS,"\u227a","\\prec",!0),GF(WF,qF,aS,"\u227b","\\succ",!0),GF(WF,qF,aS,"\u223c","\\sim",!0),GF(WF,qF,aS,"\u22a5","\\perp"),GF(WF,qF,aS,"\u2aaf","\\preceq",!0),GF(WF,qF,aS,"\u2ab0","\\succeq",!0),GF(WF,qF,aS,"\u2243","\\simeq",!0),GF(WF,qF,aS,"\u2223","\\mid",!0),GF(WF,qF,aS,"\u226a","\\ll",!0),GF(WF,qF,aS,"\u226b","\\gg",!0),GF(WF,qF,aS,"\u224d","\\asymp",!0),GF(WF,qF,aS,"\u2225","\\parallel"),GF(WF,qF,aS,"\u22c8","\\bowtie",!0),GF(WF,qF,aS,"\u2323","\\smile",!0),GF(WF,qF,aS,"\u2291","\\sqsubseteq",!0),GF(WF,qF,aS,"\u2292","\\sqsupseteq",!0),GF(WF,qF,aS,"\u2250","\\doteq",!0),GF(WF,qF,aS,"\u2322","\\frown",!0),GF(WF,qF,aS,"\u220b","\\ni",!0),GF(WF,qF,aS,"\u221d","\\propto",!0),GF(WF,qF,aS,"\u22a2","\\vdash",!0),GF(WF,qF,aS,"\u22a3","\\dashv",!0),GF(WF,qF,aS,"\u220b","\\owns"),GF(WF,qF,iS,".","\\ldotp"),GF(WF,qF,iS,"\u22c5","\\cdotp"),GF(WF,qF,sS,"#","\\#"),GF(YF,qF,sS,"#","\\#"),GF(WF,qF,sS,"&","\\&"),GF(YF,qF,sS,"&","\\&"),GF(WF,qF,sS,"\u2135","\\aleph",!0),GF(WF,qF,sS,"\u2200","\\forall",!0),GF(WF,qF,sS,"\u210f","\\hbar",!0),GF(WF,qF,sS,"\u2203","\\exists",!0),GF(WF,qF,sS,"\u2207","\\nabla",!0),GF(WF,qF,sS,"\u266d","\\flat",!0),GF(WF,qF,sS,"\u2113","\\ell",!0),GF(WF,qF,sS,"\u266e","\\natural",!0),GF(WF,qF,sS,"\u2663","\\clubsuit",!0),GF(WF,qF,sS,"\u2118","\\wp",!0),GF(WF,qF,sS,"\u266f","\\sharp",!0),GF(WF,qF,sS,"\u2662","\\diamondsuit",!0),GF(WF,qF,sS,"\u211c","\\Re",!0),GF(WF,qF,sS,"\u2661","\\heartsuit",!0),GF(WF,qF,sS,"\u2111","\\Im",!0),GF(WF,qF,sS,"\u2660","\\spadesuit",!0),GF(WF,qF,sS,"\xa7","\\S",!0),GF(YF,qF,sS,"\xa7","\\S"),GF(WF,qF,sS,"\xb6","\\P",!0),GF(YF,qF,sS,"\xb6","\\P"),GF(WF,qF,sS,"\u2020","\\dag"),GF(YF,qF,sS,"\u2020","\\dag"),GF(YF,qF,sS,"\u2020","\\textdagger"),GF(WF,qF,sS,"\u2021","\\ddag"),GF(YF,qF,sS,"\u2021","\\ddag"),GF(YF,qF,sS,"\u2021","\\textdaggerdbl"),GF(WF,qF,eS,"\u23b1","\\rmoustache",!0),GF(WF,qF,oS,"\u23b0","\\lmoustache",!0),GF(WF,qF,eS,"\u27ef","\\rgroup",!0),GF(WF,qF,oS,"\u27ee","\\lgroup",!0),GF(WF,qF,ZF,"\u2213","\\mp",!0),GF(WF,qF,ZF,"\u2296","\\ominus",!0),GF(WF,qF,ZF,"\u228e","\\uplus",!0),GF(WF,qF,ZF,"\u2293","\\sqcap",!0),GF(WF,qF,ZF,"\u2217","\\ast"),GF(WF,qF,ZF,"\u2294","\\sqcup",!0),GF(WF,qF,ZF,"\u25ef","\\bigcirc",!0),GF(WF,qF,ZF,"\u2219","\\bullet",!0),GF(WF,qF,ZF,"\u2021","\\ddagger"),GF(WF,qF,ZF,"\u2240","\\wr",!0),GF(WF,qF,ZF,"\u2a3f","\\amalg"),GF(WF,qF,ZF,"&","\\And"),GF(WF,qF,aS,"\u27f5","\\longleftarrow",!0),GF(WF,qF,aS,"\u21d0","\\Leftarrow",!0),GF(WF,qF,aS,"\u27f8","\\Longleftarrow",!0),GF(WF,qF,aS,"\u27f6","\\longrightarrow",!0),GF(WF,qF,aS,"\u21d2","\\Rightarrow",!0),GF(WF,qF,aS,"\u27f9","\\Longrightarrow",!0),GF(WF,qF,aS,"\u2194","\\leftrightarrow",!0),GF(WF,qF,aS,"\u27f7","\\longleftrightarrow",!0),GF(WF,qF,aS,"\u21d4","\\Leftrightarrow",!0),GF(WF,qF,aS,"\u27fa","\\Longleftrightarrow",!0),GF(WF,qF,aS,"\u21a6","\\mapsto",!0),GF(WF,qF,aS,"\u27fc","\\longmapsto",!0),GF(WF,qF,aS,"\u2197","\\nearrow",!0),GF(WF,qF,aS,"\u21a9","\\hookleftarrow",!0),GF(WF,qF,aS,"\u21aa","\\hookrightarrow",!0),GF(WF,qF,aS,"\u2198","\\searrow",!0),GF(WF,qF,aS,"\u21bc","\\leftharpoonup",!0),GF(WF,qF,aS,"\u21c0","\\rightharpoonup",!0),GF(WF,qF,aS,"\u2199","\\swarrow",!0),GF(WF,qF,aS,"\u21bd","\\leftharpoondown",!0),GF(WF,qF,aS,"\u21c1","\\rightharpoondown",!0),GF(WF,qF,aS,"\u2196","\\nwarrow",!0),GF(WF,qF,aS,"\u21cc","\\rightleftharpoons",!0),GF(WF,XF,aS,"\u226e","\\nless",!0),GF(WF,XF,aS,"\ue010","\\@nleqslant"),GF(WF,XF,aS,"\ue011","\\@nleqq"),GF(WF,XF,aS,"\u2a87","\\lneq",!0),GF(WF,XF,aS,"\u2268","\\lneqq",!0),GF(WF,XF,aS,"\ue00c","\\@lvertneqq"),GF(WF,XF,aS,"\u22e6","\\lnsim",!0),GF(WF,XF,aS,"\u2a89","\\lnapprox",!0),GF(WF,XF,aS,"\u2280","\\nprec",!0),GF(WF,XF,aS,"\u22e0","\\npreceq",!0),GF(WF,XF,aS,"\u22e8","\\precnsim",!0),GF(WF,XF,aS,"\u2ab9","\\precnapprox",!0),GF(WF,XF,aS,"\u2241","\\nsim",!0),GF(WF,XF,aS,"\ue006","\\@nshortmid"),GF(WF,XF,aS,"\u2224","\\nmid",!0),GF(WF,XF,aS,"\u22ac","\\nvdash",!0),GF(WF,XF,aS,"\u22ad","\\nvDash",!0),GF(WF,XF,aS,"\u22ea","\\ntriangleleft"),GF(WF,XF,aS,"\u22ec","\\ntrianglelefteq",!0),GF(WF,XF,aS,"\u228a","\\subsetneq",!0),GF(WF,XF,aS,"\ue01a","\\@varsubsetneq"),GF(WF,XF,aS,"\u2acb","\\subsetneqq",!0),GF(WF,XF,aS,"\ue017","\\@varsubsetneqq"),GF(WF,XF,aS,"\u226f","\\ngtr",!0),GF(WF,XF,aS,"\ue00f","\\@ngeqslant"),GF(WF,XF,aS,"\ue00e","\\@ngeqq"),GF(WF,XF,aS,"\u2a88","\\gneq",!0),GF(WF,XF,aS,"\u2269","\\gneqq",!0),GF(WF,XF,aS,"\ue00d","\\@gvertneqq"),GF(WF,XF,aS,"\u22e7","\\gnsim",!0),GF(WF,XF,aS,"\u2a8a","\\gnapprox",!0),GF(WF,XF,aS,"\u2281","\\nsucc",!0),GF(WF,XF,aS,"\u22e1","\\nsucceq",!0),GF(WF,XF,aS,"\u22e9","\\succnsim",!0),GF(WF,XF,aS,"\u2aba","\\succnapprox",!0),GF(WF,XF,aS,"\u2246","\\ncong",!0),GF(WF,XF,aS,"\ue007","\\@nshortparallel"),GF(WF,XF,aS,"\u2226","\\nparallel",!0),GF(WF,XF,aS,"\u22af","\\nVDash",!0),GF(WF,XF,aS,"\u22eb","\\ntriangleright"),GF(WF,XF,aS,"\u22ed","\\ntrianglerighteq",!0),GF(WF,XF,aS,"\ue018","\\@nsupseteqq"),GF(WF,XF,aS,"\u228b","\\supsetneq",!0),GF(WF,XF,aS,"\ue01b","\\@varsupsetneq"),GF(WF,XF,aS,"\u2acc","\\supsetneqq",!0),GF(WF,XF,aS,"\ue019","\\@varsupsetneqq"),GF(WF,XF,aS,"\u22ae","\\nVdash",!0),GF(WF,XF,aS,"\u2ab5","\\precneqq",!0),GF(WF,XF,aS,"\u2ab6","\\succneqq",!0),GF(WF,XF,aS,"\ue016","\\@nsubseteqq"),GF(WF,XF,ZF,"\u22b4","\\unlhd"),GF(WF,XF,ZF,"\u22b5","\\unrhd"),GF(WF,XF,aS,"\u219a","\\nleftarrow",!0),GF(WF,XF,aS,"\u219b","\\nrightarrow",!0),GF(WF,XF,aS,"\u21cd","\\nLeftarrow",!0),GF(WF,XF,aS,"\u21cf","\\nRightarrow",!0),GF(WF,XF,aS,"\u21ae","\\nleftrightarrow",!0),GF(WF,XF,aS,"\u21ce","\\nLeftrightarrow",!0),GF(WF,XF,aS,"\u25b3","\\vartriangle"),GF(WF,XF,sS,"\u210f","\\hslash"),GF(WF,XF,sS,"\u25bd","\\triangledown"),GF(WF,XF,sS,"\u25ca","\\lozenge"),GF(WF,XF,sS,"\u24c8","\\circledS"),GF(WF,XF,sS,"\xae","\\circledR"),GF(YF,XF,sS,"\xae","\\circledR"),GF(WF,XF,sS,"\u2221","\\measuredangle",!0),GF(WF,XF,sS,"\u2204","\\nexists"),GF(WF,XF,sS,"\u2127","\\mho"),GF(WF,XF,sS,"\u2132","\\Finv",!0),GF(WF,XF,sS,"\u2141","\\Game",!0),GF(WF,XF,sS,"\u2035","\\backprime"),GF(WF,XF,sS,"\u25b2","\\blacktriangle"),GF(WF,XF,sS,"\u25bc","\\blacktriangledown"),GF(WF,XF,sS,"\u25a0","\\blacksquare"),GF(WF,XF,sS,"\u29eb","\\blacklozenge"),GF(WF,XF,sS,"\u2605","\\bigstar"),GF(WF,XF,sS,"\u2222","\\sphericalangle",!0),GF(WF,XF,sS,"\u2201","\\complement",!0),GF(WF,XF,sS,"\xf0","\\eth",!0),GF(YF,qF,sS,"\xf0","\xf0"),GF(WF,XF,sS,"\u2571","\\diagup"),GF(WF,XF,sS,"\u2572","\\diagdown"),GF(WF,XF,sS,"\u25a1","\\square"),GF(WF,XF,sS,"\u25a1","\\Box"),GF(WF,XF,sS,"\u25ca","\\Diamond"),GF(WF,XF,sS,"\xa5","\\yen",!0),GF(YF,XF,sS,"\xa5","\\yen",!0),GF(WF,XF,sS,"\u2713","\\checkmark",!0),GF(YF,XF,sS,"\u2713","\\checkmark"),GF(WF,XF,sS,"\u2136","\\beth",!0),GF(WF,XF,sS,"\u2138","\\daleth",!0),GF(WF,XF,sS,"\u2137","\\gimel",!0),GF(WF,XF,sS,"\u03dd","\\digamma",!0),GF(WF,XF,sS,"\u03f0","\\varkappa"),GF(WF,XF,oS,"\u250c","\\@ulcorner",!0),GF(WF,XF,eS,"\u2510","\\@urcorner",!0),GF(WF,XF,oS,"\u2514","\\@llcorner",!0),GF(WF,XF,eS,"\u2518","\\@lrcorner",!0),GF(WF,XF,aS,"\u2266","\\leqq",!0),GF(WF,XF,aS,"\u2a7d","\\leqslant",!0),GF(WF,XF,aS,"\u2a95","\\eqslantless",!0),GF(WF,XF,aS,"\u2272","\\lesssim",!0),GF(WF,XF,aS,"\u2a85","\\lessapprox",!0),GF(WF,XF,aS,"\u224a","\\approxeq",!0),GF(WF,XF,ZF,"\u22d6","\\lessdot"),GF(WF,XF,aS,"\u22d8","\\lll",!0),GF(WF,XF,aS,"\u2276","\\lessgtr",!0),GF(WF,XF,aS,"\u22da","\\lesseqgtr",!0),GF(WF,XF,aS,"\u2a8b","\\lesseqqgtr",!0),GF(WF,XF,aS,"\u2251","\\doteqdot"),GF(WF,XF,aS,"\u2253","\\risingdotseq",!0),GF(WF,XF,aS,"\u2252","\\fallingdotseq",!0),GF(WF,XF,aS,"\u223d","\\backsim",!0),GF(WF,XF,aS,"\u22cd","\\backsimeq",!0),GF(WF,XF,aS,"\u2ac5","\\subseteqq",!0),GF(WF,XF,aS,"\u22d0","\\Subset",!0),GF(WF,XF,aS,"\u228f","\\sqsubset",!0),GF(WF,XF,aS,"\u227c","\\preccurlyeq",!0),GF(WF,XF,aS,"\u22de","\\curlyeqprec",!0),GF(WF,XF,aS,"\u227e","\\precsim",!0),GF(WF,XF,aS,"\u2ab7","\\precapprox",!0),GF(WF,XF,aS,"\u22b2","\\vartriangleleft"),GF(WF,XF,aS,"\u22b4","\\trianglelefteq"),GF(WF,XF,aS,"\u22a8","\\vDash",!0),GF(WF,XF,aS,"\u22aa","\\Vvdash",!0),GF(WF,XF,aS,"\u2323","\\smallsmile"),GF(WF,XF,aS,"\u2322","\\smallfrown"),GF(WF,XF,aS,"\u224f","\\bumpeq",!0),GF(WF,XF,aS,"\u224e","\\Bumpeq",!0),GF(WF,XF,aS,"\u2267","\\geqq",!0),GF(WF,XF,aS,"\u2a7e","\\geqslant",!0),GF(WF,XF,aS,"\u2a96","\\eqslantgtr",!0),GF(WF,XF,aS,"\u2273","\\gtrsim",!0),GF(WF,XF,aS,"\u2a86","\\gtrapprox",!0),GF(WF,XF,ZF,"\u22d7","\\gtrdot"),GF(WF,XF,aS,"\u22d9","\\ggg",!0),GF(WF,XF,aS,"\u2277","\\gtrless",!0),GF(WF,XF,aS,"\u22db","\\gtreqless",!0),GF(WF,XF,aS,"\u2a8c","\\gtreqqless",!0),GF(WF,XF,aS,"\u2256","\\eqcirc",!0),GF(WF,XF,aS,"\u2257","\\circeq",!0),GF(WF,XF,aS,"\u225c","\\triangleq",!0),GF(WF,XF,aS,"\u223c","\\thicksim"),GF(WF,XF,aS,"\u2248","\\thickapprox"),GF(WF,XF,aS,"\u2ac6","\\supseteqq",!0),GF(WF,XF,aS,"\u22d1","\\Supset",!0),GF(WF,XF,aS,"\u2290","\\sqsupset",!0),GF(WF,XF,aS,"\u227d","\\succcurlyeq",!0),GF(WF,XF,aS,"\u22df","\\curlyeqsucc",!0),GF(WF,XF,aS,"\u227f","\\succsim",!0),GF(WF,XF,aS,"\u2ab8","\\succapprox",!0),GF(WF,XF,aS,"\u22b3","\\vartriangleright"),GF(WF,XF,aS,"\u22b5","\\trianglerighteq"),GF(WF,XF,aS,"\u22a9","\\Vdash",!0),GF(WF,XF,aS,"\u2223","\\shortmid"),GF(WF,XF,aS,"\u2225","\\shortparallel"),GF(WF,XF,aS,"\u226c","\\between",!0),GF(WF,XF,aS,"\u22d4","\\pitchfork",!0),GF(WF,XF,aS,"\u221d","\\varpropto"),GF(WF,XF,aS,"\u25c0","\\blacktriangleleft"),GF(WF,XF,aS,"\u2234","\\therefore",!0),GF(WF,XF,aS,"\u220d","\\backepsilon"),GF(WF,XF,aS,"\u25b6","\\blacktriangleright"),GF(WF,XF,aS,"\u2235","\\because",!0),GF(WF,XF,aS,"\u22d8","\\llless"),GF(WF,XF,aS,"\u22d9","\\gggtr"),GF(WF,XF,ZF,"\u22b2","\\lhd"),GF(WF,XF,ZF,"\u22b3","\\rhd"),GF(WF,XF,aS,"\u2242","\\eqsim",!0),GF(WF,qF,aS,"\u22c8","\\Join"),GF(WF,XF,aS,"\u2251","\\Doteq",!0),GF(WF,XF,ZF,"\u2214","\\dotplus",!0),GF(WF,XF,ZF,"\u2216","\\smallsetminus"),GF(WF,XF,ZF,"\u22d2","\\Cap",!0),GF(WF,XF,ZF,"\u22d3","\\Cup",!0),GF(WF,XF,ZF,"\u2a5e","\\doublebarwedge",!0),GF(WF,XF,ZF,"\u229f","\\boxminus",!0),GF(WF,XF,ZF,"\u229e","\\boxplus",!0),GF(WF,XF,ZF,"\u22c7","\\divideontimes",!0),GF(WF,XF,ZF,"\u22c9","\\ltimes",!0),GF(WF,XF,ZF,"\u22ca","\\rtimes",!0),GF(WF,XF,ZF,"\u22cb","\\leftthreetimes",!0),GF(WF,XF,ZF,"\u22cc","\\rightthreetimes",!0),GF(WF,XF,ZF,"\u22cf","\\curlywedge",!0),GF(WF,XF,ZF,"\u22ce","\\curlyvee",!0),GF(WF,XF,ZF,"\u229d","\\circleddash",!0),GF(WF,XF,ZF,"\u229b","\\circledast",!0),GF(WF,XF,ZF,"\u22c5","\\centerdot"),GF(WF,XF,ZF,"\u22ba","\\intercal",!0),GF(WF,XF,ZF,"\u22d2","\\doublecap"),GF(WF,XF,ZF,"\u22d3","\\doublecup"),GF(WF,XF,ZF,"\u22a0","\\boxtimes",!0),GF(WF,XF,aS,"\u21e2","\\dashrightarrow",!0),GF(WF,XF,aS,"\u21e0","\\dashleftarrow",!0),GF(WF,XF,aS,"\u21c7","\\leftleftarrows",!0),GF(WF,XF,aS,"\u21c6","\\leftrightarrows",!0),GF(WF,XF,aS,"\u21da","\\Lleftarrow",!0),GF(WF,XF,aS,"\u219e","\\twoheadleftarrow",!0),GF(WF,XF,aS,"\u21a2","\\leftarrowtail",!0),GF(WF,XF,aS,"\u21ab","\\looparrowleft",!0),GF(WF,XF,aS,"\u21cb","\\leftrightharpoons",!0),GF(WF,XF,aS,"\u21b6","\\curvearrowleft",!0),GF(WF,XF,aS,"\u21ba","\\circlearrowleft",!0),GF(WF,XF,aS,"\u21b0","\\Lsh",!0),GF(WF,XF,aS,"\u21c8","\\upuparrows",!0),GF(WF,XF,aS,"\u21bf","\\upharpoonleft",!0),GF(WF,XF,aS,"\u21c3","\\downharpoonleft",!0),GF(WF,qF,aS,"\u22b6","\\origof",!0),GF(WF,qF,aS,"\u22b7","\\imageof",!0),GF(WF,XF,aS,"\u22b8","\\multimap",!0),GF(WF,XF,aS,"\u21ad","\\leftrightsquigarrow",!0),GF(WF,XF,aS,"\u21c9","\\rightrightarrows",!0),GF(WF,XF,aS,"\u21c4","\\rightleftarrows",!0),GF(WF,XF,aS,"\u21a0","\\twoheadrightarrow",!0),GF(WF,XF,aS,"\u21a3","\\rightarrowtail",!0),GF(WF,XF,aS,"\u21ac","\\looparrowright",!0),GF(WF,XF,aS,"\u21b7","\\curvearrowright",!0),GF(WF,XF,aS,"\u21bb","\\circlearrowright",!0),GF(WF,XF,aS,"\u21b1","\\Rsh",!0),GF(WF,XF,aS,"\u21ca","\\downdownarrows",!0),GF(WF,XF,aS,"\u21be","\\upharpoonright",!0),GF(WF,XF,aS,"\u21c2","\\downharpoonright",!0),GF(WF,XF,aS,"\u21dd","\\rightsquigarrow",!0),GF(WF,XF,aS,"\u21dd","\\leadsto"),GF(WF,XF,aS,"\u21db","\\Rrightarrow",!0),GF(WF,XF,aS,"\u21be","\\restriction"),GF(WF,qF,sS,"\u2018","`"),GF(WF,qF,sS,"$","\\$"),GF(YF,qF,sS,"$","\\$"),GF(YF,qF,sS,"$","\\textdollar"),GF(WF,qF,sS,"%","\\%"),GF(YF,qF,sS,"%","\\%"),GF(WF,qF,sS,"_","\\_"),GF(YF,qF,sS,"_","\\_"),GF(YF,qF,sS,"_","\\textunderscore"),GF(WF,qF,sS,"\u2220","\\angle",!0),GF(WF,qF,sS,"\u221e","\\infty",!0),GF(WF,qF,sS,"\u2032","\\prime"),GF(WF,qF,sS,"\u25b3","\\triangle"),GF(WF,qF,sS,"\u0393","\\Gamma",!0),GF(WF,qF,sS,"\u0394","\\Delta",!0),GF(WF,qF,sS,"\u0398","\\Theta",!0),GF(WF,qF,sS,"\u039b","\\Lambda",!0),GF(WF,qF,sS,"\u039e","\\Xi",!0),GF(WF,qF,sS,"\u03a0","\\Pi",!0),GF(WF,qF,sS,"\u03a3","\\Sigma",!0),GF(WF,qF,sS,"\u03a5","\\Upsilon",!0),GF(WF,qF,sS,"\u03a6","\\Phi",!0),GF(WF,qF,sS,"\u03a8","\\Psi",!0),GF(WF,qF,sS,"\u03a9","\\Omega",!0),GF(WF,qF,sS,"A","\u0391"),GF(WF,qF,sS,"B","\u0392"),GF(WF,qF,sS,"E","\u0395"),GF(WF,qF,sS,"Z","\u0396"),GF(WF,qF,sS,"H","\u0397"),GF(WF,qF,sS,"I","\u0399"),GF(WF,qF,sS,"K","\u039a"),GF(WF,qF,sS,"M","\u039c"),GF(WF,qF,sS,"N","\u039d"),GF(WF,qF,sS,"O","\u039f"),GF(WF,qF,sS,"P","\u03a1"),GF(WF,qF,sS,"T","\u03a4"),GF(WF,qF,sS,"X","\u03a7"),GF(WF,qF,sS,"\xac","\\neg",!0),GF(WF,qF,sS,"\xac","\\lnot"),GF(WF,qF,sS,"\u22a4","\\top"),GF(WF,qF,sS,"\u22a5","\\bot"),GF(WF,qF,sS,"\u2205","\\emptyset"),GF(WF,XF,sS,"\u2205","\\varnothing"),GF(WF,qF,nS,"\u03b1","\\alpha",!0),GF(WF,qF,nS,"\u03b2","\\beta",!0),GF(WF,qF,nS,"\u03b3","\\gamma",!0),GF(WF,qF,nS,"\u03b4","\\delta",!0),GF(WF,qF,nS,"\u03f5","\\epsilon",!0),GF(WF,qF,nS,"\u03b6","\\zeta",!0),GF(WF,qF,nS,"\u03b7","\\eta",!0),GF(WF,qF,nS,"\u03b8","\\theta",!0),GF(WF,qF,nS,"\u03b9","\\iota",!0),GF(WF,qF,nS,"\u03ba","\\kappa",!0),GF(WF,qF,nS,"\u03bb","\\lambda",!0),GF(WF,qF,nS,"\u03bc","\\mu",!0),GF(WF,qF,nS,"\u03bd","\\nu",!0),GF(WF,qF,nS,"\u03be","\\xi",!0),GF(WF,qF,nS,"\u03bf","\\omicron",!0),GF(WF,qF,nS,"\u03c0","\\pi",!0),GF(WF,qF,nS,"\u03c1","\\rho",!0),GF(WF,qF,nS,"\u03c3","\\sigma",!0),GF(WF,qF,nS,"\u03c4","\\tau",!0),GF(WF,qF,nS,"\u03c5","\\upsilon",!0),GF(WF,qF,nS,"\u03d5","\\phi",!0),GF(WF,qF,nS,"\u03c7","\\chi",!0),GF(WF,qF,nS,"\u03c8","\\psi",!0),GF(WF,qF,nS,"\u03c9","\\omega",!0),GF(WF,qF,nS,"\u03b5","\\varepsilon",!0),GF(WF,qF,nS,"\u03d1","\\vartheta",!0),GF(WF,qF,nS,"\u03d6","\\varpi",!0),GF(WF,qF,nS,"\u03f1","\\varrho",!0),GF(WF,qF,nS,"\u03c2","\\varsigma",!0),GF(WF,qF,nS,"\u03c6","\\varphi",!0),GF(WF,qF,ZF,"\u2217","*",!0),GF(WF,qF,ZF,"+","+"),GF(WF,qF,ZF,"\u2212","-",!0),GF(WF,qF,ZF,"\u22c5","\\cdot",!0),GF(WF,qF,ZF,"\u2218","\\circ",!0),GF(WF,qF,ZF,"\xf7","\\div",!0),GF(WF,qF,ZF,"\xb1","\\pm",!0),GF(WF,qF,ZF,"\xd7","\\times",!0),GF(WF,qF,ZF,"\u2229","\\cap",!0),GF(WF,qF,ZF,"\u222a","\\cup",!0),GF(WF,qF,ZF,"\u2216","\\setminus",!0),GF(WF,qF,ZF,"\u2227","\\land"),GF(WF,qF,ZF,"\u2228","\\lor"),GF(WF,qF,ZF,"\u2227","\\wedge",!0),GF(WF,qF,ZF,"\u2228","\\vee",!0),GF(WF,qF,sS,"\u221a","\\surd"),GF(WF,qF,oS,"\u27e8","\\langle",!0),GF(WF,qF,oS,"\u2223","\\lvert"),GF(WF,qF,oS,"\u2225","\\lVert"),GF(WF,qF,eS,"?","?"),GF(WF,qF,eS,"!","!"),GF(WF,qF,eS,"\u27e9","\\rangle",!0),GF(WF,qF,eS,"\u2223","\\rvert"),GF(WF,qF,eS,"\u2225","\\rVert"),GF(WF,qF,aS,"=","="),GF(WF,qF,aS,":",":"),GF(WF,qF,aS,"\u2248","\\approx",!0),GF(WF,qF,aS,"\u2245","\\cong",!0),GF(WF,qF,aS,"\u2265","\\ge"),GF(WF,qF,aS,"\u2265","\\geq",!0),GF(WF,qF,aS,"\u2190","\\gets"),GF(WF,qF,aS,">","\\gt",!0),GF(WF,qF,aS,"\u2208","\\in",!0),GF(WF,qF,aS,"\ue020","\\@not"),GF(WF,qF,aS,"\u2282","\\subset",!0),GF(WF,qF,aS,"\u2283","\\supset",!0),GF(WF,qF,aS,"\u2286","\\subseteq",!0),GF(WF,qF,aS,"\u2287","\\supseteq",!0),GF(WF,XF,aS,"\u2288","\\nsubseteq",!0),GF(WF,XF,aS,"\u2289","\\nsupseteq",!0),GF(WF,qF,aS,"\u22a8","\\models"),GF(WF,qF,aS,"\u2190","\\leftarrow",!0),GF(WF,qF,aS,"\u2264","\\le"),GF(WF,qF,aS,"\u2264","\\leq",!0),GF(WF,qF,aS,"<","\\lt",!0),GF(WF,qF,aS,"\u2192","\\rightarrow",!0),GF(WF,qF,aS,"\u2192","\\to"),GF(WF,XF,aS,"\u2271","\\ngeq",!0),GF(WF,XF,aS,"\u2270","\\nleq",!0),GF(WF,qF,AS,"\xa0","\\ "),GF(WF,qF,AS,"\xa0","\\space"),GF(WF,qF,AS,"\xa0","\\nobreakspace"),GF(YF,qF,AS,"\xa0","\\ "),GF(YF,qF,AS,"\xa0"," "),GF(YF,qF,AS,"\xa0","\\space"),GF(YF,qF,AS,"\xa0","\\nobreakspace"),GF(WF,qF,AS,null,"\\nobreak"),GF(WF,qF,AS,null,"\\allowbreak"),GF(WF,qF,iS,",",","),GF(WF,qF,iS,";",";"),GF(WF,XF,ZF,"\u22bc","\\barwedge",!0),GF(WF,XF,ZF,"\u22bb","\\veebar",!0),GF(WF,qF,ZF,"\u2299","\\odot",!0),GF(WF,qF,ZF,"\u2295","\\oplus",!0),GF(WF,qF,ZF,"\u2297","\\otimes",!0),GF(WF,qF,sS,"\u2202","\\partial",!0),GF(WF,qF,ZF,"\u2298","\\oslash",!0),GF(WF,XF,ZF,"\u229a","\\circledcirc",!0),GF(WF,XF,ZF,"\u22a1","\\boxdot",!0),GF(WF,qF,ZF,"\u25b3","\\bigtriangleup"),GF(WF,qF,ZF,"\u25bd","\\bigtriangledown"),GF(WF,qF,ZF,"\u2020","\\dagger"),GF(WF,qF,ZF,"\u22c4","\\diamond"),GF(WF,qF,ZF,"\u22c6","\\star"),GF(WF,qF,ZF,"\u25c3","\\triangleleft"),GF(WF,qF,ZF,"\u25b9","\\triangleright"),GF(WF,qF,oS,"{","\\{"),GF(YF,qF,sS,"{","\\{"),GF(YF,qF,sS,"{","\\textbraceleft"),GF(WF,qF,eS,"}","\\}"),GF(YF,qF,sS,"}","\\}"),GF(YF,qF,sS,"}","\\textbraceright"),GF(WF,qF,oS,"{","\\lbrace"),GF(WF,qF,eS,"}","\\rbrace"),GF(WF,qF,oS,"[","\\lbrack",!0),GF(YF,qF,sS,"[","\\lbrack",!0),GF(WF,qF,eS,"]","\\rbrack",!0),GF(YF,qF,sS,"]","\\rbrack",!0),GF(WF,qF,oS,"(","\\lparen",!0),GF(WF,qF,eS,")","\\rparen",!0),GF(YF,qF,sS,"<","\\textless",!0),GF(YF,qF,sS,">","\\textgreater",!0),GF(WF,qF,oS,"\u230a","\\lfloor",!0),GF(WF,qF,eS,"\u230b","\\rfloor",!0),GF(WF,qF,oS,"\u2308","\\lceil",!0),GF(WF,qF,eS,"\u2309","\\rceil",!0),GF(WF,qF,sS,"\\","\\backslash"),GF(WF,qF,sS,"\u2223","|"),GF(WF,qF,sS,"\u2223","\\vert"),GF(YF,qF,sS,"|","\\textbar",!0),GF(WF,qF,sS,"\u2225","\\|"),GF(WF,qF,sS,"\u2225","\\Vert"),GF(YF,qF,sS,"\u2225","\\textbardbl"),GF(YF,qF,sS,"~","\\textasciitilde"),GF(YF,qF,sS,"\\","\\textbackslash"),GF(YF,qF,sS,"^","\\textasciicircum"),GF(WF,qF,aS,"\u2191","\\uparrow",!0),GF(WF,qF,aS,"\u21d1","\\Uparrow",!0),GF(WF,qF,aS,"\u2193","\\downarrow",!0),GF(WF,qF,aS,"\u21d3","\\Downarrow",!0),GF(WF,qF,aS,"\u2195","\\updownarrow",!0),GF(WF,qF,aS,"\u21d5","\\Updownarrow",!0),GF(WF,qF,rS,"\u2210","\\coprod"),GF(WF,qF,rS,"\u22c1","\\bigvee"),GF(WF,qF,rS,"\u22c0","\\bigwedge"),GF(WF,qF,rS,"\u2a04","\\biguplus"),GF(WF,qF,rS,"\u22c2","\\bigcap"),GF(WF,qF,rS,"\u22c3","\\bigcup"),GF(WF,qF,rS,"\u222b","\\int"),GF(WF,qF,rS,"\u222b","\\intop"),GF(WF,qF,rS,"\u222c","\\iint"),GF(WF,qF,rS,"\u222d","\\iiint"),GF(WF,qF,rS,"\u220f","\\prod"),GF(WF,qF,rS,"\u2211","\\sum"),GF(WF,qF,rS,"\u2a02","\\bigotimes"),GF(WF,qF,rS,"\u2a01","\\bigoplus"),GF(WF,qF,rS,"\u2a00","\\bigodot"),GF(WF,qF,rS,"\u222e","\\oint"),GF(WF,qF,rS,"\u222f","\\oiint"),GF(WF,qF,rS,"\u2230","\\oiiint"),GF(WF,qF,rS,"\u2a06","\\bigsqcup"),GF(WF,qF,rS,"\u222b","\\smallint"),GF(YF,qF,tS,"\u2026","\\textellipsis"),GF(WF,qF,tS,"\u2026","\\mathellipsis"),GF(YF,qF,tS,"\u2026","\\ldots",!0),GF(WF,qF,tS,"\u2026","\\ldots",!0),GF(WF,qF,tS,"\u22ef","\\@cdots",!0),GF(WF,qF,tS,"\u22f1","\\ddots",!0),GF(WF,qF,sS,"\u22ee","\\varvdots"),GF(WF,qF,JF,"\u02ca","\\acute"),GF(WF,qF,JF,"\u02cb","\\grave"),GF(WF,qF,JF,"\xa8","\\ddot"),GF(WF,qF,JF,"~","\\tilde"),GF(WF,qF,JF,"\u02c9","\\bar"),GF(WF,qF,JF,"\u02d8","\\breve"),GF(WF,qF,JF,"\u02c7","\\check"),GF(WF,qF,JF,"^","\\hat"),GF(WF,qF,JF,"\u20d7","\\vec"),GF(WF,qF,JF,"\u02d9","\\dot"),GF(WF,qF,JF,"\u02da","\\mathring"),GF(WF,qF,nS,"\ue131","\\@imath"),GF(WF,qF,nS,"\ue237","\\@jmath"),GF(WF,qF,sS,"\u0131","\u0131"),GF(WF,qF,sS,"\u0237","\u0237"),GF(YF,qF,sS,"\u0131","\\i",!0),GF(YF,qF,sS,"\u0237","\\j",!0),GF(YF,qF,sS,"\xdf","\\ss",!0),GF(YF,qF,sS,"\xe6","\\ae",!0),GF(YF,qF,sS,"\u0153","\\oe",!0),GF(YF,qF,sS,"\xf8","\\o",!0),GF(YF,qF,sS,"\xc6","\\AE",!0),GF(YF,qF,sS,"\u0152","\\OE",!0),GF(YF,qF,sS,"\xd8","\\O",!0),GF(YF,qF,JF,"\u02ca","\\'"),GF(YF,qF,JF,"\u02cb","\\`"),GF(YF,qF,JF,"\u02c6","\\^"),GF(YF,qF,JF,"\u02dc","\\~"),GF(YF,qF,JF,"\u02c9","\\="),GF(YF,qF,JF,"\u02d8","\\u"),GF(YF,qF,JF,"\u02d9","\\."),GF(YF,qF,JF,"\xb8","\\c"),GF(YF,qF,JF,"\u02da","\\r"),GF(YF,qF,JF,"\u02c7","\\v"),GF(YF,qF,JF,"\xa8",'\\"'),GF(YF,qF,JF,"\u02dd","\\H"),GF(YF,qF,JF,"\u25ef","\\textcircled");var lS={"--":!0,"---":!0,"``":!0,"''":!0};GF(YF,qF,sS,"\u2013","--",!0),GF(YF,qF,sS,"\u2013","\\textendash"),GF(YF,qF,sS,"\u2014","---",!0),GF(YF,qF,sS,"\u2014","\\textemdash"),GF(YF,qF,sS,"\u2018","`",!0),GF(YF,qF,sS,"\u2018","\\textquoteleft"),GF(YF,qF,sS,"\u2019","'",!0),GF(YF,qF,sS,"\u2019","\\textquoteright"),GF(YF,qF,sS,"\u201c","``",!0),GF(YF,qF,sS,"\u201c","\\textquotedblleft"),GF(YF,qF,sS,"\u201d","''",!0),GF(YF,qF,sS,"\u201d","\\textquotedblright"),GF(WF,qF,sS,"\xb0","\\degree",!0),GF(YF,qF,sS,"\xb0","\\degree"),GF(YF,qF,sS,"\xb0","\\textdegree",!0),GF(WF,qF,sS,"\xa3","\\pounds"),GF(WF,qF,sS,"\xa3","\\mathsterling",!0),GF(YF,qF,sS,"\xa3","\\pounds"),GF(YF,qF,sS,"\xa3","\\textsterling",!0),GF(WF,XF,sS,"\u2720","\\maltese"),GF(YF,XF,sS,"\u2720","\\maltese");for(var cS='0123456789/@."',uS=0;uS<14;uS++){var dS=cS.charAt(uS);GF(WF,qF,sS,dS,dS)}for(var pS='0123456789!@*()-=+";:?/.,',hS=0;hS<25;hS++){var fS=pS.charAt(hS);GF(YF,qF,sS,fS,fS)}for(var mS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",gS=0;gS<52;gS++){var yS=mS.charAt(gS);GF(WF,qF,nS,yS,yS),GF(YF,qF,sS,yS,yS)}GF(WF,XF,sS,"C","\u2102"),GF(YF,XF,sS,"C","\u2102"),GF(WF,XF,sS,"H","\u210d"),GF(YF,XF,sS,"H","\u210d"),GF(WF,XF,sS,"N","\u2115"),GF(YF,XF,sS,"N","\u2115"),GF(WF,XF,sS,"P","\u2119"),GF(YF,XF,sS,"P","\u2119"),GF(WF,XF,sS,"Q","\u211a"),GF(YF,XF,sS,"Q","\u211a"),GF(WF,XF,sS,"R","\u211d"),GF(YF,XF,sS,"R","\u211d"),GF(WF,XF,sS,"Z","\u2124"),GF(YF,XF,sS,"Z","\u2124"),GF(WF,qF,nS,"h","\u210e"),GF(YF,qF,nS,"h","\u210e");for(var vS="",bS=0;bS<52;bS++){var wS=mS.charAt(bS);GF(WF,qF,nS,wS,vS=String.fromCharCode(55349,56320+bS)),GF(YF,qF,sS,wS,vS),GF(WF,qF,nS,wS,vS=String.fromCharCode(55349,56372+bS)),GF(YF,qF,sS,wS,vS),GF(WF,qF,nS,wS,vS=String.fromCharCode(55349,56424+bS)),GF(YF,qF,sS,wS,vS),GF(WF,qF,nS,wS,vS=String.fromCharCode(55349,56580+bS)),GF(YF,qF,sS,wS,vS),GF(WF,qF,nS,wS,vS=String.fromCharCode(55349,56736+bS)),GF(YF,qF,sS,wS,vS),GF(WF,qF,nS,wS,vS=String.fromCharCode(55349,56788+bS)),GF(YF,qF,sS,wS,vS),GF(WF,qF,nS,wS,vS=String.fromCharCode(55349,56840+bS)),GF(YF,qF,sS,wS,vS),GF(WF,qF,nS,wS,vS=String.fromCharCode(55349,56944+bS)),GF(YF,qF,sS,wS,vS),bS<26&&(GF(WF,qF,nS,wS,vS=String.fromCharCode(55349,56632+bS)),GF(YF,qF,sS,wS,vS),GF(WF,qF,nS,wS,vS=String.fromCharCode(55349,56476+bS)),GF(YF,qF,sS,wS,vS))}GF(WF,qF,nS,"k",vS=String.fromCharCode(55349,56668)),GF(YF,qF,sS,"k",vS);for(var BS=0;BS<10;BS++){var CS=BS.toString();GF(WF,qF,nS,CS,vS=String.fromCharCode(55349,57294+BS)),GF(YF,qF,sS,CS,vS),GF(WF,qF,nS,CS,vS=String.fromCharCode(55349,57314+BS)),GF(YF,qF,sS,CS,vS),GF(WF,qF,nS,CS,vS=String.fromCharCode(55349,57324+BS)),GF(YF,qF,sS,CS,vS),GF(WF,qF,nS,CS,vS=String.fromCharCode(55349,57334+BS)),GF(YF,qF,sS,CS,vS)}for(var xS="\xd0\xde\xfe",ES=0;ES<3;ES++){var kS=xS.charAt(ES);GF(WF,qF,nS,kS,kS),GF(YF,qF,sS,kS,kS)}var FS=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],SS=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],QS=function(e,t,n){return $F[n][e]&&$F[n][e].replace&&(e=$F[n][e].replace),{value:e,metrics:bF(e,t,n)}},US=function(e,t,n,r,o){var i,a=QS(e,t,n),A=a.metrics;if(e=a.value,A){var s=A.italic;("text"===n||r&&"mathit"===r.font)&&(s=0),i=new DF(e,A.height,A.depth,s,A.skew,A.width,o)}else i=new DF(e,0,0,0,0,0,o);if(r){i.maxFontSize=r.sizeMultiplier,r.style.isTight()&&i.classes.push("mtight");var l=r.getColor();l&&(i.style.color=l)}return i},OS=(e,t)=>{if(OF(e.classes)!==OF(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},TS=function(e){for(var t=0,n=0,r=0,o=0;o<e.children.length;o++){var i=e.children[o];i.height>t&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>r&&(r=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},MS=function(e,t,n,r){var o=new NF(e,t,n,r);return TS(o),o},IS=(e,t,n,r)=>new NF(e,t,n,r),NS=function(e){var t=new mF(e);return TS(t),t},HS=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},_S={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},PS={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},DS={fontMap:_S,makeSymbol:US,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&QS(e,"Main-Bold",t).metrics?US(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===$F[t][e].font?US(e,"Main-Regular",t,n,r):US(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:MS,makeSvgSpan:IS,makeLineSpan:function(e,t,n){var r=MS([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=UF(r.height),r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){var o=new HF(e,t,n,r);return TS(o),o},makeFragment:NS,wrapFragment:function(e,t){return e instanceof mF?MS([],[e],t):e},makeVList:function(e,t){for(var{children:n,depth:r}=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,o=r,i=1;i<t.length;i++){var a=-t[i].shift-o-t[i].elem.depth,A=a-(t[i-1].elem.height+t[i-1].elem.depth);o+=a,n.push({type:"kern",size:A}),n.push(t[i])}return{children:n,depth:r}}var s;if("top"===e.positionType){for(var l=e.positionData,c=0;c<e.children.length;c++){var u=e.children[c];l-="kern"===u.type?u.size:u.elem.height+u.elem.depth}s=l}else if("bottom"===e.positionType)s=-e.positionData;else{var d=e.children[0];if("elem"!==d.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)s=-d.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");s=-d.elem.depth}}return{children:e.children,depth:s}}(e),o=0,i=0;i<n.length;i++){var a=n[i];if("elem"===a.type){var A=a.elem;o=Math.max(o,A.maxFontSize,A.height)}}o+=2;var s=MS(["pstrut"],[]);s.style.height=UF(o);for(var l=[],c=r,u=r,d=r,p=0;p<n.length;p++){var h=n[p];if("kern"===h.type)d+=h.size;else{var f=h.elem,m=h.wrapperClasses||[],g=h.wrapperStyle||{},y=MS(m,[s,f],void 0,g);y.style.top=UF(-o-d-f.depth),h.marginLeft&&(y.style.marginLeft=h.marginLeft),h.marginRight&&(y.style.marginRight=h.marginRight),l.push(y),d+=f.height+f.depth}c=Math.min(c,d),u=Math.max(u,d)}var v,b=MS(["vlist"],l);if(b.style.height=UF(u),c<0){var w=MS([],[]),B=MS(["vlist"],[w]);B.style.height=UF(-c);var C=MS(["vlist-s"],[new DF("\u200b")]);v=[MS(["vlist-r"],[b,C]),MS(["vlist-r"],[B])]}else v=[MS(["vlist-r"],[b])];var x=MS(["vlist-t"],v);return 2===v.length&&x.classes.push("vlist-t2"),x.height=u,x.depth=-c,x},makeOrd:function(e,t,n){var r=e.mode,o=e.text,i=["mord"],a="math"===r||"text"===r&&t.font,A=a?t.font:t.fontFamily;if(55349===o.charCodeAt(0)){var[s,l]=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,r="math"===t?0:1;if(119808<=n&&n<120484){var o=Math.floor((n-119808)/26);return[FS[o][2],FS[o][r]]}if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return[SS[i][2],SS[i][r]]}if(120485===n||120486===n)return[FS[0][2],FS[0][r]];if(120486<n&&n<120782)return["",""];throw new Gk("Unsupported character: "+e)}(o,r);return US(o,s,r,t,i.concat(l))}if(A){var c,u;if("boldsymbol"===A){var d=function(e,t,n,r,o){return"textord"!==o&&QS(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(o,r,0,0,n);c=d.fontName,u=[d.fontClass]}else a?(c=_S[A].fontName,u=[A]):(c=HS(A,t.fontWeight,t.fontShape),u=[A,t.fontWeight,t.fontShape]);if(QS(o,c,r).metrics)return US(o,c,r,t,i.concat(u));if(lS.hasOwnProperty(o)&&"Typewriter"===c.slice(0,10)){for(var p=[],h=0;h<o.length;h++)p.push(US(o[h],c,r,t,i.concat(u)));return NS(p)}}if("mathord"===n)return US(o,"Math-Italic",r,t,i.concat(["mathnormal"]));if("textord"===n){var f=$F[r][o]&&$F[r][o].font;if("ams"===f){var m=HS("amsrm",t.fontWeight,t.fontShape);return US(o,m,r,t,i.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==f&&f){var g=HS(f,t.fontWeight,t.fontShape);return US(o,g,r,t,i.concat(g,t.fontWeight,t.fontShape))}var y=HS("textrm",t.fontWeight,t.fontShape);return US(o,y,r,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},makeGlue:(e,t)=>{var n=MS(["mspace"],[],t),r=QF(e,t);return n.style.marginRight=UF(r),n},staticSvg:function(e,t){var[n,r,o]=PS[e],i=new RF(n),a=new LF([i],{width:UF(r),height:UF(o),style:"width:"+UF(r),viewBox:"0 0 "+1e3*r+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),A=IS(["overlay"],[a],t);return A.height=o,A.style.height=UF(o),A.style.width=UF(r),A},svgData:PS,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof DF&&r instanceof DF&&OS(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e}},LS={number:3,unit:"mu"},RS={number:4,unit:"mu"},zS={number:5,unit:"mu"},KS={mord:{mop:LS,mbin:RS,mrel:zS,minner:LS},mop:{mord:LS,mop:LS,mrel:zS,minner:LS},mbin:{mord:RS,mop:RS,mopen:RS,minner:RS},mrel:{mord:zS,mop:zS,mopen:zS,minner:zS},mopen:{},mclose:{mop:LS,mbin:RS,mrel:zS,minner:LS},mpunct:{mord:LS,mop:LS,mrel:zS,mopen:LS,mclose:LS,mpunct:LS,minner:LS},minner:{mord:LS,mop:LS,mbin:RS,mrel:zS,mopen:LS,mpunct:LS,minner:LS}},jS={mord:{mop:LS},mop:{mord:LS,mop:LS},mbin:{},mrel:{},mopen:{},mclose:{mop:LS},mpunct:{},minner:{mop:LS}},VS={},$S={},GS={};function WS(e){for(var{type:t,names:n,props:r,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,A={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:o},s=0;s<n.length;++s)VS[n[s]]=A;t&&(i&&($S[t]=i),a&&(GS[t]=a))}function YS(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;WS({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var qS=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},XS=function(e){return"ordgroup"===e.type?e.body:[e]},JS=DS.makeSpan,ZS=["leftmost","mbin","mopen","mrel","mop","mpunct"],eQ=["rightmost","mrel","mclose","mpunct"],tQ={display:cF.DISPLAY,text:cF.TEXT,script:cF.SCRIPT,scriptscript:cF.SCRIPTSCRIPT},nQ={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},rQ=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var o=[],i=0;i<e.length;i++){var a=lQ(e[i],t);if(a instanceof mF){var A=a.children;o.push(...A)}else o.push(a)}if(DS.tryCombineChars(o),!n)return o;var s=t;if(1===e.length){var l=e[0];"sizing"===l.type?s=t.havingSize(l.size):"styling"===l.type&&(s=t.havingStyle(tQ[l.style]))}var c=JS([r[0]||"leftmost"],[],t),u=JS([r[1]||"rightmost"],[],t),d="root"===n;return oQ(o,(e,t)=>{var n=t.classes[0],r=e.classes[0];"mbin"===n&&Jk.contains(eQ,r)?t.classes[0]="mord":"mbin"===r&&Jk.contains(ZS,n)&&(e.classes[0]="mord")},{node:c},u,d),oQ(o,(e,t)=>{var n=AQ(t),r=AQ(e),o=n&&r?e.hasClass("mtight")?jS[n][r]:KS[n][r]:null;if(o)return DS.makeGlue(o,s)},{node:c},u,d),o},oQ=function e(t,n,r,o,i){o&&t.push(o);for(var a=0;a<t.length;a++){var A=t[a],s=iQ(A);if(s)e(s.children,n,r,null,i);else{var l=!A.hasClass("mspace");if(l){var c=n(A,r.node);c&&(r.insertAfter?r.insertAfter(c):(t.unshift(c),a++))}l?r.node=A:i&&A.hasClass("newline")&&(r.node=JS(["leftmost"])),r.insertAfter=(e=>n=>{t.splice(e+1,0,n),a++})(a)}}o&&t.pop()},iQ=function(e){return e instanceof mF||e instanceof HF||e instanceof NF&&e.hasClass("enclosing")?e:null},aQ=function e(t,n){var r=iQ(t);if(r){var o=r.children;if(o.length){if("right"===n)return e(o[o.length-1],"right");if("left"===n)return e(o[0],"left")}}return t},AQ=function(e,t){return e?(t&&(e=aQ(e,t)),nQ[e.classes[0]]||null):null},sQ=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return JS(t.concat(n))},lQ=function(e,t,n){if(!e)return JS();if($S[e.type]){var r=$S[e.type](e,t);if(n&&t.size!==n.size){r=JS(t.sizingClasses(n),[r],t);var o=t.sizeMultiplier/n.sizeMultiplier;r.height*=o,r.depth*=o}return r}throw new Gk("Got group of unknown type: '"+e.type+"'")};function cQ(e,t){var n=JS(["base"],e,t),r=JS(["strut"]);return r.style.height=UF(n.height+n.depth),n.depth&&(r.style.verticalAlign=UF(-n.depth)),n.children.unshift(r),n}function uQ(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var r,o=rQ(e,t,"root");2===o.length&&o[1].hasClass("tag")&&(r=o.pop());for(var i,a=[],A=[],s=0;s<o.length;s++)if(A.push(o[s]),o[s].hasClass("mbin")||o[s].hasClass("mrel")||o[s].hasClass("allowbreak")){for(var l=!1;s<o.length-1&&o[s+1].hasClass("mspace")&&!o[s+1].hasClass("newline");)s++,A.push(o[s]),o[s].hasClass("nobreak")&&(l=!0);l||(a.push(cQ(A,t)),A=[])}else o[s].hasClass("newline")&&(A.pop(),A.length>0&&(a.push(cQ(A,t)),A=[]),a.push(o[s]));A.length>0&&a.push(cQ(A,t)),n?((i=cQ(rQ(n,t,!0))).classes=["tag"],a.push(i)):r&&a.push(r);var c=JS(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),i){var u=i.children[0];u.style.height=UF(c.height+c.depth),c.depth&&(u.style.verticalAlign=UF(-c.depth))}return c}function dQ(e){return new mF(e)}class pQ{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=OF(this.classes));for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=Jk.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+Jk.escape(OF(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class hQ{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Jk.escape(this.toText())}toText(){return this.text}}var fQ={MathNode:pQ,TextNode:hQ,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":e>=-.05556&&e<=-.05555?"\u200a\u2063":e>=-.1667&&e<=-.1666?"\u2009\u2063":e>=-.2223&&e<=-.2222?"\u205f\u2063":e>=-.2778&&e<=-.2777?"\u2005\u2063":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",UF(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+UF(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:dQ},mQ=function(e,t,n){return!$F[t][e]||!$F[t][e].replace||55349===e.charCodeAt(0)||lS.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6))||(e=$F[t][e].replace),new fQ.TextNode(e)},gQ=function(e){return 1===e.length?e[0]:new fQ.MathNode("mrow",e)},yQ=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var o=e.text;return Jk.contains(["\\imath","\\jmath"],o)?null:($F[r][o]&&$F[r][o].replace&&(o=$F[r][o].replace),bF(o,DS.fontMap[n].fontName,r)?DS.fontMap[n].variant:null)},vQ=function(e,t,n){if(1===e.length){var r=wQ(e[0],t);return n&&r instanceof pQ&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o,i=[],a=0;a<e.length;a++){var A=wQ(e[a],t);if(A instanceof pQ&&o instanceof pQ){if("mtext"===A.type&&"mtext"===o.type&&A.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...A.children);continue}if("mn"===A.type&&"mn"===o.type){o.children.push(...A.children);continue}if("mi"===A.type&&1===A.children.length&&"mn"===o.type){var s=A.children[0];if(s instanceof hQ&&"."===s.text){o.children.push(...A.children);continue}}else if("mi"===o.type&&1===o.children.length){var l=o.children[0];if(l instanceof hQ&&"\u0338"===l.text&&("mo"===A.type||"mi"===A.type||"mn"===A.type)){var c=A.children[0];c instanceof hQ&&c.text.length>0&&(c.text=c.text.slice(0,1)+"\u0338"+c.text.slice(1),i.pop())}}}i.push(A),o=A}return i},bQ=function(e,t,n){return gQ(vQ(e,t,n))},wQ=function(e,t){if(!e)return new fQ.MathNode("mrow");if(GS[e.type])return GS[e.type](e,t);throw new Gk("Got group of unknown type: '"+e.type+"'")};function BQ(e,t,n,r,o){var i,a=vQ(e,n);i=1===a.length&&a[0]instanceof pQ&&Jk.contains(["mrow","mtable"],a[0].type)?a[0]:new fQ.MathNode("mrow",a);var A=new fQ.MathNode("annotation",[new fQ.TextNode(t)]);A.setAttribute("encoding","application/x-tex");var s=new fQ.MathNode("semantics",[i,A]),l=new fQ.MathNode("math",[s]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=o?"katex":"katex-mathml";return DS.makeSpan([c],[l])}var CQ=function(e){return new EF({style:e.displayMode?cF.DISPLAY:cF.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},xQ=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=DS.makeSpan(n,[e])}return e},EQ={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},kQ={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},FQ=function(e,t,n,r,o){var i,a=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(i=DS.makeSpan(["stretchy",t],[],o),"fbox"===t){var A=o.color&&o.getColor();A&&(i.style.borderColor=A)}}else{var s=[];/^[bx]cancel$/.test(t)&&s.push(new zF({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&s.push(new zF({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new LF(s,{width:"100%",height:UF(a)});i=DS.makeSvgSpan([],[l],o)}return i.height=a,i.style.height=UF(a),i},SQ=function(e){var t=new fQ.MathNode("mo",[new fQ.TextNode(EQ[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},QQ=function(e,t){var{span:n,minWidth:r,height:o}=function(){var n=4e5,r=e.label.slice(1);if(Jk.contains(["widehat","widecheck","widetilde","utilde"],r)){var o,i,a,A="ordgroup"===(p=e.base).type?p.body.length:1;if(A>5)"widehat"===r||"widecheck"===r?(o=420,n=2364,a=.42,i=r+"4"):(o=312,n=2340,a=.34,i="tilde4");else{var s=[1,1,2,2,3,3][A];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][s],o=[0,239,300,360,420][s],a=[0,.24,.3,.3,.36,.42][s],i=r+s):(n=[0,600,1033,2339,2340][s],o=[0,260,286,306,312][s],a=[0,.26,.286,.3,.306,.34][s],i="tilde"+s)}var l=new RF(i),c=new LF([l],{width:"100%",height:UF(a),viewBox:"0 0 "+n+" "+o,preserveAspectRatio:"none"});return{span:DS.makeSvgSpan([],[c],t),minWidth:0,height:a}}var u,d,p,h=[],f=kQ[r],[m,g,y]=f,v=y/1e3,b=m.length;if(1===b)u=["hide-tail"],d=[f[3]];else if(2===b)u=["halfarrow-left","halfarrow-right"],d=["xMinYMin","xMaxYMin"];else{if(3!==b)throw new Error("Correct katexImagesData or update code here to support\n                    "+b+" children.");u=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(var w=0;w<b;w++){var B=new RF(m[w]),C=new LF([B],{width:"400em",height:UF(v),viewBox:"0 0 "+n+" "+y,preserveAspectRatio:d[w]+" slice"}),x=DS.makeSvgSpan([u[w]],[C],t);if(1===b)return{span:x,minWidth:g,height:v};x.style.height=UF(v),h.push(x)}return{span:DS.makeSpan(["stretchy"],h,t),minWidth:g,height:v}}();return n.height=o,n.style.height=UF(o),r>0&&(n.style.minWidth=UF(r)),n};function UQ(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function OQ(e){var t=TQ(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function TQ(e){return e&&("atom"===e.type||VF.hasOwnProperty(e.type))?e:null}var MQ=(e,t)=>{var n,r,o;e&&"supsub"===e.type?(n=(r=UQ(e.base,"accent")).base,e.base=n,o=function(e){if(e instanceof NF)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(lQ(e,t)),e.base=r):n=(r=UQ(e,"accent")).base;var i=lQ(n,t.havingCrampedStyle()),a=0;if(r.isShifty&&Jk.isCharacterBox(n)){var A=Jk.getBaseElem(n);a=KF(lQ(A,t.havingCrampedStyle())).skew}var s,l="\\c"===r.label,c=l?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(r.isStretchy)s=QQ(r,t),s=DS.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:s,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+UF(2*a)+")",marginLeft:UF(2*a)}:void 0}]},t);else{var u,d;"\\vec"===r.label?(u=DS.staticSvg("vec",t),d=DS.svgData.vec[1]):((u=KF(u=DS.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,d=u.width,l&&(c+=u.depth)),s=DS.makeSpan(["accent-body"],[u]);var p="\\textcircled"===r.label;p&&(s.classes.push("accent-full"),c=i.height);var h=a;p||(h-=d/2),s.style.left=UF(h),"\\textcircled"===r.label&&(s.style.top=".2em"),s=DS.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:s}]},t)}var f=DS.makeSpan(["mord","accent"],[s],t);return o?(o.children[0]=f,o.height=Math.max(f.height,o.height),o.classes[0]="mord",o):f},IQ=(e,t)=>{var n=e.isStretchy?SQ(e.label):new fQ.MathNode("mo",[mQ(e.label,e.mode)]),r=new fQ.MathNode("mover",[wQ(e.base,t),n]);return r.setAttribute("accent","true"),r},NQ=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));WS({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=qS(t[0]),r=!NQ.test(e.funcName),o=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:MQ,mathmlBuilder:IQ}),WS({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:MQ,mathmlBuilder:IQ}),WS({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:(e,t)=>{var n=lQ(e.base,t),r=QQ(e,t),o="\\utilde"===e.label?.12:0,i=DS.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return DS.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var n=SQ(e.label),r=new fQ.MathNode("munder",[wQ(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var HQ=e=>{var t=new fQ.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};WS({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:o}=e;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder(e,t){var n,r=t.style,o=t.havingStyle(r.sup()),i=DS.wrapFragment(lQ(e.body,o,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(a+"-arrow-pad"),e.below&&(o=t.havingStyle(r.sub()),(n=DS.wrapFragment(lQ(e.below,o,t),t)).classes.push(a+"-arrow-pad"));var A,s=QQ(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(c-=i.depth),n){var u=-t.fontMetrics().axisHeight+n.height+.5*s.height+.111;A=DS.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:n,shift:u}]},t)}else A=DS.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l}]},t);return A.children[0].children[0].children[1].classes.push("svg-align"),DS.makeSpan(["mrel","x-arrow"],[A],t)},mathmlBuilder(e,t){var n,r=SQ(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var o=HQ(wQ(e.body,t));if(e.below){var i=HQ(wQ(e.below,t));n=new fQ.MathNode("munderover",[r,i,o])}else n=new fQ.MathNode("mover",[r,o])}else if(e.below){var a=HQ(wQ(e.below,t));n=new fQ.MathNode("munder",[r,a])}else n=HQ(),n=new fQ.MathNode("mover",[r,n]);return n}});var _Q=DS.makeSpan;function PQ(e,t){var n=rQ(e.body,t,!0);return _Q([e.mclass],n,t)}function DQ(e,t){var n,r=vQ(e.body,t);return"minner"===e.mclass?n=new fQ.MathNode("mpadded",r):"mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new fQ.MathNode("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new fQ.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}WS({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:XS(o),isCharacterBox:Jk.isCharacterBox(o)}},htmlBuilder:PQ,mathmlBuilder:DQ});var LQ=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};WS({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:LQ(t[0]),body:XS(t[1]),isCharacterBox:Jk.isCharacterBox(t[1])}}}),WS({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var n,{parser:r,funcName:o}=e,i=t[1],a=t[0];n="\\stackrel"!==o?LQ(i):"mrel";var A={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:XS(i)},s={type:"supsub",mode:a.mode,base:A,sup:"\\underset"===o?null:a,sub:"\\underset"===o?a:null};return{type:"mclass",mode:r.mode,mclass:n,body:[s],isCharacterBox:Jk.isCharacterBox(s)}},htmlBuilder:PQ,mathmlBuilder:DQ}),WS({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:LQ(t[0]),body:XS(t[0])}},htmlBuilder(e,t){var n=rQ(e.body,t,!0),r=DS.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=vQ(e.body,t),r=new fQ.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var RQ={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},zQ=()=>({type:"styling",body:[],mode:"math",style:"display"}),KQ=e=>"textord"===e.type&&"@"===e.text,jQ=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function VQ(e,t,n){var r=RQ[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var o={type:"atom",text:r,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[n.callFunction("\\\\cdleft",[t[0]],[]),n.callFunction("\\Big",[o],[]),n.callFunction("\\\\cdright",[t[1]],[])]};return n.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}WS({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=DS.wrapFragment(lQ(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=UF(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new fQ.MathNode("mrow",[wQ(e.label,t)]);return(n=new fQ.MathNode("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new fQ.MathNode("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),WS({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=DS.wrapFragment(lQ(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(e,t)=>new fQ.MathNode("mrow",[wQ(e.fragment,t)])}),WS({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=UQ(t[0],"ordgroup").body,o="",i=0;i<r.length;i++){o+=UQ(r[i],"textord").text}var a,A=parseInt(o);if(isNaN(A))throw new Gk("\\@char has non-numeric argument "+o);if(A<0||A>=1114111)throw new Gk("\\@char with invalid code point "+o);return A<=65535?a=String.fromCharCode(A):(A-=65536,a=String.fromCharCode(55296+(A>>10),56320+(1023&A))),{type:"textord",mode:n.mode,text:a}}});var $Q=(e,t)=>{var n=rQ(e.body,t.withColor(e.color),!1);return DS.makeFragment(n)},GQ=(e,t)=>{var n=vQ(e.body,t.withColor(e.color)),r=new fQ.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};WS({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=UQ(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:r,body:XS(o)}},htmlBuilder:$Q,mathmlBuilder:GQ}),WS({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,o=UQ(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:o,body:i}},htmlBuilder:$Q,mathmlBuilder:GQ}),WS({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,o="["===r.gullet.future().text?r.parseSizeGroup(!0):null,i=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:i,size:o&&UQ(o,"size").value}},htmlBuilder(e,t){var n=DS.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=UF(QF(e.size,t)))),n},mathmlBuilder(e,t){var n=new fQ.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",UF(QF(e.size,t)))),n}});var WQ={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},YQ=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Gk("Expected a control sequence",e);return t},qQ=(e,t,n,r)=>{var o=e.gullet.macros.get(n.text);null==o&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,o,r)};WS({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(WQ[r.text])return"\\global"!==n&&"\\\\globallong"!==n||(r.text=WQ[r.text]),UQ(t.parseFunction(),"internal");throw new Gk("Invalid token after macro prefix",r)}}),WS({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),o=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new Gk("Expected a control sequence",r);for(var i,a=0,A=[[]];"{"!==t.gullet.future().text;)if("#"===(r=t.gullet.popToken()).text){if("{"===t.gullet.future().text){i=t.gullet.future(),A[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Gk('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Gk('Argument number "'+r.text+'" out of order');a++,A.push([])}else{if("EOF"===r.text)throw new Gk("Expected a macro definition");A[a].push(r.text)}var{tokens:s}=t.gullet.consumeArg();return i&&s.unshift(i),"\\edef"!==n&&"\\xdef"!==n||(s=t.gullet.expandTokens(s)).reverse(),t.gullet.macros.set(o,{tokens:s,numArgs:a,delimiters:A},n===WQ[n]),{type:"internal",mode:t.mode}}}),WS({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=YQ(t.gullet.popToken());t.gullet.consumeSpaces();var o=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return qQ(t,r,o,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),WS({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=YQ(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return qQ(t,r,i,"\\\\globalfuture"===n),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var XQ=function(e,t,n){var r=bF($F.math[e]&&$F.math[e].replace||e,t,n);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r},JQ=function(e,t,n,r){var o=n.havingBaseStyle(t),i=DS.makeSpan(r.concat(o.sizingClasses(n)),[e],n),a=o.sizeMultiplier/n.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=o.sizeMultiplier,i},ZQ=function(e,t,n){var r=t.havingBaseStyle(n),o=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=UF(o),e.height-=o,e.depth+=o},eU=function(e,t,n,r,o,i){var a=function(e,t,n,r){return DS.makeSymbol(e,"Size"+t+"-Regular",n,r)}(e,t,o,r),A=JQ(DS.makeSpan(["delimsizing","size"+t],[a],r),cF.TEXT,r,i);return n&&ZQ(A,r,cF.TEXT),A},tU=function(e,t,n){var r;return r="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:DS.makeSpan(["delimsizinginner",r],[DS.makeSpan([],[DS.makeSymbol(e,t,n)])])}},nU=function(e,t,n){var r=gF["Size4-Regular"][e.charCodeAt(0)]?gF["Size4-Regular"][e.charCodeAt(0)][4]:gF["Size1-Regular"][e.charCodeAt(0)][4],o=new RF("inner",function(e,t){switch(e){case"\u239c":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"\u239f":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23a2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23a5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23aa":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23d0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new LF([o],{width:UF(r),height:UF(t),style:"width:"+UF(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=DS.makeSvgSpan([],[i],n);return a.height=t,a.style.height=UF(t),a.style.width=UF(r),{type:"elem",elem:a}},rU={type:"kern",size:-.008},oU=["|","\\lvert","\\rvert","\\vert"],iU=["\\|","\\lVert","\\rVert","\\Vert"],aU=function(e,t,n,r,o,i){var a,A,s,l,c="",u=0;a=s=l=e,A=null;var d="Size1-Regular";"\\uparrow"===e?s=l="\u23d0":"\\Uparrow"===e?s=l="\u2016":"\\downarrow"===e?a=s="\u23d0":"\\Downarrow"===e?a=s="\u2016":"\\updownarrow"===e?(a="\\uparrow",s="\u23d0",l="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",s="\u2016",l="\\Downarrow"):Jk.contains(oU,e)?(s="\u2223",c="vert",u=333):Jk.contains(iU,e)?(s="\u2225",c="doublevert",u=556):"["===e||"\\lbrack"===e?(a="\u23a1",s="\u23a2",l="\u23a3",d="Size4-Regular",c="lbrack",u=667):"]"===e||"\\rbrack"===e?(a="\u23a4",s="\u23a5",l="\u23a6",d="Size4-Regular",c="rbrack",u=667):"\\lfloor"===e||"\u230a"===e?(s=a="\u23a2",l="\u23a3",d="Size4-Regular",c="lfloor",u=667):"\\lceil"===e||"\u2308"===e?(a="\u23a1",s=l="\u23a2",d="Size4-Regular",c="lceil",u=667):"\\rfloor"===e||"\u230b"===e?(s=a="\u23a5",l="\u23a6",d="Size4-Regular",c="rfloor",u=667):"\\rceil"===e||"\u2309"===e?(a="\u23a4",s=l="\u23a5",d="Size4-Regular",c="rceil",u=667):"("===e||"\\lparen"===e?(a="\u239b",s="\u239c",l="\u239d",d="Size4-Regular",c="lparen",u=875):")"===e||"\\rparen"===e?(a="\u239e",s="\u239f",l="\u23a0",d="Size4-Regular",c="rparen",u=875):"\\{"===e||"\\lbrace"===e?(a="\u23a7",A="\u23a8",l="\u23a9",s="\u23aa",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="\u23ab",A="\u23ac",l="\u23ad",s="\u23aa",d="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(a="\u23a7",l="\u23a9",s="\u23aa",d="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(a="\u23ab",l="\u23ad",s="\u23aa",d="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(a="\u23a7",l="\u23ad",s="\u23aa",d="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(a="\u23ab",l="\u23a9",s="\u23aa",d="Size4-Regular");var p=XQ(a,d,o),h=p.height+p.depth,f=XQ(s,d,o),m=f.height+f.depth,g=XQ(l,d,o),y=g.height+g.depth,v=0,b=1;if(null!==A){var w=XQ(A,d,o);v=w.height+w.depth,b=2}var B=h+y+v,C=B+Math.max(0,Math.ceil((t-B)/(b*m)))*b*m,x=r.fontMetrics().axisHeight;n&&(x*=r.sizeMultiplier);var E=C/2-x,k=[];if(c.length>0){var F=C-h-y,S=Math.round(1e3*C),Q=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(c,Math.round(1e3*F)),U=new RF(c,Q),O=(u/1e3).toFixed(3)+"em",T=(S/1e3).toFixed(3)+"em",M=new LF([U],{width:O,height:T,viewBox:"0 0 "+u+" "+S}),I=DS.makeSvgSpan([],[M],r);I.height=S/1e3,I.style.width=O,I.style.height=T,k.push({type:"elem",elem:I})}else{if(k.push(tU(l,d,o)),k.push(rU),null===A){var N=C-h-y+.016;k.push(nU(s,N,r))}else{var H=(C-h-y-v)/2+.016;k.push(nU(s,H,r)),k.push(rU),k.push(tU(A,d,o)),k.push(rU),k.push(nU(s,H,r))}k.push(rU),k.push(tU(a,d,o))}var _=r.havingBaseStyle(cF.TEXT),P=DS.makeVList({positionType:"bottom",positionData:E,children:k},_);return JQ(DS.makeSpan(["delimsizing","mult"],[P],_),cF.TEXT,r,i)},AU=.08,sU=function(e,t,n,r,o){var i=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,hF);break;case"sqrtSize1":r=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,hF);break;case"sqrtSize2":r=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,hF);break;case"sqrtSize3":r=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,hF);break;case"sqrtSize4":r=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,hF);break;case"sqrtTall":r=function(e,t,n){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(n-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,hF,n)}return r}(e,r,n),a=new RF(e,i),A=new LF([a],{width:"400em",height:UF(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return DS.makeSvgSpan(["hide-tail"],[A],o)},lU=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"],cU=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"],uU=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],dU=[0,1.2,1.8,2.4,3],pU=[{type:"small",style:cF.SCRIPTSCRIPT},{type:"small",style:cF.SCRIPT},{type:"small",style:cF.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],hU=[{type:"small",style:cF.SCRIPTSCRIPT},{type:"small",style:cF.SCRIPT},{type:"small",style:cF.TEXT},{type:"stack"}],fU=[{type:"small",style:cF.SCRIPTSCRIPT},{type:"small",style:cF.SCRIPT},{type:"small",style:cF.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],mU=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},gU=function(e,t,n,r){for(var o=Math.min(2,3-r.style.size);o<n.length&&"stack"!==n[o].type;o++){var i=XQ(e,mU(n[o]),"math"),a=i.height+i.depth;if("small"===n[o].type&&(a*=r.havingBaseStyle(n[o].style).sizeMultiplier),a>t)return n[o]}return n[n.length-1]},yU=function(e,t,n,r,o,i){var a;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),a=Jk.contains(uU,e)?pU:Jk.contains(lU,e)?fU:hU;var A=gU(e,t,a,r);return"small"===A.type?function(e,t,n,r,o,i){var a=DS.makeSymbol(e,"Main-Regular",o,r),A=JQ(a,t,r,i);return n&&ZQ(A,r,t),A}(e,A.style,n,r,o,i):"large"===A.type?eU(e,A.size,n,r,o,i):aU(e,t,n,r,o,i)},vU={sqrtImage:function(e,t){var n,r,o=t.havingBaseSizing(),i=gU("\\surd",e*o.sizeMultiplier,fU,o),a=o.sizeMultiplier,A=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),s=0,l=0,c=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),l=(1+A)/a,(n=sU("sqrtMain",s=(1+A+AU)/a,c=1e3+1e3*A+80,A,t)).style.minWidth="0.853em",r=.833/a):"large"===i.type?(c=1080*dU[i.size],l=(dU[i.size]+A)/a,s=(dU[i.size]+A+AU)/a,(n=sU("sqrtSize"+i.size,s,c,A,t)).style.minWidth="1.02em",r=1/a):(s=e+A+AU,l=e+A,c=Math.floor(1e3*e+A)+80,(n=sU("sqrtTall",s,c,A,t)).style.minWidth="0.742em",r=1.056),n.height=l,n.style.height=UF(s),{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+A)*a}},sizedDelim:function(e,t,n,r,o){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),Jk.contains(lU,e)||Jk.contains(uU,e))return eU(e,t,!1,n,r,o);if(Jk.contains(cU,e))return aU(e,dU[t],!1,n,r,o);throw new Gk("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:dU,customSizedDelim:yU,leftRightDelim:function(e,t,n,r,o,i){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,A=5/r.fontMetrics().ptPerEm,s=Math.max(t-a,n+a),l=Math.max(s/500*901,2*s-A);return yU(e,l,!0,r,o,i)}},bU={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},wU=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function BU(e,t){var n=TQ(e);if(n&&Jk.contains(wU,n.text))return n;throw new Gk(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function CU(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}WS({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=BU(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:bU[e.funcName].size,mclass:bU[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?DS.makeSpan([e.mclass]):vU.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(mQ(e.delim,e.mode));var n=new fQ.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=UF(vU.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}}),WS({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new Gk("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:BU(t[0],e).text,color:n}}}),WS({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=BU(t[0],e),r=e.parser;++r.leftrightDepth;var o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=UQ(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{CU(e);for(var n,r,o=rQ(e.body,t,!0,["mopen","mclose"]),i=0,a=0,A=!1,s=0;s<o.length;s++)o[s].isMiddle?A=!0:(i=Math.max(o[s].height,i),a=Math.max(o[s].depth,a));if(i*=t.sizeMultiplier,a*=t.sizeMultiplier,n="."===e.left?sQ(t,["mopen"]):vU.leftRightDelim(e.left,i,a,t,e.mode,["mopen"]),o.unshift(n),A)for(var l=1;l<o.length;l++){var c=o[l].isMiddle;c&&(o[l]=vU.leftRightDelim(c.delim,i,a,c.options,e.mode,[]))}if("."===e.right)r=sQ(t,["mclose"]);else{var u=e.rightColor?t.withColor(e.rightColor):t;r=vU.leftRightDelim(e.right,i,a,u,e.mode,["mclose"])}return o.push(r),DS.makeSpan(["minner"],o,t)},mathmlBuilder:(e,t)=>{CU(e);var n=vQ(e.body,t);if("."!==e.left){var r=new fQ.MathNode("mo",[mQ(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var o=new fQ.MathNode("mo",[mQ(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return gQ(n)}}),WS({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=BU(t[0],e);if(!e.parser.leftrightDepth)throw new Gk("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if("."===e.delim)n=sQ(t,[]);else{n=vU.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n="\\vert"===e.delim||"|"===e.delim?mQ("|","text"):mQ(e.delim,e.mode),r=new fQ.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var xU=(e,t)=>{var n,r,o,i=DS.wrapFragment(lQ(e.body,t),t),a=e.label.slice(1),A=t.sizeMultiplier,s=0,l=Jk.isCharacterBox(e.body);if("sout"===a)(n=DS.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/A,s=-.5*t.fontMetrics().xHeight;else if("phase"===a){var c=QF({number:.6,unit:"pt"},t),u=QF({number:.35,unit:"ex"},t);A/=t.havingBaseSizing().sizeMultiplier;var d=i.height+i.depth+c+u;i.style.paddingLeft=UF(d/2+c);var p=Math.floor(1e3*d*A),h="M400000 "+(r=p)+" H0 L"+r/2+" 0 l65 45 L145 "+(r-80)+" H400000z",f=new LF([new RF("phase",h)],{width:"400em",height:UF(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});(n=DS.makeSvgSpan(["hide-tail"],[f],t)).style.height=UF(d),s=i.depth+c+u}else{/cancel/.test(a)?l||i.classes.push("cancel-pad"):"angl"===a?i.classes.push("anglpad"):i.classes.push("boxpad");var m=0,g=0,y=0;/box/.test(a)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=m=t.fontMetrics().fboxsep+("colorbox"===a?0:y)):"angl"===a?(m=4*(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),g=Math.max(0,.25-i.depth)):g=m=l?.2:0,n=FQ(i,a,m,g,t),/fbox|boxed|fcolorbox/.test(a)?(n.style.borderStyle="solid",n.style.borderWidth=UF(y)):"angl"===a&&.049!==y&&(n.style.borderTopWidth=UF(y),n.style.borderRightWidth=UF(y)),s=i.depth+g,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}if(e.backgroundColor)o=DS.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:i,shift:0}]},t);else{var v=/cancel|phase/.test(a)?["svg-align"]:[];o=DS.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:v}]},t)}return/cancel/.test(a)&&(o.height=i.height,o.depth=i.depth),/cancel/.test(a)&&!l?DS.makeSpan(["mord","cancel-lap"],[o],t):DS.makeSpan(["mord"],[o],t)},EU=(e,t)=>{var n=0,r=new fQ.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[wQ(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};WS({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:o}=e,i=UQ(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:xU,mathmlBuilder:EU}),WS({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:o}=e,i=UQ(t[0],"color-token").color,a=UQ(t[1],"color-token").color,A=t[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,borderColor:i,body:A}},htmlBuilder:xU,mathmlBuilder:EU}),WS({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),WS({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"enclose",mode:n.mode,label:r,body:o}},htmlBuilder:xU,mathmlBuilder:EU}),WS({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var kU={};function FU(e){for(var{type:t,names:n,props:r,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,A={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},s=0;s<n.length;++s)kU[n[s]]=A;i&&($S[t]=i),a&&(GS[t]=a)}var SU={};function QU(e,t){SU[e]=t}function UU(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for("\\relax"===n&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var OU=e=>{if(!e.parser.settings.displayMode)throw new Gk("{"+e.envName+"} can be used only in display mode.")};function TU(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function MU(e,t,n){var{hskipBeforeAndAfter:r,addJot:o,cols:i,arraystretch:a,colSeparationType:A,autoTag:s,singleRow:l,emptySingleRow:c,maxNumCols:u,leqno:d}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var p=e.gullet.expandMacroAsText("\\arraystretch");if(null==p)a=1;else if(!(a=parseFloat(p))||a<0)throw new Gk("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var h=[],f=[h],m=[],g=[],y=null!=s?[]:void 0;function v(){s&&e.gullet.macros.set("\\@eqnsw","1",!0)}function b(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new $k("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(Boolean(s)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(v(),g.push(UU(e));;){var w=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),w={type:"ordgroup",mode:e.mode,body:w},n&&(w={type:"styling",mode:e.mode,style:n,body:[w]}),h.push(w);var B=e.fetch().text;if("&"===B){if(u&&h.length===u){if(l||A)throw new Gk("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===B){b(),1===h.length&&"styling"===w.type&&0===w.body[0].body.length&&(f.length>1||!c)&&f.pop(),g.length<f.length+1&&g.push([]);break}if("\\\\"!==B)throw new Gk("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var C=void 0;" "!==e.gullet.future().text&&(C=e.parseSizeGroup(!0)),m.push(C?C.value:null),b(),g.push(UU(e)),h=[],f.push(h),v()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:a,body:f,cols:i,rowGaps:m,hskipBeforeAndAfter:r,hLinesBeforeRow:g,colSeparationType:A,tags:y,leqno:d}}function IU(e){return"d"===e.slice(0,1)?"display":"text"}var NU=function(e,t){var n,r,o=e.body.length,i=e.hLinesBeforeRow,a=0,A=new Array(o),s=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),c=1/t.fontMetrics().ptPerEm,u=5*c;e.colSeparationType&&"small"===e.colSeparationType&&(u=t.havingStyle(cF.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var d="CD"===e.colSeparationType?QF({number:3,unit:"ex"},t):12*c,p=3*c,h=e.arraystretch*d,f=.7*h,m=.3*h,g=0;function y(e){for(var t=0;t<e.length;++t)t>0&&(g+=.25),s.push({pos:g,isDashed:e[t]})}for(y(i[0]),n=0;n<e.body.length;++n){var v=e.body[n],b=f,w=m;a<v.length&&(a=v.length);var B=new Array(v.length);for(r=0;r<v.length;++r){var C=lQ(v[r],t);w<C.depth&&(w=C.depth),b<C.height&&(b=C.height),B[r]=C}var x=e.rowGaps[n],E=0;x&&(E=QF(x,t))>0&&(w<(E+=m)&&(w=E),E=0),e.addJot&&(w+=p),B.height=b,B.depth=w,g+=b,B.pos=g,g+=w+E,A[n]=B,y(i[n+1])}var k,F,S=g/2+t.fontMetrics().axisHeight,Q=e.cols||[],U=[],O=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<o;++n){var T=A[n],M=T.pos-S,I=e.tags[n],N=void 0;(N=!0===I?DS.makeSpan(["eqn-num"],[],t):!1===I?DS.makeSpan([],[],t):DS.makeSpan([],rQ(I,t,!0),t)).depth=T.depth,N.height=T.height,O.push({type:"elem",elem:N,shift:M})}for(r=0,F=0;r<a||F<Q.length;++r,++F){for(var H=Q[F]||{},_=!0;"separator"===H.type;){if(_||((k=DS.makeSpan(["arraycolsep"],[])).style.width=UF(t.fontMetrics().doubleRuleSep),U.push(k)),"|"!==H.separator&&":"!==H.separator)throw new Gk("Invalid separator type: "+H.separator);var P="|"===H.separator?"solid":"dashed",D=DS.makeSpan(["vertical-separator"],[],t);D.style.height=UF(g),D.style.borderRightWidth=UF(l),D.style.borderRightStyle=P,D.style.margin="0 "+UF(-l/2);var L=g-S;L&&(D.style.verticalAlign=UF(-L)),U.push(D),H=Q[++F]||{},_=!1}if(!(r>=a)){var R=void 0;(r>0||e.hskipBeforeAndAfter)&&0!==(R=Jk.deflt(H.pregap,u))&&((k=DS.makeSpan(["arraycolsep"],[])).style.width=UF(R),U.push(k));var z=[];for(n=0;n<o;++n){var K=A[n],j=K[r];if(j){var V=K.pos-S;j.depth=K.depth,j.height=K.height,z.push({type:"elem",elem:j,shift:V})}}z=DS.makeVList({positionType:"individualShift",children:z},t),z=DS.makeSpan(["col-align-"+(H.align||"c")],[z]),U.push(z),(r<a-1||e.hskipBeforeAndAfter)&&0!==(R=Jk.deflt(H.postgap,u))&&((k=DS.makeSpan(["arraycolsep"],[])).style.width=UF(R),U.push(k))}}if(A=DS.makeSpan(["mtable"],U),s.length>0){for(var $=DS.makeLineSpan("hline",t,l),G=DS.makeLineSpan("hdashline",t,l),W=[{type:"elem",elem:A,shift:0}];s.length>0;){var Y=s.pop(),q=Y.pos-S;Y.isDashed?W.push({type:"elem",elem:G,shift:q}):W.push({type:"elem",elem:$,shift:q})}A=DS.makeVList({positionType:"individualShift",children:W},t)}if(0===O.length)return DS.makeSpan(["mord"],[A],t);var X=DS.makeVList({positionType:"individualShift",children:O},t);return X=DS.makeSpan(["tag"],[X],t),DS.makeFragment([A,X])},HU={c:"center ",l:"left ",r:"right "},_U=function(e,t){for(var n=[],r=new fQ.MathNode("mtd",[],["mtr-glue"]),o=new fQ.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var a=e.body[i],A=[],s=0;s<a.length;s++)A.push(new fQ.MathNode("mtd",[wQ(a[s],t)]));e.tags&&e.tags[i]&&(A.unshift(r),A.push(r),e.leqno?A.unshift(o):A.push(o)),n.push(new fQ.MathNode("mtr",A))}var l=new fQ.MathNode("mtable",n),c=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute("rowspacing",UF(c));var u="",d="";if(e.cols&&e.cols.length>0){var p=e.cols,h="",f=!1,m=0,g=p.length;"separator"===p[0].type&&(u+="top ",m=1),"separator"===p[p.length-1].type&&(u+="bottom ",g-=1);for(var y=m;y<g;y++)"align"===p[y].type?(d+=HU[p[y].align],f&&(h+="none "),f=!0):"separator"===p[y].type&&f&&(h+="|"===p[y].separator?"solid ":"dashed ",f=!1);l.setAttribute("columnalign",d.trim()),/[sd]/.test(h)&&l.setAttribute("columnlines",h.trim())}if("align"===e.colSeparationType){for(var v=e.cols||[],b="",w=1;w<v.length;w++)b+=w%2?"0em ":"1em ";l.setAttribute("columnspacing",b.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?l.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?l.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?l.setAttribute("columnspacing","0.5em"):l.setAttribute("columnspacing","1em");var B="",C=e.hLinesBeforeRow;u+=C[0].length>0?"left ":"",u+=C[C.length-1].length>0?"right ":"";for(var x=1;x<C.length-1;x++)B+=0===C[x].length?"none ":C[x][0]?"dashed ":"solid ";return/[sd]/.test(B)&&l.setAttribute("rowlines",B.trim()),""!==u&&(l=new fQ.MathNode("menclose",[l])).setAttribute("notation",u.trim()),e.arraystretch&&e.arraystretch<1&&(l=new fQ.MathNode("mstyle",[l])).setAttribute("scriptlevel","1"),l},PU=function(e,t){-1===e.envName.indexOf("ed")&&OU(e);var n,r=[],o=e.envName.indexOf("at")>-1?"alignat":"align",i="split"===e.envName,a=MU(e.parser,{cols:r,addJot:!0,autoTag:i?void 0:TU(e.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),A=0,s={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var l="",c=0;c<t[0].body.length;c++){l+=UQ(t[0].body[c],"textord").text}n=Number(l),A=2*n}var u=!A;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var r=UQ(e[t],"styling");UQ(r.body[0],"ordgroup").body.unshift(s)}if(u)A<e.length&&(A=e.length);else{var o=e.length/2;if(n<o)throw new Gk("Too many math in a row: expected "+n+", but got "+o,e[0])}});for(var d=0;d<A;++d){var p="r",h=0;d%2==1?p="l":d>0&&u&&(h=1),r[d]={type:"align",align:p,pregap:h,postgap:0}}return a.colSeparationType=u?"align":"alignat",a};FU({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=(TQ(t[0])?[t[0]]:UQ(t[0],"ordgroup").body).map(function(e){var t=OQ(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new Gk("Unknown column alignment: "+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return MU(e.parser,r,IU(e.envName))},htmlBuilder:NU,mathmlBuilder:_U}),FU({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var o=e.parser;if(o.consumeSpaces(),"["===o.fetch().text){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,-1==="lcr".indexOf(n))throw new Gk("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),r.cols=[{type:"align",align:n}]}}var i=MU(e.parser,r,IU(e.envName)),a=Math.max(0,...i.body.map(e=>e.length));return i.cols=new Array(a).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:NU,mathmlBuilder:_U}),FU({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=MU(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:NU,mathmlBuilder:_U}),FU({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=(TQ(t[0])?[t[0]]:UQ(t[0],"ordgroup").body).map(function(e){var t=OQ(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new Gk("Unknown column alignment: "+t,e)});if(n.length>1)throw new Gk("{subarray} can contain only one column");var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((r=MU(e.parser,r,"script")).body.length>0&&r.body[0].length>1)throw new Gk("{subarray} can contain only one column");return r},htmlBuilder:NU,mathmlBuilder:_U}),FU({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=MU(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},IU(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:NU,mathmlBuilder:_U}),FU({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:PU,htmlBuilder:NU,mathmlBuilder:_U}),FU({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Jk.contains(["gather","gather*"],e.envName)&&OU(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:TU(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return MU(e.parser,t,"display")},htmlBuilder:NU,mathmlBuilder:_U}),FU({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:PU,htmlBuilder:NU,mathmlBuilder:_U}),FU({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){OU(e);var t={autoTag:TU(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return MU(e.parser,t,"display")},htmlBuilder:NU,mathmlBuilder:_U}),FU({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(OU(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new Gk("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var r=[],o=[r],i=0;i<t.length;i++){for(var a=t[i],A=zQ(),s=0;s<a.length;s++)if(KQ(a[s])){r.push(A);var l=OQ(a[s+=1]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(l)>-1);else{if(!("<>AV".indexOf(l)>-1))throw new Gk('Expected one of "<>AV=|." after @',a[s]);for(var u=0;u<2;u++){for(var d=!0,p=s+1;p<a.length;p++){if(jQ(a[p],l)){d=!1,s=p;break}if(KQ(a[p]))throw new Gk("Missing a "+l+" character to complete a CD arrow.",a[p]);c[u].body.push(a[p])}if(d)throw new Gk("Missing a "+l+" character to complete a CD arrow.",a[s])}}var h={type:"styling",body:[VQ(l,c,e)],mode:"math",style:"display"};r.push(h),A=zQ()}else A.body.push(a[s]);i%2==0?r.push(A):r.shift(),r=[],o.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}(e.parser)),htmlBuilder:NU,mathmlBuilder:_U}),QU("\\nonumber","\\gdef\\@eqnsw{0}"),QU("\\notag","\\nonumber"),WS({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Gk(e.funcName+" valid only within array environment")}});var DU=kU;WS({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];if("ordgroup"!==o.type)throw new Gk("Invalid environment name",o);for(var i="",a=0;a<o.body.length;++a)i+=UQ(o.body[a],"textord").text;if("\\begin"===r){if(!DU.hasOwnProperty(i))throw new Gk("No such environment: "+i,o);var A=DU[i],{args:s,optArgs:l}=n.parseArguments("\\begin{"+i+"}",A),c={mode:n.mode,envName:i,parser:n},u=A.handler(c,s,l);n.expect("\\end",!1);var d=n.nextToken,p=UQ(n.parseFunction(),"environment");if(p.name!==i)throw new Gk("Mismatch: \\begin{"+i+"} matched by \\end{"+p.name+"}",d);return u}return{type:"environment",mode:n.mode,name:i,nameGroup:o}}});var LU=(e,t)=>{var n=e.font,r=t.withFont(n);return lQ(e.body,r)},RU=(e,t)=>{var n=e.font,r=t.withFont(n);return wQ(e.body,r)},zU={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};WS({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=qS(t[0]),i=r;return i in zU&&(i=zU[i]),{type:"font",mode:n.mode,font:i.slice(1),body:o}},htmlBuilder:LU,mathmlBuilder:RU}),WS({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],o=Jk.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:LQ(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:o}}}),WS({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:o}=e,{mode:i}=n,a=n.parseExpression(!0,o);return{type:"font",mode:i,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:LU,mathmlBuilder:RU});var KU=(e,t)=>{var n=t;return"display"===e?n=n.id>=cF.SCRIPT.id?n.text():cF.DISPLAY:"text"===e&&n.size===cF.DISPLAY.size?n=cF.TEXT:"script"===e?n=cF.SCRIPT:"scriptscript"===e&&(n=cF.SCRIPTSCRIPT),n},jU=(e,t)=>{var n,r=KU(e.size,t.style),o=r.fracNum(),i=r.fracDen();n=t.havingStyle(o);var a=lQ(e.numer,n,t);if(e.continued){var A=8.5/t.fontMetrics().ptPerEm,s=3.5/t.fontMetrics().ptPerEm;a.height=a.height<A?A:a.height,a.depth=a.depth<s?s:a.depth}n=t.havingStyle(i);var l,c,u,d,p,h,f,m,g,y,v=lQ(e.denom,n,t);if(e.hasBarLine?(e.barSize?(c=QF(e.barSize,t),l=DS.makeLineSpan("frac-line",t,c)):l=DS.makeLineSpan("frac-line",t),c=l.height,u=l.height):(l=null,c=0,u=t.fontMetrics().defaultRuleThickness),r.size===cF.DISPLAY.size||"display"===e.size?(d=t.fontMetrics().num1,p=c>0?3*u:7*u,h=t.fontMetrics().denom1):(c>0?(d=t.fontMetrics().num2,p=u):(d=t.fontMetrics().num3,p=3*u),h=t.fontMetrics().denom2),l){var b=t.fontMetrics().axisHeight;d-a.depth-(b+.5*c)<p&&(d+=p-(d-a.depth-(b+.5*c))),b-.5*c-(v.height-h)<p&&(h+=p-(b-.5*c-(v.height-h)));var w=-(b-.5*c);f=DS.makeVList({positionType:"individualShift",children:[{type:"elem",elem:v,shift:h},{type:"elem",elem:l,shift:w},{type:"elem",elem:a,shift:-d}]},t)}else{var B=d-a.depth-(v.height-h);B<p&&(d+=.5*(p-B),h+=.5*(p-B)),f=DS.makeVList({positionType:"individualShift",children:[{type:"elem",elem:v,shift:h},{type:"elem",elem:a,shift:-d}]},t)}return n=t.havingStyle(r),f.height*=n.sizeMultiplier/t.sizeMultiplier,f.depth*=n.sizeMultiplier/t.sizeMultiplier,m=r.size===cF.DISPLAY.size?t.fontMetrics().delim1:r.size===cF.SCRIPTSCRIPT.size?t.havingStyle(cF.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,g=null==e.leftDelim?sQ(t,["mopen"]):vU.customSizedDelim(e.leftDelim,m,!0,t.havingStyle(r),e.mode,["mopen"]),y=e.continued?DS.makeSpan([]):null==e.rightDelim?sQ(t,["mclose"]):vU.customSizedDelim(e.rightDelim,m,!0,t.havingStyle(r),e.mode,["mclose"]),DS.makeSpan(["mord"].concat(n.sizingClasses(t)),[g,DS.makeSpan(["mfrac"],[f]),y],t)},VU=(e,t)=>{var n=new fQ.MathNode("mfrac",[wQ(e.numer,t),wQ(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=QF(e.barSize,t);n.setAttribute("linethickness",UF(r))}}else n.setAttribute("linethickness","0px");var o=KU(e.size,t.style);if(o.size!==t.style.size){n=new fQ.MathNode("mstyle",[n]);var i=o.size===cF.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var a=[];if(null!=e.leftDelim){var A=new fQ.MathNode("mo",[new fQ.TextNode(e.leftDelim.replace("\\",""))]);A.setAttribute("fence","true"),a.push(A)}if(a.push(n),null!=e.rightDelim){var s=new fQ.MathNode("mo",[new fQ.TextNode(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return gQ(a)}return n};WS({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var n,{parser:r,funcName:o}=e,i=t[0],a=t[1],A=null,s=null,l="auto";switch(o){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,A="(",s=")";break;case"\\\\bracefrac":n=!1,A="\\{",s="\\}";break;case"\\\\brackfrac":n=!1,A="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:n,leftDelim:A,rightDelim:s,size:l,barSize:null}},htmlBuilder:jU,mathmlBuilder:VU}),WS({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0],i=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:o,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),WS({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:n,funcName:r,token:o}=e;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:o}}});var $U=["display","text","script","scriptscript"],GU=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};WS({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var n,{parser:r}=e,o=t[4],i=t[5],a=qS(t[0]),A="atom"===a.type&&"open"===a.family?GU(a.text):null,s=qS(t[1]),l="atom"===s.type&&"close"===s.family?GU(s.text):null,c=UQ(t[2],"size"),u=null;n=!!c.isBlank||(u=c.value).number>0;var d="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var h=UQ(p.body[0],"textord");d=$U[Number(h.text)]}}else p=UQ(p,"textord"),d=$U[Number(p.text)];return{type:"genfrac",mode:r.mode,numer:o,denom:i,continued:!1,hasBarLine:n,barSize:u,leftDelim:A,rightDelim:l,size:d}},htmlBuilder:jU,mathmlBuilder:VU}),WS({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:o}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:UQ(t[0],"size").value,token:o}}}),WS({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0],i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(UQ(t[1],"infix").size),a=t[2],A=i.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:a,continued:!1,hasBarLine:A,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:jU,mathmlBuilder:VU});var WU=(e,t)=>{var n,r,o=t.style;"supsub"===e.type?(n=e.sup?lQ(e.sup,t.havingStyle(o.sup()),t):lQ(e.sub,t.havingStyle(o.sub()),t),r=UQ(e.base,"horizBrace")):r=UQ(e,"horizBrace");var i,a=lQ(r.base,t.havingBaseStyle(cF.DISPLAY)),A=QQ(r,t);if(r.isOver?(i=DS.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:A}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=DS.makeVList({positionType:"bottom",positionData:a.depth+.1+A.height,children:[{type:"elem",elem:A},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var s=DS.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t);i=r.isOver?DS.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:n}]},t):DS.makeVList({positionType:"bottom",positionData:s.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:s}]},t)}return DS.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t)};WS({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:WU,mathmlBuilder:(e,t)=>{var n=SQ(e.label);return new fQ.MathNode(e.isOver?"mover":"munder",[wQ(e.base,t),n])}}),WS({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],o=UQ(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:XS(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=rQ(e.body,t,!1);return DS.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=bQ(e.body,t);return n instanceof pQ||(n=new pQ("mrow",[n])),n.setAttribute("href",e.href),n}}),WS({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=UQ(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],i=0;i<r.length;i++){var a=r[i];"~"===a&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var A={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:r,body:XS(A)}}}),WS({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:XS(t[0])}},htmlBuilder(e,t){var n=rQ(e.body,t,!1);return DS.makeFragment(n)},mathmlBuilder:(e,t)=>new fQ.MathNode("mrow",vQ(e.body,t))}),WS({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var n,{parser:r,funcName:o,token:i}=e,a=UQ(t[0],"raw").string,A=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s={};switch(o){case"\\htmlClass":s.class=a,n={command:"\\htmlClass",class:a};break;case"\\htmlId":s.id=a,n={command:"\\htmlId",id:a};break;case"\\htmlStyle":s.style=a,n={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var l=a.split(","),c=0;c<l.length;c++){var u=l[c].split("=");if(2!==u.length)throw new Gk("Error parsing key-value for \\htmlData");s["data-"+u[0].trim()]=u[1].trim()}n={command:"\\htmlData",attributes:s};break;default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(n)?{type:"html",mode:r.mode,attributes:s,body:XS(A)}:r.formatUnsupportedCmd(o)},htmlBuilder:(e,t)=>{var n=rQ(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var o=DS.makeSpan(r,n,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&o.setAttribute(i,e.attributes[i]);return o},mathmlBuilder:(e,t)=>bQ(e.body,t)}),WS({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:XS(t[0]),mathml:XS(t[1])}},htmlBuilder:(e,t)=>{var n=rQ(e.html,t,!1);return DS.makeFragment(n)},mathmlBuilder:(e,t)=>bQ(e.mathml,t)});var YU=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Gk("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!SF(n))throw new Gk("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};WS({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,o={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},A="";if(n[0])for(var s=UQ(n[0],"raw").string.split(","),l=0;l<s.length;l++){var c=s[l].split("=");if(2===c.length){var u=c[1].trim();switch(c[0].trim()){case"alt":A=u;break;case"width":o=YU(u);break;case"height":i=YU(u);break;case"totalheight":a=YU(u);break;default:throw new Gk("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var d=UQ(t[0],"url").url;return""===A&&(A=(A=(A=d).replace(/^.*[\\/]/,"")).substring(0,A.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:d})?{type:"includegraphics",mode:r.mode,alt:A,width:o,height:i,totalheight:a,src:d}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=QF(e.height,t),r=0;e.totalheight.number>0&&(r=QF(e.totalheight,t)-n);var o=0;e.width.number>0&&(o=QF(e.width,t));var i={height:UF(n+r)};o>0&&(i.width=UF(o)),r>0&&(i.verticalAlign=UF(-r));var a=new _F(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:(e,t)=>{var n=new fQ.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=QF(e.height,t),o=0;if(e.totalheight.number>0&&(o=QF(e.totalheight,t)-r,n.setAttribute("valign",UF(-o))),n.setAttribute("height",UF(r+o)),e.width.number>0){var i=QF(e.width,t);n.setAttribute("width",UF(i))}return n.setAttribute("src",e.src),n}}),WS({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,o=UQ(t[0],"size");if(n.settings.strict){var i="m"===r[1],a="mu"===o.value.unit;i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+o.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:(e,t)=>DS.makeGlue(e.dimension,t),mathmlBuilder(e,t){var n=QF(e.dimension,t);return new fQ.SpaceNode(n)}}),WS({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:(e,t)=>{var n;"clap"===e.alignment?(n=DS.makeSpan([],[lQ(e.body,t)]),n=DS.makeSpan(["inner"],[n],t)):n=DS.makeSpan(["inner"],[lQ(e.body,t)]);var r=DS.makeSpan(["fix"],[]),o=DS.makeSpan([e.alignment],[n,r],t),i=DS.makeSpan(["strut"]);return i.style.height=UF(o.height+o.depth),o.depth&&(i.style.verticalAlign=UF(-o.depth)),o.children.unshift(i),o=DS.makeSpan(["thinbox"],[o],t),DS.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var n=new fQ.MathNode("mpadded",[wQ(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),WS({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,o=r.mode;r.switchMode("math");var i="\\("===n?"\\)":"$",a=r.parseExpression(!1,i);return r.expect(i),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:a}}}),WS({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Gk("Mismatched "+e.funcName)}});var qU=(e,t)=>{switch(t.style.size){case cF.DISPLAY.size:return e.display;case cF.TEXT.size:return e.text;case cF.SCRIPT.size:return e.script;case cF.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};WS({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:XS(t[0]),text:XS(t[1]),script:XS(t[2]),scriptscript:XS(t[3])}},htmlBuilder:(e,t)=>{var n=qU(e,t),r=rQ(n,t,!1);return DS.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=qU(e,t);return bQ(n,t)}});var XU=(e,t,n,r,o,i,a)=>{e=DS.makeSpan([],[e]);var A,s,l,c=n&&Jk.isCharacterBox(n);if(t){var u=lQ(t,r.havingStyle(o.sup()),r);s={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=lQ(n,r.havingStyle(o.sub()),r);A={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(s&&A){var p=r.fontMetrics().bigOpSpacing5+A.elem.height+A.elem.depth+A.kern+e.depth+a;l=DS.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:A.elem,marginLeft:UF(-i)},{type:"kern",size:A.kern},{type:"elem",elem:e},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:UF(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(A){var h=e.height-a;l=DS.makeVList({positionType:"top",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:A.elem,marginLeft:UF(-i)},{type:"kern",size:A.kern},{type:"elem",elem:e}]},r)}else{if(!s)return e;var f=e.depth+a;l=DS.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:s.kern},{type:"elem",elem:s.elem,marginLeft:UF(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var m=[l];if(A&&0!==i&&!c){var g=DS.makeSpan(["mspace"],[],r);g.style.marginRight=UF(i),m.unshift(g)}return DS.makeSpan(["mop","op-limits"],m,r)},JU=["\\smallint"],ZU=(e,t)=>{var n,r,o,i=!1;"supsub"===e.type?(n=e.sup,r=e.sub,o=UQ(e.base,"op"),i=!0):o=UQ(e,"op");var a,A=t.style,s=!1;if(A.size===cF.DISPLAY.size&&o.symbol&&!Jk.contains(JU,o.name)&&(s=!0),o.symbol){var l=s?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(c=o.name.slice(1),o.name="oiint"===c?"\\iint":"\\iiint"),a=DS.makeSymbol(o.name,l,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),c.length>0){var u=a.italic,d=DS.staticSvg(c+"Size"+(s?"2":"1"),t);a=DS.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:d,shift:s?.08:0}]},t),o.name="\\"+c,a.classes.unshift("mop"),a.italic=u}}else if(o.body){var p=rQ(o.body,t,!0);1===p.length&&p[0]instanceof DF?(a=p[0]).classes[0]="mop":a=DS.makeSpan(["mop"],p,t)}else{for(var h=[],f=1;f<o.name.length;f++)h.push(DS.mathsym(o.name[f],o.mode,t));a=DS.makeSpan(["mop"],h,t)}var m=0,g=0;return(a instanceof DF||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(m=(a.height-a.depth)/2-t.fontMetrics().axisHeight,g=a.italic),i?XU(a,n,r,t,A,g,m):(m&&(a.style.position="relative",a.style.top=UF(m)),a)},eO=(e,t)=>{var n;if(e.symbol)n=new pQ("mo",[mQ(e.name,e.mode)]),Jk.contains(JU,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new pQ("mo",vQ(e.body,t));else{n=new pQ("mi",[new hQ(e.name.slice(1))]);var r=new pQ("mo",[mQ("\u2061","text")]);n=e.parentIsSupSub?new pQ("mrow",[n,r]):dQ([n,r])}return n},tO={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};WS({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=r;return 1===o.length&&(o=tO[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:ZU,mathmlBuilder:eO}),WS({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:XS(r)}},htmlBuilder:ZU,mathmlBuilder:eO});var nO={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};WS({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ZU,mathmlBuilder:eO}),WS({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ZU,mathmlBuilder:eO}),WS({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return 1===r.length&&(r=nO[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:ZU,mathmlBuilder:eO});var rO=(e,t)=>{var n,r,o,i,a=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,o=UQ(e.base,"operatorname"),a=!0):o=UQ(e,"operatorname"),o.body.length>0){for(var A=o.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),s=rQ(A,t.withFont("mathrm"),!0),l=0;l<s.length;l++){var c=s[l];c instanceof DF&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=DS.makeSpan(["mop"],s,t)}else i=DS.makeSpan(["mop"],[],t);return a?XU(i,n,r,t,t.style,0,0):i};function oO(e,t,n){for(var r=rQ(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,i=0;i<r.length;i++){var a=r[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(r[i].classes,t.sizingClasses(n)):r[i].classes[a+1]==="reset-size"+t.size&&(r[i].classes[a+1]="reset-size"+n.size),r[i].height*=o,r[i].depth*=o}return DS.makeFragment(r)}WS({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"operatorname",mode:n.mode,body:XS(o),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:rO,mathmlBuilder:(e,t)=>{for(var n=vQ(e.body,t.withFont("mathrm")),r=!0,o=0;o<n.length;o++){var i=n[o];if(i instanceof fQ.SpaceNode);else if(i instanceof fQ.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=i.children[0];1===i.children.length&&a instanceof fQ.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var A=n.map(e=>e.toText()).join("");n=[new fQ.TextNode(A)]}var s=new fQ.MathNode("mi",n);s.setAttribute("mathvariant","normal");var l=new fQ.MathNode("mo",[mQ("\u2061","text")]);return e.parentIsSupSub?new fQ.MathNode("mrow",[s,l]):fQ.newDocumentFragment([s,l])}}),QU("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),YS({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?DS.makeFragment(rQ(e.body,t,!1)):DS.makeSpan(["mord"],rQ(e.body,t,!0),t),mathmlBuilder:(e,t)=>bQ(e.body,t,!0)}),WS({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=lQ(e.body,t.havingCrampedStyle()),r=DS.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=DS.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},t);return DS.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var n=new fQ.MathNode("mo",[new fQ.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new fQ.MathNode("mover",[wQ(e.body,t),n]);return r.setAttribute("accent","true"),r}}),WS({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:XS(r)}},htmlBuilder:(e,t)=>{var n=rQ(e.body,t.withPhantom(),!1);return DS.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=vQ(e.body,t);return new fQ.MathNode("mphantom",n)}}),WS({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=DS.makeSpan([],[lQ(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=DS.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),DS.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=vQ(XS(e.body),t),r=new fQ.MathNode("mphantom",n),o=new fQ.MathNode("mpadded",[r]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),WS({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=DS.makeSpan(["inner"],[lQ(e.body,t.withPhantom())]),r=DS.makeSpan(["fix"],[]);return DS.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=vQ(XS(e.body),t),r=new fQ.MathNode("mphantom",n),o=new fQ.MathNode("mpadded",[r]);return o.setAttribute("width","0px"),o}}),WS({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=UQ(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:o}},htmlBuilder(e,t){var n=lQ(e.body,t),r=QF(e.dy,t);return DS.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new fQ.MathNode("mpadded",[wQ(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),WS({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),WS({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,o=n[0],i=UQ(t[0],"size"),a=UQ(t[1],"size");return{type:"rule",mode:r.mode,shift:o&&UQ(o,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var n=DS.makeSpan(["mord","rule"],[],t),r=QF(e.width,t),o=QF(e.height,t),i=e.shift?QF(e.shift,t):0;return n.style.borderRightWidth=UF(r),n.style.borderTopWidth=UF(o),n.style.bottom=UF(i),n.width=r,n.height=o+i,n.depth=-i,n.maxFontSize=1.125*o*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=QF(e.width,t),r=QF(e.height,t),o=e.shift?QF(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new fQ.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",UF(n)),a.setAttribute("height",UF(r));var A=new fQ.MathNode("mpadded",[a]);return o>=0?A.setAttribute("height",UF(o)):(A.setAttribute("height",UF(o)),A.setAttribute("depth",UF(-o))),A.setAttribute("voffset",UF(o)),A}});var iO=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];WS({type:"sizing",names:iO,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:o}=e,i=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:iO.indexOf(r)+1,body:i}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return oO(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=vQ(e.body,n),o=new fQ.MathNode("mstyle",r);return o.setAttribute("mathsize",UF(n.sizeMultiplier)),o}}),WS({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,o=!1,i=!1,a=n[0]&&UQ(n[0],"ordgroup");if(a)for(var A="",s=0;s<a.body.length;++s){if("t"===(A=a.body[s].text))o=!0;else{if("b"!==A){o=!1,i=!1;break}i=!0}}else o=!0,i=!0;var l=t[0];return{type:"smash",mode:r.mode,body:l,smashHeight:o,smashDepth:i}},htmlBuilder:(e,t)=>{var n=DS.makeSpan([],[lQ(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;var i=DS.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return DS.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var n=new fQ.MathNode("mpadded",[wQ(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),WS({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,o=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:o}},htmlBuilder(e,t){var n=lQ(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=DS.wrapFragment(n,t);var r=t.fontMetrics().defaultRuleThickness,o=r;t.style.id<cF.TEXT.id&&(o=t.fontMetrics().xHeight);var i=r+o/4,a=n.height+n.depth+i+r,{span:A,ruleWidth:s,advanceWidth:l}=vU.sqrtImage(a,t),c=A.height-s;c>n.height+n.depth+i&&(i=(i+c-n.height-n.depth)/2);var u=A.height-n.height-i-s;n.style.paddingLeft=UF(l);var d=DS.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+u)},{type:"elem",elem:A},{type:"kern",size:s}]},t);if(e.index){var p=t.havingStyle(cF.SCRIPTSCRIPT),h=lQ(e.index,p,t),f=.6*(d.height-d.depth),m=DS.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:h}]},t),g=DS.makeSpan(["root"],[m]);return DS.makeSpan(["mord","sqrt"],[g,d],t)}return DS.makeSpan(["mord","sqrt"],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new fQ.MathNode("mroot",[wQ(n,t),wQ(r,t)]):new fQ.MathNode("msqrt",[wQ(n,t)])}});var aO={display:cF.DISPLAY,text:cF.TEXT,script:cF.SCRIPT,scriptscript:cF.SCRIPTSCRIPT};WS({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:o}=e,i=o.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder(e,t){var n=aO[e.style],r=t.havingStyle(n).withFont("");return oO(e.body,r,t)},mathmlBuilder(e,t){var n=aO[e.style],r=t.havingStyle(n),o=vQ(e.body,r),i=new fQ.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});YS({type:"supsub",htmlBuilder(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===cF.DISPLAY.size||n.alwaysHandleSupSub)?ZU:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===cF.DISPLAY.size||n.limits)?rO:null:"accent"===n.type?Jk.isCharacterBox(n.base)?MQ:null:"horizBrace"===n.type&&!e.sub===n.isOver?WU:null:null}(e,t);if(n)return n(e,t);var r,o,i,{base:a,sup:A,sub:s}=e,l=lQ(a,t),c=t.fontMetrics(),u=0,d=0,p=a&&Jk.isCharacterBox(a);if(A){var h=t.havingStyle(t.style.sup());r=lQ(A,h,t),p||(u=l.height-h.fontMetrics().supDrop*h.sizeMultiplier/t.sizeMultiplier)}if(s){var f=t.havingStyle(t.style.sub());o=lQ(s,f,t),p||(d=l.depth+f.fontMetrics().subDrop*f.sizeMultiplier/t.sizeMultiplier)}i=t.style===cF.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var m,g=t.sizeMultiplier,y=UF(.5/c.ptPerEm/g),v=null;if(o){var b=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(l instanceof DF||b)&&(v=UF(-l.italic))}if(r&&o){u=Math.max(u,i,r.depth+.25*c.xHeight),d=Math.max(d,c.sub2);var w=4*c.defaultRuleThickness;if(u-r.depth-(o.height-d)<w){d=w-(u-r.depth)+o.height;var B=.8*c.xHeight-(u-r.depth);B>0&&(u+=B,d-=B)}var C=[{type:"elem",elem:o,shift:d,marginRight:y,marginLeft:v},{type:"elem",elem:r,shift:-u,marginRight:y}];m=DS.makeVList({positionType:"individualShift",children:C},t)}else if(o){d=Math.max(d,c.sub1,o.height-.8*c.xHeight);var x=[{type:"elem",elem:o,marginLeft:v,marginRight:y}];m=DS.makeVList({positionType:"shift",positionData:d,children:x},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");u=Math.max(u,i,r.depth+.25*c.xHeight),m=DS.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:r,marginRight:y}]},t)}var E=AQ(l,"right")||"mord";return DS.makeSpan([E],[l,DS.makeSpan(["msupsub"],[m])],t)},mathmlBuilder(e,t){var n,r=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,i=[wQ(e.base,t)];if(e.sub&&i.push(wQ(e.sub,t)),e.sup&&i.push(wQ(e.sup,t)),r)o=n?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;o=a&&"op"===a.type&&a.limits&&t.style===cF.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===cF.DISPLAY||a.limits)?"munderover":"msubsup"}else{var A=e.base;o=A&&"op"===A.type&&A.limits&&(t.style===cF.DISPLAY||A.alwaysHandleSupSub)||A&&"operatorname"===A.type&&A.alwaysHandleSupSub&&(A.limits||t.style===cF.DISPLAY)?"munder":"msub"}else{var s=e.base;o=s&&"op"===s.type&&s.limits&&(t.style===cF.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===cF.DISPLAY)?"mover":"msup"}return new fQ.MathNode(o,i)}}),YS({type:"atom",htmlBuilder:(e,t)=>DS.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var n=new fQ.MathNode("mo",[mQ(e.text,e.mode)]);if("bin"===e.family){var r=yQ(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var AO={mi:"italic",mn:"normal",mtext:"normal"};YS({type:"mathord",htmlBuilder:(e,t)=>DS.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var n=new fQ.MathNode("mi",[mQ(e.text,e.mode,t)]),r=yQ(e,t)||"italic";return r!==AO[n.type]&&n.setAttribute("mathvariant",r),n}}),YS({type:"textord",htmlBuilder:(e,t)=>DS.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var n,r=mQ(e.text,e.mode,t),o=yQ(e,t)||"normal";return n="text"===e.mode?new fQ.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new fQ.MathNode("mn",[r]):"\\prime"===e.text?new fQ.MathNode("mo",[r]):new fQ.MathNode("mi",[r]),o!==AO[n.type]&&n.setAttribute("mathvariant",o),n}});var sO={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},lO={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};YS({type:"spacing",htmlBuilder(e,t){if(lO.hasOwnProperty(e.text)){var n=lO[e.text].className||"";if("text"===e.mode){var r=DS.makeOrd(e,t,"textord");return r.classes.push(n),r}return DS.makeSpan(["mspace",n],[DS.mathsym(e.text,e.mode,t)],t)}if(sO.hasOwnProperty(e.text))return DS.makeSpan(["mspace",sO[e.text]],[],t);throw new Gk('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!lO.hasOwnProperty(e.text)){if(sO.hasOwnProperty(e.text))return new fQ.MathNode("mspace");throw new Gk('Unknown type of space "'+e.text+'"')}return new fQ.MathNode("mtext",[new fQ.TextNode("\xa0")])}});var cO=()=>{var e=new fQ.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};YS({type:"tag",mathmlBuilder(e,t){var n=new fQ.MathNode("mtable",[new fQ.MathNode("mtr",[cO(),new fQ.MathNode("mtd",[bQ(e.body,t)]),cO(),new fQ.MathNode("mtd",[bQ(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var uO={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},dO={"\\textbf":"textbf","\\textmd":"textmd"},pO={"\\textit":"textit","\\textup":"textup"},hO=(e,t)=>{var n=e.font;return n?uO[n]?t.withTextFontFamily(uO[n]):dO[n]?t.withTextFontWeight(dO[n]):t.withTextFontShape(pO[n]):t};WS({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"text",mode:n.mode,body:XS(o),font:r}},htmlBuilder(e,t){var n=hO(e,t),r=rQ(e.body,n,!0);return DS.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=hO(e,t);return bQ(e.body,n)}}),WS({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=lQ(e.body,t),r=DS.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=DS.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return DS.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var n=new fQ.MathNode("mo",[new fQ.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new fQ.MathNode("munder",[wQ(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),WS({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=lQ(e.body,t),r=t.fontMetrics().axisHeight,o=.5*(n.height-r-(n.depth+r));return DS.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:(e,t)=>new fQ.MathNode("mpadded",[wQ(e.body,t)],["vcenter"])}),WS({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Gk("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=fO(e),r=[],o=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var a=n[i];"~"===a&&(a="\\textasciitilde"),r.push(DS.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return DS.makeSpan(["mord","text"].concat(o.sizingClasses(t)),DS.tryCombineChars(r),o)},mathmlBuilder(e,t){var n=new fQ.TextNode(fO(e)),r=new fQ.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var fO=e=>e.body.replace(/ /g,e.star?"\u2423":"\xa0"),mO=VS,gO="[ \r\n\t]",yO="(\\\\[a-zA-Z@]+)"+gO+"*",vO="[\u0300-\u036f]",bO=new RegExp(vO+"+$"),wO="("+gO+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff]"+vO+"*|[\ud800-\udbff][\udc00-\udfff]"+vO+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+yO+"|\\\\[^\ud800-\udfff])";class BO{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(wO,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new $k("EOF",new Vk(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new Gk("Unexpected character: '"+e[t]+"'",new $k(e[t],new Vk(this,t,t+1)));var r=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[r]){var o=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===o?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new $k(r,new Vk(this,t,this.tokenRegex.lastIndex))}}class CO{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new Gk("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var xO=SU;QU("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),QU("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),QU("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),QU("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),QU("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),QU("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),QU("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var EO={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};QU("\\char",function(e){var t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new Gk("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=EO[n.text])||r>=t)throw new Gk("Invalid base-"+t+" digit "+n.text);for(var o;null!=(o=EO[e.future().text])&&o<t;)r*=t,r+=o,e.popToken()}return"\\@char{"+r+"}"});var kO=(e,t,n)=>{var r=e.consumeArg().tokens;if(1!==r.length)throw new Gk("\\newcommand's first argument must be a macro name");var o=r[0].text,i=e.isDefined(o);if(i&&!t)throw new Gk("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!i&&!n)throw new Gk("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var a=0;if(1===(r=e.consumeArg().tokens).length&&"["===r[0].text){for(var A="",s=e.expandNextToken();"]"!==s.text&&"EOF"!==s.text;)A+=s.text,s=e.expandNextToken();if(!A.match(/^\s*[0-9]+\s*$/))throw new Gk("Invalid number of arguments: "+A);a=parseInt(A),r=e.consumeArg().tokens}return e.macros.set(o,{tokens:r,numArgs:a}),""};QU("\\newcommand",e=>kO(e,!1,!0)),QU("\\renewcommand",e=>kO(e,!0,!1)),QU("\\providecommand",e=>kO(e,!0,!0)),QU("\\message",e=>{e.consumeArgs(1)[0];return""}),QU("\\errmessage",e=>{e.consumeArgs(1)[0];return""}),QU("\\show",e=>{e.popToken().text;return""}),QU("\\bgroup","{"),QU("\\egroup","}"),QU("~","\\nobreakspace"),QU("\\lq","`"),QU("\\rq","'"),QU("\\aa","\\r a"),QU("\\AA","\\r A"),QU("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),QU("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),QU("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),QU("\u212c","\\mathscr{B}"),QU("\u2130","\\mathscr{E}"),QU("\u2131","\\mathscr{F}"),QU("\u210b","\\mathscr{H}"),QU("\u2110","\\mathscr{I}"),QU("\u2112","\\mathscr{L}"),QU("\u2133","\\mathscr{M}"),QU("\u211b","\\mathscr{R}"),QU("\u212d","\\mathfrak{C}"),QU("\u210c","\\mathfrak{H}"),QU("\u2128","\\mathfrak{Z}"),QU("\\Bbbk","\\Bbb{k}"),QU("\xb7","\\cdotp"),QU("\\llap","\\mathllap{\\textrm{#1}}"),QU("\\rlap","\\mathrlap{\\textrm{#1}}"),QU("\\clap","\\mathclap{\\textrm{#1}}"),QU("\\mathstrut","\\vphantom{(}"),QU("\\underbar","\\underline{\\text{#1}}"),QU("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),QU("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),QU("\\ne","\\neq"),QU("\u2260","\\neq"),QU("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),QU("\u2209","\\notin"),QU("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),QU("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),QU("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),QU("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),QU("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),QU("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),QU("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),QU("\u27c2","\\perp"),QU("\u203c","\\mathclose{!\\mkern-0.8mu!}"),QU("\u220c","\\notni"),QU("\u231c","\\ulcorner"),QU("\u231d","\\urcorner"),QU("\u231e","\\llcorner"),QU("\u231f","\\lrcorner"),QU("\xa9","\\copyright"),QU("\xae","\\textregistered"),QU("\ufe0f","\\textregistered"),QU("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),QU("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),QU("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),QU("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),QU("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),QU("\u22ee","\\vdots"),QU("\\varGamma","\\mathit{\\Gamma}"),QU("\\varDelta","\\mathit{\\Delta}"),QU("\\varTheta","\\mathit{\\Theta}"),QU("\\varLambda","\\mathit{\\Lambda}"),QU("\\varXi","\\mathit{\\Xi}"),QU("\\varPi","\\mathit{\\Pi}"),QU("\\varSigma","\\mathit{\\Sigma}"),QU("\\varUpsilon","\\mathit{\\Upsilon}"),QU("\\varPhi","\\mathit{\\Phi}"),QU("\\varPsi","\\mathit{\\Psi}"),QU("\\varOmega","\\mathit{\\Omega}"),QU("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),QU("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),QU("\\boxed","\\fbox{$\\displaystyle{#1}$}"),QU("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),QU("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),QU("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var FO={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};QU("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in FO?t=FO[n]:("\\not"===n.slice(0,4)||n in $F.math&&Jk.contains(["bin","rel"],$F.math[n].group))&&(t="\\dotsb"),t});var SO={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};QU("\\dotso",function(e){return e.future().text in SO?"\\ldots\\,":"\\ldots"}),QU("\\dotsc",function(e){var t=e.future().text;return t in SO&&","!==t?"\\ldots\\,":"\\ldots"}),QU("\\cdots",function(e){return e.future().text in SO?"\\@cdots\\,":"\\@cdots"}),QU("\\dotsb","\\cdots"),QU("\\dotsm","\\cdots"),QU("\\dotsi","\\!\\cdots"),QU("\\dotsx","\\ldots\\,"),QU("\\DOTSI","\\relax"),QU("\\DOTSB","\\relax"),QU("\\DOTSX","\\relax"),QU("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),QU("\\,","\\tmspace+{3mu}{.1667em}"),QU("\\thinspace","\\,"),QU("\\>","\\mskip{4mu}"),QU("\\:","\\tmspace+{4mu}{.2222em}"),QU("\\medspace","\\:"),QU("\\;","\\tmspace+{5mu}{.2777em}"),QU("\\thickspace","\\;"),QU("\\!","\\tmspace-{3mu}{.1667em}"),QU("\\negthinspace","\\!"),QU("\\negmedspace","\\tmspace-{4mu}{.2222em}"),QU("\\negthickspace","\\tmspace-{5mu}{.277em}"),QU("\\enspace","\\kern.5em "),QU("\\enskip","\\hskip.5em\\relax"),QU("\\quad","\\hskip1em\\relax"),QU("\\qquad","\\hskip2em\\relax"),QU("\\tag","\\@ifstar\\tag@literal\\tag@paren"),QU("\\tag@paren","\\tag@literal{({#1})}"),QU("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Gk("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),QU("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),QU("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),QU("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),QU("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),QU("\\newline","\\\\\\relax"),QU("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var QO=UF(gF["Main-Regular"]["T".charCodeAt(0)][1]-.7*gF["Main-Regular"]["A".charCodeAt(0)][1]);QU("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+QO+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),QU("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+QO+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),QU("\\hspace","\\@ifstar\\@hspacer\\@hspace"),QU("\\@hspace","\\hskip #1\\relax"),QU("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),QU("\\ordinarycolon",":"),QU("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),QU("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),QU("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),QU("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),QU("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),QU("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),QU("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),QU("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),QU("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),QU("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),QU("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),QU("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),QU("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),QU("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),QU("\u2237","\\dblcolon"),QU("\u2239","\\eqcolon"),QU("\u2254","\\coloneqq"),QU("\u2255","\\eqqcolon"),QU("\u2a74","\\Coloneqq"),QU("\\ratio","\\vcentcolon"),QU("\\coloncolon","\\dblcolon"),QU("\\colonequals","\\coloneqq"),QU("\\coloncolonequals","\\Coloneqq"),QU("\\equalscolon","\\eqqcolon"),QU("\\equalscoloncolon","\\Eqqcolon"),QU("\\colonminus","\\coloneq"),QU("\\coloncolonminus","\\Coloneq"),QU("\\minuscolon","\\eqcolon"),QU("\\minuscoloncolon","\\Eqcolon"),QU("\\coloncolonapprox","\\Colonapprox"),QU("\\coloncolonsim","\\Colonsim"),QU("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),QU("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),QU("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),QU("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),QU("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),QU("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),QU("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),QU("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),QU("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),QU("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),QU("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),QU("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),QU("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),QU("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),QU("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),QU("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),QU("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),QU("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),QU("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),QU("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),QU("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),QU("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),QU("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),QU("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),QU("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),QU("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),QU("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),QU("\\imath","\\html@mathml{\\@imath}{\u0131}"),QU("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),QU("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),QU("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),QU("\u27e6","\\llbracket"),QU("\u27e7","\\rrbracket"),QU("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),QU("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),QU("\u2983","\\lBrace"),QU("\u2984","\\rBrace"),QU("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29b5}}"),QU("\u29b5","\\minuso"),QU("\\darr","\\downarrow"),QU("\\dArr","\\Downarrow"),QU("\\Darr","\\Downarrow"),QU("\\lang","\\langle"),QU("\\rang","\\rangle"),QU("\\uarr","\\uparrow"),QU("\\uArr","\\Uparrow"),QU("\\Uarr","\\Uparrow"),QU("\\N","\\mathbb{N}"),QU("\\R","\\mathbb{R}"),QU("\\Z","\\mathbb{Z}"),QU("\\alef","\\aleph"),QU("\\alefsym","\\aleph"),QU("\\Alpha","\\mathrm{A}"),QU("\\Beta","\\mathrm{B}"),QU("\\bull","\\bullet"),QU("\\Chi","\\mathrm{X}"),QU("\\clubs","\\clubsuit"),QU("\\cnums","\\mathbb{C}"),QU("\\Complex","\\mathbb{C}"),QU("\\Dagger","\\ddagger"),QU("\\diamonds","\\diamondsuit"),QU("\\empty","\\emptyset"),QU("\\Epsilon","\\mathrm{E}"),QU("\\Eta","\\mathrm{H}"),QU("\\exist","\\exists"),QU("\\harr","\\leftrightarrow"),QU("\\hArr","\\Leftrightarrow"),QU("\\Harr","\\Leftrightarrow"),QU("\\hearts","\\heartsuit"),QU("\\image","\\Im"),QU("\\infin","\\infty"),QU("\\Iota","\\mathrm{I}"),QU("\\isin","\\in"),QU("\\Kappa","\\mathrm{K}"),QU("\\larr","\\leftarrow"),QU("\\lArr","\\Leftarrow"),QU("\\Larr","\\Leftarrow"),QU("\\lrarr","\\leftrightarrow"),QU("\\lrArr","\\Leftrightarrow"),QU("\\Lrarr","\\Leftrightarrow"),QU("\\Mu","\\mathrm{M}"),QU("\\natnums","\\mathbb{N}"),QU("\\Nu","\\mathrm{N}"),QU("\\Omicron","\\mathrm{O}"),QU("\\plusmn","\\pm"),QU("\\rarr","\\rightarrow"),QU("\\rArr","\\Rightarrow"),QU("\\Rarr","\\Rightarrow"),QU("\\real","\\Re"),QU("\\reals","\\mathbb{R}"),QU("\\Reals","\\mathbb{R}"),QU("\\Rho","\\mathrm{P}"),QU("\\sdot","\\cdot"),QU("\\sect","\\S"),QU("\\spades","\\spadesuit"),QU("\\sub","\\subset"),QU("\\sube","\\subseteq"),QU("\\supe","\\supseteq"),QU("\\Tau","\\mathrm{T}"),QU("\\thetasym","\\vartheta"),QU("\\weierp","\\wp"),QU("\\Zeta","\\mathrm{Z}"),QU("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),QU("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),QU("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),QU("\\bra","\\mathinner{\\langle{#1}|}"),QU("\\ket","\\mathinner{|{#1}\\rangle}"),QU("\\braket","\\mathinner{\\langle{#1}\\rangle}"),QU("\\Bra","\\left\\langle#1\\right|"),QU("\\Ket","\\left|#1\\right\\rangle");var UO=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.macros.get("|"),A=t.macros.get("\\|");t.macros.beginGroup();var s=t=>n=>{e&&(n.macros.set("|",a),o.length&&n.macros.set("\\|",A));var i=t;!t&&o.length&&("|"===n.future().text&&(n.popToken(),i=!0));return{tokens:i?o:r,numArgs:0}};t.macros.set("|",s(!1)),o.length&&t.macros.set("\\|",s(!0));var l=t.consumeArg().tokens,c=t.expandTokens([...i,...l,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};QU("\\bra@ket",UO(!1)),QU("\\bra@set",UO(!0)),QU("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),QU("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),QU("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),QU("\\angln","{\\angl n}"),QU("\\blue","\\textcolor{##6495ed}{#1}"),QU("\\orange","\\textcolor{##ffa500}{#1}"),QU("\\pink","\\textcolor{##ff00af}{#1}"),QU("\\red","\\textcolor{##df0030}{#1}"),QU("\\green","\\textcolor{##28ae7b}{#1}"),QU("\\gray","\\textcolor{gray}{#1}"),QU("\\purple","\\textcolor{##9d38bd}{#1}"),QU("\\blueA","\\textcolor{##ccfaff}{#1}"),QU("\\blueB","\\textcolor{##80f6ff}{#1}"),QU("\\blueC","\\textcolor{##63d9ea}{#1}"),QU("\\blueD","\\textcolor{##11accd}{#1}"),QU("\\blueE","\\textcolor{##0c7f99}{#1}"),QU("\\tealA","\\textcolor{##94fff5}{#1}"),QU("\\tealB","\\textcolor{##26edd5}{#1}"),QU("\\tealC","\\textcolor{##01d1c1}{#1}"),QU("\\tealD","\\textcolor{##01a995}{#1}"),QU("\\tealE","\\textcolor{##208170}{#1}"),QU("\\greenA","\\textcolor{##b6ffb0}{#1}"),QU("\\greenB","\\textcolor{##8af281}{#1}"),QU("\\greenC","\\textcolor{##74cf70}{#1}"),QU("\\greenD","\\textcolor{##1fab54}{#1}"),QU("\\greenE","\\textcolor{##0d923f}{#1}"),QU("\\goldA","\\textcolor{##ffd0a9}{#1}"),QU("\\goldB","\\textcolor{##ffbb71}{#1}"),QU("\\goldC","\\textcolor{##ff9c39}{#1}"),QU("\\goldD","\\textcolor{##e07d10}{#1}"),QU("\\goldE","\\textcolor{##a75a05}{#1}"),QU("\\redA","\\textcolor{##fca9a9}{#1}"),QU("\\redB","\\textcolor{##ff8482}{#1}"),QU("\\redC","\\textcolor{##f9685d}{#1}"),QU("\\redD","\\textcolor{##e84d39}{#1}"),QU("\\redE","\\textcolor{##bc2612}{#1}"),QU("\\maroonA","\\textcolor{##ffbde0}{#1}"),QU("\\maroonB","\\textcolor{##ff92c6}{#1}"),QU("\\maroonC","\\textcolor{##ed5fa6}{#1}"),QU("\\maroonD","\\textcolor{##ca337c}{#1}"),QU("\\maroonE","\\textcolor{##9e034e}{#1}"),QU("\\purpleA","\\textcolor{##ddd7ff}{#1}"),QU("\\purpleB","\\textcolor{##c6b9fc}{#1}"),QU("\\purpleC","\\textcolor{##aa87ff}{#1}"),QU("\\purpleD","\\textcolor{##7854ab}{#1}"),QU("\\purpleE","\\textcolor{##543b78}{#1}"),QU("\\mintA","\\textcolor{##f5f9e8}{#1}"),QU("\\mintB","\\textcolor{##edf2df}{#1}"),QU("\\mintC","\\textcolor{##e0e5cc}{#1}"),QU("\\grayA","\\textcolor{##f6f7f7}{#1}"),QU("\\grayB","\\textcolor{##f0f1f2}{#1}"),QU("\\grayC","\\textcolor{##e3e5e6}{#1}"),QU("\\grayD","\\textcolor{##d6d8da}{#1}"),QU("\\grayE","\\textcolor{##babec2}{#1}"),QU("\\grayF","\\textcolor{##888d93}{#1}"),QU("\\grayG","\\textcolor{##626569}{#1}"),QU("\\grayH","\\textcolor{##3b3e40}{#1}"),QU("\\grayI","\\textcolor{##21242c}{#1}"),QU("\\kaBlue","\\textcolor{##314453}{#1}"),QU("\\kaGreen","\\textcolor{##71B307}{#1}");var OO={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class TO{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new CO(xO,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new BO(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:r,end:n}=this.consumeArg(["]"]))}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new $k("EOF",n.loc)),this.pushTokens(r),t.range(n,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r,o=this.future(),i=0,a=0;do{if(r=this.popToken(),t.push(r),"{"===r.text)++i;else if("}"===r.text){if(-1===--i)throw new Gk("Extra }",r)}else if("EOF"===r.text)throw new Gk("Unexpected end of input in a macro argument, expected '"+(e&&n?e[a]:"}")+"'",r);if(e&&n)if((0===i||1===i&&"{"===e[a])&&r.text===e[a]){if(++a===e.length){t.splice(-a,a);break}}else a=0}while(0!==i||n);return"{"===o.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:o,end:r}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new Gk("The length of delimiters doesn't match the number of args!");for(var n=t[0],r=0;r<n.length;r++){var o=this.popToken();if(n[r]!==o.text)throw new Gk("Use of the macro doesn't match its definition",o)}}for(var i=[],a=0;a<e;a++)i.push(this.consumeArg(t&&t[a+1]).tokens);return i}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(null==r||e&&r.unexpandable){if(e&&null==r&&"\\"===n[0]&&!this.isDefined(n))throw new Gk("Undefined control sequence: "+n);return this.pushToken(t),!1}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new Gk("Too many expansions: infinite loop or need to increase maxExpand setting");var o=r.tokens,i=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs)for(var a=(o=o.slice()).length-1;a>=0;--a){var A=o[a];if("#"===A.text){if(0===a)throw new Gk("Incomplete placeholder at end of macro body",A);if("#"===(A=o[--a]).text)o.splice(a+1,1);else{if(!/^[1-9]$/.test(A.text))throw new Gk("Not a valid argument number",A);o.splice(a,2,...i[+A.text-1])}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new $k(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(r)}return t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"==typeof t?t(this):t;if("string"==typeof r){var o=0;if(-1!==r.indexOf("#"))for(var i=r.replace(/##/g,"");-1!==i.indexOf("#"+(o+1));)++o;for(var a=new BO(r,this.settings),A=[],s=a.lex();"EOF"!==s.text;)A.push(s),s=a.lex();return A.reverse(),{tokens:A,numArgs:o}}return r}isDefined(e){return this.macros.has(e)||mO.hasOwnProperty(e)||$F.math.hasOwnProperty(e)||$F.text.hasOwnProperty(e)||OO.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:mO.hasOwnProperty(e)&&!mO[e].primitive}}var MO=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,IO=Object.freeze({"\u208a":"+","\u208b":"-","\u208c":"=","\u208d":"(","\u208e":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1d62":"i","\u2c7c":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209a":"p","\u1d63":"r","\u209b":"s","\u209c":"t","\u1d64":"u","\u1d65":"v","\u2093":"x","\u1d66":"\u03b2","\u1d67":"\u03b3","\u1d68":"\u03c1","\u1d69":"\u03d5","\u1d6a":"\u03c7","\u207a":"+","\u207b":"-","\u207c":"=","\u207d":"(","\u207e":")","\u2070":"0","\xb9":"1","\xb2":"2","\xb3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1d2c":"A","\u1d2e":"B","\u1d30":"D","\u1d31":"E","\u1d33":"G","\u1d34":"H","\u1d35":"I","\u1d36":"J","\u1d37":"K","\u1d38":"L","\u1d39":"M","\u1d3a":"N","\u1d3c":"O","\u1d3e":"P","\u1d3f":"R","\u1d40":"T","\u1d41":"U","\u2c7d":"V","\u1d42":"W","\u1d43":"a","\u1d47":"b","\u1d9c":"c","\u1d48":"d","\u1d49":"e","\u1da0":"f","\u1d4d":"g","\u02b0":"h","\u2071":"i","\u02b2":"j","\u1d4f":"k","\u02e1":"l","\u1d50":"m","\u207f":"n","\u1d52":"o","\u1d56":"p","\u02b3":"r","\u02e2":"s","\u1d57":"t","\u1d58":"u","\u1d5b":"v","\u02b7":"w","\u02e3":"x","\u02b8":"y","\u1dbb":"z","\u1d5d":"\u03b2","\u1d5e":"\u03b3","\u1d5f":"\u03b4","\u1d60":"\u03d5","\u1d61":"\u03c7","\u1dbf":"\u03b8"}),NO={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},HO={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u1e09":"c\u0327\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\xe7":"c\u0327","\u010f":"d\u030c","\u1e0b":"d\u0307","\u1e11":"d\u0327","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u1e1d":"e\u0327\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u0229":"e\u0327","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u0123":"g\u0327","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\u1e29":"h\u0327","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u0137":"k\u0327","\u013a":"l\u0301","\u013e":"l\u030c","\u013c":"l\u0327","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\u0146":"n\u0327","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u0157":"r\u0327","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u015f":"s\u0327","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\u0163":"t\u0327","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u1e08":"C\u0327\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\xc7":"C\u0327","\u010e":"D\u030c","\u1e0a":"D\u0307","\u1e10":"D\u0327","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u1e1c":"E\u0327\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u0228":"E\u0327","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u0122":"G\u0327","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\u1e28":"H\u0327","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0136":"K\u0327","\u0139":"L\u0301","\u013d":"L\u030c","\u013b":"L\u0327","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\u0145":"N\u0327","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u0156":"R\u0327","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u015e":"S\u0327","\u0164":"T\u030c","\u1e6a":"T\u0307","\u0162":"T\u0327","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"};let _O=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new TO(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new Gk("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new $k("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var o=this.fetch();if(-1!==e.endOfExpression.indexOf(o.text))break;if(n&&o.text===n)break;if(t&&mO[o.text]&&mO[o.text].infix)break;var i=this.parseAtom(n);if(!i)break;"internal"!==i.type&&r.push(i)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,n=-1,r=0;r<e.length;r++)if("infix"===e[r].type){if(-1!==n)throw new Gk("only one infix operator per group",e[r].token);n=r,t=e[r].replaceWith}if(-1!==n&&t){var o,i,a=e.slice(0,n),A=e.slice(n+1);return o=1===a.length&&"ordgroup"===a[0].type?a[0]:{type:"ordgroup",mode:this.mode,body:a},i=1===A.length&&"ordgroup"===A[0].type?A[0]:{type:"ordgroup",mode:this.mode,body:A},["\\\\abovefrac"===t?this.callFunction(t,[o,e[n],i],[]):this.callFunction(t,[o,i],[])]}return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r=this.parseGroup(e);if(!r)throw new Gk("Expected group after '"+n+"'",t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(t){var n,r,o=this.parseGroup("atom",t);if("text"===this.mode)return o;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(o&&"op"===o.type){var a="\\limits"===i.text;o.limits=a,o.alwaysHandleSupSub=!0}else{if(!o||"operatorname"!==o.type)throw new Gk("Limit controls must follow a math operator",i);o.alwaysHandleSupSub&&(o.limits="\\limits"===i.text)}this.consume()}else if("^"===i.text){if(n)throw new Gk("Double superscript",i);n=this.handleSupSubscript("superscript")}else if("_"===i.text){if(r)throw new Gk("Double subscript",i);r=this.handleSupSubscript("subscript")}else if("'"===i.text){if(n)throw new Gk("Double superscript",i);var A={type:"textord",mode:this.mode,text:"\\prime"},s=[A];for(this.consume();"'"===this.fetch().text;)s.push(A),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:s}}else{if(!IO[i.text])break;var l=IO[i.text],c=MO.test(i.text);for(this.consume();;){var u=this.fetch().text;if(!IO[u])break;if(MO.test(u)!==c)break;this.consume(),l+=IO[u]}var d=new e(l,this.settings).parse();c?r={type:"ordgroup",mode:"math",body:d}:n={type:"ordgroup",mode:"math",body:d}}}return n||r?{type:"supsub",mode:this.mode,base:o,sup:n,sub:r}:o}parseFunction(e,t){var n=this.fetch(),r=n.text,o=mO[r];if(!o)return null;if(this.consume(),t&&"atom"!==t&&!o.allowedInArgument)throw new Gk("Got function '"+r+"' with no arguments"+(t?" as "+t:""),n);if("text"===this.mode&&!o.allowedInText)throw new Gk("Can't use function '"+r+"' in text mode",n);if("math"===this.mode&&!1===o.allowedInMath)throw new Gk("Can't use function '"+r+"' in math mode",n);var{args:i,optArgs:a}=this.parseArguments(r,o);return this.callFunction(r,i,a,n,e)}callFunction(e,t,n,r,o){var i={funcName:e,parser:this,token:r,breakOnTokenText:o},a=mO[e];if(a&&a.handler)return a.handler(i,t,n);throw new Gk("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=[],o=[],i=0;i<n;i++){var a=t.argTypes&&t.argTypes[i],A=i<t.numOptionalArgs;(t.primitive&&null==a||"sqrt"===t.type&&1===i&&null==o[0])&&(a="primitive");var s=this.parseGroupOfType("argument to '"+e+"'",a,A);if(A)o.push(s);else{if(null==s)throw new Gk("Null argument, please report this as a bug");r.push(s)}}return{args:r,optArgs:o}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var r=this.parseArgumentGroup(n,"text");return null!=r?{type:"styling",mode:r.mode,body:[r],style:"text"}:null;case"raw":var o=this.parseStringGroup("raw",n);return null!=o?{type:"raw",mode:"text",string:o.text}:null;case"primitive":if(n)throw new Gk("A primitive argument cannot be optional");var i=this.parseGroup(e);if(null==i)throw new Gk("Expected group as "+e,this.fetch());return i;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new Gk("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(null==n)return null;for(var r,o="";"EOF"!==(r=this.fetch()).text;)o+=r.text,this.consume();return this.consume(),n.text=o,n}parseRegexGroup(e,t){for(var n,r=this.fetch(),o=r,i="";"EOF"!==(n=this.fetch()).text&&e.test(i+n.text);)i+=(o=n).text,this.consume();if(""===i)throw new Gk("Invalid "+t+": '"+r.text+"'",r);return r.range(o,i)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new Gk("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new Gk("Invalid size: '"+t.text+"'",t);var o={number:+(r[1]+r[2]),unit:r[3]};if(!SF(o))throw new Gk("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(null==n)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:n.loc,body:o};return t&&this.switchMode(r),i}parseGroup(e,t){var n,r=this.fetch(),o=r.text;if("{"===o||"\\begingroup"===o){this.consume();var i="{"===o?"}":"\\endgroup";this.gullet.beginGroup();var a=this.parseExpression(!1,i),A=this.fetch();this.expect(i),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:Vk.range(r,A),body:a,semisimple:"\\begingroup"===o||void 0}}else if(null==(n=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===o[0]&&!OO.hasOwnProperty(o)){if(this.settings.throwOnError)throw new Gk("Undefined control sequence: "+o,r);n=this.formatUnsupportedCmd(o),this.consume()}return n}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n],o=r.text;"-"===o&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:Vk.range(r,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:Vk.range(r,e[n+1]),text:"--"}),t-=1)),"'"!==o&&"`"!==o||e[n+1].text!==o||(e.splice(n,2,{type:"textord",mode:"text",loc:Vk.range(r,e[n+1]),text:o+o}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r="*"===n.charAt(0);if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new Gk("\\verb assertion failed --\n                    please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:r}}HO.hasOwnProperty(t[0])&&!$F[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=HO[t[0]]+t.slice(1));var o,i=bO.exec(t);if(i&&("i"===(t=t.substring(0,i.index))?t="\u0131":"j"===t&&(t="\u0237")),$F[this.mode][t]){this.settings.strict&&"math"===this.mode&&xS.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a,A=$F[this.mode][t].group,s=Vk.range(e);if(jF.hasOwnProperty(A)){var l=A;a={type:"atom",mode:this.mode,family:l,loc:s,text:t}}else a={type:A,mode:this.mode,loc:s,text:t};o=a}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(pF(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:Vk.range(e),text:t}}if(this.consume(),i)for(var c=0;c<i[0].length;c++){var u=i[0][c];if(!NO[u])throw new Gk("Unknown accent ' "+u+"'",e);var d=NO[u][this.mode]||NO[u].text;if(!d)throw new Gk("Accent "+u+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:Vk.range(e),label:d,isStretchy:!1,isShifty:!0,base:o}}return o}};_O.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var PO=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new _O(e,t);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new Gk("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:n.subparse([new $k("\\df@tag")])}]}return r},DO=function(e,t,n){t.textContent="";var r=RO(e,n).toNode();t.appendChild(r)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&(DO=function(){throw new Gk("KaTeX doesn't work in quirks mode.")});var LO=function(e,t,n){if(n.throwOnError||!(e instanceof Gk))throw e;var r=DS.makeSpan(["katex-error"],[new DF(t)]);return r.setAttribute("title",e.toString()),r.setAttribute("style","color:"+n.errorColor),r},RO=function(e,t){var n=new tF(t);try{return function(e,t,n){var r,o=CQ(n);if("mathml"===n.output)return BQ(e,t,o,n.displayMode,!0);if("html"===n.output){var i=uQ(e,o);r=DS.makeSpan(["katex"],[i])}else{var a=BQ(e,t,o,n.displayMode,!1),A=uQ(e,o);r=DS.makeSpan(["katex"],[a,A])}return xQ(r,n)}(PO(e,n),e,n)}catch(r){return LO(r,e,n)}},zO={version:"0.16.8",render:DO,renderToString:function(e,t){return RO(e,t).toMarkup()},ParseError:Gk,SETTINGS_SCHEMA:Zk,__parse:function(e,t){var n=new tF(t);return PO(e,n)},__renderToDomTree:RO,__renderToHTMLTree:function(e,t){var n=new tF(t);try{return function(e,t,n){var r=uQ(e,CQ(n)),o=DS.makeSpan(["katex"],[r]);return xQ(o,n)}(PO(e,n),0,n)}catch(r){return LO(r,e,n)}},__setFontMetrics:function(e,t){gF[e]=t},__defineSymbol:GF,__defineFunction:WS,__defineMacro:QU,__domTree:{Span:NF,Anchor:HF,SymbolNode:DF,SvgNode:LF,PathNode:RF,LineNode:zF}},KO=function(e,t,n){for(var r=n,o=0,i=e.length;r<t.length;){var a=t[r];if(o<=0&&t.slice(r,r+i)===e)return r;"\\"===a?r++:"{"===a?o++:"}"===a&&o--,r++}return-1},jO=/^\\begin{/,VO=function(e,t){var n=function(e,t){for(var n,r=[],o=new RegExp("("+t.map(e=>e.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")+")");-1!==(n=e.search(o));){n>0&&(r.push({type:"text",data:e.slice(0,n)}),e=e.slice(n));var i=t.findIndex(t=>e.startsWith(t.left));if(-1===(n=KO(t[i].right,e,t[i].left.length)))break;var a=e.slice(0,n+t[i].right.length),A=jO.test(a)?a:e.slice(t[i].left.length,n);r.push({type:"math",data:A,rawData:a,display:t[i].display}),e=e.slice(n+t[i].right.length)}return""!==e&&r.push({type:"text",data:e}),r}(e,t.delimiters);if(1===n.length&&"text"===n[0].type)return null;for(var r=document.createDocumentFragment(),o=0;o<n.length;o++)if("text"===n[o].type)r.appendChild(document.createTextNode(n[o].data));else{var i=document.createElement("span"),a=n[o].data;t.displayMode=n[o].display;try{t.preProcess&&(a=t.preProcess(a)),zO.render(a,i,t)}catch(A){if(!(A instanceof zO.ParseError))throw A;t.errorCallback("KaTeX auto-render: Failed to parse `"+n[o].data+"` with ",A),r.appendChild(document.createTextNode(n[o].rawData));continue}r.appendChild(i)}return r},$O=function e(t,n){for(var r=0;r<t.childNodes.length;r++){var o=t.childNodes[r];if(3===o.nodeType){for(var i=o.textContent,a=o.nextSibling,A=0;a&&a.nodeType===Node.TEXT_NODE;)i+=a.textContent,a=a.nextSibling,A++;var s=VO(i,n);if(s){for(var l=0;l<A;l++)o.nextSibling.remove();r+=s.childNodes.length-1,t.replaceChild(s,o)}else r+=A}else 1===o.nodeType&&function(){var t=" "+o.className+" ";-1===n.ignoredTags.indexOf(o.nodeName.toLowerCase())&&n.ignoredClasses.every(e=>-1===t.indexOf(" "+e+" "))&&e(o,n)}()}},GO=function(e,t){if(!e)throw new Error("No element provided to render");var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.delimiters=n.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],n.ignoredTags=n.ignoredTags||["script","noscript","style","textarea","pre","code","option"],n.ignoredClasses=n.ignoredClasses||[],n.errorCallback=n.errorCallback||console.error,n.macros=n.macros||{},$O(e,n)},WO={exports:{}},YO={},qO={exports:{}},XO={};function JO(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var ZO=/javascript\s*\:/gim;XO.whiteList=JO(),XO.getDefaultWhiteList=JO,XO.onAttr=function(e,t,n){},XO.onIgnoreAttr=function(e,t,n){},XO.safeAttrValue=function(e,t){return ZO.test(t)?"":t};var eT={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},tT=eT;var nT=function(e,t){";"!==(e=tT.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,r=!1,o=0,i=0,a="";function A(){if(!r){var n=tT.trim(e.slice(o,i)),A=n.indexOf(":");if(-1!==A){var s=tT.trim(n.slice(0,A)),l=tT.trim(n.slice(A+1));if(s){var c=t(o,a.length,s,l,n);c&&(a+=c+"; ")}}}o=i+1}for(;i<n;i++){var s=e[i];if("/"===s&&"*"===e[i+1]){var l=e.indexOf("*/",i+2);if(-1===l)break;o=(i=l+1)+1,r=!1}else"("===s?r=!0:")"===s?r=!1:";"===s?r||A():"\n"===s&&A()}return tT.trim(a)},rT=XO,oT=nT;function iT(e){return null==e}function aT(e){e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{}),e.whiteList=e.whiteList||rT.whiteList,e.onAttr=e.onAttr||rT.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||rT.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||rT.safeAttrValue,this.options=e}aT.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,o=t.onIgnoreAttr,i=t.safeAttrValue;return oT(e,function(e,t,a,A,s){var l=n[a],c=!1;if(!0===l?c=l:"function"==typeof l?c=l(A):l instanceof RegExp&&(c=l.test(A)),!0!==c&&(c=!1),A=i(a,A)){var u,d={position:t,sourcePosition:e,source:s,isWhite:c};return c?iT(u=r(a,A,d))?a+":"+A:u:iT(u=o(a,A,d))?void 0:u}})};var AT=aT;!function(e,t){var n=XO,r=AT;for(var o in(t=e.exports=function(e,t){return new r(t).process(e)}).FilterCSS=r,n)t[o]=n[o];"undefined"!=typeof window&&(window.filterCSS=e.exports)}(qO,qO.exports);var sT=qO.exports,lT={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}},cT=sT.FilterCSS,uT=sT.getDefaultWhiteList,dT=lT;function pT(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var hT=new cT;function fT(e){return e.replace(mT,"&lt;").replace(gT,"&gt;")}var mT=/</g,gT=/>/g,yT=/"/g,vT=/&quot;/g,bT=/&#([a-zA-Z0-9]*);?/gim,wT=/&colon;?/gim,BT=/&newline;?/gim,CT=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,xT=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ET=/u\s*r\s*l\s*\(.*/gi;function kT(e){return e.replace(yT,"&quot;")}function FT(e){return e.replace(vT,'"')}function ST(e){return e.replace(bT,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function QT(e){return e.replace(wT,":").replace(BT," ")}function UT(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return dT.trim(t)}function OT(e){return e=UT(e=QT(e=ST(e=FT(e))))}function TT(e){return e=fT(e=kT(e))}YO.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},YO.getDefaultWhiteList=pT,YO.onTag=function(e,t,n){},YO.onIgnoreTag=function(e,t,n){},YO.onTagAttr=function(e,t,n){},YO.onIgnoreTagAttr=function(e,t,n){},YO.safeAttrValue=function(e,t,n,r){if(n=OT(n),"href"===t||"src"===t){if("#"===(n=dT.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(CT.lastIndex=0,CT.test(n))return""}else if("style"===t){if(xT.lastIndex=0,xT.test(n))return"";if(ET.lastIndex=0,ET.test(n)&&(CT.lastIndex=0,CT.test(n)))return"";!1!==r&&(n=(r=r||hT).process(n))}return n=TT(n)},YO.escapeHtml=fT,YO.escapeQuote=kT,YO.unescapeQuote=FT,YO.escapeHtmlEntities=ST,YO.escapeDangerHtml5Entities=QT,YO.clearNonPrintableCharacter=UT,YO.friendlyAttrValue=OT,YO.escapeAttrValue=TT,YO.onIgnoreTagStripAll=function(){return""},YO.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],o=!1;return{onIgnoreTag:function(i,a,A){if(function(t){return!!n||-1!==dT.indexOf(e,t)}(i)){if(A.isClosing){var s="[/removed]",l=A.position+10;return r.push([!1!==o?o:A.position,l]),o=!1,s}return o||(o=A.position),"[removed]"}return t(i,a,A)},remove:function(e){var t="",n=0;return dT.forEach(r,function(r){t+=e.slice(n,r[0]),n=r[1]}),t+=e.slice(n)}}},YO.stripCommentTag=function(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("\x3c!--",n);if(-1===r){t+=e.slice(n);break}t+=e.slice(n,r);var o=e.indexOf("--\x3e",r);if(-1===o)break;n=o+3}return t},YO.stripBlankChar=function(e){var t=e.split("");return(t=t.filter(function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))})).join("")},YO.attributeWrapSign='"',YO.cssFilter=hT,YO.getDefaultCSSWhiteList=uT;var MT={},IT=lT;function NT(e){var t,n=IT.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=IT.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function HT(e){return"</"===e.slice(0,2)}var _T=/[^a-zA-Z0-9\\_:.-]/gim;function PT(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}}function DT(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}}function LT(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function RT(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}MT.parseTag=function(e,t,n){var r="",o=0,i=!1,a=!1,A=0,s=e.length,l="",c="";e:for(A=0;A<s;A++){var u=e.charAt(A);if(!1===i){if("<"===u){i=A;continue}}else if(!1===a){if("<"===u){r+=n(e.slice(o,A)),i=A,o=A;continue}if(">"===u||A===s-1){r+=n(e.slice(o,i)),l=NT(c=e.slice(i,A+1)),r+=t(i,r.length,l,c,HT(c)),o=A+1,i=!1;continue}if('"'===u||"'"===u)for(var d=1,p=e.charAt(A-d);""===p.trim()||"="===p;){if("="===p){a=u;continue e}p=e.charAt(A-++d)}}else if(u===a){a=!1;continue}}return o<s&&(r+=n(e.substr(o))),r},MT.parseAttr=function(e,t){var n=0,r=0,o=[],i=!1,a=e.length;function A(e,n){if(!((e=(e=IT.trim(e)).replace(_T,"").toLowerCase()).length<1)){var r=t(e,n||"");r&&o.push(r)}}for(var s=0;s<a;s++){var l,c=e.charAt(s);if(!1!==i||"="!==c)if(!1===i||s!==r)if(/\s|\n|\t/.test(c)){if(e=e.replace(/\s|\n|\t/g," "),!1===i){if(-1===(l=PT(e,s))){A(IT.trim(e.slice(n,s))),i=!1,n=s+1;continue}s=l-1;continue}if(-1===(l=LT(e,s-1))){A(i,RT(IT.trim(e.slice(n,s)))),i=!1,n=s+1;continue}}else;else{if(-1===(l=e.indexOf(c,s+1)))break;A(i,IT.trim(e.slice(r+1,l))),i=!1,n=(s=l)+1}else i=e.slice(n,s),n=s+1,r='"'===e.charAt(n)||"'"===e.charAt(n)?n:DT(e,s+1)}return n<e.length&&(!1===i?A(e.slice(n)):A(i,RT(IT.trim(e.slice(n))))),IT.trim(o.join(" "))};var zT=sT.FilterCSS,KT=YO,jT=MT,VT=jT.parseTag,$T=jT.parseAttr,GT=lT;function WT(e){return null==e}function YT(e){e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag,e.onIgnoreTag=KT.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(e){return e.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=KT.whiteList,this.attributeWrapSign=!0===e.singleQuotedAttributeValue?"'":KT.attributeWrapSign,e.onTag=e.onTag||KT.onTag,e.onTagAttr=e.onTagAttr||KT.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||KT.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||KT.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||KT.safeAttrValue,e.escapeHtml=e.escapeHtml||KT.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new zT(e.css))}YT.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this,n=t.options,r=n.whiteList,o=n.onTag,i=n.onIgnoreTag,a=n.onTagAttr,A=n.onIgnoreTagAttr,s=n.safeAttrValue,l=n.escapeHtml,c=t.attributeWrapSign,u=t.cssFilter;n.stripBlankChar&&(e=KT.stripBlankChar(e)),n.allowCommentTag||(e=KT.stripCommentTag(e));var d=!1;n.stripIgnoreTagBody&&(d=KT.StripTagBody(n.stripIgnoreTagBody,i),i=d.onIgnoreTag);var p=VT(e,function(e,t,n,d,p){var h={sourcePosition:e,position:t,isClosing:p,isWhite:Object.prototype.hasOwnProperty.call(r,n)},f=o(n,d,h);if(!WT(f))return f;if(h.isWhite){if(h.isClosing)return"</"+n+">";var m=function(e){var t=GT.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=GT.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=GT.trim(e.slice(0,-1))),{html:e,closing:n}}(d),g=r[n],y=$T(m.html,function(e,t){var r=-1!==GT.indexOf(g,e),o=a(n,e,t,r);return WT(o)?r?(t=s(n,e,t,u))?e+"="+c+t+c:e:WT(o=A(n,e,t,r))?void 0:o:o});return d="<"+n,y&&(d+=" "+y),m.closing&&(d+=" /"),d+=">"}return WT(f=i(n,d,h))?l(d):f},l);return d&&(p=d.remove(p)),p};var qT=YT;!function(e,t){var n=YO,r=MT,o=qT;function i(e,t){return new o(t).process(e)}(t=e.exports=i).filterXSS=i,t.FilterXSS=o,function(){for(var e in n)t[e]=n[e];for(var o in r)t[o]=r[o]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(WO,WO.exports);const XT=ne(WO.exports);function JT({content:e,openXss:t=!0}){const n=ok("https://g.alicdn.com/code/lib/KaTeX/0.16.8/katex.min.css"),r=ok("https://g.alicdn.com/tc/tianchi-com-assets/1.0.10/content-editor/client.css"),o=ok("https://g.alicdn.com/tc/tianchi-com-assets/1.0.8/mermaid-8.0.0/dist/mermaid.min.js"),i={stripIgnoreTagBody:["style"],onIgnoreTag:function(e,t){if(/^(ptimes|style|strike|o:p)$/i.test(e))return t},onIgnoreTagAttr(e,t,n){if("style"==t)return`${t}="${n}"`}},a=b.useMemo(()=>{if(!e)return"";let n=e.split("\x3c!-- 798TianchiMarkdownTianchi798 --\x3e")[0];zk.use({tokenizer:{codespan(e){const t=e.match(/^\$+([^\$]+?)\$+/);return!!t&&{type:"text",raw:t[0],text:t[0].trim()}}}});let r=zk.parse(n,{gfm:!0,breaks:!0,pedantic:!1});return`<div class="contentEditorHtmlOutput">${t?XT(r,i):r}</div>`},[e]),A=b.useCallback(()=>{document.querySelectorAll(".prism").forEach(e=>{e.$highlightedWithPrism||(jk.highlightElement(e),e.$highlightedWithPrism=!0)}),document.querySelectorAll("span.task-list-item-checkbox").forEach(e=>{const t=document.createElement("input");t.type="checkbox",t.className="task-list-item-checkbox",t.checked=e.classList.contains("checked"),t.disabled=!0,e.parentNode.replaceChild(t,e)});const e=document.querySelector(".contentEditorHtmlOutput");GO(e,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1}],throwOnError:!1}),"undefined"!=typeof mermaid&&(document.querySelectorAll(".prism.language-mermaid").forEach(e=>{e.className="mermaid"}),mermaid.init())},[]);return b.useEffect(()=>{"ready"===n&&"ready"===r&&"ready"===o&&a&&setTimeout(A,100)},[a,n,r,o]),b.createElement("div",{dangerouslySetInnerHTML:{__html:a}})}var ZT=function(e){var t=e.data,n=e.onOk,r=t.content,o=void 0===r?"":r,i=t.btnText,a=void 0===i?"":i,A=t.color,s=void 0===A?"":A,l=yE(b.useState(!0),2),c=l[0],u=l[1],d=yE(b.useState(5),2),p=d[0],h=d[1],f=b.useRef(null);b.useEffect(function(){return g(),function(){m()}},[]);var m=function(){f.current&&(clearInterval(f.current),f.current=null)},g=function(){h(5),f.current=setInterval(function(){h(function(e){return e<=1?(m(),u(!1),0):e-1})},1e3)};return b.createElement("div",{className:"agreement_info"},b.createElement("div",{className:"markdown_viewer"},(null==o?void 0:o.length)>0&&b.createElement(JT,{content:o,openXss:!1})),b.createElement(an,{className:"footer_btn ".concat(s||"orange"),type:"primary",onClick:function(){n()},disabled:c},b.createElement("span",{style:{marginRight:"4px"}},0===p?"":"".concat(p,"s")),a||"\u6211\u5df2\u77e5\u6653"))};function eM(e){return new Promise(function(t){var n=nn.show({title:b.createElement("div",{className:"dia_title"},(null==e?void 0:e.title)||"\u534f\u8bae"),content:b.createElement(ZT,{data:e,onOk:function(){t(!0),n.hide()}}),className:"join_dialog",footer:!1,onCancel:function(){n.hide(),t(!1)},onClose:function(){n.hide(),t(!1)}})})}function tM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(tM=function(){return!!e})()}var nM=function(e){function t(e){var n,r,o,i;return j(this,t),r=this,o=X(o=t),ee(n=q(r,tM()?Reflect.construct(o,i||[],X(r).constructor):o.apply(r,i)),"options",void 0),n.options=e,n}return Z(t,e),W(t,[{key:"queryCommission",value:(E=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,rt(t);case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e)})),function(e){return E.apply(this,arguments)})},{key:"share",value:(x=K(ke.mark(function e(t,n,r){var o;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Le();case 1:if(e.sent){e.next=3;break}return e.next=2,ze();case 2:this.emit("login");case 3:return e.next=4,Ze();case 4:if(e.sent){e.next=8;break}if(this.emit("join-dashi"),null==r||!r.isShow){e.next=6;break}return e.next=5,eM(r);case 5:if(e.sent){e.next=6;break}return e.abrupt("return");case 6:return e.next=7,tt(n);case 7:if("200"===(o=e.sent).code){e.next=8;break}return Cn(o,null==r?void 0:r.color),e.abrupt("return",!1);case 8:return e.next=9,je();case 9:if(e.sent){e.next=11;break}return e.next=10,gn();case 10:this.emit("to-certificated");case 11:return e.next=12,it(t);case 12:e.sent;case 13:case"end":return e.stop()}},e,this)})),function(e,t,n){return x.apply(this,arguments)})},{key:"drawerShare",value:(C=K(ke.mark(function e(t,n,r,o){var i,a;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Le();case 1:if(i=e.sent){e.next=3;break}return this.emit("login"),e.next=2,ze();case 2:case 9:case 11:return e.abrupt("return",!1);case 3:return e.next=4,Ze();case 4:if(e.sent){e.next=8;break}if(this.emit("join-dashi"),null==o||!o.isShow){e.next=6;break}return e.next=5,eM(o);case 5:if(e.sent){e.next=6;break}return e.abrupt("return");case 6:return e.next=7,tt(n);case 7:if("200"===(a=e.sent).code){e.next=8;break}return Cn(a,null==o?void 0:o.color),e.abrupt("return",!1);case 8:if(null!=i&&i.certificated){e.next=10;break}return this.emit("to-certificated"),e.next=9,gn();case 10:if(!r||"personal"===(null==i?void 0:i.certifyAccountType)){e.next=12;break}return this.emit("certificated-personal"),e.next=11,vn("personal");case 12:return e.next=13,FE(t);case 13:case"end":return e.stop()}},e,this)})),function(e,t,n,r){return C.apply(this,arguments)})},{key:"shareDialog",value:(B=K(ke.mark(function e(t,n,r,o){var i,a,A,s,l,c,u;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Le();case 1:if(a=e.sent){e.next=3;break}return this.emit("login"),e.next=2,ze();case 2:case 9:return e.abrupt("return",!1);case 3:return A="",e.next=4,Ze();case 4:if(s=e.sent){e.next=8;break}if(this.emit("join-dashi"),null==o||!o.isShow){e.next=6;break}return e.next=5,eM(o);case 5:if(e.sent){e.next=6;break}return e.abrupt("return");case 6:return e.next=7,tt(n);case 7:if(c=e.sent,A=null==c||null===(l=c.data)||void 0===l?void 0:l.userCode,"200"===c.code){e.next=8;break}return Cn(c,null==o?void 0:o.color),e.abrupt("return",!1);case 8:if(!r||"personal"===(null==a?void 0:a.certifyAccountType)){e.next=10;break}return this.emit("certificated-personal"),e.next=9,vn("personal");case 10:return u=(null==s||null===(i=s.data)||void 0===i?void 0:i.userCode)||A,e.next=11,XE(t,u);case 11:case"end":return e.stop()}},e,this)})),function(e,t,n,r){return B.apply(this,arguments)})},{key:"checkDashiStep",value:(w=K(ke.mark(function e(t,n){var r,o;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Le();case 1:if(e.sent){e.next=3;break}return this.emit("login"),e.next=2,ze();case 2:return e.abrupt("return",!1);case 3:return e.next=4,Ze();case 4:if(r=e.sent){e.next=9;break}if(this.emit("join-dashi"),null==n||!n.isShow){e.next=6;break}return e.next=5,eM(n);case 5:if(e.sent){e.next=6;break}return e.abrupt("return");case 6:return e.next=7,tt(t);case 7:if("200"===(o=e.sent).code){e.next=8;break}return Cn(o,null==n?void 0:n.color),e.abrupt("return",!1);case 8:return e.abrupt("return",o);case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}},e,this)})),function(e,t){return w.apply(this,arguments)})},{key:"userLogin",value:(b=K(ke.mark(function e(){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Le();case 1:if(e.sent){e.next=2;break}return e.abrupt("return",!1);case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}},e)})),function(){return b.apply(this,arguments)})},{key:"toLogin",value:(v=K(ke.mark(function e(){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ze();case 1:case"end":return e.stop()}},e)})),function(){return v.apply(this,arguments)})},{key:"userDashi",value:(y=K(ke.mark(function e(){var t;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Ze();case 1:return t=e.sent,e.abrupt("return",t);case 2:case"end":return e.stop()}},e)})),function(){return y.apply(this,arguments)})},{key:"userCertificated",value:(g=K(ke.mark(function e(){var t;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Le();case 1:if(t=e.sent){e.next=2;break}return e.abrupt("return",!1);case 2:if(null!=t&&t.certificated){e.next=3;break}return e.abrupt("return",!1);case 3:if("personal"!==(null==t?void 0:t.certifyAccountType)){e.next=4;break}return e.abrupt("return","personal");case 4:if("enterprise"!==(null==t?void 0:t.certifyAccountType)&&"individual_business"!==(null==t?void 0:t.certifyAccountType)){e.next=5;break}return e.abrupt("return","enterprise");case 5:case"end":return e.stop()}},e)})),function(){return g.apply(this,arguments)})},{key:"userInformation",value:(m=K(ke.mark(function e(){var t;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Le();case 1:return t=e.sent,e.abrupt("return",t);case 2:case"end":return e.stop()}},e)})),function(){return m.apply(this,arguments)})},{key:"certificatedLimit",value:(f=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Le();case 1:if(n=e.sent){e.next=3;break}return this.emit("login"),e.next=2,ze();case 2:case 4:case 7:return e.abrupt("return",!1);case 3:if("all"!==t){e.next=6;break}if(null!=n&&n.certificated){e.next=5;break}return this.emit("to-certificated"),e.next=4,gn();case 5:e.next=8;break;case 6:if(t===(null==n?void 0:n.certifyAccountType)){e.next=8;break}return this.emit("certificated-personal"),e.next=7,vn(t);case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}},e,this)})),function(e){return f.apply(this,arguments)})},{key:"getDashitTask",value:(h=K(ke.mark(function e(t,n,r,o){var i,a,A,s;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Le();case 1:if(i=e.sent){e.next=3;break}return this.emit("login"),e.next=2,ze();case 2:case 9:return e.abrupt("return",!1);case 3:return e.next=4,Ze();case 4:if(e.sent){e.next=8;break}if(this.emit("join-dashi"),null==o||!o.isShow){e.next=6;break}return e.next=5,eM(o);case 5:if(e.sent){e.next=6;break}return e.abrupt("return");case 6:return e.next=7,tt(n);case 7:if("200"===(a=e.sent).code){e.next=8;break}return Cn(a,null==o?void 0:o.color),e.abrupt("return",!1);case 8:if(!r||null!=i&&i.certificated){e.next=10;break}return this.emit("to-certificated"),e.next=9,gn();case 10:if(!t){e.next=15;break}return e.next=11,gt(t);case 11:if(A=e.sent){e.next=14;break}return this.emit("get-task"),e.next=12,vt(t);case 12:if("200"!==(null==(s=e.sent)?void 0:s.code)){e.next=13;break}return e.abrupt("return",s.data);case 13:return ZE(null==s?void 0:s.message),e.abrupt("return",!1);case 14:return e.abrupt("return",A);case 15:case"end":return e.stop()}},e,this)})),function(e,t,n,r){return h.apply(this,arguments)})},{key:"getDashiTaskInfo",value:(p=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.emit("get-taskInfo"),e.next=1,wt(t);case 1:return n=e.sent,e.abrupt("return",n);case 2:case"end":return e.stop()}},e,this)})),function(e){return p.apply(this,arguments)})},{key:"getDrawCoupon",value:(d=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,Kt(t);case 2:return n=e.sent,e.abrupt("return",n);case 3:case"end":return e.stop()}},e)})),function(e){return d.apply(this,arguments)})},{key:"getReceivedCoupon",value:(u=K(ke.mark(function e(t,n){var r,o;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,Vt(t);case 2:if(!("200"===(null==(r=e.sent)?void 0:r.code)&&(null==r?void 0:r.data.length)>0)){e.next=4;break}if("hasDrawn"!==(null==(o=null==r?void 0:r.data.find(function(e){return e.id===n}))?void 0:o.drawnStatus)){e.next=3;break}return e.abrupt("return",!0);case 3:case 4:return e.abrupt("return",!1);case 5:case"end":return e.stop()}},e)})),function(e,t){return u.apply(this,arguments)})},{key:"getDrawPrize",value:(c=K(ke.mark(function e(t,n){var r,o;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,Gt(t);case 2:if("200"!==(null==(o=e.sent)?void 0:o.code)||"LOTTERY_FINISH_WIN_PRIZE"!==(null==o||null===(r=o.data)||void 0===r?void 0:r.code)){e.next=3;break}return e.abrupt("return",null==o?void 0:o.data);case 3:return e.next=4,ZE(n||(null==o?void 0:o.msg));case 4:return e.abrupt("return",!1);case 5:case"end":return e.stop()}},e)})),function(e,t){return c.apply(this,arguments)})},{key:"getActivityDialog",value:(l=K(ke.mark(function e(t,n,r){return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,tk(t,n,r);case 2:case"end":return e.stop()}},e)})),function(e,t,n){return l.apply(this,arguments)})},{key:"queryDrawPrizeTotal",value:(s=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,Yt(t);case 2:return n=e.sent,e.abrupt("return",n);case 3:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)})},{key:"queryDrawPrizeList",value:(A=K(ke.mark(function e(t,n){var r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,Xt(t,n);case 2:return r=e.sent,e.abrupt("return",r);case 3:case"end":return e.stop()}},e)})),function(e,t){return A.apply(this,arguments)})},{key:"queryAllDrawList",value:(a=K(ke.mark(function e(t,n){var r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,Zt(t,n);case 2:return r=e.sent,e.abrupt("return",r);case 3:case"end":return e.stop()}},e)})),function(e,t){return a.apply(this,arguments)})},{key:"getUserTaskRank",value:(i=K(ke.mark(function e(t,n){var r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,Ft(t,n);case 2:return r=e.sent,e.abrupt("return",r);case 3:case"end":return e.stop()}},e)})),function(e,t){return i.apply(this,arguments)})},{key:"getAllTaskRank",value:(o=K(ke.mark(function e(t,n){var r;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,Qt(t,n);case 2:return r=e.sent,e.abrupt("return",r);case 3:case"end":return e.stop()}},e)})),function(e,t){return o.apply(this,arguments)})},{key:"getUserActRank",value:(r=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,Ct(t);case 2:return n=e.sent,e.abrupt("return",n);case 3:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"getAllActRank",value:(n=K(ke.mark(function e(t){var n;return ke.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,Et(t);case 2:return n=e.sent,e.abrupt("return",n);case 3:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})}]);var n,r,o,i,a,A,s,l,c,u,d,p,h,f,m,g,y,v,b,w,B,C,x,E}(Fe),rM=Symbol.for("react.element"),oM=Symbol.for("react.transitional.element"),iM=Symbol.for("react.fragment");function aM(e){return e&&"object"===V(e)&&(e.$$typeof===rM||e.$$typeof===oM)&&e.type===iM}function AM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return b.Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(AM(e)):aM(e)&&e.props?n=n.concat(AM(e.props.children,t)):n.push(e))}),n}var sM={};function lM(e,t){}function cM(e,t){}function uM(e,t,n){t||sM[n]||(e(!1,n),sM[n]=!0)}function dM(e,t){uM(lM,e,t)}function pM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pM(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fM(e){return e instanceof HTMLElement||e instanceof SVGElement}function mM(e){var t,n=function(e){return e&&"object"===V(e)&&fM(e.nativeElement)?e.nativeElement:fM(e)?e:null}(e);return n||(e instanceof b.Component?null===(t=w.findDOMNode)||void 0===t?void 0:t.call(w,e):null)}dM.preMessage=function(e){},dM.resetWarned=function(){sM={}},dM.noteOnce=function(e,t){uM(cM,e,t)};var gM,yM={exports:{}},vM={},bM=Symbol.for("react.element"),wM=Symbol.for("react.portal"),BM=Symbol.for("react.fragment"),CM=Symbol.for("react.strict_mode"),xM=Symbol.for("react.profiler"),EM=Symbol.for("react.provider"),kM=Symbol.for("react.context"),FM=Symbol.for("react.server_context"),SM=Symbol.for("react.forward_ref"),QM=Symbol.for("react.suspense"),UM=Symbol.for("react.suspense_list"),OM=Symbol.for("react.memo"),TM=Symbol.for("react.lazy"),MM=Symbol.for("react.offscreen");function IM(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case bM:switch(e=e.type){case BM:case xM:case CM:case QM:case UM:return e;default:switch(e=e&&e.$$typeof){case FM:case kM:case SM:case TM:case OM:case EM:return e;default:return t}}case wM:return t}}}gM=Symbol.for("react.module.reference"),vM.ContextConsumer=kM,vM.ContextProvider=EM,vM.Element=bM,vM.ForwardRef=SM,vM.Fragment=BM,vM.Lazy=TM,vM.Memo=OM,vM.Portal=wM,vM.Profiler=xM,vM.StrictMode=CM,vM.Suspense=QM,vM.SuspenseList=UM,vM.isAsyncMode=function(){return!1},vM.isConcurrentMode=function(){return!1},vM.isContextConsumer=function(e){return IM(e)===kM},vM.isContextProvider=function(e){return IM(e)===EM},vM.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===bM},vM.isForwardRef=function(e){return IM(e)===SM},vM.isFragment=function(e){return IM(e)===BM},vM.isLazy=function(e){return IM(e)===TM},vM.isMemo=function(e){return IM(e)===OM},vM.isPortal=function(e){return IM(e)===wM},vM.isProfiler=function(e){return IM(e)===xM},vM.isStrictMode=function(e){return IM(e)===CM},vM.isSuspense=function(e){return IM(e)===QM},vM.isSuspenseList=function(e){return IM(e)===UM},vM.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===BM||e===xM||e===CM||e===QM||e===UM||e===MM||"object"==typeof e&&null!==e&&(e.$$typeof===TM||e.$$typeof===OM||e.$$typeof===EM||e.$$typeof===kM||e.$$typeof===SM||e.$$typeof===gM||void 0!==e.getModuleId)},vM.typeOf=IM,yM.exports=vM;var NM=yM.exports;function HM(e,t,n){var r=C.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var _M=Number(b.version.split(".")[0]),PM=function(e,t){"function"==typeof e?e(t):"object"===V(e)&&e&&"current"in e&&(e.current=t)},DM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){PM(t,e)})}},LM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return HM(function(){return DM.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},RM=function(e){var t,n;if(!e)return!1;if(zM(e)&&_M>=19)return!0;var r=NM.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===NM.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===NM.ForwardRef)};function zM(e){return b.isValidElement(e)&&!aM(e)}var KM=function(e){if(e&&zM(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function jM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(jM=function(){return!!e})()}function VM(e){var t=jM();return function(){var n,r=X(e);if(t){var o=X(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function $M(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function GM(e){return function(e){if(Array.isArray(e))return fE(e)}(e)||$M(e)||mE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var WM=function(e){return+setTimeout(e,16)},YM=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(WM=function(e){return window.requestAnimationFrame(e)},YM=function(e){return window.cancelAnimationFrame(e)});var qM=0,XM=new Map;function JM(e){XM.delete(e)}var ZM=function(e){var t=qM+=1;return function n(r){if(0===r)JM(t),e();else{var o=WM(function(){n(r-1)});XM.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function eI(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function tI(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function nI(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}ZM.cancel=function(e){var t=XM.get(e);return JM(e),YM(t)};var rI="data-rc-order",oI="data-rc-priority",iI=new Map;function aI(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function AI(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function sI(e){return Array.from((iI.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function lI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!tI())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),A="prependQueue"===a,s=document.createElement("style");s.setAttribute(rI,a),A&&i&&s.setAttribute(oI,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var l=AI(t),c=l.firstChild;if(r){if(A){var u=(t.styles||sI(l)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(rI)))return!1;var t=Number(e.getAttribute(oI)||0);return i>=t});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function cI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=AI(t);return(t.styles||sI(n)).find(function(n){return n.getAttribute(aI(t))===e})}function uI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=cI(e,t);n&&AI(t).removeChild(n)}function dI(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=AI(n),o=sI(r),i=hM(hM({},n),{},{styles:o});!function(e,t){var n=iI.get(e);if(!n||!nI(document,n)){var r=lI("",t),o=r.parentNode;iI.set(e,o),e.removeChild(r)}}(r,i);var a=cI(t,i);if(a){var A,s,l;if(null!==(A=i.csp)&&void 0!==A&&A.nonce&&a.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var c=lI(e,i);return c.setAttribute(aI(i),t),c}function pI(e,t){if(null==e)return{};var n,r,o=Gu(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function hI(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(dM(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var A=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var s=0;s<t.length;s++)if(!e(t[s],o[s],A))return!1;return!0}if(t&&o&&"object"===V(t)&&"object"===V(o)){var l=Object.keys(t);return l.length===Object.keys(o).length&&l.every(function(n){return e(t[n],o[n],A)})}return!1}(e,t)}function fI(e){return e.join("%")}var mI=function(){function e(t){j(this,e),ee(this,"instanceId",void 0),ee(this,"cache",new Map),ee(this,"extracted",new Set),this.instanceId=t}return W(e,[{key:"get",value:function(e){return this.opGet(fI(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(fI(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),gI="data-token-hash",yI="data-css-hash",vI="__cssinjs_instance__";const bI=C.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(yI,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[vI]=t[vI]||e,t[vI]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(yI,"]"))).forEach(function(t){var n,o=t.getAttribute(yI);r[o]?t[vI]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new mI(e)}(),defaultCache:!0});var wI=function(){function e(){j(this,e),ee(this,"cache",void 0),ee(this,"keys",void 0),ee(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return W(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=yE(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),i=yE(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();ee(wI,"MAX_CACHE_SIZE",20),ee(wI,"MAX_CACHE_OFFSET",5);var BI=0,CI=function(){function e(t){j(this,e),ee(this,"derivatives",void 0),ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=BI,0===t.length&&t.length,BI+=1}return W(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),xI=new wI;function EI(e){var t=Array.isArray(e)?e:[e];return xI.has(t)||xI.set(t,new CI(t)),xI.get(t)}var kI=new WeakMap,FI={};var SI=new WeakMap;function QI(e){var t=SI.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof CI?t+=r.id:r&&"object"===V(r)?t+=QI(r):t+=r}),t=eI(t),SI.set(e,t)),t}function UI(e,t){return eI("".concat(t,"_").concat(QI(e)))}var OI=tI();function TI(e){return"number"==typeof e?"".concat(e,"px"):e}function MI(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=hM(hM({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},ee(ee({},gI,t),yI,n)),o=Object.keys(r).map(function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var II=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},NI=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=yE(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},HI=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(e){var t,i,a=yE(e,2),A=a[0],s=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[A])o[A]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[A])){var l,c=II(A,null==n?void 0:n.prefix);r[c]="number"!=typeof s||null!=n&&null!==(l=n.unitless)&&void 0!==l&&l[A]?String(s):"".concat(s,"px"),o[A]="var(".concat(c,")")}}),[o,NI(r,t,{scope:null==n?void 0:n.scope})]},_I=tI()?C.useLayoutEffect:C.useEffect,PI=function(e,t){var n=C.useRef(!0);_I(function(){return e(n.current)},t),_I(function(){return n.current=!1,function(){n.current=!0}},[])},DI=hM({},C).useInsertionEffect;const LI=DI?function(e,t,n){return DI(function(){return e(),t()},n)}:function(e,t,n){C.useMemo(e,n),PI(function(){return t(!0)},n)};const RI=void 0!==hM({},C).useInsertionEffect?function(e){var t=[],n=!1;return C.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function zI(e,t,n,r,o){var i=C.useContext(bI).cache,a=fI([e].concat(GM(t))),A=RI([a]),s=function(e){i.opUpdate(a,function(t){var r=yE(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i})};C.useMemo(function(){s()},[a]);var l=i.opGet(a)[1];return LI(function(){null==o||o(l)},function(e){return s(function(t){var n=yE(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(l)),[r+1,i]}),function(){i.opUpdate(a,function(t){var n=yE(t||[],2),o=n[0],s=void 0===o?0:o,l=n[1];return 0===s-1?(A(function(){!e&&i.opGet(a)||null==r||r(l,!1)}),null):[s-1,l]})}},[a]),l}var KI={},jI=new Map;function VI(e,t){jI.set(e,(jI.get(e)||0)-1);var n=new Set;jI.forEach(function(e,t){e<=0&&n.add(t)}),jI.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(gI,'="').concat(e,'"]')).forEach(function(e){var n;e[vI]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),jI.delete(e)})}var $I="token";function GI(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=b.useContext(bI),o=r.cache.instanceId,i=r.container,a=n.salt,A=void 0===a?"":a,s=n.override,l=void 0===s?KI:s,c=n.formatToken,u=n.getComputedToken,d=n.cssVar,p=function(e,t){for(var n=kI,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(FI)||n.set(FI,e()),n.get(FI)}(function(){return Object.assign.apply(Object,[{}].concat(GM(t)))},t),h=QI(p),f=QI(l),m=d?QI(d):"",g=zI($I,[A,e.id,h,f,m],function(){var t,n=u?u(p,l,e):function(e,t,n,r){var o=hM(hM({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(p,l,e,c),r=hM({},n),o="";if(d){var i=yE(HI(n,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),2);n=i[0],o=i[1]}var a=UI(n,A);n._tokenKey=a,r._tokenKey=UI(r,A);var s=null!==(t=null==d?void 0:d.key)&&void 0!==t?t:a;n._themeKey=s,function(e){jI.set(e,(jI.get(e)||0)+1)}(s);var h="".concat("css","-").concat(eI(a));return n._hashId=h,[n,h,r,o,(null==d?void 0:d.key)||""]},function(e){VI(e[0]._themeKey,o)},function(e){var t=yE(e,4),n=t[0],r=t[3];if(d&&r){var a=dI(r,eI("css-variables-".concat(n._themeKey)),{mark:yI,prepend:"queue",attachTo:i,priority:-999});a[vI]=o,a.setAttribute(gI,n._themeKey)}});return g}var WI={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},YI="comm",qI="rule",XI="decl",JI=Math.abs,ZI=String.fromCharCode;function eN(e){return e.trim()}function tN(e,t,n){return e.replace(t,n)}function nN(e,t,n){return e.indexOf(t,n)}function rN(e,t){return 0|e.charCodeAt(t)}function oN(e,t,n){return e.slice(t,n)}function iN(e){return e.length}function aN(e,t){return t.push(e),e}var AN=1,sN=1,lN=0,cN=0,uN=0,dN="";function pN(e,t,n,r,o,i,a,A){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:AN,column:sN,length:a,return:"",siblings:A}}function hN(){return uN=cN>0?rN(dN,--cN):0,sN--,10===uN&&(sN=1,AN--),uN}function fN(){return uN=cN<lN?rN(dN,cN++):0,sN++,10===uN&&(sN=1,AN++),uN}function mN(){return rN(dN,cN)}function gN(){return cN}function yN(e,t){return oN(dN,e,t)}function vN(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bN(e){return eN(yN(cN-1,CN(91===e?e+2:40===e?e+1:e)))}function wN(e){for(;(uN=mN())&&uN<33;)fN();return vN(e)>2||vN(uN)>3?"":" "}function BN(e,t){for(;--t&&fN()&&!(uN<48||uN>102||uN>57&&uN<65||uN>70&&uN<97););return yN(e,gN()+(t<6&&32==mN()&&32==fN()))}function CN(e){for(;fN();)switch(uN){case e:return cN;case 34:case 39:34!==e&&39!==e&&CN(uN);break;case 40:41===e&&CN(e);break;case 92:fN()}return cN}function xN(e,t){for(;fN()&&e+uN!==57&&(e+uN!==84||47!==mN()););return"/*"+yN(t,cN-1)+"*"+ZI(47===e?e:fN())}function EN(e){for(;!vN(mN());)fN();return yN(e,cN)}function kN(e){return function(e){return dN="",e}(FN("",null,null,null,[""],e=function(e){return AN=sN=1,lN=iN(dN=e),cN=0,[]}(e),0,[0],e))}function FN(e,t,n,r,o,i,a,A,s){for(var l=0,c=0,u=a,d=0,p=0,h=0,f=1,m=1,g=1,y=0,v="",b=o,w=i,B=r,C=v;m;)switch(h=y,y=fN()){case 40:if(108!=h&&58==rN(C,u-1)){-1!=nN(C+=tN(bN(y),"&","&\f"),"&\f",JI(l?A[l-1]:0))&&(g=-1);break}case 34:case 39:case 91:C+=bN(y);break;case 9:case 10:case 13:case 32:C+=wN(h);break;case 92:C+=BN(gN()-1,7);continue;case 47:switch(mN()){case 42:case 47:aN(QN(xN(fN(),gN()),t,n,s),s),5!=vN(h||1)&&5!=vN(mN()||1)||!iN(C)||" "===oN(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*f:A[l++]=iN(C)*g;case 125*f:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:-1==g&&(C=tN(C,/\f/g,"")),p>0&&(iN(C)-u||0===f&&47===h)&&aN(p>32?UN(C+";",r,n,u-1,s):UN(tN(C," ","")+";",r,n,u-2,s),s);break;case 59:C+=";";default:if(aN(B=SN(C,t,n,l,c,o,A,v,b=[],w=[],u,i),i),123===y)if(0===c)FN(C,t,B,B,b,i,u,A,w);else{switch(d){case 99:if(110===rN(C,3))break;case 108:if(97===rN(C,2))break;default:c=0;case 100:case 109:case 115:}c?FN(e,B,B,r&&aN(SN(e,B,B,0,0,o,A,v,o,b=[],u,w),w),o,w,u,A,r?b:w):FN(C,B,B,B,[""],w,0,A,w)}}l=c=p=0,f=g=1,v=C="",u=a;break;case 58:u=1+iN(C),p=h;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==hN())continue;switch(C+=ZI(y),y*f){case 38:g=c>0?1:(C+="\f",-1);break;case 44:A[l++]=(iN(C)-1)*g,g=1;break;case 64:45===mN()&&(C+=bN(fN())),d=mN(),c=u=iN(v=C+=EN(gN())),y++;break;case 45:45===h&&2==iN(C)&&(f=0)}}return i}function SN(e,t,n,r,o,i,a,A,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),f=0,m=0,g=0;f<r;++f)for(var y=0,v=oN(e,d+1,d=JI(m=a[f])),b=e;y<h;++y)(b=eN(m>0?p[y]+" "+v:tN(v,/&\f/g,p[y])))&&(s[g++]=b);return pN(e,t,n,0===o?qI:A,s,l,c,u)}function QN(e,t,n,r){return pN(e,t,n,YI,ZI(uN),oN(e,2,-2),0,r)}function UN(e,t,n,r,o){return pN(e,t,n,XI,oN(e,0,r),oN(e,r+1,-1),r,o)}function ON(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function TN(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case XI:return e.return=e.return||e.value;case YI:return"";case"@keyframes":return e.return=e.value+"{"+ON(e.children,r)+"}";case qI:if(!iN(e.value=e.props.join(",")))return""}return iN(n=ON(e.children,r))?e.return=e.value+"{"+n+"}":""}var MN,IN="data-ant-cssinjs-cache-path",NN="_FILE_STYLE__",HN=!0;function _N(e){return function(){if(!MN&&(MN={},tI())){var e=document.createElement("div");e.className=IN,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=yE(e.split(":"),2),n=t[0],r=t[1];MN[n]=r});var n,r=document.querySelector("style[".concat(IN,"]"));r&&(HN=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!MN[e]}var PN="_multi_value_";function DN(e){return ON(kN(e),TN).replace(/\{%%%\:[^;];}/g,";")}function LN(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(GM(n.slice(1))).join(" ")}).join(",")}var RN=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,A=n.hashId,s=n.layer;n.path;var l=n.hashPriority,c=n.transformers,u=void 0===c?[]:c;n.linters;var d="",p={};function h(t){var r=t.getName(A);if(!p[r]){var o=yE(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(A)).concat(o)}}var f=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return f.forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)d+="".concat(r,"\n");else if(r._keyframe)h(r);else{var s=u.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(s).forEach(function(t){var r=s[t];if("object"!==V(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===V(e)&&e&&("_skip_check_"in e||PN in e)}(r)){let e=function(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;WI[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(A)),d+="".concat(n,":").concat(r,";")};var c,u=null!==(c=null==r?void 0:r.value)&&void 0!==c?c:r;"object"===V(r)&&null!=r&&r[PN]&&Array.isArray(u)?u.forEach(function(n){e(t,n)}):e(t,u)}else{var f=!1,m=t.trim(),g=!1;(o||i)&&A?m.startsWith("@")?f=!0:m=LN("&"===m?"":t,A,l):!o||A||"&"!==m&&""!==m||(m="",g=!0);var y=yE(e(r,n,{root:g,injectHash:f,parentSelectors:[].concat(GM(a),[m])}),2),v=y[0],b=y[1];p=hM(hM({},p),b),d+="".concat(m).concat(v)}})}}),o?s&&(d&&(d="@layer ".concat(s.name," {").concat(d,"}")),s.dependencies&&(p["@layer ".concat(s.name)]=s.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(s.name,";")}).join("\n"))):d="{".concat(d,"}"),[d,p]};function zN(e,t){return eI("".concat(e.join("%")).concat(t))}function KN(){return null}var jN="style";function VN(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,A=e.clientOnly,s=e.order,l=void 0===s?0:s,c=C.useContext(bI),u=c.autoClear;c.mock;var d=c.defaultCache,p=c.hashPriority,h=c.container,f=c.ssrInline,m=c.transformers,g=c.linters,y=c.cache,v=c.layer,b=n._tokenKey,w=[b];v&&w.push("layer"),w.push.apply(w,GM(r));var B=OI,x=zI(jN,w,function(){var e=w.join("|");if(_N(e)){var n=function(e){var t=MN[e],n=null;if(t&&tI())if(HN)n=NN;else{var r=document.querySelector("style[".concat(yI,'="').concat(MN[e],'"]'));r?n=r.innerHTML:delete MN[e]}return[n,t]}(e),a=yE(n,2),s=a[0],c=a[1];if(s)return[s,b,c,{},A,l]}var u=t(),d=yE(RN(u,{hashId:o,hashPriority:p,layer:v?i:void 0,path:r.join("-"),transformers:m,linters:g}),2),h=d[0],f=d[1],y=DN(h),B=zN(w,y);return[y,b,B,f,A,l]},function(e,t){var n=yE(e,3)[2];(t||u)&&OI&&uI(n,{mark:yI,attachTo:h})},function(e){var t=yE(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(B&&n!==NN){var i={mark:yI,prepend:!v&&"queue",attachTo:h,priority:l},A="function"==typeof a?a():a;A&&(i.csp={nonce:A});var s=[],c=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?s.push(e):c.push(e)}),s.forEach(function(e){dI(DN(o[e]),"_layer-".concat(e),hM(hM({},i),{},{prepend:!0}))});var u=dI(n,r,i);u[vI]=y.instanceId,u.setAttribute(gI,b),c.forEach(function(e){dI(DN(o[e]),"_effect-".concat(e),i)})}}),E=yE(x,3),k=E[0],F=E[1],S=E[2];return function(e){var t;return t=f&&!B&&d?C.createElement("style",$u({},ee(ee({},gI,F),yI,S),{dangerouslySetInnerHTML:{__html:k}})):C.createElement(KN,null),C.createElement(C.Fragment,null,t,e)}}var $N="cssVar";ee(ee(ee({},jN,function(e,t,n){var r=yE(e,6),o=r[0],i=r[1],a=r[2],A=r[3],s=r[4],l=r[5],c=(n||{}).plain;if(s)return null;var u=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return u=MI(o,i,a,d,c),A&&Object.keys(A).forEach(function(e){if(!t[e]){t[e]=!0;var n=MI(DN(A[e]),i,"_effect-".concat(e),d,c);e.startsWith("@layer")?u=n+u:u+=n}}),[l,a,u]}),$I,function(e,t,n){var r=yE(e,5),o=r[2],i=r[3],a=r[4],A=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,MI(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},A)]}),$N,function(e,t,n){var r=yE(e,4),o=r[1],i=r[2],a=r[3],A=(n||{}).plain;if(!o)return null;return[-999,i,MI(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},A)]});var GN=function(){function e(t,n){j(this,e),ee(this,"name",void 0),ee(this,"style",void 0),ee(this,"_keyframe",!0),this.name=t,this.style=n}return W(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function WN(e){return e.notSplit=!0,e}WN(["borderTop","borderBottom"]),WN(["borderTop"]),WN(["borderBottom"]),WN(["borderLeft","borderRight"]),WN(["borderLeft"]),WN(["borderRight"]);const YN=b.createContext({});function qN(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function XN(e,t,n,r){if(!t.length)return n;var o,i,a=hE(o=t)||$M(o)||mE(o)||gE(),A=a[0],s=a.slice(1);return i=e||"number"!=typeof A?Array.isArray(e)?GM(e):hM({},e):[],r&&void 0===n&&1===s.length?delete i[A][s[0]]:i[A]=XN(i[A],s,n,r),i}function JN(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!qN(e,t.slice(0,-1))?e:XN(e,t,n,r)}function ZN(e){return Array.isArray(e)?[]:{}}var eH="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function tH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=ZN(t[0]);return t.forEach(function(e){!function t(n,o){var i=new Set(o),a=qN(e,n),A=Array.isArray(a);if(A||function(e){return"object"===V(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}(a)){if(!i.has(a)){i.add(a);var s=qN(r,n);A?r=JN(r,n,[]):s&&"object"===V(s)||(r=JN(r,n,ZN(a))),eH(a).forEach(function(e){t([].concat(GM(n),[e]),i)})}}else r=JN(r,n,a)}([])}),r}const nH=C.createContext({}),rH=b.createContext(void 0);var oH=hM(hM({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const iH={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},aH={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},oH),timePickerLocale:Object.assign({},iH)},AH="${label} is not a valid ${type}",sH={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:aH,TimePicker:iH,Calendar:aH,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:AH,method:AH,array:AH,object:AH,number:AH,date:AH,boolean:AH,integer:AH,float:AH,regexp:AH,email:AH,url:AH,hex:AH},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let lH=Object.assign({},sH.Modal),cH=[];const uH=()=>cH.reduce((e,t)=>Object.assign(Object.assign({},e),t),sH.Modal);function dH(){return lH}const pH=b.createContext(void 0),hH=(e,t)=>{const n=C.useContext(pH),r=C.useMemo(()=>{var r;const o=t||sH[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[e,t,n]);return[r,C.useMemo(()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?sH.locale:e},[n])]},fH=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;C.useEffect(()=>{const e=function(e){if(e){const t=Object.assign({},e);return cH.push(t),lH=uH(),()=>{cH=cH.filter(e=>e!==t),lH=uH()}}lH=Object.assign({},sH.Modal)}(null==t?void 0:t.Modal);return e},[t]);const o=C.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return C.createElement(pH.Provider,{value:o},n)},mH={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},gH=Object.assign(Object.assign({},mH),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),yH=Math.round;function vH(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const bH=(e,t,n)=>0===n?e:e/100;function wH(e,t){const n=t||255;return e>n?n:e<0?0:e}class BH{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(ee(this,"isValid",!0),ee(this,"r",0),ee(this,"g",0),ee(this,"b",0),ee(this,"a",1),ee(this,"_h",void 0),ee(this,"_s",void 0),ee(this,"_l",void 0),ee(this,"_v",void 0),ee(this,"_max",void 0),ee(this,"_min",void 0),ee(this,"_brightness",void 0),e)if("string"==typeof e){let t=function(e){return n.startsWith(e)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):t("rgb")?this.fromRgbString(n):t("hsl")?this.fromHslString(n):(t("hsv")||t("hsb"))&&this.fromHsvString(n)}else if(e instanceof BH)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=wH(e.r),this.g=wH(e.g),this.b=wH(e.b),this.a="number"==typeof e.a?wH(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:yH(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:yH(o("r")),g:yH(o("g")),b:yH(o("b")),a:yH(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>yH((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=yH(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=yH(100*this.getSaturation()),n=yH(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=wH(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=yH(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const A=e/60,s=(1-Math.abs(2*n-1))*t,l=s*(1-Math.abs(A%2-1));A>=0&&A<1?(o=s,i=l):A>=1&&A<2?(o=l,i=s):A>=2&&A<3?(i=s,a=l):A>=3&&A<4?(i=l,a=s):A>=4&&A<5?(o=l,a=s):A>=5&&A<6&&(o=s,a=l);const c=n-s/2;this.r=yH(255*(o+c)),this.g=yH(255*(i+c)),this.b=yH(255*(a+c))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=yH(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),A=i-a,s=yH(n*(1-t)*255),l=yH(n*(1-t*A)*255),c=yH(n*(1-t*(1-A))*255);switch(a){case 0:this.g=c,this.b=s;break;case 1:this.r=l,this.b=s;break;case 2:this.r=s,this.b=c;break;case 3:this.r=s,this.g=l;break;case 4:this.r=c,this.g=s;break;default:this.g=s,this.b=l}}fromHsvString(e){const t=vH(e,bH);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=vH(e,bH);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=vH(e,(e,t)=>t.includes("%")?yH(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var CH=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function xH(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function EH(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function kH(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function FH(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new BH(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new BH({h:xH(o,i,!0),s:EH(o,i,!0),v:kH(o,i,!0)});n.push(a)}n.push(r);for(var A=1;A<=4;A+=1){var s=new BH({h:xH(o,A),s:EH(o,A),v:kH(o,A)});n.push(s)}return"dark"===t.theme?CH.map(function(e){var r=e.index,o=e.amount;return new BH(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var SH={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},QH=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];QH.primary=QH[5];var UH=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];UH.primary=UH[5];var OH=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];OH.primary=OH[5];var TH=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];TH.primary=TH[5];var MH=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];MH.primary=MH[5];var IH=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];IH.primary=IH[5];var NH=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];NH.primary=NH[5];var HH=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];HH.primary=HH[5];var _H=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];_H.primary=_H[5];var PH=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];PH.primary=PH[5];var DH=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];DH.primary=DH[5];var LH=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];LH.primary=LH[5];var RH=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];RH.primary=RH[5];var zH={red:QH,volcano:UH,orange:OH,gold:TH,yellow:MH,lime:IH,green:NH,cyan:HH,blue:_H,geekblue:PH,purple:DH,magenta:LH,grey:RH};const KH=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const jH=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function VH(e){return(e+8)/e}const $H=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:VH(e)}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],A=r[1],s=r[0],l=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:A,lineHeightLG:l,lineHeightSM:s,fontHeight:Math.round(A*o),fontHeightLG:Math.round(l*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const GH=(e,t)=>new BH(e).setA(t).toRgbString(),WH=(e,t)=>new BH(e).darken(t).toHexString(),YH=e=>{const t=FH(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},qH=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:GH(r,.88),colorTextSecondary:GH(r,.65),colorTextTertiary:GH(r,.45),colorTextQuaternary:GH(r,.25),colorFill:GH(r,.15),colorFillSecondary:GH(r,.06),colorFillTertiary:GH(r,.04),colorFillQuaternary:GH(r,.02),colorBgSolid:GH(r,1),colorBgSolidHover:GH(r,.75),colorBgSolidActive:GH(r,.95),colorBgLayout:WH(n,4),colorBgContainer:WH(n,0),colorBgElevated:WH(n,0),colorBgSpotlight:GH(r,.85),colorBgBlur:"transparent",colorBorder:WH(n,15),colorBorderSecondary:WH(n,6)}};const XH=EI(function(e){SH.pink=SH.magenta,zH.pink=zH.magenta;const t=Object.keys(mH).map(t=>{const n=e[t]===SH[t]?zH[t]:FH(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:A,colorBgBase:s,colorTextBase:l}=e,c=t(A),u=t(r),d=t(o),p=t(i),h=t(a),f=n(s,l),m=t(e.colorLink||e.colorInfo),g=new BH(p[1]).mix(new BH(p[3]),50).toHexString();return Object.assign(Object.assign({},f),{colorPrimaryBg:c[1],colorPrimaryBgHover:c[2],colorPrimaryBorder:c[3],colorPrimaryBorderHover:c[4],colorPrimaryHover:c[5],colorPrimary:c[6],colorPrimaryActive:c[7],colorPrimaryTextHover:c[8],colorPrimaryText:c[9],colorPrimaryTextActive:c[10],colorSuccessBg:u[1],colorSuccessBgHover:u[2],colorSuccessBorder:u[3],colorSuccessBorderHover:u[4],colorSuccessHover:u[4],colorSuccess:u[6],colorSuccessActive:u[7],colorSuccessTextHover:u[8],colorSuccessText:u[9],colorSuccessTextActive:u[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:g,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new BH("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:YH,generateNeutralColorPalettes:qH})),$H(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),jH(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},KH(r))}(e))}),JH=XH,ZH={token:gH,override:{override:gH},hashed:!0},e_=b.createContext(ZH),t_="ant",n_="anticon",r_=C.createContext({getPrefixCls:(e,t)=>t||(e?`${t_}-${e}`:t_),iconPrefixCls:n_}),o_={};function i_(e){const t=C.useContext(r_),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:o_,styles:o_},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const a_=`-ant-${Date.now()}-${Math.random()}`;function A_(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new BH(e),i=FH(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new BH(t.primaryColor),i=FH(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setA(.12*e.a));const a=new BH(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n  :root {\n    ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n  }\n  `.trim()}(e,t);tI()&&dI(n,`${a_}-dynamic-theme`)}const s_=C.createContext(!1),l_=({children:e,disabled:t})=>{const n=C.useContext(s_);return C.createElement(s_.Provider,{value:null!=t?t:n},e)},c_=s_,u_=C.createContext(void 0),d_=({children:e,size:t})=>{const n=C.useContext(u_);return C.createElement(u_.Provider,{value:t||n},e)},p_=u_;var h_=W(function e(){j(this,e)}),f_="CALC_UNIT",m_=new RegExp(f_,"g");function g_(e){return"number"==typeof e?"".concat(e).concat(f_):e}var y_=function(e){Z(n,e);var t=VM(n);function n(e,r){var o;j(this,n),ee(Y(o=t.call(this)),"result",""),ee(Y(o),"unitlessCssVar",void 0),ee(Y(o),"lowPriority",void 0);var i=V(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=g_(e):"string"===i&&(o.result=e),o}return W(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(g_(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(g_(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(m_,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(h_),v_=function(e){Z(n,e);var t=VM(n);function n(e){var r;return j(this,n),ee(Y(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return W(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(h_),b_=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function w_(e){var t=C.useRef();t.current=e;var n=C.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return n}function B_(e){var t=C.useRef(!1),n=yE(C.useState(e),2),r=n[0],o=n[1];return C.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[r,function(e,n){n&&t.current||o(e)}]}function C_(e,t,n,r){var o=hM({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=yE(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))});var i=hM(hM({},n),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i}var x_="undefined"!=typeof CSSINJS_STATISTIC,E_=!0;function k_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!x_)return Object.assign.apply(Object,[{}].concat(t));E_=!1;var r={};return t.forEach(function(e){"object"===V(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),E_=!0,r}var F_={};function S_(){}function Q_(e,t,n){var r;return"function"==typeof n?n(k_(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var U_=function(){function e(){j(this,e),ee(this,"map",new Map),ee(this,"objectIDMap",new WeakMap),ee(this,"nextID",0),ee(this,"lastAccessBeat",new Map),ee(this,"accessBeat",0)}return W(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===V(e)?"obj_".concat(t.getObjectID(e)):"".concat(V(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}(),O_=new U_;var T_=function(){return{}};const M_=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function I_(e){return e>=0&&e<=255}function N_(e,t){const{r:n,g:r,b:o,a:i}=new BH(e).toRgb();if(i<1)return e;const{r:a,g:A,b:s}=new BH(t).toRgb();for(let l=.01;l<=1;l+=.01){const e=Math.round((n-a*(1-l))/l),t=Math.round((r-A*(1-l))/l),i=Math.round((o-s*(1-l))/l);if(I_(e)&&I_(t)&&I_(i))return new BH({r:e,g:t,b:i,a:Math.round(100*l)/100}).toRgbString()}return new BH({r:n,g:r,b:o,a:1}).toRgbString()}var H_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function __(e){const{override:t}=e,n=H_(e,["override"]),r=Object.assign({},t);Object.keys(gH).forEach(e=>{delete r[e]});const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:N_(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:N_(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:N_(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:N_(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n      0 1px 2px -2px ${new BH("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new BH("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new BH("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var P_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const D_={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},L_={motionBase:!0,motionUnit:!0},R_={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},z_=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=P_(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=__(a),i&&Object.entries(i).forEach(([e,t])=>{const{theme:n}=t,r=P_(t,["theme"]);let o=r;n&&(o=z_(Object.assign(Object.assign({},a),r),{override:r},n)),a[e]=o}),a};function K_(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=b.useContext(e_),i=`5.29.3-${t||""}`,a=n||JH,[A,s,l]=GI(a,[gH,e],{salt:i,override:r,getComputedToken:z_,formatToken:__,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:D_,ignore:L_,preserve:R_}});return[a,l,t?s:"",A,o]}const j_=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),V_=(e,t)=>({outline:`${TI(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),$_=(e,t)=>({"&:focus-visible":V_(e,t)}),G_=e=>({[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:W_,genComponentStyleHook:Y_,genSubStyleComponent:q_}=function(e){var t=e.useCSP,n=void 0===t?T_:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,A=e.getCompUnitless;function s(t,A,s){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=Array.isArray(t)?t:[t,t],u=yE(c,1)[0],d=c.join("-"),p=e.layer||{name:"antd"};return function(e){var t,c,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,f=r(),m=f.theme,g=f.realToken,y=f.hashId,v=f.token,w=f.cssVar,B=o(),C=B.rootPrefixCls,x=B.iconPrefixCls,E=n(),k=w?"css":"js",F=(t=function(){var e=new Set;return w&&Object.keys(l.unitless||{}).forEach(function(t){e.add(II(t,w.prefix)),e.add(II(t,b_(u,w.prefix)))}),function(e,t){var n="css"===e?y_:v_;return function(e){return new n(e,t)}}(k,e)},c=[k,u,null==w?void 0:w.prefix],b.useMemo(function(){var e=O_.get(c);if(e)return e;var n=t();return O_.set(c,n),n},c)),S=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return TI(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return TI(e)}).join(","),")")}}}(k),Q=S.max,U=S.min,O={theme:m,token:v,hashId:y,nonce:function(){return E.nonce},clientOnly:l.clientOnly,layer:p,order:l.order||-999};"function"==typeof i&&VN(hM(hM({},O),{},{clientOnly:!1,path:["Shared",C]}),function(){return i(v,{prefix:{rootPrefixCls:C,iconPrefixCls:x},csp:E})});var T=VN(hM(hM({},O),{},{path:[d,e,x]}),function(){if(!1===l.injectStyle)return[];var t=function(e){var t,n=e,r=S_;return x_&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return E_&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;F_[e]={global:Array.from(t),component:hM(hM({},null===(r=F_[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(v),n=t.token,r=t.flush,o=Q_(u,g,s),i=".".concat(e),c=C_(u,g,o,{deprecatedTokens:l.deprecatedTokens});w&&o&&"object"===V(o)&&Object.keys(o).forEach(function(e){o[e]="var(".concat(II(e,b_(u,w.prefix)),")")});var d=k_(n,{componentCls:i,prefixCls:e,iconCls:".".concat(x),antCls:".".concat(C),calc:F,max:Q,min:U},w?o:c),p=A(d,{hashId:y,prefixCls:e,rootPrefixCls:C,iconPrefixCls:x});r(u,c);var f="function"==typeof a?a(d,e,h,l.resetFont):null;return[!1===l.resetStyle?null:f,p]});return[T,y]}}return{genStyleHooks:function(e,t,n,o){var i=Array.isArray(e)?e[0]:e;function a(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var l=(null==o?void 0:o.unitless)||{},c=hM(hM({},"function"==typeof A?A(e):{}),{},ee({},a("zIndexPopup"),!0));Object.keys(l).forEach(function(e){c[a(e)]=l[e]});var u=hM(hM({},o),{},{unitless:c,prefixToken:a}),d=s(e,t,n,u),p=function(e,t,n){var o=n.unitless,i=n.injectStyle,a=void 0===i||i,A=n.prefixToken,s=n.ignore,l=function(i){var a=i.rootCls,l=i.cssVar,c=void 0===l?{}:l,u=r().realToken;return function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,A=e.scope,s=void 0===A?"":A,l=b.useContext(bI),c=l.cache.instanceId,u=l.container,d=a._tokenKey,p=[].concat(GM(e.path),[n,s,d]);zI($N,p,function(){var e=t(),a=yE(HI(e,n,{prefix:r,unitless:o,ignore:i,scope:s}),2),A=a[0],l=a[1];return[A,l,zN(p,l),n]},function(e){var t=yE(e,3)[2];OI&&uI(t,{mark:yI,attachTo:u})},function(e){var t=yE(e,3),r=t[1],o=t[2];if(r){var i=dI(r,o,{mark:yI,prepend:"queue",attachTo:u,priority:-999});i[vI]=c,i.setAttribute(gI,n)}})}({path:[e],prefix:c.prefix,key:c.key,unitless:o,ignore:s,token:u,scope:a},function(){var r=Q_(e,u,t),o=C_(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(function(e){o[A(e)]=o[e],delete o[e]}),o}),null},c=function(t){var n=r().cssVar;return[function(r){return a&&n?b.createElement(b.Fragment,null,b.createElement(l,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return c}(i,n,u);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=yE(d(e,t),2)[1],r=yE(p(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,hM({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=b.useContext(r_);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=K_();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=b.useContext(r_);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const r=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[r,{"&":r},G_(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:n_)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let A={};return!1!==r&&(A={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},A),a),{[o]:a})}},getCompUnitless:()=>D_}),X_=(e,t)=>{const[n,r]=K_();return VN({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>G_(e))},J_=Object.assign({},C),{useId:Z_}=J_,eP=void 0===Z_?()=>"":Z_;var tP=["children"],nP=C.createContext({});function rP(e){var t=e.children,n=pI(e,tP);return C.createElement(nP.Provider,{value:n},t)}var oP=function(e){Z(n,e);var t=VM(n);function n(){return j(this,n),t.apply(this,arguments)}return W(n,[{key:"render",value:function(){return this.props.children}}]),n}(C.Component);var iP="none",aP="appear",AP="enter",sP="leave",lP="none",cP="prepare",uP="start",dP="active",pP="end",hP="prepared";function fP(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var mP,gP,yP,vP=(mP=tI(),gP="undefined"!=typeof window?window:{},yP={animationend:fP("Animation","AnimationEnd"),transitionend:fP("Transition","TransitionEnd")},mP&&("AnimationEvent"in gP||delete yP.animationend.animation,"TransitionEvent"in gP||delete yP.transitionend.transition),yP),bP={};if(tI()){var wP=document.createElement("div");bP=wP.style}var BP={};function CP(e){if(BP[e])return BP[e];var t=vP[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in bP)return BP[e]=t[i],BP[e]}return""}var xP=CP("animationend"),EP=CP("transitionend"),kP=!(!xP||!EP),FP=xP||"animationend",SP=EP||"transitionend";function QP(e,t){return e?"object"===V(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}var UP=tI()?b.useLayoutEffect:b.useEffect;var OP=[cP,uP,dP,pP],TP=[cP,hP],MP=!1;function IP(e){return e===dP||e===pP}const NP=function(e,t,n){var r=yE(B_(lP),2),o=r[0],i=r[1],a=function(){var e=C.useRef(null);function t(){ZM.cancel(e.current)}return C.useEffect(function(){return function(){t()}},[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=ZM(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]}(),A=yE(a,2),s=A[0],l=A[1];var c=t?TP:OP;return UP(function(){if(o!==lP&&o!==pP){var e=c.indexOf(o),t=c[e+1],r=n(o);r===MP?i(t,!0):t&&s(function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,o]),C.useEffect(function(){return function(){l()}},[]),[function(){i(cP,!0)},o]};function HP(e,t,n,r){var o,i,a,A=r.motionEnter,s=void 0===A||A,l=r.motionAppear,c=void 0===l||l,u=r.motionLeave,d=void 0===u||u,p=r.motionDeadline,h=r.motionLeaveImmediately,f=r.onAppearPrepare,m=r.onEnterPrepare,g=r.onLeavePrepare,y=r.onAppearStart,v=r.onEnterStart,w=r.onLeaveStart,B=r.onAppearActive,x=r.onEnterActive,E=r.onLeaveActive,k=r.onAppearEnd,F=r.onEnterEnd,S=r.onLeaveEnd,Q=r.onVisibleChanged,U=yE(B_(),2),O=U[0],T=U[1],M=(o=iP,i=yE(C.useReducer(function(e){return e+1},0),2)[1],a=C.useRef(o),[w_(function(){return a.current}),w_(function(e){a.current="function"==typeof e?e(a.current):e,i()})]),I=yE(M,2),N=I[0],H=I[1],_=yE(B_(null),2),P=_[0],D=_[1],L=N(),R=b.useRef(!1),z=b.useRef(null);function K(){return n()}var j=b.useRef(!1);function V(){H(iP),D(null,!0)}var $=w_(function(e){var t=N();if(t!==iP){var n=K();if(!e||e.deadline||e.target===n){var r,o=j.current;t===aP&&o?r=null==k?void 0:k(n,e):t===AP&&o?r=null==F?void 0:F(n,e):t===sP&&o&&(r=null==S?void 0:S(n,e)),o&&!1!==r&&V()}}}),G=function(e){var t=b.useRef();function n(t){t&&(t.removeEventListener(SP,e),t.removeEventListener(FP,e))}return C.useEffect(function(){return function(){n(t.current)}},[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(SP,e),r.addEventListener(FP,e),t.current=r)},n]}($),W=yE(G,1)[0],Y=function(e){switch(e){case aP:return ee(ee(ee({},cP,f),uP,y),dP,B);case AP:return ee(ee(ee({},cP,m),uP,v),dP,x);case sP:return ee(ee(ee({},cP,g),uP,w),dP,E);default:return{}}},q=C.useMemo(function(){return Y(L)},[L]),X=yE(NP(L,!e,function(e){if(e===cP){var t=q[cP];return t?t(K()):MP}var n;Z in q&&D((null===(n=q[Z])||void 0===n?void 0:n.call(q,K(),null))||null);return Z===dP&&L!==iP&&(W(K()),p>0&&(clearTimeout(z.current),z.current=setTimeout(function(){$({deadline:!0})},p))),Z===hP&&V(),true}),2),J=X[0],Z=X[1],te=IP(Z);j.current=te;var ne=b.useRef(null);UP(function(){if(!R.current||ne.current!==t){T(t);var n,r=R.current;R.current=!0,!r&&t&&c&&(n=aP),r&&t&&s&&(n=AP),(r&&!t&&d||!r&&h&&!t&&d)&&(n=sP);var o=Y(n);n&&(e||o[cP])?(H(n),J()):H(iP),ne.current=t}},[t]),b.useEffect(function(){(L===aP&&!c||L===AP&&!s||L===sP&&!d)&&H(iP)},[c,s,d]),b.useEffect(function(){return function(){R.current=!1,clearTimeout(z.current)}},[]);var re=C.useRef(!1);b.useEffect(function(){O&&(re.current=!0),void 0!==O&&L===iP&&((re.current||O)&&(null==Q||Q(O)),re.current=!0)},[O,L]);var oe=P;return q[cP]&&Z===uP&&(oe=hM({transition:"none"},oe)),[L,Z,oe,null!=O?O:t]}const _P=function(e){var t=e;"object"===V(e)&&(t=e.transitionSupport);var n=C.forwardRef(function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,A=e.forceRender,s=e.children,l=e.motionName,c=e.leavedClassName,u=e.eventProps,d=function(e,n){return!(!e.motionName||!t||!1===n)}(e,C.useContext(nP).motion),p=b.useRef(),h=b.useRef();var f=yE(HP(d,o,function(){try{return p.current instanceof HTMLElement?p.current:mM(h.current)}catch(e){return null}},e),4),m=f[0],g=f[1],y=f[2],v=f[3],w=C.useRef(v);v&&(w.current=!0);var B,x=C.useCallback(function(e){p.current=e,PM(n,e)},[n]),E=hM(hM({},u),{},{visible:o});if(s)if(m===iP)B=v?s(hM({},E),x):!a&&w.current&&c?s(hM(hM({},E),{},{className:c}),x):A||!a&&!c?s(hM(hM({},E),{},{style:{display:"none"}}),x):null;else{var k;g===cP?k="prepare":IP(g)?k="active":g===uP&&(k="start");var F=QP(l,"".concat(m,"-").concat(k));B=s(hM(hM({},E),{},{className:_n(QP(l,m),ee(ee({},F,F&&k),l,"string"==typeof l)),style:y}),x)}else B=null;C.isValidElement(B)&&RM(B)&&(KM(B)||(B=C.cloneElement(B,{ref:x})));return C.createElement(oP,{ref:h},B)});return n.displayName="CSSMotion",n}(kP);var PP="add",DP="keep",LP="remove",RP="removed";function zP(e){var t;return hM(hM({},t=e&&"object"===V(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function KP(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(zP)}var jP=["component","children","onVisibleChanged","onAllRemoved"],VP=["status"],$P=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const GP=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_P,t=function(t){Z(r,t);var n=VM(r);function r(){var e;j(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return ee(Y(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),ee(Y(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:hM(hM({},e),{},{status:RP})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==RP}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return W(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged;r.onAllRemoved;var A=pI(r,jP),s=o||C.Fragment,l={};return $P.forEach(function(e){l[e]=A[e],delete A[e]}),delete A.keys,C.createElement(s,A,n.map(function(n,r){var o=n.status,A=pI(n,VP),s=o===PP||o===DP;return C.createElement(e,$u({},l,{key:A.key,visible:s,eventProps:A,onVisibleChanged:function(e){null==a||a(e,{key:A.key}),e||t.removeKey(A.key)}}),function(e,t){return i(hM(hM({},e),{},{index:r}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=KP(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=KP(e),a=KP(t);i.forEach(function(e){for(var t=!1,i=r;i<o;i+=1){var A=a[i];if(A.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(function(e){return hM(hM({},e),{},{status:PP})})),r=i),n.push(hM(hM({},A),{},{status:DP})),r+=1,t=!0;break}}t||n.push(hM(hM({},e),{},{status:LP}))}),r<o&&(n=n.concat(a.slice(r).map(function(e){return hM(hM({},e),{},{status:PP})})));var A={};return n.forEach(function(e){var t=e.key;A[t]=(A[t]||0)+1}),Object.keys(A).filter(function(e){return A[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==LP})).forEach(function(t){t.key===e&&(t.status=DP)})}),n}(r,o);return{keyEntities:i.filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==RP||e.status!==LP})}}}]),r}(C.Component);return ee(t,"defaultProps",{component:"div"}),t}(kP),WP=C.createContext(!0);function YP(e){const t=C.useContext(WP),{children:n}=e,[,r]=K_(),{motion:o}=r,i=C.useRef(!1);return i.current||(i.current=t!==o),i.current?C.createElement(WP.Provider,{value:o},C.createElement(rP,{motion:o},n)):n}const qP=()=>null;var XP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const JP=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ZP,eD,tD,nD;function rD(){return ZP||t_}function oD(){return eD||n_}const iD=()=>({getPrefixCls:(e,t)=>t||(e?`${rD()}-${e}`:rD()),getIconPrefixCls:oD,getRootPrefixCls:()=>ZP||rD(),getTheme:()=>tD,holderRender:nD}),aD=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:A,componentSize:s,direction:l,space:c,splitter:u,virtual:d,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:f,legacyLocale:m,parentContext:g,iconPrefixCls:y,theme:v,componentDisabled:b,segmented:w,statistic:B,spin:x,calendar:E,carousel:k,cascader:F,collapse:S,typography:Q,checkbox:U,descriptions:O,divider:T,drawer:M,skeleton:I,steps:N,image:H,layout:_,list:P,mentions:D,modal:L,progress:R,result:z,slider:K,breadcrumb:j,menu:V,pagination:$,input:G,textArea:W,empty:Y,badge:q,radio:X,rate:J,switch:Z,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:Ae,timePicker:se,upload:le,notification:ce,tree:ue,colorPicker:de,datePicker:pe,rangePicker:he,flex:fe,wave:me,dropdown:ge,warning:ye,tour:ve,tooltip:be,popover:we,popconfirm:Be,floatButton:Ce,floatButtonGroup:xe,variant:Ee,inputNumber:ke,treeSelect:Fe}=e,Se=C.useCallback((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||g.getPrefixCls("");return t?`${o}-${t}`:o},[g.getPrefixCls,e.prefixCls]),Qe=y||g.iconPrefixCls||n_,Ue=n||g.csp;X_(Qe,Ue);const Oe=function(e,t,n){var r;const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},ZH),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:ZH.hashed,cssVar:null==t?void 0:t.cssVar}),a=eP();return HM(()=>{var r,A;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])});const l=`css-var-${a.replace(/:/g,"")}`,c=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(A=o.cssVar)||void 0===A?void 0:A.key)||l});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:s,cssVar:c})},[o,i],(e,t)=>e.some((e,n)=>!hI(e,t[n],!0)))}(v,g.theme,{prefixCls:Se("")}),Te={csp:Ue,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:A||m,direction:l,space:c,splitter:u,virtual:d,popupMatchSelectWidth:null!=h?h:p,popupOverflow:f,getPrefixCls:Se,iconPrefixCls:Qe,theme:Oe,segmented:w,statistic:B,spin:x,calendar:E,carousel:k,cascader:F,collapse:S,typography:Q,checkbox:U,descriptions:O,divider:T,drawer:M,skeleton:I,steps:N,image:H,input:G,textArea:W,layout:_,list:P,mentions:D,modal:L,progress:R,result:z,slider:K,breadcrumb:j,menu:V,pagination:$,empty:Y,badge:q,radio:X,rate:J,switch:Z,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:Ae,timePicker:se,upload:le,notification:ce,tree:ue,colorPicker:de,datePicker:pe,rangePicker:he,flex:fe,wave:me,dropdown:ge,warning:ye,tour:ve,tooltip:be,popover:we,popconfirm:Be,floatButton:Ce,floatButtonGroup:xe,variant:Ee,inputNumber:ke,treeSelect:Fe},Me=Object.assign({},g);Object.keys(Te).forEach(e=>{void 0!==Te[e]&&(Me[e]=Te[e])}),JP.forEach(t=>{const n=e[t];n&&(Me[t]=n)}),void 0!==r&&(Me.button=Object.assign({autoInsertSpace:r},Me.button));const Ie=HM(()=>Me,Me,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:Ne}=C.useContext(bI),He=C.useMemo(()=>({prefixCls:Qe,csp:Ue,layer:Ne?"antd":void 0}),[Qe,Ue,Ne]);let _e=C.createElement(C.Fragment,null,C.createElement(qP,{dropdownMatchSelectWidth:p}),t);const Pe=C.useMemo(()=>{var e,t,n,r;return tH((null===(e=sH.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ie.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ie.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})},[Ie,null==a?void 0:a.validateMessages]);Object.keys(Pe).length>0&&(_e=C.createElement(rH.Provider,{value:Pe},_e)),A&&(_e=C.createElement(fH,{locale:A,_ANT_MARK__:"internalMark"},_e)),(Qe||Ue)&&(_e=C.createElement(YN.Provider,{value:He},_e)),s&&(_e=C.createElement(d_,{size:s},_e)),_e=C.createElement(YP,null,_e);const De=C.useMemo(()=>{const e=Oe||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=XP(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?EI(t):JH,A={};Object.entries(r||{}).forEach(([e,t])=>{const n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=EI(n.algorithm)),delete n.algorithm),A[e]=n});const s=Object.assign(Object.assign({},gH),n);return Object.assign(Object.assign({},i),{theme:a,token:s,components:A,override:Object.assign({override:s},A),cssVar:o})},[Oe]);return v&&(_e=C.createElement(e_.Provider,{value:De},_e)),Ie.warning&&(_e=C.createElement(nH.Provider,{value:Ie.warning},_e)),void 0!==b&&(_e=C.createElement(l_,{disabled:b},_e)),C.createElement(r_.Provider,{value:Ie},_e)},AD=e=>{const t=C.useContext(r_),n=C.useContext(pH);return C.createElement(aD,Object.assign({parentContext:t,legacyLocale:n},e))};AD.ConfigContext=r_,AD.SizeContext=p_,AD.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(ZP=t),void 0!==n&&(eD=n),"holderRender"in e&&(nD=o),r&&(!function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(r)?tD=r:A_(rD(),r))},AD.useConfig=function(){return{componentDisabled:b.useContext(c_),componentSize:b.useContext(p_)}},Object.defineProperty(AD,"SizeContext",{get:()=>p_});const sD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function lD(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function cD(e){return function(e){return lD(e)instanceof ShadowRoot}(e)?lD(e):null}function uD(e){return"object"===V(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===V(e.icon)||"function"==typeof e.icon)}function dD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=o;return t},{})}function pD(e,t,n){return n?b.createElement(e.tag,hM(hM({key:t},dD(e.attrs)),n),(e.children||[]).map(function(n,r){return pD(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):b.createElement(e.tag,hM({key:t},dD(e.attrs)),(e.children||[]).map(function(n,r){return pD(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function hD(e){return FH(e)[0]}function fD(e){return e?Array.isArray(e)?e:[e]:[]}var mD=["icon","className","onClick","style","primaryColor","secondaryColor"],gD={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var yD=function(e){var t,n,r,o,i,a,A,s,l=e.icon,c=e.className,u=e.onClick,d=e.style,p=e.primaryColor,h=e.secondaryColor,f=pI(e,mD),m=C.useRef(),g=gD;if(p&&(g={primaryColor:p,secondaryColor:h||hD(p)}),t=m,n=b.useContext(YN),r=n.csp,o=n.prefixCls,i=n.layer,a="\n.anticon {\n  display: inline-flex;\n  align-items: center;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n",o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i," {\n").concat(a,"\n}")),b.useEffect(function(){var e=cD(t.current);dI(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:e})},[]),A=uD(l),s="icon should be icon definiton, but got ".concat(l),dM(A,"[@ant-design/icons] ".concat(s)),!uD(l))return null;var y=l;return y&&"function"==typeof y.icon&&(y=hM(hM({},y),{},{icon:y.icon(g.primaryColor,g.secondaryColor)})),pD(y.icon,"svg-".concat(y.name),hM(hM({className:c,onClick:u,style:d,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:m}))};yD.displayName="IconReact",yD.getTwoToneColors=function(){return hM({},gD)},yD.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;gD.primaryColor=t,gD.secondaryColor=n||hD(t),gD.calculated=!!n};const vD=yD;function bD(e){var t=yE(fD(e),2),n=t[0],r=t[1];return vD.setTwoToneColors({primaryColor:n,secondaryColor:r})}var wD=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];bD(_H.primary);var BD=C.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,A=e.onClick,s=e.twoToneColor,l=pI(e,wD),c=C.useContext(YN),u=c.prefixCls,d=void 0===u?"anticon":u,p=c.rootClassName,h=_n(p,d,ee(ee({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||"loading"===r.name),n),f=a;void 0===f&&A&&(f=-1);var m=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,g=yE(fD(s),2),y=g[0],v=g[1];return C.createElement("span",$u({role:"img","aria-label":r.name},l,{ref:t,tabIndex:f,onClick:A,className:h}),C.createElement(vD,{icon:r,primaryColor:y,secondaryColor:v,style:m}))});BD.displayName="AntdIcon",BD.getTwoToneColor=function(){var e=vD.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},BD.setTwoToneColor=bD;const CD=BD;var xD=function(e,t){return C.createElement(CD,$u({},e,{ref:t,icon:sD}))};const ED=C.forwardRef(xD);const kD={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var FD=function(e,t){return C.createElement(CD,$u({},e,{ref:t,icon:kD}))};const SD=C.forwardRef(FD);const QD={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var UD=function(e,t){return C.createElement(CD,$u({},e,{ref:t,icon:QD}))};const OD=C.forwardRef(UD);const TD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var MD=function(e,t){return C.createElement(CD,$u({},e,{ref:t,icon:TD}))};const ID=C.forwardRef(MD);const ND={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var HD=function(e,t){return C.createElement(CD,$u({},e,{ref:t,icon:ND}))};const _D=C.forwardRef(HD);var PD="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function DD(e,t){return 0===e.indexOf(t)}function LD(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:hM({},n);var r={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||DD(n,"aria-"))||t.data&&DD(n,"data-")||t.attr&&PD.includes(n))&&(r[n]=e[n])}),r}function RD(e,t){return((e,t,n)=>b.isValidElement(e)?b.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}const zD=e=>{const[,,,,t]=K_();return t?`${e}-css-var`:""};var KD={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=KD.F1&&t<=KD.F12)return!1;switch(t){case KD.ALT:case KD.CAPS_LOCK:case KD.CONTEXT_MENU:case KD.CTRL:case KD.DOWN:case KD.END:case KD.ESC:case KD.HOME:case KD.INSERT:case KD.LEFT:case KD.MAC_FF_META:case KD.META:case KD.NUMLOCK:case KD.NUM_CENTER:case KD.PAGE_DOWN:case KD.PAGE_UP:case KD.PAUSE:case KD.PRINT_SCREEN:case KD.RIGHT:case KD.SHIFT:case KD.UP:case KD.WIN_KEY:case KD.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=KD.ZERO&&e<=KD.NINE)return!0;if(e>=KD.NUM_ZERO&&e<=KD.NUM_MULTIPLY)return!0;if(e>=KD.A&&e<=KD.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case KD.SPACE:case KD.QUESTION_MARK:case KD.NUM_PLUS:case KD.NUM_MINUS:case KD.NUM_PERIOD:case KD.NUM_DIVISION:case KD.SEMICOLON:case KD.DASH:case KD.EQUALS:case KD.COMMA:case KD.PERIOD:case KD.SLASH:case KD.APOSTROPHE:case KD.SINGLE_QUOTE:case KD.OPEN_SQUARE_BRACKET:case KD.BACKSLASH:case KD.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},jD=C.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=void 0===i?4.5:i,A=e.showProgress,s=e.pauseOnHover,l=void 0===s||s,c=e.eventKey,u=e.content,d=e.closable,p=e.closeIcon,h=void 0===p?"x":p,f=e.props,m=e.onClick,g=e.onNoticeClose,y=e.times,v=e.hovering,b=yE(C.useState(!1),2),w=b[0],B=b[1],x=yE(C.useState(0),2),E=x[0],k=x[1],F=yE(C.useState(0),2),S=F[0],Q=F[1],U=v||w,O=a>0&&A,T=function(){g(c)};C.useEffect(function(){if(!U&&a>0){var e=Date.now()-S,t=setTimeout(function(){T()},1e3*a-S);return function(){l&&clearTimeout(t),Q(Date.now()-e)}}},[a,U,y]),C.useEffect(function(){if(!U&&O&&(l||0===S)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var r=e+S-t,o=Math.min(r/(1e3*a),1);k(100*o),o<1&&n()})}(),function(){l&&cancelAnimationFrame(e)}}},[a,S,U,O,y]);var M=C.useMemo(function(){return"object"===V(d)&&null!==d?d:d?{closeIcon:h}:{}},[d,h]),I=LD(M,!0),N=100-(!E||E<0?0:E>100?100:E),H="".concat(n,"-notice");return C.createElement("div",$u({},f,{ref:t,className:_n(H,o,ee({},"".concat(H,"-closable"),d)),style:r,onMouseEnter:function(e){var t;B(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;B(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:m}),C.createElement("div",{className:"".concat(H,"-content")},u),d&&C.createElement("a",$u({tabIndex:0,className:"".concat(H,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==KD.ENTER||T()},"aria-label":"Close"},I,{onClick:function(e){e.preventDefault(),e.stopPropagation(),T()}}),M.closeIcon),O&&C.createElement("progress",{className:"".concat(H,"-progress"),max:"100",value:N},N+"%"))}),VD=b.createContext({}),$D=function(e){var t=e.children,n=e.classNames;return b.createElement(VD.Provider,{value:{classNames:n}},t)},GD=["className","style","classNames","styles"],WD=function(e){var t,n,r,o,i,a=e.configList,A=e.placement,s=e.prefixCls,l=e.className,c=e.style,u=e.motion,d=e.onAllNoticeRemoved,p=e.onNoticeClose,h=e.stack,f=b.useContext(VD).classNames,m=b.useRef({}),g=yE(b.useState(null),2),y=g[0],v=g[1],w=yE(b.useState([]),2),B=w[0],C=w[1],x=a.map(function(e){return{config:e,key:String(e.key)}}),E=yE((i={offset:8,threshold:3,gap:16},(t=h)&&"object"===V(t)&&(i.offset=null!==(n=t.offset)&&void 0!==n?n:8,i.threshold=null!==(r=t.threshold)&&void 0!==r?r:3,i.gap=null!==(o=t.gap)&&void 0!==o?o:16),[!!t,i]),2),k=E[0],F=E[1],S=F.offset,Q=F.threshold,U=F.gap,O=k&&(B.length>0||x.length<=Q),T="function"==typeof u?u(A):u;return b.useEffect(function(){k&&B.length>1&&C(function(e){return e.filter(function(e){return x.some(function(t){var n=t.key;return e===n})})})},[B,x,k]),b.useEffect(function(){var e,t;k&&m.current[null===(e=x[x.length-1])||void 0===e?void 0:e.key]&&v(m.current[null===(t=x[x.length-1])||void 0===t?void 0:t.key])},[x,k]),b.createElement(GP,$u({key:A,className:_n(s,"".concat(s,"-").concat(A),null==f?void 0:f.list,l,ee(ee({},"".concat(s,"-stack"),!!k),"".concat(s,"-stack-expanded"),O)),style:c,keys:x,motionAppear:!0},T,{onAllRemoved:function(){d(A)}}),function(e,t){var n=e.config,r=e.className,o=e.style,i=e.index,a=n,l=a.key,c=a.times,u=String(l),d=n,h=d.className,g=d.style,v=d.classNames,w=d.styles,E=pI(d,GD),F=x.findIndex(function(e){return e.key===u}),Q={};if(k){var T=x.length-1-(F>-1?F:i-1),M="top"===A||"bottom"===A?"-50%":"0";if(T>0){var I,N,H;Q.height=O?null===(I=m.current[u])||void 0===I?void 0:I.offsetHeight:null==y?void 0:y.offsetHeight;for(var _=0,P=0;P<T;P++){var D;_+=(null===(D=m.current[x[x.length-1-P].key])||void 0===D?void 0:D.offsetHeight)+U}var L=(O?_:T*S)*(A.startsWith("top")?1:-1),R=!O&&null!=y&&y.offsetWidth&&null!==(N=m.current[u])&&void 0!==N&&N.offsetWidth?((null==y?void 0:y.offsetWidth)-2*S*(T<3?T:3))/(null===(H=m.current[u])||void 0===H?void 0:H.offsetWidth):1;Q.transform="translate3d(".concat(M,", ").concat(L,"px, 0) scaleX(").concat(R,")")}else Q.transform="translate3d(".concat(M,", 0, 0)")}return b.createElement("div",{ref:t,className:_n("".concat(s,"-notice-wrapper"),r,null==v?void 0:v.wrapper),style:hM(hM(hM({},o),Q),null==w?void 0:w.wrapper),onMouseEnter:function(){return C(function(e){return e.includes(u)?e:[].concat(GM(e),[u])})},onMouseLeave:function(){return C(function(e){return e.filter(function(e){return e!==u})})}},b.createElement(jD,$u({},E,{ref:function(e){F>-1?m.current[u]=e:delete m.current[u]},prefixCls:s,classNames:v,styles:w,className:_n(h,null==f?void 0:f.notice),style:g,times:c,key:l,eventKey:l,onNoticeClose:p,hovering:k&&B.length>0})))})},YD=C.forwardRef(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,A=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=yE(C.useState([]),2),p=d[0],h=d[1],f=function(e){var t,n=p.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),h(function(t){return t.filter(function(t){return t.key!==e})})};C.useImperativeHandle(t,function(){return{open:function(e){h(function(t){var n,r=GM(t),o=r.findIndex(function(t){return t.key===e.key}),i=hM({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return a>0&&r.length>a&&(r=r.slice(-a)),r})},close:function(e){f(e)},destroy:function(){h([])}}});var m=yE(C.useState({}),2),g=m[0],y=m[1];C.useEffect(function(){var e={};p.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(g).forEach(function(t){e[t]=e[t]||[]}),y(e)},[p]);var v=function(e){y(function(t){var n=hM({},t);return(n[e]||[]).length||delete n[e],n})},b=C.useRef(!1);if(C.useEffect(function(){Object.keys(g).length>0?b.current=!0:b.current&&(null==l||l(),b.current=!1)},[g]),!o)return null;var B=Object.keys(g);return w.createPortal(C.createElement(C.Fragment,null,B.map(function(e){var t=g[e],n=C.createElement(WD,{key:e,configList:t,placement:e,prefixCls:r,className:null==A?void 0:A(e),style:null==s?void 0:s(e),motion:i,onNoticeClose:f,onAllNoticeRemoved:v,stack:c});return u?u(n,{prefixCls:r,key:e}):n})),o)}),qD=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],XD=function(){return document.body},JD=0;function ZD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?XD:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,A=e.style,s=e.onAllRemoved,l=e.stack,c=e.renderNotifications,u=pI(e,qD),d=yE(C.useState(),2),p=d[0],h=d[1],f=C.useRef(),m=C.createElement(YD,{container:p,ref:f,prefixCls:o,motion:r,maxCount:i,className:a,style:A,onAllRemoved:s,stack:l,renderNotifications:c}),g=yE(C.useState([]),2),y=g[0],v=g[1],b=w_(function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&Object.keys(t).forEach(function(n){var r=t[n];void 0!==r&&(e[n]=r)})}),e}(u,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(JD),JD+=1),v(function(e){return[].concat(GM(e),[{type:"open",config:t}])})}),w=C.useMemo(function(){return{open:b,close:function(e){v(function(t){return[].concat(GM(t),[{type:"close",key:e}])})},destroy:function(){v(function(e){return[].concat(GM(e),[{type:"destroy"}])})}}},[]);return C.useEffect(function(){h(n())}),C.useEffect(function(){var e,t;f.current&&y.length&&(y.forEach(function(e){switch(e.type){case"open":f.current.open(e.config);break;case"close":f.current.close(e.key);break;case"destroy":f.current.destroy()}}),v(function(n){return e===n&&t||(e=n,t=n.filter(function(e){return!y.includes(e)})),t}))},[y]),[w,m]}const eL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var tL=function(e,t){return C.createElement(CD,$u({},e,{ref:t,icon:eL}))};const nL=C.forwardRef(tL);function rL(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t}function oL(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function iL(e){const{closable:t,closeIcon:n}=e||{};return b.useMemo(()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,n])}const aL={},AL=b.createContext(void 0),sL=100,lL={Modal:sL,Drawer:sL,Popover:sL,Popconfirm:sL,Tooltip:sL,Tour:sL,FloatButton:sL},cL={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const uL=(e,t)=>{const[,n]=K_(),r=b.useContext(AL),o=e in lL;let i;if(void 0!==t)i=[t,t];else{let a=null!=r?r:0;a+=o?(r?0:n.zIndexPopupBase)+lL[e]:cL[e],i=[void 0===r?t:a,a]}return i},dL=W_("Message",e=>(e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:A,colorInfo:s,fontSizeLG:l,motionEaseInOutCirc:c,motionDurationSlow:u,marginXS:d,paddingXS:p,borderRadiusLG:h,zIndexPopup:f,contentPadding:m,contentBg:g}=e,y=`${t}-notice`,v=new GN("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),b=new GN("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:l},[`${y}-content`]:{display:"inline-block",padding:m,background:g,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:A},[`${t}-info > ${n},\n      ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},j_(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:f,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n        ${t}-move-up-appear,\n        ${t}-move-up-enter\n      `]:{animationName:v,animationDuration:u,animationPlayState:"paused",animationTimingFunction:c},[`\n        ${t}-move-up-appear${t}-move-up-appear-active,\n        ${t}-move-up-enter${t}-move-up-enter-active\n      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:b,animationDuration:u,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]})(k_(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var pL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hL={info:C.createElement(_D,null),success:C.createElement(ED,null),error:C.createElement(SD,null),warning:C.createElement(ID,null),loading:C.createElement(nL,null)},fL=({prefixCls:e,type:t,icon:n,children:r})=>C.createElement("div",{className:_n(`${e}-custom-content`,`${e}-${t}`)},n||hL[t],C.createElement("span",null,r)),mL=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=pL(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:A}=C.useContext(r_),s=t||A("message"),l=zD(s),[c,u,d]=dL(s,l);return c(C.createElement(jD,Object.assign({},a,{prefixCls:s,className:_n(n,u,`${s}-notice-pure-panel`,d,l),eventKey:"pure",duration:null,content:C.createElement(fL,{prefixCls:s,type:r,icon:o},i)})))};function gL(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var yL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vL=3,bL=({children:e,prefixCls:t})=>{const n=zD(t),[r,o,i]=dL(t,n);return r(C.createElement($D,{classNames:{list:_n(o,i,n)}},e))},wL=(e,{prefixCls:t,key:n})=>C.createElement(bL,{prefixCls:t,key:n},e),BL=C.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=vL,rtl:A,transitionName:s,onAllRemoved:l}=e,{getPrefixCls:c,getPopupContainer:u,message:d,direction:p}=C.useContext(r_),h=r||c("message"),f=C.createElement("span",{className:`${h}-close-x`},C.createElement(OD,{className:`${h}-close-icon`})),[m,g]=ZD({prefixCls:h,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>_n({[`${h}-rtl`]:null!=A?A:"rtl"===p}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(h,s),closable:!1,closeIcon:f,duration:a,getContainer:()=>(null==o?void 0:o())||(null==u?void 0:u())||document.body,maxCount:i,onAllRemoved:l,renderNotifications:wL});return C.useImperativeHandle(t,()=>Object.assign(Object.assign({},m),{prefixCls:h,message:d})),g});let CL=0;function xL(e){const t=C.useRef(null),n=C.useMemo(()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,message:i}=t.current,a=`${o}-notice`,{content:A,icon:s,type:l,key:c,className:u,style:d,onClose:p}=n,h=yL(n,["content","icon","type","key","className","style","onClose"]);let f=c;return null==f&&(CL+=1,f=`antd-message-${CL}`),gL(t=>(r(Object.assign(Object.assign({},h),{key:f,content:C.createElement(fL,{prefixCls:o,type:l,icon:s},A),placement:"top",className:_n(l&&`${a}-${l}`,u,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),d),onClose:()=>{null==p||p(),t()}})),()=>{e(f)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let i,a,A;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?A=r:(a=r,A=o);const s=Object.assign(Object.assign({onClose:A,duration:a},i),{type:e});return n(s)}}),r},[]);return[n,C.createElement(BL,Object.assign({key:"message-holder"},e,{ref:t}))]}function EL(e,t){this.v=e,this.k=t}function kL(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(i){o=0}(kL=function(e,t,n,r){function i(t,n){kL(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}function FL(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof A?r:A,l=Object.create(s.prototype);return kL(l,"_invoke",function(n,r,o){var i,A,s,l=0,c=o||[],u=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,A=0,s=e,d.n=n,a}};function p(n,r){for(A=n,s=r,t=0;!u&&l&&!o&&t<c.length;t++){var o,i=c[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(A=i[4])?5:(A=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(A=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,A=0))}if(o||n>1)return a;throw u=!0,r}return function(o,c,h){if(l>1)throw TypeError("Generator is already running");for(u&&1===c&&p(c,h),A=c,s=h;(t=A<2?e:s)||!u;){i||(A?A<3?(A>1&&(d.n=-1),p(A,s)):d.n=s:d.v=s);try{if(l=2,i){if(A||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,A<2&&(A=0)}else 1===A&&(t=i.return)&&t.call(i),A<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),A=1);i=e}else if((t=(u=d.n<0)?s:n.call(r,d))!==a)break}catch(f){i=e,A=1,s=f}finally{l=1}}return{value:t,done:u}}}(n,o,i),!0),l}var a={};function A(){}function s(){}function l(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(kL(t={},r,function(){return this}),t),u=l.prototype=A.prototype=Object.create(c);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,kL(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return s.prototype=l,kL(u,"constructor",l),kL(l,"constructor",s),s.displayName="GeneratorFunction",kL(l,o,"GeneratorFunction"),kL(u),kL(u,o,"Generator"),kL(u,r,function(){return this}),kL(u,"toString",function(){return"[object Generator]"}),(FL=function(){return{w:i,m:d}})()}function SL(e,t){function n(r,o,i,a){try{var A=e[r](o),s=A.value;return s instanceof EL?t.resolve(s.v).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):t.resolve(s).then(function(e){A.value=e,i(A)},function(e){return n("throw",e,i,a)})}catch(l){a(l)}}var r;this.next||(kL(SL.prototype),kL(SL.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),kL(this,"_invoke",function(e,o,i){function a(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(a,a):a()},!0)}function QL(e,t,n,r,o){return new SL(FL().w(e,t,n,r),o||Promise)}function UL(e,t,n,r,o){var i=QL(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function OL(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function TL(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(V(e)+" is not iterable")}function ML(){var e=FL(),t=e.m(ML),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,TL(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(ML=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new EL(e,t)},AsyncIterator:SL,async:function(e,t,n,o,a){return(r(t)?QL:UL)(i(e),t,n,o,a)},keys:OL,values:TL}})()}var IL,NL=hM({},x),HL=NL.version,_L=NL.render,PL=NL.unmountComponentAtNode;try{Number((HL||"").split(".")[0])>=18&&(IL=NL.createRoot)}catch(w0){}function DL(e){var t=NL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===V(t)&&(t.usingClientEntryPoint=e)}var LL="__rc_react_root__";function RL(e,t){IL?function(e,t){DL(!0);var n=t[LL]||IL(t);DL(!1),n.render(e),t[LL]=n}(e,t):function(e,t){null==_L||_L(e,t)}(e,t)}function zL(e){return KL.apply(this,arguments)}function KL(){return(KL=K(ML().mark(function e(t){return ML().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[LL])||void 0===e||e.unmount(),delete t[LL]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function jL(e){PL(e)}function VL(){return(VL=K(ML().mark(function e(t){return ML().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===IL){e.next=2;break}return e.abrupt("return",zL(t));case 2:jL(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let $L=(e,t)=>(RL(e,t),()=>function(e){return VL.apply(this,arguments)}(t));function GL(e){return e&&($L=e),$L}const WL=(e,t,n)=>void 0!==n?n:`${e}-${t}`;function YL(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}const qL=Y_("Wave",e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),XL=`${t_}-wave-target`;function JL(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function ZL(e){return Number.isNaN(e)?0:e}const eR=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=C.useRef(null),a=C.useRef(null);C.useEffect(()=>{a.current=o()},[]);const[A,s]=C.useState(null),[l,c]=C.useState([]),[u,d]=C.useState(0),[p,h]=C.useState(0),[f,m]=C.useState(0),[g,y]=C.useState(0),[v,b]=C.useState(!1),w={left:u,top:p,width:f,height:g,borderRadius:l.map(e=>`${e}px`).join(" ")};function B(){const e=getComputedStyle(n);s(function(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return null!==(t=[n,r,o].find(JL))&&void 0!==t?t:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:ZL(-Number.parseFloat(r))),h(t?n.offsetTop:ZL(-Number.parseFloat(o))),m(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:A,borderBottomRightRadius:l}=e;c([i,a,l,A].map(e=>ZL(Number.parseFloat(e))))}if(A&&(w["--wave-color"]=A),C.useEffect(()=>{if(n){const e=ZM(()=>{B(),b(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(B),t.observe(n)),()=>{ZM.cancel(e),null==t||t.disconnect()}}},[n]),!v)return null;const x=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(XL));return C.createElement(_P,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;null===(r=a.current)||void 0===r||r.call(a).then(()=>{null==e||e.remove()})}return!1}},({className:e},n)=>C.createElement("div",{ref:DM(i,n),className:_n(t,e,{"wave-quick":x}),style:w}))},tR=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);const i=GL();let a=null;a=i(C.createElement(eR,Object.assign({},t,{target:e,registerUnmount:function(){return a}})),o)},nR=(e,t,n)=>{const{wave:r}=C.useContext(r_),[,o,i]=K_(),a=w_(a=>{const A=e.current;if((null==r?void 0:r.disabled)||!A)return;const s=A.querySelector(`.${XL}`)||A,{showEffect:l}=r||{};(l||tR)(s,{className:t,token:o,component:n,event:a,hashId:i})}),A=C.useRef(null);return e=>{ZM.cancel(A.current),A.current=ZM(()=>{a(e)})}},rR=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=b.useContext(r_),i=b.useRef(null),a=o("wave"),[,A]=qL(a),s=nR(i,_n(a,A),r);if(b.useEffect(()=>{const e=i.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;const t=t=>{!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!b.isValidElement(t))return null!=t?t:null;return RD(t,{ref:RM(t)?DM(KM(t),i):i})},oR=e=>{const t=b.useContext(p_);return b.useMemo(()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t,[e,t])};globalThis&&globalThis.__rest;const iR=C.createContext(null),aR=e=>{const{children:t}=e;return C.createElement(iR.Provider,{value:null},t)};var AR=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sR=C.createContext(void 0),lR=e=>{const{getPrefixCls:t,direction:n}=C.useContext(r_),{prefixCls:r,size:o,className:i}=e,a=AR(e,["prefixCls","size","className"]),A=t("btn-group",r),[,,s]=K_(),l=C.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),c=_n(A,{[`${A}-${l}`]:l,[`${A}-rtl`]:"rtl"===n},i,s);return C.createElement(sR.Provider,{value:o},C.createElement("div",Object.assign({},a,{className:c})))},cR=/^[\u4E00-\u9FA5]{2}$/,uR=cR.test.bind(cR);function dR(e){return"danger"===e?{danger:!0}:{type:e}}function pR(e){return"string"==typeof e}function hR(e){return"text"===e||"link"===e}function fR(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&pR(e.type)&&uR(e.props.children)?RD(e,{children:e.props.children.split("").join(n)}):pR(e)?uR(e)?b.createElement("span",null,e.split("").join(n)):b.createElement("span",null,e):function(e){return e&&b.isValidElement(e)&&e.type===b.Fragment}(e)?b.createElement("span",null,e):e}["default","primary","danger"].concat(GM(M_));const mR=b.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=_n(`${i}-icon`,n);return b.createElement("span",{ref:t,className:a,style:r},o)}),gR=b.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=_n(`${n}-loading-icon`,r);return b.createElement(mR,{prefixCls:n,className:a,style:o,ref:t},b.createElement(nL,{className:i}))}),yR=()=>({width:0,opacity:0,transform:"scale(0)"}),vR=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),bR=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,A=!!n;return r?b.createElement(gR,{prefixCls:t,className:o,style:i}):b.createElement(_P,{visible:A,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:yR,onAppearActive:vR,onEnterStart:yR,onEnterActive:vR,onLeaveStart:vR,onLeaveActive:yR},({className:e,style:n},r)=>{const a=Object.assign(Object.assign({},i),n);return b.createElement(gR,{prefixCls:t,className:_n(o,e),style:a,ref:r})})},wR=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),BR=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},wR(`${t}-primary`,o),wR(`${t}-danger`,i)]}};var CR,xR=["b"],ER=["v"],kR=function(e){return Math.round(Number(e||0))},FR=function(e){Z(n,e);var t=VM(n);function n(e){return j(this,n),t.call(this,function(e){if(e instanceof BH)return e;if(e&&"object"===V(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return hM(hM({},pI(t,xR)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return W(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=kR(100*e.s),n=kR(100*e.b),r=kR(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return hM(hM({},pI(e,ER)),{},{b:t,a:this.a})}}]),n}(BH);(CR="#1677ff")instanceof FR||new FR(CR);let SR=function(){return W(function e(t){var n;if(j(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new FR(this.colors[0].color.metaColor)):this.metaColor=new FR(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])}();const QR=e=>({animationDuration:e,animationFillMode:"both"}),UR=e=>({animationDuration:e,animationFillMode:"both"}),OR=(e,t,n,r,o=!1)=>{const i=o?"&":"";return{[`\n      ${i}${e}-enter,\n      ${i}${e}-appear\n    `]:Object.assign(Object.assign({},QR(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},UR(r)),{animationPlayState:"paused"}),[`\n      ${i}${e}-enter${e}-enter-active,\n      ${i}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},TR=new GN("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),MR=new GN("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),IR=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[OR(r,TR,MR,e.motionDurationMid,t),{[`\n        ${o}${r}-enter,\n        ${o}${r}-appear\n      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},NR=new GN("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),HR=new GN("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),_R=new GN("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),PR=new GN("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),DR=new GN("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),LR=new GN("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),RR={zoom:{inKeyframes:NR,outKeyframes:HR},"zoom-big":{inKeyframes:_R,outKeyframes:PR},"zoom-big-fast":{inKeyframes:_R,outKeyframes:PR},"zoom-left":{inKeyframes:new GN("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new GN("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new GN("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new GN("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:DR,outKeyframes:LR},"zoom-down":{inKeyframes:new GN("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new GN("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},zR=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=RR[t];return[OR(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},KR=e=>{const{paddingInline:t,onlyIconSize:n}=e;return k_(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},jR=e=>{var t,n,r,o,i,a;const A=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,l=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,c=null!==(o=e.contentLineHeight)&&void 0!==o?o:VH(A),u=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:VH(s),d=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:VH(l),p=((e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new FR(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new SR(e.colorBgSolid),"#fff")?"#000":"#fff",h=M_.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${TI(e.controlOutlineWidth)} 0 ${N_(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:A,contentFontSizeSM:s,contentFontSizeLG:l,contentLineHeight:c,contentLineHeightSM:u,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-A*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*u)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-l*d)/2-e.lineWidth,0)})},VR=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:A,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:A,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${TI(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":$_(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(A).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(A).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(A).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(A).mul(-1).equal()}}}}}},$R=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),GR=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),WR=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),YR=(e,t,n,r,o,i,a,A)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},$R(e,Object.assign({background:t},a),Object.assign({background:t},A))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),qR=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},WR(e))}),XR=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),JR=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?XR:qR;return Object.assign(Object.assign({},o(e)),$R(e.componentCls,t,n))},ZR=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},JR(e,r,o))}),ez=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},JR(e,r,o))}),tz=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),nz=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},JR(e,n,r))}),rz=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},JR(e,r,o,n))}),oz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ZR(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),tz(e)),nz(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),YR(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),rz(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),iz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ez(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),tz(e)),nz(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),rz(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),rz(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),YR(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),az=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ZR(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ez(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),tz(e)),nz(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),rz(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),rz(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),YR(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Az=e=>Object.assign(Object.assign({},rz(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),YR(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),sz=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:oz(e),[`${t}-color-primary`]:iz(e),[`${t}-color-dangerous`]:az(e),[`${t}-color-link`]:Az(e)},(e=>{const{componentCls:t}=e;return M_.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],A=e[`${r}2`],s=e[`${r}3`],l=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},ZR(e,e.colorTextLightSolid,o,{background:a},{background:l})),ez(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:l,borderColor:l,background:e.colorBgContainer})),tz(e)),nz(e,i,{color:o,background:A},{color:o,background:s})),rz(e,o,"link",{color:a},{color:l})),rz(e,o,"text",{color:a,background:i},{color:l,background:s}))})},{})})(e))},lz=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ez(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),rz(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ZR(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),rz(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),cz=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:A,buttonPaddingVertical:s,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:o,height:r,padding:`${TI(s)} ${TI(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[A]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:GR(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},uz=e=>{const t=k_(e,{fontSize:e.contentFontSize});return cz(t,e.componentCls)},dz=e=>{const t=k_(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return cz(t,`${e.componentCls}-sm`)},pz=e=>{const t=k_(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return cz(t,`${e.componentCls}-lg`)},hz=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},fz=W_("Button",e=>{const t=KR(e);return[VR(t),uz(t),dz(t),pz(t),hz(t),sz(t),lz(t),BR(t)]},jR,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function mz(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:a}=n,A=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${A}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[s]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${A}`]:{zIndex:0}})}}function gz(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function yz(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return{[i]:Object.assign(Object.assign({},mz(e,i,t,o)),gz(o,i,t))}}function vz(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function bz(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},vz(e,t,e.componentCls)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const wz=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},Bz=q_(["Button","compact"],e=>{const t=KR(e);return[yz(t),bz(t),wz(t)]},jR);var Cz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xz={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Ez=b.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,color:a,variant:A,type:s,danger:l=!1,shape:c,size:u,styles:d,disabled:p,className:h,rootClassName:f,children:m,icon:g,iconPosition:y="start",ghost:v=!1,block:w=!1,htmlType:B="button",classNames:x,style:E={},autoInsertSpace:k,autoFocus:F}=e,S=Cz(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),Q=s||"default",{button:U}=b.useContext(r_),O=c||(null==U?void 0:U.shape)||"default",[T,M]=b.useMemo(()=>{if(a&&A)return[a,A];if(s||l){const e=xz[Q]||[];return l?["danger",e[1]]:e}return(null==U?void 0:U.color)&&(null==U?void 0:U.variant)?[U.color,U.variant]:["default","outlined"]},[a,A,s,l,null==U?void 0:U.color,null==U?void 0:U.variant,Q]),I="danger"===T?"dangerous":T,{getPrefixCls:N,direction:H,autoInsertSpace:_,className:P,style:D,classNames:L,styles:R}=i_("button"),z=null===(n=null!=k?k:_)||void 0===n||n,K=N("btn",i),[j,V,$]=fz(K),G=b.useContext(c_),W=null!=p?p:G,Y=b.useContext(sR),q=b.useMemo(()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o),[o]),[X,J]=b.useState(q.loading),[Z,ee]=b.useState(!1),te=b.useRef(null),ne=LM(t,te),re=1===b.Children.count(m)&&!g&&!hR(M),oe=b.useRef(!0);b.useEffect(()=>(oe.current=!1,()=>{oe.current=!0}),[]),PI(()=>{let e=null;return q.delay>0?e=setTimeout(()=>{e=null,J(!0)},q.delay):J(q.loading),function(){e&&(clearTimeout(e),e=null)}},[q.delay,q.loading]),b.useEffect(()=>{if(!te.current||!z)return;const e=te.current.textContent||"";re&&uR(e)?Z||ee(!0):Z&&ee(!1)}),b.useEffect(()=>{F&&te.current&&te.current.focus()},[]);const ie=b.useCallback(t=>{var n;X||W?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)},[e.onClick,X,W]),{compactSize:ae,compactItemClassnames:Ae}=((e,t)=>{const n=C.useContext(iR),r=C.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return _n(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}})(K,H),se=oR(e=>{var t,n;return null!==(n=null!==(t=null!=u?u:ae)&&void 0!==t?t:Y)&&void 0!==n?n:e}),le=se&&null!==(r={large:"lg",small:"sm",middle:void 0}[se])&&void 0!==r?r:"",ce=X?"loading":g,ue=YL(S,["navigate"]),de=_n(K,V,$,{[`${K}-${O}`]:"default"!==O&&O,[`${K}-${Q}`]:Q,[`${K}-dangerous`]:l,[`${K}-color-${I}`]:I,[`${K}-variant-${M}`]:M,[`${K}-${le}`]:le,[`${K}-icon-only`]:!m&&0!==m&&!!ce,[`${K}-background-ghost`]:v&&!hR(M),[`${K}-loading`]:X,[`${K}-two-chinese-chars`]:Z&&z&&!X,[`${K}-block`]:w,[`${K}-rtl`]:"rtl"===H,[`${K}-icon-end`]:"end"===y},Ae,h,f,P),pe=Object.assign(Object.assign({},D),E),he=_n(null==x?void 0:x.icon,L.icon),fe=Object.assign(Object.assign({},(null==d?void 0:d.icon)||{}),R.icon||{}),me=e=>b.createElement(mR,{prefixCls:K,className:he,style:fe},e);let ge;ge=g&&!X?me(g):o&&"object"==typeof o&&o.icon?me(o.icon):b.createElement(bR,{existIcon:!!g,prefixCls:K,loading:X,mount:oe.current});const ye=m||0===m?function(e,t){let n=!1;const r=[];return b.Children.forEach(e,e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o}),b.Children.map(r,e=>fR(e,t))}(m,re&&z):null;if(void 0!==ue.href)return j(b.createElement("a",Object.assign({},ue,{className:_n(de,{[`${K}-disabled`]:W}),href:W?void 0:ue.href,style:pe,onClick:ie,ref:ne,tabIndex:W?-1:0,"aria-disabled":W}),ge,ye));let ve=b.createElement("button",Object.assign({},S,{type:B,className:de,style:pe,onClick:ie,disabled:W,ref:ne}),ge,ye,Ae&&b.createElement(Bz,{prefixCls:K}));return hR(M)||(ve=b.createElement(rR,{component:"Button",disabled:X},ve)),j(ve)}),kz=Ez;kz.Group=lR,kz.__ANT_BUTTON=!0;const Fz=kz,Sz=e=>"function"==typeof(null==e?void 0:e.then),Qz=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:A,isSilent:s,quitOnNullishReturnValue:l,actionFn:c}=e,u=C.useRef(!1),d=C.useRef(null),[p,h]=B_(!1),f=(...e)=>{null==i||i.apply(void 0,e)};C.useEffect(()=>{let e=null;return a&&(e=setTimeout(()=>{var e;null===(e=d.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[a]);return C.createElement(Fz,Object.assign({},dR(t),{onClick:e=>{if(u.current)return;if(u.current=!0,!c)return void f();let t;if(A){if(t=c(e),l&&!Sz(t))return u.current=!1,void f(e)}else if(c.length)t=c(i),u.current=!1;else if(t=c(),!Sz(t))return void f();(e=>{Sz(e)&&(h(!0),e.then((...e)=>{h(!1,!0),f.apply(void 0,e),u.current=!1},e=>{if(h(!1,!0),u.current=!1,!(null==s?void 0:s()))return Promise.reject(e)}))})(t)},loading:p,prefixCls:r},o,{ref:d}),n)},Uz=b.createContext({}),{Provider:Oz}=Uz,Tz=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:A,onConfirm:s}=b.useContext(Uz);return o?b.createElement(Qz,{isSilent:r,actionFn:A,close:(...e)=>{null==a||a.apply(void 0,e),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},Mz=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:A,onOk:s}=b.useContext(Uz);return b.createElement(Qz,{isSilent:n,type:a||"primary",actionFn:s,close:(...e)=>{null==t||t.apply(void 0,e),null==A||A(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)};var Iz=C.createContext(null),Nz=[];function Hz(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var A=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(A.width,10),l=parseInt(A.height,10);try{var c=s?"width: ".concat(A.width,";"):"",u=l?"height: ".concat(A.height,";"):"";dI("\n#".concat(t,"::-webkit-scrollbar {\n").concat(c,"\n").concat(u,"\n}"),t)}catch(w0){r=s,o=l}}document.body.appendChild(n);var d=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),uI(t),{width:d,height:p}}(e):{width:0,height:0}}var _z="rc-util-locker-".concat(Date.now()),Pz=0;function Dz(e){var t=!!e,n=yE(C.useState(function(){return Pz+=1,"".concat(_z,"_").concat(Pz)}),1)[0];PI(function(){if(t){var e=Hz(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;dI("\nhtml body {\n  overflow-y: hidden;\n  ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else uI(n);return function(){uI(n)}},[t,n])}var Lz=!1;var Rz=function(e){return!1!==e&&(tI()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},zz=C.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=void 0===i||i,A=e.children,s=yE(C.useState(n),2),l=s[0],c=s[1],u=l||n;C.useEffect(function(){(a||n)&&c(n)},[n,a]);var d=yE(C.useState(function(){return Rz(o)}),2),p=d[0],h=d[1];C.useEffect(function(){var e=Rz(o);h(null!=e?e:null)});var f=function(e){var t=yE(C.useState(function(){return tI()?document.createElement("div"):null}),1)[0],n=C.useRef(!1),r=C.useContext(Iz),o=yE(C.useState(Nz),2),i=o[0],a=o[1],A=r||(n.current?void 0:function(e){a(function(t){return[e].concat(GM(t))})});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function l(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return PI(function(){return e?r?r(s):s():l(),l},[e]),PI(function(){i.length&&(i.forEach(function(e){return e()}),a(Nz))},[i]),[t,A]}(u&&!p),m=yE(f,2),g=m[0],y=m[1],v=null!=p?p:g;Dz(r&&n&&tI()&&(v===g||v===document.body));var b=null;A&&RM(A)&&t&&(b=A.ref);var B=LM(b,t);if(!u||!tI()||void 0===p)return null;var x,E=!1===v||("boolean"==typeof x&&(Lz=x),Lz),k=A;return t&&(k=C.cloneElement(A,{ref:B})),C.createElement(Iz.Provider,{value:y},E?k:w.createPortal(k,v))}),Kz=C.createContext({});var jz=0,Vz=hM({},C).useId;const $z=Vz?function(e){var t=Vz();return e||t}:function(e){var t=yE(C.useState("ssr-id"),2),n=t[0],r=t[1];return C.useEffect(function(){var e=jz;jz+=1,r("rc_unique_".concat(e))},[]),e||n};function Gz(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Wz(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const Yz=C.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var qz={width:0,height:0,overflow:"hidden",outline:"none"},Xz={outline:"none"},Jz=b.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,A=e.footer,s=e.closable,l=e.closeIcon,c=e.onClose,u=e.children,d=e.bodyStyle,p=e.bodyProps,h=e.modalRender,f=e.onMouseDown,m=e.onMouseUp,g=e.holderRef,y=e.visible,v=e.forceRender,w=e.width,B=e.height,C=e.classNames,x=e.styles,E=b.useContext(Kz).panel,k=LM(g,E),F=b.useRef(),S=b.useRef();b.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=F.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===S.current?F.current.focus({preventScroll:!0}):e||t!==F.current||S.current.focus({preventScroll:!0})}}});var Q={};void 0!==w&&(Q.width=w),void 0!==B&&(Q.height=B);var U=A?b.createElement("div",{className:_n("".concat(n,"-footer"),null==C?void 0:C.footer),style:hM({},null==x?void 0:x.footer)},A):null,O=i?b.createElement("div",{className:_n("".concat(n,"-header"),null==C?void 0:C.header),style:hM({},null==x?void 0:x.header)},b.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,T=b.useMemo(function(){return"object"===V(s)&&null!==s?s:s?{closeIcon:null!=l?l:b.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,l,n]),M=LD(T,!0),I="object"===V(s)&&s.disabled,N=s?b.createElement("button",$u({type:"button",onClick:c,"aria-label":"Close"},M,{className:"".concat(n,"-close"),disabled:I}),T.closeIcon):null,H=b.createElement("div",{className:_n("".concat(n,"-content"),null==C?void 0:C.content),style:null==x?void 0:x.content},N,O,b.createElement("div",$u({className:_n("".concat(n,"-body"),null==C?void 0:C.body),style:hM(hM({},d),null==x?void 0:x.body)},p),u),U);return b.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:k,style:hM(hM({},o),Q),className:_n(n,r),onMouseDown:f,onMouseUp:m},b.createElement("div",{ref:F,tabIndex:0,style:Xz},b.createElement(Yz,{shouldUpdate:y||v},h?h(H):H)),b.createElement("div",{tabIndex:0,ref:S,style:qz}))}),Zz=C.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,A=e.forceRender,s=e.destroyOnClose,l=e.motionName,c=e.ariaId,u=e.onVisibleChanged,d=e.mousePosition,p=b.useRef(),h=yE(C.useState(),2),f=h[0],m=h[1],g={};function y(){var e,t,n,r,o,i=(e=p.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=Wz(o),n.top+=Wz(o,!0),n);m(d&&(d.x||d.y)?"".concat(d.x-i.left,"px ").concat(d.y-i.top,"px"):"")}return f&&(g.transformOrigin=f),C.createElement(_P,{visible:a,onVisibleChanged:u,onAppearPrepare:y,onEnterPrepare:y,forceRender:A,motionName:l,removeOnLeave:s,ref:p},function(a,A){var s=a.className,l=a.style;return C.createElement(Jz,$u({},e,{ref:t,title:r,ariaId:c,prefixCls:n,holderRef:A,style:hM(hM(hM({},l),o),g),className:_n(i,s)}))})});Zz.displayName="Content";var eK=function(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return C.createElement(_P,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var i=e.className,A=e.style;return C.createElement("div",$u({ref:r,style:hM(hM({},A),n),className:_n("".concat(t,"-mask"),i,a)},o))})},tK=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,a=e.keyboard,A=void 0===a||a,s=e.focusTriggerAfterClose,l=void 0===s||s,c=e.wrapStyle,u=e.wrapClassName,d=e.wrapProps,p=e.onClose,h=e.afterOpenChange,f=e.afterClose,m=e.transitionName,g=e.animation,y=e.closable,v=void 0===y||y,w=e.mask,B=void 0===w||w,x=e.maskTransitionName,E=e.maskAnimation,k=e.maskClosable,F=void 0===k||k,S=e.maskStyle,Q=e.maskProps,U=e.rootClassName,O=e.classNames,T=e.styles,M=b.useRef(),I=b.useRef(),N=b.useRef(),H=yE(C.useState(i),2),_=H[0],P=H[1],D=$z();function L(e){null==p||p(e)}var R=b.useRef(!1),z=b.useRef(),K=null;F&&(K=function(e){R.current?R.current=!1:I.current===e.target&&L(e)}),b.useEffect(function(){i&&(P(!0),nI(I.current,document.activeElement)||(M.current=document.activeElement))},[i]),b.useEffect(function(){return function(){clearTimeout(z.current)}},[]);var j=hM(hM(hM({zIndex:r},c),null==T?void 0:T.wrapper),{},{display:_?null:"none"});return C.createElement("div",$u({className:_n("".concat(n,"-root"),U)},LD(e,{data:!0})),C.createElement(eK,{prefixCls:n,visible:B&&i,motionName:Gz(n,x,E),style:hM(hM({zIndex:r},S),null==T?void 0:T.mask),maskProps:Q,className:null==O?void 0:O.mask}),C.createElement("div",$u({tabIndex:-1,onKeyDown:function(e){if(A&&e.keyCode===KD.ESC)return e.stopPropagation(),void L(e);i&&e.keyCode===KD.TAB&&N.current.changeActive(!e.shiftKey)},className:_n("".concat(n,"-wrap"),u,null==O?void 0:O.wrapper),ref:I,onClick:K,style:j},d),C.createElement(Zz,$u({},e,{onMouseDown:function(){clearTimeout(z.current),R.current=!0},onMouseUp:function(){z.current=setTimeout(function(){R.current=!1})},ref:N,closable:v,ariaId:D,prefixCls:n,visible:i&&_,onClose:L,onVisibleChanged:function(e){if(e)nI(I.current,document.activeElement)||null===(t=N.current)||void 0===t||t.focus();else{if(P(!1),B&&M.current&&l){try{M.current.focus({preventScroll:!0})}catch(w0){}M.current=null}_&&(null==f||f())}var t;null==h||h(e)},motionName:Gz(n,m,g)}))))},nK=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,A=e.panelRef,s=yE(C.useState(t),2),l=s[0],c=s[1],u=C.useMemo(function(){return{panel:A}},[A]);return C.useEffect(function(){t&&c(!0)},[t]),r||!i||l?C.createElement(Kz.Provider,{value:u},C.createElement(zz,{open:t||r||l,autoDestroy:!1,getContainer:n,autoLock:t||l},C.createElement(tK,$u({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),c(!1)}})))):null};nK.displayName="Dialog";var rK="RC_FORM_INTERNAL_HOOKS",oK=function(){dM(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},iK=C.createContext({getFieldValue:oK,getFieldsValue:oK,getFieldError:oK,getFieldWarning:oK,getFieldsError:oK,isFieldsTouched:oK,isFieldTouched:oK,isFieldValidating:oK,isFieldsValidating:oK,resetFields:oK,setFields:oK,setFieldValue:oK,setFieldsValue:oK,validateFields:oK,submit:oK,getInternalHooks:function(){return oK(),{dispatch:oK,initEntityValue:oK,registerField:oK,useSubscribe:oK,setInitialValues:oK,destroyForm:oK,setCallbacks:oK,registerWatch:oK,getFields:oK,setValidateMessages:oK,setPreserve:oK,getInitialValue:oK}}}),aK=C.createContext(null);function AK(e){return null==e?[]:Array.isArray(e)?e:[e]}function sK(){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",tel:"%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 lK=sK();function cK(e){var t="function"==typeof Map?new Map:void 0;return cK=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(jM())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&J(o,n.prototype),o}(e,arguments,X(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),J(n,e)},cK(e)}var uK=/%[sdj%]/g,dK=function(){};function pK(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function hK(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(uK,function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}}):e}function fK(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}(t)||"string"!=typeof e||e))}function mK(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var A=r;r+=1,A<o?t(e[A],i):n([])}}([])}"undefined"!=typeof process&&process.env;var gK=function(e){Z(n,e);var t=VM(n);function n(e,r){var o;return j(this,n),ee(Y(o=t.call(this,"Async Validation Error")),"errors",void 0),ee(Y(o),"fields",void 0),o.errors=e,o.fields=r,o}return W(n)}(cK(Error));function yK(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,GM(e[n]||[]))}),t}(e);mK(a,n,function(e){return r(e),e.length?i(new gK(e,pK(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],A=Object.keys(e),s=A.length,l=0,c=[],u=new Promise(function(t,i){var u=function(e){if(c.push.apply(c,e),++l===s)return r(c),c.length?i(new gK(c,pK(c))):t(o)};A.length||(r(c),t(o)),A.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?mK(r,n,u):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,GM(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,u)})});return u.catch(function(e){return e}),u}function vK(e,t){return function(n){var r;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],function(e){return!(!e||void 0===e.message)}(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function bK(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===V(r)&&"object"===V(e[n])?e[n]=hM(hM({},e[n]),r):e[n]=r}return e}var wK,BK="enum",CK=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!fK(t,i||e.type)||r.push(hK(o.messages.required,e.fullField))};var xK=/^(([^<>()\[\]\\.,;:\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,}))$/,EK=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,kK=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,FK={integer:function(e){return FK.number(e)&&parseInt(e,10)===e},float:function(e){return FK.number(e)&&!FK.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(w0){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===V(e)&&!FK.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(xK)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match(EK)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(wK)return wK;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\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}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),A=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(i,"$")),l=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};l.v4=function(e){return e&&e.exact?A:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var c=l.v4().source,u=l.v6().source,d="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(c,"|").concat(u,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return wK=new RegExp("(?:^".concat(d,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(kK)}};const SK={required:CK,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(hK(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)CK(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(i)>-1?FK[i](t)||r.push(hK(o.messages.types[i],e.fullField,e.type)):i&&V(t)!==e.type&&r.push(hK(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,A="number"==typeof e.max,s=t,l=null,c="number"==typeof t,u="string"==typeof t,d=Array.isArray(t);if(c?l="number":u?l="string":d&&(l="array"),!l)return!1;d&&(s=t.length),u&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(hK(o.messages[l].len,e.fullField,e.len)):a&&!A&&s<e.min?r.push(hK(o.messages[l].min,e.fullField,e.min)):A&&!a&&s>e.max?r.push(hK(o.messages[l].max,e.fullField,e.max)):a&&A&&(s<e.min||s>e.max)&&r.push(hK(o.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[BK]=Array.isArray(e[BK])?e[BK]:[],-1===e[BK].indexOf(t)&&r.push(hK(o.messages[BK],e.fullField,e[BK].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(hK(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(hK(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};var QK=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t,i)&&!e.required)return n();SK.required(e,t,r,a,o,i),fK(t,i)||SK.type(e,t,r,a,o)}n(a)};const UK={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t,"string")&&!e.required)return n();SK.required(e,t,r,i,o,"string"),fK(t,"string")||(SK.type(e,t,r,i,o),SK.range(e,t,r,i,o),SK.pattern(e,t,r,i,o),!0===e.whitespace&&SK.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t)&&!e.required)return n();SK.required(e,t,r,i,o),void 0!==t&&SK.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),fK(t)&&!e.required)return n();SK.required(e,t,r,i,o),void 0!==t&&(SK.type(e,t,r,i,o),SK.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t)&&!e.required)return n();SK.required(e,t,r,i,o),void 0!==t&&SK.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t)&&!e.required)return n();SK.required(e,t,r,i,o),fK(t)||SK.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t)&&!e.required)return n();SK.required(e,t,r,i,o),void 0!==t&&(SK.type(e,t,r,i,o),SK.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t)&&!e.required)return n();SK.required(e,t,r,i,o),void 0!==t&&(SK.type(e,t,r,i,o),SK.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();SK.required(e,t,r,i,o,"array"),null!=t&&(SK.type(e,t,r,i,o),SK.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t)&&!e.required)return n();SK.required(e,t,r,i,o),void 0!==t&&SK.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t)&&!e.required)return n();SK.required(e,t,r,i,o),void 0!==t&&SK.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t,"string")&&!e.required)return n();SK.required(e,t,r,i,o),fK(t,"string")||SK.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t,"date")&&!e.required)return n();var a;if(SK.required(e,t,r,i,o),!fK(t,"date"))a=t instanceof Date?t:new Date(t),SK.type(e,a,r,i,o),a&&SK.range(e,a.getTime(),r,i,o)}n(i)},url:QK,hex:QK,email:QK,tel:QK,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":V(t);SK.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fK(t)&&!e.required)return n();SK.required(e,t,r,i,o)}n(i)}};var OK=function(){function e(t){j(this,e),ee(this,"rules",null),ee(this,"_messages",lK),this.define(t)}return W(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==V(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=bK(sK(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===lK&&(a=sK()),bK(a,o.messages),o.messages=a}else o.messages=this.messages();var A={};(o.keys||Object.keys(this.rules)).forEach(function(e){var o=n.rules[e],i=r[e];o.forEach(function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=hM({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":V(i)))),(a="function"==typeof a?{validator:a}:hM({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),A[e]=A[e]||[],A[e].push({rule:a,value:i,source:r,field:e}))})});var s={};return yK(A,o,function(t,n){var i,a=t.rule,A=!("object"!==a.type&&"array"!==a.type||"object"!==V(a.fields)&&"object"!==V(a.defaultField));function l(e,t){return hM(hM({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(GM(a.fullFields),[e]):[e]})}function c(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=Array.isArray(i)?i:[i];!o.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==a.message&&null!==a.message&&(c=[].concat(a.message));var u=c.map(vK(a,r));if(o.first&&u.length)return s[a.field]=1,n(u);if(A){if(a.required&&!t.value)return void 0!==a.message?u=[].concat(a.message).map(vK(a,r)):o.error&&(u=[o.error(a,hK(o.messages.required,a.field))]),n(u);var d={};a.defaultField&&Object.keys(t.value).map(function(e){d[e]=a.defaultField}),d=hM(hM({},d),t.rule.fields);var p={};Object.keys(d).forEach(function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(l.bind(null,e))});var h=new e(p);h.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),h.validate(t.value,t.rule.options||o,function(e){var t=[];u&&u.length&&t.push.apply(t,GM(u)),e&&e.length&&t.push.apply(t,GM(e)),n(t.length?t:null)})}else n(u)}if(A=A&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,c,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,c,t.source,o)}catch(p){var u,d;null===(u=(d=console).error)||void 0===u||u.call(d,p),o.suppressValidatorError||setTimeout(function(){throw p},0),c(p.message)}!0===i?c():!1===i?c("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?c(i):i instanceof Error&&c(i.message)}i&&i.then&&i.then(function(){return c()},function(e){return c(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,GM(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=pK(t),i(t,n)):i(null,r)}(e)},r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!UK.hasOwnProperty(e.type))throw new Error(hK("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?UK.required:UK[this.getType(e)]||void 0}}]),e}();ee(OK,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");UK[e]=t}),ee(OK,"warning",dK),ee(OK,"messages",lK),ee(OK,"validators",UK);var TK="'${name}' is not a valid ${type}",MK={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:TK,method:TK,array:TK,object:TK,number:TK,date:TK,boolean:TK,integer:TK,float:TK,regexp:TK,email:TK,url:TK,hex:TK},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},IK=OK;function NK(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var HK="CODE_LOGIC_ERROR";function _K(e,t,n,r,o){return PK.apply(this,arguments)}function PK(){return PK=K(ML().mark(function e(t,n,r,o,i){var a,A,s,l,c,u,d,p,h;return ML().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=hM({},r)).ruleIndex,IK.warning=function(){},a.validator&&(A=a.validator,a.validator=function(){try{return A.apply(void 0,arguments)}catch(e){return Promise.reject(HK)}}),s=null,a&&"array"===a.type&&a.defaultField&&(s=a.defaultField,delete a.defaultField),l=new IK(ee({},t,[a])),c=tH(MK,o.validateMessages),l.messages(c),u=[],e.prev=10,e.next=13,Promise.resolve(l.validate(ee({},t,n),hM({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(u=e.t0.errors.map(function(e,t){var n=e.message,r=n===HK?c.default:n;return C.isValidElement(r)?C.cloneElement(r,{key:"error_".concat(t)}):r}));case 18:if(!(!u.length&&s&&Array.isArray(n)&&n.length>0)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return _K("".concat(t,".").concat(n),e,s,o,i)}));case 21:return d=e.sent,e.abrupt("return",d.reduce(function(e,t){return[].concat(GM(e),GM(t))},[]));case 23:return p=hM(hM({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=u.map(function(e){return"string"==typeof e?NK(e,p):e}),e.abrupt("return",h);case 26:case"end":return e.stop()}},e,null,[[10,15]])})),PK.apply(this,arguments)}function DK(e,t,n,r,o,i){var a,A=e.join("."),s=n.map(function(e,t){var n=e.validator,r=hM(hM({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){dM(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});dM(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1});if(!0===o)a=new Promise(function(){var e=K(ML().mark(function e(n,o){var a,l,c;return ML().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<s.length)){e.next=12;break}return l=s[a],e.next=5,_K(A,t,l,r,i);case 5:if(!(c=e.sent).length){e.next=9;break}return o([{errors:c,rule:l}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var l=s.map(function(e){return _K(A,t,e,r,i).then(function(t){return{errors:t,rule:e}})});a=(o?function(e){return RK.apply(this,arguments)}(l):function(e){return LK.apply(this,arguments)}(l)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function LK(){return(LK=K(ML().mark(function e(t){return ML().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,GM(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function RK(){return(RK=K(ML().mark(function e(t){var n;return ML().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function zK(e){return AK(e)}function KK(e,t){var n={};return t.forEach(function(t){var r=qN(e,t);n=JN(n,t,r)}),n}function jK(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return VK(t,e,n)})}function VK(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t}))}function $K(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===V(t.target)&&e in t.target?t.target[e]:t}function GK(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(GM(e.slice(0,n)),[o],GM(e.slice(n,t)),GM(e.slice(t+1,r))):i<0?[].concat(GM(e.slice(0,t)),GM(e.slice(t+1,n+1)),[o],GM(e.slice(n+1,r))):e}var WK=["name"],YK=[];function qK(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var XK=function(e){Z(n,e);var t=VM(n);function n(e){var r;(j(this,n),ee(Y(r=t.call(this,e)),"state",{resetCount:0}),ee(Y(r),"cancelRegisterFunc",null),ee(Y(r),"mounted",!1),ee(Y(r),"touched",!1),ee(Y(r),"dirty",!1),ee(Y(r),"validatePromise",void 0),ee(Y(r),"prevValidating",void 0),ee(Y(r),"errors",YK),ee(Y(r),"warnings",YK),ee(Y(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,zK(o)),r.cancelRegisterFunc=null}),ee(Y(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(GM(void 0===n?[]:n),GM(t)):[]}),ee(Y(r),"getRules",function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map(function(e){return"function"==typeof e?e(o):e})}),ee(Y(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),ee(Y(r),"metaCache",null),ee(Y(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=hM(hM({},r.getMeta()),{},{destroy:e});hI(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),ee(Y(r),"onStoreChange",function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,A=void 0===a?[]:a,s=o.onReset,l=n.store,c=r.getNamePath(),u=r.getValue(e),d=r.getValue(l),p=t&&jK(t,c);switch("valueUpdate"!==n.type||"external"!==n.source||hI(u,d)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=YK,r.warnings=YK,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=YK,r.warnings=YK,r.triggerMetaEvent(),null==s||s(),void r.refresh();break;case"remove":if(i&&qK(i,e,l,u,d,n))return void r.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||YK),"warnings"in h&&(r.warnings=h.warnings||YK),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&jK(t,c,!0))return void r.reRender();if(i&&!c.length&&qK(i,e,l,u,d,n))return void r.reRender();break;case"dependenciesUpdate":if(A.map(zK).some(function(e){return jK(n.relatedFields,e)}))return void r.reRender();break;default:if(p||(!A.length||c.length||i)&&qK(i,e,l,u,d,n))return void r.reRender()}!0===i&&r.reRender()}),ee(Y(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,A=void 0!==a&&a,s=Promise.resolve().then(K(ML().mark(function o(){var a,A,l,c,u,d,p;return ML().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,A=a.validateFirst,l=void 0!==A&&A,c=a.messageVariables,u=a.validateDebounce,d=r.getRules(),i&&(d=d.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||AK(t).includes(i)})),!u||!i){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,u)});case 8:if(r.validatePromise===s){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=DK(t,n,d,e,l,c)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:YK;if(r.validatePromise===s){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?YK:r;t?o.push.apply(o,GM(i)):n.push.apply(n,GM(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",p);case 13:case"end":return o.stop()}},o)})));return A||(r.validatePromise=s,r.dirty=!0,r.errors=YK,r.warnings=YK,r.triggerMetaEvent(),r.reRender()),s}),ee(Y(r),"isFieldValidating",function(){return!!r.validatePromise}),ee(Y(r),"isFieldTouched",function(){return r.touched}),ee(Y(r),"isFieldDirty",function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(rK).getInitialValue)(r.getNamePath())}),ee(Y(r),"getErrors",function(){return r.errors}),ee(Y(r),"getWarnings",function(){return r.warnings}),ee(Y(r),"isListField",function(){return r.props.isListField}),ee(Y(r),"isList",function(){return r.props.isList}),ee(Y(r),"isPreserve",function(){return r.props.preserve}),ee(Y(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),ee(Y(r),"getOnlyChild",function(e){if("function"==typeof e){var t=r.getMeta();return hM(hM({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=AM(e);return 1===n.length&&C.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),ee(Y(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return qN(e||t(!0),n)}),ee(Y(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,A=t.normalize,s=t.valuePropName,l=t.getValueProps,c=t.fieldContext,u=void 0!==i?i:c.validateTrigger,d=r.getNamePath(),p=c.getInternalHooks,h=c.getFieldsValue,f=p(rK).dispatch,m=r.getValue(),g=l||function(e){return ee({},s,e)},y=e[o],v=void 0!==n?g(m):{},b=hM(hM({},e),v);return b[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):$K.apply(void 0,[s].concat(n)),A&&(e=A(e,m,h(!0))),e!==m&&f({type:"updateValue",namePath:d,value:e}),y&&y.apply(void 0,n)},AK(u||[]).forEach(function(e){var t=b[e];b[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&f({type:"validateField",namePath:d,triggerName:e})}}),b}),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(rK).initEntityValue)(Y(r));return r}return W(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(rK).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:C.isValidElement(o)?e=C.cloneElement(o,this.getControlled(o.props)):(dM(!o,"`children` of Field is not validate ReactElement."),e=o),C.createElement(C.Fragment,{key:t},e)}}]),n}(C.Component);function JK(e){var t,n=e.name,r=pI(e,WK),o=C.useContext(iK),i=C.useContext(aK),a=void 0!==n?zK(n):void 0,A=null!==(t=r.isListField)&&void 0!==t?t:!!i,s="keep";return A||(s="_".concat((a||[]).join("_"))),C.createElement(XK,$u({key:s,name:a,isListField:A},r,{fieldContext:o}))}ee(XK,"contextType",iK),ee(XK,"defaultProps",{trigger:"onChange",valuePropName:"value"});var ZK="__@field_split__";function ej(e){return e.map(function(e){return"".concat(V(e),":").concat(e)}).join(ZK)}var tj=function(){function e(){j(this,e),ee(this,"kvs",new Map)}return W(e,[{key:"set",value:function(e,t){this.kvs.set(ej(e),t)}},{key:"get",value:function(e){return this.kvs.get(ej(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(ej(e))}},{key:"map",value:function(e){return GM(this.kvs.entries()).map(function(t){var n=yE(t,2),r=n[0],o=n[1],i=r.split(ZK);return e({key:i.map(function(e){var t=yE(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),nj=["name"],rj=W(function e(t){var n=this;j(this,e),ee(this,"formHooked",!1),ee(this,"forceRootUpdate",void 0),ee(this,"subscribable",!0),ee(this,"store",{}),ee(this,"fieldEntities",[]),ee(this,"initialValues",{}),ee(this,"callbacks",{}),ee(this,"validateMessages",null),ee(this,"preserve",null),ee(this,"lastValidatePromise",null),ee(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),ee(this,"getInternalHooks",function(e){return e===rK?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(dM(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ee(this,"useSubscribe",function(e){n.subscribable=e}),ee(this,"prevWithoutPreserves",null),ee(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=tH(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=JN(o,n,qN(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),ee(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new tj;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),ee(this,"getInitialValue",function(e){var t=qN(n.initialValues,e);return e.length?tH(t):t}),ee(this,"setCallbacks",function(e){n.callbacks=e}),ee(this,"setValidateMessages",function(e){n.validateMessages=e}),ee(this,"setPreserve",function(e){n.preserve=e}),ee(this,"watchList",[]),ee(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),ee(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),ee(this,"timeoutId",null),ee(this,"warningUnhooked",function(){}),ee(this,"updateStore",function(e){n.store=e}),ee(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),ee(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new tj;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),ee(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=zK(e);return t.get(n)||{INVALIDATE_NAME_PATH:zK(e)}})}),ee(this,"getFieldsValue",function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===V(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),A=[];return a.forEach(function(e){var t,n,a,s,l="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var c="getMeta"in e?e.getMeta():null;o(c)&&A.push(l)}else A.push(l)}),KK(n.store,A.map(zK))}),ee(this,"getFieldValue",function(e){n.warningUnhooked();var t=zK(e);return qN(n.store,t)}),ee(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:zK(e[n]),errors:[],warnings:[]}})}),ee(this,"getFieldError",function(e){n.warningUnhooked();var t=zK(e);return n.getFieldsError([t])[0].errors}),ee(this,"getFieldWarning",function(e){n.warningUnhooked();var t=zK(e);return n.getFieldsError([t])[0].warnings}),ee(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],A=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(zK),A=!1):(o=null,A=i):(o=i.map(zK),A=a);var s=n.getFieldEntities(!0),l=function(e){return e.isFieldTouched()};if(!o)return A?s.every(function(e){return l(e)||e.isList()}):s.some(l);var c=new tj;o.forEach(function(e){c.set(e,[])}),s.forEach(function(e){var t=e.getNamePath();o.forEach(function(n){n.every(function(e,n){return t[n]===e})&&c.update(n,function(t){return[].concat(GM(t),[e])})})});var u=function(e){return e.some(l)},d=c.map(function(e){return e.value});return A?d.every(u):d.some(u)}),ee(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),ee(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(zK);return t.some(function(e){var t=e.getNamePath();return jK(r,t)&&e.isFieldValidating()})}),ee(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),ee(this,"resetWithFieldInitialValue",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new tj,r=n.getFieldEntities(!0);r.forEach(function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}});var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach(function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,GM(GM(r).map(function(e){return e.entity})))})):o=r,o.forEach(function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))dM(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)dM(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(JN(n.store,o,GM(i)[0].value))}}}})}),ee(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(tH(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(zK);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(JN(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),ee(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=pI(e,nj),a=zK(o);r.push(a),"value"in i&&n.updateStore(JN(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(r)}),ee(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=hM(hM({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),ee(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===qN(n.store,r)&&n.updateStore(JN(n.store,r,t))}}),ee(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),ee(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!VK(e.getNamePath(),t)})){var A=n.store;n.updateStore(JN(A,t,a,!0)),n.notifyObservers(A,[t],{type:"remove"}),n.triggerDependenciesUpdate(A,t)}}n.notifyWatch([t])}}),ee(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}}),ee(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=hM(hM({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),ee(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(GM(r))}),r}),ee(this,"updateValue",function(e,t){var r=zK(e),o=n.store;n.updateStore(JN(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(KK(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(GM(i)))}),ee(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=tH(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ee(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),ee(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new tj;n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=zK(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})});return function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),ee(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new tj;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){var n=t.name;return jK(e,n)});a.length&&r(a,o)}}),ee(this,"validateFields",function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(zK):[],A=[],s=String(Date.now()),l=new Set,c=o||{},u=c.recursive,d=c.dirty;n.getFieldEntities(!0).forEach(function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!d||e.isFieldDirty())){var t=e.getNamePath();if(l.add(t.join(s)),!i||jK(a,t,u)){var r=e.validateRules(hM({validateMessages:hM(hM({},MK),n.validateMessages)},o));A.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,GM(n)):r.push.apply(r,GM(n))}),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))})})}):Promise.resolve([])}(A);n.lastValidatePromise=p,p.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var h=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})});h.catch(function(e){return e});var f=a.filter(function(e){return l.has(e.join(s))});return n.triggerOnFieldsChange(f),h}),ee(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});function oj(e){var t=C.useRef(),n=yE(C.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new rj(function(){n({})});t.current=r.getForm()}return[t.current]}var ij=C.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),aj=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Aj=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,A=e.children,s=e.component,l=void 0===s?"form":s,c=e.validateMessages,u=e.validateTrigger,d=void 0===u?"onChange":u,p=e.onValuesChange,h=e.onFieldsChange,f=e.onFinish,m=e.onFinishFailed,g=e.clearOnDestroy,y=pI(e,aj),v=C.useRef(null),b=C.useContext(ij),w=yE(oj(i),1)[0],B=w.getInternalHooks(rK),x=B.useSubscribe,E=B.setInitialValues,k=B.setCallbacks,F=B.setValidateMessages,S=B.setPreserve,Q=B.destroyForm;C.useImperativeHandle(t,function(){return hM(hM({},w),{},{nativeElement:v.current})}),C.useEffect(function(){return b.registerForm(n,w),function(){b.unregisterForm(n)}},[b,w,n]),F(hM(hM({},b.validateMessages),c)),k({onValuesChange:p,onFieldsChange:function(e){if(b.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];h.apply(void 0,[e].concat(r))}},onFinish:function(e){b.triggerFormFinish(n,e),f&&f(e)},onFinishFailed:m}),S(a);var U,O=C.useRef(null);E(r,!O.current),O.current||(O.current=!0),C.useEffect(function(){return function(){return Q(g)}},[]);var T="function"==typeof A;T?U=A(w.getFieldsValue(!0),w):U=A;x(!T);var M=C.useRef();C.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==V(e)||"object"!==V(t))return!1;var n=Object.keys(e),r=Object.keys(t);return GM(new Set([].concat(n,r))).every(function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})})(M.current||[],o||[])||w.setFields(o||[]),M.current=o},[o,w]);var I=C.useMemo(function(){return hM(hM({},w),{},{validateTrigger:d})},[w,d]),N=C.createElement(aK.Provider,{value:null},C.createElement(iK.Provider,{value:I},U));return!1===l?N:C.createElement(l,$u({},y,{ref:v,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),N)};function sj(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var lj=C.forwardRef(Aj);lj.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=C.useContext(ij),a=C.useRef({});return C.createElement(ij.Provider,{value:hM(hM({},i),{},{validateMessages:hM(hM({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=hM(hM({},a.current),{},ee({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=hM({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},lj.Field=JK,lj.List=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,A=C.useContext(iK),s=C.useContext(aK),l=C.useRef({keys:[],id:0}).current,c=C.useMemo(function(){var e=zK(A.prefixName)||[];return[].concat(GM(e),GM(zK(t)))},[A.prefixName,t]),u=C.useMemo(function(){return hM(hM({},A),{},{prefixName:c})},[A,c]),d=C.useMemo(function(){return{getKey:function(e){var t=c.length,n=e[t];return[l.keys[n],e.slice(t+1)]}}},[c]);return"function"!=typeof r?(dM(!1,"Form.List only accepts function as children."),null):C.createElement(aK.Provider,{value:d},C.createElement(iK.Provider,{value:u},C.createElement(JK,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!s},function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=A.getFieldValue,s=function(){return a(c||[])||[]},u={add:function(e,t){var n=s();t>=0&&t<=n.length?(l.keys=[].concat(GM(l.keys.slice(0,t)),[l.id],GM(l.keys.slice(t))),i([].concat(GM(n.slice(0,t)),[e],GM(n.slice(t))))):(l.keys=[].concat(GM(l.keys),[l.id]),i([].concat(GM(n),[e]))),l.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(l.keys=l.keys.filter(function(e,t){return!n.has(t)}),i(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(l.keys=GK(l.keys,e,t),i(GK(n,e,t)))}}},d=o||[];return Array.isArray(d)||(d=[]),r(d.map(function(e,t){var n=l.keys[t];return void 0===n&&(l.keys[t]=l.id,n=l.keys[t],l.id+=1),{name:t,key:n,isListField:!0}}),u,t)})))},lj.useForm=oj,lj.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=void 0===o?{}:o,a=function(e){return e&&!!e._init}(i)?{form:i}:i,A=a.form,s=yE(b.useState(),2),l=s[0],c=s[1],u=b.useMemo(function(){return sj(l)},[l]),d=b.useRef(u);d.current=u;var p=b.useContext(iK),h=A||p,f=h&&h._init,m=zK(r),g=b.useRef(m);return g.current=m,b.useEffect(function(){if(f){var e=h.getFieldsValue,t=(0,h.getInternalHooks)(rK).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof r?r(n):qN(n,g.current)},o=t(function(e,t){var r=n(e,t),o=sj(r);d.current!==o&&(d.current=o,c(r))}),i=n(e(),e(!0));return l!==i&&c(i),o}},[f]),l};const cj=C.createContext({}),uj=({children:e,status:t,override:n})=>{const r=C.useContext(cj),o=C.useMemo(()=>{const e=Object.assign({},r);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return C.createElement(cj.Provider,{value:o},e)},dj=e=>{const{space:t,form:n,children:r}=e;if(null==r)return null;let o=r;return n&&(o=b.createElement(uj,{override:!0,status:!0},o)),t&&(o=b.createElement(aR,null,o)),o},pj=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=_n({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),A=_n({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),s=C.useMemo(()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return C.createElement("span",{className:_n(t,a,A,n),style:Object.assign(Object.assign({},s),r)})},hj=new GN("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),fj=e=>({height:e,lineHeight:TI(e)}),mj=e=>Object.assign({width:e},fj(e)),gj=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:hj,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),yj=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},fj(e)),vj=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},mj(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},mj(o)),[`${t}${t}-sm`]:Object.assign({},mj(i))}},bj=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:A}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},yj(t,A)),[`${r}-lg`]:Object.assign({},yj(o,A)),[`${r}-sm`]:Object.assign({},yj(i,A))}},wj=e=>Object.assign({width:e},fj(e)),Bj=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},wj(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},wj(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Cj=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},xj=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},fj(e)),Ej=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:A}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:A(r).mul(2).equal(),minWidth:A(r).mul(2).equal()},xj(r,A))},Cj(e,r,n)),{[`${n}-lg`]:Object.assign({},xj(o,A))}),Cj(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},xj(i,A))}),Cj(e,i,`${n}-sm`))},kj=W_("Skeleton",e=>{const{componentCls:t,calc:n}=e;return(e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:A,controlHeight:s,controlHeightLG:l,controlHeightSM:c,gradientFromColor:u,padding:d,marginSM:p,borderRadius:h,titleHeight:f,blockRadius:m,paragraphLiHeight:g,controlHeightXS:y,paragraphMarginTop:v}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},mj(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},mj(l)),[`${n}-sm`]:Object.assign({},mj(c))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:f,background:u,borderRadius:m,[`+ ${o}`]:{marginBlockStart:c}},[o]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:u,borderRadius:m,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:v}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ej(e)),vj(e)),bj(e)),Bj(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n        ${r},\n        ${o} > li,\n        ${n},\n        ${i},\n        ${a},\n        ${A}\n      `]:Object.assign({},gj(e))}}})(k_(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Fj=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:A}=C.useContext(r_),s=A("skeleton",t),[l,c,u]=kj(s),d=YL(e,["prefixCls","className"]),p=_n(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,u);return l(C.createElement("div",{className:p},C.createElement(pj,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},d))))},Sj=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=C.useContext(r_),A=a("skeleton",t),[s,l,c]=kj(A),u=_n(A,`${A}-element`,{[`${A}-active`]:i},n,r,l,c);return s(C.createElement("div",{className:u},C.createElement("div",{className:_n(`${A}-image`,n),style:o},C.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${A}-image-svg`},C.createElement("title",null,"Image placeholder"),C.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${A}-image-path`})))))},Qj=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:A}=C.useContext(r_),s=A("skeleton",t),[l,c,u]=kj(s),d=YL(e,["prefixCls"]),p=_n(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,c,u);return l(C.createElement("div",{className:p},C.createElement(pj,Object.assign({prefixCls:`${s}-input`,size:a},d))))},Uj=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:A}=C.useContext(r_),s=A("skeleton",t),[l,c,u]=kj(s),d=_n(s,`${s}-element`,{[`${s}-active`]:i},c,n,r,u);return l(C.createElement("div",{className:d},C.createElement("div",{className:_n(`${s}-image`,n),style:o},a)))},Oj=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},Tj=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((t,n)=>C.createElement("li",{key:n,style:{width:Oj(n,e)}}));return C.createElement("ul",{className:_n(t,n),style:r},i)},Mj=({prefixCls:e,className:t,width:n,style:r})=>C.createElement("h3",{className:_n(e,t),style:Object.assign({width:n},r)});function Ij(e){return e&&"object"==typeof e?e:{}}const Nj=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:A=!1,title:s=!0,paragraph:l=!0,active:c,round:u}=e,{getPrefixCls:d,direction:p,className:h,style:f}=i_("skeleton"),m=d("skeleton",t),[g,y,v]=kj(m);if(n||!("loading"in e)){const e=!!A,t=!!s,n=!!l;let a,d;if(e){const e=Object.assign(Object.assign({prefixCls:`${m}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Ij(A));a=C.createElement("div",{className:`${m}-header`},C.createElement(pj,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${m}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Ij(s));r=C.createElement(Mj,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Ij(l));o=C.createElement(Tj,Object.assign({},n))}d=C.createElement("div",{className:`${m}-content`},r,o)}const b=_n(m,{[`${m}-with-avatar`]:e,[`${m}-active`]:c,[`${m}-rtl`]:"rtl"===p,[`${m}-round`]:u},h,r,o,y,v);return g(C.createElement("div",{className:b,style:Object.assign(Object.assign({},f),i)},a,d))}return null!=a?a:null};Nj.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:A}=C.useContext(r_),s=A("skeleton",t),[l,c,u]=kj(s),d=YL(e,["prefixCls"]),p=_n(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,c,u);return l(C.createElement("div",{className:p},C.createElement(pj,Object.assign({prefixCls:`${s}-button`,size:a},d))))},Nj.Avatar=Fj,Nj.Input=Qj,Nj.Image=Sj,Nj.Node=Uj;const Hj=Nj;function _j(){}const Pj=C.createContext({add:_j,remove:_j});const Dj=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=b.useContext(Uz);return b.createElement(Fz,Object.assign({onClick:n},e),t)},Lj=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=b.useContext(Uz);return b.createElement(Fz,Object.assign({},dR(n),{loading:e,onClick:o},t),r)};function Rj(e,t){return b.createElement("span",{className:`${e}-close-x`},t||b.createElement(OD,{className:`${e}-close-icon`}))}const zj=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:A,cancelButtonProps:s,footer:l}=e,[c]=hH("Modal",dH()),u=t||(null==c?void 0:c.okText),d=r||(null==c?void 0:c.cancelText),p=b.useMemo(()=>({confirmLoading:o,okButtonProps:A,cancelButtonProps:s,okTextLocale:u,cancelTextLocale:d,okType:n,onOk:i,onCancel:a}),[o,A,s,u,d,n,i,a]);let h;return"function"==typeof l||void 0===l?(h=b.createElement(b.Fragment,null,b.createElement(Dj,null),b.createElement(Lj,null)),"function"==typeof l&&(h=l(h,{OkBtn:Lj,CancelBtn:Dj})),h=b.createElement(Oz,{value:p},h)):h=l,b.createElement(l_,{disabled:!1},h)},Kj=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},jj=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)0===a?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:a/o*100+"%"}],i[`${r}${t}-push-${a}`]={insetInlineStart:a/o*100+"%"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:a/o*100+"%"},i[`${r}${t}-offset-${a}`]={marginInlineStart:a/o*100+"%"},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t);W_("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({}));const Vj=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin});function $j(e){return{position:e,inset:0}}W_("Grid",e=>{const t=k_(e,{gridColumns:24}),n=Vj(t);return delete n.xs,[Kj(t),jj(t,""),jj(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${TI(t)})`]:Object.assign({},jj(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}));const Gj=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},$j("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},$j("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:IR(e)}]},Wj=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${TI(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},j_(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${TI(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:TI(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},$_(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${TI(e.borderRadiusLG)} ${TI(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${TI(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n          ${t}-body,\n          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Yj=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},qj=e=>{const{componentCls:t}=e,n=Vj(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(e=>({[`@media (min-width: ${TI(r[e])})`]:{width:`var(${o}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(GM(Object.keys(n).map((e,t)=>{const r=Object.keys(n)[t-1];return r?{[`${o}${e}-width`]:`var(${o}${r}-width)`}:null})),[{width:`var(${o}xs-width)`}],GM(i))}}},Xj=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return k_(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Jj=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${TI(e.paddingMD)} ${TI(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${TI(e.padding)} ${TI(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${TI(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${TI(e.paddingXS)} ${TI(e.padding)}`:0,footerBorderTop:e.wireframe?`${TI(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${TI(e.borderRadiusLG)} ${TI(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${TI(2*e.padding)} ${TI(2*e.padding)} ${TI(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Zj=W_("Modal",e=>{const t=Xj(e);return[Wj(t),Yj(t),Gj(t),zR(t,"zoom"),qj(t)]},Jj,{unitless:{titleLineHeight:!0}});var eV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let tV;const nV=e=>{tV={x:e.pageX,y:e.pageY},setTimeout(()=>{tV=null},100)};tI()&&window.document.documentElement&&document.documentElement.addEventListener("click",nV,!0);const rV=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:a,getContainer:A,focusTriggerAfterClose:s=!0,style:l,visible:c,width:u=520,footer:d,classNames:p,styles:h,children:f,loading:m,confirmLoading:g,zIndex:y,mousePosition:v,onOk:w,onCancel:B,destroyOnHidden:x,destroyOnClose:E,panelRef:k=null,modalRender:F}=e,S=eV(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:Q,getPrefixCls:U,direction:O,modal:T}=C.useContext(r_),M=e=>{g||null==B||B(e)},I=U("modal",t),N=U(),H=zD(I),[_,P,D]=Zj(I,H),L=_n(i,{[`${I}-centered`]:null!=a?a:null==T?void 0:T.centered,[`${I}-wrap-rtl`]:"rtl"===O}),R=null===d||m?null:C.createElement(zj,Object.assign({},e,{onOk:e=>{null==w||w(e)},onCancel:M})),[z,K,j,V]=((e,t,n=aL)=>{const r=iL(e),o=iL(t),[i]=hH("global",sH.global),a="boolean"!=typeof r&&!!(null==r?void 0:r.disabled),A=b.useMemo(()=>Object.assign({closeIcon:b.createElement(OD,null)},n),[n]),s=b.useMemo(()=>!1!==r&&(r?rL(A,o,r):!1!==o&&(o?rL(A,o):!!A.closable&&A)),[r,o,A]);return b.useMemo(()=>{var e,t;if(!1===s)return[!1,null,a,{}];const{closeIconRender:n}=A,{closeIcon:r}=s;let o=r;const l=LD(s,!0);return null!=o&&(n&&(o=n(r)),o=b.isValidElement(o)?b.cloneElement(o,Object.assign(Object.assign(Object.assign({},o.props),{"aria-label":null!==(t=null===(e=o.props)||void 0===e?void 0:e["aria-label"])&&void 0!==t?t:i.close}),l)):b.createElement("span",Object.assign({"aria-label":i.close},l),o)),[!0,o,a,l]},[a,i.close,s,A])})(oL(e),oL(T),{closable:!0,closeIcon:C.createElement(OD,{className:`${I}-close-icon`}),closeIconRender:e=>Rj(I,e)}),$=F?e=>C.createElement("div",{className:`${I}-render`},F(e)):void 0,G=function(e){const t=C.useContext(Pj),n=C.useRef(null);return w_(r=>{if(r){const o=e?r.querySelector(e):r;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}(`.${I}-${F?"render":"content"}`),W=DM(k,G),[Y,q]=uL("Modal",y),[X,J]=C.useMemo(()=>u&&"object"==typeof u?[void 0,u]:[u,void 0],[u]),Z=C.useMemo(()=>{const e={};return J&&Object.keys(J).forEach(t=>{const n=J[t];void 0!==n&&(e[`--${I}-${t}-width`]="number"==typeof n?`${n}px`:n)}),e},[I,J]);return _(C.createElement(dj,{form:!0,space:!0},C.createElement(AL.Provider,{value:q},C.createElement(nK,Object.assign({width:X},S,{zIndex:Y,getContainer:void 0===A?Q:A,prefixCls:I,rootClassName:_n(P,r,D,H),footer:R,visible:null!=o?o:c,mousePosition:null!=v?v:tV,onClose:M,closable:z?Object.assign({disabled:j,closeIcon:K},V):z,closeIcon:K,focusTriggerAfterClose:s,transitionName:WL(N,"zoom",e.transitionName),maskTransitionName:WL(N,"fade",e.maskTransitionName),className:_n(P,n,null==T?void 0:T.className),style:Object.assign(Object.assign(Object.assign({},null==T?void 0:T.style),l),Z),classNames:Object.assign(Object.assign(Object.assign({},null==T?void 0:T.classNames),p),{wrapper:_n(L,null==p?void 0:p.wrapper)}),styles:Object.assign(Object.assign({},null==T?void 0:T.styles),h),panelRef:W,destroyOnClose:null!=x?x:E,modalRender:$}),m?C.createElement(Hj,{active:!0,title:!1,paragraph:{rows:4},className:`${I}-body-skeleton`}):f))))},oV=q_(["Modal","confirm"],e=>(e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:A,fontHeight:s,confirmBodyPadding:l}=e,c=`${t}-confirm`;return{[c]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${c}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:l},[`${c}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(A).sub(o).equal()).div(2).equal()}},[`${c}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${TI(e.marginSM)})`},[`${e.iconCls} + ${c}-paragraph`]:{maxWidth:`calc(100% - ${TI(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${c}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${c}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${c}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${c}-error ${c}-body > ${e.iconCls}`]:{color:e.colorError},[`${c}-warning ${c}-body > ${e.iconCls},\n        ${c}-confirm ${c}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${c}-info ${c}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${c}-success ${c}-body > ${e.iconCls}`]:{color:e.colorSuccess}}})(Xj(e)),Jj,{order:-1e3});var iV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const aV=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:A,footer:s,locale:l}=e,c=iV(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let u=n;if(!n&&null!==n)switch(a){case"info":u=C.createElement(_D,null);break;case"success":u=C.createElement(ED,null);break;case"error":u=C.createElement(SD,null);break;default:u=C.createElement(ID,null)}const d=null!=A?A:"confirm"===a,p=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=hH("Modal"),f=l||h,m=r||(d?null==f?void 0:f.okText:null==f?void 0:f.justOkText),g=o||(null==f?void 0:f.cancelText),y=C.useMemo(()=>Object.assign({autoFocusButton:p,cancelTextLocale:g,okTextLocale:m,mergedOkCancel:d},c),[p,g,m,d,c]),v=C.createElement(C.Fragment,null,C.createElement(Tz,null),C.createElement(Mz,null)),b=void 0!==e.title&&null!==e.title,w=`${i}-body`;return C.createElement("div",{className:`${i}-body-wrapper`},C.createElement("div",{className:_n(w,{[`${w}-has-title`]:b})},u,C.createElement("div",{className:`${i}-paragraph`},b&&C.createElement("span",{className:`${i}-title`},e.title),C.createElement("div",{className:`${i}-content`},e.content))),void 0===s||"function"==typeof s?C.createElement(Oz,{value:y},C.createElement("div",{className:`${i}-btns`},"function"==typeof s?s(v,{OkBtn:Mz,CancelBtn:Tz}):v)):s,C.createElement(oV,{prefixCls:t}))},AV=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:A,bodyStyle:s,closable:l=!1,onConfirm:c,styles:u,title:d}=e,p=`${i}-confirm`,h=e.width||416,f=e.style||{},m=void 0===e.mask||e.mask,g=void 0!==e.maskClosable&&e.maskClosable,y=_n(p,`${p}-${e.type}`,{[`${p}-rtl`]:"rtl"===o},e.className),[,v]=K_(),b=C.useMemo(()=>void 0!==n?n:v.zIndexPopupBase+1e3,[n,v]);return C.createElement(rV,Object.assign({},e,{className:y,wrapClassName:_n({[`${p}-centered`]:!!e.centered},a),onCancel:()=>{null==t||t({triggerCancel:!0}),null==c||c(!1)},title:d,footer:null,transitionName:WL(A||"","zoom",e.transitionName),maskTransitionName:WL(A||"","fade",e.maskTransitionName),mask:m,maskClosable:g,style:f,styles:Object.assign({body:s,mask:r},u),width:h,zIndex:b,closable:l}),C.createElement(aV,Object.assign({},e,{confirmPrefixCls:p})))},sV=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return C.createElement(AD,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},C.createElement(AV,Object.assign({},e)))},lV=[];let cV="";function uV(){return cV}const dV=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=dH(),A=b.useContext(r_),s=uV()||A.getPrefixCls(),l=r||`${s}-modal`;let c=o;return!1===c&&(c=void 0),b.createElement(sV,Object.assign({},e,{rootPrefixCls:s,prefixCls:l,iconPrefixCls:A.iconPrefixCls,theme:A.theme,direction:null!=i?i:A.direction,locale:null!==(n=null===(t=A.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:a,getContainer:c}))};function pV(e){const t=iD(),n=document.createDocumentFragment();let r,o,i=Object.assign(Object.assign({},e),{close:s,open:!0});function a(...t){var n;var r;t.some(e=>null==e?void 0:e.triggerCancel)&&(null===(n=e.onCancel)||void 0===n||(r=n).call.apply(r,[e,()=>{}].concat(GM(t.slice(1)))));for(let e=0;e<lV.length;e++){if(lV[e]===s){lV.splice(e,1);break}}o()}const A=e=>{clearTimeout(r),r=setTimeout(()=>{const r=t.getPrefixCls(void 0,uV()),i=t.getIconPrefixCls(),a=t.getTheme(),A=b.createElement(dV,Object.assign({},e)),s=GL();o=s(b.createElement(AD,{prefixCls:r,iconPrefixCls:i,theme:a},"function"==typeof t.holderRender?t.holderRender(A):A),n)})};function s(...t){i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,t)}}),i.visible&&delete i.visible,A(i)}return A(i),lV.push(s),{destroy:s,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),A(i)}}}function hV(e){return Object.assign(Object.assign({},e),{type:"warning"})}function fV(e){return Object.assign(Object.assign({},e),{type:"info"})}function mV(e){return Object.assign(Object.assign({},e),{type:"success"})}function gV(e){return Object.assign(Object.assign({},e),{type:"error"})}function yV(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var vV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bV=(e,t)=>{var n,{afterClose:r,config:o}=e,i=vV(e,["afterClose","config"]);const[a,A]=C.useState(!0),[s,l]=C.useState(o),{direction:c,getPrefixCls:u}=C.useContext(r_),d=u("modal"),p=u(),h=(...e)=>{var t;A(!1);var n;e.some(e=>null==e?void 0:e.triggerCancel)&&(null===(t=s.onCancel)||void 0===t||(n=t).call.apply(n,[s,()=>{}].concat(GM(e.slice(1)))))};C.useImperativeHandle(t,()=>({destroy:h,update:e=>{l(t=>{const n="function"==typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));const f=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[m]=hH("Modal",sH.Modal);return C.createElement(sV,Object.assign({prefixCls:d,rootPrefixCls:p},s,{close:h,open:a,afterClose:()=>{var e;r(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(f?null==m?void 0:m.okText:null==m?void 0:m.justOkText),direction:s.direction||c,cancelText:s.cancelText||(null==m?void 0:m.cancelText)},i))},wV=C.forwardRef(bV);let BV=0;const CV=C.memo(C.forwardRef((e,t)=>{const[n,r]=(()=>{const[e,t]=C.useState([]);return[e,C.useCallback(e=>(t(t=>[].concat(GM(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return C.useImperativeHandle(t,()=>({patchElement:r}),[r]),C.createElement(C.Fragment,null,n)}));const xV=b.createContext({});function EV(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,A=o.noLeading,s=void 0!==A&&A,l=o.debounceMode,c=void 0===l?void 0:l,u=!1,d=0;function p(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var A=this,l=Date.now()-d;function h(){d=Date.now(),t.apply(A,o)}function f(){r=void 0}u||(s||!c||r||h(),p(),void 0===c&&l>e?s?(d=Date.now(),a||(r=setTimeout(c?f:h,e))):h():!0!==a&&(r=setTimeout(c?f:h,void 0===c?e-l:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),u=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const kV=80*Math.PI,FV=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return C.createElement("circle",{className:_n(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},SV=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[i,a]=C.useState(!1);PI(()=>{0!==e&&a(!0)},[0!==e]);const A=Math.max(Math.min(e,100),0);if(!i)return null;const s={strokeDashoffset:""+kV/4,strokeDasharray:`${kV*A/100} ${kV*(100-A)/100}`};return C.createElement("span",{className:_n(r,`${n}-progress`,A<=0&&o)},C.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":A},C.createElement(FV,{dotClassName:n,hasCircleCls:!0}),C.createElement(FV,{dotClassName:n,style:s})))};function QV(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return C.createElement(C.Fragment,null,C.createElement("span",{className:_n(o,n>0&&i)},C.createElement("span",{className:_n(r,`${t}-dot-spin`)},[1,2,3,4].map(e=>C.createElement("i",{className:`${t}-dot-item`,key:e})))),C.createElement(SV,{prefixCls:t,percent:n}))}function UV(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,i=`${n}-dot`;return r&&C.isValidElement(r)?RD(r,{className:_n(null===(t=r.props)||void 0===t?void 0:t.className,i),percent:o}):C.createElement(QV,{prefixCls:n,percent:o})}const OV=new GN("antSpinMove",{to:{opacity:1}}),TV=new GN("antRotate",{to:{transform:"rotate(405deg)"}}),MV=W_("Spin",e=>(e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},j_(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:OV,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:TV,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}})(k_(e,{spinDotDefault:e.colorTextDescription})),e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),IV=[[30,.05],[70,.03],[96,.01]];var NV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let HV;const _V=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:A="default",tip:s,wrapperClassName:l,style:c,children:u,fullscreen:d=!1,indicator:p,percent:h}=e,f=NV(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:m,direction:g,className:y,style:v,indicator:b}=i_("spin"),w=m("spin",n),[B,x,E]=MV(w),[k,F]=C.useState(()=>r&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(r,o)),S=function(e,t){const[n,r]=C.useState(0),o=C.useRef(null),i="auto"===t;return C.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(e=>{const t=100-e;for(let n=0;n<IV.length;n+=1){const[r,o]=IV[n];if(e<=r)return e+t*o}return e})},200)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[i,e]),i?n:t}(k,h);C.useEffect(()=>{if(r){const e=EV(o,()=>{F(!0)});return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}F(!1)},[o,r]);const Q=C.useMemo(()=>void 0!==u&&!d,[u,d]),U=_n(w,y,{[`${w}-sm`]:"small"===A,[`${w}-lg`]:"large"===A,[`${w}-spinning`]:k,[`${w}-show-text`]:!!s,[`${w}-rtl`]:"rtl"===g},i,!d&&a,x,E),O=_n(`${w}-container`,{[`${w}-blur`]:k}),T=null!==(t=null!=p?p:b)&&void 0!==t?t:HV,M=Object.assign(Object.assign({},v),c),I=C.createElement("div",Object.assign({},f,{style:M,className:U,"aria-live":"polite","aria-busy":k}),C.createElement(UV,{prefixCls:w,indicator:T,percent:S}),s&&(Q||d)?C.createElement("div",{className:`${w}-text`},s):null);return B(Q?C.createElement("div",Object.assign({},f,{className:_n(`${w}-nested-loading`,l,x,E)}),k&&C.createElement("div",{key:"loading"},I),C.createElement("div",{className:O,key:"container"},u)):d?C.createElement("div",{className:_n(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:k},a,x,E)},I):I)};_V.setDefaultIndicator=e=>{HV=e};const PV=_V;let DV=null,LV=e=>e(),RV=[],zV={};function KV(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=zV,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const jV=b.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=b.useContext(r_),i=zV.prefixCls||o("message"),a=b.useContext(xV),[A,s]=xL(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return b.useImperativeHandle(t,()=>{const e=Object.assign({},A);return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),A[t].apply(A,e))}),{instance:e,sync:r}}),s}),VV=b.forwardRef((e,t)=>{const[n,r]=b.useState(KV),o=()=>{r(KV)};b.useEffect(o,[]);const i=iD(),a=i.getRootPrefixCls(),A=i.getIconPrefixCls(),s=i.getTheme(),l=b.createElement(jV,{ref:t,sync:o,messageConfig:n});return b.createElement(AD,{prefixCls:a,iconPrefixCls:A,theme:s},i.holderRender?i.holderRender(l):l)}),$V=()=>{if(!DV){const e=document.createDocumentFragment(),t={fragment:e};return DV=t,void LV(()=>{GL()(b.createElement(VV,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,$V())})}}),e)})}DV.instance&&(RV.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":LV(()=>{const t=DV.instance.open(Object.assign(Object.assign({},zV),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":LV(()=>{null==DV||DV.instance.destroy(e.key)});break;default:LV(()=>{var n;const r=(n=DV.instance)[t].apply(n,GM(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)})}}),RV=[])};const GV={open:function(e){const t=gL(t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return RV.push(r),()=>{n?LV(()=>{n()}):r.skipped=!0}});return $V(),t},destroy:e=>{RV.push({type:"destroy",key:e}),$V()},config:function(e){zV=Object.assign(Object.assign({},zV),e),LV(()=>{var e;null===(e=null==DV?void 0:DV.sync)||void 0===e||e.call(DV)})},useMessage:function(e){return xL(e)},_InternalPanelDoNotUseOrYouWillBeFired:mL},WV=GV;["success","info","warning","error","loading"].forEach(e=>{WV[e]=(...t)=>function(e,t){iD();const n=gL(n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return RV.push(o),()=>{r?LV(()=>{r()}):o.skipped=!0}});return $V(),n}(e,t)});const YV=WV;var qV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const XV=(JV=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:A,footer:s}=e,l=qV(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:c}=C.useContext(r_),u=c(),d=t||c("modal"),p=zD(u),[h,f,m]=Zj(d,p),g=`${d}-confirm`;let y={};return y=i?{closable:null!=o&&o,title:"",footer:"",children:C.createElement(aV,Object.assign({},e,{prefixCls:d,confirmPrefixCls:g,rootPrefixCls:u,content:A}))}:{closable:null==o||o,title:a,footer:null!==s&&C.createElement(zj,Object.assign({},e)),children:A},h(C.createElement(Jz,Object.assign({prefixCls:d,className:_n(f,`${d}-pure-panel`,i&&g,i&&`${g}-${i}`,n,m,p)},l,{closeIcon:Rj(d,r),closable:o},y)))},e=>C.createElement(AD,{theme:{token:{motion:!1,zIndexPopupBase:0}}},C.createElement(JV,Object.assign({},e))));var JV;function ZV(e){return pV(hV(e))}const e$=rV;e$.useModal=function(){const e=C.useRef(null),[t,n]=C.useState([]);C.useEffect(()=>{if(t.length){GM(t).forEach(e=>{e()}),n([])}},[t]);const r=C.useCallback(t=>function(r){var o;BV+=1;const i=C.createRef();let a;const A=new Promise(e=>{a=e});let s,l=!1;const c=C.createElement(wV,{key:`modal-${BV}`,config:t(r),ref:i,afterClose:()=>{null==s||s()},isSilent:()=>l,onConfirm:e=>{a(e)}});s=null===(o=e.current)||void 0===o?void 0:o.patchElement(c),s&&lV.push(s);return{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n(t=>[].concat(GM(t),[e]))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n(e=>[].concat(GM(e),[t]))},then:e=>(l=!0,A.then(e))}},[]);return[C.useMemo(()=>({info:r(fV),success:r(mV),error:r(gV),warning:r(hV),confirm:r(yV)}),[r]),C.createElement(CV,{key:"modal-holder",ref:e})]},e$.info=function(e){return pV(fV(e))},e$.success=function(e){return pV(mV(e))},e$.error=function(e){return pV(gV(e))},e$.warning=ZV,e$.warn=ZV,e$.confirm=function(e){return pV(yV(e))},e$.destroyAll=function(){for(;lV.length;){const e=lV.pop();e&&e()}},e$.config=function({rootPrefixCls:e}){cV=e},e$._InternalPanelDoNotUseOrYouWillBeFired=XV;const t$=e$;function n$(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=mE(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw i}}}}var r$,o$;function i$(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function a$(e,t){return!!(e>>>t&1)}function A$(e){if(!e)throw new Error("Assertion error")}var s$=function(){function e(t,n){j(this,e),ee(this,"modeBits",void 0),ee(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return W(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}();ee(s$,"NUMERIC",new(r$=s$)(1,[10,12,14])),ee(s$,"ALPHANUMERIC",new r$(2,[9,11,13])),ee(s$,"BYTE",new r$(4,[8,16,16])),ee(s$,"KANJI",new r$(8,[8,10,12])),ee(s$,"ECI",new r$(7,[0,0,0]));var l$=W(function e(t,n){j(this,e),ee(this,"ordinal",void 0),ee(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});ee(l$,"LOW",new(o$=l$)(0,1)),ee(l$,"MEDIUM",new o$(1,0)),ee(l$,"QUARTILE",new o$(2,3)),ee(l$,"HIGH",new o$(3,2));var c$=function(){function e(t,n,r){if(j(this,e),ee(this,"mode",void 0),ee(this,"numChars",void 0),ee(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return W(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var n,r=[],o=n$(t);try{for(o.s();!(n=o.n()).done;){i$(n.value,8,r)}}catch(i){o.e(i)}finally{o.f()}return new e(s$.BYTE,t.length,r)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var n=[],r=0;r<t.length;){var o=Math.min(t.length-r,3);i$(parseInt(t.substring(r,r+o),10),3*o+1,n),r+=o}return new e(s$.NUMERIC,t.length,n)}},{key:"makeAlphanumeric",value:function(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var n,r=[];for(n=0;n+2<=t.length;n+=2){var o=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));i$(o+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),11,r)}return n<t.length&&i$(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,r),new e(s$.ALPHANUMERIC,t.length,r)}},{key:"makeSegments",value:function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)i$(t,8,n);else if(t<16384)i$(2,2,n),i$(t,14,n);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");i$(6,3,n),i$(t,21,n)}return new e(s$.ECI,0,n)}},{key:"isNumeric",value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(e,t){var n,r=0,o=n$(e);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i.mode.numCharCountBits(t);if(i.numChars>=1<<a)return 1/0;r+=4+a+i.bitData.length}}catch(A){o.e(A)}finally{o.f()}return r}},{key:"toUtf8ByteArray",value:function(e){for(var t=encodeURI(e),n=[],r=0;r<t.length;r++)"%"!=t.charAt(r)?n.push(t.charCodeAt(r)):(n.push(parseInt(t.substring(r+1,r+3),16)),r+=2);return n}}]),e}();ee(c$,"NUMERIC_REGEX",/^[0-9]*$/),ee(c$,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/),ee(c$,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var u$=function(){function e(t,n,r,o){j(this,e),ee(this,"size",void 0),ee(this,"mask",void 0),ee(this,"modules",[]),ee(this,"isFunction",[]),ee(this,"version",void 0),ee(this,"errorCorrectionLevel",void 0);var i=o;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*t+17;for(var a=[],A=0;A<this.size;A++)a.push(!1);for(var s=0;s<this.size;s++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();var l=this.addEccAndInterleave(r);if(this.drawCodewords(l),-1==i)for(var c=1e9,u=0;u<8;u++){this.applyMask(u),this.drawFormatBits(u);var d=this.getPenaltyScore();d<c&&(i=u,c=d),this.applyMask(u)}A$(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}return W(e,[{key:"getModule",value:function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,r=0;r<n;r++)for(var o=0;o<n;o++)0==r&&0==o||0==r&&o==n-1||r==n-1&&0==o||this.drawAlignmentPattern(t[r],t[o]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,r=0;r<10;r++)n=n<<1^1335*(n>>>9);var o=21522^(t<<10|n);A$(o>>>15==0);for(var i=0;i<=5;i++)this.setFunctionModule(8,i,a$(o,i));this.setFunctionModule(8,7,a$(o,6)),this.setFunctionModule(8,8,a$(o,7)),this.setFunctionModule(7,8,a$(o,8));for(var a=9;a<15;a++)this.setFunctionModule(14-a,8,a$(o,a));for(var A=0;A<8;A++)this.setFunctionModule(this.size-1-A,8,a$(o,A));for(var s=8;s<15;s++)this.setFunctionModule(8,this.size-15+s,a$(o,s));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;A$(n>>>18==0);for(var r=0;r<18;r++){var o=a$(n,r),i=this.size-11+r%3,a=Math.floor(r/3);this.setFunctionModule(i,a,o),this.setFunctionModule(a,i,o)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}},{key:"drawAlignmentPattern",value:function(e,t){for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}},{key:"setFunctionModule",value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:"addEccAndInterleave",value:function(t){var n=this.version,r=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");for(var o=e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],a=Math.floor(e.getNumRawDataModules(n)/8),A=o-a%o,s=Math.floor(a/o),l=[],c=e.reedSolomonComputeDivisor(i),u=0,d=0;u<o;u++){var p=t.slice(d,d+s-i+(u<A?0:1));d+=p.length;var h=e.reedSolomonComputeRemainder(p,c);u<A&&p.push(0),l.push(p.concat(h))}for(var f=[],m=function(e){l.forEach(function(t,n){(e!=s-i||n>=A)&&f.push(t[e])})},g=0;g<l[0].length;g++)m(g);return A$(f.length==a),f}},{key:"drawCodewords",value:function(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var n=0,r=this.size-1;r>=1;r-=2){6==r&&(r=5);for(var o=0;o<this.size;o++)for(var i=0;i<2;i++){var a=r-i,A=!(r+1&2)?this.size-1-o:o;!this.isFunction[A][a]&&n<8*t.length&&(this.modules[A][a]=a$(t[n>>>3],7-(7&n)),n++)}}A$(n==8*t.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var r=void 0;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}},{key:"getPenaltyScore",value:function(){for(var t=0,n=0;n<this.size;n++){for(var r=!1,o=0,i=[0,0,0,0,0,0,0],a=0;a<this.size;a++)this.modules[n][a]==r?5==++o?t+=e.PENALTY_N1:o>5&&t++:(this.finderPenaltyAddHistory(o,i),r||(t+=this.finderPenaltyCountPatterns(i)*e.PENALTY_N3),r=this.modules[n][a],o=1);t+=this.finderPenaltyTerminateAndCount(r,o,i)*e.PENALTY_N3}for(var A=0;A<this.size;A++){for(var s=!1,l=0,c=[0,0,0,0,0,0,0],u=0;u<this.size;u++)this.modules[u][A]==s?5==++l?t+=e.PENALTY_N1:l>5&&t++:(this.finderPenaltyAddHistory(l,c),s||(t+=this.finderPenaltyCountPatterns(c)*e.PENALTY_N3),s=this.modules[u][A],l=1);t+=this.finderPenaltyTerminateAndCount(s,l,c)*e.PENALTY_N3}for(var d=0;d<this.size-1;d++)for(var p=0;p<this.size-1;p++){var h=this.modules[d][p];h==this.modules[d][p+1]&&h==this.modules[d+1][p]&&h==this.modules[d+1][p+1]&&(t+=e.PENALTY_N2)}var f,m=0,g=n$(this.modules);try{for(g.s();!(f=g.n()).done;){m=f.value.reduce(function(e,t){return e+(t?1:0)},m)}}catch(b){g.e(b)}finally{g.f()}var y=this.size*this.size,v=Math.ceil(Math.abs(20*m-10*y)/y)-1;return A$(0<=v&&v<=9),A$(0<=(t+=v*e.PENALTY_N4)&&t<=2568888),t}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6],r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}},{key:"finderPenaltyCountPatterns",value:function(e){var t=e[1];A$(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){var r=t;return e&&(this.finderPenaltyAddHistory(r,n),r=0),r+=this.size,this.finderPenaltyAddHistory(r,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){var n=e;0==t[0]&&(n+=this.size),t.pop(),t.unshift(n)}}],[{key:"encodeText",value:function(t,n){var r=c$.makeSegments(t);return e.encodeSegments(r,n)}},{key:"encodeBinary",value:function(t,n){var r=c$.makeBytes(t);return e.encodeSegments([r],n)}},{key:"encodeSegments",value:function(t,n){var r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,A=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||A<-1||A>7)throw new RangeError("Invalid value");for(r=i;;r++){var l=8*e.getNumDataCodewords(r,n),c=c$.getTotalBits(t,r);if(c<=l){o=c;break}if(r>=a)throw new RangeError("Data too long")}for(var u=n,d=0,p=[l$.MEDIUM,l$.QUARTILE,l$.HIGH];d<p.length;d++){var h=p[d];s&&o<=8*e.getNumDataCodewords(r,h)&&(u=h)}var f,m=[],g=n$(t);try{for(g.s();!(f=g.n()).done;){var y=f.value;i$(y.mode.modeBits,4,m),i$(y.numChars,y.mode.numCharCountBits(r),m);var v,b=n$(y.getData());try{for(b.s();!(v=b.n()).done;){var w=v.value;m.push(w)}}catch(E){b.e(E)}finally{b.f()}}}catch(E){g.e(E)}finally{g.f()}A$(m.length==o);var B=8*e.getNumDataCodewords(r,u);A$(m.length<=B),i$(0,Math.min(4,B-m.length),m),i$(0,(8-m.length%8)%8,m),A$(m.length%8==0);for(var C=236;m.length<B;C^=253)i$(C,8,m);for(var x=[];8*x.length<m.length;)x.push(0);return m.forEach(function(e,t){x[t>>>3]|=e<<7-(7&t)}),new e(r,u,x,A)}},{key:"getNumRawDataModules",value:function(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*t+128)*t+64;if(t>=2){var r=Math.floor(t/7)+2;n-=(25*r-10)*r-55,t>=7&&(n-=36)}return A$(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}},{key:"reedSolomonComputeDivisor",value:function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r<t-1;r++)n.push(0);n.push(1);for(var o=1,i=0;i<t;i++){for(var a=0;a<n.length;a++)n[a]=e.reedSolomonMultiply(n[a],o),a+1<n.length&&(n[a]^=n[a+1]);o=e.reedSolomonMultiply(o,2)}return n}},{key:"reedSolomonComputeRemainder",value:function(t,n){var r,o=n.map(function(){return 0}),i=n$(t);try{var a=function(){var t=r.value^o.shift();o.push(0),n.forEach(function(n,r){o[r]^=e.reedSolomonMultiply(n,t)})};for(i.s();!(r=i.n()).done;)a()}catch(A){i.e(A)}finally{i.f()}return o}},{key:"reedSolomonMultiply",value:function(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return A$(n>>>8==0),n}}]),e}();ee(u$,"MIN_VERSION",1),ee(u$,"MAX_VERSION",40),ee(u$,"PENALTY_N1",3),ee(u$,"PENALTY_N2",3),ee(u$,"PENALTY_N3",40),ee(u$,"PENALTY_N4",10),ee(u$,"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]]),ee(u$,"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 d$={L:l$.LOW,M:l$.MEDIUM,Q:l$.QUARTILE,H:l$.HIGH},p$="#FFFFFF",h$="#000000",f$=!1,m$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach(function(e,r){var o=null;e.forEach(function(i,a){if(!i&&null!==o)return n.push("M".concat(o+t," ").concat(r+t,"h").concat(a-o,"v1H").concat(o+t,"z")),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(o+t,",").concat(r+t," h").concat(a+1-o,"v1H").concat(o+t,"z"))}})}),n.join("")},g$=function(e,t){return e.slice().map(function(e,n){return n<t.y||n>=t.y+t.h?e:e.map(function(e,n){return(n<t.x||n>=t.x+t.w)&&e})})},y$=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),v$=function(e){var t=e.value,n=e.level,r=e.minVersion,o=e.includeMargin,i=e.marginSize,a=e.imageSettings,A=e.size,s=e.boostLevel,l=b.useMemo(function(){var e=(Array.isArray(t)?t:[t]).reduce(function(e,t){return e.push.apply(e,GM(c$.makeSegments(t))),e},[]);return u$.encodeSegments(e,d$[n],r,void 0,void 0,s)},[t,n,r,s]);return b.useMemo(function(){var e=l.getModules(),t=function(e,t){return null!=t?Math.max(Math.floor(t),0):e?4:0}(o,i),n=e.length+2*t,r=function(e,t,n,r){if(null==r)return null;var o=e.length+2*n,i=Math.floor(.1*t),a=o/t,A=(r.width||i)*a,s=(r.height||i)*a,l=null==r.x?e.length/2-A/2:r.x*a,c=null==r.y?e.length/2-s/2:r.y*a,u=null==r.opacity?1:r.opacity,d=null;if(r.excavate){var p=Math.floor(l),h=Math.floor(c);d={x:p,y:h,w:Math.ceil(A+l-p),h:Math.ceil(s+c-h)}}return{x:l,y:c,h:s,w:A,excavation:d,opacity:u,crossOrigin:r.crossOrigin}}(e,A,t,a);return{cells:e,margin:t,numCells:n,calculatedImageSettings:r,qrcode:l}},[l,A,a,o,i])},b$=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings","boostLevel"],w$=b.forwardRef(function(e,t){var n=e.value,r=e.size,o=void 0===r?128:r,i=e.level,a=void 0===i?"L":i,A=e.bgColor,s=void 0===A?p$:A,l=e.fgColor,c=void 0===l?h$:l,u=e.includeMargin,d=void 0===u?f$:u,p=e.minVersion,h=void 0===p?1:p,f=e.marginSize,m=e.style,g=e.imageSettings,y=e.boostLevel,v=pI(e,b$),w=null==g?void 0:g.src,B=b.useRef(null),C=b.useRef(null),x=b.useCallback(function(e){B.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),E=yE(b.useState(!1),2)[1],k=v$({value:n,level:a,minVersion:h,includeMargin:d,marginSize:f,imageSettings:g,size:o,boostLevel:y}),F=k.margin,S=k.cells,Q=k.numCells,U=k.calculatedImageSettings;b.useEffect(function(){if(B.current){var e=B.current,t=e.getContext("2d");if(!t)return;var n=S,r=C.current,i=null!=U&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;i&&null!=U.excavation&&(n=g$(S,U.excavation));var a=window.devicePixelRatio||1;e.height=e.width=o*a;var A=o/Q*a;t.scale(A,A),t.fillStyle=s,t.fillRect(0,0,Q,Q),t.fillStyle=c,y$?t.fill(new Path2D(m$(n,F))):S.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+F,n+F,1,1)})}),U&&(t.globalAlpha=U.opacity),i&&t.drawImage(r,U.x+F,U.y+F,U.w,U.h)}}),b.useEffect(function(){E(!1)},[w]);var O=hM({height:o,width:o},m),T=null;return null!=w&&(T=b.createElement("img",{alt:"QR-Code",src:w,key:w,style:{display:"none"},onLoad:function(){E(!0)},ref:C,crossOrigin:null==U?void 0:U.crossOrigin})),b.createElement(b.Fragment,null,b.createElement("canvas",$u({style:O,height:o,width:o,ref:x,role:"img"},v)),T)}),B$=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings","boostLevel"],C$=b.forwardRef(function(e,t){var n=e.value,r=e.size,o=void 0===r?128:r,i=e.level,a=void 0===i?"L":i,A=e.bgColor,s=void 0===A?p$:A,l=e.fgColor,c=void 0===l?h$:l,u=e.includeMargin,d=void 0===u?f$:u,p=e.minVersion,h=void 0===p?1:p,f=e.title,m=e.marginSize,g=e.imageSettings,y=e.boostLevel,v=pI(e,B$),w=v$({value:n,level:a,minVersion:h,includeMargin:d,marginSize:m,imageSettings:g,size:o,boostLevel:y}),B=w.margin,C=w.cells,x=w.numCells,E=w.calculatedImageSettings,k=C,F=null;null!=g&&null!=E&&(null!=E.excavation&&(k=g$(C,E.excavation)),F=b.createElement("image",{href:g.src,height:E.h,width:E.w,x:E.x+B,y:E.y+B,preserveAspectRatio:"none",opacity:E.opacity,crossOrigin:E.crossOrigin}));var S=m$(k,B);return b.createElement("svg",$u({height:o,width:o,viewBox:"0 0 ".concat(x," ").concat(x),ref:t,role:"img"},v),!!f&&b.createElement("title",null,f),b.createElement("path",{fill:s,d:"M0,0 h".concat(x,"v").concat(x,"H0z"),shapeRendering:"crispEdges"}),b.createElement("path",{fill:c,d:S,shapeRendering:"crispEdges"}),F)});const x$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var E$=function(e,t){return C.createElement(CD,$u({},e,{ref:t,icon:x$}))};const k$=C.forwardRef(E$),F$=b.createElement(PV,null);function S$({prefixCls:e,locale:t,onRefresh:n,statusRender:r,status:o}){const i=b.createElement(b.Fragment,null,b.createElement("p",{className:`${e}-expired`},null==t?void 0:t.expired),n&&b.createElement(Fz,{type:"link",icon:b.createElement(k$,null),onClick:n},null==t?void 0:t.refresh)),a=b.createElement("p",{className:`${e}-scanned`},null==t?void 0:t.scanned),A={expired:i,loading:F$,scanned:a};return(null!=r?r:e=>A[e.status])({status:o,locale:t,onRefresh:n})}const Q$=W_("QRCode",e=>(e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return{[t]:Object.assign(Object.assign({},j_(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${TI(n)} ${r} ${o}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}})(k_(e,{QRCodeTextColor:e.colorText})),e=>({QRCodeMaskBackgroundColor:new BH(e.colorBgContainer).setA(.96).toRgbString()}));var U$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const O$=e=>{var t,n,r,o;const[,i]=K_(),{value:a,type:A="canvas",icon:s="",size:l=160,iconSize:c,color:u=i.colorText,errorLevel:d="M",status:p="active",bordered:h=!0,onRefresh:f,style:m,className:g,rootClassName:y,prefixCls:v,bgColor:w="transparent",statusRender:B,boostLevel:C}=e,x=U$(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender","boostLevel"]),{getPrefixCls:E}=b.useContext(r_),k=E("qrcode",v),[F,S,Q]=Q$(k),U={src:s,x:void 0,y:void 0,height:"number"==typeof c?c:null!==(t=null==c?void 0:c.height)&&void 0!==t?t:40,width:"number"==typeof c?c:null!==(n=null==c?void 0:c.width)&&void 0!==n?n:40,excavate:!0,crossOrigin:"anonymous"},O=LD(x,!0),T=YL(x,Object.keys(O)),M=Object.assign({value:a,size:l,level:d,bgColor:w,fgColor:u,style:{width:null==m?void 0:m.width,height:null==m?void 0:m.height},imageSettings:s?U:void 0,boostLevel:C},O),[I]=hH("QRCode");if(!a)return null;const N=_n(k,g,y,S,Q,{[`${k}-borderless`]:!h}),H=Object.assign(Object.assign({backgroundColor:w},m),{width:null!==(r=null==m?void 0:m.width)&&void 0!==r?r:l,height:null!==(o=null==m?void 0:m.height)&&void 0!==o?o:l});return F(b.createElement("div",Object.assign({},T,{className:N,style:H}),"active"!==p&&b.createElement("div",{className:`${k}-mask`},b.createElement(S$,{prefixCls:k,locale:I,status:p,onRefresh:f,statusRender:B})),"canvas"===A?b.createElement(w$,Object.assign({},M)):b.createElement(C$,Object.assign({},M))))};
/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var T$=function(e,t){return(T$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function M$(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}T$(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var I$=function(){return I$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I$.apply(this,arguments)};function N$(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(w0){i(w0)}}function A(e){try{s(r.throw(e))}catch(w0){i(w0)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,A)}s((r=r.apply(e,t||[])).next())})}function H$(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function A(i){return function(A){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(w0){i=[6,w0],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,A])}}}for(var _$=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,o){return new e(this.left+t,this.top+n,this.width+r,this.height+o)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(e){return 0!==e.width});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),P$=function(e,t){return _$.fromClientRect(e,t.getBoundingClientRect())},D$=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t},L$=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],o=-1,i="";++o<n;){var a=e[o];a<=65535?r.push(a):(a-=65536,r.push(55296+(a>>10),a%1024+56320)),(o+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},R$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z$="undefined"==typeof Uint8Array?[]:new Uint8Array(256),K$=0;K$<64;K$++)z$[R$.charCodeAt(K$)]=K$;for(var j$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V$="undefined"==typeof Uint8Array?[]:new Uint8Array(256),$$=0;$$<64;$$++)V$[j$.charCodeAt($$)]=$$;for(var G$=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},W$=function(){function e(e,t,n,r,o,i){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=o,this.data=i}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Y$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q$="undefined"==typeof Uint8Array?[]:new Uint8Array(256),X$=0;X$<64;X$++)q$[Y$.charCodeAt(X$)]=X$;var J$,Z$,eG,tG,nG,rG,oG,iG,aG=10,AG=13,sG=15,lG=17,cG=18,uG=19,dG=20,pG=21,hG=22,fG=24,mG=25,gG=26,yG=27,vG=28,bG=30,wG=32,BG=33,CG=34,xG=35,EG=37,kG=38,FG=39,SG=40,QG=42,UG=[9001,65288],OG="\xd7",TG="\xf7",MG=(tG=function(e){var t,n,r,o,i,a=.75*e.length,A=e.length,s=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<A;t+=4)n=V$[e.charCodeAt(t)],r=V$[e.charCodeAt(t+1)],o=V$[e.charCodeAt(t+2)],i=V$[e.charCodeAt(t+3)],c[s++]=n<<2|r>>4,c[s++]=(15&r)<<4|o>>2,c[s++]=(3&o)<<6|63&i;return l}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),nG=Array.isArray(tG)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(tG):new Uint32Array(tG),rG=Array.isArray(tG)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(tG):new Uint16Array(tG),oG=G$(rG,12,nG[4]/2),iG=2===nG[5]?G$(rG,(24+nG[4])/2):(J$=nG,Z$=Math.ceil((24+nG[4])/4),J$.slice?J$.slice(Z$,eG):new Uint32Array(Array.prototype.slice.call(J$,Z$,eG))),new W$(nG[0],nG[1],nG[2],nG[3],oG,iG)),IG=[bG,36],NG=[1,2,3,5],HG=[aG,8],_G=[yG,gG],PG=NG.concat(HG),DG=[kG,FG,SG,CG,xG],LG=[sG,AG],RG=function(e,t,n,r){var o=r[n];if(Array.isArray(e)?-1!==e.indexOf(o):e===o)for(var i=n;i<=r.length;){if((s=r[++i])===t)return!0;if(s!==aG)break}if(o===aG)for(i=n;i>0;){var a=r[--i];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var A=n;A<=r.length;){var s;if((s=r[++A])===t)return!0;if(s!==aG)break}if(a!==aG)break}return!1},zG=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==aG)return r;n--}return 0},KG=function(e,t,n,r,o){if(0===n[r])return OG;var i=r-1;if(Array.isArray(o)&&!0===o[i])return OG;var a=i-1,A=i+1,s=t[i],l=a>=0?t[a]:0,c=t[A];if(2===s&&3===c)return OG;if(-1!==NG.indexOf(s))return"!";if(-1!==NG.indexOf(c))return OG;if(-1!==HG.indexOf(c))return OG;if(8===zG(i,t))return TG;if(11===MG.get(e[i]))return OG;if((s===wG||s===BG)&&11===MG.get(e[A]))return OG;if(7===s||7===c)return OG;if(9===s)return OG;if(-1===[aG,AG,sG].indexOf(s)&&9===c)return OG;if(-1!==[lG,cG,uG,fG,vG].indexOf(c))return OG;if(zG(i,t)===hG)return OG;if(RG(23,hG,i,t))return OG;if(RG([lG,cG],pG,i,t))return OG;if(RG(12,12,i,t))return OG;if(s===aG)return TG;if(23===s||23===c)return OG;if(16===c||16===s)return TG;if(-1!==[AG,sG,pG].indexOf(c)||14===s)return OG;if(36===l&&-1!==LG.indexOf(s))return OG;if(s===vG&&36===c)return OG;if(c===dG)return OG;if(-1!==IG.indexOf(c)&&s===mG||-1!==IG.indexOf(s)&&c===mG)return OG;if(s===yG&&-1!==[EG,wG,BG].indexOf(c)||-1!==[EG,wG,BG].indexOf(s)&&c===gG)return OG;if(-1!==IG.indexOf(s)&&-1!==_G.indexOf(c)||-1!==_G.indexOf(s)&&-1!==IG.indexOf(c))return OG;if(-1!==[yG,gG].indexOf(s)&&(c===mG||-1!==[hG,sG].indexOf(c)&&t[A+1]===mG)||-1!==[hG,sG].indexOf(s)&&c===mG||s===mG&&-1!==[mG,vG,fG].indexOf(c))return OG;if(-1!==[mG,vG,fG,lG,cG].indexOf(c))for(var u=i;u>=0;){if((d=t[u])===mG)return OG;if(-1===[vG,fG].indexOf(d))break;u--}if(-1!==[yG,gG].indexOf(c))for(u=-1!==[lG,cG].indexOf(s)?a:i;u>=0;){var d;if((d=t[u])===mG)return OG;if(-1===[vG,fG].indexOf(d))break;u--}if(kG===s&&-1!==[kG,FG,CG,xG].indexOf(c)||-1!==[FG,CG].indexOf(s)&&-1!==[FG,SG].indexOf(c)||-1!==[SG,xG].indexOf(s)&&c===SG)return OG;if(-1!==DG.indexOf(s)&&-1!==[dG,gG].indexOf(c)||-1!==DG.indexOf(c)&&s===yG)return OG;if(-1!==IG.indexOf(s)&&-1!==IG.indexOf(c))return OG;if(s===fG&&-1!==IG.indexOf(c))return OG;if(-1!==IG.concat(mG).indexOf(s)&&c===hG&&-1===UG.indexOf(e[A])||-1!==IG.concat(mG).indexOf(c)&&s===cG)return OG;if(41===s&&41===c){for(var p=n[i],h=1;p>0&&41===t[--p];)h++;if(h%2!=0)return OG}return s===wG&&c===BG?OG:TG},jG=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],o=[];return e.forEach(function(e,i){var a=MG.get(e);if(a>50?(o.push(!0),a-=50):o.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(i),n.push(16);if(4===a||11===a){if(0===i)return r.push(i),n.push(bG);var A=n[i-1];return-1===PG.indexOf(A)?(r.push(r[i-1]),n.push(A)):(r.push(i),n.push(bG))}return r.push(i),31===a?n.push("strict"===t?pG:EG):a===QG||29===a?n.push(bG):43===a?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(EG):n.push(bG):void n.push(a)}),[r,n,o]}(e,t.lineBreak),r=n[0],o=n[1],i=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(o=o.map(function(e){return-1!==[mG,bG,QG].indexOf(e)?EG:e}));var a="keep-all"===t.wordBreak?i.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0;return[r,o,a]},VG=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return L$.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),$G=45,GG=43,WG=-1,YG=function(e){return e>=48&&e<=57},qG=function(e){return YG(e)||e>=65&&e<=70||e>=97&&e<=102},XG=function(e){return 10===e||9===e||32===e},JG=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},ZG=function(e){return JG(e)||YG(e)||e===$G},eW=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},tW=function(e,t){return 92===e&&10!==t},nW=function(e,t,n){return e===$G?JG(t)||tW(t,n):!!JG(e)||!(92!==e||!tW(e,t))},rW=function(e,t,n){return e===GG||e===$G?!!YG(t)||46===t&&YG(n):YG(46===e?t:e)},oW=function(e){var t=0,n=1;e[t]!==GG&&e[t]!==$G||(e[t]===$G&&(n=-1),t++);for(var r=[];YG(e[t]);)r.push(e[t++]);var o=r.length?parseInt(L$.apply(void 0,r),10):0;46===e[t]&&t++;for(var i=[];YG(e[t]);)i.push(e[t++]);var a=i.length,A=a?parseInt(L$.apply(void 0,i),10):0;69!==e[t]&&101!==e[t]||t++;var s=1;e[t]!==GG&&e[t]!==$G||(e[t]===$G&&(s=-1),t++);for(var l=[];YG(e[t]);)l.push(e[t++]);var c=l.length?parseInt(L$.apply(void 0,l),10):0;return n*(o+A*Math.pow(10,-a))*Math.pow(10,s*c)},iW={type:2},aW={type:3},AW={type:4},sW={type:13},lW={type:8},cW={type:21},uW={type:9},dW={type:10},pW={type:11},hW={type:12},fW={type:14},mW={type:23},gW={type:1},yW={type:25},vW={type:24},bW={type:26},wW={type:27},BW={type:28},CW={type:29},xW={type:31},EW={type:32},kW=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(D$(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==EW;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ZG(t)||tW(n,r)){var o=nW(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:o}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),sW;break;case 39:return this.consumeStringToken(39);case 40:return iW;case 41:return aW;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),fW;break;case GG:if(rW(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return AW;case $G:var i=e,a=this.peekCodePoint(0),A=this.peekCodePoint(1);if(rW(i,a,A))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(nW(i,a,A))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===$G&&62===A)return this.consumeCodePoint(),this.consumeCodePoint(),vW;break;case 46:if(rW(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(42===s&&47===(s=this.consumeCodePoint()))return this.consumeToken();if(s===WG)return this.consumeToken()}break;case 58:return bW;case 59:return wW;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===$G&&this.peekCodePoint(2)===$G)return this.consumeCodePoint(),this.consumeCodePoint(),yW;break;case 64:var l=this.peekCodePoint(0),c=this.peekCodePoint(1),u=this.peekCodePoint(2);if(nW(l,c,u))return{type:7,value:this.consumeName()};break;case 91:return BW;case 92:if(tW(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return CW;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),lW;break;case 123:return pW;case 125:return hW;case 117:case 85:var d=this.peekCodePoint(0),p=this.peekCodePoint(1);return d!==GG||!qG(p)&&63!==p||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),uW;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),cW;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),dW;break;case WG:return EW}return XG(e)?(this.consumeWhiteSpace(),xW):YG(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):JG(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:L$(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();qG(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(L$.apply(void 0,e.map(function(e){return 63===e?48:e})),16),end:parseInt(L$.apply(void 0,e.map(function(e){return 63===e?70:e})),16)};var r=parseInt(L$.apply(void 0,e),16);if(this.peekCodePoint(0)===$G&&qG(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];qG(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(L$.apply(void 0,o),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===WG)return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===WG||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),mW)}for(;;){var r=this.consumeCodePoint();if(r===WG||41===r)return{type:22,value:L$.apply(void 0,e)};if(XG(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===WG||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:L$.apply(void 0,e)}):(this.consumeBadUrlRemnants(),mW);if(34===r||39===r||40===r||eW(r))return this.consumeBadUrlRemnants(),mW;if(92===r){if(!tW(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),mW;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;XG(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===WG)return;tW(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(5e4,e);t+=L$.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===WG||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),gW;if(92===r){var o=this._value[n+1];o!==WG&&void 0!==o&&(10===o?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):tW(r,o)&&(t+=this.consumeStringSlice(n),t+=L$(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(n!==GG&&n!==$G||e.push(this.consumeCodePoint());YG(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&YG(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;YG(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((69===n||101===n)&&((r===GG||r===$G)&&YG(o)||YG(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;YG(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[oW(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);return nW(r,o,i)?{type:15,number:t,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(qG(e)){for(var t=L$(e);qG(this.peekCodePoint(0))&&t.length<6;)t+=L$(this.consumeCodePoint());XG(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return e===WG?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(ZG(t))e+=L$(t);else{if(!tW(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=L$(this.consumeEscapedCodePoint())}}},e}(),FW=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new kW;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||HW(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?EW:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),SW=function(e){return 15===e.type},QW=function(e){return 17===e.type},UW=function(e){return 20===e.type},OW=function(e){return 0===e.type},TW=function(e,t){return UW(e)&&e.value===t},MW=function(e){return 31!==e.type},IW=function(e){return 31!==e.type&&4!==e.type},NW=function(e){var t=[],n=[];return e.forEach(function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)}),n.length&&t.push(n),t},HW=function(e,t){return 11===t&&12===e.type||(28===t&&29===e.type||2===t&&3===e.type)},_W=function(e){return 17===e.type||15===e.type},PW=function(e){return 16===e.type||_W(e)},DW=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},LW={type:17,number:0,flags:4},RW={type:16,number:50,flags:4},zW={type:16,number:100,flags:4},KW=function(e,t,n){var r=e[0],o=e[1];return[jW(r,t),jW(void 0!==o?o:r,n)]},jW=function(e,t){if(16===e.type)return e.number/100*t;if(SW(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},VW="grad",$W="turn",GW=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case VW:return Math.PI/200*t.number;case"rad":return t.number;case $W:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},WW=function(e){return 15===e.type&&("deg"===e.unit||e.unit===VW||"rad"===e.unit||e.unit===$W)},YW=function(e){switch(e.filter(UW).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LW,LW];case"to top":case"bottom":return qW(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LW,zW];case"to right":case"left":return qW(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zW,zW];case"to bottom":case"top":return qW(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zW,LW];case"to left":case"right":return qW(270)}return 0},qW=function(e){return Math.PI*e/180},XW=function(e,t){if(18===t.type){var n=iY[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),o=t.value.substring(1,2),i=t.value.substring(2,3);return eY(parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16),1)}if(4===t.value.length){r=t.value.substring(0,1),o=t.value.substring(1,2),i=t.value.substring(2,3);var a=t.value.substring(3,4);return eY(parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(6===t.value.length){r=t.value.substring(0,2),o=t.value.substring(2,4),i=t.value.substring(4,6);return eY(parseInt(r,16),parseInt(o,16),parseInt(i,16),1)}if(8===t.value.length){r=t.value.substring(0,2),o=t.value.substring(2,4),i=t.value.substring(4,6),a=t.value.substring(6,8);return eY(parseInt(r,16),parseInt(o,16),parseInt(i,16),parseInt(a,16)/255)}}if(20===t.type){var A=AY[t.value.toUpperCase()];if(void 0!==A)return A}return AY.TRANSPARENT},JW=function(e){return!(255&e)},ZW=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,o=255&e>>24;return t<255?"rgba("+o+","+r+","+n+","+t/255+")":"rgb("+o+","+r+","+n+")"},eY=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r))>>>0},tY=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},nY=function(e,t){var n=t.filter(IW);if(3===n.length){var r=n.map(tY),o=r[0],i=r[1],a=r[2];return eY(o,i,a,1)}if(4===n.length){var A=n.map(tY),s=(o=A[0],i=A[1],a=A[2],A[3]);return eY(o,i,a,s)}return 0};function rY(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var oY=function(e,t){var n=t.filter(IW),r=n[0],o=n[1],i=n[2],a=n[3],A=(17===r.type?qW(r.number):GW(e,r))/(2*Math.PI),s=PW(o)?o.number/100:0,l=PW(i)?i.number/100:0,c=void 0!==a&&PW(a)?jW(a,1):1;if(0===s)return eY(255*l,255*l,255*l,1);var u=l<=.5?l*(s+1):l+s-l*s,d=2*l-u,p=rY(d,u,A+1/3),h=rY(d,u,A),f=rY(d,u,A-1/3);return eY(255*p,255*h,255*f,c)},iY={hsl:oY,hsla:oY,rgb:nY,rgba:nY},aY=function(e,t){return XW(e,FW.create(t).parseComponentValue())},AY={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,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,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,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},sY={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(UW(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},lY={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},cY=function(e,t){var n=XW(e,t[0]),r=t[1];return r&&PW(r)?{color:n,stop:r}:{color:n,stop:null}},uY=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=LW),null===r.stop&&(r.stop=zW);for(var o=[],i=0,a=0;a<e.length;a++){var A=e[a].stop;if(null!==A){var s=jW(A,t);s>i?o.push(s):o.push(i),i=s}else o.push(null)}var l=null;for(a=0;a<o.length;a++){var c=o[a];if(null===c)null===l&&(l=a);else if(null!==l){for(var u=a-l,d=(c-o[l-1])/(u+1),p=1;p<=u;p++)o[l+p-1]=d*p;l=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,o[n]/t),0)}})},dY=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,o=n/2,i=jW(e[0],t)-r,a=o-jW(e[1],n);return(Math.atan2(a,i)+2*Math.PI)%(2*Math.PI)}(e,t,n),o=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),i=t/2,a=n/2,A=o/2,s=Math.sin(r-Math.PI/2)*A,l=Math.cos(r-Math.PI/2)*A;return[o,i-l,i+l,a-s,a+s]},pY=function(e,t){return Math.sqrt(e*e+t*t)},hY=function(e,t,n,r,o){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var i=t[0],a=t[1],A=pY(n-i,r-a);return(o?A<e.optimumDistance:A>e.optimumDistance)?{optimumCorner:t,optimumDistance:A}:e},{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},fY=function(e,t){var n=qW(180),r=[];return NW(t).forEach(function(t,o){if(0===o){var i=t[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(n=YW(t));if(WW(i))return void(n=(GW(e,i)+qW(270))%qW(360))}var a=cY(e,t);r.push(a)}),{angle:n,stops:r,type:1}},mY="closest-side",gY="farthest-side",yY="closest-corner",vY="farthest-corner",bY="circle",wY="ellipse",BY="cover",CY="contain",xY=function(e,t){var n=0,r=3,o=[],i=[];return NW(t).forEach(function(t,a){var A=!0;if(0===a?A=t.reduce(function(e,t){if(UW(t))switch(t.value){case"center":return i.push(RW),!1;case"top":case"left":return i.push(LW),!1;case"right":case"bottom":return i.push(zW),!1}else if(PW(t)||_W(t))return i.push(t),!1;return e},A):1===a&&(A=t.reduce(function(e,t){if(UW(t))switch(t.value){case bY:return n=0,!1;case wY:return n=1,!1;case CY:case mY:return r=0,!1;case gY:return r=1,!1;case yY:return r=2,!1;case BY:case vY:return r=3,!1}else if(_W(t)||PW(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},A)),A){var s=cY(e,t);o.push(s)}}),{size:r,shape:n,stops:o,position:i,type:2}},EY=function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=SY[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)};var kY,FY,SY={"linear-gradient":function(e,t){var n=qW(180),r=[];return NW(t).forEach(function(t,o){if(0===o){var i=t[0];if(20===i.type&&"to"===i.value)return void(n=YW(t));if(WW(i))return void(n=GW(e,i))}var a=cY(e,t);r.push(a)}),{angle:n,stops:r,type:1}},"-moz-linear-gradient":fY,"-ms-linear-gradient":fY,"-o-linear-gradient":fY,"-webkit-linear-gradient":fY,"radial-gradient":function(e,t){var n=0,r=3,o=[],i=[];return NW(t).forEach(function(t,a){var A=!0;if(0===a){var s=!1;A=t.reduce(function(e,t){if(s)if(UW(t))switch(t.value){case"center":return i.push(RW),e;case"top":case"left":return i.push(LW),e;case"right":case"bottom":return i.push(zW),e}else(PW(t)||_W(t))&&i.push(t);else if(UW(t))switch(t.value){case bY:return n=0,!1;case wY:return n=1,!1;case"at":return s=!0,!1;case mY:return r=0,!1;case BY:case gY:return r=1,!1;case CY:case yY:return r=2,!1;case vY:return r=3,!1}else if(_W(t)||PW(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},A)}if(A){var l=cY(e,t);o.push(l)}}),{size:r,shape:n,stops:o,position:i,type:2}},"-moz-radial-gradient":xY,"-ms-radial-gradient":xY,"-o-radial-gradient":xY,"-webkit-radial-gradient":xY,"-webkit-gradient":function(e,t){var n=qW(180),r=[],o=1;return NW(t).forEach(function(t,n){var i=t[0];if(0===n){if(UW(i)&&"linear"===i.value)return void(o=1);if(UW(i)&&"radial"===i.value)return void(o=2)}if(18===i.type)if("from"===i.name){var a=XW(e,i.values[0]);r.push({stop:LW,color:a})}else if("to"===i.name){a=XW(e,i.values[0]);r.push({stop:zW,color:a})}else if("color-stop"===i.name){var A=i.values.filter(IW);if(2===A.length){a=XW(e,A[1]);var s=A[0];QW(s)&&r.push({stop:{type:16,number:100*s.number,flags:s.flags},color:a})}}}),1===o?{angle:(n+qW(180))%qW(360),stops:r,type:o}:{size:3,shape:0,stops:r,position:[],type:o}}},QY={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter(function(e){return IW(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!SY[e.name])}(e)}).map(function(t){return EY(e,t)})}},UY={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(UW(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},OY={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return NW(t).map(function(e){return e.filter(PW)}).map(DW)}},TY={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return NW(t).map(function(e){return e.filter(UW).map(function(e){return e.value}).join(" ")}).map(MY)}},MY=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};(FY=kY||(kY={})).AUTO="auto",FY.CONTAIN="contain",FY.COVER="cover";var IY,NY,HY={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return NW(t).map(function(e){return e.filter(_Y)})}},_Y=function(e){return UW(e)||PW(e)},PY=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},DY=PY("top"),LY=PY("right"),RY=PY("bottom"),zY=PY("left"),KY=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return DW(t.filter(PW))}}},jY=KY("top-left"),VY=KY("top-right"),$Y=KY("bottom-right"),GY=KY("bottom-left"),WY=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},YY=WY("top"),qY=WY("right"),XY=WY("bottom"),JY=WY("left"),ZY=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return SW(t)?t.number:0}}},eq=ZY("top"),tq=ZY("right"),nq=ZY("bottom"),rq=ZY("left"),oq={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iq={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},aq={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(UW).reduce(function(e,t){return e|Aq(t.value)},0)}},Aq=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},sq={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},lq={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};(NY=IY||(IY={})).NORMAL="normal",NY.STRICT="strict";var cq,uq,dq={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?IY.STRICT:IY.NORMAL}},pq={name:"line-height",initialValue:"normal",prefix:!1,type:4},hq=function(e,t){return UW(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:PW(e)?jW(e,t):t},fq={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:EY(e,t)}},mq={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},gq={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},yq=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},vq=yq("top"),bq=yq("right"),wq=yq("bottom"),Bq=yq("left"),Cq={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(UW).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},xq={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},Eq=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},kq=Eq("top"),Fq=Eq("right"),Sq=Eq("bottom"),Qq=Eq("left"),Uq={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Oq={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Tq={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&TW(t[0],"none")?[]:NW(t).map(function(t){for(var n={color:AY.TRANSPARENT,offsetX:LW,offsetY:LW,blur:LW},r=0,o=0;o<t.length;o++){var i=t[o];_W(i)?(0===r?n.offsetX=i:1===r?n.offsetY=i:n.blur=i,r++):n.color=XW(e,i)}return n})}},Mq={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Iq={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=Nq[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},Nq={matrix:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var o=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var a=t[12],A=t[13];return t[14],t[15],16===t.length?[n,r,o,i,a,A]:null}},Hq={type:16,number:50,flags:4},_q=[Hq,Hq],Pq={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(PW);return 2!==n.length?_q:[n[0],n[1]]}},Dq={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;default:return 0}}};(uq=cq||(cq={})).NORMAL="normal",uq.BREAK_ALL="break-all",uq.KEEP_ALL="keep-all";for(var Lq={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return cq.BREAK_ALL;case"keep-all":return cq.KEEP_ALL;default:return cq.NORMAL}}},Rq={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(QW(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},zq=function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")},Kq={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return QW(t)?t.number:1}},jq={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Vq={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(UW).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},$q={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},Gq={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Wq={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){return QW(t)?t.number:UW(t)&&"bold"===t.value?700:400}},Yq={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(UW).map(function(e){return e.value})}},qq={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},Xq=function(e,t){return 0!==(e&t)},Jq={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},Zq={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],o=t.filter(MW),i=0;i<o.length;i++){var a=o[i],A=o[i+1];if(20===a.type){var s=A&&QW(A)?A.number:1;r.push({counter:a.value,increment:s})}}return r}},eX={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(MW),o=0;o<r.length;o++){var i=r[o],a=r[o+1];if(UW(i)&&"none"!==i.value){var A=a&&QW(a)?a.number:0;n.push({counter:i.value,reset:A})}}return n}},tX={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(SW).map(function(t){return zq(e,t)})}},nX={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var r=[],o=t.filter(OW);if(o.length%2!=0)return null;for(var i=0;i<o.length;i+=2){var a=o[i].value,A=o[i+1].value;r.push({open:a,close:A})}return r}},rX=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},oX={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&TW(t[0],"none")?[]:NW(t).map(function(t){for(var n={color:255,offsetX:LW,offsetY:LW,blur:LW,spread:LW,inset:!1},r=0,o=0;o<t.length;o++){var i=t[o];TW(i,"inset")?n.inset=!0:_W(i)?(0===r?n.offsetX=i:1===r?n.offsetY=i:2===r?n.blur=i:n.spread=i,r++):n.color=XW(e,i)}return n})}},iX={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[];return t.filter(UW).forEach(function(e){switch(e.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}}),[0,1,2].forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n}},aX={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},AX={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return SW(t)?t.number:0}},sX=function(){function e(e,t){var n,r;this.animationDuration=uX(e,tX,t.animationDuration),this.backgroundClip=uX(e,sY,t.backgroundClip),this.backgroundColor=uX(e,lY,t.backgroundColor),this.backgroundImage=uX(e,QY,t.backgroundImage),this.backgroundOrigin=uX(e,UY,t.backgroundOrigin),this.backgroundPosition=uX(e,OY,t.backgroundPosition),this.backgroundRepeat=uX(e,TY,t.backgroundRepeat),this.backgroundSize=uX(e,HY,t.backgroundSize),this.borderTopColor=uX(e,DY,t.borderTopColor),this.borderRightColor=uX(e,LY,t.borderRightColor),this.borderBottomColor=uX(e,RY,t.borderBottomColor),this.borderLeftColor=uX(e,zY,t.borderLeftColor),this.borderTopLeftRadius=uX(e,jY,t.borderTopLeftRadius),this.borderTopRightRadius=uX(e,VY,t.borderTopRightRadius),this.borderBottomRightRadius=uX(e,$Y,t.borderBottomRightRadius),this.borderBottomLeftRadius=uX(e,GY,t.borderBottomLeftRadius),this.borderTopStyle=uX(e,YY,t.borderTopStyle),this.borderRightStyle=uX(e,qY,t.borderRightStyle),this.borderBottomStyle=uX(e,XY,t.borderBottomStyle),this.borderLeftStyle=uX(e,JY,t.borderLeftStyle),this.borderTopWidth=uX(e,eq,t.borderTopWidth),this.borderRightWidth=uX(e,tq,t.borderRightWidth),this.borderBottomWidth=uX(e,nq,t.borderBottomWidth),this.borderLeftWidth=uX(e,rq,t.borderLeftWidth),this.boxShadow=uX(e,oX,t.boxShadow),this.color=uX(e,oq,t.color),this.direction=uX(e,iq,t.direction),this.display=uX(e,aq,t.display),this.float=uX(e,sq,t.cssFloat),this.fontFamily=uX(e,$q,t.fontFamily),this.fontSize=uX(e,Gq,t.fontSize),this.fontStyle=uX(e,qq,t.fontStyle),this.fontVariant=uX(e,Yq,t.fontVariant),this.fontWeight=uX(e,Wq,t.fontWeight),this.letterSpacing=uX(e,lq,t.letterSpacing),this.lineBreak=uX(e,dq,t.lineBreak),this.lineHeight=uX(e,pq,t.lineHeight),this.listStyleImage=uX(e,fq,t.listStyleImage),this.listStylePosition=uX(e,mq,t.listStylePosition),this.listStyleType=uX(e,gq,t.listStyleType),this.marginTop=uX(e,vq,t.marginTop),this.marginRight=uX(e,bq,t.marginRight),this.marginBottom=uX(e,wq,t.marginBottom),this.marginLeft=uX(e,Bq,t.marginLeft),this.opacity=uX(e,Kq,t.opacity);var o=uX(e,Cq,t.overflow);this.overflowX=o[0],this.overflowY=o[o.length>1?1:0],this.overflowWrap=uX(e,xq,t.overflowWrap),this.paddingTop=uX(e,kq,t.paddingTop),this.paddingRight=uX(e,Fq,t.paddingRight),this.paddingBottom=uX(e,Sq,t.paddingBottom),this.paddingLeft=uX(e,Qq,t.paddingLeft),this.paintOrder=uX(e,iX,t.paintOrder),this.position=uX(e,Oq,t.position),this.textAlign=uX(e,Uq,t.textAlign),this.textDecorationColor=uX(e,jq,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=uX(e,Vq,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=uX(e,Tq,t.textShadow),this.textTransform=uX(e,Mq,t.textTransform),this.transform=uX(e,Iq,t.transform),this.transformOrigin=uX(e,Pq,t.transformOrigin),this.visibility=uX(e,Dq,t.visibility),this.webkitTextStrokeColor=uX(e,aX,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=uX(e,AX,t.webkitTextStrokeWidth),this.wordBreak=uX(e,Lq,t.wordBreak),this.zIndex=uX(e,Rq,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return JW(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return Xq(this.display,4)||Xq(this.display,33554432)||Xq(this.display,268435456)||Xq(this.display,536870912)||Xq(this.display,67108864)||Xq(this.display,134217728)},e}(),lX=function(e,t){this.content=uX(e,Jq,t.content),this.quotes=uX(e,nX,t.quotes)},cX=function(e,t){this.counterIncrement=uX(e,Zq,t.counterIncrement),this.counterReset=uX(e,eX,t.counterReset)},uX=function(e,t,n){var r=new kW,o=null!=n?n.toString():t.initialValue;r.write(o);var i=new FW(r.read());switch(t.type){case 2:var a=i.parseComponentValue();return t.parse(e,UW(a)?a.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return GW(e,i.parseComponentValue());case"color":return XW(e,i.parseComponentValue());case"image":return EY(e,i.parseComponentValue());case"length":var A=i.parseComponentValue();return _W(A)?A:LW;case"length-percentage":var s=i.parseComponentValue();return PW(s)?s:LW;case"time":return zq(e,i.parseComponentValue())}}},dX=function(e,t){var n=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===n||t===n},pX=function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,dX(t,3),this.styles=new sX(e,window.getComputedStyle(t,null)),yJ(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=P$(this.context,t),dX(t,4)&&(this.flags|=16)},hX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fX="undefined"==typeof Uint8Array?[]:new Uint8Array(256),mX=0;mX<64;mX++)fX[hX.charCodeAt(mX)]=mX;for(var gX=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},yX=function(){function e(e,t,n,r,o,i){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=o,this.data=i}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),vX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bX="undefined"==typeof Uint8Array?[]:new Uint8Array(256),wX=0;wX<64;wX++)bX[vX.charCodeAt(wX)]=wX;var BX,CX,xX=8,EX=9,kX=11,FX=12,SX=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],o=-1,i="";++o<n;){var a=e[o];a<=65535?r.push(a):(a-=65536,r.push(55296+(a>>10),a%1024+56320)),(o+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},QX=function(e){var t=function(e){var t,n,r,o,i,a=.75*e.length,A=e.length,s=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<A;t+=4)n=fX[e.charCodeAt(t)],r=fX[e.charCodeAt(t+1)],o=fX[e.charCodeAt(t+2)],i=fX[e.charCodeAt(t+3)],c[s++]=n<<2|r>>4,c[s++]=(15&r)<<4|o>>2,c[s++]=(3&o)<<6|63&i;return l}(e),n=Array.isArray(t)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(t):new Uint32Array(t),r=Array.isArray(t)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(t):new Uint16Array(t),o=gX(r,12,n[4]/2),i=2===n[5]?gX(r,(24+n[4])/2):function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))}(n,Math.ceil((24+n[4])/4));return new yX(n[0],n[1],n[2],n[3],o,i)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),UX="\xd7",OX=function(e){return QX.get(e)},TX=function(e,t,n){var r=n-2,o=t[r],i=t[n-1],a=t[n];if(2===i&&3===a)return UX;if(2===i||3===i||4===i)return"\xf7";if(2===a||3===a||4===a)return"\xf7";if(i===xX&&-1!==[xX,EX,kX,FX].indexOf(a))return UX;if(!(i!==kX&&i!==EX||a!==EX&&10!==a))return UX;if((i===FX||10===i)&&10===a)return UX;if(13===a||5===a)return UX;if(7===a)return UX;if(1===i)return UX;if(13===i&&14===a){for(;5===o;)o=t[--r];if(14===o)return UX}if(15===i&&15===a){for(var A=0;15===o;)A++,o=t[--r];if(A%2==0)return UX}return"\xf7"},MX=function(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e),n=t.length,r=0,o=0,i=t.map(OX);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=UX;r<n&&(e=TX(0,i,++r))===UX;);if(e!==UX||r===n){var a=SX.apply(null,t.slice(o,r));return o=r,{value:a,done:!1}}return{done:!0,value:null}}}},IX=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},NX=function(e,t,n,r,o){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),A=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),A.setAttributeNS(null,"width","100%"),A.setAttributeNS(null,"height","100%"),A.setAttributeNS(null,"x",n.toString()),A.setAttributeNS(null,"y",r.toString()),A.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(A),A.appendChild(o),a},HX=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},_X={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),o=Math.round(r.height);if(e.body.removeChild(n),123===o)return!0}}return!1}(document);return Object.defineProperty(_X,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=_X.SUPPORT_RANGE_BOUNDS&&function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=t.firstChild,o=D$(r.data).map(function(e){return L$(e)}),i=0,a={},A=o.every(function(e,t){n.setStart(r,i),n.setEnd(r,i+e.length);var o=n.getBoundingClientRect();i+=e.length;var A=o.x>a.x||o.y>a.y;return a=o,0===t||A});return e.body.removeChild(t),A}(document);return Object.defineProperty(_X,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(w0){return!1}return!0}(document);return Object.defineProperty(_X,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var o=new Image,i=t.toDataURL();o.src=i;var a=NX(n,n,0,0,o);return r.fillStyle="red",r.fillRect(0,0,n,n),HX(a).then(function(t){r.drawImage(t,0,0);var o=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var a=e.createElement("div");return a.style.backgroundImage="url("+i+")",a.style.height=n+"px",IX(o)?HX(NX(n,n,0,0,a)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),IX(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(_X,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(_X,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(_X,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(_X,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(_X,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},PX=function(e,t){this.text=e,this.bounds=t},DX=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var o=t.parentNode;if(o){o.replaceChild(r,t);var i=P$(e,r);return r.firstChild&&o.replaceChild(r.firstChild,r),i}}return _$.EMPTY},LX=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var o=r.createRange();return o.setStart(e,t),o.setEnd(e,t+n),o},RX=function(e){if(_X.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(e){return e.segment})}return function(e){for(var t,n=MX(e),r=[];!(t=n.next()).done;)t.value&&r.push(t.value.slice());return r}(e)},zX=function(e,t){return 0!==t.letterSpacing?RX(e):function(e,t){if(_X.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map(function(e){return e.segment})}return jX(e,t)}(e,t)},KX=[32,160,4961,65792,65793,4153,4241],jX=function(e,t){for(var n,r=function(e,t){var n=D$(e),r=jG(n,t),o=r[0],i=r[1],a=r[2],A=n.length,s=0,l=0;return{next:function(){if(l>=A)return{done:!0,value:null};for(var e=OG;l<A&&(e=KG(n,i,o,++l,a))===OG;);if(e!==OG||l===A){var t=new VG(n,e,s,l);return s=l,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),o=[],i=function(){if(n.value){var e=n.value.slice(),t=D$(e),r="";t.forEach(function(e){-1===KX.indexOf(e)?r+=L$(e):(r.length&&o.push(r),o.push(L$(e)),r="")}),r.length&&o.push(r)}};!(n=r.next()).done;)i();return o},VX=function(e,t,n){this.text=$X(t.data,n.textTransform),this.textBounds=function(e,t,n,r){var o=zX(t,n),i=[],a=0;return o.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(_X.SUPPORT_RANGE_BOUNDS){var o=LX(r,a,t.length).getClientRects();if(o.length>1){var A=RX(t),s=0;A.forEach(function(t){i.push(new PX(t,_$.fromDOMRectList(e,LX(r,s+a,t.length).getClientRects()))),s+=t.length})}else i.push(new PX(t,_$.fromDOMRectList(e,o)))}else{var l=r.splitText(t.length);i.push(new PX(t,DX(e,r))),r=l}else _X.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));a+=t.length}),i}(e,this.text,n,t)},$X=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(GX,WX);case 2:return e.toUpperCase();default:return e}},GX=/(^|\s|:|-|\(|\))([a-z])/g,WX=function(e,t,n){return e.length>0?t+n.toUpperCase():e},YX=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return M$(t,e),t}(pX),qX=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return M$(t,e),t}(pX),XX=function(e){function t(t,n){var r=e.call(this,t,n)||this,o=new XMLSerializer,i=P$(t,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return M$(t,e),t}(pX),JX=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return M$(t,e),t}(pX),ZX=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return M$(t,e),t}(pX),eJ=[{type:15,flags:0,unit:"px",number:3}],tJ=[{type:16,flags:0,number:50}],nJ="checkbox",rJ="radio",oJ="password",iJ=707406591,aJ=function(e){function t(t,n){var r,o,i,a=e.call(this,t,n)||this;switch(a.type=n.type.toLowerCase(),a.checked=n.checked,a.value=0===(o=(r=n).type===oJ?new Array(r.value.length+1).join("\u2022"):r.value).length?r.placeholder||"":o,a.type!==nJ&&a.type!==rJ||(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=(i=a.bounds).width>i.height?new _$(i.left+(i.width-i.height)/2,i.top,i.height,i.height):i.width<i.height?new _$(i.left,i.top+(i.height-i.width)/2,i.width,i.width):i),a.type){case nJ:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=eJ;break;case rJ:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=tJ}return a}return M$(t,e),t}(pX),AJ=function(e){function t(t,n){var r=e.call(this,t,n)||this,o=n.options[n.selectedIndex||0];return r.value=o&&o.text||"",r}return M$(t,e),t}(pX),sJ=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return M$(t,e),t}(pX),lJ=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=pJ(t,n.contentWindow.document.documentElement);var o=n.contentWindow.document.documentElement?aY(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):AY.TRANSPARENT,i=n.contentWindow.document.body?aY(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):AY.TRANSPARENT;r.backgroundColor=JW(o)?JW(i)?r.styles.backgroundColor:i:o}}catch(w0){}return r}return M$(t,e),t}(pX),cJ=["OL","UL","MENU"],uJ=function(e,t,n,r){for(var o=t.firstChild,i=void 0;o;o=i)if(i=o.nextSibling,mJ(o)&&o.data.trim().length>0)n.textNodes.push(new VX(e,o,n.styles));else if(gJ(o))if(TJ(o)&&o.assignedNodes)o.assignedNodes().forEach(function(t){return uJ(e,t,n,r)});else{var a=dJ(e,o);a.styles.isVisible()&&(hJ(o,a,r)?a.flags|=4:fJ(a.styles)&&(a.flags|=2),-1!==cJ.indexOf(o.tagName)&&(a.flags|=8),n.elements.push(a),o.slot,o.shadowRoot?uJ(e,o.shadowRoot,a,r):UJ(o)||CJ(o)||OJ(o)||uJ(e,o,a,r))}},dJ=function(e,t){return FJ(t)?new YX(e,t):EJ(t)?new qX(e,t):CJ(t)?new XX(e,t):bJ(t)?new JX(e,t):wJ(t)?new ZX(e,t):BJ(t)?new aJ(e,t):OJ(t)?new AJ(e,t):UJ(t)?new sJ(e,t):SJ(t)?new lJ(e,t):new pX(e,t)},pJ=function(e,t){var n=dJ(e,t);return n.flags|=4,uJ(e,t,n,n),n},hJ=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||xJ(e)&&n.styles.isTransparent()},fJ=function(e){return e.isPositioned()||e.isFloating()},mJ=function(e){return e.nodeType===Node.TEXT_NODE},gJ=function(e){return e.nodeType===Node.ELEMENT_NODE},yJ=function(e){return gJ(e)&&void 0!==e.style&&!vJ(e)},vJ=function(e){return"object"==typeof e.className},bJ=function(e){return"LI"===e.tagName},wJ=function(e){return"OL"===e.tagName},BJ=function(e){return"INPUT"===e.tagName},CJ=function(e){return"svg"===e.tagName},xJ=function(e){return"BODY"===e.tagName},EJ=function(e){return"CANVAS"===e.tagName},kJ=function(e){return"VIDEO"===e.tagName},FJ=function(e){return"IMG"===e.tagName},SJ=function(e){return"IFRAME"===e.tagName},QJ=function(e){return"STYLE"===e.tagName},UJ=function(e){return"TEXTAREA"===e.tagName},OJ=function(e){return"SELECT"===e.tagName},TJ=function(e){return"SLOT"===e.tagName},MJ=function(e){return e.tagName.indexOf("-")>0},IJ=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,o=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(o=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var i=[];return o&&r.forEach(function(e){var n=t.counters[e.counter];i.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),i},e}(),NJ={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},HJ={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},_J={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},PJ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},DJ=function(e,t,n,r,o,i){return e<t||e>n?WJ(e,o,i.length>0):r.integers.reduce(function(t,n,o){for(;e>=n;)e-=n,t+=r.values[o];return t},"")+i},LJ=function(e,t,n,r){var o="";do{n||e--,o=r(e)+o,e/=t}while(e*t>=t);return o},RJ=function(e,t,n,r,o){var i=n-t+1;return(e<0?"-":"")+(LJ(Math.abs(e),i,r,function(e){return L$(Math.floor(e%i)+t)})+o)},zJ=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return LJ(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},KJ=function(e,t,n,r,o,i){if(e<-9999||e>9999)return WJ(e,4,o.length>0);var a=Math.abs(e),A=o;if(0===a)return t[0]+A;for(var s=0;a>0&&s<=4;s++){var l=a%10;0===l&&Xq(i,1)&&""!==A?A=t[l]+A:l>1||1===l&&0===s||1===l&&1===s&&Xq(i,2)||1===l&&1===s&&Xq(i,4)&&e>100||1===l&&s>1&&Xq(i,8)?A=t[l]+(s>0?n[s-1]:"")+A:1===l&&s>0&&(A=n[s-1]+A),a=Math.floor(a/10)}return(e<0?r:"")+A},jJ="\u5341\u767e\u5343\u842c",VJ="\u62fe\u4f70\u4edf\u842c",$J="\u30de\u30a4\u30ca\u30b9",GJ="\ub9c8\uc774\ub108\uc2a4",WJ=function(e,t,n){var r=n?". ":"",o=n?"\u3001":"",i=n?", ":"",a=n?" ":"";switch(t){case 0:return"\u2022"+a;case 1:return"\u25e6"+a;case 2:return"\u25fe"+a;case 5:var A=RJ(e,48,57,!0,r);return A.length<4?"0"+A:A;case 4:return zJ(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",o);case 6:return DJ(e,1,3999,NJ,3,r).toLowerCase();case 7:return DJ(e,1,3999,NJ,3,r);case 8:return RJ(e,945,969,!1,r);case 9:return RJ(e,97,122,!1,r);case 10:return RJ(e,65,90,!1,r);case 11:return RJ(e,1632,1641,!0,r);case 12:case 49:return DJ(e,1,9999,HJ,3,r);case 35:return DJ(e,1,9999,HJ,3,r).toLowerCase();case 13:return RJ(e,2534,2543,!0,r);case 14:case 30:return RJ(e,6112,6121,!0,r);case 15:return zJ(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",o);case 16:return zJ(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",o);case 17:case 48:return KJ(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",jJ,"\u8ca0",o,14);case 47:return KJ(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396",VJ,"\u8ca0",o,15);case 42:return KJ(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",jJ,"\u8d1f",o,14);case 41:return KJ(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396",VJ,"\u8d1f",o,15);case 26:return KJ(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07",$J,o,0);case 25:return KJ(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07",$J,o,7);case 31:return KJ(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc",GJ,i,7);case 33:return KJ(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c",GJ,i,0);case 32:return KJ(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343",GJ,i,7);case 18:return RJ(e,2406,2415,!0,r);case 20:return DJ(e,1,19999,PJ,3,r);case 21:return RJ(e,2790,2799,!0,r);case 22:return RJ(e,2662,2671,!0,r);case 22:return DJ(e,1,10999,_J,3,r);case 23:return zJ(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case 24:return zJ(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case 27:return RJ(e,3302,3311,!0,r);case 28:return zJ(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",o);case 29:return zJ(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",o);case 34:return RJ(e,3792,3801,!0,r);case 37:return RJ(e,6160,6169,!0,r);case 38:return RJ(e,4160,4169,!0,r);case 39:return RJ(e,2918,2927,!0,r);case 40:return RJ(e,1776,1785,!0,r);case 43:return RJ(e,3046,3055,!0,r);case 44:return RJ(e,3174,3183,!0,r);case 45:return RJ(e,3664,3673,!0,r);case 46:return RJ(e,3872,3881,!0,r);default:return RJ(e,48,57,!0,r)}},YJ="data-html2canvas-ignore",qJ=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new IJ,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,r=ZJ(e,t);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,i=e.defaultView.pageYOffset,a=r.contentWindow,A=a.document,s=nZ(r).then(function(){return N$(n,void 0,void 0,function(){var e,n;return H$(this,function(o){switch(o.label){case 0:return this.scrolledElements.forEach(AZ),a&&(a.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===t.top&&a.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-t.left,a.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:A.fonts&&A.fonts.ready?[4,A.fonts.ready]:[3,2];case 1:o.sent(),o.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,tZ(A)]:[3,4];case 3:o.sent(),o.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(A,n)}).then(function(){return r})]:[2,r]}})})});return A.open(),A.write(iZ(document.doctype)+"<html></html>"),aZ(this.referenceElement.ownerDocument,o,i),A.replaceChild(A.adoptNode(this.documentElement),A.documentElement),A.close(),s},e.prototype.createElementClone=function(e){if(dX(e,2),EJ(e))return this.createCanvasClone(e);if(kJ(e))return this.createVideoClone(e);if(QJ(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return FJ(t)&&(FJ(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),MJ(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return oZ(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(w0){if(this.context.logger.error("Unable to access cssRules property",w0),"SecurityError"!==w0.name)throw w0}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(w0){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var o=e.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&o)i.putImageData(o.getImageData(0,0,e.width,e.height),0,0);else{var a=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(a){var A=a.getContextAttributes();!1===(null==A?void 0:A.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return r}catch(w0){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(w0){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){gJ(t)&&("SCRIPT"===t.tagName||t.hasAttribute(YJ)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&gJ(t)&&QJ(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,o=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;o;o=o.nextSibling)if(gJ(o)&&TJ(o)&&"function"==typeof o.assignedNodes){var i=o.assignedNodes();i.length&&i.forEach(function(e){return r.appendChildNode(t,e,n)})}else this.appendChildNode(t,o,n)},e.prototype.cloneNode=function(e,t){if(mJ(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&gJ(e)&&(yJ(e)||vJ(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var o=n.getComputedStyle(e),i=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&yJ(r)&&(this.clonedReferenceElement=r),xJ(r)&&uZ(r);var A=this.counters.parse(new cX(this.context,o)),s=this.resolvePseudoContent(e,r,i,BX.BEFORE);MJ(e)&&(t=!0),kJ(e)||this.cloneChildNodes(e,r,t),s&&r.insertBefore(s,r.firstChild);var l=this.resolvePseudoContent(e,r,a,BX.AFTER);return l&&r.appendChild(l),this.counters.pop(A),(o&&(this.options.copyStyles||vJ(e))&&!SJ(e)||t)&&oZ(o,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(UJ(e)||OJ(e))&&(UJ(r)||OJ(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var o=this;if(n){var i=n.content,a=t.ownerDocument;if(a&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==n.display){this.counters.parse(new cX(this.context,n));var A=new lX(this.context,n),s=a.createElement("html2canvaspseudoelement");oZ(n,s),A.content.forEach(function(t){if(0===t.type)s.appendChild(a.createTextNode(t.value));else if(22===t.type){var n=a.createElement("img");n.src=t.value,n.style.opacity="1",s.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(UW);r.length&&s.appendChild(a.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var i=t.values.filter(IW),l=i[0],c=i[1];if(l&&UW(l)){var u=o.counters.getCounterValue(l.value),d=c&&UW(c)?gq.parse(o.context,c.value):3;s.appendChild(a.createTextNode(WJ(u,d,!1)))}}else if("counters"===t.name){var p=t.values.filter(IW),h=(l=p[0],p[1]);c=p[2];if(l&&UW(l)){var f=o.counters.getCounterValues(l.value),m=c&&UW(c)?gq.parse(o.context,c.value):3,g=h&&0===h.type?h.value:"",y=f.map(function(e){return WJ(e,m,!1)}).join(g);s.appendChild(a.createTextNode(y))}}}else if(20===t.type)switch(t.value){case"open-quote":s.appendChild(a.createTextNode(rX(A.quotes,o.quoteDepth++,!0)));break;case"close-quote":s.appendChild(a.createTextNode(rX(A.quotes,--o.quoteDepth,!1)));break;default:s.appendChild(a.createTextNode(t.value))}}),s.className=sZ+" "+lZ;var l=r===BX.BEFORE?" "+sZ:" "+lZ;return vJ(t)?t.className.baseValue+=l:t.className+=l,s}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(CX=BX||(BX={}))[CX.BEFORE=0]="BEFORE",CX[CX.AFTER=1]="AFTER";var XJ,JJ,ZJ=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(YJ,"true"),e.body.appendChild(n),n},eZ=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},tZ=function(e){return Promise.all([].slice.call(e.images,0).map(eZ))},nZ=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var o=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){o.body.childNodes.length>0&&"complete"===o.readyState&&(clearInterval(n),t(e))},50)}})},rZ=["all","d","content"],oZ=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===rZ.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},iZ=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},aZ=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},AZ=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},sZ="___html2canvas___pseudoelement_before",lZ="___html2canvas___pseudoelement_after",cZ='{\n    content: "" !important;\n    display: none !important;\n}',uZ=function(e){dZ(e,"."+sZ+":before"+cZ+"\n         ."+lZ+":after"+cZ)},dZ=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},pZ=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),hZ=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:wZ(e)||yZ(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return N$(this,void 0,void 0,function(){var t,n,r,o,i=this;return H$(this,function(a){switch(a.label){case 0:return t=pZ.isSameOrigin(e),n=!vZ(e)&&!0===this._options.useCORS&&_X.SUPPORT_CORS_IMAGES&&!t,r=!vZ(e)&&!t&&!wZ(e)&&"string"==typeof this._options.proxy&&_X.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||vZ(e)||wZ(e)||r||n?(o=e,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(bZ(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout(function(){return e(r)},500),i._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(o,i){var a=_X.SUPPORT_RESPONSE_TYPE?"blob":"text",A=new XMLHttpRequest;A.onload=function(){if(200===A.status)if("text"===a)o(A.response);else{var e=new FileReader;e.addEventListener("load",function(){return o(e.result)},!1),e.addEventListener("error",function(e){return i(e)},!1),e.readAsDataURL(A.response)}else i("Failed to proxy resource "+r+" with status code "+A.status)},A.onerror=i;var s=n.indexOf("?")>-1?"&":"?";if(A.open("GET",""+n+s+"url="+encodeURIComponent(e)+"&responseType="+a),"text"!==a&&A instanceof XMLHttpRequest&&(A.responseType=a),t._options.imageTimeout){var l=t._options.imageTimeout;A.timeout=l,A.ontimeout=function(){return i("Timed out ("+l+"ms) proxying "+r)}}A.send()})},e}(),fZ=/^data:image\/svg\+xml/i,mZ=/^data:image\/.*;base64,/i,gZ=/^data:image\/.*/i,yZ=function(e){return _X.SUPPORT_SVG_DRAWING||!BZ(e)},vZ=function(e){return gZ.test(e)},bZ=function(e){return mZ.test(e)},wZ=function(e){return"blob"===e.substr(0,4)},BZ=function(e){return"svg"===e.substr(-3).toLowerCase()||fZ.test(e)},CZ=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),xZ=function(e,t,n){return new CZ(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},EZ=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=xZ(this.start,this.startControl,t),o=xZ(this.startControl,this.endControl,t),i=xZ(this.endControl,this.end,t),a=xZ(r,o,t),A=xZ(o,i,t),s=xZ(a,A,t);return n?new e(this.start,r,a,s):new e(s,A,i,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),kZ=function(e){return 1===e.type},FZ=function(e){var t=e.styles,n=e.bounds,r=KW(t.borderTopLeftRadius,n.width,n.height),o=r[0],i=r[1],a=KW(t.borderTopRightRadius,n.width,n.height),A=a[0],s=a[1],l=KW(t.borderBottomRightRadius,n.width,n.height),c=l[0],u=l[1],d=KW(t.borderBottomLeftRadius,n.width,n.height),p=d[0],h=d[1],f=[];f.push((o+A)/n.width),f.push((p+c)/n.width),f.push((i+h)/n.height),f.push((s+u)/n.height);var m=Math.max.apply(Math,f);m>1&&(o/=m,i/=m,A/=m,s/=m,c/=m,u/=m,p/=m,h/=m);var g=n.width-A,y=n.height-u,v=n.width-c,b=n.height-h,w=t.borderTopWidth,B=t.borderRightWidth,C=t.borderBottomWidth,x=t.borderLeftWidth,E=jW(t.paddingTop,e.bounds.width),k=jW(t.paddingRight,e.bounds.width),F=jW(t.paddingBottom,e.bounds.width),S=jW(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||i>0?SZ(n.left+x/3,n.top+w/3,o-x/3,i-w/3,XJ.TOP_LEFT):new CZ(n.left+x/3,n.top+w/3),this.topRightBorderDoubleOuterBox=o>0||i>0?SZ(n.left+g,n.top+w/3,A-B/3,s-w/3,XJ.TOP_RIGHT):new CZ(n.left+n.width-B/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?SZ(n.left+v,n.top+y,c-B/3,u-C/3,XJ.BOTTOM_RIGHT):new CZ(n.left+n.width-B/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=p>0||h>0?SZ(n.left+x/3,n.top+b,p-x/3,h-C/3,XJ.BOTTOM_LEFT):new CZ(n.left+x/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=o>0||i>0?SZ(n.left+2*x/3,n.top+2*w/3,o-2*x/3,i-2*w/3,XJ.TOP_LEFT):new CZ(n.left+2*x/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=o>0||i>0?SZ(n.left+g,n.top+2*w/3,A-2*B/3,s-2*w/3,XJ.TOP_RIGHT):new CZ(n.left+n.width-2*B/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?SZ(n.left+v,n.top+y,c-2*B/3,u-2*C/3,XJ.BOTTOM_RIGHT):new CZ(n.left+n.width-2*B/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=p>0||h>0?SZ(n.left+2*x/3,n.top+b,p-2*x/3,h-2*C/3,XJ.BOTTOM_LEFT):new CZ(n.left+2*x/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=o>0||i>0?SZ(n.left+x/2,n.top+w/2,o-x/2,i-w/2,XJ.TOP_LEFT):new CZ(n.left+x/2,n.top+w/2),this.topRightBorderStroke=o>0||i>0?SZ(n.left+g,n.top+w/2,A-B/2,s-w/2,XJ.TOP_RIGHT):new CZ(n.left+n.width-B/2,n.top+w/2),this.bottomRightBorderStroke=c>0||u>0?SZ(n.left+v,n.top+y,c-B/2,u-C/2,XJ.BOTTOM_RIGHT):new CZ(n.left+n.width-B/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=p>0||h>0?SZ(n.left+x/2,n.top+b,p-x/2,h-C/2,XJ.BOTTOM_LEFT):new CZ(n.left+x/2,n.top+n.height-C/2),this.topLeftBorderBox=o>0||i>0?SZ(n.left,n.top,o,i,XJ.TOP_LEFT):new CZ(n.left,n.top),this.topRightBorderBox=A>0||s>0?SZ(n.left+g,n.top,A,s,XJ.TOP_RIGHT):new CZ(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||u>0?SZ(n.left+v,n.top+y,c,u,XJ.BOTTOM_RIGHT):new CZ(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||h>0?SZ(n.left,n.top+b,p,h,XJ.BOTTOM_LEFT):new CZ(n.left,n.top+n.height),this.topLeftPaddingBox=o>0||i>0?SZ(n.left+x,n.top+w,Math.max(0,o-x),Math.max(0,i-w),XJ.TOP_LEFT):new CZ(n.left+x,n.top+w),this.topRightPaddingBox=A>0||s>0?SZ(n.left+Math.min(g,n.width-B),n.top+w,g>n.width+B?0:Math.max(0,A-B),Math.max(0,s-w),XJ.TOP_RIGHT):new CZ(n.left+n.width-B,n.top+w),this.bottomRightPaddingBox=c>0||u>0?SZ(n.left+Math.min(v,n.width-x),n.top+Math.min(y,n.height-C),Math.max(0,c-B),Math.max(0,u-C),XJ.BOTTOM_RIGHT):new CZ(n.left+n.width-B,n.top+n.height-C),this.bottomLeftPaddingBox=p>0||h>0?SZ(n.left+x,n.top+Math.min(b,n.height-C),Math.max(0,p-x),Math.max(0,h-C),XJ.BOTTOM_LEFT):new CZ(n.left+x,n.top+n.height-C),this.topLeftContentBox=o>0||i>0?SZ(n.left+x+S,n.top+w+E,Math.max(0,o-(x+S)),Math.max(0,i-(w+E)),XJ.TOP_LEFT):new CZ(n.left+x+S,n.top+w+E),this.topRightContentBox=A>0||s>0?SZ(n.left+Math.min(g,n.width+x+S),n.top+w+E,g>n.width+x+S?0:A-x+S,s-(w+E),XJ.TOP_RIGHT):new CZ(n.left+n.width-(B+k),n.top+w+E),this.bottomRightContentBox=c>0||u>0?SZ(n.left+Math.min(v,n.width-(x+S)),n.top+Math.min(y,n.height+w+E),Math.max(0,c-(B+k)),u-(C+F),XJ.BOTTOM_RIGHT):new CZ(n.left+n.width-(B+k),n.top+n.height-(C+F)),this.bottomLeftContentBox=p>0||h>0?SZ(n.left+x+S,n.top+b,Math.max(0,p-(x+S)),h-(C+F),XJ.BOTTOM_LEFT):new CZ(n.left+x+S,n.top+n.height-(C+F))};(JJ=XJ||(XJ={}))[JJ.TOP_LEFT=0]="TOP_LEFT",JJ[JJ.TOP_RIGHT=1]="TOP_RIGHT",JJ[JJ.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",JJ[JJ.BOTTOM_LEFT=3]="BOTTOM_LEFT";var SZ=function(e,t,n,r,o){var i=(Math.sqrt(2)-1)/3*4,a=n*i,A=r*i,s=e+n,l=t+r;switch(o){case XJ.TOP_LEFT:return new EZ(new CZ(e,l),new CZ(e,l-A),new CZ(s-a,t),new CZ(s,t));case XJ.TOP_RIGHT:return new EZ(new CZ(e,t),new CZ(e+a,t),new CZ(s,l-A),new CZ(s,l));case XJ.BOTTOM_RIGHT:return new EZ(new CZ(s,t),new CZ(s,t+A),new CZ(e+a,l),new CZ(e,l));case XJ.BOTTOM_LEFT:default:return new EZ(new CZ(s,l),new CZ(s-a,l),new CZ(e,t+A),new CZ(e,t))}},QZ=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},UZ=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},OZ=function(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6},TZ=function(e,t){this.path=e,this.target=t,this.type=1},MZ=function(e){this.opacity=e,this.type=2,this.target=6},IZ=function(e){return 1===e.type},NZ=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},HZ=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},_Z=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new FZ(this.container),this.container.styles.opacity<1&&this.effects.push(new MZ(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new OZ(n,r,o))}if(0!==this.container.styles.overflowX){var i=QZ(this.curves),a=UZ(this.curves);NZ(i,a)?this.effects.push(new TZ(i,6)):(this.effects.push(new TZ(i,2)),this.effects.push(new TZ(a,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var o=n.effects.filter(function(e){return!IZ(e)});if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,o),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var i=QZ(n.curves),a=UZ(n.curves);NZ(i,a)||r.unshift(new TZ(a,6))}}else r.unshift.apply(r,o);n=n.parent}return r.filter(function(t){return Xq(t.target,e)})},e}(),PZ=function(e,t,n,r){e.container.elements.forEach(function(o){var i=Xq(o.flags,4),a=Xq(o.flags,2),A=new _Z(o,e);Xq(o.styles.display,2048)&&r.push(A);var s=Xq(o.flags,8)?[]:r;if(i||a){var l=i||o.styles.isPositioned()?n:t,c=new HZ(A);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var u=o.styles.zIndex.order;if(u<0){var d=0;l.negativeZIndex.some(function(e,t){return u>e.element.container.styles.zIndex.order?(d=t,!1):d>0}),l.negativeZIndex.splice(d,0,c)}else if(u>0){var p=0;l.positiveZIndex.some(function(e,t){return u>=e.element.container.styles.zIndex.order?(p=t+1,!1):p>0}),l.positiveZIndex.splice(p,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else o.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);PZ(A,c,i?c:n,s)}else o.styles.isInlineLevel()?t.inlineLevel.push(A):t.nonInlineLevel.push(A),PZ(A,t,n,s);Xq(o.flags,8)&&DZ(o,s)})},DZ=function(e,t){for(var n=e instanceof ZX?e.start:1,r=e instanceof ZX&&e.reversed,o=0;o<t.length;o++){var i=t[o];i.container instanceof JX&&"number"==typeof i.container.value&&0!==i.container.value&&(n=i.container.value),i.listValue=WJ(n,i.container.styles.listStyleType,!0),n+=r?-1:1}},LZ=function(e,t){switch(t){case 0:return zZ(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return zZ(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return zZ(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return zZ(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},RZ=function(e,t){var n=[];return kZ(e)?n.push(e.subdivide(.5,!1)):n.push(e),kZ(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},zZ=function(e,t,n,r){var o=[];return kZ(e)?o.push(e.subdivide(.5,!1)):o.push(e),kZ(n)?o.push(n.subdivide(.5,!0)):o.push(n),kZ(r)?o.push(r.subdivide(.5,!0).reverse()):o.push(r),kZ(t)?o.push(t.subdivide(.5,!1).reverse()):o.push(t),o},KZ=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},jZ=function(e){var t=e.styles,n=e.bounds,r=jW(t.paddingLeft,n.width),o=jW(t.paddingRight,n.width),i=jW(t.paddingTop,n.width),a=jW(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+o),-(t.borderTopWidth+t.borderBottomWidth+i+a))},VZ=function(e,t,n){var r,o,i=(r=YZ(e.styles.backgroundOrigin,t),o=e,0===r?o.bounds:2===r?jZ(o):KZ(o)),a=function(e,t){return 0===e?t.bounds:2===e?jZ(t):KZ(t)}(YZ(e.styles.backgroundClip,t),e),A=WZ(YZ(e.styles.backgroundSize,t),n,i),s=A[0],l=A[1],c=KW(YZ(e.styles.backgroundPosition,t),i.width-s,i.height-l);return[qZ(YZ(e.styles.backgroundRepeat,t),c,A,i,a),Math.round(i.left+c[0]),Math.round(i.top+c[1]),s,l]},$Z=function(e){return UW(e)&&e.value===kY.AUTO},GZ=function(e){return"number"==typeof e},WZ=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=e[0],A=e[1];if(!a)return[0,0];if(PW(a)&&A&&PW(A))return[jW(a,n.width),jW(A,n.height)];var s=GZ(i);if(UW(a)&&(a.value===kY.CONTAIN||a.value===kY.COVER))return GZ(i)?n.width/n.height<i!=(a.value===kY.COVER)?[n.width,n.width/i]:[n.height*i,n.height]:[n.width,n.height];var l=GZ(r),c=GZ(o),u=l||c;if($Z(a)&&(!A||$Z(A)))return l&&c?[r,o]:s||u?u&&s?[l?r:o*i,c?o:r/i]:[l?r:n.width,c?o:n.height]:[n.width,n.height];if(s){var d=0,p=0;return PW(a)?d=jW(a,n.width):PW(A)&&(p=jW(A,n.height)),$Z(a)?d=p*i:A&&!$Z(A)||(p=d/i),[d,p]}var h=null,f=null;if(PW(a)?h=jW(a,n.width):A&&PW(A)&&(f=jW(A,n.height)),null===h||A&&!$Z(A)||(f=l&&c?h/r*o:n.height),null!==f&&$Z(a)&&(h=l&&c?f/o*r:n.width),null!==h&&null!==f)return[h,f];throw new Error("Unable to calculate background-size for element")},YZ=function(e,t){var n=e[t];return void 0===n?e[0]:n},qZ=function(e,t,n,r,o){var i=t[0],a=t[1],A=n[0],s=n[1];switch(e){case 2:return[new CZ(Math.round(r.left),Math.round(r.top+a)),new CZ(Math.round(r.left+r.width),Math.round(r.top+a)),new CZ(Math.round(r.left+r.width),Math.round(s+r.top+a)),new CZ(Math.round(r.left),Math.round(s+r.top+a))];case 3:return[new CZ(Math.round(r.left+i),Math.round(r.top)),new CZ(Math.round(r.left+i+A),Math.round(r.top)),new CZ(Math.round(r.left+i+A),Math.round(r.height+r.top)),new CZ(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new CZ(Math.round(r.left+i),Math.round(r.top+a)),new CZ(Math.round(r.left+i+A),Math.round(r.top+a)),new CZ(Math.round(r.left+i+A),Math.round(r.top+a+s)),new CZ(Math.round(r.left+i),Math.round(r.top+a+s))];default:return[new CZ(Math.round(o.left),Math.round(o.top)),new CZ(Math.round(o.left+o.width),Math.round(o.top)),new CZ(Math.round(o.left+o.width),Math.round(o.height+o.top)),new CZ(Math.round(o.left),Math.round(o.height+o.top))]}},XZ="Hidden Text",JZ=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),o=this._document.createElement("span"),i=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",i.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",o.style.fontFamily=e,o.style.fontSize=t,o.style.margin="0",o.style.padding="0",o.appendChild(this._document.createTextNode(XZ)),n.appendChild(o),n.appendChild(r);var a=r.offsetTop-o.offsetTop+2;n.removeChild(o),n.appendChild(this._document.createTextNode(XZ)),n.style.lineHeight="normal",r.style.verticalAlign="super";var A=r.offsetTop-n.offsetTop+2;return i.removeChild(n),{baseline:a,middle:A}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),ZZ=function(e,t){this.context=e,this.options=t},e0=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new JZ(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return M$(t,e),t.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},t.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),IZ(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return N$(this,void 0,void 0,function(){return H$(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(e){return N$(this,void 0,void 0,function(){return H$(this,function(t){switch(t.label){case 0:return Xq(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):RX(e.text).reduce(function(t,o){return r.ctx.fillText(o,t,e.bounds.top+n),t+r.ctx.measureText(o).width},e.bounds.left)},t.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=i0(e.fontFamily).join(", "),r=SW(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},t.prototype.renderTextNode=function(e,t){return N$(this,void 0,void 0,function(){var n,r,o,i,a,A,s,l,c=this;return H$(this,function(u){return n=this.createFontStyle(t),r=n[0],o=n[1],i=n[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(o,i),A=a.baseline,s=a.middle,l=t.paintOrder,e.textBounds.forEach(function(e){l.forEach(function(n){switch(n){case 0:c.ctx.fillStyle=ZW(t.color),c.renderTextWithLetterSpacing(e,t.letterSpacing,A);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){c.ctx.shadowColor=ZW(n.color),c.ctx.shadowOffsetX=n.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=n.offsetY.number*c.options.scale,c.ctx.shadowBlur=n.blur.number,c.renderTextWithLetterSpacing(e,t.letterSpacing,A)}),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),t.textDecorationLine.length&&(c.ctx.fillStyle=ZW(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:c.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+A),e.bounds.width,1);break;case 2:c.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:c.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+s),e.bounds.width,1)}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(c.ctx.strokeStyle=ZW(t.webkitTextStrokeColor),c.ctx.lineWidth=t.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+A)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter"}})}),[2]})})},t.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=jZ(e),o=UZ(t);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return N$(this,void 0,void 0,function(){var n,r,o,i,a,A,s,l,c,u,d,p,h,f,m,g,y,v;return H$(this,function(b){switch(b.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,o=n.styles,i=0,a=n.textNodes,b.label=1;case 1:return i<a.length?(A=a[i],[4,this.renderTextNode(A,o)]):[3,4];case 2:b.sent(),b.label=3;case 3:return i++,[3,1];case 4:if(!(n instanceof YX))return[3,8];b.label=5;case 5:return b.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return m=b.sent(),this.renderReplacedElement(n,r,m),[3,8];case 7:return b.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof qX&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof XX))return[3,12];b.label=9;case 9:return b.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return m=b.sent(),this.renderReplacedElement(n,r,m),[3,12];case 11:return b.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof lJ&&n.tree?[4,new t(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}).render(n.tree)]:[3,14];case 13:s=b.sent(),n.width&&n.height&&this.ctx.drawImage(s,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),b.label=14;case 14:if(n instanceof aJ&&(l=Math.min(n.bounds.width,n.bounds.height),n.type===nJ?n.checked&&(this.ctx.save(),this.path([new CZ(n.bounds.left+.39363*l,n.bounds.top+.79*l),new CZ(n.bounds.left+.16*l,n.bounds.top+.5549*l),new CZ(n.bounds.left+.27347*l,n.bounds.top+.44071*l),new CZ(n.bounds.left+.39694*l,n.bounds.top+.5649*l),new CZ(n.bounds.left+.72983*l,n.bounds.top+.23*l),new CZ(n.bounds.left+.84*l,n.bounds.top+.34085*l),new CZ(n.bounds.left+.39363*l,n.bounds.top+.79*l)]),this.ctx.fillStyle=ZW(iJ),this.ctx.fill(),this.ctx.restore()):n.type===rJ&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+l/2,n.bounds.top+l/2,l/4,0,2*Math.PI,!0),this.ctx.fillStyle=ZW(iJ),this.ctx.fill(),this.ctx.restore())),t0(n)&&n.value.length){switch(c=this.createFontStyle(o),y=c[0],u=c[1],d=this.fontMetrics.getMetrics(y,u).baseline,this.ctx.font=y,this.ctx.fillStyle=ZW(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=r0(n.styles.textAlign),v=jZ(n),p=0,n.styles.textAlign){case 1:p+=v.width/2;break;case 2:p+=v.width}h=v.add(p,0,0,-v.height/2+1),this.ctx.save(),this.path([new CZ(v.left,v.top),new CZ(v.left+v.width,v.top),new CZ(v.left+v.width,v.top+v.height),new CZ(v.left,v.top+v.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new PX(n.value,h),o.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Xq(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if(0!==(f=n.styles.listStyleImage).type)return[3,18];m=void 0,g=f.url,b.label=15;case 15:return b.trys.push([15,17,,18]),[4,this.context.cache.match(g)];case 16:return m=b.sent(),this.ctx.drawImage(m,n.bounds.left-(m.width+10),n.bounds.top),[3,18];case 17:return b.sent(),this.context.logger.error("Error loading list-style-image "+g),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==n.styles.listStyleType&&(y=this.createFontStyle(o)[0],this.ctx.font=y,this.ctx.fillStyle=ZW(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",v=new _$(n.bounds.left,n.bounds.top+jW(n.styles.paddingTop,n.bounds.width),n.bounds.width,hq(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new PX(e.listValue,v),o.letterSpacing,hq(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),b.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(e){return N$(this,void 0,void 0,function(){var t,n,r,o,i,a,A,s,l,c,u,d,p,h,f;return H$(this,function(m){switch(m.label){case 0:return Xq(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:m.sent(),t=0,n=e.negativeZIndex,m.label=2;case 2:return t<n.length?(f=n[t],[4,this.renderStack(f)]):[3,5];case 3:m.sent(),m.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:m.sent(),r=0,o=e.nonInlineLevel,m.label=7;case 7:return r<o.length?(f=o[r],[4,this.renderNode(f)]):[3,10];case 8:m.sent(),m.label=9;case 9:return r++,[3,7];case 10:i=0,a=e.nonPositionedFloats,m.label=11;case 11:return i<a.length?(f=a[i],[4,this.renderStack(f)]):[3,14];case 12:m.sent(),m.label=13;case 13:return i++,[3,11];case 14:A=0,s=e.nonPositionedInlineLevel,m.label=15;case 15:return A<s.length?(f=s[A],[4,this.renderStack(f)]):[3,18];case 16:m.sent(),m.label=17;case 17:return A++,[3,15];case 18:l=0,c=e.inlineLevel,m.label=19;case 19:return l<c.length?(f=c[l],[4,this.renderNode(f)]):[3,22];case 20:m.sent(),m.label=21;case 21:return l++,[3,19];case 22:u=0,d=e.zeroOrAutoZIndexOrTransformedOrOpacity,m.label=23;case 23:return u<d.length?(f=d[u],[4,this.renderStack(f)]):[3,26];case 24:m.sent(),m.label=25;case 25:return u++,[3,23];case 26:p=0,h=e.positiveZIndex,m.label=27;case 27:return p<h.length?(f=h[p],[4,this.renderStack(f)]):[3,30];case 28:m.sent(),m.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},t.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=kZ(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),kZ(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},t.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},t.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var o=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return o.width=Math.max(1,t),o.height=Math.max(1,n),o.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),o},t.prototype.renderBackgroundImage=function(e){return N$(this,void 0,void 0,function(){var t,n,r,o,i,a;return H$(this,function(A){switch(A.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var o,i,a,A,s,l,c,u,d,p,h,f,m,g,y,v,b,w,B,C,x,E,k,F,S,Q,U,O,T,M,I;return H$(this,function(N){switch(N.label){case 0:if(0!==n.type)return[3,5];o=void 0,i=n.url,N.label=1;case 1:return N.trys.push([1,3,,4]),[4,r.context.cache.match(i)];case 2:return o=N.sent(),[3,4];case 3:return N.sent(),r.context.logger.error("Error loading background-image "+i),[3,4];case 4:return o&&(a=VZ(e,t,[o.width,o.height,o.width/o.height]),v=a[0],E=a[1],k=a[2],B=a[3],C=a[4],g=r.ctx.createPattern(r.resizeImage(o,B,C),"repeat"),r.renderRepeat(v,g,E,k)),[3,6];case 5:1===n.type?(A=VZ(e,t,[null,null,null]),v=A[0],E=A[1],k=A[2],B=A[3],C=A[4],s=dY(n.angle,B,C),l=s[0],c=s[1],u=s[2],d=s[3],p=s[4],(h=document.createElement("canvas")).width=B,h.height=C,f=h.getContext("2d"),m=f.createLinearGradient(c,d,u,p),uY(n.stops,l).forEach(function(e){return m.addColorStop(e.stop,ZW(e.color))}),f.fillStyle=m,f.fillRect(0,0,B,C),B>0&&C>0&&(g=r.ctx.createPattern(h,"repeat"),r.renderRepeat(v,g,E,k))):function(e){return 2===e.type}(n)&&(y=VZ(e,t,[null,null,null]),v=y[0],b=y[1],w=y[2],B=y[3],C=y[4],x=0===n.position.length?[RW]:n.position,E=jW(x[0],B),k=jW(x[x.length-1],C),F=function(e,t,n,r,o){var i=0,a=0;switch(e.size){case 0:0===e.shape?i=a=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-o)):1===e.shape&&(i=Math.min(Math.abs(t),Math.abs(t-r)),a=Math.min(Math.abs(n),Math.abs(n-o)));break;case 2:if(0===e.shape)i=a=Math.min(pY(t,n),pY(t,n-o),pY(t-r,n),pY(t-r,n-o));else if(1===e.shape){var A=Math.min(Math.abs(n),Math.abs(n-o))/Math.min(Math.abs(t),Math.abs(t-r)),s=hY(r,o,t,n,!0),l=s[0],c=s[1];a=A*(i=pY(l-t,(c-n)/A))}break;case 1:0===e.shape?i=a=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-o)):1===e.shape&&(i=Math.max(Math.abs(t),Math.abs(t-r)),a=Math.max(Math.abs(n),Math.abs(n-o)));break;case 3:if(0===e.shape)i=a=Math.max(pY(t,n),pY(t,n-o),pY(t-r,n),pY(t-r,n-o));else if(1===e.shape){A=Math.max(Math.abs(n),Math.abs(n-o))/Math.max(Math.abs(t),Math.abs(t-r));var u=hY(r,o,t,n,!1);l=u[0],c=u[1],a=A*(i=pY(l-t,(c-n)/A))}}return Array.isArray(e.size)&&(i=jW(e.size[0],r),a=2===e.size.length?jW(e.size[1],o):i),[i,a]}(n,E,k,B,C),S=F[0],Q=F[1],S>0&&Q>0&&(U=r.ctx.createRadialGradient(b+E,w+k,0,b+E,w+k,S),uY(n.stops,2*S).forEach(function(e){return U.addColorStop(e.stop,ZW(e.color))}),r.path(v),r.ctx.fillStyle=U,S!==Q?(O=e.bounds.left+.5*e.bounds.width,T=e.bounds.top+.5*e.bounds.height,I=1/(M=Q/S),r.ctx.save(),r.ctx.translate(O,T),r.ctx.transform(1,0,0,M,0,0),r.ctx.translate(-O,-T),r.ctx.fillRect(b,I*(w-T)+T,B,C*I),r.ctx.restore()):r.ctx.fill())),N.label=6;case 6:return t--,[2]}})},r=this,o=0,i=e.styles.backgroundImage.slice(0).reverse(),A.label=1;case 1:return o<i.length?(a=i[o],[5,n(a)]):[3,4];case 2:A.sent(),A.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(e,t,n){return N$(this,void 0,void 0,function(){return H$(this,function(r){return this.path(LZ(n,t)),this.ctx.fillStyle=ZW(e),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(e,t,n,r){return N$(this,void 0,void 0,function(){var o,i;return H$(this,function(a){switch(a.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,r)]:[3,2];case 1:return a.sent(),[2];case 2:return o=function(e,t){switch(t){case 0:return zZ(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return zZ(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return zZ(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return zZ(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(r,n),this.path(o),this.ctx.fillStyle=ZW(e),this.ctx.fill(),i=function(e,t){switch(t){case 0:return zZ(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return zZ(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return zZ(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return zZ(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(r,n),this.path(i),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(e){return N$(this,void 0,void 0,function(){var t,n,r,o,i,a,A,s,l=this;return H$(this,function(c){switch(c.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!JW(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],o=n0(YZ(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),JW(t.backgroundColor)||(this.ctx.fillStyle=ZW(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:c.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){l.ctx.save();var n,r,o,i,a,A=QZ(e.curves),s=t.inset?0:1e4,c=(n=A,r=-s+(t.inset?1:-1)*t.spread.number,o=(t.inset?1:-1)*t.spread.number,i=t.spread.number*(t.inset?-2:2),a=t.spread.number*(t.inset?-2:2),n.map(function(e,t){switch(t){case 0:return e.add(r,o);case 1:return e.add(r+i,o);case 2:return e.add(r+i,o+a);case 3:return e.add(r,o+a)}return e}));t.inset?(l.path(A),l.ctx.clip(),l.mask(c)):(l.mask(A),l.ctx.clip(),l.path(c)),l.ctx.shadowOffsetX=t.offsetX.number+s,l.ctx.shadowOffsetY=t.offsetY.number,l.ctx.shadowColor=ZW(t.color),l.ctx.shadowBlur=t.blur.number,l.ctx.fillStyle=t.inset?ZW(t.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()}),c.label=2;case 2:i=0,a=0,A=r,c.label=3;case 3:return a<A.length?0!==(s=A[a]).style&&!JW(s.color)&&s.width>0?2!==s.style?[3,5]:[4,this.renderDashedDottedBorder(s.color,s.width,i,e.curves,2)]:[3,11]:[3,13];case 4:return c.sent(),[3,11];case 5:return 3!==s.style?[3,7]:[4,this.renderDashedDottedBorder(s.color,s.width,i,e.curves,3)];case 6:return c.sent(),[3,11];case 7:return 4!==s.style?[3,9]:[4,this.renderDoubleBorder(s.color,s.width,i,e.curves)];case 8:return c.sent(),[3,11];case 9:return[4,this.renderSolidBorder(s.color,i,e.curves)];case 10:c.sent(),c.label=11;case 11:i++,c.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,t,n,r,o){return N$(this,void 0,void 0,function(){var i,a,A,s,l,c,u,d,p,h,f,m,g,y,v,b;return H$(this,function(w){return this.ctx.save(),i=function(e,t){switch(t){case 0:return RZ(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return RZ(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return RZ(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return RZ(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(r,n),a=LZ(r,n),2===o&&(this.path(a),this.ctx.clip()),kZ(a[0])?(A=a[0].start.x,s=a[0].start.y):(A=a[0].x,s=a[0].y),kZ(a[1])?(l=a[1].end.x,c=a[1].end.y):(l=a[1].x,c=a[1].y),u=0===n||2===n?Math.abs(A-l):Math.abs(s-c),this.ctx.beginPath(),3===o?this.formatPath(i):this.formatPath(a.slice(0,2)),d=t<3?3*t:2*t,p=t<3?2*t:t,3===o&&(d=t,p=t),h=!0,u<=2*d?h=!1:u<=2*d+p?(d*=f=u/(2*d+p),p*=f):(m=Math.floor((u+p)/(d+p)),g=(u-m*d)/(m-1),p=(y=(u-(m+1)*d)/m)<=0||Math.abs(p-g)<Math.abs(p-y)?g:y),h&&(3===o?this.ctx.setLineDash([0,d+p]):this.ctx.setLineDash([d,p])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=ZW(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(kZ(a[0])&&(v=a[3],b=a[0],this.ctx.beginPath(),this.formatPath([new CZ(v.end.x,v.end.y),new CZ(b.start.x,b.start.y)]),this.ctx.stroke()),kZ(a[1])&&(v=a[1],b=a[2],this.ctx.beginPath(),this.formatPath([new CZ(v.end.x,v.end.y),new CZ(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(e){return N$(this,void 0,void 0,function(){var t;return H$(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ZW(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=new _Z(e,null),o=new HZ(r),PZ(r,o,o,i=[]),DZ(r.container,i),t=o,[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}var r,o,i})})},t}(ZZ),t0=function(e){return e instanceof sJ||(e instanceof AJ||e instanceof aJ&&e.type!==rJ&&e.type!==nJ)},n0=function(e,t){switch(e){case 0:return QZ(t);case 2:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);default:return UZ(t)}},r0=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},o0=["-apple-system","system-ui"],i0=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return-1===o0.indexOf(e)}):e},a0=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return M$(t,e),t.prototype.render=function(e){return N$(this,void 0,void 0,function(){var t,n;return H$(this,function(r){switch(r.label){case 0:return t=NX(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,A0(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ZW(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(ZZ),A0=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},s0=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug||this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&console.info},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn||this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error||this.info.apply(this,e))},e.instances={},e}(),l0=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new s0({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new hZ(this,t)}return e.instanceCount=1,e}();"undefined"!=typeof window&&pZ.setContext(window);var c0=function(e,t){return N$(void 0,void 0,void 0,function(){var n,r,o,i,a,A,s,l,c,u,d,p,h,f,m,g,y,v,b,w,B,C,x,E,k,F,S,Q,U,O,T,M,I,N,H,_,P,D;return H$(this,function(L){switch(L.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(n=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(r=n.defaultView))throw new Error("Document is not attached to a Window");return o={allowTaint:null!==(C=t.allowTaint)&&void 0!==C&&C,imageTimeout:null!==(x=t.imageTimeout)&&void 0!==x?x:15e3,proxy:t.proxy,useCORS:null!==(E=t.useCORS)&&void 0!==E&&E},i=I$({logging:null===(k=t.logging)||void 0===k||k,cache:t.cache},o),a={windowWidth:null!==(F=t.windowWidth)&&void 0!==F?F:r.innerWidth,windowHeight:null!==(S=t.windowHeight)&&void 0!==S?S:r.innerHeight,scrollX:null!==(Q=t.scrollX)&&void 0!==Q?Q:r.pageXOffset,scrollY:null!==(U=t.scrollY)&&void 0!==U?U:r.pageYOffset},A=new _$(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),s=new l0(i,A),l=null!==(O=t.foreignObjectRendering)&&void 0!==O&&O,c={allowTaint:null!==(T=t.allowTaint)&&void 0!==T&&T,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:l,copyStyles:l},s.logger.debug("Starting document clone with size "+A.width+"x"+A.height+" scrolled to "+-A.left+","+-A.top),u=new qJ(s,e,c),(d=u.clonedReferenceElement)?[4,u.toIFrame(n,A)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=L.sent(),h=xJ(d)||"HTML"===d.tagName?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),o=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new _$(0,0,r,o)}(d.ownerDocument):P$(s,d),f=h.width,m=h.height,g=h.left,y=h.top,v=u0(s,d,t.backgroundColor),b={canvas:t.canvas,backgroundColor:v,scale:null!==(I=null!==(M=t.scale)&&void 0!==M?M:r.devicePixelRatio)&&void 0!==I?I:1,x:(null!==(N=t.x)&&void 0!==N?N:0)+g,y:(null!==(H=t.y)&&void 0!==H?H:0)+y,width:null!==(_=t.width)&&void 0!==_?_:Math.ceil(f),height:null!==(P=t.height)&&void 0!==P?P:Math.ceil(m)},l?(s.logger.debug("Document cloned, using foreign object rendering"),[4,new a0(s,b).render(d)]):[3,3];case 2:return w=L.sent(),[3,5];case 3:return s.logger.debug("Document cloned, element located at "+g+","+y+" with size "+f+"x"+m+" using computed rendering"),s.logger.debug("Starting DOM parsing"),B=pJ(s,d),v===B.styles.backgroundColor&&(B.styles.backgroundColor=AY.TRANSPARENT),s.logger.debug("Starting renderer for element at "+b.x+","+b.y+" with size "+b.width+"x"+b.height),[4,new e0(s,b).render(B)];case 4:w=L.sent(),L.label=5;case 5:return(null===(D=t.removeContainer)||void 0===D||D)&&(qJ.destroy(p)||s.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),s.logger.debug("Finished rendering"),[2,w]}})})},u0=function(e,t,n){var r=t.ownerDocument,o=r.documentElement?aY(e,getComputedStyle(r.documentElement).backgroundColor):AY.TRANSPARENT,i=r.body?aY(e,getComputedStyle(r.body).backgroundColor):AY.TRANSPARENT,a="string"==typeof n?aY(e,n):null===n?AY.TRANSPARENT:4294967295;return t===r.documentElement?JW(o)?JW(i)?a:i:o:a};const d0={title:"c97e2a3be562757ada96b80cdeaaccdc_title",activity_rules_back:"c97e2a3be562757ada96b80cdeaaccdc_activity_rules_back",activity_rules_icon:"c97e2a3be562757ada96b80cdeaaccdc_activity_rules_icon",activity_rules_body:"c97e2a3be562757ada96b80cdeaaccdc_activity_rules_body",h5_activity_rules_link:"c97e2a3be562757ada96b80cdeaaccdc_h5_activity_rules_link",h5_activity_rules_icon:"c97e2a3be562757ada96b80cdeaaccdc_h5_activity_rules_icon",share_dialog:"c97e2a3be562757ada96b80cdeaaccdc_share_dialog",dia_title:"c97e2a3be562757ada96b80cdeaaccdc_dia_title",modal_title_rules:"c97e2a3be562757ada96b80cdeaaccdc_modal_title_rules",dia_desc:"c97e2a3be562757ada96b80cdeaaccdc_dia_desc",dia_desc_text:"c97e2a3be562757ada96b80cdeaaccdc_dia_desc_text",activity_rules_btn:"c97e2a3be562757ada96b80cdeaaccdc_activity_rules_btn",activity_rules_btn_icon:"c97e2a3be562757ada96b80cdeaaccdc_activity_rules_btn_icon",dia_info:"c97e2a3be562757ada96b80cdeaaccdc_dia_info",type_1:"c97e2a3be562757ada96b80cdeaaccdc_type_1",img_info:"c97e2a3be562757ada96b80cdeaaccdc_img_info",load_btn:"c97e2a3be562757ada96b80cdeaaccdc_load_btn",info_right:"c97e2a3be562757ada96b80cdeaaccdc_info_right",type_2:"c97e2a3be562757ada96b80cdeaaccdc_type_2",type_3:"c97e2a3be562757ada96b80cdeaaccdc_type_3",share_link:"c97e2a3be562757ada96b80cdeaaccdc_share_link",share_link_btn:"c97e2a3be562757ada96b80cdeaaccdc_share_link_btn",qr_code:"c97e2a3be562757ada96b80cdeaaccdc_qr_code",type_title:"c97e2a3be562757ada96b80cdeaaccdc_type_title",type:"c97e2a3be562757ada96b80cdeaaccdc_type",type_card:"c97e2a3be562757ada96b80cdeaaccdc_type_card",card_info:"c97e2a3be562757ada96b80cdeaaccdc_card_info",card_logo:"c97e2a3be562757ada96b80cdeaaccdc_card_logo",card_cont:"c97e2a3be562757ada96b80cdeaaccdc_card_cont",card_desc:"c97e2a3be562757ada96b80cdeaaccdc_card_desc",card_btn:"c97e2a3be562757ada96b80cdeaaccdc_card_btn",card_bgi:"c97e2a3be562757ada96b80cdeaaccdc_card_bgi",mobile_share:"c97e2a3be562757ada96b80cdeaaccdc_mobile_share",mobile_body:"c97e2a3be562757ada96b80cdeaaccdc_mobile_body",btn:"c97e2a3be562757ada96b80cdeaaccdc_btn",btn_souc:"c97e2a3be562757ada96b80cdeaaccdc_btn_souc",btn_prim:"c97e2a3be562757ada96b80cdeaaccdc_btn_prim"},p0=function({share:e,shareUrl:t,handleDownload:n,copyUrl:r,shareImage:o,activityRules:i,onShowRules:a}){const{shareDesc:A,shareTypeOne:s,shareTypeTwo:l,shareTypeThr:c,customizeData:u}=e,d=b.useRef(null),[p,h]=b.useState("");b.useEffect(()=>{d.current&&setTimeout(()=>{var e;const t=null==(e=d.current)?void 0:e.querySelector("canvas");if(t){const e=t.toDataURL();h(e)}},500)},[]);const f=null!=i&&""!==i.trim();return b.createElement(b.Fragment,null,b.createElement("div",{className:d0.dia_desc},b.createElement("span",{className:d0.dia_desc_text},A||"\u4ee5\u4e0b\u4e09\u79cd\u65b9\u5f0f\u90fd\u53ef\u4ee5\u9080\u8bf7\u597d\u53cb\u53c2\u52a0\u6d3b\u52a8\u8d62\u597d\u793c"),f&&b.createElement(Fz,{type:"link",className:d0.activity_rules_btn,onClick:()=>null==a?void 0:a()},"\u6d3b\u52a8\u89c4\u5219",b.createElement(L,{className:d0.activity_rules_btn_icon}))),b.createElement("div",{className:d0.dia_info},b.createElement("div",{className:d0.type_1},b.createElement("div",{className:d0.type_title},b.createElement("span",{className:d0.type},s.type||""),b.createElement("span",null,s.desc||"")),b.createElement("div",{className:d0.img_info},o(),b.createElement("div",{className:d0.load_btn,onClick:n},null==u?void 0:u.btnText))),b.createElement("div",{className:d0.info_right},b.createElement("div",{className:d0.type_2},b.createElement("div",{className:d0.type_title},b.createElement("span",{className:d0.type},l.type||""),b.createElement("span",null,l.desc||"")),b.createElement("div",{className:d0.share_link},t||""),b.createElement(Fz,{className:d0.share_link_btn,type:"primary",onClick:r},l.btnText||"\u590d\u5236\u94fe\u63a5")),b.createElement("div",{className:d0.type_3},b.createElement("div",{className:d0.type_title},b.createElement("span",{className:d0.type},c.type||""),b.createElement("span",null,c.desc||"")),b.createElement("div",{ref:d,className:d0.qr_code},p?b.createElement("img",{src:p,alt:"qr"}):b.createElement(O$,{value:t||"",iconSize:20,bgColor:"#fff",size:117,bordered:!1,type:"canvas",errorLevel:"M",icon:(null==c?void 0:c.logo)||""}))))))};let h0="undefined"!=typeof window&&window.location.href.indexOf("isPreview=1")>0,f0="";f0=h0?"https://pre-t.aliyun.com/abs":"https://bridge.aliyun.com/abs";const m0="undefined"!=typeof window&&window.innerWidth<=1055;const g0=new class{shareAcceptTask(e){return v(this,null,function*(){return Ue(function(t){return v(this,null,function*(){return yield t.Request.post(`${f0}/userTask/shareAcceptTask`,{taskId:e,source:m0?"mobile":"pc"})})})})}queryUserRecord(e){return v(this,null,function*(){return Ue(function(t){return v(this,null,function*(){return yield t.Request.post(`${f0}/userTask/queryUserRecord`,{clubTaskBiz:e})})})})}initAction(e){return v(this,null,function*(){return Ue(function(t){return v(this,null,function*(){return yield t.Request.post(`${f0}/userTask/initAction`,{clubTaskBiz:e,source:m0?"mobile":"pc"})})})})}},y0=new nM("customized"),v0="__ADC_2025_OPEN_SHARE_INVITE_MODAL";n.exports=e=>{var n,r,o;const{taskId:i,pageCode:a,openDashi:A,dashiAgreeData:s,shareData:l,activityRules:c}=e,{shareTitle:u,shareLink:d}=l,p=b.useRef(null),[h,f]=YV.useMessage(),[m,g]=b.useState(""),[y,w]=b.useState(null),[B,C]=b.useState(!1),[x,E]=b.useState(!1),[k,F]=b.useState(""),[S,Q]=b.useState(""),[U,O]=b.useState(!1),[T,M]=b.useState(""),[I,N]=b.useState(!1),[H,_]=b.useState(!1),[D,z]=b.useState(!1);b.useEffect(()=>{v(t,null,function*(){const e=yield V();yield j(null==e?void 0:e.clubBiz),K("init")})},[]),b.useEffect(()=>{var e;let t="";if(null==(e=null==y?void 0:y.data)?void 0:e.userCode){const e=y.data.userCode;t=(null==T?void 0:T.length)?`${d}${e?`?userCode=${e}`:""}&clubBiz=${T}`:`${d}${e?`?userCode=${e}`:""}`}else t=(null==T?void 0:T.length)?`${d}?clubBiz=${T}`:d;Q(t||d)},[y,T,d]);const K=b.useCallback(e=>v(t,null,function*(){var e;const t=(n=null==(e=l.customizeData)?void 0:e.bgcList)&&0!==n.length?n[Math.floor(Math.random()*n.length)]:"";var n,r;F((/\.(jpg|jpeg|png|gif)$/i.test(r=t||"")?r:"")||"")}),[null==(n=l.customizeData)?void 0:n.bgcList]),j=b.useCallback(e=>v(t,null,function*(){var t;const n=yield y0.userLogin();if(C(n),n){const n=yield y0.userDashi();w(n);const r=`subTask....${i}..`,o=yield g0.queryUserRecord(r);"200"===(null==o?void 0:o.code)&&(null==o?void 0:o.data)?(O(!0),M((null==(t=null==o?void 0:o.data)?void 0:t.clubTaskBiz)||"")):(O(!1),M("")),e&&(yield g0.initAction(e))}}),[i]),V=b.useCallback(()=>v(t,null,function*(){return yield Ue(e=>v(t,null,function*(){const{URL:t}=e,n=t.getSearch(),r=n.ambRef,o=`${a}${r?`_${r}`:""}`;return g(o),{ambRef:r,ambCode:o,clubBiz:n.clubBiz}}))}),[a]),$=b.useCallback((e,t)=>{const{customizeData:n}=l,{titleImg:r,desc:o,lightDesc:i,logo:a}=n,A=null!=c&&""!==c.trim();return b.createElement("div",{className:d0.type_card,ref:p},b.createElement("div",{className:d0.card_info},b.createElement("img",{className:d0.card_logo,src:a,alt:"logo"}),b.createElement("img",{className:d0.title,src:r,alt:"title"}),b.createElement("div",{className:d0.card_cont},b.createElement("div",{className:d0.card_desc},o,b.createElement("span",null,i)),S&&b.createElement(O$,{value:S,size:"h5"===e?131:77,bordered:!1,bgColor:"#fff",errorLevel:"M",type:"svg"}),"h5"===e&&A&&t&&b.createElement("button",{type:"button",className:d0.h5_activity_rules_link,onClick:t},"\u6d3b\u52a8\u89c4\u5219",b.createElement(L,{className:d0.h5_activity_rules_icon})))),(null==k?void 0:k.length)>0&&b.createElement("img",{className:d0.card_bgi,src:k,alt:"bg"}))},[l,S,k,c]),G=b.useCallback(()=>v(t,null,function*(){var e,t;if(p.current)try{const n=(yield(e=p.current,t={scale:2,logging:!1,useCORS:!0,allowTaint:!0},void 0===t&&(t={}),c0(e,t))).toDataURL("image/png"),r=document.createElement("a");r.download="capture.png",r.href=n,r.click()}catch(n){}}),[]),W=b.useCallback(()=>{pE(S),h.open({type:"success",content:"\u590d\u5236\u6210\u529f\uff0c\u5feb\u53bb\u5206\u4eab\u5427"})},[S,h]),Y=b.useCallback((e="pc")=>v(t,null,function*(){var t;if(B){if(A&&!y){const e=yield y0.checkDashiStep(m,s);if(w(e),!e)return}if(!U){const e=yield g0.shareAcceptTask(i);if(!(null==e?void 0:e.success))return void h.open({type:"error",content:null==e?void 0:e.message});M((null==(t=null==e?void 0:e.data)?void 0:t.clubTaskBiz)||"")}yield K(),"pc"===e?E(!0):N(!0)}else yield y0.toLogin()}),[B,A,y,m,s,U,i,h,K]);return b.useEffect(()=>{const e="undefined"!=typeof window?window:void 0;if(e)return e[v0]=Y,()=>{delete e[v0]}},[Y]),b.createElement(b.Fragment,null,f,b.createElement(t$,{open:x,centered:!0,classNames:{content:d0.share_dialog,header:D?d0.modal_title_rules:d0.dia_title,body:d0.dis_body},footer:!1,title:D&&(null==c?void 0:c.trim())?b.createElement("button",{type:"button",className:d0.activity_rules_back,onClick:()=>z(!1),"aria-label":"\u8fd4\u56de"},b.createElement(P,{className:d0.activity_rules_icon}),b.createElement("span",null,"\u6d3b\u52a8\u89c4\u5219")):b.createElement("div",{className:d0.dia_title},u||"\u9080\u8bf7\u597d\u53cb"),onCancel:()=>{E(!1),z(!1)}},D&&(null==c?void 0:c.trim())?b.createElement("div",{className:"adc-2025-share-button"},b.createElement(R,{htmlStr:c})):b.createElement(p0,{share:l,shareUrl:S,handleDownload:G,copyUrl:W,shareImage:$,activityRules:c,onShowRules:()=>z(!0)})),b.createElement(t$,{open:I,centered:!0,classNames:{content:d0.mobile_share,header:d0.mobile_title,body:d0.mobile_body},footer:!1,title:!1,onCancel:()=>{N(!1),_(!1)}},H&&(null==c?void 0:c.trim())?b.createElement(b.Fragment,null,b.createElement("div",{className:d0.dia_desc,style:{justifyContent:"flex-start"}},b.createElement("button",{type:"button",className:d0.activity_rules_back,onClick:()=>_(!1),"aria-label":"\u8fd4\u56de"},b.createElement(P,{className:d0.activity_rules_icon}),b.createElement("span",null,"\u6d3b\u52a8\u89c4\u5219"))),b.createElement("div",{className:d0.activity_rules_body,style:{maxHeight:360}},b.createElement("div",{className:"adc-2025-share-button"},b.createElement(R,{htmlStr:c})))):b.createElement(b.Fragment,null,$("h5",()=>_(!0)),b.createElement("div",{className:d0.card_btn},b.createElement(Fz,{className:`${d0.btn} ${d0.btn_souc}`,onClick:W},(null==(r=null==l?void 0:l.customizeData)?void 0:r.h5BtnTextF)||"\u590d\u5236\u94fe\u63a5"),b.createElement(Fz,{type:"primary",className:`${d0.btn} ${d0.btn_prim}`,onClick:G},(null==(o=null==l?void 0:l.customizeData)?void 0:o.h5BtnTextS)||"\u4e0b\u8f7d\u6d77\u62a5")))))}});
biu.define({name:"@ali/hmod-adc-2025-typography",version:"0.1.3",dependencies:{react:"^16.8.1"}},function(e,n,t){"use strict";Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=e("react"),l="dc2bf88aaed5d8a00134ca7668600849_em",r="dc2bf88aaed5d8a00134ca7668600849_strong";function i(e,n,t){switch(e.type){case"text":return e.value.split(/\s/).map(function(e,n){return a.createElement(a.Fragment,{key:e+n},n>0&&(t?a.createElement(a.Fragment,null,"\xa0"):a.createElement(a.Fragment,null," ")),e)});case"emphasis":return function(e,n,t){return a.createElement("em",{className:`${l} ${n.em||""}`},e.children.map(function(e){return i(e,n,t)}))}(e,n,t);case"strong":return function(e,n,t){return a.createElement("strong",{className:`${r} ${n.strong||""}`},e.children.map(function(e){return i(e,n,t)}))}(e,n,t)}return null}const c=a.memo(function({classNames:e={},content:n,line:t,allowMultipleSpaces:l}){if(!n)return null;let r=[{type:"text",value:n}];try{r=function(e,n){const t=e.length;let a=0;const l={type:"paragraph",children:[]};let r=null;for(;a<t;){const t=e.charAt(a++);if("*"===t)if(r)switch(r.type){case"text":if(r.parent){const e=r.parent;switch(e.type){case"emphasis":e.parent?r=e.parent:(l.children.push(e),r=null);break;case"strong":0===e.complete&&(e.complete=1,r=e)}}else l.children.push(r),r={type:"emphasis",children:[]};break;case"emphasis":r.type="strong",r.complete=0;break;case"strong":if(1!==r.complete)throw new Error(`*** \u8bed\u6cd5\u9519\u8bef\uff1aline: ${n}, pos: ${a}`);r.parent?r=r.parent:(l.children.push(r),r=null)}else r={type:"emphasis",ended:!1,children:[]};else switch(r||(r={type:"text",value:""}),r.type){case"text":r.value+=t;break;case"emphasis":const e={type:"text",value:t,parent:r};r.children.push(e),r=e;break;case"strong":if(0!==r.complete)throw new Error(`** \u95ed\u5408\u9519\u8bef\uff1aline: ${n}, pos: ${a-1}`);{const e={type:"text",value:t,parent:r};r.children.push(e),r=e}}}return r&&l.children.push(r),l.children}(n,t)}catch(c){}return a.createElement(a.Fragment,null,r.map(function(n){return i(n,e,l)}))}),s="eb0bd3f89f8414f459f6064c9ea56afa_body",o="eb0bd3f89f8414f459f6064c9ea56afa_heading1",d="eb0bd3f89f8414f459f6064c9ea56afa_heading2",h="eb0bd3f89f8414f459f6064c9ea56afa_heading3",u="eb0bd3f89f8414f459f6064c9ea56afa_heading4",f="eb0bd3f89f8414f459f6064c9ea56afa_heading5",p="eb0bd3f89f8414f459f6064c9ea56afa_heading6";var m=(e=>(e.body="body",e.heading1="heading1",e.heading2="heading2",e.heading3="heading3",e.heading4="heading4",e.heading5="heading5",e.heading6="heading6",e))(m||{});const g={body:"p",heading1:"h1",heading2:"h2",heading3:"h3",heading4:"h4",heading5:"h5",heading6:"h6"},y={body:s,heading1:o,heading2:d,heading3:h,heading4:u,heading5:f,heading6:p},b={fadein:function({content:e,delay:n=0,step:t=.04}){return a.createElement(a.Fragment,null,e.split("").map((e,l)=>a.createElement("span",{key:e+l,className:"adc-fadein",style:{animationDelay:`${n+l*t}s`}},e)))}};n.TypographyType=m,n.default=function({type:e,as:n,content:t,animation:l,className:r,customizedStyle:i,useMarkdown:s,emClassName:o,emCustomizedStyle:d,strongClassName:h,strongCustomizedStyle:u,allowMultipleSpaces:f}){if("string"!=typeof t)return null;const p=n||g[e],m=y[e];let E=(null==l?void 0:l.delay)||0;const v=(null==l?void 0:l.name)?b[l.name]:null;return a.createElement(p,{className:[m,r,i].filter(Boolean).join(" ")},t.split("\n").map(function(e,n){if(!e)return null;const t=E;return E+=.04*e.length,a.createElement(a.Fragment,{key:e+n},n>0&&a.createElement("br",null),s?a.createElement(c,{classNames:{em:[o,d].filter(Boolean).join(" "),strong:[h,u].filter(Boolean).join(" ")},content:e,line:n,allowMultipleSpaces:f||!1}):v?a.createElement(v,{content:e,delay:t}):e)}))}});
biu.define({name:"@ali/hmod-adc-benefit-ai-style-crowd-tab",version:"0.0.6",dependencies:{react:"^16.8.1","ace-element":"script:__ALIYUN_EXPERIENCE_ELEMENT__"}},function(e,t,n){"use strict";var o=Object.defineProperty,r=Object.defineProperties,l=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&s(e,n,t[n]);if(c)for(var n of c(t))i.call(t,n)&&s(e,n,t[n]);return e};const f=e("react"),u=e("ace-element");function b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v,p={exports:{}};
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/v=p,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,n(r)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var l in n)e.call(n,l)&&n[l]&&(r=o(r,l));return r}function o(e,t){return t?e?e+" "+t:e+t:e}v.exports?(t.default=t,v.exports=t):window.classNames=t}();const m=b(p.exports);var _=(e=>(e.enterprise="enterprise",e.personal="personal",e.school="school",e.teacher="teacher",e.student="student",e.none="none",e))(_||{}),h=(e=>(e.certified="\u5df2\u8ba4\u8bc1",e.teacher="\u6559\u5e08",e.student="\u5b66\u751f",e))(h||{}),y=(e=>(e.enterprise="\u4f01\u4e1a",e.personal="\u4e2a\u4eba",e.school="\u9ad8\u6821",e))(y||{}),g=(e=>(e.bgColor="#ffffff",e.fontColor="#181818",e.hoverColor="#1b58f4",e.simpleBgColor="#1366eC",e.simpleHoverBgColor="#4b8bf1",e))(g||{});const w=["student_with_no_school_info","student_with_school_info"],E=[_.teacher,_.student];function x({tabList:e,isMobile:t,tabType:n="crowd"}){const o=e.map(e=>e.type),[r,l]=f.useState(null),[c,a]=f.useState(_.none),[i,s]=f.useState(o[0]),[d,u]=f.useState(!1),b=f.useRef(null),v=f.useRef(null),p=()=>{if(!b.current)return;const e=b.current.getBoundingClientRect().top;u(e<=0)},m=()=>{return e=this,t=null,n=function*(){const e=yield window.$ACE.get("Account"),t=yield e.getBaseInfo();if(!(null==t?void 0:t.certificated))return;let n=(null==t?void 0:t.certifyAccountType)===_.personal?_.personal:_.enterprise;o.includes(_.school)&&((null==t?void 0:t.cooperativeTeacher)?n=_.teacher:w.includes((null==t?void 0:t.studentCertInfo)||"")&&(n=_.student)),a(n)},new Promise((o,r)=>{var l=e=>{try{a(n.next(e))}catch(t){r(t)}},c=e=>{try{a(n.throw(e))}catch(t){r(t)}},a=e=>e.done?o(e.value):Promise.resolve(e.value).then(l,c);a((n=n.apply(e,t)).next())});var e,t,n},h=o=>{var r;if(l(o),t&&d&&v.current&&(v.current.scrollIntoView({block:"start"}),scrollBy(0,-40)),"normal"===n&&(null==(r=null==e?void 0:e[o])?void 0:r.tabId)){const t=new URL(location.href);t.searchParams.set("tid",e[o].tabId||""),history.replaceState({},"",t.toString())}};return f.useEffect(()=>{p(),"crowd"===n&&m()},[n]),f.useEffect(()=>{if("normal"===n&&null===r){const t=new URLSearchParams(window.location.search).get("tid");if(t){const n=e.findIndex(e=>e.tabId===t);if(n>=0)return l(n),void s(o[n])}const n=e.map((e,t)=>({item:e,index:t})).filter(({item:e})=>!0===e.defaultExpand);if(n.length>0){const e=n[n.length-1];l(e.index),s(o[e.index])}else l(0),s(o[0]);return}if(c===_.none)return void(null===r&&(l(0),s(o[0])));const t=E.includes(c)?_.school:c;s(t);const a=o.indexOf(t);h(a<0?0:a)},[c,n,e,o]),f.useEffect(()=>(t&&addEventListener("scroll",p),()=>{t&&removeEventListener("scroll",p)}),[t]),{tabRef:b,panelRef:v,activeIdx:r,userType:c,useCrowdType:i,changeActiveIdx:h}}var C=function(e){return e.Daily="daily",e.Pre="pre",e.Grey="grey",e.Prod="prod",e}({}),I=function(e){return e.zh_CN="zh_CN",e.en_US="en_US",e}({}),S=function(e){return e.pc="pc",e.h5="h5",e}({});C.Prod;var N,O=S.pc;(I.zh_CN,window.__LOWCODE_ENV__&&(window.__LOWCODE_ENV__.env,O=window.__LOWCODE_ENV__.terminal,window.__LOWCODE_ENV__.language,window.__LOWCODE_ENV__.isSSR),"undefined"!=typeof window)&&("h5"===new URLSearchParams((null===(N=window)||void 0===N||null===(N=N.location)||void 0===N?void 0:N.search)||"").get("terminal")&&(O=S.h5));function T(){const[e,t]=f.useState("h5"===O);return f.useEffect(()=>{t(window.innerWidth<1056)},[]),{isMobile:e}}const L="f2cb93161f1cd60e4f8792499efea16d_nav",A="f2cb93161f1cd60e4f8792499efea16d_navCon",P="f2cb93161f1cd60e4f8792499efea16d_navContainer",R="f2cb93161f1cd60e4f8792499efea16d_navWrapper",B="f2cb93161f1cd60e4f8792499efea16d_navWrapperFixed",F="f2cb93161f1cd60e4f8792499efea16d_navItemFixed",k="f2cb93161f1cd60e4f8792499efea16d_navItemTitle",W="f2cb93161f1cd60e4f8792499efea16d_navItem",$="f2cb93161f1cd60e4f8792499efea16d_navItemContent",j="f2cb93161f1cd60e4f8792499efea16d_navItemStatic",M="f2cb93161f1cd60e4f8792499efea16d_navItemDesc",D="f2cb93161f1cd60e4f8792499efea16d_navItemActive";function V(e){const t=e,{isSticky:n,children:o,offsetTop:s,onAffix:b}=t,v=((e,t)=>{var n={};for(var o in e)a.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&c)for(var o of c(e))t.indexOf(o)<0&&i.call(e,o)&&(n[o]=e[o]);return n})(t,["isSticky","children","offsetTop","onAffix"]);return n?f.createElement(u.Affix,(p=d({},v),r(p,l({offsetTop:s,onAffix:b}))),o):f.createElement("div",d({},v),o);var p}function U({crowdType:e,crowdName:t,list:n=[],style:o={},config:r={}}){const l=n.length>6?n.slice(0,6):n,{isMobile:c}=T(),a=(null==r?void 0:r.isSticky)||!1,{isFixed:i,activeIndex:s,setIsFixed:d}=function(e,t){const[n,o]=f.useState(!1),[r,l]=f.useState(-1);f.useEffect(()=>(t||window.addEventListener("scroll",c),()=>{window.removeEventListener("scroll",c)}),[t,e]);const c=()=>{let t=-1;e.forEach((e,n)=>{const{anchorId:o}=e;if(!o)return;const r=document.getElementById(o);r&&r.getBoundingClientRect().top<=50&&(t=Number(n))}),-1!==t&&l(t)};return{isFixed:n,activeIndex:r,setIsFixed:o}}(l,c),{fontColor:u=g.fontColor,descColor:b=g.fontColor,hoverFontColor:v=g.bgColor,fontSimplifyColor:p=g.bgColor,hoverSimplifyFontColor:_=g.bgColor}=o;return f.createElement(V,{isSticky:a,className:L,offsetTop:0,style:{width:"100%"},onAffix:e=>d(e)},f.createElement("div",{className:A},f.createElement("div",{className:P,style:{"--nav-font-color":i?p:u,"--nav-hover-font-color":i?_:v,"--nav-desc-color":b,"--nav-height":i?"56px":"120px","--nav-item-align":i?"center":"left","--nav-item-width":l.length?`calc((100% - 50px) / ${l.length})`:"auto","--tab-box-shadow":null==o?void 0:o.boxShadow,"--tab-current-bg-color":null==o?void 0:o.currentBgColor}},f.createElement("ul",{className:`grid-style-1 ${R} ${i?B:""}`},l.map((e,t)=>e?f.createElement("li",{className:m(W,{[j]:!i,[D]:i&&s===t,[F]:i&&s!==t}),key:`${e.anchorId}-${t}`,style:{"--nav-item-border-right":i||t==l.length-1?"none":"1px solid #E9EBF0","--nav-i-color":e.iColor,"--nav-i-hover-color":e.iHoverColor},onClick:()=>{(e=>{if(!e)return;const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})})(e.anchorId)}},f.createElement("div",{className:$},f.createElement("div",{className:k,title:e.title,dangerouslySetInnerHTML:{__html:e.title}}),i?f.createElement(f.Fragment,null):f.createElement("div",{className:M,title:e.desc},e.desc))):null)))))}const z="_919849e2bb41d46b11ed5b1586ee3c21_CrowdTab",H="_919849e2bb41d46b11ed5b1586ee3c21_tabCon",G="_919849e2bb41d46b11ed5b1586ee3c21_tabWrapper",X="_919849e2bb41d46b11ed5b1586ee3c21_normalTab",Y="_919849e2bb41d46b11ed5b1586ee3c21_tabItem",q="_919849e2bb41d46b11ed5b1586ee3c21_titleContainer",J="_919849e2bb41d46b11ed5b1586ee3c21_crowdText",K="_919849e2bb41d46b11ed5b1586ee3c21_line",Q="_919849e2bb41d46b11ed5b1586ee3c21_userTag",Z="_919849e2bb41d46b11ed5b1586ee3c21_active",ee="_919849e2bb41d46b11ed5b1586ee3c21_panel",te="_919849e2bb41d46b11ed5b1586ee3c21_panelFirstActive",ne="_919849e2bb41d46b11ed5b1586ee3c21_panelLastActive";n.exports=function({tabType:e="crowd",tabList:t=[],containerStyle:n={},navStyle:o={},navConfig:r={}}){const{maxWidth:l=1920,margin:c=80}=n,a=t.length>3?t.slice(0,3):t,i=a.length,{isMobile:s}=T(),{tabRef:d,panelRef:u,activeIdx:b,userType:v,useCrowdType:p,changeActiveIdx:g}=x({tabList:a,isMobile:s,tabType:e}),w=f.useMemo(()=>a[null!=b?b:0],[b]);return f.createElement("div",{className:z,style:{"--tab-box-shadow":null==o?void 0:o.boxShadow,"--container-max-width":`${l}px`,"--container-margin":`${c}px`}},f.createElement("div",{className:H},f.createElement("ul",{className:`${G} grid-style-3 ${"normal"===e?X:""}`,ref:d},a.map((t,n)=>{const{type:r,title:l}=t;let c;"crowd"===e&&(r===v&&v!==_.none?c=h.certified:r===_.school&&p===_.school&&(c=h[v]));const d=null!==b&&!(n===b||n===b-1||n===i-1),u="normal"!==e&&s?y[r]:l;return f.createElement("li",{key:t.type,onClick:()=>g(n),className:m(Y,"col-"+12/i,{[Z]:null!==b&&n===b,[K]:d}),style:{"--tab-item-border-right":2===b&&(null==a?void 0:a.length)>2?"1px solid #fff":"none","--tab-item-border-left":0===b&&(null==a?void 0:a.length)>2?"1px solid #fff":"none","--tab-item-hover-color":null==o?void 0:o.hoverFontColor,"--tab-current-bg-color":null==o?void 0:o.currentBgColor}},f.createElement("p",{className:q},f.createElement("span",{className:J,title:u},u),c?f.createElement("span",{className:Q},c):null))}))),f.createElement("div",{className:m(ee,{[te]:0===b,[ne]:b===i-1}),style:{"--tab-current-bg-color":null==o?void 0:o.currentBgColor},ref:u},f.createElement(U,{crowdType:w.type,crowdName:w.title,list:w.navList,style:o,config:r}),w.children||null))}});
biu.define({name:"@ali/hmod-adc-marketing-anchor",version:"0.0.1",dependencies:{react:"^16.8.1"}},function(e,n,c){"use strict";const i=e("react");c.exports=function({anchorId:e,className:n,children:c}){return i.createElement("div",{id:e||void 0,className:n||void 0},c)}});
biu.define({name:"@ali/hmod-adc-marketing-floor-desc",version:"0.0.2",dependencies:{react:"^16.8.1"}},function(e,t,n){"use strict";const o=e("react"),i={"floor-desc":"_95282acdd8136b8eb3c893ea728c4091_floor-desc","floor-desc__text":"_95282acdd8136b8eb3c893ea728c4091_floor-desc__text","floor-desc__link":"_95282acdd8136b8eb3c893ea728c4091_floor-desc__link"};let l=null;function r(){if(null!==l)return l;if("undefined"==typeof window)return"pc";const e=window.matchMedia("(max-width: 1055px)").matches;return l=e?"h5":"pc",l}n.exports=({content:e="",links:t=[],textClassName:n,linkClassName:l})=>{const c=o.useMemo(()=>function(e){if(!e)return[];const t=[],n=/\*([^*]+)\*/g;let o,i=0,l=0;for(;null!==(o=n.exec(e));)o.index>i&&t.push({type:"text",text:e.slice(i,o.index),index:-1}),t.push({type:"link",text:o[1],index:l}),l++,i=o.index+o[0].length;return i<e.length&&t.push({type:"text",text:e.slice(i),index:-1}),t}(e),[e]),a=o.useCallback(e=>t=>{var n;if(!e.href&&e.openRulesModal){t.preventDefault();const o=(null==(n=e.activityRules)?void 0:n.trim())||"";if(!o)return;const i="undefined"!=typeof window?window.__ADC_GLOBAL_RULES_MODAL:void 0;"function"==typeof i&&i({activityRules:o,title:e.modalTitle||"\u6d3b\u52a8\u89c4\u5219",device:r()})}},[]),s=[i["floor-desc__text"],n].filter(Boolean).join(" "),d=[i["floor-desc__link"],l].filter(Boolean).join(" ");return o.createElement("p",{className:i["floor-desc"]},c.map((e,n)=>{if("text"===e.type)return o.createElement("span",{key:n,className:s},e.text);const i=t[e.index]||{},l=[d,i.linkClassName].filter(Boolean).join(" "),r=i.href||(i.openRulesModal?"javascript:void(0)":void 0);return o.createElement("a",{key:n,className:l,href:r,target:i.href?i.target||"_blank":void 0,rel:i.href&&"_self"!==i.target?"noopener noreferrer":void 0,onClick:a(i)},e.text)}))}});
biu.define({name:"@ali/hmod-adc-marketing-global-rules-modal",version:"0.0.3",dependencies:{react:"^16.8.1","react-dom":">=16.9.0"}},function(e,t,n){"use strict";const r=e("react"),o=e("react-dom");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const a=i(r),c=i(o);function l(e){var t=e.htmlStr;return r.createElement("div",{className:"adc-rule-text-render-container",dangerouslySetInnerHTML:{__html:t}})}function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u,d={exports:{}};
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/u=d,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}u.exports?(t.default=t,u.exports=t):window.classNames=t}();const f=s(d.exports);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(null,arguments)}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),v=Symbol.for("react.fragment");function b(e){return e&&"object"===m(e)&&(e.$$typeof===p||e.$$typeof===h)&&e.type===v}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(y(e)):b(e)&&e.props?n=n.concat(y(e.props.children,t)):n.push(e))}),n}var C={};function x(e,t){}function E(e,t){}function S(e,t,n){t||C[n]||(e(!1,n),C[n]=!0)}function k(e,t){S(x,e,t)}function w(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}function O(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e){return e instanceof HTMLElement||e instanceof SVGElement}function F(e){var t,n=function(e){return e&&"object"===m(e)&&P(e.nativeElement)?e.nativeElement:P(e)?e:null}(e);return n||(e instanceof r.Component?null===(t=o.findDOMNode)||void 0===t?void 0:t.call(o,e):null)}k.preMessage=function(e){},k.resetWarned=function(){C={}},k.noteOnce=function(e,t){S(E,e,t)};var T,M={exports:{}},A={},I=Symbol.for("react.element"),N=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),B=Symbol.for("react.context"),z=Symbol.for("react.server_context"),D=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen");function X(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case I:switch(e=e.type){case R:case _:case H:case V:case W:return e;default:switch(e=e&&e.$$typeof){case z:case B:case D:case U:case q:case L:return e;default:return t}}case N:return t}}}T=Symbol.for("react.module.reference"),A.ContextConsumer=B,A.ContextProvider=L,A.Element=I,A.ForwardRef=D,A.Fragment=R,A.Lazy=U,A.Memo=q,A.Portal=N,A.Profiler=_,A.StrictMode=H,A.Suspense=V,A.SuspenseList=W,A.isAsyncMode=function(){return!1},A.isConcurrentMode=function(){return!1},A.isContextConsumer=function(e){return X(e)===B},A.isContextProvider=function(e){return X(e)===L},A.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===I},A.isForwardRef=function(e){return X(e)===D},A.isFragment=function(e){return X(e)===R},A.isLazy=function(e){return X(e)===U},A.isMemo=function(e){return X(e)===q},A.isPortal=function(e){return X(e)===N},A.isProfiler=function(e){return X(e)===_},A.isStrictMode=function(e){return X(e)===H},A.isSuspense=function(e){return X(e)===V},A.isSuspenseList=function(e){return X(e)===W},A.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===R||e===_||e===H||e===V||e===W||e===G||"object"==typeof e&&null!==e&&(e.$$typeof===U||e.$$typeof===q||e.$$typeof===L||e.$$typeof===B||e.$$typeof===D||e.$$typeof===T||void 0!==e.getModuleId)},A.typeOf=X,M.exports=A;var K=M.exports;function Y(e,t,n){var r=a.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var Z=Number(r.version.split(".")[0]),Q=function(e,t){"function"==typeof e?e(t):"object"===m(e)&&e&&"current"in e&&(e.current=t)},J=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){Q(t,e)})}},ee=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y(function(){return J.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},te=function(e){var t,n;if(!e)return!1;if(ne(e)&&Z>=19)return!0;var r=K.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===K.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===K.ForwardRef)};function ne(e){return r.isValidElement(e)&&!b(e)}var re=function(e){if(e&&ne(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function ae(e,t,n){return t&&ie(e.prototype,t),n&&ie(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ce(e,t){return(ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function le(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ce(e,t)}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ue=function(){return!!e})()}function de(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fe(e){var t=ue();return function(){var n,r=se(e);if(t){var o=se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return de(e)}(this,n)}}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function me(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function pe(e,t){if(e){if("string"==typeof e)return ge(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}function he(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||me(e)||pe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ve=function(e){return+setTimeout(e,16)},be=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ve=function(e){return window.requestAnimationFrame(e)},be=function(e){return window.cancelAnimationFrame(e)});var ye=0,Ce=new Map;function xe(e){Ce.delete(e)}var Ee=function(e){var t=ye+=1;return function n(r){if(0===r)xe(t),e();else{var o=ve(function(){n(r-1)});Ce.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function Se(e){if(Array.isArray(e))return e}function ke(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function we(e,t){return Se(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(u){s=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||pe(e,t)||ke()}function Oe(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function $e(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function je(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}Ee.cancel=function(e){var t=Ce.get(e);return xe(e),be(t)};var Pe="data-rc-order",Fe="data-rc-priority",Te=new Map;function Me(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function Ae(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ie(e){return Array.from((Te.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function Ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!$e())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),c="prependQueue"===a,l=document.createElement("style");l.setAttribute(Pe,a),c&&i&&l.setAttribute(Fe,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var s=Ae(t),u=s.firstChild;if(r){if(c){var d=(t.styles||Ie(s)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Pe)))return!1;var t=Number(e.getAttribute(Fe)||0);return i>=t});if(d.length)return s.insertBefore(l,d[d.length-1].nextSibling),l}s.insertBefore(l,u)}else s.appendChild(l);return l}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ae(t);return(t.styles||Ie(n)).find(function(n){return n.getAttribute(Me(t))===e})}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Re(e,t);n&&Ae(t).removeChild(n)}function _e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ae(n),o=Ie(r),i=j(j({},n),{},{styles:o});!function(e,t){var n=Te.get(e);if(!n||!je(document,n)){var r=Ne("",t),o=r.parentNode;Te.set(e,o),e.removeChild(r)}}(r,i);var a=Re(t,i);if(a){var c,l,s;if(null!==(c=i.csp)&&void 0!==c&&c.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ne(e,i);return u.setAttribute(Me(i),t),u}function Le(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Be(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(k(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var c=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],o[l],c))return!1;return!0}if(t&&o&&"object"===m(t)&&"object"===m(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every(function(n){return e(t[n],o[n],c)})}return!1}(e,t)}function ze(e){return e.join("%")}var De=function(){function e(t){oe(this,e),O(this,"instanceId",void 0),O(this,"cache",new Map),O(this,"extracted",new Set),this.instanceId=t}return ae(e,[{key:"get",value:function(e){return this.opGet(ze(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(ze(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),Ve="data-token-hash",We="data-css-hash",qe="__cssinjs_instance__";var Ue=a.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(We,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[qe]=t[qe]||e,t[qe]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(We,"]"))).forEach(function(t){var n,o=t.getAttribute(We);r[o]?t[qe]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new De(e)}(),defaultCache:!0});var Ge=function(){function e(){oe(this,e),O(this,"cache",void 0),O(this,"keys",void 0),O(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ae(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=we(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),i=we(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();O(Ge,"MAX_CACHE_SIZE",20),O(Ge,"MAX_CACHE_OFFSET",5);var Xe=0,Ke=function(){function e(t){oe(this,e),O(this,"derivatives",void 0),O(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Xe,0===t.length&&t.length,Xe+=1}return ae(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),Ye=new Ge;function Ze(e){var t=Array.isArray(e)?e:[e];return Ye.has(t)||Ye.set(t,new Ke(t)),Ye.get(t)}var Qe=new WeakMap,Je={};var et=new WeakMap;function tt(e){var t=et.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Ke?t+=r.id:r&&"object"===m(r)?t+=tt(r):t+=r}),t=Oe(t),et.set(e,t)),t}function nt(e,t){return Oe("".concat(t,"_").concat(tt(e)))}var rt=$e();function ot(e){return"number"==typeof e?"".concat(e,"px"):e}function it(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=j(j({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},O(O({},Ve,t),We,n)),o=Object.keys(r).map(function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var at=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},ct=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=we(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},lt=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(e){var t,i,a=we(e,2),c=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])o[c]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[c])){var s,u=at(c,null==n?void 0:n.prefix);r[u]="number"!=typeof l||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[c]?String(l):"".concat(l,"px"),o[c]="var(".concat(u,")")}}),[o,ct(r,t,{scope:null==n?void 0:n.scope})]},st=$e()?a.useLayoutEffect:a.useEffect,ut=function(e,t){var n=a.useRef(!0);st(function(){return e(n.current)},t),st(function(){return n.current=!1,function(){n.current=!0}},[])},dt=j({},a).useInsertionEffect,ft=dt?function(e,t,n){return dt(function(){return e(),t()},n)}:function(e,t,n){a.useMemo(e,n),ut(function(){return t(!0)},n)},gt=void 0!==j({},a).useInsertionEffect?function(e){var t=[],n=!1;return a.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function mt(e,t,n,r,o){var i=a.useContext(Ue).cache,c=ze([e].concat(he(t))),l=gt([c]),s=function(e){i.opUpdate(c,function(t){var r=we(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i})};a.useMemo(function(){s()},[c]);var u=i.opGet(c)[1];return ft(function(){null==o||o(u)},function(e){return s(function(t){var n=we(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(u)),[r+1,i]}),function(){i.opUpdate(c,function(t){var n=we(t||[],2),o=n[0],a=void 0===o?0:o,s=n[1];return 0===a-1?(l(function(){!e&&i.opGet(c)||null==r||r(s,!1)}),null):[a-1,s]})}},[c]),u}var pt={},ht=new Map;function vt(e,t){ht.set(e,(ht.get(e)||0)-1);var n=new Set;ht.forEach(function(e,t){e<=0&&n.add(t)}),ht.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Ve,'="').concat(e,'"]')).forEach(function(e){var n;e[qe]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),ht.delete(e)})}var bt="token";function yt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.useContext(Ue),i=o.cache.instanceId,a=o.container,c=n.salt,l=void 0===c?"":c,s=n.override,u=void 0===s?pt:s,d=n.formatToken,f=n.getComputedToken,g=n.cssVar,m=function(e,t){for(var n=Qe,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Je)||n.set(Je,e()),n.get(Je)}(function(){return Object.assign.apply(Object,[{}].concat(he(t)))},t),p=tt(m),h=tt(u),v=g?tt(g):"",b=mt(bt,[l,e.id,p,h,v],function(){var t,n=f?f(m,u,e):function(e,t,n,r){var o=j(j({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(m,u,e,d),r=j({},n),o="";if(g){var i=we(lt(n,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),2);n=i[0],o=i[1]}var a=nt(n,l);n._tokenKey=a,r._tokenKey=nt(r,l);var c=null!==(t=null==g?void 0:g.key)&&void 0!==t?t:a;n._themeKey=c,function(e){ht.set(e,(ht.get(e)||0)+1)}(c);var s="".concat("css","-").concat(Oe(a));return n._hashId=s,[n,s,r,o,(null==g?void 0:g.key)||""]},function(e){vt(e[0]._themeKey,i)},function(e){var t=we(e,4),n=t[0],r=t[3];if(g&&r){var o=_e(r,Oe("css-variables-".concat(n._themeKey)),{mark:We,prepend:"queue",attachTo:a,priority:-999});o[qe]=i,o.setAttribute(Ve,n._themeKey)}});return b}var Ct={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xt="comm",Et="rule",St="decl",kt=Math.abs,wt=String.fromCharCode;function Ot(e){return e.trim()}function $t(e,t,n){return e.replace(t,n)}function jt(e,t,n){return e.indexOf(t,n)}function Pt(e,t){return 0|e.charCodeAt(t)}function Ft(e,t,n){return e.slice(t,n)}function Tt(e){return e.length}function Mt(e,t){return t.push(e),e}var At=1,It=1,Nt=0,Rt=0,Ht=0,_t="";function Lt(e,t,n,r,o,i,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:At,column:It,length:a,return:"",siblings:c}}function Bt(){return Ht=Rt>0?Pt(_t,--Rt):0,It--,10===Ht&&(It=1,At--),Ht}function zt(){return Ht=Rt<Nt?Pt(_t,Rt++):0,It++,10===Ht&&(It=1,At++),Ht}function Dt(){return Pt(_t,Rt)}function Vt(){return Rt}function Wt(e,t){return Ft(_t,e,t)}function qt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ut(e){return Ot(Wt(Rt-1,Kt(91===e?e+2:40===e?e+1:e)))}function Gt(e){for(;(Ht=Dt())&&Ht<33;)zt();return qt(e)>2||qt(Ht)>3?"":" "}function Xt(e,t){for(;--t&&zt()&&!(Ht<48||Ht>102||Ht>57&&Ht<65||Ht>70&&Ht<97););return Wt(e,Vt()+(t<6&&32==Dt()&&32==zt()))}function Kt(e){for(;zt();)switch(Ht){case e:return Rt;case 34:case 39:34!==e&&39!==e&&Kt(Ht);break;case 40:41===e&&Kt(e);break;case 92:zt()}return Rt}function Yt(e,t){for(;zt()&&e+Ht!==57&&(e+Ht!==84||47!==Dt()););return"/*"+Wt(t,Rt-1)+"*"+wt(47===e?e:zt())}function Zt(e){for(;!qt(Dt());)zt();return Wt(e,Rt)}function Qt(e){return function(e){return _t="",e}(Jt("",null,null,null,[""],e=function(e){return At=It=1,Nt=Tt(_t=e),Rt=0,[]}(e),0,[0],e))}function Jt(e,t,n,r,o,i,a,c,l){for(var s=0,u=0,d=a,f=0,g=0,m=0,p=1,h=1,v=1,b=0,y="",C=o,x=i,E=r,S=y;h;)switch(m=b,b=zt()){case 40:if(108!=m&&58==Pt(S,d-1)){-1!=jt(S+=$t(Ut(b),"&","&\f"),"&\f",kt(s?c[s-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Ut(b);break;case 9:case 10:case 13:case 32:S+=Gt(m);break;case 92:S+=Xt(Vt()-1,7);continue;case 47:switch(Dt()){case 42:case 47:Mt(tn(Yt(zt(),Vt()),t,n,l),l),5!=qt(m||1)&&5!=qt(Dt()||1)||!Tt(S)||" "===Ft(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*p:c[s++]=Tt(S)*v;case 125*p:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(S=$t(S,/\f/g,"")),g>0&&(Tt(S)-d||0===p&&47===m)&&Mt(g>32?nn(S+";",r,n,d-1,l):nn($t(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(Mt(E=en(S,t,n,s,u,o,c,y,C=[],x=[],d,i),i),123===b)if(0===u)Jt(S,t,E,E,C,i,d,c,x);else{switch(f){case 99:if(110===Pt(S,3))break;case 108:if(97===Pt(S,2))break;default:u=0;case 100:case 109:case 115:}u?Jt(e,E,E,r&&Mt(en(e,E,E,0,0,o,c,y,o,C=[],d,x),x),o,x,d,c,r?C:x):Jt(S,E,E,E,[""],x,0,c,x)}}s=u=g=0,p=v=1,y=S="",d=a;break;case 58:d=1+Tt(S),g=m;default:if(p<1)if(123==b)--p;else if(125==b&&0==p++&&125==Bt())continue;switch(S+=wt(b),b*p){case 38:v=u>0?1:(S+="\f",-1);break;case 44:c[s++]=(Tt(S)-1)*v,v=1;break;case 64:45===Dt()&&(S+=Ut(zt())),f=Dt(),u=d=Tt(y=S+=Zt(Vt())),b++;break;case 45:45===m&&2==Tt(S)&&(p=0)}}return i}function en(e,t,n,r,o,i,a,c,l,s,u,d){for(var f=o-1,g=0===o?i:[""],m=function(e){return e.length}(g),p=0,h=0,v=0;p<r;++p)for(var b=0,y=Ft(e,f+1,f=kt(h=a[p])),C=e;b<m;++b)(C=Ot(h>0?g[b]+" "+y:$t(y,/&\f/g,g[b])))&&(l[v++]=C);return Lt(e,t,n,0===o?Et:c,l,s,u,d)}function tn(e,t,n,r){return Lt(e,t,n,xt,wt(Ht),Ft(e,2,-2),0,r)}function nn(e,t,n,r,o){return Lt(e,t,n,St,Ft(e,0,r),Ft(e,r+1,-1),r,o)}function rn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function on(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case St:return e.return=e.return||e.value;case xt:return"";case"@keyframes":return e.return=e.value+"{"+rn(e.children,r)+"}";case Et:if(!Tt(e.value=e.props.join(",")))return""}return Tt(n=rn(e.children,r))?e.return=e.value+"{"+n+"}":""}var an,cn="data-ant-cssinjs-cache-path",ln="_FILE_STYLE__",sn=!0;function un(e){return function(){if(!an&&(an={},$e())){var e=document.createElement("div");e.className=cn,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=we(e.split(":"),2),n=t[0],r=t[1];an[n]=r});var n,r=document.querySelector("style[".concat(cn,"]"));r&&(sn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!an[e]}var dn="_multi_value_";function fn(e){return rn(Qt(e),on).replace(/\{%%%\:[^;];}/g,";")}function gn(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(he(n.slice(1))).join(" ")}).join(",")}var mn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,c=n.hashId,l=n.layer;n.path;var s=n.hashPriority,u=n.transformers,d=void 0===u?[]:u;n.linters;var f="",g={};function p(t){var r=t.getName(c);if(!g[r]){var o=we(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(t.getName(c)).concat(o)}}var h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return h.forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)p(r);else{var l=d.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(l).forEach(function(t){var r=l[t];if("object"!==m(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===m(e)&&e&&("_skip_check_"in e||dn in e)}(r)){let e=function(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;Ct[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(p(t),r=t.getName(c)),f+="".concat(n,":").concat(r,";")};var u,d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===m(r)&&null!=r&&r[dn]&&Array.isArray(d)?d.forEach(function(n){e(t,n)}):e(t,d)}else{var h=!1,v=t.trim(),b=!1;(o||i)&&c?v.startsWith("@")?h=!0:v=gn("&"===v?"":t,c,s):!o||c||"&"!==v&&""!==v||(v="",b=!0);var y=we(e(r,n,{root:b,injectHash:h,parentSelectors:[].concat(he(a),[v])}),2),C=y[0],x=y[1];g=j(j({},g),x),f+="".concat(v).concat(C)}})}}),o?l&&(f&&(f="@layer ".concat(l.name," {").concat(f,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(l.name,";")}).join("\n"))):f="{".concat(f,"}"),[f,g]};function pn(e,t){return Oe("".concat(e.join("%")).concat(t))}function hn(){return null}var vn="style";function bn(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,c=e.nonce,l=e.clientOnly,s=e.order,u=void 0===s?0:s,d=a.useContext(Ue),f=d.autoClear;d.mock;var m=d.defaultCache,p=d.hashPriority,h=d.container,v=d.ssrInline,b=d.transformers,y=d.linters,C=d.cache,x=d.layer,E=n._tokenKey,S=[E];x&&S.push("layer"),S.push.apply(S,he(r));var k=rt,w=mt(vn,S,function(){var e=S.join("|");if(un(e)){var n=function(e){var t=an[e],n=null;if(t&&$e())if(sn)n=ln;else{var r=document.querySelector("style[".concat(We,'="').concat(an[e],'"]'));r?n=r.innerHTML:delete an[e]}return[n,t]}(e),a=we(n,2),c=a[0],s=a[1];if(c)return[c,E,s,{},l,u]}var d=t(),f=we(mn(d,{hashId:o,hashPriority:p,layer:x?i:void 0,path:r.join("-"),transformers:b,linters:y}),2),g=f[0],m=f[1],h=fn(g),v=pn(S,h);return[h,E,v,m,l,u]},function(e,t){var n=we(e,3)[2];(t||f)&&rt&&He(n,{mark:We,attachTo:h})},function(e){var t=we(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(k&&n!==ln){var i={mark:We,prepend:!x&&"queue",attachTo:h,priority:u},a="function"==typeof c?c():c;a&&(i.csp={nonce:a});var l=[],s=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?l.push(e):s.push(e)}),l.forEach(function(e){_e(fn(o[e]),"_layer-".concat(e),j(j({},i),{},{prepend:!0}))});var d=_e(n,r,i);d[qe]=C.instanceId,d.setAttribute(Ve,E),s.forEach(function(e){_e(fn(o[e]),"_effect-".concat(e),i)})}}),$=we(w,3),P=$[0],F=$[1],T=$[2];return function(e){var t;return t=v&&!k&&m?a.createElement("style",g({},O(O({},Ve,F),We,T),{dangerouslySetInnerHTML:{__html:P}})):a.createElement(hn,null),a.createElement(a.Fragment,null,t,e)}}var yn="cssVar";O(O(O({},vn,function(e,t,n){var r=we(e,6),o=r[0],i=r[1],a=r[2],c=r[3],l=r[4],s=r[5],u=(n||{}).plain;if(l)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=it(o,i,a,f,u),c&&Object.keys(c).forEach(function(e){if(!t[e]){t[e]=!0;var n=it(fn(c[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}}),[s,a,d]}),bt,function(e,t,n){var r=we(e,5),o=r[2],i=r[3],a=r[4],c=(n||{}).plain;if(!i)return null;var l=o._tokenKey;return[-999,l,it(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}),yn,function(e,t,n){var r=we(e,4),o=r[1],i=r[2],a=r[3],c=(n||{}).plain;if(!o)return null;return[-999,i,it(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]});var Cn=function(){function e(t,n){oe(this,e),O(this,"name",void 0),O(this,"style",void 0),O(this,"_keyframe",!0),this.name=t,this.style=n}return ae(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function xn(e){return e.notSplit=!0,e}xn(["borderTop","borderBottom"]),xn(["borderTop"]),xn(["borderBottom"]),xn(["borderLeft","borderRight"]),xn(["borderLeft"]),xn(["borderRight"]);const En=r.createContext({});function Sn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function kn(e,t,n,r){if(!t.length)return n;var o,i,a=Se(o=t)||me(o)||pe(o)||ke(),c=a[0],l=a.slice(1);return i=e||"number"!=typeof c?Array.isArray(e)?he(e):j({},e):[],r&&void 0===n&&1===l.length?delete i[c][l[0]]:i[c]=kn(i[c],l,n,r),i}function wn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Sn(e,t.slice(0,-1))?e:kn(e,t,n,r)}function On(e){return Array.isArray(e)?[]:{}}var $n="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function jn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=On(t[0]);return t.forEach(function(e){!function t(n,o){var i,a=new Set(o),c=Sn(e,n),l=Array.isArray(c);if(l||"object"===m(i=c)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(c)){a.add(c);var s=Sn(r,n);l?r=wn(r,n,[]):s&&"object"===m(s)||(r=wn(r,n,On(c))),$n(c).forEach(function(e){t([].concat(he(n),[e]),a)})}}else r=wn(r,n,c)}([])}),r}const Pn=a.createContext({}),Fn=r.createContext(void 0);var Tn=j(j({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Mn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},An={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Tn),timePickerLocale:Object.assign({},Mn)},In="${label} is not a valid ${type}",Nn={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:An,TimePicker:Mn,Calendar:An,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:In,method:In,array:In,object:In,number:In,date:In,boolean:In,integer:In,float:In,regexp:In,email:In,url:In,hex:In},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Rn=Object.assign({},Nn.Modal),Hn=[];const _n=()=>Hn.reduce((e,t)=>Object.assign(Object.assign({},e),t),Nn.Modal);function Ln(){return Rn}const Bn=r.createContext(void 0),zn=(e,t)=>{const n=a.useContext(Bn);return[a.useMemo(()=>{var r;const o=t||Nn[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[e,t,n]),a.useMemo(()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Nn.locale:e},[n])]},Dn=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;a.useEffect(()=>{const e=function(e){if(e){const t=Object.assign({},e);return Hn.push(t),Rn=_n(),()=>{Hn=Hn.filter(e=>e!==t),Rn=_n()}}Rn=Object.assign({},Nn.Modal)}(null==t?void 0:t.Modal);return e},[t]);const o=a.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return a.createElement(Bn.Provider,{value:o},n)},Vn={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Wn=Object.assign(Object.assign({},Vn),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),qn=Math.round;function Un(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Gn=(e,t,n)=>0===n?e:e/100;function Xn(e,t){const n=t||255;return e>n?n:e<0?0:e}class Kn{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(O(this,"isValid",!0),O(this,"r",0),O(this,"g",0),O(this,"b",0),O(this,"a",1),O(this,"_h",void 0),O(this,"_s",void 0),O(this,"_l",void 0),O(this,"_v",void 0),O(this,"_max",void 0),O(this,"_min",void 0),O(this,"_brightness",void 0),e)if("string"==typeof e){let t=function(e){return n.startsWith(e)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):t("rgb")?this.fromRgbString(n):t("hsl")?this.fromHslString(n):(t("hsv")||t("hsb"))&&this.fromHsvString(n)}else if(e instanceof Kn)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Xn(e.r),this.g=Xn(e.g),this.b=Xn(e.b),this.a="number"==typeof e.a?Xn(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:qn(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:qn(o("r")),g:qn(o("g")),b:qn(o("b")),a:qn(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>qn((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=qn(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=qn(100*this.getSaturation()),n=qn(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Xn(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=qn(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const c=e/60,l=(1-Math.abs(2*n-1))*t,s=l*(1-Math.abs(c%2-1));c>=0&&c<1?(o=l,i=s):c>=1&&c<2?(o=s,i=l):c>=2&&c<3?(i=l,a=s):c>=3&&c<4?(i=s,a=l):c>=4&&c<5?(o=s,a=l):c>=5&&c<6&&(o=l,a=s);const u=n-l/2;this.r=qn(255*(o+u)),this.g=qn(255*(i+u)),this.b=qn(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=qn(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),c=i-a,l=qn(n*(1-t)*255),s=qn(n*(1-t*c)*255),u=qn(n*(1-t*(1-c))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=s,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=s;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=s}}fromHsvString(e){const t=Un(e,Gn);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Un(e,Gn);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Un(e,(e,t)=>t.includes("%")?qn(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Yn=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Zn(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function Qn(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function Jn(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function er(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new Kn(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new Kn({h:Zn(o,i,!0),s:Qn(o,i,!0),v:Jn(o,i,!0)});n.push(a)}n.push(r);for(var c=1;c<=4;c+=1){var l=new Kn({h:Zn(o,c),s:Qn(o,c),v:Jn(o,c)});n.push(l)}return"dark"===t.theme?Yn.map(function(e){var r=e.index,o=e.amount;return new Kn(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var tr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},nr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];nr.primary=nr[5];var rr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];rr.primary=rr[5];var or=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];or.primary=or[5];var ir=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ir.primary=ir[5];var ar=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ar.primary=ar[5];var cr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];cr.primary=cr[5];var lr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];lr.primary=lr[5];var sr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];sr.primary=sr[5];var ur=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ur.primary=ur[5];var dr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];dr.primary=dr[5];var fr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];fr.primary=fr[5];var gr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];gr.primary=gr[5];var mr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];mr.primary=mr[5];var pr={red:nr,volcano:rr,orange:or,gold:ir,yellow:ar,lime:cr,green:lr,cyan:sr,blue:ur,geekblue:dr,purple:fr,magenta:gr,grey:mr};const hr=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const vr=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function br(e){return(e+8)/e}const yr=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:br(e)}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],c=r[1],l=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:s,lineHeightSM:l,fontHeight:Math.round(c*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Cr=(e,t)=>new Kn(e).setA(t).toRgbString(),xr=(e,t)=>new Kn(e).darken(t).toHexString(),Er=e=>{const t=er(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Sr=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Cr(r,.88),colorTextSecondary:Cr(r,.65),colorTextTertiary:Cr(r,.45),colorTextQuaternary:Cr(r,.25),colorFill:Cr(r,.15),colorFillSecondary:Cr(r,.06),colorFillTertiary:Cr(r,.04),colorFillQuaternary:Cr(r,.02),colorBgSolid:Cr(r,1),colorBgSolidHover:Cr(r,.75),colorBgSolidActive:Cr(r,.95),colorBgLayout:xr(n,4),colorBgContainer:xr(n,0),colorBgElevated:xr(n,0),colorBgSpotlight:Cr(r,.85),colorBgBlur:"transparent",colorBorder:xr(n,15),colorBorderSecondary:xr(n,6)}};const kr=Ze(function(e){tr.pink=tr.magenta,pr.pink=pr.magenta;const t=Object.keys(Vn).map(t=>{const n=e[t]===tr[t]?pr[t]:er(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:c,colorBgBase:l,colorTextBase:s}=e,u=t(c),d=t(r),f=t(o),g=t(i),m=t(a),p=n(l,s),h=t(e.colorLink||e.colorInfo),v=new Kn(g[1]).mix(new Kn(g[3]),50).toHexString();return Object.assign(Object.assign({},p),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:v,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Kn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Er,generateNeutralColorPalettes:Sr})),yr(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),vr(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},hr(r))}(e))}),wr={token:Wn,override:{override:Wn},hashed:!0},Or=r.createContext(wr),$r="ant",jr="anticon",Pr=a.createContext({getPrefixCls:(e,t)=>t||(e?`${$r}-${e}`:$r),iconPrefixCls:jr}),Fr={};function Tr(e){const t=a.useContext(Pr),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Fr,styles:Fr},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const Mr=`-ant-${Date.now()}-${Math.random()}`;function Ar(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Kn(e),i=er(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Kn(t.primaryColor),i=er(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setA(.12*e.a));const a=new Kn(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n  :root {\n    ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n  }\n  `.trim()}(e,t);$e()&&_e(n,`${Mr}-dynamic-theme`)}const Ir=a.createContext(!1),Nr=({children:e,disabled:t})=>{const n=a.useContext(Ir);return a.createElement(Ir.Provider,{value:null!=t?t:n},e)},Rr=a.createContext(void 0),Hr=({children:e,size:t})=>{const n=a.useContext(Rr);return a.createElement(Rr.Provider,{value:t||n},e)},_r=Rr;var Lr=ae(function e(){oe(this,e)}),Br="CALC_UNIT",zr=new RegExp(Br,"g");function Dr(e){return"number"==typeof e?"".concat(e).concat(Br):e}var Vr=function(e){le(n,e);var t=fe(n);function n(e,r){var o;oe(this,n),O(de(o=t.call(this)),"result",""),O(de(o),"unitlessCssVar",void 0),O(de(o),"lowPriority",void 0);var i=m(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=Dr(e):"string"===i&&(o.result=e),o}return ae(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Dr(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Dr(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(zr,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Lr),Wr=function(e){le(n,e);var t=fe(n);function n(e){var r;return oe(this,n),O(de(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return ae(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Lr),qr=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ur(e){var t=a.useRef();t.current=e;var n=a.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return n}function Gr(e){var t=a.useRef(!1),n=we(a.useState(e),2),r=n[0],o=n[1];return a.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[r,function(e,n){n&&t.current||o(e)}]}function Xr(e,t,n,r){var o=j({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=we(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))});var i=j(j({},n),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i}var Kr="undefined"!=typeof CSSINJS_STATISTIC,Yr=!0;function Zr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Kr)return Object.assign.apply(Object,[{}].concat(t));Yr=!1;var r={};return t.forEach(function(e){"object"===m(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),Yr=!0,r}var Qr={};function Jr(){}function eo(e,t,n){var r;return"function"==typeof n?n(Zr(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var to=new(function(){function e(){oe(this,e),O(this,"map",new Map),O(this,"objectIDMap",new WeakMap),O(this,"nextID",0),O(this,"lastAccessBeat",new Map),O(this,"accessBeat",0)}return ae(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===m(e)?"obj_".concat(t.getObjectID(e)):"".concat(m(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());var no=function(){return{}};const ro=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function oo(e){return e>=0&&e<=255}function io(e,t){const{r:n,g:r,b:o,a:i}=new Kn(e).toRgb();if(i<1)return e;const{r:a,g:c,b:l}=new Kn(t).toRgb();for(let s=.01;s<=1;s+=.01){const e=Math.round((n-a*(1-s))/s),t=Math.round((r-c*(1-s))/s),i=Math.round((o-l*(1-s))/s);if(oo(e)&&oo(t)&&oo(i))return new Kn({r:e,g:t,b:i,a:Math.round(100*s)/100}).toRgbString()}return new Kn({r:n,g:r,b:o,a:1}).toRgbString()}var ao=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function co(e){const{override:t}=e,n=ao(e,["override"]),r=Object.assign({},t);Object.keys(Wn).forEach(e=>{delete r[e]});const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:io(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:io(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:io(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:io(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n      0 1px 2px -2px ${new Kn("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new Kn("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new Kn("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var lo=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const so={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},uo={motionBase:!0,motionUnit:!0},fo={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},go=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=lo(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=co(a),i&&Object.entries(i).forEach(([e,t])=>{const{theme:n}=t,r=lo(t,["theme"]);let o=r;n&&(o=go(Object.assign(Object.assign({},a),r),{override:r},n)),a[e]=o}),a};function mo(){const{token:e,hashed:t,theme:n,override:o,cssVar:i}=r.useContext(Or),a=`5.29.3-${t||""}`,c=n||kr,[l,s,u]=yt(c,[Wn,e],{salt:a,override:o,getComputedToken:go,formatToken:co,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:so,ignore:uo,preserve:fo}});return[c,u,t?s:"",l,i]}const po=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ho=(e,t)=>({outline:`${ot(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),vo=(e,t)=>({"&:focus-visible":ho(e,t)}),bo=e=>({[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:yo,genComponentStyleHook:Co,genSubStyleComponent:xo}=function(e){var t=e.useCSP,n=void 0===t?no:t,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,c=e.getCommonStyle,l=e.getCompUnitless;function s(t,l,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(t)?t:[t,t],f=we(d,1)[0],g=d.join("-"),p=e.layer||{name:"antd"};return function(e){var t,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,v=o(),b=v.theme,y=v.realToken,C=v.hashId,x=v.token,E=v.cssVar,S=i(),k=S.rootPrefixCls,w=S.iconPrefixCls,O=n(),$=E?"css":"js",P=(t=function(){var e=new Set;return E&&Object.keys(u.unitless||{}).forEach(function(t){e.add(at(t,E.prefix)),e.add(at(t,qr(f,E.prefix)))}),function(e,t){var n="css"===e?Vr:Wr;return function(e){return new n(e,t)}}($,e)},d=[$,f,null==E?void 0:E.prefix],r.useMemo(function(){var e=to.get(d);if(e)return e;var n=t();return to.set(d,n),n},d)),F=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return ot(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return ot(e)}).join(","),")")}}}($),T=F.max,M=F.min,A={theme:b,token:x,hashId:C,nonce:function(){return O.nonce},clientOnly:u.clientOnly,layer:p,order:u.order||-999};"function"==typeof a&&bn(j(j({},A),{},{clientOnly:!1,path:["Shared",k]}),function(){return a(x,{prefix:{rootPrefixCls:k,iconPrefixCls:w},csp:O})});var I=bn(j(j({},A),{},{path:[g,e,w]}),function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,r=Jr;return Kr&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return Yr&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;Qr[e]={global:Array.from(t),component:j(j({},null===(r=Qr[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(x),n=t.token,r=t.flush,o=eo(f,y,s),i=".".concat(e),a=Xr(f,y,o,{deprecatedTokens:u.deprecatedTokens});E&&o&&"object"===m(o)&&Object.keys(o).forEach(function(e){o[e]="var(".concat(at(e,qr(f,E.prefix)),")")});var d=Zr(n,{componentCls:i,prefixCls:e,iconCls:".".concat(w),antCls:".".concat(k),calc:P,max:T,min:M},E?o:a),g=l(d,{hashId:C,prefixCls:e,rootPrefixCls:k,iconPrefixCls:w});r(f,a);var p="function"==typeof c?c(d,e,h,u.resetFont):null;return[!1===u.resetStyle?null:p,g]});return[I,C]}}return{genStyleHooks:function(e,t,n,i){var a=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=j(j({},"function"==typeof l?l(e):{}),{},O({},c("zIndexPopup"),!0));Object.keys(u).forEach(function(e){d[c(e)]=u[e]});var f=j(j({},i),{},{unitless:d,prefixToken:c}),g=s(e,t,n,f),m=function(e,t,n){var i=n.unitless,a=n.injectStyle,c=void 0===a||a,l=n.prefixToken,s=n.ignore,u=function(a){var c=a.rootCls,u=a.cssVar,d=void 0===u?{}:u,f=o().realToken;return function(e,t){var n=e.key,o=e.prefix,i=e.unitless,a=e.ignore,c=e.token,l=e.scope,s=void 0===l?"":l,u=r.useContext(Ue),d=u.cache.instanceId,f=u.container,g=c._tokenKey,m=[].concat(he(e.path),[n,s,g]);mt(yn,m,function(){var e=t(),r=we(lt(e,n,{prefix:o,unitless:i,ignore:a,scope:s}),2),c=r[0],l=r[1];return[c,l,pn(m,l),n]},function(e){var t=we(e,3)[2];rt&&He(t,{mark:We,attachTo:f})},function(e){var t=we(e,3),r=t[1],o=t[2];if(r){var i=_e(r,o,{mark:We,prepend:"queue",attachTo:f,priority:-999});i[qe]=d,i.setAttribute(Ve,n)}})}({path:[e],prefix:d.prefix,key:d.key,unitless:i,ignore:s,token:f,scope:c},function(){var r=eo(e,f,t),o=Xr(e,f,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(function(e){o[l(e)]=o[e],delete o[e]}),o}),null},d=function(t){var n=o().cssVar;return[function(o){return c&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o},null==n?void 0:n.key]};return d}(a,n,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=we(g(e,t),2)[1],r=we(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,j({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=r.useContext(Pr);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=mo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=r.useContext(Pr);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const r=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[r,{"&":r},bo(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:jr)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return!1!==r&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},c),a),{[o]:a})}},getCompUnitless:()=>so}),Eo=(e,t)=>{const[n,r]=mo();return bn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>bo(e))},So=Object.assign({},a),{useId:ko}=So,wo=void 0===ko?()=>"":ko;var Oo=["children"],$o=a.createContext({});function jo(e){var t=e.children,n=Le(e,Oo);return a.createElement($o.Provider,{value:n},t)}var Po=function(e){le(n,e);var t=fe(n);function n(){return oe(this,n),t.apply(this,arguments)}return ae(n,[{key:"render",value:function(){return this.props.children}}]),n}(a.Component);var Fo="none",To="appear",Mo="enter",Ao="leave",Io="none",No="prepare",Ro="start",Ho="active",_o="end",Lo="prepared";function Bo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var zo,Do,Vo,Wo=(zo=$e(),Do="undefined"!=typeof window?window:{},Vo={animationend:Bo("Animation","AnimationEnd"),transitionend:Bo("Transition","TransitionEnd")},zo&&("AnimationEvent"in Do||delete Vo.animationend.animation,"TransitionEvent"in Do||delete Vo.transitionend.transition),Vo),qo={};if($e()){var Uo=document.createElement("div");qo=Uo.style}var Go={};function Xo(e){if(Go[e])return Go[e];var t=Wo[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in qo)return Go[e]=t[i],Go[e]}return""}var Ko=Xo("animationend"),Yo=Xo("transitionend"),Zo=!(!Ko||!Yo),Qo=Ko||"animationend",Jo=Yo||"transitionend";function ei(e,t){return e?"object"===m(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}var ti=$e()?r.useLayoutEffect:r.useEffect;var ni=[No,Ro,Ho,_o],ri=[No,Lo],oi=!1;function ii(e){return e===Ho||e===_o}const ai=function(e,t,n){var r=we(Gr(Io),2),o=r[0],i=r[1],c=function(){var e=a.useRef(null);function t(){Ee.cancel(e.current)}return a.useEffect(function(){return function(){t()}},[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Ee(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]}(),l=we(c,2),s=l[0],u=l[1];var d=t?ri:ni;return ti(function(){if(o!==Io&&o!==_o){var e=d.indexOf(o),t=d[e+1],r=n(o);r===oi?i(t,!0):t&&s(function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,o]),a.useEffect(function(){return function(){u()}},[]),[function(){i(No,!0)},o]};function ci(e,t,n,o){var i,c,l,s=o.motionEnter,u=void 0===s||s,d=o.motionAppear,f=void 0===d||d,g=o.motionLeave,m=void 0===g||g,p=o.motionDeadline,h=o.motionLeaveImmediately,v=o.onAppearPrepare,b=o.onEnterPrepare,y=o.onLeavePrepare,C=o.onAppearStart,x=o.onEnterStart,E=o.onLeaveStart,S=o.onAppearActive,k=o.onEnterActive,w=o.onLeaveActive,$=o.onAppearEnd,P=o.onEnterEnd,F=o.onLeaveEnd,T=o.onVisibleChanged,M=we(Gr(),2),A=M[0],I=M[1],N=(i=Fo,c=we(a.useReducer(function(e){return e+1},0),2)[1],l=a.useRef(i),[Ur(function(){return l.current}),Ur(function(e){l.current="function"==typeof e?e(l.current):e,c()})]),R=we(N,2),H=R[0],_=R[1],L=we(Gr(null),2),B=L[0],z=L[1],D=H(),V=r.useRef(!1),W=r.useRef(null);function q(){return n()}var U=r.useRef(!1);function G(){_(Fo),z(null,!0)}var X=Ur(function(e){var t=H();if(t!==Fo){var n=q();if(!e||e.deadline||e.target===n){var r,o=U.current;t===To&&o?r=null==$?void 0:$(n,e):t===Mo&&o?r=null==P?void 0:P(n,e):t===Ao&&o&&(r=null==F?void 0:F(n,e)),o&&!1!==r&&G()}}}),K=function(e){var t=r.useRef();function n(t){t&&(t.removeEventListener(Jo,e),t.removeEventListener(Qo,e))}return a.useEffect(function(){return function(){n(t.current)}},[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Jo,e),r.addEventListener(Qo,e),t.current=r)},n]}(X),Y=we(K,1)[0],Z=function(e){switch(e){case To:return O(O(O({},No,v),Ro,C),Ho,S);case Mo:return O(O(O({},No,b),Ro,x),Ho,k);case Ao:return O(O(O({},No,y),Ro,E),Ho,w);default:return{}}},Q=a.useMemo(function(){return Z(D)},[D]),J=we(ai(D,!e,function(e){if(e===No){var t=Q[No];return t?t(q()):oi}var n;te in Q&&z((null===(n=Q[te])||void 0===n?void 0:n.call(Q,q(),null))||null);return te===Ho&&D!==Fo&&(Y(q()),p>0&&(clearTimeout(W.current),W.current=setTimeout(function(){X({deadline:!0})},p))),te===Lo&&G(),true}),2),ee=J[0],te=J[1],ne=ii(te);U.current=ne;var re=r.useRef(null);ti(function(){if(!V.current||re.current!==t){I(t);var n,r=V.current;V.current=!0,!r&&t&&f&&(n=To),r&&t&&u&&(n=Mo),(r&&!t&&m||!r&&h&&!t&&m)&&(n=Ao);var o=Z(n);n&&(e||o[No])?(_(n),ee()):_(Fo),re.current=t}},[t]),r.useEffect(function(){(D===To&&!f||D===Mo&&!u||D===Ao&&!m)&&_(Fo)},[f,u,m]),r.useEffect(function(){return function(){V.current=!1,clearTimeout(W.current)}},[]);var oe=a.useRef(!1);r.useEffect(function(){A&&(oe.current=!0),void 0!==A&&D===Fo&&((oe.current||A)&&(null==T||T(A)),oe.current=!0)},[A,D]);var ie=B;return Q[No]&&te===Ro&&(ie=j({transition:"none"},ie)),[D,te,ie,null!=A?A:t]}const li=function(e){var t=e;"object"===m(e)&&(t=e.transitionSupport);var n=a.forwardRef(function(e,n){var o=e.visible,i=void 0===o||o,c=e.removeOnLeave,l=void 0===c||c,s=e.forceRender,u=e.children,d=e.motionName,g=e.leavedClassName,m=e.eventProps,p=function(e,n){return!(!e.motionName||!t||!1===n)}(e,a.useContext($o).motion),h=r.useRef(),v=r.useRef();var b=we(ci(p,i,function(){try{return h.current instanceof HTMLElement?h.current:F(v.current)}catch(e){return null}},e),4),y=b[0],C=b[1],x=b[2],E=b[3],S=a.useRef(E);E&&(S.current=!0);var k,w=a.useCallback(function(e){h.current=e,Q(n,e)},[n]),$=j(j({},m),{},{visible:i});if(u)if(y===Fo)k=E?u(j({},$),w):!l&&S.current&&g?u(j(j({},$),{},{className:g}),w):s||!l&&!g?u(j(j({},$),{},{style:{display:"none"}}),w):null;else{var P;C===No?P="prepare":ii(C)?P="active":C===Ro&&(P="start");var T=ei(d,"".concat(y,"-").concat(P));k=u(j(j({},$),{},{className:f(ei(d,y),O(O({},T,T&&P),d,"string"==typeof d)),style:x}),w)}else k=null;a.isValidElement(k)&&te(k)&&(re(k)||(k=a.cloneElement(k,{ref:w})));return a.createElement(Po,{ref:v},k)});return n.displayName="CSSMotion",n}(Zo);var si="add",ui="keep",di="remove",fi="removed";function gi(e){var t;return j(j({},t=e&&"object"===m(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function mi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(gi)}var pi=["component","children","onVisibleChanged","onAllRemoved"],hi=["status"],vi=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:li,t=function(t){le(r,t);var n=fe(r);function r(){var e;oe(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return O(de(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),O(de(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:j(j({},e),{},{status:fi})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==fi}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return ae(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,c=r.onVisibleChanged;r.onAllRemoved;var l=Le(r,pi),s=o||a.Fragment,u={};return vi.forEach(function(e){u[e]=l[e],delete l[e]}),delete l.keys,a.createElement(s,l,n.map(function(n,r){var o=n.status,l=Le(n,hi),s=o===si||o===ui;return a.createElement(e,g({},u,{key:l.key,visible:s,eventProps:l,onVisibleChanged:function(e){null==c||c(e,{key:l.key}),e||t.removeKey(l.key)}}),function(e,t){return i(j(j({},e),{},{index:r}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=mi(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=mi(e),a=mi(t);i.forEach(function(e){for(var t=!1,i=r;i<o;i+=1){var c=a[i];if(c.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(function(e){return j(j({},e),{},{status:si})})),r=i),n.push(j(j({},c),{},{status:ui})),r+=1,t=!0;break}}t||n.push(j(j({},e),{},{status:di}))}),r<o&&(n=n.concat(a.slice(r).map(function(e){return j(j({},e),{},{status:si})})));var c={};return n.forEach(function(e){var t=e.key;c[t]=(c[t]||0)+1}),Object.keys(c).filter(function(e){return c[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==di})).forEach(function(t){t.key===e&&(t.status=ui)})}),n}(r,o);return{keyEntities:i.filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==fi||e.status!==di})}}}]),r}(a.Component);O(t,"defaultProps",{component:"div"})}(Zo);const bi=a.createContext(!0);function yi(e){const t=a.useContext(bi),{children:n}=e,[,r]=mo(),{motion:o}=r,i=a.useRef(!1);return i.current||(i.current=t!==o),i.current?a.createElement(bi.Provider,{value:o},a.createElement(jo,{motion:o},n)):n}const Ci=()=>null;var xi=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ei=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Si,ki,wi,Oi;function $i(){return Si||$r}function ji(){return ki||jr}const Pi=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:c,locale:l,componentSize:s,direction:u,space:d,splitter:f,virtual:g,dropdownMatchSelectWidth:m,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:C,componentDisabled:x,segmented:E,statistic:S,spin:k,calendar:w,carousel:O,cascader:$,collapse:j,typography:P,checkbox:F,descriptions:T,divider:M,drawer:A,skeleton:I,steps:N,image:R,layout:H,list:_,mentions:L,modal:B,progress:z,result:D,slider:V,breadcrumb:W,menu:q,pagination:U,input:G,textArea:X,empty:K,badge:Z,radio:Q,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:ce,timeline:le,timePicker:se,upload:ue,notification:de,tree:fe,colorPicker:ge,datePicker:me,rangePicker:pe,flex:he,wave:ve,dropdown:be,warning:ye,tour:Ce,tooltip:xe,popover:Ee,popconfirm:Se,floatButton:ke,floatButtonGroup:we,variant:Oe,inputNumber:$e,treeSelect:je}=e,Pe=a.useCallback((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||b.getPrefixCls("");return t?`${o}-${t}`:o},[b.getPrefixCls,e.prefixCls]),Fe=y||b.iconPrefixCls||jr,Te=n||b.csp;Eo(Fe,Te);const Me=function(e,t,n){var r;const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},wr),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:wr.hashed,cssVar:null==t?void 0:t.cssVar}),a=wo();return Y(()=>{var r,c;if(!e)return t;const l=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])});const s=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(c=o.cssVar)||void 0===c?void 0:c.key)||s});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:l,cssVar:u})},[o,i],(e,t)=>e.some((e,n)=>!Be(e,t[n],!0)))}(C,b.theme,{prefixCls:Pe("")}),Ae={csp:Te,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||v,direction:u,space:d,splitter:f,virtual:g,popupMatchSelectWidth:null!=p?p:m,popupOverflow:h,getPrefixCls:Pe,iconPrefixCls:Fe,theme:Me,segmented:E,statistic:S,spin:k,calendar:w,carousel:O,cascader:$,collapse:j,typography:P,checkbox:F,descriptions:T,divider:M,drawer:A,skeleton:I,steps:N,image:R,input:G,textArea:X,layout:H,list:_,mentions:L,modal:B,progress:z,result:D,slider:V,breadcrumb:W,menu:q,pagination:U,empty:K,badge:Z,radio:Q,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:ce,timeline:le,timePicker:se,upload:ue,notification:de,tree:fe,colorPicker:ge,datePicker:me,rangePicker:pe,flex:he,wave:ve,dropdown:be,warning:ye,tour:Ce,tooltip:xe,popover:Ee,popconfirm:Se,floatButton:ke,floatButtonGroup:we,variant:Oe,inputNumber:$e,treeSelect:je},Ie=Object.assign({},b);Object.keys(Ae).forEach(e=>{void 0!==Ae[e]&&(Ie[e]=Ae[e])}),Ei.forEach(t=>{const n=e[t];n&&(Ie[t]=n)}),void 0!==r&&(Ie.button=Object.assign({autoInsertSpace:r},Ie.button));const Ne=Y(()=>Ie,Ie,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:Re}=a.useContext(Ue),He=a.useMemo(()=>({prefixCls:Fe,csp:Te,layer:Re?"antd":void 0}),[Fe,Te,Re]);let _e=a.createElement(a.Fragment,null,a.createElement(Ci,{dropdownMatchSelectWidth:m}),t);const Le=a.useMemo(()=>{var e,t,n,r;return jn((null===(e=Nn.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ne.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ne.form)||void 0===r?void 0:r.validateMessages)||{},(null==c?void 0:c.validateMessages)||{})},[Ne,null==c?void 0:c.validateMessages]);Object.keys(Le).length>0&&(_e=a.createElement(Fn.Provider,{value:Le},_e)),l&&(_e=a.createElement(Dn,{locale:l,_ANT_MARK__:"internalMark"},_e)),(Fe||Te)&&(_e=a.createElement(En.Provider,{value:He},_e)),s&&(_e=a.createElement(Hr,{size:s},_e)),_e=a.createElement(yi,null,_e);const ze=a.useMemo(()=>{const e=Me||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=xi(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Ze(t):kr,c={};Object.entries(r||{}).forEach(([e,t])=>{const n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=Ze(n.algorithm)),delete n.algorithm),c[e]=n});const l=Object.assign(Object.assign({},Wn),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:c,override:Object.assign({override:l},c),cssVar:o})},[Me]);return C&&(_e=a.createElement(Or.Provider,{value:ze},_e)),Ne.warning&&(_e=a.createElement(Pn.Provider,{value:Ne.warning},_e)),void 0!==x&&(_e=a.createElement(Nr,{disabled:x},_e)),a.createElement(Pr.Provider,{value:Ne},_e)},Fi=e=>{const t=a.useContext(Pr),n=a.useContext(Bn);return a.createElement(Pi,Object.assign({parentContext:t,legacyLocale:n},e))};Fi.ConfigContext=Pr,Fi.SizeContext=_r,Fi.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Si=t),void 0!==n&&(ki=n),"holderRender"in e&&(Oi=o),r&&(!function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(r)?wi=r:Ar($i(),r))},Fi.useConfig=function(){return{componentDisabled:r.useContext(Ir),componentSize:r.useContext(_r)}},Object.defineProperty(Fi,"SizeContext",{get:()=>_r});const Ti={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Mi(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ai(e){return function(e){return Mi(e)instanceof ShadowRoot}(e)?Mi(e):null}function Ii(e){return"object"===m(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===m(e.icon)||"function"==typeof e.icon)}function Ni(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=o;return t},{})}function Ri(e,t,n){return n?r.createElement(e.tag,j(j({key:t},Ni(e.attrs)),n),(e.children||[]).map(function(n,r){return Ri(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):r.createElement(e.tag,j({key:t},Ni(e.attrs)),(e.children||[]).map(function(n,r){return Ri(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function Hi(e){return er(e)[0]}function _i(e){return e?Array.isArray(e)?e:[e]:[]}var Li=["icon","className","onClick","style","primaryColor","secondaryColor"],Bi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var zi=function(e){var t,n,o,i,c,l,s,u,d=e.icon,f=e.className,g=e.onClick,m=e.style,p=e.primaryColor,h=e.secondaryColor,v=Le(e,Li),b=a.useRef(),y=Bi;if(p&&(y={primaryColor:p,secondaryColor:h||Hi(p)}),t=b,n=r.useContext(En),o=n.csp,i=n.prefixCls,c=n.layer,l="\n.anticon {\n  display: inline-flex;\n  align-items: center;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n",i&&(l=l.replace(/anticon/g,i)),c&&(l="@layer ".concat(c," {\n").concat(l,"\n}")),r.useEffect(function(){var e=Ai(t.current);_e(l,"@ant-design-icons",{prepend:!c,csp:o,attachTo:e})},[]),s=Ii(d),u="icon should be icon definiton, but got ".concat(d),k(s,"[@ant-design/icons] ".concat(u)),!Ii(d))return null;var C=d;return C&&"function"==typeof C.icon&&(C=j(j({},C),{},{icon:C.icon(y.primaryColor,y.secondaryColor)})),Ri(C.icon,"svg-".concat(C.name),j(j({className:f,onClick:g,style:m,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v),{},{ref:b}))};zi.displayName="IconReact",zi.getTwoToneColors=function(){return j({},Bi)},zi.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Bi.primaryColor=t,Bi.secondaryColor=n||Hi(t),Bi.calculated=!!n};const Di=zi;function Vi(e){var t=we(_i(e),2),n=t[0],r=t[1];return Di.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Wi=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Vi(ur.primary);var qi=a.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,c=e.tabIndex,l=e.onClick,s=e.twoToneColor,u=Le(e,Wi),d=a.useContext(En),m=d.prefixCls,p=void 0===m?"anticon":m,h=d.rootClassName,v=f(h,p,O(O({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||"loading"===r.name),n),b=c;void 0===b&&l&&(b=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,C=we(_i(s),2),x=C[0],E=C[1];return a.createElement("span",g({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:v}),a.createElement(Di,{icon:r,primaryColor:x,secondaryColor:E,style:y}))});qi.displayName="AntdIcon",qi.getTwoToneColor=function(){var e=Di.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},qi.setTwoToneColor=Vi;const Ui=qi;var Gi=function(e,t){return a.createElement(Ui,g({},e,{ref:t,icon:Ti}))};const Xi=a.forwardRef(Gi);const Ki={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var Yi=function(e,t){return a.createElement(Ui,g({},e,{ref:t,icon:Ki}))};const Zi=a.forwardRef(Yi);const Qi={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var Ji=function(e,t){return a.createElement(Ui,g({},e,{ref:t,icon:Qi}))};const ea=a.forwardRef(Ji);const ta={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var na=function(e,t){return a.createElement(Ui,g({},e,{ref:t,icon:ta}))};const ra=a.forwardRef(na);const oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var ia=function(e,t){return a.createElement(Ui,g({},e,{ref:t,icon:oa}))};const aa=a.forwardRef(ia);var ca="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function la(e,t){return 0===e.indexOf(t)}function sa(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:j({},n);var r={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||la(n,"aria-"))||t.data&&la(n,"data-")||t.attr&&ca.includes(n))&&(r[n]=e[n])}),r}function ua(e,t){return((e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}const da=e=>{const[,,,,t]=mo();return t?`${e}-css-var`:""};var fa={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=fa.F1&&t<=fa.F12)return!1;switch(t){case fa.ALT:case fa.CAPS_LOCK:case fa.CONTEXT_MENU:case fa.CTRL:case fa.DOWN:case fa.END:case fa.ESC:case fa.HOME:case fa.INSERT:case fa.LEFT:case fa.MAC_FF_META:case fa.META:case fa.NUMLOCK:case fa.NUM_CENTER:case fa.PAGE_DOWN:case fa.PAGE_UP:case fa.PAUSE:case fa.PRINT_SCREEN:case fa.RIGHT:case fa.SHIFT:case fa.UP:case fa.WIN_KEY:case fa.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=fa.ZERO&&e<=fa.NINE)return!0;if(e>=fa.NUM_ZERO&&e<=fa.NUM_MULTIPLY)return!0;if(e>=fa.A&&e<=fa.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case fa.SPACE:case fa.QUESTION_MARK:case fa.NUM_PLUS:case fa.NUM_MINUS:case fa.NUM_PERIOD:case fa.NUM_DIVISION:case fa.SEMICOLON:case fa.DASH:case fa.EQUALS:case fa.COMMA:case fa.PERIOD:case fa.SLASH:case fa.APOSTROPHE:case fa.SINGLE_QUOTE:case fa.OPEN_SQUARE_BRACKET:case fa.BACKSLASH:case fa.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const ga={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var ma=function(e,t){return a.createElement(Ui,g({},e,{ref:t,icon:ga}))};const pa=a.forwardRef(ma);function ha(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t}function va(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function ba(e){const{closable:t,closeIcon:n}=e||{};return r.useMemo(()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,n])}const ya={},Ca=r.createContext(void 0),xa=100,Ea={Modal:xa,Drawer:xa,Popover:xa,Popconfirm:xa,Tooltip:xa,Tour:xa,FloatButton:xa},Sa={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const ka=(e,t)=>{const[,n]=mo(),o=r.useContext(Ca),i=e in Ea;let a;if(void 0!==t)a=[t,t];else{let r=null!=o?o:0;r+=i?(o?0:n.zIndexPopupBase)+Ea[e]:Sa[e],a=[void 0===o?t:r,r]}return a};function wa(e,t){this.v=e,this.k=t}function Oa(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(i){o=0}(Oa=function(e,t,n,r){function i(t,n){Oa(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}function $a(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof c?r:c,s=Object.create(l.prototype);return Oa(s,"_invoke",function(n,r,o){var i,c,l,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:g,f:g.bind(e,4),d:function(t,n){return i=t,c=0,l=e,f.n=n,a}};function g(n,r){for(c=n,l=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],g=f.p,m=i[2];n>3?(o=m===r)&&(l=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=g&&((o=n<2&&g<i[1])?(c=0,f.v=r,f.n=i[1]):g<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,f.n=m,c=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&g(u,m),c=u,l=m;(t=c<2?e:l)||!d;){i||(c?c<3?(c>1&&(f.n=-1),g(c,l)):f.n=l:f.v=l);try{if(s=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(p){i=e,c=1,l=p}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function c(){}function l(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Oa(t={},r,function(){return this}),t),d=s.prototype=c.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Oa(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=s,Oa(d,"constructor",s),Oa(s,"constructor",l),l.displayName="GeneratorFunction",Oa(s,o,"GeneratorFunction"),Oa(d),Oa(d,o,"Generator"),Oa(d,r,function(){return this}),Oa(d,"toString",function(){return"[object Generator]"}),($a=function(){return{w:i,m:f}})()}function ja(e,t){function n(r,o,i,a){try{var c=e[r](o),l=c.value;return l instanceof wa?t.resolve(l.v).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):t.resolve(l).then(function(e){c.value=e,i(c)},function(e){return n("throw",e,i,a)})}catch(s){a(s)}}var r;this.next||(Oa(ja.prototype),Oa(ja.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Oa(this,"_invoke",function(e,o,i){function a(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(a,a):a()},!0)}function Pa(e,t,n,r,o){return new ja($a().w(e,t,n,r),o||Promise)}function Fa(e,t,n,r,o){var i=Pa(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Ta(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function Ma(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(m(e)+" is not iterable")}function Aa(){var e=$a(),t=e.m(Aa),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,Ma(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(Aa=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new wa(e,t)},AsyncIterator:ja,async:function(e,t,n,o,a){return(r(t)?Pa:Fa)(i(e),t,n,o,a)},keys:Ta,values:Ma}})()}function Ia(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void n(s)}c.done?t(l):Promise.resolve(l).then(r,o)}function Na(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Ia(i,r,o,a,c,"next",e)}function c(e){Ia(i,r,o,a,c,"throw",e)}a(void 0)})}}var Ra,Ha=j({},c),_a=Ha.version,La=Ha.render,Ba=Ha.unmountComponentAtNode;try{Number((_a||"").split(".")[0])>=18&&(Ra=Ha.createRoot)}catch(Wd){}function za(e){var t=Ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===m(t)&&(t.usingClientEntryPoint=e)}var Da="__rc_react_root__";function Va(e,t){Ra?function(e,t){za(!0);var n=t[Da]||Ra(t);za(!1),n.render(e),t[Da]=n}(e,t):function(e,t){null==La||La(e,t)}(e,t)}function Wa(e){return qa.apply(this,arguments)}function qa(){return(qa=Na(Aa().mark(function e(t){return Aa().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[Da])||void 0===e||e.unmount(),delete t[Da]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ua(e){Ba(e)}function Ga(){return(Ga=Na(Aa().mark(function e(t){return Aa().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Ra){e.next=2;break}return e.abrupt("return",Wa(t));case 2:Ua(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let Xa=(e,t)=>(Va(e,t),()=>function(e){return Ga.apply(this,arguments)}(t));function Ka(e){return e&&(Xa=e),Xa}const Ya=(e,t,n)=>void 0!==n?n:`${e}-${t}`;function Za(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}const Qa=Co("Wave",e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),Ja=`${$r}-wave-target`;function ec(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function tc(e){return Number.isNaN(e)?0:e}const nc=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=a.useRef(null),c=a.useRef(null);a.useEffect(()=>{c.current=o()},[]);const[l,s]=a.useState(null),[u,d]=a.useState([]),[g,m]=a.useState(0),[p,h]=a.useState(0),[v,b]=a.useState(0),[y,C]=a.useState(0),[x,E]=a.useState(!1),S={left:g,top:p,width:v,height:y,borderRadius:u.map(e=>`${e}px`).join(" ")};function k(){const e=getComputedStyle(n);s(function(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return null!==(t=[n,r,o].find(ec))&&void 0!==t?t:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;m(t?n.offsetLeft:tc(-Number.parseFloat(r))),h(t?n.offsetTop:tc(-Number.parseFloat(o))),b(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:l}=e;d([i,a,l,c].map(e=>tc(Number.parseFloat(e))))}if(l&&(S["--wave-color"]=l),a.useEffect(()=>{if(n){const e=Ee(()=>{k(),E(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(k),t.observe(n)),()=>{Ee.cancel(e),null==t||t.disconnect()}}},[n]),!x)return null;const w=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(Ja));return a.createElement(li,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;null===(r=c.current)||void 0===r||r.call(c).then(()=>{null==e||e.remove()})}return!1}},({className:e},n)=>a.createElement("div",{ref:J(i,n),className:f(t,e,{"wave-quick":w}),style:S}))},rc=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);const i=Ka();let c=null;c=i(a.createElement(nc,Object.assign({},t,{target:e,registerUnmount:function(){return c}})),o)},oc=(e,t,n)=>{const{wave:r}=a.useContext(Pr),[,o,i]=mo(),c=Ur(a=>{const c=e.current;if((null==r?void 0:r.disabled)||!c)return;const l=c.querySelector(`.${Ja}`)||c,{showEffect:s}=r||{};(s||rc)(l,{className:t,token:o,component:n,event:a,hashId:i})}),l=a.useRef(null);return e=>{Ee.cancel(l.current),l.current=Ee(()=>{c(e)})}},ic=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:i}=r.useContext(Pr),a=r.useRef(null),c=i("wave"),[,l]=Qa(c),s=oc(a,f(c,l),o);if(r.useEffect(()=>{const e=a.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;const t=t=>{!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return null!=t?t:null;return ua(t,{ref:te(t)?J(re(t),a):a})},ac=e=>{const t=r.useContext(_r);return r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t,[e,t])};globalThis&&globalThis.__rest;const cc=a.createContext(null),lc=e=>{const{children:t}=e;return a.createElement(cc.Provider,{value:null},t)};var sc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const uc=a.createContext(void 0),dc=e=>{const{getPrefixCls:t,direction:n}=a.useContext(Pr),{prefixCls:r,size:o,className:i}=e,c=sc(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=mo(),u=a.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=f(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},i,s);return a.createElement(uc.Provider,{value:o},a.createElement("div",Object.assign({},c,{className:d})))},fc=/^[\u4E00-\u9FA5]{2}$/,gc=fc.test.bind(fc);function mc(e){return"danger"===e?{danger:!0}:{type:e}}function pc(e){return"string"==typeof e}function hc(e){return"text"===e||"link"===e}function vc(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&pc(e.type)&&gc(e.props.children)?ua(e,{children:e.props.children.split("").join(n)}):pc(e)?gc(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):function(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}(e)?r.createElement("span",null,e):e}["default","primary","danger"].concat(he(ro));const bc=r.forwardRef((e,t)=>{const{className:n,style:o,children:i,prefixCls:a}=e,c=f(`${a}-icon`,n);return r.createElement("span",{ref:t,className:c,style:o},i)}),yc=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:i,iconClassName:a}=e,c=f(`${n}-loading-icon`,o);return r.createElement(bc,{prefixCls:n,className:c,style:i,ref:t},r.createElement(pa,{className:a}))}),Cc=()=>({width:0,opacity:0,transform:"scale(0)"}),xc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ec=e=>{const{prefixCls:t,loading:n,existIcon:o,className:i,style:a,mount:c}=e,l=!!n;return o?r.createElement(yc,{prefixCls:t,className:i,style:a}):r.createElement(li,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:Cc,onAppearActive:xc,onEnterStart:Cc,onEnterActive:xc,onLeaveStart:xc,onLeaveActive:Cc},({className:e,style:n},o)=>{const c=Object.assign(Object.assign({},a),n);return r.createElement(yc,{prefixCls:t,className:f(i,e),style:c,ref:o})})},Sc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),kc=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Sc(`${t}-primary`,o),Sc(`${t}-danger`,i)]}};var wc,Oc=["b"],$c=["v"],jc=function(e){return Math.round(Number(e||0))},Pc=function(e){le(n,e);var t=fe(n);function n(e){return oe(this,n),t.call(this,function(e){if(e instanceof Kn)return e;if(e&&"object"===m(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return j(j({},Le(t,Oc)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return ae(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=jc(100*e.s),n=jc(100*e.b),r=jc(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return j(j({},Le(e,$c)),{},{b:t,a:this.a})}}]),n}(Kn);(wc="#1677ff")instanceof Pc||new Pc(wc);let Fc=function(){return ae(function e(t){var n;if(oe(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Pc(this.colors[0].color.metaColor)):this.metaColor=new Pc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])}();const Tc=e=>({animationDuration:e,animationFillMode:"both"}),Mc=e=>({animationDuration:e,animationFillMode:"both"}),Ac=(e,t,n,r,o=!1)=>{const i=o?"&":"";return{[`\n      ${i}${e}-enter,\n      ${i}${e}-appear\n    `]:Object.assign(Object.assign({},Tc(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Mc(r)),{animationPlayState:"paused"}),[`\n      ${i}${e}-enter${e}-enter-active,\n      ${i}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Ic=new Cn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Nc=new Cn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Rc=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Ac(r,Ic,Nc,e.motionDurationMid,t),{[`\n        ${o}${r}-enter,\n        ${o}${r}-appear\n      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Hc=new Cn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_c=new Cn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Lc=new Cn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Bc=new Cn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),zc=new Cn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Dc=new Cn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Vc={zoom:{inKeyframes:Hc,outKeyframes:_c},"zoom-big":{inKeyframes:Lc,outKeyframes:Bc},"zoom-big-fast":{inKeyframes:Lc,outKeyframes:Bc},"zoom-left":{inKeyframes:new Cn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Cn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Cn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Cn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:zc,outKeyframes:Dc},"zoom-down":{inKeyframes:new Cn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Cn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Wc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Vc[t];return[Ac(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},qc=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Zr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Uc=e=>{var t,n,r,o,i,a;const c=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:br(c),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:br(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:br(s),g=((e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Pc(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new Fc(e.colorBgSolid),"#fff")?"#000":"#fff",m=ro.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${ot(e.controlOutlineWidth)} 0 ${io(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},m),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:c,contentFontSizeSM:l,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-c*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)})},Gc=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:c,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:c,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ot(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":vo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(c).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(c).mul(-1).equal()}}}}}},Xc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Kc=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Yc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Zc=(e,t,n,r,o,i,a,c)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Xc(e,Object.assign({background:t},a),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Qc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Yc(e))}),Jc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),el=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?Jc:Qc;return Object.assign(Object.assign({},o(e)),Xc(e.componentCls,t,n))},tl=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},el(e,r,o))}),nl=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},el(e,r,o))}),rl=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ol=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},el(e,n,r))}),il=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},el(e,r,o,n))}),al=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},tl(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),rl(e)),ol(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Zc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),il(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),cl=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},nl(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),rl(e)),ol(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),il(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),il(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Zc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ll=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},tl(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),nl(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),rl(e)),ol(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),il(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),il(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Zc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sl=e=>Object.assign(Object.assign({},il(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Zc(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),ul=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:al(e),[`${t}-color-primary`]:cl(e),[`${t}-color-dangerous`]:ll(e),[`${t}-color-link`]:sl(e)},(e=>{const{componentCls:t}=e;return ro.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],c=e[`${r}2`],l=e[`${r}3`],s=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},tl(e,e.colorTextLightSolid,o,{background:a},{background:s})),nl(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:s,borderColor:s,background:e.colorBgContainer})),rl(e)),ol(e,i,{color:o,background:c},{color:o,background:l})),il(e,o,"link",{color:a},{color:s})),il(e,o,"text",{color:a,background:i},{color:s,background:l}))})},{})})(e))},dl=e=>Object.assign(Object.assign(Object.assign(Object.assign({},nl(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),il(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),tl(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),il(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),fl=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:c,buttonPaddingVertical:l,buttonIconOnlyFontSize:s}=e;return[{[t]:{fontSize:o,height:r,padding:`${ot(l)} ${ot(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[c]:{fontSize:s}}}},{[`${n}${n}-circle${t}`]:Kc(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},gl=e=>{const t=Zr(e,{fontSize:e.contentFontSize});return fl(t,e.componentCls)},ml=e=>{const t=Zr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return fl(t,`${e.componentCls}-sm`)},pl=e=>{const t=Zr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return fl(t,`${e.componentCls}-lg`)},hl=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},vl=yo("Button",e=>{const t=qc(e);return[Gc(t),gl(t),ml(t),pl(t),hl(t),ul(t),dl(t),kc(t)]},Uc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function bl(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:a}=n,c=a?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${c}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${c}`]:{zIndex:0}})}}function yl(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Cl(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return{[i]:Object.assign(Object.assign({},bl(e,i,t,o)),yl(o,i,t))}}function xl(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function El(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},xl(e,t,e.componentCls)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Sl=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},kl=xo(["Button","compact"],e=>{const t=qc(e);return[Cl(t),El(t),Sl(t)]},Uc);var wl=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ol={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},$l=r.forwardRef((e,t)=>{var n,o;const{loading:i=!1,prefixCls:c,color:l,variant:s,type:u,danger:d=!1,shape:g,size:m,styles:p,disabled:h,className:v,rootClassName:b,children:y,icon:C,iconPosition:x="start",ghost:E=!1,block:S=!1,htmlType:k="button",classNames:w,style:O={},autoInsertSpace:$,autoFocus:j}=e,P=wl(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),F=u||"default",{button:T}=r.useContext(Pr),M=g||(null==T?void 0:T.shape)||"default",[A,I]=r.useMemo(()=>{if(l&&s)return[l,s];if(u||d){const e=Ol[F]||[];return d?["danger",e[1]]:e}return(null==T?void 0:T.color)&&(null==T?void 0:T.variant)?[T.color,T.variant]:["default","outlined"]},[l,s,u,d,null==T?void 0:T.color,null==T?void 0:T.variant,F]),N="danger"===A?"dangerous":A,{getPrefixCls:R,direction:H,autoInsertSpace:_,className:L,style:B,classNames:z,styles:D}=Tr("button"),V=null===(n=null!=$?$:_)||void 0===n||n,W=R("btn",c),[q,U,G]=vl(W),X=r.useContext(Ir),K=null!=h?h:X,Y=r.useContext(uc),Z=r.useMemo(()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(i),[i]),[Q,J]=r.useState(Z.loading),[te,ne]=r.useState(!1),re=r.useRef(null),oe=ee(t,re),ie=1===r.Children.count(y)&&!C&&!hc(I),ae=r.useRef(!0);r.useEffect(()=>(ae.current=!1,()=>{ae.current=!0}),[]),ut(()=>{let e=null;return Z.delay>0?e=setTimeout(()=>{e=null,J(!0)},Z.delay):J(Z.loading),function(){e&&(clearTimeout(e),e=null)}},[Z.delay,Z.loading]),r.useEffect(()=>{if(!re.current||!V)return;const e=re.current.textContent||"";ie&&gc(e)?te||ne(!0):te&&ne(!1)}),r.useEffect(()=>{j&&re.current&&re.current.focus()},[]);const ce=r.useCallback(t=>{var n;Q||K?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)},[e.onClick,Q,K]),{compactSize:le,compactItemClassnames:se}=((e,t)=>{const n=a.useContext(cc),r=a.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return f(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}})(W,H),ue=ac(e=>{var t,n;return null!==(n=null!==(t=null!=m?m:le)&&void 0!==t?t:Y)&&void 0!==n?n:e}),de=ue&&null!==(o={large:"lg",small:"sm",middle:void 0}[ue])&&void 0!==o?o:"",fe=Q?"loading":C,ge=Za(P,["navigate"]),me=f(W,U,G,{[`${W}-${M}`]:"default"!==M&&M,[`${W}-${F}`]:F,[`${W}-dangerous`]:d,[`${W}-color-${N}`]:N,[`${W}-variant-${I}`]:I,[`${W}-${de}`]:de,[`${W}-icon-only`]:!y&&0!==y&&!!fe,[`${W}-background-ghost`]:E&&!hc(I),[`${W}-loading`]:Q,[`${W}-two-chinese-chars`]:te&&V&&!Q,[`${W}-block`]:S,[`${W}-rtl`]:"rtl"===H,[`${W}-icon-end`]:"end"===x},se,v,b,L),pe=Object.assign(Object.assign({},B),O),he=f(null==w?void 0:w.icon,z.icon),ve=Object.assign(Object.assign({},(null==p?void 0:p.icon)||{}),D.icon||{}),be=e=>r.createElement(bc,{prefixCls:W,className:he,style:ve},e);let ye;ye=C&&!Q?be(C):i&&"object"==typeof i&&i.icon?be(i.icon):r.createElement(Ec,{existIcon:!!C,prefixCls:W,loading:Q,mount:ae.current});const Ce=y||0===y?function(e,t){let n=!1;const o=[];return r.Children.forEach(e,e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r}),r.Children.map(o,e=>vc(e,t))}(y,ie&&V):null;if(void 0!==ge.href)return q(r.createElement("a",Object.assign({},ge,{className:f(me,{[`${W}-disabled`]:K}),href:K?void 0:ge.href,style:pe,onClick:ce,ref:oe,tabIndex:K?-1:0,"aria-disabled":K}),ye,Ce));let xe=r.createElement("button",Object.assign({},P,{type:k,className:me,style:pe,onClick:ce,disabled:K,ref:oe}),ye,Ce,se&&r.createElement(kl,{prefixCls:W}));return hc(I)||(xe=r.createElement(ic,{component:"Button",disabled:Q},xe)),q(xe)}),jl=$l;jl.Group=dc,jl.__ANT_BUTTON=!0;const Pl=jl,Fl=e=>"function"==typeof(null==e?void 0:e.then),Tl=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:c,emitEvent:l,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=a.useRef(!1),g=a.useRef(null),[m,p]=Gr(!1),h=(...e)=>{null==i||i.apply(void 0,e)};a.useEffect(()=>{let e=null;return c&&(e=setTimeout(()=>{var e;null===(e=g.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[c]);return a.createElement(Pl,Object.assign({},mc(t),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void h();let t;if(l){if(t=d(e),u&&!Fl(t))return f.current=!1,void h(e)}else if(d.length)t=d(i),f.current=!1;else if(t=d(),!Fl(t))return void h();(e=>{Fl(e)&&(p(!0),e.then((...e)=>{p(!1,!0),h.apply(void 0,e),f.current=!1},e=>{if(p(!1,!0),f.current=!1,!(null==s?void 0:s()))return Promise.reject(e)}))})(t)},loading:m,prefixCls:r},o,{ref:g}),n)},Ml=r.createContext({}),{Provider:Al}=Ml,Il=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:c,onCancel:l,onConfirm:s}=r.useContext(Ml);return i?r.createElement(Tl,{isSilent:o,actionFn:l,close:(...e)=>{null==c||c.apply(void 0,e),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},Nl=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:c,onConfirm:l,onOk:s}=r.useContext(Ml);return r.createElement(Tl,{isSilent:n,type:c||"primary",actionFn:s,close:(...e)=>{null==t||t.apply(void 0,e),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${i}-btn`},a)};var Rl=a.createContext(null),Hl=[];function _l(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(c.width,10),s=parseInt(c.height,10);try{var u=l?"width: ".concat(c.width,";"):"",d=s?"height: ".concat(c.height,";"):"";_e("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(Wd){r=l,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),He(t),{width:f,height:g}}(e):{width:0,height:0}}var Ll="rc-util-locker-".concat(Date.now()),Bl=0;function zl(e){var t=!!e,n=we(a.useState(function(){return Bl+=1,"".concat(Ll,"_").concat(Bl)}),1)[0];ut(function(){if(t){var e=_l(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;_e("\nhtml body {\n  overflow-y: hidden;\n  ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else He(n);return function(){He(n)}},[t,n])}var Dl=!1;var Vl=function(e){return!1!==e&&($e()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Wl=a.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var c=e.autoDestroy,l=void 0===c||c,s=e.children,u=we(a.useState(n),2),d=u[0],f=u[1],g=d||n;a.useEffect(function(){(l||n)&&f(n)},[n,l]);var m=we(a.useState(function(){return Vl(i)}),2),p=m[0],h=m[1];a.useEffect(function(){var e=Vl(i);h(null!=e?e:null)});var v=function(e){var t=we(a.useState(function(){return $e()?document.createElement("div"):null}),1)[0],n=a.useRef(!1),r=a.useContext(Rl),o=we(a.useState(Hl),2),i=o[0],c=o[1],l=r||(n.current?void 0:function(e){c(function(t){return[e].concat(he(t))})});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function u(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return ut(function(){return e?r?r(s):s():u(),u},[e]),ut(function(){i.length&&(i.forEach(function(e){return e()}),c(Hl))},[i]),[t,l]}(g&&!p),b=we(v,2),y=b[0],C=b[1],x=null!=p?p:y;zl(r&&n&&$e()&&(x===y||x===document.body));var E=null;s&&te(s)&&t&&(E=s.ref);var S=ee(E,t);if(!g||!$e()||void 0===p)return null;var k,w=!1===x||("boolean"==typeof k&&(Dl=k),Dl),O=s;return t&&(O=a.cloneElement(s,{ref:S})),a.createElement(Rl.Provider,{value:C},w?O:o.createPortal(O,x))}),ql=a.createContext({});var Ul=0,Gl=j({},a).useId;const Xl=Gl?function(e){var t=Gl();return e||t}:function(e){var t=we(a.useState("ssr-id"),2),n=t[0],r=t[1];return a.useEffect(function(){var e=Ul;Ul+=1,r("rc_unique_".concat(e))},[]),e||n};function Kl(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Yl(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const Zl=a.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var Ql={width:0,height:0,overflow:"hidden",outline:"none"},Jl={outline:"none"},es=r.forwardRef(function(e,t){var n=e.prefixCls,o=e.className,i=e.style,a=e.title,c=e.ariaId,l=e.footer,s=e.closable,u=e.closeIcon,d=e.onClose,p=e.children,h=e.bodyStyle,v=e.bodyProps,b=e.modalRender,y=e.onMouseDown,C=e.onMouseUp,x=e.holderRef,E=e.visible,S=e.forceRender,k=e.width,w=e.height,O=e.classNames,$=e.styles,P=r.useContext(ql).panel,F=ee(x,P),T=r.useRef(),M=r.useRef();r.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=T.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===M.current?T.current.focus({preventScroll:!0}):e||t!==T.current||M.current.focus({preventScroll:!0})}}});var A={};void 0!==k&&(A.width=k),void 0!==w&&(A.height=w);var I=l?r.createElement("div",{className:f("".concat(n,"-footer"),null==O?void 0:O.footer),style:j({},null==$?void 0:$.footer)},l):null,N=a?r.createElement("div",{className:f("".concat(n,"-header"),null==O?void 0:O.header),style:j({},null==$?void 0:$.header)},r.createElement("div",{className:"".concat(n,"-title"),id:c},a)):null,R=r.useMemo(function(){return"object"===m(s)&&null!==s?s:s?{closeIcon:null!=u?u:r.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,u,n]),H=sa(R,!0),_="object"===m(s)&&s.disabled,L=s?r.createElement("button",g({type:"button",onClick:d,"aria-label":"Close"},H,{className:"".concat(n,"-close"),disabled:_}),R.closeIcon):null,B=r.createElement("div",{className:f("".concat(n,"-content"),null==O?void 0:O.content),style:null==$?void 0:$.content},L,N,r.createElement("div",g({className:f("".concat(n,"-body"),null==O?void 0:O.body),style:j(j({},h),null==$?void 0:$.body)},v),p),I);return r.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?c:null,"aria-modal":"true",ref:F,style:j(j({},i),A),className:f(n,o),onMouseDown:y,onMouseUp:C},r.createElement("div",{ref:T,tabIndex:0,style:Jl},r.createElement(Zl,{shouldUpdate:E||S},b?b(B):B)),r.createElement("div",{tabIndex:0,ref:M,style:Ql}))}),ts=a.forwardRef(function(e,t){var n=e.prefixCls,o=e.title,i=e.style,c=e.className,l=e.visible,s=e.forceRender,u=e.destroyOnClose,d=e.motionName,m=e.ariaId,p=e.onVisibleChanged,h=e.mousePosition,v=r.useRef(),b=we(a.useState(),2),y=b[0],C=b[1],x={};function E(){var e,t,n,r,o,i=(e=v.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=Yl(o),n.top+=Yl(o,!0),n);C(h&&(h.x||h.y)?"".concat(h.x-i.left,"px ").concat(h.y-i.top,"px"):"")}return y&&(x.transformOrigin=y),a.createElement(li,{visible:l,onVisibleChanged:p,onAppearPrepare:E,onEnterPrepare:E,forceRender:s,motionName:d,removeOnLeave:u,ref:v},function(r,l){var s=r.className,u=r.style;return a.createElement(es,g({},e,{ref:t,title:o,ariaId:m,prefixCls:n,holderRef:l,style:j(j(j({},u),i),x),className:f(c,s)}))})});ts.displayName="Content";var ns=function(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,c=e.className;return a.createElement(li,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var i=e.className,l=e.style;return a.createElement("div",g({ref:r,style:j(j({},l),n),className:f("".concat(t,"-mask"),i,c)},o))})},rs=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,o=e.zIndex,i=e.visible,c=void 0!==i&&i,l=e.keyboard,s=void 0===l||l,u=e.focusTriggerAfterClose,d=void 0===u||u,m=e.wrapStyle,p=e.wrapClassName,h=e.wrapProps,v=e.onClose,b=e.afterOpenChange,y=e.afterClose,C=e.transitionName,x=e.animation,E=e.closable,S=void 0===E||E,k=e.mask,w=void 0===k||k,O=e.maskTransitionName,$=e.maskAnimation,P=e.maskClosable,F=void 0===P||P,T=e.maskStyle,M=e.maskProps,A=e.rootClassName,I=e.classNames,N=e.styles,R=r.useRef(),H=r.useRef(),_=r.useRef(),L=we(a.useState(c),2),B=L[0],z=L[1],D=Xl();function V(e){null==v||v(e)}var W=r.useRef(!1),q=r.useRef(),U=null;F&&(U=function(e){W.current?W.current=!1:H.current===e.target&&V(e)}),r.useEffect(function(){c&&(z(!0),je(H.current,document.activeElement)||(R.current=document.activeElement))},[c]),r.useEffect(function(){return function(){clearTimeout(q.current)}},[]);var G=j(j(j({zIndex:o},m),null==N?void 0:N.wrapper),{},{display:B?null:"none"});return a.createElement("div",g({className:f("".concat(n,"-root"),A)},sa(e,{data:!0})),a.createElement(ns,{prefixCls:n,visible:w&&c,motionName:Kl(n,O,$),style:j(j({zIndex:o},T),null==N?void 0:N.mask),maskProps:M,className:null==I?void 0:I.mask}),a.createElement("div",g({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===fa.ESC)return e.stopPropagation(),void V(e);c&&e.keyCode===fa.TAB&&_.current.changeActive(!e.shiftKey)},className:f("".concat(n,"-wrap"),p,null==I?void 0:I.wrapper),ref:H,onClick:U,style:G},h),a.createElement(ts,g({},e,{onMouseDown:function(){clearTimeout(q.current),W.current=!0},onMouseUp:function(){q.current=setTimeout(function(){W.current=!1})},ref:_,closable:S,ariaId:D,prefixCls:n,visible:c&&B,onClose:V,onVisibleChanged:function(e){if(e)je(H.current,document.activeElement)||null===(t=_.current)||void 0===t||t.focus();else{if(z(!1),w&&R.current&&d){try{R.current.focus({preventScroll:!0})}catch(Wd){}R.current=null}B&&(null==y||y())}var t;null==b||b(e)},motionName:Kl(n,C,x)}))))},os=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,c=e.afterClose,l=e.panelRef,s=we(a.useState(t),2),u=s[0],d=s[1],f=a.useMemo(function(){return{panel:l}},[l]);return a.useEffect(function(){t&&d(!0)},[t]),r||!i||u?a.createElement(ql.Provider,{value:f},a.createElement(Wl,{open:t||r||u,autoDestroy:!1,getContainer:n,autoLock:t||u},a.createElement(rs,g({},e,{destroyOnClose:i,afterClose:function(){null==c||c(),d(!1)}})))):null};os.displayName="Dialog";var is="RC_FORM_INTERNAL_HOOKS",as=function(){k(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},cs=a.createContext({getFieldValue:as,getFieldsValue:as,getFieldError:as,getFieldWarning:as,getFieldsError:as,isFieldsTouched:as,isFieldTouched:as,isFieldValidating:as,isFieldsValidating:as,resetFields:as,setFields:as,setFieldValue:as,setFieldsValue:as,validateFields:as,submit:as,getInternalHooks:function(){return as(),{dispatch:as,initEntityValue:as,registerField:as,useSubscribe:as,setInitialValues:as,destroyForm:as,setCallbacks:as,registerWatch:as,getFields:as,setValidateMessages:as,setPreserve:as,getInitialValue:as}}}),ls=a.createContext(null);function ss(e){return null==e?[]:Array.isArray(e)?e:[e]}function us(){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",tel:"%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 ds=us();function fs(e){var t="function"==typeof Map?new Map:void 0;return fs=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ue())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ce(o,n.prototype),o}(e,arguments,se(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ce(n,e)},fs(e)}var gs=/%[sdj%]/g,ms=function(){};function ps(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function hs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(gs,function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}}):e}function vs(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}(t)||"string"!=typeof e||e))}function bs(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var c=r;r+=1,c<o?t(e[c],i):n([])}}([])}"undefined"!=typeof process&&process.env;var ys=function(e){le(n,e);var t=fe(n);function n(e,r){var o;return oe(this,n),O(de(o=t.call(this,"Async Validation Error")),"errors",void 0),O(de(o),"fields",void 0),o.errors=e,o.fields=r,o}return ae(n)}(fs(Error));function Cs(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,he(e[n]||[]))}),t}(e);bs(a,n,function(e){return r(e),e.length?i(new ys(e,ps(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],c=Object.keys(e),l=c.length,s=0,u=[],d=new Promise(function(t,i){var d=function(e){if(u.push.apply(u,e),++s===l)return r(u),u.length?i(new ys(u,ps(u))):t(o)};c.length||(r(u),t(o)),c.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?bs(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,he(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}function xs(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function Es(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===m(r)&&"object"===m(e[n])?e[n]=j(j({},e[n]),r):e[n]=r}return e}var Ss,ks="enum",ws=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!vs(t,i||e.type)||r.push(hs(o.messages.required,e.fullField))};var Os=/^(([^<>()\[\]\\.,;:\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,}))$/,$s=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,js=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Ps={integer:function(e){return Ps.number(e)&&parseInt(e,10)===e},float:function(e){return Ps.number(e)&&!Ps.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Wd){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===m(e)&&!Ps.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Os)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match($s)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Ss)return Ss;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\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}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Ss=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(js)}};const Fs={required:ws,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(hs(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)ws(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(i)>-1?Ps[i](t)||r.push(hs(o.messages.types[i],e.fullField,e.type)):i&&m(t)!==e.type&&r.push(hs(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,c="number"==typeof e.max,l=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(hs(o.messages[s].len,e.fullField,e.len)):a&&!c&&l<e.min?r.push(hs(o.messages[s].min,e.fullField,e.min)):c&&!a&&l>e.max?r.push(hs(o.messages[s].max,e.fullField,e.max)):a&&c&&(l<e.min||l>e.max)&&r.push(hs(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[ks]=Array.isArray(e[ks])?e[ks]:[],-1===e[ks].indexOf(t)&&r.push(hs(o.messages[ks],e.fullField,e[ks].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(hs(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(hs(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};var Ts=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t,i)&&!e.required)return n();Fs.required(e,t,r,a,o,i),vs(t,i)||Fs.type(e,t,r,a,o)}n(a)};const Ms={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t,"string")&&!e.required)return n();Fs.required(e,t,r,i,o,"string"),vs(t,"string")||(Fs.type(e,t,r,i,o),Fs.range(e,t,r,i,o),Fs.pattern(e,t,r,i,o),!0===e.whitespace&&Fs.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t)&&!e.required)return n();Fs.required(e,t,r,i,o),void 0!==t&&Fs.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),vs(t)&&!e.required)return n();Fs.required(e,t,r,i,o),void 0!==t&&(Fs.type(e,t,r,i,o),Fs.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t)&&!e.required)return n();Fs.required(e,t,r,i,o),void 0!==t&&Fs.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t)&&!e.required)return n();Fs.required(e,t,r,i,o),vs(t)||Fs.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t)&&!e.required)return n();Fs.required(e,t,r,i,o),void 0!==t&&(Fs.type(e,t,r,i,o),Fs.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t)&&!e.required)return n();Fs.required(e,t,r,i,o),void 0!==t&&(Fs.type(e,t,r,i,o),Fs.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Fs.required(e,t,r,i,o,"array"),null!=t&&(Fs.type(e,t,r,i,o),Fs.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t)&&!e.required)return n();Fs.required(e,t,r,i,o),void 0!==t&&Fs.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t)&&!e.required)return n();Fs.required(e,t,r,i,o),void 0!==t&&Fs.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t,"string")&&!e.required)return n();Fs.required(e,t,r,i,o),vs(t,"string")||Fs.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t,"date")&&!e.required)return n();var a;if(Fs.required(e,t,r,i,o),!vs(t,"date"))a=t instanceof Date?t:new Date(t),Fs.type(e,a,r,i,o),a&&Fs.range(e,a.getTime(),r,i,o)}n(i)},url:Ts,hex:Ts,email:Ts,tel:Ts,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":m(t);Fs.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vs(t)&&!e.required)return n();Fs.required(e,t,r,i,o)}n(i)}};var As=function(){function e(t){oe(this,e),O(this,"rules",null),O(this,"_messages",ds),this.define(t)}return ae(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==m(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=Es(us(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===ds&&(a=us()),Es(a,o.messages),o.messages=a}else o.messages=this.messages();var c={};(o.keys||Object.keys(this.rules)).forEach(function(e){var o=n.rules[e],i=r[e];o.forEach(function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=j({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":m(i)))),(a="function"==typeof a?{validator:a}:j({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:i,source:r,field:e}))})});var l={};return Cs(c,o,function(t,n){var i,a=t.rule,c=!("object"!==a.type&&"array"!==a.type||"object"!==m(a.fields)&&"object"!==m(a.defaultField));function s(e,t){return j(j({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(he(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&null!==a.message&&(u=[].concat(a.message));var d=u.map(xs(a,r));if(o.first&&d.length)return l[a.field]=1,n(d);if(c){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(xs(a,r)):o.error&&(d=[o.error(a,hs(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map(function(e){f[e]=a.defaultField}),f=j(j({},f),t.rule.fields);var g={};Object.keys(f).forEach(function(e){var t=f[e],n=Array.isArray(t)?t:[t];g[e]=n.map(s.bind(null,e))});var m=new e(g);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];d&&d.length&&t.push.apply(t,he(d)),e&&e.length&&t.push.apply(t,he(e)),n(t.length?t:null)})}else n(d)}if(c=c&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(g){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,g),o.suppressValidatorError||setTimeout(function(){throw g},0),u(g.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,he(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=ps(t),i(t,n)):i(null,r)}(e)},r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Ms.hasOwnProperty(e.type))throw new Error(hs("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Ms.required:Ms[this.getType(e)]||void 0}}]),e}();O(As,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ms[e]=t}),O(As,"warning",ms),O(As,"messages",ds),O(As,"validators",Ms);var Is="'${name}' is not a valid ${type}",Ns={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Is,method:Is,array:Is,object:Is,number:Is,date:Is,boolean:Is,integer:Is,float:Is,regexp:Is,email:Is,url:Is,hex:Is},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Rs=As;function Hs(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var _s="CODE_LOGIC_ERROR";function Ls(e,t,n,r,o){return Bs.apply(this,arguments)}function Bs(){return Bs=Na(Aa().mark(function e(t,n,r,o,i){var c,l,s,u,d,f,g,m,p;return Aa().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(c=j({},r)).ruleIndex,Rs.warning=function(){},c.validator&&(l=c.validator,c.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return Promise.reject(_s)}}),s=null,c&&"array"===c.type&&c.defaultField&&(s=c.defaultField,delete c.defaultField),u=new Rs(O({},t,[c])),d=jn(Ns,o.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(O({},t,n),j({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map(function(e,t){var n=e.message,r=n===_s?d.default:n;return a.isValidElement(r)?a.cloneElement(r,{key:"error_".concat(t)}):r}));case 18:if(!(!f.length&&s&&Array.isArray(n)&&n.length>0)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return Ls("".concat(t,".").concat(n),e,s,o,i)}));case 21:return g=e.sent,e.abrupt("return",g.reduce(function(e,t){return[].concat(he(e),he(t))},[]));case 23:return m=j(j({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),p=f.map(function(e){return"string"==typeof e?Hs(e,m):e}),e.abrupt("return",p);case 26:case"end":return e.stop()}},e,null,[[10,15]])})),Bs.apply(this,arguments)}function zs(e,t,n,r,o,i){var a,c=e.join("."),l=n.map(function(e,t){var n=e.validator,r=j(j({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){k(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});k(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1});if(!0===o)a=new Promise(function(){var e=Na(Aa().mark(function e(n,o){var a,s,u;return Aa().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return s=l[a],e.next=5,Ls(c,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var s=l.map(function(e){return Ls(c,t,e,r,i).then(function(t){return{errors:t,rule:e}})});a=(o?function(e){return Vs.apply(this,arguments)}(s):function(e){return Ds.apply(this,arguments)}(s)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function Ds(){return(Ds=Na(Aa().mark(function e(t){return Aa().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,he(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Vs(){return(Vs=Na(Aa().mark(function e(t){var n;return Aa().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ws(e){return ss(e)}function qs(e,t){var n={};return t.forEach(function(t){var r=Sn(e,t);n=wn(n,t,r)}),n}function Us(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return Gs(t,e,n)})}function Gs(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t}))}function Xs(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===m(t.target)&&e in t.target?t.target[e]:t}function Ks(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(he(e.slice(0,n)),[o],he(e.slice(n,t)),he(e.slice(t+1,r))):i<0?[].concat(he(e.slice(0,t)),he(e.slice(t+1,n+1)),[o],he(e.slice(n+1,r))):e}var Ys=["name"],Zs=[];function Qs(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Js=function(e){le(n,e);var t=fe(n);function n(e){var r;(oe(this,n),O(de(r=t.call(this,e)),"state",{resetCount:0}),O(de(r),"cancelRegisterFunc",null),O(de(r),"mounted",!1),O(de(r),"touched",!1),O(de(r),"dirty",!1),O(de(r),"validatePromise",void 0),O(de(r),"prevValidating",void 0),O(de(r),"errors",Zs),O(de(r),"warnings",Zs),O(de(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Ws(o)),r.cancelRegisterFunc=null}),O(de(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(he(void 0===n?[]:n),he(t)):[]}),O(de(r),"getRules",function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map(function(e){return"function"==typeof e?e(o):e})}),O(de(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),O(de(r),"metaCache",null),O(de(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=j(j({},r.getMeta()),{},{destroy:e});Be(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),O(de(r),"onStoreChange",function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,c=void 0===a?[]:a,l=o.onReset,s=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(s),g=t&&Us(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Be(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=Zs,r.warnings=Zs,r.triggerMetaEvent()),n.type){case"reset":if(!t||g)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=Zs,r.warnings=Zs,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&Qs(i,e,s,d,f,n))return void r.reRender();break;case"setField":var m=n.data;if(g)return"touched"in m&&(r.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(r.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(r.errors=m.errors||Zs),"warnings"in m&&(r.warnings=m.warnings||Zs),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in m&&Us(t,u,!0))return void r.reRender();if(i&&!u.length&&Qs(i,e,s,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(c.map(Ws).some(function(e){return Us(n.relatedFields,e)}))return void r.reRender();break;default:if(g||(!c.length||u.length||i)&&Qs(i,e,s,d,f,n))return void r.reRender()}!0===i&&r.reRender()}),O(de(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,c=void 0!==a&&a,l=Promise.resolve().then(Na(Aa().mark(function o(){var a,c,s,u,d,f,g;return Aa().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,c=a.validateFirst,s=void 0!==c&&c,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||ss(t).includes(i)})),!d||!i){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(g=zs(t,n,f,e,s,u)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zs;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?Zs:r;t?o.push.apply(o,he(i)):n.push.apply(n,he(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",g);case 13:case"end":return o.stop()}},o)})));return c||(r.validatePromise=l,r.dirty=!0,r.errors=Zs,r.warnings=Zs,r.triggerMetaEvent(),r.reRender()),l}),O(de(r),"isFieldValidating",function(){return!!r.validatePromise}),O(de(r),"isFieldTouched",function(){return r.touched}),O(de(r),"isFieldDirty",function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(is).getInitialValue)(r.getNamePath())}),O(de(r),"getErrors",function(){return r.errors}),O(de(r),"getWarnings",function(){return r.warnings}),O(de(r),"isListField",function(){return r.props.isListField}),O(de(r),"isList",function(){return r.props.isList}),O(de(r),"isPreserve",function(){return r.props.preserve}),O(de(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),O(de(r),"getOnlyChild",function(e){if("function"==typeof e){var t=r.getMeta();return j(j({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=y(e);return 1===n.length&&a.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),O(de(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Sn(e||t(!0),n)}),O(de(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,c=t.normalize,l=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=r.getNamePath(),g=u.getInternalHooks,m=u.getFieldsValue,p=g(is).dispatch,h=r.getValue(),v=s||function(e){return O({},l,e)},b=e[o],y=void 0!==n?v(h):{},C=j(j({},e),y);return C[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):Xs.apply(void 0,[l].concat(n)),c&&(e=c(e,h,m(!0))),e!==h&&p({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},ss(d||[]).forEach(function(e){var t=C[e];C[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&p({type:"validateField",namePath:f,triggerName:e})}}),C}),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(is).initEntityValue)(de(r));return r}return ae(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(is).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:a.isValidElement(o)?e=a.cloneElement(o,this.getControlled(o.props)):(k(!o,"`children` of Field is not validate ReactElement."),e=o),a.createElement(a.Fragment,{key:t},e)}}]),n}(a.Component);function eu(e){var t,n=e.name,r=Le(e,Ys),o=a.useContext(cs),i=a.useContext(ls),c=void 0!==n?Ws(n):void 0,l=null!==(t=r.isListField)&&void 0!==t?t:!!i,s="keep";return l||(s="_".concat((c||[]).join("_"))),a.createElement(Js,g({key:s,name:c,isListField:l},r,{fieldContext:o}))}O(Js,"contextType",cs),O(Js,"defaultProps",{trigger:"onChange",valuePropName:"value"});var tu="__@field_split__";function nu(e){return e.map(function(e){return"".concat(m(e),":").concat(e)}).join(tu)}var ru=function(){function e(){oe(this,e),O(this,"kvs",new Map)}return ae(e,[{key:"set",value:function(e,t){this.kvs.set(nu(e),t)}},{key:"get",value:function(e){return this.kvs.get(nu(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(nu(e))}},{key:"map",value:function(e){return he(this.kvs.entries()).map(function(t){var n=we(t,2),r=n[0],o=n[1],i=r.split(tu);return e({key:i.map(function(e){var t=we(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),ou=["name"],iu=ae(function e(t){var n=this;oe(this,e),O(this,"formHooked",!1),O(this,"forceRootUpdate",void 0),O(this,"subscribable",!0),O(this,"store",{}),O(this,"fieldEntities",[]),O(this,"initialValues",{}),O(this,"callbacks",{}),O(this,"validateMessages",null),O(this,"preserve",null),O(this,"lastValidatePromise",null),O(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),O(this,"getInternalHooks",function(e){return e===is?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(k(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),O(this,"useSubscribe",function(e){n.subscribable=e}),O(this,"prevWithoutPreserves",null),O(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=jn(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=wn(o,n,Sn(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),O(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new ru;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),O(this,"getInitialValue",function(e){var t=Sn(n.initialValues,e);return e.length?jn(t):t}),O(this,"setCallbacks",function(e){n.callbacks=e}),O(this,"setValidateMessages",function(e){n.validateMessages=e}),O(this,"setPreserve",function(e){n.preserve=e}),O(this,"watchList",[]),O(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),O(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),O(this,"timeoutId",null),O(this,"warningUnhooked",function(){}),O(this,"updateStore",function(e){n.store=e}),O(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),O(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ru;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),O(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=Ws(e);return t.get(n)||{INVALIDATE_NAME_PATH:Ws(e)}})}),O(this,"getFieldsValue",function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===m(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),c=[];return a.forEach(function(e){var t,n,a,l,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&c.push(s)}else c.push(s)}),qs(n.store,c.map(Ws))}),O(this,"getFieldValue",function(e){n.warningUnhooked();var t=Ws(e);return Sn(n.store,t)}),O(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Ws(e[n]),errors:[],warnings:[]}})}),O(this,"getFieldError",function(e){n.warningUnhooked();var t=Ws(e);return n.getFieldsError([t])[0].errors}),O(this,"getFieldWarning",function(e){n.warningUnhooked();var t=Ws(e);return n.getFieldsError([t])[0].warnings}),O(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],c=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Ws),c=!1):(o=null,c=i):(o=i.map(Ws),c=a);var l=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return c?l.every(function(e){return s(e)||e.isList()}):l.some(s);var u=new ru;o.forEach(function(e){u.set(e,[])}),l.forEach(function(e){var t=e.getNamePath();o.forEach(function(n){n.every(function(e,n){return t[n]===e})&&u.update(n,function(t){return[].concat(he(t),[e])})})});var d=function(e){return e.some(s)},f=u.map(function(e){return e.value});return c?f.every(d):f.some(d)}),O(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),O(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(Ws);return t.some(function(e){var t=e.getNamePath();return Us(r,t)&&e.isFieldValidating()})}),O(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),O(this,"resetWithFieldInitialValue",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new ru,r=n.getFieldEntities(!0);r.forEach(function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}});var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach(function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,he(he(r).map(function(e){return e.entity})))})):o=r,o.forEach(function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))k(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)k(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(wn(n.store,o,he(i)[0].value))}}}})}),O(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(jn(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Ws);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(wn(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),O(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=Le(e,ou),a=Ws(o);r.push(a),"value"in i&&n.updateStore(wn(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(r)}),O(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=j(j({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),O(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Sn(n.store,r)&&n.updateStore(wn(n.store,r,t))}}),O(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),O(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!Gs(e.getNamePath(),t)})){var c=n.store;n.updateStore(wn(c,t,a,!0)),n.notifyObservers(c,[t],{type:"remove"}),n.triggerDependenciesUpdate(c,t)}}n.notifyWatch([t])}}),O(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}}),O(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=j(j({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),O(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(he(r))}),r}),O(this,"updateValue",function(e,t){var r=Ws(e),o=n.store;n.updateStore(wn(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(qs(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(he(i)))}),O(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=jn(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),O(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),O(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new ru;n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=Ws(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})});return function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),O(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new ru;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){var n=t.name;return Us(e,n)});a.length&&r(a,o)}}),O(this,"validateFields",function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Ws):[],c=[],l=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach(function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(l)),!i||Us(a,t,d)){var r=e.validateRules(j({validateMessages:j(j({},Ns),n.validateMessages)},o));c.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,he(n)):r.push.apply(r,he(n))}),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var g=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))})})}):Promise.resolve([])}(c);n.lastValidatePromise=g,g.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var m=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==g})});m.catch(function(e){return e});var p=a.filter(function(e){return s.has(e.join(l))});return n.triggerOnFieldsChange(p),m}),O(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});function au(e){var t=a.useRef(),n=we(a.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new iu(function(){n({})});t.current=r.getForm()}return[t.current]}var cu=a.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),lu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],su=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,c=e.preserve,l=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,h=e.onValuesChange,v=e.onFieldsChange,b=e.onFinish,y=e.onFinishFailed,C=e.clearOnDestroy,x=Le(e,lu),E=a.useRef(null),S=a.useContext(cu),k=we(au(i),1)[0],w=k.getInternalHooks(is),O=w.useSubscribe,$=w.setInitialValues,P=w.setCallbacks,F=w.setValidateMessages,T=w.setPreserve,M=w.destroyForm;a.useImperativeHandle(t,function(){return j(j({},k),{},{nativeElement:E.current})}),a.useEffect(function(){return S.registerForm(n,k),function(){S.unregisterForm(n)}},[S,k,n]),F(j(j({},S.validateMessages),d)),P({onValuesChange:h,onFieldsChange:function(e){if(S.triggerFormChange(n,e),v){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];v.apply(void 0,[e].concat(r))}},onFinish:function(e){S.triggerFormFinish(n,e),b&&b(e)},onFinishFailed:y}),T(c);var A,I=a.useRef(null);$(r,!I.current),I.current||(I.current=!0),a.useEffect(function(){return function(){return M(C)}},[]);var N="function"==typeof l;N?A=l(k.getFieldsValue(!0),k):A=l;O(!N);var R=a.useRef();a.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==m(e)||"object"!==m(t))return!1;var n=Object.keys(e),r=Object.keys(t);return he(new Set([].concat(n,r))).every(function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})})(R.current||[],o||[])||k.setFields(o||[]),R.current=o},[o,k]);var H=a.useMemo(function(){return j(j({},k),{},{validateTrigger:p})},[k,p]),_=a.createElement(ls.Provider,{value:null},a.createElement(cs.Provider,{value:H},A));return!1===u?_:a.createElement(u,g({},x,{ref:E,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),k.submit()},onReset:function(e){var t;e.preventDefault(),k.resetFields(),null===(t=x.onReset)||void 0===t||t.call(x,e)}}),_)};function uu(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var du=a.forwardRef(su);du.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=a.useContext(cu),c=a.useRef({});return a.createElement(cu.Provider,{value:j(j({},i),{},{validateMessages:j(j({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:c.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:c.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(c.current=j(j({},c.current),{},O({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=j({},c.current);delete t[e],c.current=t,i.unregisterForm(e)}})},o)},du.Field=eu,du.List=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,c=e.isListField,l=a.useContext(cs),s=a.useContext(ls),u=a.useRef({keys:[],id:0}).current,d=a.useMemo(function(){var e=Ws(l.prefixName)||[];return[].concat(he(e),he(Ws(t)))},[l.prefixName,t]),f=a.useMemo(function(){return j(j({},l),{},{prefixName:d})},[l,d]),g=a.useMemo(function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}},[d]);return"function"!=typeof r?(k(!1,"Form.List only accepts function as children."),null):a.createElement(ls.Provider,{value:g},a.createElement(cs.Provider,{value:f},a.createElement(eu,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=c?c:!!s},function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,c=function(){return a(d||[])||[]},s={add:function(e,t){var n=c();t>=0&&t<=n.length?(u.keys=[].concat(he(u.keys.slice(0,t)),[u.id],he(u.keys.slice(t))),i([].concat(he(n.slice(0,t)),[e],he(n.slice(t))))):(u.keys=[].concat(he(u.keys),[u.id]),i([].concat(he(n),[e]))),u.id+=1},remove:function(e){var t=c(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter(function(e,t){return!n.has(t)}),i(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=c();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Ks(u.keys,e,t),i(Ks(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map(function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}}),s,t)})))},du.useForm=au,du.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t[1],a=void 0===i?{}:i,c=function(e){return e&&!!e._init}(a)?{form:a}:a,l=c.form,s=we(r.useState(),2),u=s[0],d=s[1],f=r.useMemo(function(){return uu(u)},[u]),g=r.useRef(f);g.current=f;var m=r.useContext(cs),p=l||m,h=p&&p._init,v=Ws(o),b=r.useRef(v);return b.current=v,r.useEffect(function(){if(h){var e=p.getFieldsValue,t=(0,p.getInternalHooks)(is).registerWatch,n=function(e,t){var n=c.preserve?t:e;return"function"==typeof o?o(n):Sn(n,b.current)},r=t(function(e,t){var r=n(e,t),o=uu(r);g.current!==o&&(g.current=o,d(r))}),i=n(e(),e(!0));return u!==i&&d(i),r}},[h]),u};const fu=a.createContext({}),gu=({children:e,status:t,override:n})=>{const r=a.useContext(fu),o=a.useMemo(()=>{const e=Object.assign({},r);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return a.createElement(fu.Provider,{value:o},e)},mu=e=>{const{space:t,form:n,children:o}=e;if(null==o)return null;let i=o;return n&&(i=r.createElement(gu,{override:!0,status:!0},i)),t&&(i=r.createElement(lc,null,i)),i},pu=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,c=f({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=f({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),s=a.useMemo(()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return a.createElement("span",{className:f(t,c,l,n),style:Object.assign(Object.assign({},s),r)})},hu=new Cn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),vu=e=>({height:e,lineHeight:ot(e)}),bu=e=>Object.assign({width:e},vu(e)),yu=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:hu,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Cu=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},vu(e)),xu=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},bu(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},bu(o)),[`${t}${t}-sm`]:Object.assign({},bu(i))}},Eu=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:c}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Cu(t,c)),[`${r}-lg`]:Object.assign({},Cu(o,c)),[`${r}-sm`]:Object.assign({},Cu(i,c))}},Su=e=>Object.assign({width:e},vu(e)),ku=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Su(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Su(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},wu=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Ou=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},vu(e)),$u=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:c(r).mul(2).equal(),minWidth:c(r).mul(2).equal()},Ou(r,c))},wu(e,r,n)),{[`${n}-lg`]:Object.assign({},Ou(o,c))}),wu(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Ou(i,c))}),wu(e,i,`${n}-sm`))},ju=yo("Skeleton",e=>{const{componentCls:t,calc:n}=e;return(e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:c,controlHeight:l,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:g,borderRadius:m,titleHeight:p,blockRadius:h,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},bu(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},bu(s)),[`${n}-sm`]:Object.assign({},bu(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:p,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},$u(e)),xu(e)),Eu(e)),ku(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n        ${r},\n        ${o} > li,\n        ${n},\n        ${i},\n        ${a},\n        ${c}\n      `]:Object.assign({},yu(e))}}})(Zr(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Pu=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:c="default"}=e,{getPrefixCls:l}=a.useContext(Pr),s=l("skeleton",t),[u,d,g]=ju(s),m=Za(e,["prefixCls","className"]),p=f(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,g);return u(a.createElement("div",{className:p},a.createElement(pu,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:c},m))))},Fu=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:c}=a.useContext(Pr),l=c("skeleton",t),[s,u,d]=ju(l),g=f(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return s(a.createElement("div",{className:g},a.createElement("div",{className:f(`${l}-image`,n),style:o},a.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},a.createElement("title",null,"Image placeholder"),a.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},Tu=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:c="default"}=e,{getPrefixCls:l}=a.useContext(Pr),s=l("skeleton",t),[u,d,g]=ju(s),m=Za(e,["prefixCls"]),p=f(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,d,g);return u(a.createElement("div",{className:p},a.createElement(pu,Object.assign({prefixCls:`${s}-input`,size:c},m))))},Mu=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:c}=e,{getPrefixCls:l}=a.useContext(Pr),s=l("skeleton",t),[u,d,g]=ju(s),m=f(s,`${s}-element`,{[`${s}-active`]:i},d,n,r,g);return u(a.createElement("div",{className:m},a.createElement("div",{className:f(`${s}-image`,n),style:o},c)))},Au=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},Iu=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((t,n)=>a.createElement("li",{key:n,style:{width:Au(n,e)}}));return a.createElement("ul",{className:f(t,n),style:r},i)},Nu=({prefixCls:e,className:t,width:n,style:r})=>a.createElement("h3",{className:f(e,t),style:Object.assign({width:n},r)});function Ru(e){return e&&"object"==typeof e?e:{}}const Hu=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:c,avatar:l=!1,title:s=!0,paragraph:u=!0,active:d,round:g}=e,{getPrefixCls:m,direction:p,className:h,style:v}=Tr("skeleton"),b=m("skeleton",t),[y,C,x]=ju(b);if(n||!("loading"in e)){const e=!!l,t=!!s,n=!!u;let c,m;if(e){const e=Object.assign(Object.assign({prefixCls:`${b}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Ru(l));c=a.createElement("div",{className:`${b}-header`},a.createElement(pu,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${b}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Ru(s));r=a.createElement(Nu,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Ru(u));o=a.createElement(Iu,Object.assign({},n))}m=a.createElement("div",{className:`${b}-content`},r,o)}const E=f(b,{[`${b}-with-avatar`]:e,[`${b}-active`]:d,[`${b}-rtl`]:"rtl"===p,[`${b}-round`]:g},h,r,o,C,x);return y(a.createElement("div",{className:E,style:Object.assign(Object.assign({},v),i)},c,m))}return null!=c?c:null};Hu.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:c="default"}=e,{getPrefixCls:l}=a.useContext(Pr),s=l("skeleton",t),[u,d,g]=ju(s),m=Za(e,["prefixCls"]),p=f(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,d,g);return u(a.createElement("div",{className:p},a.createElement(pu,Object.assign({prefixCls:`${s}-button`,size:c},m))))},Hu.Avatar=Pu,Hu.Input=Tu,Hu.Image=Fu,Hu.Node=Mu;const _u=Hu;function Lu(){}const Bu=a.createContext({add:Lu,remove:Lu});const zu=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=r.useContext(Ml);return r.createElement(Pl,Object.assign({onClick:n},e),t)},Du=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:i}=r.useContext(Ml);return r.createElement(Pl,Object.assign({},mc(n),{loading:e,onClick:i},t),o)};function Vu(e,t){return r.createElement("span",{className:`${e}-close-x`},t||r.createElement(ea,{className:`${e}-close-icon`}))}const Wu=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:c,okButtonProps:l,cancelButtonProps:s,footer:u}=e,[d]=zn("Modal",Ln()),f=t||(null==d?void 0:d.okText),g=o||(null==d?void 0:d.cancelText),m=r.useMemo(()=>({confirmLoading:i,okButtonProps:l,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:g,okType:n,onOk:a,onCancel:c}),[i,l,s,f,g,n,a,c]);let p;return"function"==typeof u||void 0===u?(p=r.createElement(r.Fragment,null,r.createElement(zu,null),r.createElement(Du,null)),"function"==typeof u&&(p=u(p,{OkBtn:Du,CancelBtn:zu})),p=r.createElement(Al,{value:m},p)):p=u,r.createElement(Nr,{disabled:!1},p)},qu=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Uu=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)0===a?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:a/o*100+"%"}],i[`${r}${t}-push-${a}`]={insetInlineStart:a/o*100+"%"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:a/o*100+"%"},i[`${r}${t}-offset-${a}`]={marginInlineStart:a/o*100+"%"},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t);yo("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({}));const Gu=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin});function Xu(e){return{position:e,inset:0}}yo("Grid",e=>{const t=Zr(e,{gridColumns:24}),n=Gu(t);return delete n.xs,[qu(t),Uu(t,""),Uu(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${ot(t)})`]:Object.assign({},Uu(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}));const Ku=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Xu("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Xu("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Rc(e)}]},Yu=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ot(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},po(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ot(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ot(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},vo(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ot(e.borderRadiusLG)} ${ot(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${ot(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n          ${t}-body,\n          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Zu=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Qu=e=>{const{componentCls:t}=e,n=Gu(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(e=>({[`@media (min-width: ${ot(r[e])})`]:{width:`var(${o}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(he(Object.keys(n).map((e,t)=>{const r=Object.keys(n)[t-1];return r?{[`${o}${e}-width`]:`var(${o}${r}-width)`}:null})),[{width:`var(${o}xs-width)`}],he(i))}}},Ju=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Zr(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},ed=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ot(e.paddingMD)} ${ot(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ot(e.padding)} ${ot(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ot(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ot(e.paddingXS)} ${ot(e.padding)}`:0,footerBorderTop:e.wireframe?`${ot(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ot(e.borderRadiusLG)} ${ot(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ot(2*e.padding)} ${ot(2*e.padding)} ${ot(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),td=yo("Modal",e=>{const t=Ju(e);return[Yu(t),Zu(t),Ku(t),Wc(t,"zoom"),Qu(t)]},ed,{unitless:{titleLineHeight:!0}});var nd=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let rd;const od=e=>{rd={x:e.pageX,y:e.pageY},setTimeout(()=>{rd=null},100)};$e()&&window.document.documentElement&&document.documentElement.addEventListener("click",od,!0);const id=e=>{const{prefixCls:t,className:n,rootClassName:o,open:i,wrapClassName:c,centered:l,getContainer:s,focusTriggerAfterClose:u=!0,style:d,visible:g,width:m=520,footer:p,classNames:h,styles:v,children:b,loading:y,confirmLoading:C,zIndex:x,mousePosition:E,onOk:S,onCancel:k,destroyOnHidden:w,destroyOnClose:O,panelRef:$=null,modalRender:j}=e,P=nd(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:F,getPrefixCls:T,direction:M,modal:A}=a.useContext(Pr),I=e=>{C||null==k||k(e)},N=T("modal",t),R=T(),H=da(N),[_,L,B]=td(N,H),z=f(c,{[`${N}-centered`]:null!=l?l:null==A?void 0:A.centered,[`${N}-wrap-rtl`]:"rtl"===M}),D=null===p||y?null:a.createElement(Wu,Object.assign({},e,{onOk:e=>{null==S||S(e)},onCancel:I})),[V,W,q,U]=((e,t,n=ya)=>{const o=ba(e),i=ba(t),[a]=zn("global",Nn.global),c="boolean"!=typeof o&&!!(null==o?void 0:o.disabled),l=r.useMemo(()=>Object.assign({closeIcon:r.createElement(ea,null)},n),[n]),s=r.useMemo(()=>!1!==o&&(o?ha(l,i,o):!1!==i&&(i?ha(l,i):!!l.closable&&l)),[o,i,l]);return r.useMemo(()=>{var e,t;if(!1===s)return[!1,null,c,{}];const{closeIconRender:n}=l,{closeIcon:o}=s;let i=o;const u=sa(s,!0);return null!=i&&(n&&(i=n(o)),i=r.isValidElement(i)?r.cloneElement(i,Object.assign(Object.assign(Object.assign({},i.props),{"aria-label":null!==(t=null===(e=i.props)||void 0===e?void 0:e["aria-label"])&&void 0!==t?t:a.close}),u)):r.createElement("span",Object.assign({"aria-label":a.close},u),i)),[!0,i,c,u]},[c,a.close,s,l])})(va(e),va(A),{closable:!0,closeIcon:a.createElement(ea,{className:`${N}-close-icon`}),closeIconRender:e=>Vu(N,e)}),G=j?e=>a.createElement("div",{className:`${N}-render`},j(e)):void 0,X=function(e){const t=a.useContext(Bu),n=a.useRef(null);return Ur(r=>{if(r){const o=e?r.querySelector(e):r;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}(`.${N}-${j?"render":"content"}`),K=J($,X),[Y,Z]=ka("Modal",x),[Q,ee]=a.useMemo(()=>m&&"object"==typeof m?[void 0,m]:[m,void 0],[m]),te=a.useMemo(()=>{const e={};return ee&&Object.keys(ee).forEach(t=>{const n=ee[t];void 0!==n&&(e[`--${N}-${t}-width`]="number"==typeof n?`${n}px`:n)}),e},[N,ee]);return _(a.createElement(mu,{form:!0,space:!0},a.createElement(Ca.Provider,{value:Z},a.createElement(os,Object.assign({width:Q},P,{zIndex:Y,getContainer:void 0===s?F:s,prefixCls:N,rootClassName:f(L,o,B,H),footer:D,visible:null!=i?i:g,mousePosition:null!=E?E:rd,onClose:I,closable:V?Object.assign({disabled:q,closeIcon:W},U):V,closeIcon:W,focusTriggerAfterClose:u,transitionName:Ya(R,"zoom",e.transitionName),maskTransitionName:Ya(R,"fade",e.maskTransitionName),className:f(L,n,null==A?void 0:A.className),style:Object.assign(Object.assign(Object.assign({},null==A?void 0:A.style),d),te),classNames:Object.assign(Object.assign(Object.assign({},null==A?void 0:A.classNames),h),{wrapper:f(z,null==h?void 0:h.wrapper)}),styles:Object.assign(Object.assign({},null==A?void 0:A.styles),v),panelRef:K,destroyOnClose:null!=w?w:O,modalRender:G}),y?a.createElement(_u,{active:!0,title:!1,paragraph:{rows:4},className:`${N}-body-skeleton`}):b))))},ad=xo(["Modal","confirm"],e=>(e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:c,fontHeight:l,confirmBodyPadding:s}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:s},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ot(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${ot(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n        ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}})(Ju(e)),ed,{order:-1e3});var cd=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ld=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:c,okCancel:l,footer:s,locale:u}=e,d=cd(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let g=n;if(!n&&null!==n)switch(c){case"info":g=a.createElement(aa,null);break;case"success":g=a.createElement(Xi,null);break;case"error":g=a.createElement(Zi,null);break;default:g=a.createElement(ra,null)}const m=null!=l?l:"confirm"===c,p=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=zn("Modal"),v=u||h,b=r||(m?null==v?void 0:v.okText:null==v?void 0:v.justOkText),y=o||(null==v?void 0:v.cancelText),C=a.useMemo(()=>Object.assign({autoFocusButton:p,cancelTextLocale:y,okTextLocale:b,mergedOkCancel:m},d),[p,y,b,m,d]),x=a.createElement(a.Fragment,null,a.createElement(Il,null),a.createElement(Nl,null)),E=void 0!==e.title&&null!==e.title,S=`${i}-body`;return a.createElement("div",{className:`${i}-body-wrapper`},a.createElement("div",{className:f(S,{[`${S}-has-title`]:E})},g,a.createElement("div",{className:`${i}-paragraph`},E&&a.createElement("span",{className:`${i}-title`},e.title),a.createElement("div",{className:`${i}-content`},e.content))),void 0===s||"function"==typeof s?a.createElement(Al,{value:C},a.createElement("div",{className:`${i}-btns`},"function"==typeof s?s(x,{OkBtn:Nl,CancelBtn:Il}):x)):s,a.createElement(ad,{prefixCls:t}))},sd=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:c,rootPrefixCls:l,bodyStyle:s,closable:u=!1,onConfirm:d,styles:g,title:m}=e,p=`${i}-confirm`,h=e.width||416,v=e.style||{},b=void 0===e.mask||e.mask,y=void 0!==e.maskClosable&&e.maskClosable,C=f(p,`${p}-${e.type}`,{[`${p}-rtl`]:"rtl"===o},e.className),[,x]=mo(),E=a.useMemo(()=>void 0!==n?n:x.zIndexPopupBase+1e3,[n,x]);return a.createElement(id,Object.assign({},e,{className:C,wrapClassName:f({[`${p}-centered`]:!!e.centered},c),onCancel:()=>{null==t||t({triggerCancel:!0}),null==d||d(!1)},title:m,footer:null,transitionName:Ya(l||"","zoom",e.transitionName),maskTransitionName:Ya(l||"","fade",e.maskTransitionName),mask:b,maskClosable:y,style:v,styles:Object.assign({body:s,mask:r},g),width:h,zIndex:E,closable:u}),a.createElement(ld,Object.assign({},e,{confirmPrefixCls:p})))},ud=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(Fi,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement(sd,Object.assign({},e)))},dd=[];let fd="";function gd(){return fd}const md=e=>{var t,n;const{prefixCls:o,getContainer:i,direction:a}=e,c=Ln(),l=r.useContext(Pr),s=gd()||l.getPrefixCls(),u=o||`${s}-modal`;let d=i;return!1===d&&(d=void 0),r.createElement(ud,Object.assign({},e,{rootPrefixCls:s,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:null!=a?a:l.direction,locale:null!==(n=null===(t=l.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:c,getContainer:d}))};function pd(e){const t={getPrefixCls:(e,t)=>t||(e?`${$i()}-${e}`:$i()),getIconPrefixCls:ji,getRootPrefixCls:()=>Si||$i(),getTheme:()=>wi,holderRender:Oi},n=document.createDocumentFragment();let o,i,a=Object.assign(Object.assign({},e),{close:s,open:!0});function c(...t){var n;var r;t.some(e=>null==e?void 0:e.triggerCancel)&&(null===(n=e.onCancel)||void 0===n||(r=n).call.apply(r,[e,()=>{}].concat(he(t.slice(1)))));for(let e=0;e<dd.length;e++){if(dd[e]===s){dd.splice(e,1);break}}i()}const l=e=>{clearTimeout(o),o=setTimeout(()=>{const o=t.getPrefixCls(void 0,gd()),a=t.getIconPrefixCls(),c=t.getTheme(),l=r.createElement(md,Object.assign({},e)),s=Ka();i=s(r.createElement(Fi,{prefixCls:o,iconPrefixCls:a,theme:c},"function"==typeof t.holderRender?t.holderRender(l):l),n)})};function s(...t){a=Object.assign(Object.assign({},a),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),c.apply(this,t)}}),a.visible&&delete a.visible,l(a)}return l(a),dd.push(s),{destroy:s,update:function(e){a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e),l(a)}}}function hd(e){return Object.assign(Object.assign({},e),{type:"warning"})}function vd(e){return Object.assign(Object.assign({},e),{type:"info"})}function bd(e){return Object.assign(Object.assign({},e),{type:"success"})}function yd(e){return Object.assign(Object.assign({},e),{type:"error"})}function Cd(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var xd=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ed=(e,t)=>{var n,{afterClose:r,config:o}=e,i=xd(e,["afterClose","config"]);const[c,l]=a.useState(!0),[s,u]=a.useState(o),{direction:d,getPrefixCls:f}=a.useContext(Pr),g=f("modal"),m=f(),p=(...e)=>{var t;l(!1);var n;e.some(e=>null==e?void 0:e.triggerCancel)&&(null===(t=s.onCancel)||void 0===t||(n=t).call.apply(n,[s,()=>{}].concat(he(e.slice(1)))))};a.useImperativeHandle(t,()=>({destroy:p,update:e=>{u(t=>{const n="function"==typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));const h=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[v]=zn("Modal",Nn.Modal);return a.createElement(ud,Object.assign({prefixCls:g,rootPrefixCls:m},s,{close:p,open:c,afterClose:()=>{var e;r(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(h?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:s.direction||d,cancelText:s.cancelText||(null==v?void 0:v.cancelText)},i))},Sd=a.forwardRef(Ed);let kd=0;const wd=a.memo(a.forwardRef((e,t)=>{const[n,r]=(()=>{const[e,t]=a.useState([]);return[e,a.useCallback(e=>(t(t=>[].concat(he(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return a.useImperativeHandle(t,()=>({patchElement:r}),[r]),a.createElement(a.Fragment,null,n)}));var Od=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $d=(jd=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:c,children:l,footer:s}=e,u=Od(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=a.useContext(Pr),g=d(),m=t||d("modal"),p=da(g),[h,v,b]=td(m,p),y=`${m}-confirm`;let C={};return C=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(ld,Object.assign({},e,{prefixCls:m,confirmPrefixCls:y,rootPrefixCls:g,content:l}))}:{closable:null==o||o,title:c,footer:null!==s&&a.createElement(Wu,Object.assign({},e)),children:l},h(a.createElement(es,Object.assign({prefixCls:m,className:f(v,`${m}-pure-panel`,i&&y,i&&`${y}-${i}`,n,b,p)},u,{closeIcon:Vu(m,r),closable:o},C)))},e=>a.createElement(Fi,{theme:{token:{motion:!1,zIndexPopupBase:0}}},a.createElement(jd,Object.assign({},e))));var jd;function Pd(e){return pd(hd(e))}const Fd=id;Fd.useModal=function(){const e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{if(t.length){he(t).forEach(e=>{e()}),n([])}},[t]);const r=a.useCallback(t=>function(r){var o;kd+=1;const i=a.createRef();let c;const l=new Promise(e=>{c=e});let s,u=!1;const d=a.createElement(Sd,{key:`modal-${kd}`,config:t(r),ref:i,afterClose:()=>{null==s||s()},isSilent:()=>u,onConfirm:e=>{c(e)}});s=null===(o=e.current)||void 0===o?void 0:o.patchElement(d),s&&dd.push(s);return{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n(t=>[].concat(he(t),[e]))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n(e=>[].concat(he(e),[t]))},then:e=>(u=!0,l.then(e))}},[]);return[a.useMemo(()=>({info:r(vd),success:r(bd),error:r(yd),warning:r(hd),confirm:r(Cd)}),[r]),a.createElement(wd,{key:"modal-holder",ref:e})]},Fd.info=function(e){return pd(vd(e))},Fd.success=function(e){return pd(bd(e))},Fd.error=function(e){return pd(yd(e))},Fd.warning=Pd,Fd.warn=Pd,Fd.confirm=function(e){return pd(Cd(e))},Fd.destroyAll=function(){for(;dd.length;){const e=dd.pop();e&&e()}},Fd.config=function({rootPrefixCls:e}){fd=e},Fd._InternalPanelDoNotUseOrYouWillBeFired=$d;const Td=Fd,Md="ce2abf9cd6efc5bc4c72511a14ecc4e1_activity_rules_back",Ad="ce2abf9cd6efc5bc4c72511a14ecc4e1_rules_dialog",Id="ce2abf9cd6efc5bc4c72511a14ecc4e1_modal_title_rules",Nd="ce2abf9cd6efc5bc4c72511a14ecc4e1_modal_body",Rd="ce2abf9cd6efc5bc4c72511a14ecc4e1_activity_rules_body",Hd="ce2abf9cd6efc5bc4c72511a14ecc4e1_rules_content",_d="ce2abf9cd6efc5bc4c72511a14ecc4e1_mobile_rules",Ld="ce2abf9cd6efc5bc4c72511a14ecc4e1_mobile_title",Bd="ce2abf9cd6efc5bc4c72511a14ecc4e1_mobile_body",zd="ce2abf9cd6efc5bc4c72511a14ecc4e1_mobile_header",Dd="ce2abf9cd6efc5bc4c72511a14ecc4e1_mobile_rules_body",Vd="__ADC_GLOBAL_RULES_MODAL";n.exports=e=>{const{className:t}=e,[n,o]=r.useState(!1),[i,a]=r.useState(!1),[c,s]=r.useState(""),[u,d]=r.useState("\u6d3b\u52a8\u89c4\u5219"),f=r.useCallback(e=>{const{activityRules:t,title:n="\u6d3b\u52a8\u89c4\u5219",device:r="pc"}=e;t&&t.trim()&&(s(t),d(n),"pc"===r?o(!0):a(!0))},[]),g=r.useCallback(()=>{o(!1),a(!1)},[]);r.useEffect(()=>{const e="undefined"!=typeof window?window:void 0;if(e)return e[Vd]=f,()=>{delete e[Vd]}},[f]);const m=null!=c&&""!==c.trim();return r.createElement(r.Fragment,null,r.createElement(Td,{open:n,centered:!0,width:640,zIndex:1005,classNames:{content:`${Ad} ${t||""}`,header:Id,body:Nd},closable:!0,footer:!1,title:r.createElement("button",{type:"button",className:Md,"aria-label":"\u8fd4\u56de"},r.createElement("span",null,u)),onCancel:g},m&&r.createElement("div",{className:Rd},r.createElement("div",{className:`${Hd} adc-marketing-global-rules-modal`},r.createElement(l,{htmlStr:c})))),r.createElement(Td,{open:i,centered:!0,zIndex:1005,classNames:{content:_d,header:Ld,body:Bd},footer:!1,title:!1,closable:!0,onCancel:g},r.createElement("div",{className:zd},r.createElement("button",{type:"button",className:Md},r.createElement("span",null,u))),m&&r.createElement("div",{className:Dd},r.createElement("div",{className:`${Hd} adc-marketing-global-rules-modal`},r.createElement(l,{htmlStr:c})))))}});
biu.define({name:"@ali/hmod-adc-marketing-new-style-flash-sale-card",version:"0.0.7",dependencies:{react:"^16.8.1","ace-element":"script:__ALIYUN_EXPERIENCE_ELEMENT__","react-dom":"^16.8 || ^17.0 || ^18.0 || ^19.0"}},function(e,t,r){"use strict";var n=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,s=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&s(e,r,t[r]);if(a)for(var r of a(t))l.call(t,r)&&s(e,r,t[r]);return e},f=(e,t)=>o(e,i(t)),d=(e,t)=>{var r={};for(var n in e)c.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&a)for(var n of a(e))t.indexOf(n)<0&&l.call(e,n)&&(r[n]=e[n]);return r};const p=e("react"),m=e("ace-element"),y=e("react-dom");function b(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const v=b(p),h=b(y);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}function O(e,t,r){return(t=w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var j=function(e){return e.INIT="INIT",e.READY="READY",e.EFFECTIVE="EFFECTIVE",e.SOLD_OUT="SOLD_OUT",e.END="END",e.UNAVAILABLE="UNAVAILABLE",e}({});var x="FLASH_SALE_END",P={flashState:j.INIT,startTime:null,endTime:null,progress:0},E={flashState:j.UNAVAILABLE,startTime:null,endTime:null,progress:null};const S="_33689b765d4162d07605edb73ebf510c_progress-bar",_="_33689b765d4162d07605edb73ebf510c_tip",C="_33689b765d4162d07605edb73ebf510c_whole",N="_33689b765d4162d07605edb73ebf510c_fill",k="_33689b765d4162d07605edb73ebf510c_progress-icon";var D=function(e){var t=e.percent,r=void 0===t?0:t,n=e.text,o=void 0===n?"\u5df2\u62a2{percent}":n,i=e.className,a=void 0===i?"":i,c=e.icon,l=void 0===c?"//img.alicdn.com/imgextra/i2/O1CN01hwoffG1cEC7ZgKYvU_!!6000000003568-2-tps-32-32.png":c,s="".concat(r,"%"),u=o.replace(/{percent}/,s);return p.createElement("div",{className:"".concat(S," ").concat(a),style:{"--fill-width":s,"--icon-background":"url(".concat(l,")")}},p.createElement("div",{className:C},p.createElement("div",{className:N},p.createElement("div",{className:k}))),p.createElement("div",{className:_},u))};function I(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}function T(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){I(i,n,o,a,c,"next",e)}function c(e){I(i,n,o,a,c,"throw",e)}a(void 0)})}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function L(e,t){if(e){if("string"==typeof e)return A(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(u){s=!0,o=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||L(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $,F={exports:{}},z={exports:{}};($=z).exports=function(e,t){this.v=e,this.k=t},$.exports.__esModule=!0,$.exports.default=$.exports;var U=z.exports,B={exports:{}},V={exports:{}};!function(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(c){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(V);var W=V.exports;!function(e){var t=W;function r(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var n,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.toStringTag||"@@toStringTag";function l(e,r,i,a){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return t(l,"_invoke",function(e,t,r){var i,a,c,l=0,u=r||[],f=!1,d={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(e,t){return i=e,a=0,c=n,d.n=t,s}};function p(e,t){for(a=e,c=t,o=0;!f&&l&&!r&&o<u.length;o++){var r,i=u[o],p=d.p,m=i[2];e>3?(r=m===t)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=p&&((r=e<2&&p<i[1])?(a=0,d.v=t,d.n=i[1]):p<m&&(r=e<3||i[0]>t||t>m)&&(i[4]=e,i[5]=t,d.n=m,a=0))}if(r||e>1)return s;throw f=!0,t}return function(r,u,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,m),a=u,c=m;(o=a<2?n:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(r="next"),o=i[r]){if(!(o=o.call(i,c)))throw TypeError("iterator result is not an object");if(!o.done)return o;c=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=n}else if((o=(f=d.n<0)?c:e.call(t,d))!==s)break}catch(y){i=n,a=1,c=y}finally{l=1}}return{value:o,done:f}}}(e,i,a),!0),l}var s={};function u(){}function f(){}function d(){}o=Object.getPrototypeOf;var p=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),m=d.prototype=u.prototype=Object.create(p);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,t(e,c,"GeneratorFunction")),e.prototype=Object.create(m),e}return f.prototype=d,t(m,"constructor",d),t(d,"constructor",f),f.displayName="GeneratorFunction",t(d,c,"GeneratorFunction"),t(m),t(m,c,"Generator"),t(m,a,function(){return this}),t(m,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:l,m:y}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(B);var G=B.exports,q={exports:{}},Y={exports:{}},K={exports:{}};!function(e){var t=U,r=W;e.exports=function e(n,o){function i(e,r,a,c){try{var l=n[e](r),s=l.value;return s instanceof t?o.resolve(s.v).then(function(e){i("next",e,a,c)},function(e){i("throw",e,a,c)}):o.resolve(s).then(function(e){l.value=e,a(l)},function(e){return i("throw",e,a,c)})}catch(u){c(u)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,r){function n(){return new o(function(t,n){i(e,r,t,n)})}return a=a?a.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(K);var Q=K.exports;!function(e){var t=G,r=Q;e.exports=function(e,n,o,i,a){return new r(t().w(e,n,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(Y);var H=Y.exports;!function(e){var t=H;e.exports=function(e,r,n,o,i){var a=t(e,r,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}(q);var Z=q.exports,X={exports:{}};!function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(X);var J=X.exports,ee={exports:{}},te={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(te);var re=te.exports;!function(e){var t=re.default;e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(ee);var ne=ee.exports;!function(e){var t=U,r=G,n=Z,o=H,i=Q,a=J,c=ne;function l(){var s=r(),u=s.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function m(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,p[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,c(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,t,r,n){return s.w(m(e),t,r,n&&n.reverse())},isGeneratorFunction:d,mark:s.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:i,async:function(e,t,r,i,a){return(d(t)?o:n)(m(e),t,r,i,a)},keys:a,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports}(F);var oe=(0,F.exports)(),ie=oe;try{regeneratorRuntime=oe}catch(Zy){"object"==typeof globalThis?globalThis.regeneratorRuntime=oe:Function("r","regeneratorRuntime = r")(oe)}const ae=M(ie);function ce(){return le.apply(this,arguments)}function le(){return(le=T(ae.mark(function e(){return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.$ACE){e.next=2;break}return e.abrupt("return",window.$ACE);case 2:return e.next=4,ue("//g.alicdn.com/??aliyun/util/".concat("1.2.30","/index.js"));case 4:return e.abrupt("return",window.$ACE);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}window.$ACE_LOADER=ce;const se=function(e){return ce().then(e)};function ue(e){return fe.apply(this,arguments)}function fe(){return(fe=T(ae.mark(function e(t){var r,n;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=document.getElementsByTagName("head")[0],(n=document.createElement("script")).setAttribute("type","text/javascript"),n.setAttribute("src",t),r.appendChild(n),e.abrupt("return",new Promise(function(e){n.onload=function(){e()}}));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var pe=function(){var e=R(p.useState({isLogin:null,isCertificated:null}),2),t=e[0],r=e[1];return p.useEffect(function(){se(function(){var e=T(ae.mark(function e(t){var n,o,i;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.get("Account");case 2:return n=e.sent,e.next=5,n.isCertificated();case 5:return o=e.sent,e.next=8,n.isLogin();case 8:i=e.sent,r({isLogin:i,isCertificated:o});case 10:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}())},[]),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?de(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):de(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t)};function me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function be(e,t,r){return t&&ye(e.prototype,t),r&&ye(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var ve=function(){var e=!!navigator.userAgent.toLowerCase().match(/(android|iphone|ipod|windows\sphone)/gm);return{isMobile:e||window.innerWidth<1056,isPhone:e}},he=function(){return be(function e(){me(this,e),O(this,"cache",void 0),window.__good_cache_data||(window.__good_cache_data={}),this.cache=window.__good_cache_data},[{key:"setDelivery",value:function(e,t){this.cache["_delivery_".concat(e)]=t}},{key:"getDelivery",value:function(e){return this.cache["_delivery_".concat(e)]}},{key:"setGood",value:function(e,t){this.cache["_good_".concat(e)]=t}},{key:"getGood",value:function(e){return this.cache["_good_".concat(e)]}}])}();function ge(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var we={RAM_USER_HAS_NOT_FOR_PRICE:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u63a7\u5236\u53f0\u6388\u6743\uff0c\u9700\u8981\u6388\u6743\u7684Action\u4e3a\uff1abss:QueryPrice",FC_USER_HAS_NOT_FOR_PRICE:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u8d39\u7528\u4e2d\u5fc3\u6388\u6743\uff0c\u9700\u6388\u6743\u7684\u6743\u9650\u70b9code\u4e3a\uff1aqueryprice"},Oe={cloud_efficiency:"\u9ad8\u6548\u4e91\u76d8",cloud_essd:"ESSD\u4e91\u76d8",cloud_ssd:"SSD\u4e91\u76d8",cloud_essd_entry:"ESSD Entry",cloud_auto:"ESSD AutoPL"},je="\u4f01\u4e1a\u4e13\u4eab",xe="\u65b0\u4eba\u4e13\u4eab",Pe="\u4e2a\u4eba\u4e13\u4eab",Ee={"12:Month":"1\u5e74","24:Month":"2\u5e74","36:Month":"3\u5e74"},Se="".concat("\xa5","***"),_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(void 0===e)return"";var r=Number(e);return(Math.round(r*Math.pow(10,t-2))/Math.pow(10,t)).toFixed(t)},Ce=function(e){var t=e.unit,r=e.digital,n=e.money,o=e.noPermission,i=void 0!==o&&o,a=e.ignorePermission,c=void 0!==a&&a,l=e.defaultCondition,s=void 0===l?function(){}:l;return i&&!c?Se:[void 0,null].includes(n)||s()?"":function(e){var t=e.currency,r=void 0===t?"\xa5":t,n=e.money,o=void 0===n?"":n,i=e.unit,a=void 0===i?"":i;return"".concat(r).concat(o).concat(a)}({money:_e(n,r),unit:t})},Ne=function(e){var t=e.articleItemResults,r=0,n=0,o=0;return t.forEach(function(e){e.price&&2!==e.chargeType&&e.price.discountedPrice>-1&&(r||(r=0),n||(n=0),r+=e.price.discountedPrice||0,n+=e.price.totalPrice||0,o+=e.price.discount||0)}),{discountedPrice:r,totalPrice:n,discount:o}},ke=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o=t.code,i=t.price,a=t.priceAdjustTime,c=(null==t?void 0:t.depreciateInfo)||{},l=r,s=null==e?void 0:e.isPackage,u=null==e?void 0:e.isPostPay,f=null==e?void 0:e.isResourcePackage;if(!(s||i&&void 0!==i.discountedPrice))return{};u&&i.unit&&(l=i.unit.replace("\u5143","")),f&&(l="");var d=null,p=null,m=0,y=null;if(s){var b=t.articleItemResults,v=Ne({articleItemResults:void 0===b?[]:b});d=v.discountedPrice,p=v.totalPrice,m=v.discount}else p=i.totalPrice,d=i.discountedPrice,m=i.discount,y=i.channelPrice;var h=Ce({ignorePermission:!0,noPermission:!!o,money:p,unit:l,digital:n}),g=Ce({noPermission:!!o,money:d,unit:l,digital:n}),w=Ce({noPermission:o&&y,money:y,unit:l,digital:n}),O=Ce({ignorePermission:!0,money:c.listPrice,unit:l,digital:n,defaultCondition:function(){return c.listPrice<=0}}),j=i.cheapStandAmount,x=Ce({ignorePermission:!0,money:j,unit:l,digital:n,defaultCondition:function(){return j<=0}}),P=void 0!==c.cheapRate&&null!==c.cheapRate?"".concat(Math.round(1e4*c.cheapRate)/100,"%"):"";return{dailyPrice:h,promotionPrice:g,discount:Ce({ignorePermission:!0,money:m,unit:l,digital:n,defaultCondition:function(){return m<=0}}),hasDiscount:m>0,queryFailCode:o||"",codeContent:we[o],channelPrice:w,listPrice:O,cheapStandAmount:x,cheapRate:P,isContractActivity:c.isContractActivity||!1,priceAdjustTime:a}},De=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0===Object.keys(r).length||!n)return{};var o=r,i={tags:[]},a=(null===(e=o[n])||void 0===e?void 0:e.display)||[],c=(null==o||null===(t=o.common)||void 0===t?void 0:t.display)||[];return i.tags=[].concat(ge(a),ge(c)),i};function Ie(e){if(!e)return"";var t=R(e.match(/^(\D*)(\d+)(\.\d+)?(.*)$/),5),r=t[1],n=t[2],o=void 0===n?"":n,i=t[3],a=void 0===i?".00":i,c=t[4],l=void 0===c?"":c,s=l;if(/\//.test(s)){var u=(s=l.replace(/\s/g,"").replace(/^\//,"")).split("/");u.length>2&&(u.length=2),s=u.join("/")}var f="";return o&&(f=(r||"\uffe5")+o+a),s&&(f+="/".concat(s)),/\/\u5143/.test(f)&&(f=f.replace(/\/\u5143/,"")),f}var Te,Ae,Le=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0!==Object.keys(r).length){var o,i,a=(null==r||null===(e=r.common)||void 0===e?void 0:e.biz)||[],c=(null==r||null===(t=r.common)||void 0===t?void 0:t.extraInfo)||{},l=!1,s=!0,u=!0;try{var f=c.promotionBizLabels;for(var d in f)if(f.hasOwnProperty(d)){var p=f[d];if(p.promotionId===n){o=p.orderNumLimit;break}}l=c.sameIdLimit,i=c.userTimes,a.forEach(function(e){"NO_COUPON"===e?s=!1:"NO_REFUND"===e&&(u=!1)})}catch(m){}return{orderNumLimit:o,isSameIdLimt:l,userTimes:i,isCoupon:s,isRefund:u}}},Re=function(e){return e.FlashSale="flash_sale_activity_id",e.LowPrice="low_price_activity_id",e}({}),Me=function(e){return e[e.PostPay=2]="PostPay",e[e.PrePay=1]="PrePay",e}({}),$e="1"===(Te=window.location.search,Ae="prePrice",new URLSearchParams(Te).get(Ae))?"https://pre-t.aliyun.com":"https://t.aliyun.com",Fe=function(e,t){var r=function(e){for(var t=null,r=0,n=[Re.FlashSale,Re.LowPrice];r<n.length;r++){var o=n[r];if(e[o]){t=o;break}}return t}(t),n=null;if(r&&(n=t[r]),n)switch(r){case Re.FlashSale:return e.orderParams.flash_sale_activity_id=n,e.orderParams.no_coupons=!0,void(e.orderParams.watchActivityIdList=n);case Re.LowPrice:return void(e.orderParams.watchActivityIdList=n);default:return}},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){if(null!=e&&e.orderParams||(e.orderParams={}),"object"===Object.prototype.toString.call(e.orderParams).slice(8,-1).toLowerCase()){var r=t.isManualQueryPrice,n=void 0!==r&&r;e.orderParams.pricing_trigger_type=n?"manual":"default"}return e}};const Ue=function(){var e=T(ae.mark(function e(t){var r,n,o,i,a,c,l,s,u,f,d,p,m,y,b;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.goodsId,n=t.orderParams,o=void 0===n?{}:n,i=t.planId,a=t.activityChannel,c=t.stealth,l=t.activityId,s=t.orderParamsOption,u=void 0===s?{}:s,(d={}).commodityId=r,i&&(d.planId=i),Array.isArray(o)?(l&&o.forEach(function(e){Fe(e,l)}),o.forEach(function(e){ze(e,u)}),d.commodities=o):(l&&Fe(o,l),ze(o,u),d.commodities=[o]),p="".concat($e,"/abs/promotion/queryPrice"),a?(p="".concat($e,"/abs/promotion/queryPriceBatch"),c&&(p="".concat($e,"/abs/promotion/queryPriceBatchStealth")),m=JSON.stringify(d),(m=JSON.parse(m)).commodities.forEach(function(e){e&&e.orderParams&&(e.orderParams.no_coupons=!0,e.orderParams.aliyunActivityChannel=a)}),(y=[]).push(m),y.push(d),f=JSON.stringify(y)):(c&&(p="".concat($e,"/abs/promotion/queryPriceStealth")),f=JSON.stringify(d)),e.next=9,se(function(){var e=T(ae.mark(function e(t){return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.Request.post(p,{param:f});case 2:b=e.sent;case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 9:return e.abrupt("return",b);case 10:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();function Be(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Ve=function(e){return e.DailyDiscount="dailyDiscount",e.NinetyNinePrice="99Price",e.DoubleDiscount="doubleDiscount",e}({}),We=function(e){return e.DoubleDiscount="doubleDiscount",e}({});function Ge(e){return qe.apply(this,arguments)}function qe(){return qe=T(ae.mark(function e(t){var r,n,o,i,a,c,l,s,u,f,d,m,y,b,v,h,g,w,O,j,x=arguments;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=x.length>1&&void 0!==x[1]?x[1]:{},n=x.length>2?x[2]:void 0,o=!(x.length>3&&void 0!==x[3])||x[3],i=x.length>4?x[4]:void 0,a=t.isBuy,c=t.buyUrl,l=r.btnType||"pay",s=r.orderParams||{},1!==a||!c){e.next=10;break}return window.open(c),e.abrupt("return");case 10:if(u=t._promationPriceResult,f=(void 0===u?{}:u).needCertifiedType,"individual_business"===(d=null==n?void 0:n.certifyAccountType)&&(d="enterprise"),!o||!f||"all"===f||d===f||!i&&!window.__ALIYUN_EXPERIENCE_ELEMENT__){e.next=28;break}return m="enterprise"===f,y=ve().isMobile,b="\u5f53\u524d\u4ef7\u683c\u9650\u4e2a\u4eba\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4e2a\u4eba\u8d26\u53f7\u8d2d\u4e70\u6216\u76f4\u63a5\u8d2d\u4e70\u3002",m&&(b=y?"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u6309\u4e2a\u4eba\u7528\u6237\u4ef7\u683c\u76f4\u63a5\u8d2d\u4e70":"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u5c06\u8be5\u8d26\u53f7\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u3002"),e.prev=19,v=i||window.__ALIYUN_EXPERIENCE_ELEMENT__,h=v.Dialog,g=v.Button,w=h.show({v2:!0,title:"\u6e29\u99a8\u63d0\u793a",content:b,footer:p.createElement("div",{className:"marketing-goods-dialog-footer"},m&&!y&&p.createElement("a",{href:"https://account.console.aliyun.com/v2/?#/authc/home",target:"_blank",style:{marginRight:10}},p.createElement(g,{type:"primary"},"\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1")),p.createElement(g,{type:m&&y?"primary":"secondary",onClick:function(){w.hide(),Ge(t,r,n,!1,i)}},"cart"===l?"\u52a0\u5165\u8d2d\u7269\u8f66":"\u76f4\u63a5\u8d2d\u4e70"))}),e.abrupt("return");case 25:e.prev=25,e.t0=e.catch(19);case 28:if(t.product){e.next=31;break}return e.next=31,t.init();case 31:if(!(O=t.children)||!O.length){e.next=35;break}return e.next=35,Promise.all(O.map(function(){var e=T(ae.mark(function e(t){var r;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=0,t&&t.selectedCardIndex&&(r=t.selectedCardIndex),!t||t.product){e.next=5;break}return e.next=5,t.init();case 5:t&&t.product&&t.product.setSKU(r);case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 35:if(j={id:t?"".concat(0,".",t.goodsId,".").concat(t.goodsId):null,bizChannel:"",fromApp:"",orderParams:s,buttons:[l],moduleVersion:3},!t.isPackage){e.next=43;break}return t.product.setPackageName(t.name),t.product.setPackageGoods(O),e.next=41,t.product.startPackagePopUpBuy(j);case 41:e.next=46;break;case 43:return t.product.setSKU(t.selectedCardIndex),e.next=46,t.product.popUpBuy(j);case 46:case"end":return e.stop()}},e,null,[[19,25]])})),qe.apply(this,arguments)}const Ye=function(e){var t=e||{},r=t.enterpriseUserOnly,n=t.personalUserOnly;return t.newUserOnly?{type:"newUser",text:xe}:r?{type:"enterprise",text:je}:n?{type:"personal",text:Pe}:null},Ke=function(e,t,r){var n=e;return"12:Month"===t?n="1\u5e74":"24:Month"===t?n="2\u5e74":"36:Month"===t&&(n="3\u5e74"),"systemdisk"===r&&Oe[t]&&(n=Oe[t]),n=n.replace(/([0-9]+)\s+/g,"$1")},Qe=function(e,t){var r=e[t];return"systemdisk"===t?r=r.systemdiskCategory||r.systemDiskCategory:"vm_bandwidth"!==t&&"bandwidth"!==t||(r.internetMaxBandwidthOut||r.internetMaxBandwidthOut>-1)&&(r=r.internetMaxBandwidthOut),r},He=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.defaultValues,n=t.isPackage,o=t.selectedCardIndex,i=t.children;return n?(e=[],i.forEach(function(t,r){t.defaultValues.forEach(function(n){if(n.cardIndex===t.selectedCardIndex){var o=n.orderParams;o.uniqLabel=t.uniqKey||lt({good:t,order:r}),e.push(o)}})})):(r.forEach(function(r){r.cardIndex===o&&((e=r.orderParams).uniqLabel=t.uniqKey||lt({good:t}))}),!e&&r[0]&&((e=r[0].orderParams).uniqLabel=t.uniqKey||lt({good:t}))),e};function Ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.price,r=e.commodityType,n=e.commodity,o=e.postPayPrice;if("notcommonbuy_notselfcreate"===r||!n&&t&&t.length>0){var i={},a={};if(t.forEach(function(e){"daily_price"===e.code?a.totalPrice=e.value:"promotion_price"===e.code&&(a.discountedPrice=e.value)}),i={price:a,formatPrice:{promotionPrice:Ie(a.discountedPrice),dailyPrice:Ie(a.totalPrice)}},o&&o.length>0){var c=[];o.forEach(function(e){var t=e.daily_price,r=e.promotion_price,n=e.groupId,o=e.expenses_name,i=Ie(t),a=Ie(r),l={totalPrice:e.daily_price,dailyPrice:i,promotionPrice:a,discountedPrice:e.promotion_price};c.push({id:n,name:o,price:l,formatPrice:{promotionPrice:Ie(l.discountedPrice),dailyPrice:Ie(l.totalPrice)}})}),i=Xe(Xe({},i),{},{isPostPay:!0,postPayModules:c})}return i}return!1};var et=function(e){return"number"==typeof e?"".concat(e):e},tt=function(e,t,r,n,o,i){var a,c=[],l=[];if(e<t.length){var s=o[a=t[e].code];if(r.forEach(function(e){var t=e.value,r=e.orderParams;if(t){var n=Object.keys(t);if(!n||n.length<1)return!1;var o,i,l=Qe(t,a);if("instance_type"!==a)o=null==r||null===(i=r.components)||void 0===i?void 0:i.find(function(e){return e.componentCode===a});o&&o.instanceProperty?function(e,t,r,n){var o=e.instanceProperty[0];if(o&&o.name&&!r.find(function(e){return e.value===t})){var i=Ke(o.name,t,n);r.push({text:i,label:i,value:et(t)})}}(o,l,c,a):function(e,t,r,n){e&&e.options&&e.options.length>0&&e.options.forEach(function(e){var o=e.value||e.defaultValue;if(!o||et(o)===et(t)){var i=function(e){var t="";return"string"==typeof e.text?t=e.text:e.text&&e.text.title&&(t=e.text.title),t}(e);if("instance_type"===n){var a=i.split(" ");a&&a.length>0&&(i=a[0])}var c=r.find(function(e){return et(e.value)===et(t)});if(i||(i=t),i&&!c){var l=Ke("".concat(i).concat(e.unit||""),t,n);r.push({text:l,label:l,value:et(o)})}}})}(s,l,c,a)}}),c&&c.length>0){var u=function(e,t,r,n){var o=0;return e&&e.forEach(function(e){e.code===t&&r.forEach(function(t,r){var i=n[e.code];et(t.value)===i&&(o=r)})}),o}(t,a,c,i),f=c[u];i[a]=et(f.value),r.forEach(function(e){var t=e.value;if(t){var r=Object.keys(t);if(!r||r.length<1)return!1;var n=Qe(t,a);et(f.value)===et(n)&&l.push(e)}})}if(e<10){var d=l.length>0?l:r;tt(e+1,t,d,n,o,i)}}return a&&l.length>0&&(n[a]=c),l};const rt=function(e){var t=e.good,r=e.priceRes,n=t.children,o=r.articleItemResults,i=[];return n.forEach(function(e,n){var a=null==o?void 0:o.find(function(t){return t.tag===(e.uniqKey||lt({good:e,order:n}))});if(a){var c={tag:a.tag};a.code=r.code;var l=a.price,s=a.depreciateInfo,u=a.chargeType,f=a.moduleResults,d=u===Me.PostPay,p=e.defaultValues.find(function(t){return t.cardIndex===e.selectedCardIndex}).orderParams,m=t.getTimeUnit({isPostPay:d,orderParams:p}),y=ke({isPackage:e.isPackage,isResourcePackage:e.isResourcePackage},a,m);if(c.price=l,c.formatPrice=y,c.isPostPay=d,d){var b=mt((null==s?void 0:s.startTime)||""),v=dt(f,b);v&&v.length>0&&v.forEach(function(t){t.code=null==r?void 0:r.code,t.formatPrice=ke({isPostPay:d,isResourcePackage:e.isResourcePackage},t,"",2)}),c.postPayModules=v}i.push(c)}else i.push(null)}),i};var nt=["refresh"];function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var at=function(){return be(function e(t){var r,n=this,o=t.good,i=t.planCode,a=t.order,c=void 0===a?0:a;me(this,e),O(this,"sku",[]),O(this,"scm",void 0),O(this,"title",void 0),O(this,"name",void 0),O(this,"description",void 0),O(this,"productCode",void 0),O(this,"commodityCode",void 0),O(this,"goodsId",void 0),O(this,"mcm_code",void 0),O(this,"mcm_id",void 0),O(this,"selectSkuId",0),O(this,"children",void 0),O(this,"parent",void 0),O(this,"_rawGood",void 0),O(this,"price",void 0),O(this,"postPayPrice",void 0),O(this,"commodityType",void 0),O(this,"isBuy",void 0),O(this,"buyUrl",void 0),O(this,"productDetailLink",void 0),O(this,"commodityDetailUrl",void 0),O(this,"isPackage",!1),O(this,"packagecode",void 0),O(this,"planId",void 0),O(this,"goodsType",void 0),O(this,"planItemId",void 0),O(this,"defaultValues",[]),O(this,"product",void 0),O(this,"_commodityKeys",void 0),O(this,"_checkedFeatureList",void 0),O(this,"_promationPriceResult",void 0),O(this,"commodity",void 0),O(this,"selectedCardIndex",0),O(this,"selectedComponentValue",{}),O(this,"isPostPay",void 0),O(this,"hasPostPay",void 0),O(this,"activityId",void 0),O(this,"isResourcePackage",void 0),O(this,"uniqKey",void 0),O(this,"planInstanceIsRequired",void 0),O(this,"_orderParamsOption",{isManualQueryPrice:!1}),O(this,"_displayComponents",void 0),O(this,"_promotionTags",void 0),O(this,"_staticLoaded",void 0),O(this,"_staticLabels",void 0),O(this,"getTimeUnit",function(e){var t=e.orderParams,r="";if(!e.isPostPay){var o=t?Ee["".concat(t.duration,":").concat(t.pricingCycle)]:"";r=n.formatTime(o,t)}return r}),o&&o.defaultValues&&o.defaultValues.forEach(function(e){var t=e.values;t&&t.forEach(function(e){n.sku.push({config:e.value})})}),this.uniqKey=lt({good:o,order:c}),this._rawGood={commodityCode:o.commodityCode,specCode:o.itemCode,productCode:o.productCode,accessories:{commodityCode:o.commodityCode,specCode:o.itemCode,productCode:o.productCode,commodity:o.modules?o.modules.commodity:void 0},title:o.itemName,name:o.itemName,sku:this.sku,goodsId:o.id,id:o.id,itemId:o.itemId,actPromotionCommodityAttributeList:o.actPromotionCommodityAttributeList},i&&this._rawGood&&(this._rawGood.accessories.planCode=i),this._staticLoaded=o.staticLoaded||o.defaultValues&&o.defaultValues.length>-1,this.scm=o.scm,this.productCode=o.productCode,this.commodityCode=o.commodityCode,this.goodsId=o.id,this.mcm_code="".concat(this.productCode,".").concat(this.commodityCode),this.mcm_id="".concat(0,".",o.id,".").concat(o.id),this.selectSkuId=0,this.children=o.children||[],this.children.forEach(function(t){t instanceof e&&(t.setParent(n),t.selected=!0)}),this.title=o.itemName,this.name=o.itemName,this.description=o.description;var l,s,u=o.defaultValues||[];this.setDefaultValues(o.defaultValues),this.commodity=(l=o.modules,s=null,l&&l.commodity?s=l.commodity:l&&l.domainParams&&(s=l.domainParams),s),this.price=o.price;var f=o.actPromotionCommodityAttributeList,d=jt(f,"post_pay_expenses_item");this.postPayPrice=d&&JSON.parse(d);var p=jt(f,"market_commodity_labels");this._staticLabels=p&&p.split(",")||[],this.commodityType=o.commodityType,this.isBuy=o.isBuy,this.buyUrl=o.buyUrl,this.productDetailLink=o.productDetailLink,this.commodityDetailUrl=o.commodityDetailUrl,this.hasPostPay=o.hasPostPay;var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("plan"===e.comType){var r=e.actPromotionCommodityAttributeList,n=jt(void 0===r?[]:r,"ntm_plan_id"),o=n&&Number(n)||void 0,i=e.commodityCode;return t&&(t.accessories.goodsType="startPackage",t.accessories.planCode=e.commodityCode),{goodsType:"startPackage",isPackage:!0,packagecode:i,planId:o,_rawGood:t}}if("plan_commodity"===e.comType){var a=e.actPromotionCommodityAttributeList.find(function(e){return"planItemId"===e.attrCode}),c=(null==a?void 0:a.attrValue)&&1*a.attrValue||null;t&&(t.accessories.planItemId=c);var l="boolean"!=typeof e.planInstanceIsRequired||e.planInstanceIsRequired;return t.accessories.defaultChecked=!0,{_rawGood:t,planInstanceIsRequired:l}}return!1}(o,this._rawGood);if(Object.assign(this,m),this._commodityKeys=this.resetCommodityKeys((null===(r=u[0])||void 0===r?void 0:r.selectedCommodityKeys)||[]),!this.isPackage){var y={};if(this.commodity){tt(0,this._commodityKeys,this.defaultValues,y,this.commodity,this.selectedComponentValue);var b=Object.keys(y);b&&b.length<3&&(y=this.groupStaticModule(y))}else y=this.groupStaticModule(y);this._displayComponents=y}var v=[Re.FlashSale,Re.LowPrice].map(function(e){return jt(f,e)}),h=R(v,2),g=h[0],w=h[1];(g||w)&&(this.activityId=O(O({},Re.FlashSale,g),Re.LowPrice,w));var j=this.getPromationCommodity(o,"commodity_sub_type");j&&(this.isResourcePackage="resourcePackageCommodity"===j)},[{key:"getPromationCommodity",value:function(e,t){var r=e.actPromotionCommodityAttributeList,n=void 0===r?[]:r,o=n&&n.find(function(e){return e.attrCode===t});return o&&o.attrValue}},{key:"setDefaultValues",value:function(e){var t,r=[];e&&(e.forEach(function(e,t){if(0===t){var n=e.values;n&&n.forEach(function(e,t){r.push(it(it({},e),{},{cardIndex:t}))})}}),this.defaultValues=r,this._checkedFeatureList=null===(t=e[0])||void 0===t?void 0:t.checkedFeatureList)}},{key:"init",value:(o=T(ae.mark(function e(){var t=this;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,se(function(){var e=T(ae.mark(function e(r){var n,o;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.get("GoodsService");case 2:n=e.sent,o=n.getProduct(t._rawGood),t.product=o;case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"setSku",value:function(e){this.selectSkuId=e}},{key:"handlePopUpBuy",value:(n=T(ae.mark(function e(t,r){var n=this;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return!window.__ALIYUN_EXPERIENCE_REACT__&&window.React&&(window.__ALIYUN_EXPERIENCE_REACT__=window.React),!window.__ALIYUN_EXPERIENCE_REACT_DOM__&&window.ReactDOM&&(window.__ALIYUN_EXPERIENCE_REACT_DOM__=window.ReactDOM),e.next=4,se(function(){var e=T(ae.mark(function e(o){var i,a,c,l,s;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.get("Account");case 2:return i=e.sent,e.next=5,Ot();case 5:if(a=e.sent){e.next=9;break}return i.toLogin(),e.abrupt("return");case 9:if(!a||null!==a.certifyAccountType){e.next=16;break}return c=n._promationPriceResult,l=(void 0===c?{}:c).needCertifiedType,s={title:"\u6e29\u99a8\u63d0\u793a"},"personal"!==l&&"enterprise"!==l||(s.subjectType=l),i.toCertificate(s),e.abrupt("return");case 16:return e.next=18,Ge(n,t,a,!0,r);case 18:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})},{key:"addCart",value:(r=T(ae.mark(function e(){var t,r,n=arguments;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},r=n.length>1?n[1]:void 0,e.next=4,this.handlePopUpBuy({orderParams:null==t?void 0:t.orderParams,btnType:"cart"},r);case 4:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"resetCommodityKeys",value:function(e){var t,r=this.commodity,n=[],o=this.defaultValues;(r&&o&&o.length>0&&o.forEach(function(t){if(t.orderParams){var o=t.orderParams.components;o&&(o.forEach(function(t){e.find(function(e){return t.componentCode===e})&&r[t.componentCode]&&(n.find(function(e){return e.code===t.componentCode})||n.push({code:t.componentCode,name:r[t.componentCode].name}))}),["order_time","ord_time","order_num"].forEach(function(t){e.find(function(e){return e===t})&&r[t]&&(n.find(function(e){return e.code===t})||n.push({code:t,name:r[t].name}))}))}}),!r||n&&n.length<3)&&((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){e&&e.checked&&n.length<3&&n.push({code:e.code,name:e.name})});return n}},{key:"groupStaticModule",value:function(e){var t,r=this,n=it({},e);return((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){if(e&&e.checked){var t=r._checkedFeatureList.options.find(function(t){return t.value===e.code});t&&(n[e.code]=[{text:t.text,label:t.label,value:t.text}])}}),n}},{key:"getTitle",value:function(){return this.title}},{key:"getDescription",value:function(){return this.description}},{key:"hasLoaded",value:function(){return this._staticLoaded}},{key:"getDisplayComponents",value:function(){var e=this;if(!this.isPackage){var t=this._commodityKeys,r=this._displayComponents,n=[];return t.forEach(function(t){r[t.code]&&n.push({label:t,options:r[t.code],target:e})}),n}var o=[];return this.children.forEach(function(e){var t=e.getDisplayComponents();t&&(o=[].concat(ge(o),ge(t)))}),o.splice(0,3)}},{key:"formatTime",value:function(e,t){return!this.isPackage&&t?e?"/".concat(e):"/".concat(t.duration).concat(t.pricingCycleTitle):""}},{key:"getPrice",value:(t=T(ae.mark(function e(){var t,r,n,o,i,a,c,l,s,u,f,d,p,m,y,b,v,h,g,w,O,j,x,P,E,S,_,C,N,k,D=this,I=arguments;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=I.length>0&&void 0!==I[0]?I[0]:{},!(o=Je(this))){e.next=5;break}return this.isPostPay=!!o.isPostPay,e.abrupt("return",it(it({},o),{},{promotionTags:this._staticLabels}));case 5:return i=n.activityChannel,a=n.stealth,c=n.needActivityId,l=He(this),e.next=9,gt({goodsId:this.goodsId,orderParams:l,planId:this.planId,activityChannel:i,stealth:a,activityId:c?this.activityId:void 0,orderParamsOption:this._orderParamsOption});case 9:return s=e.sent,u=s.labelItemKey,f=s.promotionLabelInfo,d=s.promotionResults,p=s.hasPromotion,m=s.depreciateInfo,y=void 0===m?{}:m,b=s.articleItemResults,v=s.isPostPay,h=s.postPayModules,g=s.watchActivityResultList,w=this.getTimeUnit({orderParams:l,isPostPay:v}),O=ke({isPackage:this.isPackage,isResourcePackage:this.isResourcePackage},s,w),j=De(f,u),x=Le(f,u),this._promotionTags=null==j?void 0:j.tags,P=u&&(null==d?void 0:d[u])||void 0,E=null==f||null===(t=f.common)||void 0===t?void 0:t.extraInfo,_=(S=E||{}).enterpriseUserOnly,C=S.personalUserOnly,v&&h&&h.length>0?(this.isPostPay=!0,h.forEach(function(e){e.code=s.code,e.formatPrice=ke({isPostPay:v,isResourcePackage:D.isResourcePackage},e,"",3)})):this.isPostPay=!1,N=_?"enterprise":C?"personal":"all",s&&s.price&&w&&(s.price.pricingCycle=w.replace(/^\//,"")),k=[],this.isPackage&&(k=rt({good:this,priceRes:s})),this._promationPriceResult={price:null==s?void 0:s.price,promotionTags:this._promotionTags,depreciateInfo:y,formatPrice:O,promotionResult:P,hasPromotion:p,discountRule:x,is99Price:(null==P||null===(r=P.promotionOption)||void 0===r||null===(r=r.activityExtInfo)||void 0===r?void 0:r.discountScene)===Ve.NinetyNinePrice||!1,articleItemResults:b,needCertifiedType:N,isPostPay:v,postPayModules:h,crowdTag:Ye(E),watchActivityResultList:g,articlePriceResults:k},e.abrupt("return",this._promationPriceResult);case 26:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"getComboPrice",value:(e=T(ae.mark(function e(t){var r,n,o,i,a,c,l,s,u,f,d,p,m,y,b,v,h,g,w,O,j,x,P,E,S;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(n=t||{}).refresh,i=Be(n,nt),a=this._promationPriceResult,!o){e.next=6;break}return e.next=5,this.getPrice(i);case 5:a=e.sent;case 6:if(this.isPackage){e.next=8;break}return e.abrupt("return",a);case 8:return c=He(this),l=this.getTimeUnit({orderParams:c,isPostPay:a.isPostPay}),s=this.children||[],u=null===(r=a.articleItemResults)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.code,f=a.articleItemResults.filter(function(e){var t=e.key,r=s.find(function(e){return e.uniqKey===t});return r&&r.selected}),d=Ne({articleItemResults:f}),p=d.discountedPrice,m=d.totalPrice,y=d.discount,v={unit:l,digital:2},h=[{noPermission:u,money:p},{noPermission:u,money:b=m||0},{ignorePermission:!0,money:m},{ignorePermission:!0,money:y,defaultCondition:function(){return y<=0}}].map(function(e){return e=Object.assign(v,e),Ce(e)}),g=R(h,4),w=g[0],O=g[1],j=g[2],x=g[3],P={promotionPrice:w,listPrice:O,dailyPrice:j,activityDiscount:x},E=Object.assign(a.formatPrice||{},P),S=Object.assign(a.price||{},{discountedPrice:p,listPrice:b,totalPrice:m,discount:y,activityDiscount:y}),e.abrupt("return",it(it({},a),{},{price:S,formatPrice:E}));case 21:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"getStringValue",value:function(e){return"number"==typeof e?"".concat(e):e}},{key:"changeSku",value:function(e,t,r){var n=this;if(this._orderParamsOption.isManualQueryPrice=!0,this.selectedComponentValue[t]=this.getStringValue(e),this.isPackage)if(r&&r.target)r.target.changeSku(e,t);else for(var o=0;o<this.children.length;o++){if(this.children[o]._commodityKeys)if(this.children[o]._commodityKeys.find(function(e){return e.code===t})){this.children[o].changeSku(e,t);break}}else{var i={};if(this.commodity){var a=tt(0,this._commodityKeys,this.defaultValues,i,this.commodity,this.selectedComponentValue),c=Object.keys(this.selectedComponentValue),l=a.find(function(e){var t=e.value,r=c.every(function(e){return n.getStringValue(t[e])===n.selectedComponentValue[e]});return r});l&&(this.selectedCardIndex=l.cardIndex);var s=Object.keys(i);s&&s.length<3&&(i=this.groupStaticModule(i))}else i=this.groupStaticModule(i);this._displayComponents=i}}},{key:"setParent",value:function(e){this.parent=e}},{key:"selected",get:function(){if(this.parent)return!!this.planInstanceIsRequired||Boolean(this._rawGood.accessories.defaultChecked)},set:function(e){this.parent&&!this.planInstanceIsRequired&&(this._rawGood.accessories.defaultChecked=e)}},{key:"getSelectedGoods",value:function(){return this.isPackage?this.children.filter(function(e){return e.selected}):null}}]);var e,t,r,n,o}();function ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var lt=function(e){var t=e.good,r=e.order,n=void 0===r?0:r,o=t.commodityCode,i=t.goodsId,a=t.id;return"".concat(o,".").concat(i||a,".").concat(n)},st=function(e){var t=e.goodsList,r=void 0===t?[]:t,n=e.planCode,o=void 0===n?"":n;return r.map(function(e,t){return new at({good:e,planCode:o,order:t})})},ut=function(e){var t=e.articleItemResults,r=e.activityChannel,n=e.promotionPriceData,o=(null==t?void 0:t.length)>0?t[0]:{};if(r&&o&&o.price){var i,a=(null==n||null===(i=n.articleItemResults)||void 0===i?void 0:i.length)>0?null==n?void 0:n.articleItemResults[0]:{},c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},(null==o?void 0:o.price)||{});o.price=null==a?void 0:a.price,o.price.channelPrice=null==c?void 0:c.discountedPrice,o.price.channelTotalPrice=null==c?void 0:c.discountedTotalPrice,o.price.channelDiscount=null==c?void 0:c.discount}if(o&&o.price){var l,s,u=o.depreciateInfo,f=void 0===u?{}:u;if(f){var d=f.isContractActivity,p=f.contractActivity;if(d){var m=(void 0===p?{}:p).finalFee;o.price.cheapStandAmount=m||o.price.totalPrice}else o.price.cheapStandAmount=f.cheapStandAmount||f.originalStandAmount;o.price.listPrice=f.listPrice}var y=function(e){if(e){var t=Object.entries(e).find(function(e){var t,r=e[1];return(null==r||null===(t=r.promotionOption)||void 0===t?void 0:t.levelCategory)===We.DoubleDiscount});if(t){var r=t[1].promotionOption,n=void 0===r?{}:r;return{doubleDiscount:n.discount,remainDiscountQuota:n.remainDiscountQuota}}}}(null==n?void 0:n.promotionResults);y&&(o.price.doubleDiscount=y.doubleDiscount,o.price.remainDiscountQuota=y.remainDiscountQuota),o.price.activityDiscount=null!=y&&y.doubleDiscount&&null!=o&&null!==(l=o.price)&&void 0!==l&&l.discount?o.price.discount-y.doubleDiscount:null==o||null===(s=o.price)||void 0===s?void 0:s.discount}return o},ft=function(e){var t=(null==e?void 0:e.articleItemResults)||[],r={discountedPrice:0,totalPrice:0,discount:0},n=Ne({articleItemResults:t}),o=n.discountedPrice,i=n.totalPrice,a=n.discount;return r.discount=a||0,r.discountedPrice=o||0,r.totalPrice=i||0,r.totalPrice&&(r.listPrice=r.totalPrice),r.discount&&(r.activityDiscount=r.discount),r},dt=function(e,t){var r=e.filter(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).price,t=void 0===e?{}:e;return t&&t.discountedPrice>=0&&t.unitPrice>0}),n=[];return r&&r.length>0&&r.forEach(function(e,r){var o=ut({articleItemResults:[e]}),i=o.name,a=o.depreciateInfo,c=o.price;n.push({id:"".concat(r,"-").concat(i),name:i,depreciateInfo:a||{},price:c,priceAdjustTime:t})}),n},pt=function(){var e=T(ae.mark(function e(t,r){var n,o,i;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object.keys(t),o=Object.keys(r),n&&n.length>0?n.forEach(function(e){o.forEach(function(t){e===t&&(i=e)})}):i=o&&o.length>0?o[0]:"",e.abrupt("return",{labelItemKey:i,hasPromotion:o&&o.length>0});case 4:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),mt=function(e){var t=e;if(e){var r=t.split(" ");if(r&&r.length>0&&"string"==typeof r[0]){var n=[];r[0].split("-").forEach(function(e){n.push(1*e)}),t=n.join(".")}}return t};const yt=function(){var e=T(ae.mark(function e(t){var r,n,o,i,a,c,l,s,u,f,d,p,m,y,b,v,h,g,w,O,j;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.planId,n=t.activityChannel,e.next=3,Ue(t);case 3:return i=e.sent,Array.isArray(i.data)&&n?(c=null===(l=i.data[0])||void 0===l?void 0:l.data,a=null===(s=i.data[1])||void 0===s?void 0:s.data,o=i.data[0].code||200):(a=i.data,o=i.code),f=(null==(u=c||a)?void 0:u.promotionResults)||{},d=(null==u?void 0:u.promotionLabelInfo)||{},e.next=10,pt(d,f);case 10:return p=e.sent,m=p.labelItemKey,y=p.hasPromotion,b=null==u?void 0:u.articleItemResults,v={},r?(h=ft(u),v={price:h,hasPromotion:y,articleItemResults:b,promotionResults:f}):(w=ut({articleItemResults:b,activityChannel:n,promotionPriceData:a}),O=mt((null==w||null===(g=w.depreciateInfo)||void 0===g?void 0:g.startTime)||""),v={price:w.price,promotionResults:f,promotionLabelInfo:d,depreciateInfo:(null==w?void 0:w.depreciateInfo)||{},labelItemKey:m,hasPromotion:y,priceAdjustTime:O,watchActivityResultList:null==w?void 0:w.watchActivityResultList},(j=w.chargeType===Me.PostPay)&&(v.isPostPay=j,v.postPayModules=dt(w.moduleResults,O))),200!==o&&-1!==Object.keys(we).indexOf(o)&&(v.code=o),e.abrupt("return",v);case 18:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var bt=new he;const vt=function(){var e=T(ae.mark(function e(t){var r;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,se(function(){var e=T(ae.mark(function e(n){var o,i,a;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o="https://alioth.alicdn.com/promotion-commodity-".concat(t),!bt.getGood(t)){e.next=5;break}i=bt.getGood(t),e.next=12;break;case 5:return e.next=7,n.Request.get(o,null,{withCredentials:!1,xsrfCookieName:""});case 7:(i=e.sent).scm="20140722.M_".concat(i.id,"._.V_1"),i.staticLoaded=!0,i&&"plan"===i.comType&&i.actPromotionCommodityDTOList&&(a=i.actPromotionCommodityDTOList.find(function(e){return"POSTPAY"===e.chargeType}),i.children=i.actPromotionCommodityDTOList,i.hasPostPay=!!a,i.children=st({goodsList:i.children,planCode:i.commodityCode})),bt.setGood(t,i);case 12:return i&&(r=new at({good:i,planCode:i.commodityCode})),e.abrupt("return",{});case 14:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0);case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}},e,null,[[0,5]])}));return function(t){return e.apply(this,arguments)}}();new he;const ht=T(ae.mark(function e(){var t;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=4,se(function(){var e=T(ae.mark(function e(r){var n;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.Request.get("https://bridge.aliyun.com/abs/home/queryUserBaseInfo");case 2:n=e.sent,t=n&&n.data;case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1);case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}},e,null,[[1,6]])}));var gt=yt,wt=vt,Ot=ht,jt=function(e,t){if(e&&Array.isArray(e)){var r=e.find(function(e){return e.attrCode===t});return null==r?void 0:r.attrValue}};var xt=function(){function e(){me(this,e)}return be(e,null,[{key:"stopUpdating",value:function(){this._updateIntervalId&&clearInterval(this._updateIntervalId)}},{key:"stopCount",value:function(){this._countIntervalId&&clearInterval(this._countIntervalId)}},{key:"startUpdating",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.debounce;this._updateIntervalId||(this._updateIntervalId=setInterval(T(ae.mark(function e(){return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:se(function(){var e=T(ae.mark(function e(r){var n;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.Time.getTimeStamp();case 2:n=e.sent,t._clientCur=n;case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),r))}},{key:"startCount",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.interval;this._countIntervalId||(this._countIntervalId=setInterval(function(){t._clientCur=(t._clientCur||Date.now())+r},r))}},{key:"init",value:function(e){this.deps.includes(e)||this.deps.push(e),this.startUpdating(),this.startCount()}},{key:"stop",value:function(e){var t=this.deps.findIndex(function(t){return e===t});-1!==t&&(this.deps.splice(t,1),this.deps.length||(this.stopUpdating(),this.stopCount(),this._clientCur=null))}},{key:"getClientCur",value:function(){return e._clientCur}}])}();O(xt,"_clientCur",null),O(xt,"_updateIntervalId",null),O(xt,"_countIntervalId",null),O(xt,"deps",[]),O(xt,"debounce",1e4),O(xt,"interval",1e3);var Pt=function(){},Et=function(){return be(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._countInterval;me(this,e),O(this,"interval",void 0),O(this,"runningMap",new Map),this.interval=t},[{key:"clear",value:function(e){var t=(this.runningMap.get(e)||{}).timer;t&&clearInterval(t),this.runningMap.delete(e),xt.stop(e)}},{key:"start",value:function(e){var t=this,r=e.cacheKey,n=e.end,o=e.onStep,i=e.onEnd,a=e.onStop,c=this.runningMap.get(r)||{},l=c.running,s=c.timer;if(!l){xt.init(r),s=setInterval(function(){var e=xt.getClientCur()||Date.now();Math.round((n-e)/1e3)<0&&(null==i||i(e),t.clear(r)),null==o||o(e)},this.interval);var u={onStep:o||Pt,onStop:a||Pt,onEnd:i,end:n,running:!0,timer:s};this.runningMap.set(r,u)}}},{key:"stop",value:function(e){var t=this.runningMap.get(e);if(t){var r=t.onStop;null==r||r(xt.getClientCur()||Date.now()),this.clear(e)}}}])}();O(Et,"_countInterval",2e3);var St=function(e,t){for(var r=e.length;r-- >0;)if(t(e[r],r))return r;return-1};function _t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Ct=function(e){var t=e.sessions,r=e.activityErrors,n=void 0===r?[]:r,o=e.activityId,i=void 0===o?"":o,a=e.cur,c=e.isLogin,l=e.isCertificated;if(!Array.isArray(t)||!i)return P;var s,u,f,d=n.find(function(e){return(null==e?void 0:e.activityId)&&i&&String(e.activityId)===String(i)&&!!e.errorCode}),p=t.find(function(e){return e.startTime&&e.endTime&&(null==e?void 0:e.startTime)<=a&&(null==e?void 0:e.endTime)>=a}),m=null==t?void 0:t[0],y=St(t,function(e,r){var n=null==t?void 0:t[r+1];return n?a>(null==e?void 0:e.endTime)&&a<(null==n?void 0:n.startTime):a>(null==e?void 0:e.endTime)}),b=St(t,function(e){return Math.floor((null==e?void 0:e.progress)||0)>100||100===Math.floor((null==e?void 0:e.progress)||0)}),v=St(t,function(e){return e.startTime&&e.endTime&&(null==e?void 0:e.startTime)<=a&&(null==e?void 0:e.endTime)>=a});if(0===(null==t?void 0:t.length)||0!==t.length&&y===t.length-1||0!==t.length&&b===t.length-1){var h=0!==t.length&&b===t.length-1;return{flashState:j.END,startTime:null,endTime:null,progress:100,isCurSessionSoldOut:h}}return m&&null!=m&&m.startTime&&m.startTime>a?{flashState:j.READY,startTime:null==m?void 0:m.startTime,endTime:null==m?void 0:m.endTime,progress:0}:-1!==b&&b<t.length-1&&(-1===v||v===b)||-1!==y&&y<t.length-1&&-1===v?(-1!==b&&b<t.length-1&&(-1===v||v===b)&&(f=t[b+1]),-1!==y&&y<t.length-1&&-1===v&&(f=t[y+1]),{flashState:j.SOLD_OUT,startTime:null===(s=f)||void 0===s?void 0:s.startTime,endTime:null===(u=f)||void 0===u?void 0:u.endTime,progress:100}):!(p&&Math.floor((null==p?void 0:p.progress)||0)<100)||(c&&l||!d)&&d?(d&&null!=d&&d.errorCode,E):function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({flashState:j.EFFECTIVE},p)},Nt=function(){return be(function e(t,r){me(this,e),O(this,"req",void 0),O(this,"interval",void 0),O(this,"timerId",void 0),O(this,"running",void 0),this.req=t,this.interval=r,this.timerId=null,this.running=!1},[{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.running||(this.pollInternal(e),this.running=!0)}},{key:"stop",value:function(){this.timerId&&clearTimeout(this.timerId),this.timerId=null,this.running=!1}},{key:"pollInternal",value:(e=T(ae.mark(function e(t){var r=this;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.req(t);case 2:this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){r.pollInternal(t)},this.interval);case 4:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e}(),kt=["pre-","localhost","dev.aliyun.com"].some(function(e){return window.location.host.startsWith(e)})?"//pre-t.aliyun.com":"//t.aliyun.com",Dt=function(){var e=T(ae.mark(function e(t){var r;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,se(function(){var e=T(ae.mark(function e(n){return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.Request.get("".concat(kt,"/abs/promotion/queryActivityInventory"),{activityIds:t,preView:!0});case 2:r=e.sent;case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 2:return e.abrupt("return",r&&r.data);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();function It(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?It(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var At=function(e){var t,r=e.accountStatus,n=e.goods,o=function(e){var t=R(p.useState(),2),r=t[0],n=t[1],o=R(p.useState(!0),2),i=o[0],a=o[1],c=function(){var t=T(ae.mark(function t(r){var o,i,c,l,s;return ae.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r.withActId,i=void 0!==o&&o,c=r.showLoading,(l=void 0===c||c)&&a(!0),null==e||!e.getPrice){t.next=12;break}return t.next=5,e.getPrice({needActivityId:i});case 5:if(s=t.sent){t.next=9;break}return l&&a(!1),t.abrupt("return",null);case 9:return n(s),l&&a(!1),t.abrupt("return",s);case 12:return l&&a(!1),t.abrupt("return",null);case 14:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}();return{price:r,loading:i,getPrice:c}}(n),i=o.getPrice,a=o.price,c=o.loading,l=function(e){var t,r=null==e||null===(t=e.activityId)||void 0===t?void 0:t.flash_sale_activity_id,n=R(p.useState(),2),o=n[0],i=n[1],a=function(){var e=T(ae.mark(function e(t){var r;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=12;break}return e.prev=1,e.next=4,Dt(t);case 4:return r=e.sent,i(null==r?void 0:r[t]),e.abrupt("return",null==r?void 0:r[t]);case 9:e.prev=9,e.t0=e.catch(1),se(function(){var r=T(ae.mark(function r(n){return ae.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:n.Logger.fatal("\u83b7\u53d6\u5546\u54c1\u6d3b\u52a8\u573a\u6b21\u6570\u636e".concat(t,"\u53d1\u751f\u9519\u8bef").concat(e.t0.message),{},{tags:"ace-flash-sale-card"});case 1:case"end":return r.stop()}},r)}));return function(e){return r.apply(this,arguments)}}());case 12:case"end":return e.stop()}},e,null,[[1,9]])}));return function(t){return e.apply(this,arguments)}}(),c=p.useMemo(function(){return new Nt(a,1e4)},[]);return{refresh:function(e){return a(e)},sessions:o,start:function(){c.start(r)},stop:function(){c.stop()}}}(n),s=p.useMemo(function(){return new Et},[]),u=null==l?void 0:l.sessions,f=(null==a?void 0:a.watchActivityResultList)||[],d=null==n||null===(t=n.activityId)||void 0===t?void 0:t.flash_sale_activity_id,m=Ct(Tt(Tt({},r),{},{sessions:u,activityErrors:f,cur:xt.getClientCur()||Date.now(),activityId:d}))||P;p.useEffect(function(){var e=m||{},t=e.flashState,r=e.startTime,o=e.endTime;[j.READY,j.SOLD_OUT].includes(t)&&r&&o&&(s.start({cacheKey:"FLASH_SALE_START",end:r+200,onEnd:function(){i({withActId:!0})}}),s.start({cacheKey:x,end:o+200,onEnd:function(){var e;l.refresh(null==n||null===(e=n.activityId)||void 0===e?void 0:e.flash_sale_activity_id)}})),[j.EFFECTIVE].includes(t)&&o&&s.start({cacheKey:x,end:o+200,onEnd:function(){var e;l.refresh(null==n||null===(e=n.activityId)||void 0===e?void 0:e.flash_sale_activity_id)}}),[j.END].includes(null==m?void 0:m.flashState)&&l.stop()},[null==m?void 0:m.flashState]);var y=function(){var e=T(ae.mark(function e(){var t,o,a,c,s;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null==l?void 0:l.refresh(null==n||null===(t=n.activityId)||void 0===t?void 0:t.flash_sale_activity_id);case 2:if(a=function(){var e;return(null==n?void 0:n.handlePopUpBuy)&&(null==n?void 0:n.handlePopUpBuy({orderParams:{order_activity_id:null==n||null===(e=n.activityId)||void 0===e?void 0:e.flash_sale_activity_id}}))},r.isLogin&&r.isCertificated){e.next=6;break}return a(),e.abrupt("return");case 6:return e.next=8,i({withActId:!0,showLoading:!1});case 8:if(c=e.sent,s=null==n||null===(o=n.activityId)||void 0===o?void 0:o.flash_sale_activity_id,c){e.next=12;break}return e.abrupt("return");case 12:((null==c?void 0:c.watchActivityResultList)||[]).find(function(e){return(null==e?void 0:e.activityId)&&s&&String(e.activityId)===String(s)&&!!e.errorCode})||a();case 14:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return{loadingPrice:c,flashInfo:m,price:a,handleSnatch:y,startUpdateFlashInfo:function(){i({withActId:!0}),null==l||l.start()},stopUpdateFlashInfo:function(){null==l||l.stop()}}};function Lt(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Lt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Rt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Lt(e))&&(n&&(n+=" "),n+=t);return n}const Mt="_9a1d73bbcd1a80626a31035a12410804_icon",$t="_9a1d73bbcd1a80626a31035a12410804_spin";function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var zt=["role","spin","component","className","style","children"];function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ut.apply(this,arguments)}function Bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(r),!0).forEach(function(t){Wt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Wt(e,t,r){var n;return n=function(e,t){if("object"!=Ft(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Ft(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var qt=function(e){var t=e.role,r=void 0===t?"img":t,n=e.spin,o=e.component,i=e.className,a=e.style;e.children;var c=Gt(e,zt);return p.createElement("span",Ut({role:r,className:Rt(Mt,Wt({},$t,n),i),style:Vt({},a)},c),o)};function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yt.apply(this,arguments)}qt.displayName="AdcIcon";function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kt.apply(this,arguments)}function Qt(){return Qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qt.apply(this,arguments)}function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ht.apply(this,arguments)}function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zt.apply(this,arguments)}var Xt=function(e){return p.createElement(qt,Zt({spin:!1,component:p.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"arrow-up"},p.createElement("g",{clipPath:"url(#0ccca)"},p.createElement("g",null,p.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M14.99999875,7.914250634155273L8.70717875,14.207090634155273L7.29296875,12.792860634155273L16.00007875,4.0857658386552735L24.70716875,12.792860634155273L23.29296875,14.207090634155273L16.99999875,7.9141006341552735L16.99999875,27.999990634155274L14.99999875,27.999990634155274L14.99999875,7.914250634155273Z"}))))},e))};function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jt.apply(this,arguments)}var er=function(e){return p.createElement(qt,Jt({spin:!1,component:p.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"chevron-right"},p.createElement("g",{clipPath:"url(#20bea)"},p.createElement("g",null,p.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M10.29296875,25.29290771484375L19.58585875,16.00000771484375L10.29296875,6.70711771484375L11.70717875,5.29290771484375L22.414268749999998,16.00000771484375L11.70717875,26.70710771484375L10.29296875,25.29290771484375Z"}))))},e))};function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tr.apply(this,arguments)}var rr=function(e){return p.createElement(qt,tr({spin:!1,component:p.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"close"},p.createElement("g",null,p.createElement("g",null,p.createElement("path",{fillOpacity:1,d:"M17.41438046875,15.999036328125L26.70768046875,25.292336328125L25.29348046875,26.706536328125L16.000180468750003,17.413236328125002L6.70669046875,26.706636328125L5.29248046875,25.292436328125L14.58598046875,15.998936328125L5.29352759875,6.706446328125L6.70775046875,5.292236328125L16.000180468750003,14.584766328125L25.29258046875,5.292462826125L26.70678046875,6.706686328125L17.41438046875,15.999036328125Z"}))))},e))};function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nr.apply(this,arguments)}var or=function(e){return p.createElement(qt,nr({spin:!0,component:p.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"spin","data-icon":"loading"},p.createElement("g",null,p.createElement("g",{transform:"matrix(-1,0,0,1,58,0)"},p.createElement("path",{fillOpacity:1,d:"M42,3L43,3L43,5L42,5C40.5076,5,39.0805,5.28801,37.71861,5.86403C36.40271,6.42061,35.23711,7.20654,34.22183,8.22183C33.206540000000004,9.23712,32.4206,10.402709999999999,31.86402,11.71861C31.28801,13.0805,31,14.5076,31,16C31,17.4924,31.28801,18.9195,31.86402,20.2814C32.4206,21.5973,33.206540000000004,22.7629,34.22183,23.7782C35.23711,24.7935,36.40271,25.5794,37.71861,26.136C39.0805,26.712,40.5076,27,42,27C43.4924,27,44.9195,26.712,46.281400000000005,26.136C47.597300000000004,25.5794,48.7629,24.7935,49.7782,23.7782C50.7935,22.7629,51.5794,21.5973,52.135999999999996,20.2814C52.712,18.9195,53,17.4924,53,16L53,15L55,15L55,16C55,17.7628,54.6593,19.4496,53.978,21.0605C53.3201,22.6159,52.3916,23.9932,51.1924,25.1924C49.9932,26.3916,48.615899999999996,27.3201,47.060500000000005,27.978C45.449600000000004,28.6593,43.7628,29,42,29C40.2372,29,38.55039,28.6593,36.93951,27.978C35.38409,27.3201,34.00679,26.3916,32.80761,25.1924C31.60843,23.9932,30.6799,22.6159,30.02202,21.0605C29.340672,19.4496,29,17.7628,29,16C29,14.2372,29.340672,12.55039,30.02202,10.93951C30.6799,9.38409,31.60843,8.006789999999999,32.80761,6.80762C34.00679,5.60844,35.38409,4.67991,36.93951,4.0220199999999995C38.550380000000004,3.340673,40.2372,3,42,3Z"}))))},e))};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}var ar=function(e){return p.createElement(qt,ir({spin:!1,component:p.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"caution"},p.createElement("g",{clipPath:"url(#f904a)"},p.createElement("g",null,p.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M21.0605,4.0220199999999995Q18.644199999999998,3,16,3Q13.3558,2.999999761581,10.939530000000001,4.0220199999999995Q8.60641,5.00884,6.80761,6.8076Q5.00884,8.6064,4.0220199999999995,10.939530000000001Q3,13.3558,3,16Q2.999999761581,18.644199999999998,4.0220199999999995,21.0605Q5.00885,23.3936,6.80761,25.1924Q8.6064,26.9911,10.93952,27.978Q13.3558,29,16,29Q18.644199999999998,29,21.0605,27.978Q23.3936,26.9911,25.1924,25.1924Q26.9911,23.3936,27.978,21.0605Q29,18.644199999999998,29,16Q29,13.3558,27.978,10.93952Q26.9911,8.6064,25.1924,6.80761Q23.3936,5.00885,21.0605,4.0220199999999995ZM11.71863,5.86402Q13.7614,5,16,5Q18.238599999999998,5,20.2814,5.86402Q22.2552,6.6989,23.7782,8.221820000000001C24.7935,9.23713,25.5794,10.40273,26.136,11.71863Q27,13.7614,27,16Q27,18.238599999999998,26.136,20.2814C25.5794,21.5973,24.7935,22.7629,23.7782,23.7782C22.7629,24.7935,21.5973,25.5794,20.2814,26.136Q18.238599999999998,27,16,27Q13.7614,27,11.71863,26.136C10.40273,25.5794,9.23713,24.7935,8.221820000000001,23.7782Q6.6989,22.2552,5.86402,20.2814Q5,18.238599999999998,5,16Q5,13.7614,5.86402,11.71863C6.4206,10.40273,7.20653,9.23713,8.22181,8.22183Q9.744769999999999,6.6988900000000005,11.71863,5.86402ZM17,18.9999L17,8.999939999999999L15,8.999939999999999L15,18.9999L17,18.9999ZM17.493299999999998,22.8218C17.4981,22.7729,17.500500000000002,22.7239,17.500500000000002,22.6748C17.500500000000002,22.6257,17.4981,22.5767,17.493299999999998,22.5278C17.4884,22.4789,17.4812,22.4304,17.4717,22.3822C17.4621,22.334,17.450200000000002,22.2864,17.4359,22.2394C17.421599999999998,22.1924,17.405099999999997,22.1462,17.3863,22.1008C17.3675,22.0554,17.3465,22.011,17.3234,21.9677C17.3002,21.9244,17.275,21.8823,17.247700000000002,21.8414C17.220399999999998,21.8006,17.191200000000002,21.7612,17.16,21.7232C17.1288,21.6852,17.0959,21.6489,17.0611,21.6141C17.026400000000002,21.5794,16.990099999999998,21.5465,16.9521,21.5153C16.914099999999998,21.4841,16.8747,21.4549,16.8338,21.4276C16.793,21.4003,16.7509,21.3751,16.7076,21.3519C16.6643,21.3288,16.6199,21.3078,16.5745,21.289C16.5291,21.2702,16.4829,21.2537,16.4359,21.2394C16.3889,21.2251,16.3413,21.2132,16.293100000000003,21.2036C16.2449,21.194,16.1964,21.1868,16.1475,21.182C16.098599999999998,21.1772,16.049599999999998,21.1748,16.000500000000002,21.1748C15.9514,21.1748,15.9024,21.1772,15.8535,21.182C15.8046,21.1868,15.756,21.194,15.7078,21.2036C15.6597,21.2132,15.6121,21.2251,15.5651,21.2394C15.518,21.2537,15.4719,21.2702,15.4265,21.289C15.3811,21.3078,15.3367,21.3288,15.2934,21.3519C15.2501,21.3751,15.208,21.4003,15.1671,21.4276C15.1263,21.4549,15.0869,21.4841,15.0489,21.5153C15.0109,21.5465,14.9746,21.5794,14.9398,21.6141C14.9051,21.6489,14.8721,21.6852,14.841,21.7232Q14.7942,21.7802,14.7533,21.8414C14.726,21.8823,14.7008,21.9244,14.6776,21.9677C14.6544,22.011,14.6335,22.0554,14.6147,22.1008C14.5959,22.1462,14.5793,22.1924,14.5651,22.2394C14.5508,22.2864,14.5389,22.334,14.5293,22.3822C14.5197,22.4304,14.5125,22.4789,14.5077,22.5278C14.5029,22.5767,14.5005,22.6257,14.5005,22.6748C14.5005,22.7239,14.5029,22.7729,14.5077,22.8218C14.5125,22.8707,14.5197,22.9193,14.5293,22.9674C14.5389,23.0156,14.5508,23.0632,14.5651,23.1102C14.5793,23.1572,14.5959,23.2034,14.6147,23.2488C14.6335,23.2942,14.6544,23.3386,14.6776,23.3819C14.7008,23.4252,14.726,23.4673,14.7533,23.5082Q14.7942,23.5694,14.841,23.6264C14.8721,23.6644,14.9051,23.7007,14.9398,23.7355C14.9746,23.7702,15.0109,23.8032,15.0489,23.8343C15.0869,23.8655,15.1263,23.8947,15.1671,23.922C15.208,23.9493,15.2501,23.9745,15.2934,23.9977C15.3367,24.0208,15.3811,24.0418,15.4265,24.0606C15.4719,24.0794,15.518,24.096,15.5651,24.1102C15.6121,24.1245,15.6597,24.1364,15.7078,24.146C15.756,24.1556,15.8046,24.1628,15.8535,24.1676C15.9024,24.1724,15.9514,24.1748,16.000500000000002,24.1748C16.049599999999998,24.1748,16.098599999999998,24.1724,16.1475,24.1676C16.1964,24.1628,16.2449,24.1556,16.293100000000003,24.146C16.3413,24.1364,16.3889,24.1245,16.4359,24.1102C16.4829,24.096,16.5291,24.0794,16.5745,24.0606C16.6199,24.0418,16.6643,24.0208,16.7076,23.9977C16.7509,23.9745,16.793,23.9493,16.8338,23.922C16.8747,23.8947,16.914099999999998,23.8655,16.9521,23.8343C16.990099999999998,23.8032,17.026400000000002,23.7702,17.0611,23.7355C17.0959,23.7007,17.1288,23.6644,17.16,23.6264C17.191200000000002,23.5884,17.220399999999998,23.549,17.247700000000002,23.5082C17.275,23.4673,17.3002,23.4252,17.3234,23.3819C17.3465,23.3386,17.3675,23.2942,17.3863,23.2488C17.405099999999997,23.2034,17.421599999999998,23.1572,17.4359,23.1102C17.450200000000002,23.0632,17.4621,23.0156,17.4717,22.9674C17.4812,22.9193,17.4884,22.8707,17.493299999999998,22.8218Z"}))))},e))};function cr(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function lr(...e){return t=>{let r=!1;const n=e.map(e=>{const n=cr(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():cr(e[t],null)}}}}function sr(...e){return v.useCallback(lr(...e),e)}var ur={exports:{}},fr={},dr=p,pr=60103;if(fr.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var mr=Symbol.for;pr=mr("react.element"),fr.Fragment=mr("react.fragment")}var yr=dr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,br=Object.prototype.hasOwnProperty,vr={key:!0,ref:!0,__self:!0,__source:!0};function hr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)br.call(t,n)&&!vr.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:pr,type:e,key:i,ref:a,props:o,_owner:yr.current}}fr.jsx=hr,fr.jsxs=hr,ur.exports=fr;var gr=ur.exports,wr=Symbol.for("react.lazy"),Or=v[" use ".trim().toString()];function jr(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===wr&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function xr(e){const t=Er(e),r=v.forwardRef((e,r)=>{let n=e,{children:o}=n,i=d(n,["children"]);jr(o)&&"function"==typeof Or&&(o=Or(o._payload));const a=v.Children.toArray(o),c=a.find(_r);if(c){const e=c.props.children,n=a.map(t=>t===c?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t);return gr.jsx(t,f(u({},i),{ref:r,children:v.isValidElement(e)?v.cloneElement(e,void 0,n):null}))}return gr.jsx(t,f(u({},i),{ref:r,children:o}))});return r.displayName=`${e}.Slot`,r}var Pr=xr("Slot");function Er(e){const t=v.forwardRef((e,t)=>{let r=e,{children:n}=r,o=d(r,["children"]);if(jr(n)&&"function"==typeof Or&&(n=Or(n._payload)),v.isValidElement(n)){const e=function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;if(o)return e.ref;if(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const r=u({},t);for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]=u(u({},o),i):"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return u(u({},e),r)}(o,n.props);return n.type!==v.Fragment&&(r.ref=t?lr(t,e):e),v.cloneElement(n,r)}return v.Children.count(n)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sr=Symbol("radix.slottable");function _r(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Sr}const Cr=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Nr=Rt,kr=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return Nr(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const a=Cr(t)||Cr(n);return o[e][a]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let r=t,{class:n,className:o}=r,a=d(r,["class","className"]);return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes(u(u({},i),c)[t]):u(u({},i),c)[t]===r})?[...e,n,o]:e},[]);return Nr(e,a,l,null==r?void 0:r.class,null==r?void 0:r.className)};var Dr=kr("inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{color:{primary:"",secondary:""},type:{default:"border border-bold bg-transparent text-subtle hover:bg-primary hover:border-transparent hover:text-white",solid:"bg-primary text-white hover:bg-primary-hover",outlined:"border border-gray-500 text-primary hover:bg-primary hover:border-transparent hover:text-white",link:"text-primary hover:text-primary-hover no-underline"},size:{sm:"h-7 text-sm",md:"h-8",lg:"h-9",hero:"h-11 text-lg"},block:{true:"w-full",false:null},loading:{true:"opacity-60",false:null}},compoundVariants:[{color:"secondary",type:"default",className:"hover:bg-secondary"},{color:"secondary",type:"outlined",className:"text-secondary hover:bg-secondary"},{color:"secondary",type:"solid",className:"bg-secondary hover:bg-secondary-hover"},{color:"secondary",type:"link",className:"text-secondary hover:text-secondary-hover"},{type:["default","solid","outlined"],size:"sm",className:"px-4"},{type:["default","solid","outlined"],size:"md",className:"px-6"},{type:["default","solid","outlined"],size:"lg",className:"px-9"},{type:["default","solid","outlined"],size:"hero",className:"px-12"}],defaultVariants:{color:"primary",type:"default",size:"md"}}),Ir=kr("inline-flex justify-center items-center",{variants:{size:{sm:"gap-1",md:"gap-2",lg:"gap-3",hero:"gap-4"}},defaultVariants:{size:"md"}});const Tr="object"==typeof global&&global&&global.Object===Object&&global;var Ar="object"==typeof self&&self&&self.Object===Object&&self;const Lr=Tr||Ar||Function("return this")();const Rr=Lr.Symbol;var Mr=Object.prototype,$r=Mr.hasOwnProperty,Fr=Mr.toString,zr=Rr?Rr.toStringTag:void 0;var Ur=Object.prototype.toString;var Br=Rr?Rr.toStringTag:void 0;function Vr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Br&&Br in Object(e)?function(e){var t=$r.call(e,zr),r=e[zr];try{e[zr]=void 0;var n=!0}catch(i){}var o=Fr.call(e);return n&&(t?e[zr]=r:delete e[zr]),o}(e):function(e){return Ur.call(e)}(e)}function Wr(e){return null!=e&&"object"==typeof e}function Gr(e){return"symbol"==typeof e||Wr(e)&&"[object Symbol]"==Vr(e)}function qr(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}const Yr=Array.isArray;var Kr=Rr?Rr.prototype:void 0,Qr=Kr?Kr.toString:void 0;function Hr(e){if("string"==typeof e)return e;if(Yr(e))return qr(e,Hr)+"";if(Gr(e))return Qr?Qr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var Zr=/\s/;var Xr=/^\s+/;function Jr(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Zr.test(e.charAt(t)););return t}(e)+1).replace(Xr,""):e}function en(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var tn=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,nn=/^0o[0-7]+$/i,on=parseInt;function an(e){if("number"==typeof e)return e;if(Gr(e))return NaN;if(en(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=en(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jr(e);var r=rn.test(e);return r||nn.test(e)?on(e.slice(2),r?2:8):tn.test(e)?NaN:+e}function cn(e){if(!en(e))return!1;var t=Vr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const ln=Lr["__core-js_shared__"];var sn,un=(sn=/[^.]+$/.exec(ln&&ln.keys&&ln.keys.IE_PROTO||""))?"Symbol(src)_1."+sn:"";var fn=Function.prototype.toString;function dn(e){if(null!=e){try{return fn.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var pn=/^\[object .+?Constructor\]$/,mn=Function.prototype,yn=Object.prototype,bn=mn.toString,vn=yn.hasOwnProperty,hn=RegExp("^"+bn.call(vn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gn(e){return!(!en(e)||(t=e,un&&un in t))&&(cn(e)?hn:pn).test(dn(e));var t}function wn(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return gn(r)?r:void 0}const On=wn(Lr,"WeakMap");var jn=Object.create;const xn=function(){function e(){}return function(t){if(!en(t))return{};if(jn)return jn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var Pn=Date.now;var En=function(){try{var e=wn(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Sn=En;var _n=Sn?function(e,t){return Sn(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:function(e){return e};var Cn,Nn,kn,Dn=(Cn=_n,Nn=0,kn=0,function(){var e=Pn(),t=16-(e-kn);if(kn=e,t>0){if(++Nn>=800)return arguments[0]}else Nn=0;return Cn.apply(void 0,arguments)});const In=Dn;var Tn=/^(?:0|[1-9]\d*)$/;function An(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Tn.test(e))&&e>-1&&e%1==0&&e<t}function Ln(e,t,r){"__proto__"==t&&Sn?Sn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Rn(e,t){return e===t||e!=e&&t!=t}var Mn=Object.prototype.hasOwnProperty;function $n(e,t,r){var n=e[t];Mn.call(e,t)&&Rn(n,r)&&(void 0!==r||t in e)||Ln(e,t,r)}function Fn(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var c=t[i],l=n?n(r[c],e[c],c,r,e):void 0;void 0===l&&(l=e[c]),o?Ln(r,c,l):$n(r,c,l)}return r}var zn=Math.max;function Un(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Bn(e){return null!=e&&Un(e.length)&&!cn(e)}var Vn=Object.prototype;function Wn(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Vn)}function Gn(e){return Wr(e)&&"[object Arguments]"==Vr(e)}var qn=Object.prototype,Yn=qn.hasOwnProperty,Kn=qn.propertyIsEnumerable,Qn=Gn(function(){return arguments}())?Gn:function(e){return Wr(e)&&Yn.call(e,"callee")&&!Kn.call(e,"callee")};const Hn=Qn;var Zn="object"==typeof t&&t&&!t.nodeType&&t,Xn=Zn&&"object"==typeof r&&r&&!r.nodeType&&r,Jn=Xn&&Xn.exports===Zn?Lr.Buffer:void 0;const eo=(Jn?Jn.isBuffer:void 0)||function(){return!1};var to={};function ro(e){return function(t){return e(t)}}to["[object Float32Array]"]=to["[object Float64Array]"]=to["[object Int8Array]"]=to["[object Int16Array]"]=to["[object Int32Array]"]=to["[object Uint8Array]"]=to["[object Uint8ClampedArray]"]=to["[object Uint16Array]"]=to["[object Uint32Array]"]=!0,to["[object Arguments]"]=to["[object Array]"]=to["[object ArrayBuffer]"]=to["[object Boolean]"]=to["[object DataView]"]=to["[object Date]"]=to["[object Error]"]=to["[object Function]"]=to["[object Map]"]=to["[object Number]"]=to["[object Object]"]=to["[object RegExp]"]=to["[object Set]"]=to["[object String]"]=to["[object WeakMap]"]=!1;var no="object"==typeof t&&t&&!t.nodeType&&t,oo=no&&"object"==typeof r&&r&&!r.nodeType&&r,io=oo&&oo.exports===no&&Tr.process;const ao=function(){try{var e=oo&&oo.require&&oo.require("util").types;return e||io&&io.binding&&io.binding("util")}catch(t){}}();var co=ao&&ao.isTypedArray;const lo=co?ro(co):function(e){return Wr(e)&&Un(e.length)&&!!to[Vr(e)]};var so=Object.prototype.hasOwnProperty;function uo(e,t){var r=Yr(e),n=!r&&Hn(e),o=!r&&!n&&eo(e),i=!r&&!n&&!o&&lo(e),a=r||n||o||i,c=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=c.length;for(var s in e)!t&&!so.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||An(s,l))||c.push(s);return c}function fo(e,t){return function(r){return e(t(r))}}const po=fo(Object.keys,Object);var mo=Object.prototype.hasOwnProperty;function yo(e){return Bn(e)?uo(e):function(e){if(!Wn(e))return po(e);var t=[];for(var r in Object(e))mo.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var bo=Object.prototype.hasOwnProperty;function vo(e){if(!en(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Wn(e),r=[];for(var n in e)("constructor"!=n||!t&&bo.call(e,n))&&r.push(n);return r}function ho(e){return Bn(e)?uo(e,!0):vo(e)}var go=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wo=/^\w*$/;const Oo=wn(Object,"create");var jo=Object.prototype.hasOwnProperty;var xo=Object.prototype.hasOwnProperty;function Po(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Eo(e,t){for(var r=e.length;r--;)if(Rn(e[r][0],t))return r;return-1}Po.prototype.clear=function(){this.__data__=Oo?Oo(null):{},this.size=0},Po.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Po.prototype.get=function(e){var t=this.__data__;if(Oo){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return jo.call(t,e)?t[e]:void 0},Po.prototype.has=function(e){var t=this.__data__;return Oo?void 0!==t[e]:xo.call(t,e)},Po.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Oo&&void 0===t?"__lodash_hash_undefined__":t,this};var So=Array.prototype.splice;function _o(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_o.prototype.clear=function(){this.__data__=[],this.size=0},_o.prototype.delete=function(e){var t=this.__data__,r=Eo(t,e);return!(r<0)&&(r==t.length-1?t.pop():So.call(t,r,1),--this.size,!0)},_o.prototype.get=function(e){var t=this.__data__,r=Eo(t,e);return r<0?void 0:t[r][1]},_o.prototype.has=function(e){return Eo(this.__data__,e)>-1},_o.prototype.set=function(e,t){var r=this.__data__,n=Eo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};const Co=wn(Lr,"Map");function No(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ko(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ko.prototype.clear=function(){this.size=0,this.__data__={hash:new Po,map:new(Co||_o),string:new Po}},ko.prototype.delete=function(e){var t=No(this,e).delete(e);return this.size-=t?1:0,t},ko.prototype.get=function(e){return No(this,e).get(e)},ko.prototype.has=function(e){return No(this,e).has(e)},ko.prototype.set=function(e,t){var r=No(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Do(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Do.Cache||ko),r}Do.Cache=ko;var Io=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,To=/\\(\\)?/g,Ao=function(e){var t=Do(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Io,function(e,r,n,o){t.push(n?o.replace(To,"$1"):r||e)}),t});const Lo=Ao;function Ro(e,t){return Yr(e)?e:function(e,t){if(Yr(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Gr(e))||wo.test(e)||!go.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Lo(function(e){return null==e?"":Hr(e)}(e))}function Mo(e){if("string"==typeof e||Gr(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $o(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Fo=Rr?Rr.isConcatSpreadable:void 0;function zo(e){return Yr(e)||Hn(e)||!!(Fo&&e&&e[Fo])}function Uo(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=zo),o||(o=[]);++i<a;){var c=e[i];t>0&&r(c)?t>1?Uo(c,t-1,r,n,o):$o(o,c):n||(o[o.length]=c)}return o}function Bo(e){return(null==e?0:e.length)?Uo(e,1):[]}const Vo=fo(Object.getPrototypeOf,Object);var Wo=Function.prototype,Go=Object.prototype,qo=Wo.toString,Yo=Go.hasOwnProperty,Ko=qo.call(Object);function Qo(e){var t=this.__data__=new _o(e);this.size=t.size}Qo.prototype.clear=function(){this.__data__=new _o,this.size=0},Qo.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Qo.prototype.get=function(e){return this.__data__.get(e)},Qo.prototype.has=function(e){return this.__data__.has(e)},Qo.prototype.set=function(e,t){var r=this.__data__;if(r instanceof _o){var n=r.__data__;if(!Co||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ko(n)}return r.set(e,t),this.size=r.size,this};var Ho="object"==typeof t&&t&&!t.nodeType&&t,Zo=Ho&&"object"==typeof r&&r&&!r.nodeType&&r,Xo=Zo&&Zo.exports===Ho?Lr.Buffer:void 0,Jo=Xo?Xo.allocUnsafe:void 0;function ei(){return[]}var ti=Object.prototype.propertyIsEnumerable,ri=Object.getOwnPropertySymbols;const ni=ri?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(ri(e),function(t){return ti.call(e,t)}))}:ei;const oi=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)$o(t,ni(e)),e=Vo(e);return t}:ei;function ii(e,t,r){var n=t(e);return Yr(e)?n:$o(n,r(e))}function ai(e){return ii(e,yo,ni)}function ci(e){return ii(e,ho,oi)}const li=wn(Lr,"DataView");const si=wn(Lr,"Promise");const ui=wn(Lr,"Set");var fi="[object Map]",di="[object Promise]",pi="[object Set]",mi="[object WeakMap]",yi="[object DataView]",bi=dn(li),vi=dn(Co),hi=dn(si),gi=dn(ui),wi=dn(On),Oi=Vr;(li&&Oi(new li(new ArrayBuffer(1)))!=yi||Co&&Oi(new Co)!=fi||si&&Oi(si.resolve())!=di||ui&&Oi(new ui)!=pi||On&&Oi(new On)!=mi)&&(Oi=function(e){var t=Vr(e),r="[object Object]"==t?e.constructor:void 0,n=r?dn(r):"";if(n)switch(n){case bi:return yi;case vi:return fi;case hi:return di;case gi:return pi;case wi:return mi}return t});const ji=Oi;var xi=Object.prototype.hasOwnProperty;const Pi=Lr.Uint8Array;function Ei(e){var t=new e.constructor(e.byteLength);return new Pi(t).set(new Pi(e)),t}var Si=/\w*$/;var _i=Rr?Rr.prototype:void 0,Ci=_i?_i.valueOf:void 0;function Ni(e,t,r){var n,o,i,a=e.constructor;switch(t){case"[object ArrayBuffer]":return Ei(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var r=t?Ei(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?Ei(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,Si.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return n=e,Ci?Object(Ci.call(n)):{}}}var ki=ao&&ao.isMap;const Di=ki?ro(ki):function(e){return Wr(e)&&"[object Map]"==ji(e)};var Ii=ao&&ao.isSet;const Ti=Ii?ro(Ii):function(e){return Wr(e)&&"[object Set]"==ji(e)};var Ai="[object Arguments]",Li="[object Function]",Ri="[object Object]",Mi={};function $i(e,t,r,n,o,i){var a,c=1&t,l=2&t,s=4&t;if(r&&(a=o?r(e,n,o,i):r(e)),void 0!==a)return a;if(!en(e))return e;var u=Yr(e);if(u){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&xi.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!c)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e,a)}else{var f=ji(e),d=f==Li||"[object GeneratorFunction]"==f;if(eo(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Jo?Jo(r):new e.constructor(r);return e.copy(n),n}(e,c);if(f==Ri||f==Ai||d&&!o){if(a=l||d?{}:function(e){return"function"!=typeof e.constructor||Wn(e)?{}:xn(Vo(e))}(e),!c)return l?function(e,t){return Fn(e,oi(e),t)}(e,function(e,t){return e&&Fn(t,ho(t),e)}(a,e)):function(e,t){return Fn(e,ni(e),t)}(e,function(e,t){return e&&Fn(t,yo(t),e)}(a,e))}else{if(!Mi[f])return o?e:{};a=Ni(e,f,c)}}i||(i=new Qo);var p=i.get(e);if(p)return p;i.set(e,a),Ti(e)?e.forEach(function(n){a.add($i(n,t,r,n,e,i))}):Di(e)&&e.forEach(function(n,o){a.set(o,$i(n,t,r,o,e,i))});var m=u?void 0:(s?l?ci:ai:l?ho:yo)(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(m||e,function(n,o){m&&(n=e[o=n]),$n(a,o,$i(n,t,r,o,e,i))}),a}Mi[Ai]=Mi["[object Array]"]=Mi["[object ArrayBuffer]"]=Mi["[object DataView]"]=Mi["[object Boolean]"]=Mi["[object Date]"]=Mi["[object Float32Array]"]=Mi["[object Float64Array]"]=Mi["[object Int8Array]"]=Mi["[object Int16Array]"]=Mi["[object Int32Array]"]=Mi["[object Map]"]=Mi["[object Number]"]=Mi[Ri]=Mi["[object RegExp]"]=Mi["[object Set]"]=Mi["[object String]"]=Mi["[object Symbol]"]=Mi["[object Uint8Array]"]=Mi["[object Uint8ClampedArray]"]=Mi["[object Uint16Array]"]=Mi["[object Uint32Array]"]=!0,Mi["[object Error]"]=Mi[Li]=Mi["[object WeakMap]"]=!1;const Fi=function(){return Lr.Date.now()};var zi=Math.max,Ui=Math.min;function Bi(e,t,r){var n,o,i,a,c,l,s=0,u=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,i=o;return n=o=void 0,s=t,a=e.apply(i,r)}function m(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-s>=i}function y(){var e=Fi();if(m(e))return b(e);c=setTimeout(y,function(e){var r=t-(e-l);return f?Ui(r,i-(e-s)):r}(e))}function b(e){return c=void 0,d&&n?p(e):(n=o=void 0,a)}function v(){var e=Fi(),r=m(e);if(n=arguments,o=this,l=e,r){if(void 0===c)return function(e){return s=e,c=setTimeout(y,t),u?p(e):a}(l);if(f)return clearTimeout(c),c=setTimeout(y,t),p(l)}return void 0===c&&(c=setTimeout(y,t)),a}return t=an(t)||0,en(r)&&(u=!!r.leading,i=(f="maxWait"in r)?zi(an(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d),v.cancel=function(){void 0!==c&&clearTimeout(c),s=0,n=l=o=c=void 0},v.flush=function(){return void 0===c?a:b(Fi())},v}function Vi(e){return"string"==typeof e||!Yr(e)&&Wr(e)&&"[object String]"==Vr(e)}function Wi(e,t){return t.length<2?e:function(e,t){for(var r=0,n=(t=Ro(t,e)).length;null!=e&&r<n;)e=e[Mo(t[r++])];return r&&r==n?e:void 0}(e,function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}(t,0,-1))}function Gi(e){return"number"==typeof e||Wr(e)&&"[object Number]"==Vr(e)}function qi(e){return null==e}var Yi=Object.prototype.hasOwnProperty;function Ki(e,t){var r=-1,n=(t=Ro(t,e)).length;if(!n)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++r<n;){var i=t[r];if("string"==typeof i){if("__proto__"===i&&!Yi.call(e,"__proto__"))return!1;if("constructor"===i&&r+1<n&&"string"==typeof t[r+1]&&"prototype"===t[r+1]){if(o&&0===r)continue;return!1}}}var a=Wi(e,t);return null==a||delete a[Mo(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}function Qi(e){return function(e){if(!Wr(e)||"[object Object]"!=Vr(e))return!1;var t=Vo(e);if(null===t)return!0;var r=Yo.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&qo.call(r)==Ko}(e)?void 0:e}var Hi=function(e){return In(function(e,t,r){return t=zn(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=zn(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=n[o];return c[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,c)}}(e,void 0,Bo),e+"")}(function(e,t){var r={};if(null==e)return r;var n=!1;t=qr(t,function(t){return t=Ro(t,e),n||(n=t.length>1),t}),Fn(e,ci(e),r),n&&(r=$i(r,7,Qi));for(var o=t.length;o--;)Ki(r,t[o]);return r});const Zi=Hi;function Xi(e){return function(e){if(Array.isArray(e))return ta(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ea(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ji(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(u){s=!0,o=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||ea(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ea(e,t){if(e){if("string"==typeof e)return ta(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ta(e,t):void 0}}function ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ra=[{screen:"sm",min:0,max:1055},{screen:"md",min:1056,max:1920},{screen:"lg",min:1921,max:1/0}];function na(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=function(){var e=window.innerWidth;return ra.find(function(t){return t.min<=e&&e<=t.max})},n=Ji(p.useState(r),2),o=n[0],i=n[1],a=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return en(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Bi(e,t,{leading:n,maxWait:t,trailing:o})}(function(){return i(r())},100);return p.useEffect(function(){return a(),window.addEventListener("resize",a),function(){return window.removeEventListener("resize",a)}},[]),p.useEffect(function(){a()},[null===(e=window)||void 0===e||null===(e=e.__LOWCODE_ENV__)||void 0===e?void 0:e.env].concat(Xi(t))),o}function oa(e){return na(e).screen}function ia(e){return(ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(r),!0).forEach(function(t){la(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function la(e,t,r){var n;return n=function(e,t){if("object"!=ia(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ia(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sa(e){var t=oa(),r=Zi(e,["sm","lg"]);return"sm"===t&&null!=e&&e.sm?ca(ca({},r),e.sm):"lg"===t&&e.lg?ca(ca({},r),e.lg):e}const ua=(e,t)=>{var r;if(0===e.length)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),i=o?ua(e.slice(1),o):void 0;if(i)return i;if(0===t.validators.length)return;const a=e.join("-");return null==(r=t.validators.find(({validator:e})=>e(a)))?void 0:r.classGroupId},fa=/^\[(.+)\]$/,da=e=>{if(fa.test(e)){const t=fa.exec(e)[1],r=null==t?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},pa=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return va(Object.entries(e.classGroups),r).forEach(([e,r])=>{ma(r,n,e,t)}),n},ma=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:ya(t,e)).classGroupId=r)}if("function"==typeof e)return ba(e)?void ma(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{ma(o,ya(t,e),r,n)})})},ya=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},ba=e=>e.isThemeGetter,va=(e,t)=>t?e.map(([e,r])=>{const n=r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e);return[e,n]}):e,ha=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},ga=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length,a=e=>{const r=[];let a,c=0,l=0;for(let f=0;f<e.length;f++){let s=e[f];if(0===c){if(s===o&&(n||e.slice(f,f+i)===t)){r.push(e.slice(l,f)),l=f+i;continue}if("/"===s){a=f;continue}}"["===s?c++:"]"===s&&c--}const s=0===r.length?e:e.substring(l),u=s.startsWith("!");return{modifiers:r,hasImportantModifier:u,baseClassName:u?s.substring(1):s,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return r?e=>r({className:e,parseClassName:a}):a},wa=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},Oa=e=>u({cache:ha(e.cacheSize),parseClassName:ga(e)},(e=>{const t=pa(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),ua(r,t)||da(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}})(e)),ja=/\s+/;function xa(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Pa(e))&&(n&&(n+=" "),n+=t);return n}const Pa=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Pa(e[n]))&&(r&&(r+=" "),r+=t);return r};function Ea(e,...t){let r,n,o,i=function(c){const l=t.reduce((e,t)=>t(e),e());return r=Oa(l),n=r.cache.get,o=r.cache.set,i=a,a(c)};function a(e){const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(ja);let c="";for(let l=a.length-1;l>=0;l-=1){const e=a[l],{modifiers:t,hasImportantModifier:s,baseClassName:u,maybePostfixModifierPosition:f}=r(e);let d=Boolean(f),p=n(d?u.substring(0,f):u);if(!p){if(!d){c=e+(c.length>0?" "+c:c);continue}if(p=n(u),!p){c=e+(c.length>0?" "+c:c);continue}d=!1}const m=wa(t).join(":"),y=s?m+"!":m,b=y+p;if(i.includes(b))continue;i.push(b);const v=o(p,d);for(let r=0;r<v.length;++r){const e=v[r];i.push(y+e)}c=e+(c.length>0?" "+c:c)}return c})(e,r);return o(e,i),i}return function(){return i(xa.apply(null,arguments))}}const Sa=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},_a=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ca=/^\d+\/\d+$/,Na=new Set(["px","full","screen"]),ka=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Da=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ia=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ta=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Aa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,La=e=>Ma(e)||Na.has(e)||Ca.test(e),Ra=e=>Ha(e,"length",Za),Ma=e=>Boolean(e)&&!Number.isNaN(Number(e)),$a=e=>Ha(e,"number",Ma),Fa=e=>Boolean(e)&&Number.isInteger(Number(e)),za=e=>e.endsWith("%")&&Ma(e.slice(0,-1)),Ua=e=>_a.test(e),Ba=e=>ka.test(e),Va=new Set(["length","size","percentage"]),Wa=e=>Ha(e,Va,Xa),Ga=e=>Ha(e,"position",Xa),qa=new Set(["image","url"]),Ya=e=>Ha(e,qa,ec),Ka=e=>Ha(e,"",Ja),Qa=()=>!0,Ha=(e,t,r)=>{const n=_a.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},Za=e=>Da.test(e)&&!Ia.test(e),Xa=()=>!1,Ja=e=>Ta.test(e),ec=e=>Aa.test(e),tc=()=>{const e=Sa("colors"),t=Sa("spacing"),r=Sa("blur"),n=Sa("brightness"),o=Sa("borderColor"),i=Sa("borderRadius"),a=Sa("borderSpacing"),c=Sa("borderWidth"),l=Sa("contrast"),s=Sa("grayscale"),u=Sa("hueRotate"),f=Sa("invert"),d=Sa("gap"),p=Sa("gradientColorStops"),m=Sa("gradientColorStopPositions"),y=Sa("inset"),b=Sa("margin"),v=Sa("opacity"),h=Sa("padding"),g=Sa("saturate"),w=Sa("scale"),O=Sa("sepia"),j=Sa("skew"),x=Sa("space"),P=Sa("translate"),E=()=>["auto",Ua,t],S=()=>[Ua,t],_=()=>["",La,Ra],C=()=>["auto",Ma,Ua],N=()=>["","0",Ua],k=()=>[Ma,Ua];return{cacheSize:500,separator:":",theme:{colors:[Qa],spacing:[La,Ra],blur:["none","",Ba,Ua],brightness:k(),borderColor:[e],borderRadius:["none","","full",Ba,Ua],borderSpacing:S(),borderWidth:_(),contrast:k(),grayscale:N(),hueRotate:k(),invert:N(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[za,Ra],inset:E(),margin:E(),opacity:k(),padding:S(),saturate:k(),scale:k(),sepia:N(),skew:k(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",Ua]}],container:["container"],columns:[{columns:[Ba]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Ua]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fa,Ua]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ua]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",Fa,Ua]}],"grid-cols":[{"grid-cols":[Qa]}],"col-start-end":[{col:["auto",{span:["full",Fa,Ua]},Ua]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[Qa]}],"row-start-end":[{row:["auto",{span:[Fa,Ua]},Ua]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ua]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ua]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[x]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[x]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ua,t]}],"min-w":[{"min-w":[Ua,t,"min","max","fit"]}],"max-w":[{"max-w":[Ua,t,"none","full","min","max","fit","prose",{screen:[Ba]},Ba]}],h:[{h:[Ua,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ua,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ua,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ua,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ba,Ra]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$a]}],"font-family":[{font:[Qa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ua]}],"line-clamp":[{"line-clamp":["none",Ma,$a]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",La,Ua]}],"list-image":[{"list-image":["none",Ua]}],"list-style-type":[{list:["none","disc","decimal",Ua]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",La,Ra]}],"underline-offset":[{"underline-offset":["auto",La,Ua]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ua]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ua]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Ga]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wa]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ya]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[La,Ua]}],"outline-w":[{outline:[La,Ra]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[La,Ra]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ba,Ka]}],"shadow-color":[{shadow:[Qa]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ba,Ua]}],grayscale:[{grayscale:[s]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[g]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ua]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",Ua]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ua]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Fa,Ua]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ua]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ua]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ua]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[La,Ra,$a]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},rc=(e,t,r)=>{void 0!==r&&(e[t]=r)},nc=(e,t)=>{if(t)for(const r in t)rc(e,r,t[r])},oc=(e,t)=>{if(t)for(const r in t){const n=t[r];void 0!==n&&(e[r]=(e[r]||[]).concat(n))}};var ic=((e,...t)=>"function"==typeof e?Ea(tc,e,...t):Ea(()=>((e,{cacheSize:t,prefix:r,separator:n,experimentalParseClassName:o,extend:i={},override:a={}})=>{rc(e,"cacheSize",t),rc(e,"prefix",r),rc(e,"separator",n),rc(e,"experimentalParseClassName",o);for(const c in a)nc(e[c],a[c]);for(const c in i)oc(e[c],i[c]);return e})(tc(),e),...t))({extend:{theme:{colors:["blue","yellow","green","red","orange","gray","steel","cyan","purple","magenta"],spacing:["xs","sm","md","lg","xl"],borderRadius:["sm","md","lg","semicircle"],borderColor:["hover","focus","selected","disabled","primary","secondary","success","error","warning","info"],borderWidth:["thick","medium","large"]},classGroups:{"font-size":[{text:["banner","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","body","caption","sm","md","lg"]}],"shadow-color":["default","primary","secondary"],"text-color":[{text:["subtle","subtler","subtlest","primary","primary-hover","secondary","secondary-hover","success","success-hover","error","error-hover","warning","warning-hover","info","info-hover"]}]}}});function ac(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ic(Rt(t))}function cc(e){return!(!Gi(e)&&!Vi(e))&&(Vi(e)?["xs","sm","md","lg","xl"].includes(e):[0,.5,1,1.5,2,2.5,3,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32].includes(e))}function lc(e){return(lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var sc=["className","type","size","as","asChild","block","loading","href","icon","color","iconPosition","target","children","onClick"];function uc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uc(Object(r),!0).forEach(function(t){dc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function dc(e,t,r){var n;return n=function(e,t){if("object"!=lc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=lc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==lc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var mc=p.forwardRef(function(e,t){var r=sa(e),n=r.className,o=r.type,i=r.size,a=r.as,c=r.asChild,l=void 0!==c&&c,s=r.block,u=r.loading,f=r.href,d=r.icon,p=r.color,m=r.iconPosition,y=r.target,b=void 0===y?"_blank":y,v=r.children,h=r.onClick,g=pc(r,sc),w=l?Pr:"button",O=u?gr.jsx(or,{}):d,j="right"!==m||u?"left":"right";f&&!l?w="a":a&&(w=a);return gr.jsx(w,fc(fc({ref:t,href:f,target:"a"===w&&f?b:void 0,className:ac(Dr({type:o,size:i,className:n,color:p,block:s,loading:u})),onClick:function(e){u||null==h||h(e)}},g),{},{children:O?gr.jsxs("span",{className:Ir({size:i}),children:["left"===j?gr.jsx("span",{className:"inline-flex justify-center items-center",children:O}):null,v?gr.jsx("span",{className:"inline-block",children:v}):null,"right"===j?gr.jsx("span",{className:"inline-flex justify-center items-center",children:O}):null]}):v}))});function yc(e){return(yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}mc.displayName="Button";var bc=["as","asChild"];function vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function hc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(r),!0).forEach(function(t){gc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gc(e,t,r){var n;return n=function(e,t){if("object"!=yc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=yc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==yc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Oc=p.forwardRef(function(e,t){var r=e.as,n=e.asChild,o=wc(e,bc);if(n)return gr.jsx(Pr,hc({},o));var i=r||"div";return gr.jsx(i,hc({ref:t},o))});function jc(e){return(jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Oc.displayName="BaseElement";var xc=["className","style","box","m","mt","mb","ml","mr","mx","my","pt","pb","pl","pr","px","py","p","alignSelf","shadowed","shadowColor","width","height","flex","centered","bg","bordered"];function Pc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ec(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(r),!0).forEach(function(t){Sc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sc(e,t,r){var n;return n=function(e,t){if("object"!=jc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==jc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Cc=kr("animation-color",{variants:{box:{border:"box-border",content:"box-content"},shadowed:{true:"shadow",false:"shadow-none"},shadowColor:{default:"shadow-default",primary:"shadow-primary",secondary:"shadow-secondary"},bordered:{true:"border",false:null},bg:{default:"bg-default",transparent:"bg-transparent",primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",error:"bg-error",info:"bg-info"},flex:{none:"flex-none",auto:"flex-auto",initial:"flex-initial",1:"flex-1",2:"flex-2",3:"flex-3",4:"flex-4",5:"flex-5",6:"flex-6",7:"flex-7",8:"flex-8",9:"flex-9",10:"flex-10",11:"flex-11",12:"flex-12"},grow:{true:"flex-grow",false:null},shrink:{true:"flex-shrink",false:null},basis:{auto:"flex-basis-auto",full:"basis-full",0:"flex-basis-0"},alignSelf:{auto:"self-auto",start:"self-start",end:"self-end",center:"self-center",stretch:"self-stretch",baseline:"self-baseline"},centered:{true:"flex items-center justify-center",false:null}},defaultVariants:{box:"border",bordered:!1,shadowed:!1}}),Nc=p.forwardRef(function(e,t){var r,n=sa(e),o=n.className,i=n.style,a=n.box,c=n.m,l=n.mt,s=n.mb,u=n.ml,f=n.mr,d=n.mx,m=n.my,y=n.pt,b=n.pb,v=n.pl,h=n.pr,g=n.px,w=n.py,O=n.p,j=n.alignSelf,x=n.shadowed,P=n.shadowColor,E=n.width,S=n.height,_=n.flex,C=n.centered,N=n.bg,k=n.bordered,D=_c(n,xc),I=p.useMemo(function(){return Ec({width:E,height:S},i)},[i,E,S]);return gr.jsx(Oc,Ec({ref:t,className:ac(Cc({box:a,shadowed:x,shadowColor:P,flex:_,bg:N,bordered:k,centered:C,alignSelf:j}),(r={},Sc(Sc(Sc(Sc(Sc(Sc(Sc(Sc(Sc(Sc(r,"m-".concat(c),cc(c)),"mx-".concat(d),cc(d)),"my-".concat(m),cc(m)),"mt-".concat(l),cc(l)),"mb-".concat(s),cc(s)),"ml-".concat(u),cc(u)),"mr-".concat(f),cc(f)),"p-".concat(O),cc(O)),"px-".concat(g),cc(g)),"py-".concat(w),cc(w)),Sc(Sc(Sc(Sc(r,"pt-".concat(y),cc(y)),"pb-".concat(b),cc(b)),"pl-".concat(v),cc(v)),"pr-".concat(h),cc(h))),o),style:I},D))});function kc(e){return(kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Nc.displayName="Box";var Dc=["className","as","outerClassName","outerStyle","outerProps"];function Ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Tc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(r),!0).forEach(function(t){Ac(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ac(e,t,r){var n;return n=function(e,t){if("object"!=kc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=kc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==kc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(u){s=!0,o=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Mc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $c(e){return($c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}p.forwardRef(function(e,t){var r=e.className,n=e.as,o=void 0===n?"section":n,i=e.outerClassName,a=e.outerStyle,c=e.outerProps,l=Mc(e,Dc),s=Lc(p.useState(!1),2),u=s[0],f=s[1],d=p.useRef(null),m=t||d;return p.useEffect(function(){var e;if(m&&"function"!=typeof m&&null!=m&&null!==(e=m.current)&&void 0!==e&&e.parentElement){var t=m.current.parentElement.closest("[data-adc-container]");f(!!t)}},[m]),gr.jsx(Nc,Tc(Tc({as:o,ref:m,"data-adc-container":!0,className:ac({"px-6 sm:px-4":!u},i),style:a},c),{},{children:gr.jsx(Nc,Tc({className:ac(r,"mx-auto max-w-screen-lg")},l))}))}).displayName="Container";var Fc=["as","code","strong","compact","underline","italic","delete","disabled","color","children","className"];function zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Uc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zc(Object(r),!0).forEach(function(t){Bc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bc(e,t,r){var n;return n=function(e,t){if("object"!=$c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=$c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==$c(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Wc=kr("inline border-box text-body",{variants:{code:{true:"bg-default border px-1 rounded-sm font-code text-subtler",false:null},underline:{true:"underline",false:null},strong:{true:"font-bold",false:null},italic:{true:"italic",false:null},delete:{true:"line-through",false:null},disabled:{true:"text-disabled",false:null},color:{default:"text-default",subtle:"text-subtle",subtler:"text-subtler",subtlest:"text-subtlest",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",info:"text-info",error:"text-error",white:"text-white"},compact:{true:"!leading-none",false:null}},compoundVariants:[{color:["default","subtle","subtler","subtlest","success","error","info","error","primary","white","secondary"],disabled:!0,className:"text-disabled"}],defaultVariants:{code:!1,underline:!1,delete:!1,strong:!1,italic:!1,disabled:!1,color:"default"}}),Gc=p.forwardRef(function(e,t){var r=e.as,n=void 0===r?"span":r,o=e.code,i=e.strong,a=e.compact,c=e.underline,l=e.italic,s=e.delete,u=e.disabled,f=e.color,d=e.children,p=e.className,m=Vc(e,Fc),y=n||"span";return o?y="code":s?y="del":c?y="u":i?y="strong":l&&(y="i"),gr.jsx(Oc,Uc(Uc({as:y,ref:t,className:ac(Wc({color:f,code:o,strong:i,italic:l,underline:c,compact:a,delete:s,disabled:u}),p)},m),{},{children:d}))});function qc(e){return(qc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Gc.displayName="Text";var Yc=["className","bottomSpacing","appressed"];function Kc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qc(e,t,r){var n;return n=function(e,t){if("object"!=qc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=qc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==qc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Zc=kr("block text-banner",{variants:{appressed:{true:"!mt-0 !mb-0",false:null},bottomSpacing:{sm:"mb-3 sm:mb-[10px] last:mb-0",md:"mb-9 sm:mb-6 last:mb-0",lg:"mb-14 sm:mb-10 last:mb-0"}},defaultVariants:{bottomSpacing:"md",appressed:!1}});function Xc(e){return(Xc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Jc=["className","color"];function el(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tl(e,t,r){var n;return n=function(e,t){if("object"!=Xc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Xc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Xc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rl(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var nl=p.forwardRef(function(e,t){var r=e.className,n=e.color,o=void 0===n?"subtlest":n,i=rl(e,Jc);return gr.jsx(Gc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?el(Object(r),!0).forEach(function(t){tl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):el(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:ac("text-caption",r),color:o},i))});function ol(e){return(ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}nl.displayName="Caption";var il=["className","underline","disabled","target","href","onClick"];function al(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function cl(e,t,r){var n;return n=function(e,t){if("object"!=ol(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ol(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ll(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var sl=kr("text-link hover:text-link-hover active:text-link-active text-body transition-colors disabled:text-link-disabled visited:text-link-visited",{variants:{underline:{true:"underline hover:underline active:underline",false:"no-underline"},disabled:{true:"opacity-50 cursor-not-allowed",false:"opacity-100 cursor-pointer"}},defaultVariants:{underline:!1,disabled:!1}}),ul=p.forwardRef(function(e,t){var r=e.className,n=e.underline,o=e.disabled,i=e.target,a=void 0===i?"_blank":i,c=e.href,l=e.onClick,s=ll(e,il),u=o||!c;return gr.jsx("a",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?al(Object(r),!0).forEach(function(t){cl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):al(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,target:a,href:c,className:ac(r,sl({underline:n,disabled:u})),onClick:function(e){u&&e.preventDefault(),null==l||l(e)}},s))});function fl(e){return(fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}ul.displayName="Link";var dl=["children","space","align","bottomSpacing","appressed","childProps","className"];function pl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ml(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pl(Object(r),!0).forEach(function(t){yl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pl(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function yl(e,t,r){var n;return n=function(e,t){if("object"!=fl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==fl(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bl(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var vl=kr("w-full",{variants:{align:{left:"text-left",center:"text-center",right:"text-right"},space:{sm:"",md:"",lg:""},appressed:{true:"!mb-0 !mt-0",false:null},bottomSpacing:{sm:"mb-1 last:mb-0",md:"mb-2 last:mb-0",lg:"mb-6 last:mb-0"}},compoundVariants:[{align:"right",space:"lg",className:"*:ml-4 first:*:ml-0"},{align:"right",space:"md",className:"*:ml-2 first:*:ml-0"},{align:"right",space:"sm",className:"*:ml-1 first:*:ml-0"},{align:["left","center"],space:"lg",className:"*:mr-4 last:*:mr-0"},{align:["left","center"],space:"md",className:"*:mr-2 last:*:mr-0"},{align:["left","center"],space:"sm",className:"*:mr-1 last:*:mr-0"}],defaultVariants:{space:"md",align:"left",bottomSpacing:"md",appressed:!1}}),hl=p.forwardRef(function(e,t){var r=e.children,n=e.space,o=void 0===n?"md":n,i=e.align,a=void 0===i?"left":i,c=e.bottomSpacing,l=void 0===c?"md":c,s=e.appressed,u=e.childProps,f=e.className,d=bl(e,dl),m=p.Children.map(r,function(e){return e?Vi(e)||Gi(e)?gr.jsx(Gc,ml(ml({},u),{},{children:e})):e:null});return gr.jsx("p",ml(ml({ref:t,className:ac(vl({space:o,align:a,bottomSpacing:l,appressed:s}),f)},d),{},{children:m}))});function gl(e){return(gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}hl.displayName="Paragraph";var wl=["level","bottomSpacing","className","appressed"];function Ol(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ol(Object(r),!0).forEach(function(t){xl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ol(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xl(e,t,r){var n;return n=function(e,t){if("object"!=gl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=gl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==gl(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pl(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var El=kr("block font-bold",{variants:{level:{1:"text-heading-1",2:"text-heading-2",3:"text-heading-3",4:"text-heading-4",5:"text-heading-5",6:"text-heading-6"},appressed:{true:"!mt-0 !mb-0",false:null}},defaultVariants:{appressed:!1}}),Sl={1:{sm:"mb-3 sm:mb-[10px]",md:"mb-7 sm:mb-5",lg:"mb-12 sm:mb-[38px]"},2:{sm:"mb-[10px] sm:mb-2",md:"mb-6 sm:mb-4",lg:"mb-10 sm:mb-[34px]"},3:{sm:"mb-2 sm:mb-2",md:"mb-[14px] sm:mb-[14px]",lg:"mb-8"},4:{sm:"mb-[6px]",md:"mb-3",lg:"mb-7"},5:{sm:"mb-[6px]",md:"mb-[10px]",lg:"mb-[26px]"},6:{sm:"mb-1",md:"mb-2",lg:"mb-6"}};function _l(e){var t=e.level,r=void 0===t?1:t,n=e.bottomSpacing,o=void 0===n?"md":n,i=e.className,a=e.appressed,c=Pl(e,wl);return gr.jsx(Gc,jl({className:ac(El({appressed:a,level:r}),xl({},"".concat(Sl[r][o]),!!o),{"last:mb-0":!!o},i)},c))}function Cl(e){return gr.jsx(_l,jl({as:"h3",level:3},e))}const Nl=Object.freeze(Object.defineProperty({__proto__:null,Banner:function(e){var t=e.className,r=e.bottomSpacing,n=e.appressed,o=Hc(e,Yc);return gr.jsx(Gc,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(r),!0).forEach(function(t){Qc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({as:"h1",className:ac(Zc({bottomSpacing:r,appressed:n}),t)},o))},Caption:nl,H1:function(e){return gr.jsx(_l,jl({as:"h1",level:1},e))},H2:function(e){return gr.jsx(_l,jl({as:"h2",level:2},e))},H3:Cl,H4:function(e){return gr.jsx(_l,jl({as:"h4",level:4},e))},H5:function(e){return gr.jsx(_l,jl({as:"h5",level:5},e))},H6:function(e){return gr.jsx(_l,jl({as:"h6",level:6},e))},Link:ul,P:hl,Text:Gc,Title:_l},Symbol.toStringTag,{value:"Module"}));var kl=kr("inline-flex justify-center items-center text-center border-box transition-colors overflow-hidden",{variants:{color:{primary:"bg-blue-100 text-primary border-primary",secondary:"bg-orange-100 text-secondary border-secondary",success:"bg-success text-success border-success",info:"bg-info text-info border-info",error:"bg-error text-error border-error",warning:"bg-warning text-warning border-warning",gray:"bg-gray-100 text-gray-600 border-gray-400",white:"bg-white text-subtler border",blue:"bg-blue-100 text-blue-600 border-blue-400",yellow:"bg-yellow-100 text-yellow-400 border-yellow-300",orange:"bg-orange-100 text-orange border-orange-400",green:"bg-green-100 text-green-600 border-green-400",red:"bg-red-100 text-red-600 border-red-400",cyan:"bg-cyan-100 text-cyan-600 border-cyan-400",purple:"bg-purple-100 text-purple-600 border-purple-400",magenta:"bg-magenta-100 text-magenta-600 border-magenta-400"},type:{solid:"text-white",outlined:""},size:{xs:"px-[6px] h-5 text-caption",sm:"px-2 h-6 text-caption",md:"px-3 h-7 text-caption",lg:"px-3 h-8 text-body"},shape:{square:"rounded-none",rounded:"rounded",pill:"rounded-full"},bordered:{true:"border",false:"border-none"},disabled:{true:"opacity-60",false:null},hasLink:{true:"cursor-pointer hover:border-link hover:text-link",false:null},closable:{true:"pr-1",false:null}},compoundVariants:[{closable:!0,size:"xs",className:"pr-3"},{color:"primary",type:"solid",className:"bg-primary"},{color:"secondary",type:"solid",className:"bg-secondary"},{color:"success",type:"solid",className:"bg-green-600"},{color:"info",type:"solid",className:"bg-blue-600"},{color:"error",type:"solid",className:"bg-red-600"},{color:"warning",type:"solid",className:"bg-yellow-400"},{color:"gray",type:"solid",className:"bg-gray-600"},{color:"blue",type:"solid",className:"bg-blue-600"},{color:"yellow",type:"solid",className:"bg-yellow-400"},{color:"orange",type:"solid",className:"bg-orange-600"},{color:"green",type:"solid",className:"bg-green-600"},{color:"red",type:"solid",className:"bg-red-600"},{color:"cyan",type:"solid",className:"bg-cyan-600"},{color:"purple",type:"solid",className:"bg-purple-600"},{color:"magenta",type:"solid",className:"bg-magenta-600"},{hasLink:!0,type:"solid",className:"hover:text-white"}],defaultVariants:{color:"gray",type:"outlined",size:"sm",bordered:!1,shape:"rounded"}}),Dl=kr("inline-flex justify-center items-center",{variants:{size:{xs:"gap-1",sm:"gap-1",md:"gap-1",lg:"gap-2"}},defaultVariants:{size:"md"}});function Il(e){return(Il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Tl=["className","shape","bordered","size","disabled","type","color","onClose","href","target","closable","icon","children"];function Al(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ll(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(r),!0).forEach(function(t){Rl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Rl(e,t,r){var n;return n=function(e,t){if("object"!=Il(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Il(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Il(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ml(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}p.forwardRef(function(e,t){var r=e.className,n=e.shape,o=e.bordered,i=e.size,a=void 0===i?"sm":i,c=e.disabled,l=e.type,s=e.color,u=void 0===s?"gray":s,f=e.onClose,d=e.href,p=e.target,m=e.closable,y=e.icon,b=e.children,v=Ml(e,Tl);return gr.jsx(Oc,Ll(Ll({ref:t,as:d?"a":"span",href:d,target:d?p||"_blank":"",className:ac(kl({shape:n,size:a,color:u,type:l,disabled:c,bordered:o,closable:m,hasLink:!!d}),r)},v),{},{children:gr.jsxs("span",{className:Dl({size:a}),children:[y?gr.jsx("span",{className:"inline-flex justify-center items-center",children:y}):null,gr.jsx("span",{className:"inline-block",children:b}),m?gr.jsx(rr,{className:ac("inline-flex text-[12px] justify-center p-0.5  cursor-pointer rounded-semicircle items-center transition-colors",{"hover:bg-white/10":"solid"===l,"hover:bg-black/5":"solid"!==l}),onClick:f}):null]})}))}).displayName="Tag";var $l=function(){return $l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$l.apply(this,arguments)};function Fl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function zl(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(c){o={error:c}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Ul(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Bl=function(e){return"function"==typeof e};const Vl=function(e){var t=p.useRef(e);t.current=p.useMemo(function(){return e},[e]);var r=p.useRef(void 0);return r.current||(r.current=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.current.apply(this,e)}),r.current};function Wl(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}const Gl=function(e){var t,r,n=(t=e,(r=p.useRef(t)).current=t,r);p.useEffect(function(){return function(){n.current()}},[])};const ql=!("undefined"==typeof window||!window.document||!window.document.createElement);const Yl=function(){var e=zl(p.useState({}),2)[1];return p.useCallback(function(){return e({})},[])};function Kl(e,t){if(ql)return e?Bl(e)?e():"current"in e?e.current:e:t}const Ql=function(e){return function(t,r,n){var o=p.useRef(!1),i=p.useRef([]),a=p.useRef([]),c=p.useRef(void 0);e(function(){var e,l=(Array.isArray(n)?n:[n]).map(function(e){return Kl(e)});if(!o.current)return o.current=!0,i.current=l,a.current=r,void(c.current=t());l.length===i.current.length&&Wl(i.current,l)&&Wl(a.current,r)||(null===(e=c.current)||void 0===e||e.call(c),i.current=l,a.current=r,c.current=t())}),Gl(function(){var e;null===(e=c.current)||void 0===e||e.call(c),o.current=!1})}};const Hl=Ql(p.useEffect);var Zl={exports:{}};!function(e){e.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",a="hour",c="day",l="week",s="month",u="quarter",f="year",d="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},v=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},h={s:v,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,s),i=r-o<0,a=t.clone().add(n+(i?-1:1),s);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:f,w:l,d:c,D:d,h:a,m:i,s:o,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},g="en",w={};w[g]=b;var O="$isDayjsObject",j=function(e){return e instanceof S||!(!e||!e[O])},x=function e(t,r,n){var o;if(!t)return g;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),r&&(w[i]=r,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var c=t.name;w[c]=t,o=c}return!n&&o&&(g=o),o||!n&&g},P=function(e,t){if(j(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new S(r)},E=h;E.l=x,E.i=j,E.w=function(e,t){return P(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function b(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[O]=!0}var v=b.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(m);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var r=P(e);return this.startOf(t)<=r&&r<=this.endOf(t)},v.isAfter=function(e,t){return P(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<P(e)},v.$g=function(e,t,r){return E.u(e)?this[t]:this.set(r,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var r=this,n=!!E.u(t)||t,u=E.p(e),p=function(e,t){var o=E.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?o:o.endOf(c)},m=function(e,t){return E.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},y=this.$W,b=this.$M,v=this.$D,h="set"+(this.$u?"UTC":"");switch(u){case f:return n?p(1,0):p(31,11);case s:return n?p(1,b):p(0,b+1);case l:var g=this.$locale().weekStart||0,w=(y<g?y+7:y)-g;return p(n?v-w:v+(6-w),b);case c:case d:return m(h+"Hours",0);case a:return m(h+"Minutes",1);case i:return m(h+"Seconds",2);case o:return m(h+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var r,l=E.p(e),u="set"+(this.$u?"UTC":""),p=(r={},r[c]=u+"Date",r[d]=u+"Date",r[s]=u+"Month",r[f]=u+"FullYear",r[a]=u+"Hours",r[i]=u+"Minutes",r[o]=u+"Seconds",r[n]=u+"Milliseconds",r)[l],m=l===c?this.$D+(t-this.$W):t;if(l===s||l===f){var y=this.clone().set(d,1);y.$d[p](m),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(n,u){var d,p=this;n=Number(n);var m=E.p(u),y=function(e){var t=P(p);return E.w(t.date(t.date()+Math.round(e*n)),p)};if(m===s)return this.set(s,this.$M+n);if(m===f)return this.set(f,this.$y+n);if(m===c)return y(1);if(m===l)return y(7);var b=(d={},d[i]=t,d[a]=r,d[o]=e,d)[m]||1,v=this.$d.getTime()+n*b;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,c=this.$M,l=r.weekdays,s=r.months,u=r.meridiem,f=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].slice(0,i)},d=function(e){return E.s(i%12||12,e,"0")},m=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(y,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return c+1;case"MM":return E.s(c+1,2,"0");case"MMM":return f(r.monthsShort,c,s,3);case"MMMM":return f(s,c);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,l,2);case"ddd":return f(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,d,p){var m,y=this,b=E.p(d),v=P(n),h=(v.utcOffset()-this.utcOffset())*t,g=this-v,w=function(){return E.m(y,v)};switch(b){case f:m=w()/12;break;case s:m=w();break;case u:m=w()/3;break;case l:m=(g-h)/6048e5;break;case c:m=(g-h)/864e5;break;case a:m=g/r;break;case i:m=g/t;break;case o:m=g/e;break;default:m=g}return p?m:E.a(m)},v.daysInMonth=function(){return this.endOf(s).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=x(e,t,!0);return n&&(r.$L=n),r},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},b}(),_=S.prototype;return P.prototype=_,[["$ms",n],["$s",o],["$m",i],["$H",a],["$W",c],["$M",s],["$y",f],["$D",d]].forEach(function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),P.extend=function(e,t){return e.$i||(e(t,S,P),e.$i=!0),P},P.locale=x,P.isDayjs=j,P.unix=function(e){return P(1e3*e)},P.en=w[g],P.Ls=w,P.p={},P}()}(Zl);const Xl=M(Zl.exports);var Jl=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}()}(),es="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ts="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),rs="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ts):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var ns=["top","right","bottom","left","width","height","size","weight"],os="undefined"!=typeof MutationObserver,is=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&c()}function a(){rs(i)}function c(){var e=Date.now();if(r){if(e-o<2)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){es&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),os?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){es&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t,n=ns.some(function(e){return!!~r.indexOf(e)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),as=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},cs=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ts},ls=ms(0,0,0,0);function ss(e){return parseFloat(e)||0}function us(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+ss(e["border-"+r+"-width"])},0)}function fs(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return ls;var n=cs(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=e["padding-"+o];t[o]=ss(i)}return t}(n),i=o.left+o.right,a=o.top+o.bottom,c=ss(n.width),l=ss(n.height);if("border-box"===n.boxSizing&&(Math.round(c+i)!==t&&(c-=us(n,"left","right")+i),Math.round(l+a)!==r&&(l-=us(n,"top","bottom")+a)),!function(e){return e===cs(e).document.documentElement}(e)){var s=Math.round(c+i)-t,u=Math.round(l+a)-r;1!==Math.abs(s)&&(c-=s),1!==Math.abs(u)&&(l-=u)}return ms(o.left,o.top,c,l)}var ds="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof cs(e).SVGGraphicsElement}:function(e){return e instanceof cs(e).SVGElement&&"function"==typeof e.getBBox};function ps(e){return es?ds(e)?function(e){var t=e.getBBox();return ms(0,0,t.width,t.height)}(e):fs(e):ls}function ms(e,t,r,n){return{x:e,y:t,width:r,height:n}}var ys=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ms(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ps(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),bs=function(e,t){var r,n,o,i,a,c,l,s=(n=(r=t).x,o=r.y,i=r.width,a=r.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(c.prototype),as(l,{x:n,y:o,width:i,height:a,top:o,right:n+i,bottom:a+o,left:n}),l);as(this,{target:e,contentRect:s})},vs=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new Jl,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof cs(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new ys(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof cs(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new bs(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),hs="undefined"!=typeof WeakMap?new WeakMap:new Jl,gs=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=is.getInstance(),n=new vs(t,r,this);hs.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){gs.prototype[e]=function(){var t;return(t=hs.get(this))[e].apply(t,arguments)}});var ws=void 0!==ts.ResizeObserver?ts.ResizeObserver:gs,Os=Ql(p.useLayoutEffect);const js=ql?Os:Hl;function xs(e){var t=zl(function(e){var t=p.useRef(0),r=zl(p.useState(e),2),n=r[0],o=r[1],i=p.useCallback(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(e)})},[]);return Gl(function(){cancelAnimationFrame(t.current)}),[n,i]}(function(){var t=Kl(e);return t?{width:t.clientWidth,height:t.clientHeight}:void 0}),2),r=t[0],n=t[1];return js(function(){var t=Kl(e);if(t){var r=new ws(function(e){e.forEach(function(e){var t=e.target,r=t.clientWidth,o=t.clientHeight;n({width:r,height:o})})});return r.observe(t),function(){r.disconnect()}}},[],e),r}var Ps=p.createContext({activeTabValue:void 0,size:"md",type:"underline"}),Es=function(){return p.useContext(Ps)};function Ss(e){return(Ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var _s=["className","value"];function Cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ns(e,t,r){var n;return n=function(e,t){if("object"!=Ss(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ss(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Ss(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ks(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Ds=p.forwardRef(function(e,t){var r=e.className,n=e.value,o=ks(e,_s),i=n===Es().activeTabValue;return gr.jsx("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(r),!0).forEach(function(t){Ns(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:ac("outline-0",r,{hidden:!i})},o))});function Is(e){return(Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Ds.displayName="TabPanel";var Ts=["children","disabled","value","className","onClick"];function As(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ls(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?As(Object(r),!0).forEach(function(t){Rs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):As(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Rs(e,t,r){var n;return n=function(e,t){if("object"!=Is(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Is(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Is(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ms(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var $s=kr("relative inline-flex justify-center items-center z-popup transition-colors cursor-pointer text-body data-[state=active]:font-bold data-[state=active]:border-b-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",{variants:{size:{sm:"px-2 h-8 text-caption",md:"px-4 h-9 text-body",lg:"px-5 h-10 text-body",xl:"px-6 h-12 text-body"},type:{underline:"border-b-2 border-transparent",overline:"border-t-2 border-transparent hover:bg-hover data-[state=active]:bg-white",divider:"",block:"bg-white hover:text-primary hover:data-[state=active]:text-white"},disabled:{true:null,false:null},active:{true:null,false:null},full:{true:"flex-1",false:"flex-none"}},compoundVariants:[{type:["divider","overline","underline"],className:"hover:text-primary data-[state=active]:text-primary"},{type:"overline",disabled:!0,active:!1,className:"bg-disabled"},{type:"overline",disabled:!1,active:!1,className:"bg-default"},{type:"overline",disabled:!1,active:!0,className:"bg-white border-t-primary"},{type:"divider",className:"after:content after:absolute after:top-1/3 after:right-0 after:w-[1px] after:h-1/3 after:border-l  last:after:content-none"},{type:"block",active:!0,className:"bg-primary text-white"}],defaultVariants:{disabled:!1,type:"underline",size:"md",active:!1}}),Fs=p.forwardRef(function(e,t){var r=e.children,n=e.disabled,o=e.value,i=e.className,a=e.onClick,c=Ms(e,Ts),l=Es(),s=l.activeTabValue,u=l.size,f=l.type,d=l.full,p=l.onTabChange,m=s===o;return gr.jsx("li",Ls(Ls(Ls({ref:t,"data-state":m?"active":"inactive"},n&&{"data-disabled":!0}),{},{className:ac($s({size:u,type:f,full:d,active:m}),i),onClick:function(e){null==p||p(qi(o)?void 0:o),null==a||a(e)}},c),{},{children:r}))});function zs(e){return(zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Fs.displayName="Tab";var Us=["align","bordered","className","outerClassName","children"];function Bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bs(Object(r),!0).forEach(function(t){Ws(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ws(e,t,r){var n;return n=function(e,t){if("object"!=zs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==zs(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gs(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var qs=kr("relative flex flex-row justify-start items-center overflow-x-scroll no-scrollbar",{variants:{type:{underline:"",overline:"",divider:"",block:'relative shadow-md after:content-[""] after:absolute after:left-0 after:top-0 after:bottom-0 after:right-0 z-2'},full:{true:"w-full px-12 sm:px-0 lg:px-0",false:null}},defaultVariants:{type:"underline"}}),Ys=kr("flex w-auto relative flex-row items-center max-w-screen-lg mx-auto",{variants:{type:{underline:"",overline:"",divider:"",block:""},align:{left:"justify-start",center:"justify-center"},full:{true:"w-full",false:null}},compoundVariants:[{type:["underline","overline","divider"],className:"w-full"},{type:"block",full:!1,className:""}]}),Ks=p.forwardRef(function(e,t){var r=sa(e),n=r.align,o=void 0===n?"left":n,i=r.bordered,a=void 0===i||i,c=r.className,l=r.outerClassName,s=r.children,u=Gs(r,Us),f=Es(),d=f.activeTabValue,m=f.full,y=f.onTabChange,b=f.type,v=p.useRef(null),h=xs(v),g=p.Children.map(s,function(e,t){var r;return(null==e||null===(r=e.props)||void 0===r?void 0:r.value)||t})||[];p.useEffect(function(){g&&g.length>0&&qi(d)&&(null==y||y(g[0]))},[d,g]);var w=p.useMemo(function(){return p.Children.map(s,function(e,t){var r;if(e){if(!function(e){return p.isValidElement(e)&&e.type===Fs}(e))throw new Error("Tabs.List \u53ea\u652f\u6301 Tabs.Tab \u4f5c\u4e3a\u5b50\u5143\u7d20");var n=null==e||null===(r=e.props)||void 0===r?void 0:r.value;return qi(n)&&(n=t),p.cloneElement(e,Vs(Vs({},Zi(null==e?void 0:e.props,["value"])),{},{value:n}))}})},[s]);return p.useEffect(function(){if(null!=v&&v.current&&null!=h&&h.width){var e=v.current.querySelector('[data-state="active"]');if(e){var t=e.getBoundingClientRect(),r=v.current.getBoundingClientRect(),n=v.current.scrollLeft||0,o=t.left-r.left;o&&v.current.scrollTo({left:o-h.width/2+n+t.width/2,behavior:"smooth"})}}},[null==h?void 0:h.width,d]),gr.jsxs("div",Vs(Vs({className:ac("w-full relative mx-auto",l),ref:t},u),{},{children:[gr.jsx("div",{className:ac(Ys({align:o,type:b,full:m})),children:gr.jsx("ul",{ref:v,className:ac(qs({type:b,full:m}),c),children:w})}),a&&"divider"!==b&&"block"!==b?gr.jsx("div",{className:"absolute bottom-0 left-0 right-0 w-full h-[1px] border-b transition-all"}):null]}))});function Qs(e){return(Qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Ks.displayName="TabList";var Hs=["className","px","pt","pb","sm","children"];function Zs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(r),!0).forEach(function(t){Js(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Js(e,t,r){var n;return n=function(e,t){if("object"!=Qs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Qs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Qs(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eu(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var tu=p.forwardRef(function(e,t){var r=e.className,n=e.px,o=void 0===n?4:n,i=e.pt,a=void 0===i?6:i,c=e.pb,l=void 0===c?6:c,s=e.sm,u=void 0===s?{pt:4,pb:4}:s,f=e.children,d=eu(e,Hs),m=p.useMemo(function(){return p.Children.map(f,function(e,t){if(e){!function(e){p.isValidElement(e)&&e.type}(e);var r=e.props.value;return qi(r)&&(r=t),p.cloneElement(e,Xs(Xs({},Zi(e.props,["value"])),{},{value:r}))}})},[f]);return gr.jsx(Nc,Xs(Xs({ref:t,className:ac("tabs-panels",r),sm:u,pt:a,pb:l,px:o},d),{},{children:m}))});function ru(e){return(ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var nu=["size","type","full","children","onChange"];function ou(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function iu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(r),!0).forEach(function(t){au(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ou(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function au(e,t,r){var n;return n=function(e,t){if("object"!=ru(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ru(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ru(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(u){s=!0,o=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function su(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var uu=p.forwardRef(function(e,t){var r=sa(e),n=r.size,o=void 0===n?"md":n,i=r.type,a=void 0===i?"underline":i,c=r.full,l=void 0!==c&&c,s=r.children;r.onChange;var u=su(r,nu),f=function(e,t){void 0===t&&(t={});var r=null!=e?e:{},n=t.defaultValue,o=t.defaultValuePropName,i=void 0===o?"defaultValue":o,a=t.valuePropName,c=void 0===a?"value":a,l=t.trigger,s=void 0===l?"onChange":l,u=r[c],f=Object.prototype.hasOwnProperty.call(r,c),d=p.useMemo(function(){return f?u:Object.prototype.hasOwnProperty.call(r,i)?r[i]:n},[]),m=p.useRef(d);f&&(m.current=u);var y=Yl();return[m.current,Vl(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Bl(e)?e(m.current):e;f||(m.current=o,y()),r[s]&&r[s].apply(r,Ul([o],zl(t),!1))})]}(e,{defaultValue:void 0}),d=cu(f,2),m=d[0],y=d[1];return gr.jsx(Ps.Provider,{value:{activeTabValue:m,size:o,type:a,full:l,onTabChange:function(e){y(e)}},children:gr.jsx("div",iu(iu({ref:t},u),{},{children:s}))})});uu.displayName="Tabs";var fu=uu;function du(e){return(du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}fu.List=Ks,fu.Tab=Fs,fu.Panels=tu,fu.Panel=Ds;var pu=["vertical","justify","align"];function mu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function yu(e,t,r){var n;return n=function(e,t){if("object"!=du(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=du(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==du(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bu(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function vu(e){var t=sa(e),r=t.vertical;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(r),!0).forEach(function(t){yu(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({vertical:r,justify:t.justify||(r?"center":"start"),align:t.align||(r?"start":"center")},bu(t,pu))}function hu(e){return(hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var gu=["className","children","vertical","justify","align","alignContent","wrap","gap"];function wu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ou(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wu(Object(r),!0).forEach(function(t){ju(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ju(e,t,r){var n;return n=function(e,t){if("object"!=hu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==hu(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xu(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Pu=kr("flex",{variants:{vertical:{true:"flex-col",false:"flex-row"},justify:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},align:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},alignContent:{normal:"content-normal",center:"content-center",start:"content-start",end:"content-end",between:"content-between",around:"content-around",evenly:"content-evenly",baseline:"content-baseline",stretch:"content-stretch"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"}},defaultVariants:{vertical:!1,justify:"start",align:"center",wrap:"nowrap"}}),Eu=p.forwardRef(function(e,t){var r=vu(e),n=r.className,o=r.children,i=r.vertical,a=r.justify,c=r.align,l=r.alignContent,s=r.wrap,u=r.gap,f=xu(r,gu);return gr.jsx(Nc,Ou(Ou({ref:t,className:ac(n,ju({},"gap-".concat(u),u),Pu({vertical:i,justify:a,align:c,alignContent:l,wrap:s}))},f),{},{children:o}))});function Su(e){return(Su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Eu.displayName="Flex";var _u=["cols","gap","gapX","gapY","className","style","minChildWidth","maxChildWidth","children"];function Cu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Nu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(r),!0).forEach(function(t){ku(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ku(e,t,r){var n;return n=function(e,t){if("object"!=Su(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Su(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Du(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Iu(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function Tu(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>{const o=r(e)[`__scope${n}`];return u(u({},t),o)},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}p.forwardRef(function(e,t){var r=sa(e),n=r.cols,o=r.gap,i=void 0===o?"md":o,a=r.gapX,c=r.gapY,l=r.className,s=r.style,u=r.minChildWidth,f=r.maxChildWidth,d=r.children,p=Du(r,_u),m=Nu({gridTemplateColumns:n?"repeat(".concat(n,", minmax(0, 1fr))"):"repeat(auto-fill, minmax(".concat(u,"px, ").concat(f?"".concat(f,"px"):"1fr","))"),gridTemplateRows:"auto"},s);return gr.jsx(Nc,Nu(Nu({ref:t,className:ac("grid auto-cols-max",l,ku(ku(ku({},"gap-".concat(i),i),"gap-x-".concat(a),a),"gap-y-".concat(c),c)),style:m},p),{},{children:d}))}).displayName="Grid";var Au=(null==globalThis?void 0:globalThis.document)?v.useLayoutEffect:()=>{},Lu=v[" useId ".trim().toString()]||(()=>{}),Ru=0;function Mu(e){const[t,r]=v.useState(Lu());return Au(()=>{e||r(e=>null!=e?e:String(Ru++))},[e]),e||(t?`radix-${t}`:"")}var $u=v[" useInsertionEffect ".trim().toString()]||Au;function Fu({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,a]=function({defaultProp:e,onChange:t}){const[r,n]=v.useState(e),o=v.useRef(r),i=v.useRef(t);return $u(()=>{i.current=t},[t]),v.useEffect(()=>{var e;o.current!==r&&(null==(e=i.current)||e.call(i,r),o.current=r)},[r,o]),[r,n,i]}({defaultProp:t,onChange:r}),c=void 0!==e,l=c?e:o;{const t=v.useRef(void 0!==e);v.useEffect(()=>{const e=t.current;if(e!==c){}t.current=c},[c,n])}const s=v.useCallback(t=>{var r;if(c){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&(null==(r=a.current)||r.call(a,n))}else i(t)},[c,e,i,a]);return[l,s]}function zu(e){const t=Uu(e),r=v.forwardRef((e,r)=>{const n=e,{children:o}=n,i=d(n,["children"]),a=v.Children.toArray(o),c=a.find(Vu);if(c){const e=c.props.children,n=a.map(t=>t===c?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t);return gr.jsx(t,f(u({},i),{ref:r,children:v.isValidElement(e)?v.cloneElement(e,void 0,n):null}))}return gr.jsx(t,f(u({},i),{ref:r,children:o}))});return r.displayName=`${e}.Slot`,r}function Uu(e){const t=v.forwardRef((e,t)=>{const r=e,{children:n}=r,o=d(r,["children"]);if(v.isValidElement(n)){const e=function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;if(o)return e.ref;if(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const r=u({},t);for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]=u(u({},o),i):"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return u(u({},e),r)}(o,n.props);return n.type!==v.Fragment&&(r.ref=t?lr(t,e):e),v.cloneElement(n,r)}return v.Children.count(n)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bu=Symbol("radix.slottable");function Vu(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Bu}var Wu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=zu(`Primitive.${t}`),n=v.forwardRef((e,n)=>{const o=e,{asChild:i}=o,a=d(o,["asChild"]),c=i?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),gr.jsx(c,f(u({},a),{ref:n}))});return n.displayName=`Primitive.${t}`,f(u({},e),{[t]:n})},{});function Gu(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...e)=>{var r;return null==(r=t.current)?void 0:r.call(t,...e)},[])}var qu,Yu="dismissableLayer.update",Ku="dismissableLayer.pointerDownOutside",Qu="dismissableLayer.focusOutside",Hu=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zu=v.forwardRef((e,t)=>{var r;const n=e,{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:l,onDismiss:s}=n,p=d(n,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),m=v.useContext(Hu),[y,b]=v.useState(null),h=null!=(r=null==y?void 0:y.ownerDocument)?r:null==globalThis?void 0:globalThis.document,[,g]=v.useState({}),w=sr(t,e=>b(e)),O=Array.from(m.layers),[j]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),x=O.indexOf(j),P=y?O.indexOf(y):-1,E=m.layersWithOutsidePointerEventsDisabled.size>0,S=P>=x,_=function(e,t=(null==globalThis?void 0:globalThis.document)){const r=Gu(e),n=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const e=e=>{if(e.target&&!n.current){let n=function(){Ju(Ku,r,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{const t=e.target,r=[...m.branches].some(e=>e.contains(t));S&&!r&&(null==a||a(e),null==l||l(e),e.defaultPrevented||null==s||s())},h),C=function(e,t=(null==globalThis?void 0:globalThis.document)){const r=Gu(e),n=v.useRef(!1);return v.useEffect(()=>{const e=e=>{if(e.target&&!n.current){Ju(Qu,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{const t=e.target;[...m.branches].some(e=>e.contains(t))||(null==c||c(e),null==l||l(e),e.defaultPrevented||null==s||s())},h);return function(e,t=(null==globalThis?void 0:globalThis.document)){const r=Gu(e);v.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{P===m.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},h),v.useEffect(()=>{if(y)return o&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(qu=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),Xu(),()=>{o&&1===m.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=qu)}},[y,h,o,m]),v.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),Xu())},[y,m]),v.useEffect(()=>{const e=()=>g({});return document.addEventListener(Yu,e),()=>document.removeEventListener(Yu,e)},[]),gr.jsx(Wu.div,f(u({},p),{ref:w,style:u({pointerEvents:E?S?"auto":"none":void 0},e.style),onFocusCapture:Iu(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Iu(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Iu(e.onPointerDownCapture,_.onPointerDownCapture)}))});Zu.displayName="DismissableLayer";function Xu(){const e=new CustomEvent(Yu);document.dispatchEvent(e)}function Ju(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&h.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}v.forwardRef((e,t)=>{const r=v.useContext(Hu),n=v.useRef(null),o=sr(t,n);return v.useEffect(()=>{const e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),gr.jsx(Wu.div,f(u({},e),{ref:o}))}).displayName="DismissableLayerBranch";var ef="focusScope.autoFocusOnMount",tf="focusScope.autoFocusOnUnmount",rf={bubbles:!1,cancelable:!0},nf=v.forwardRef((e,t)=>{const r=e,{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a}=r,c=d(r,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[l,s]=v.useState(null),p=Gu(i),m=Gu(a),y=v.useRef(null),b=sr(t,e=>s(e)),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(o){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?y.current=t:lf(y.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||lf(y.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&lf(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,l,h.paused]),v.useEffect(()=>{if(l){sf.add(h);const t=document.activeElement;if(!l.contains(t)){const r=new CustomEvent(ef,rf);l.addEventListener(ef,p),l.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(lf(n,{select:t}),document.activeElement!==r)return}((e=of(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&lf(l))}return()=>{l.removeEventListener(ef,p),setTimeout(()=>{const e=new CustomEvent(tf,rf);l.addEventListener(tf,m),l.dispatchEvent(e),e.defaultPrevented||lf(null!=t?t:document.body,{select:!0}),l.removeEventListener(tf,m),sf.remove(h)},0)}}var e},[l,p,m,h]);const g=v.useCallback(e=>{if(!n&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,i]=function(e){const t=of(e),r=af(t,e),n=af(t.reverse(),e);return[r,n]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&lf(i,{select:!0})):(e.preventDefault(),n&&lf(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,h.paused]);return gr.jsx(Wu.div,f(u({tabIndex:-1},c),{ref:b,onKeyDown:g}))});function of(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function af(e,t){for(const r of e)if(!cf(r,{upTo:t}))return r}function cf(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function lf(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}nf.displayName="FocusScope";var sf=function(){let e=[];return{add(t){const r=e[0];t!==r&&(null==r||r.pause()),e=uf(e,t),e.unshift(t)},remove(t){var r;e=uf(e,t),null==(r=e[0])||r.resume()}}}();function uf(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var ff=v.forwardRef((e,t)=>{var r;const n=e,{container:o}=n,i=d(n,["container"]),[a,c]=v.useState(!1);Au(()=>c(!0),[]);const l=o||a&&(null==(r=null==globalThis?void 0:globalThis.document)?void 0:r.body);return l?y.createPortal(gr.jsx(Wu.div,f(u({},i),{ref:t})),l):null});ff.displayName="Portal";var df=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=v.useState(),n=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),a=e?"mounted":"unmounted",[c,l]=function(e,t){return v.useReducer((e,r)=>{const n=t[e][r];return null!=n?n:e},e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const e=pf(n.current);i.current="mounted"===c?e:"none"},[c]),Au(()=>{const t=n.current,r=o.current;if(r!==e){const n=i.current,a=pf(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),Au(()=>{var e;if(t){let r;const a=null!=(e=t.ownerDocument.defaultView)?e:window,c=e=>{const i=pf(n.current).includes(CSS.escape(e.animationName));if(e.target===t&&i&&(l("ANIMATION_END"),!o.current)){const e=t.style.animationFillMode;t.style.animationFillMode="forwards",r=a.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},s=e=>{e.target===t&&(i.current=pf(n.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{a.clearTimeout(r),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:v.useCallback(e=>{n.current=e?getComputedStyle(e):null,r(e)},[])}}(t),o="function"==typeof r?r({present:n.isPresent}):v.Children.only(r),i=sr(n.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;if(o)return e.ref;if(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof r||n.isPresent?v.cloneElement(o,{ref:i}):null};function pf(e){return(null==e?void 0:e.animationName)||"none"}df.displayName="Presence";var mf=0;function yf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var bf="right-scroll-bar-position",vf="width-before-scroll-bar";function hf(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var gf="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,wf=new WeakMap;function Of(e,t){var r,n,o,i=(r=t||null,n=function(t){return e.forEach(function(e){return hf(e,t)})},(o=p.useState(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=n,o.facade);return gf(function(){var t=wf.get(i);if(t){var r=new Set(t),n=new Set(e),o=i.current;r.forEach(function(e){n.has(e)||hf(e,null)}),n.forEach(function(e){r.has(e)||hf(e,o)})}wf.set(i,e)},[e]),i}function jf(e){return e}var xf=function(e){var t=e.sideCar,r=Fl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return v.createElement(n,$l({},r))};xf.isSideCarExport=!0;var Pf=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=jf);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}(null);return t.options=$l({async:!0,ssr:!1},e),t}(),Ef=function(){},Sf=v.forwardRef(function(e,t){var r=v.useRef(null),n=v.useState({onScrollCapture:Ef,onWheelCapture:Ef,onTouchMoveCapture:Ef}),o=n[0],i=n[1],a=e.forwardProps,c=e.children,l=e.className,s=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,p=e.noRelative,m=e.noIsolation,y=e.inert,b=e.allowPinchZoom,h=e.as,g=void 0===h?"div":h,w=e.gapMode,O=Fl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=d,x=Of([r,t]),P=$l($l({},O),o);return v.createElement(v.Fragment,null,u&&v.createElement(j,{sideCar:Pf,removeScrollBar:s,shards:f,noRelative:p,noIsolation:m,inert:y,setCallbacks:i,allowPinchZoom:!!b,lockRef:r,gapMode:w}),a?v.cloneElement(v.Children.only(c),$l($l({},P),{ref:x})):v.createElement(g,$l({},P,{className:l,ref:x}),c))});Sf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Sf.classNames={fullWidth:vf,zeroRight:bf};function _f(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Cf=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=_f())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Nf=function(){var e,t=(e=Cf(),function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},kf={left:0,top:0,right:0,gap:0},Df=function(e){return parseInt(e||"",10)||0},If=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return kf;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Df(r),Df(n),Df(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Tf=Nf(),Af="data-scroll-locked",Lf=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(c,"px ").concat(n,";\n  }\n  body[").concat(Af,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(c,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(bf," {\n    right: ").concat(c,"px ").concat(n,";\n  }\n  \n  .").concat(vf," {\n    margin-right: ").concat(c,"px ").concat(n,";\n  }\n  \n  .").concat(bf," .").concat(bf," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(vf," .").concat(vf," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(Af,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n  }\n")},Rf=function(){var e=parseInt(document.body.getAttribute(Af)||"0",10);return isFinite(e)?e:0},Mf=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;v.useEffect(function(){return document.body.setAttribute(Af,(Rf()+1).toString()),function(){var e=Rf()-1;e<=0?document.body.removeAttribute(Af):document.body.setAttribute(Af,e.toString())}},[]);var i=v.useMemo(function(){return If(o)},[o]);return v.createElement(Tf,{styles:Lf(i,!t,o,r?"":"!important")})},$f=!1;if("undefined"!=typeof window)try{var Ff=Object.defineProperty({},"passive",{get:function(){return $f=!0,!0}});window.addEventListener("test",Ff,Ff),window.removeEventListener("test",Ff,Ff)}catch(Xy){$f=!1}var zf=!!$f&&{passive:!1},Uf=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},Bf=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Vf(e,n)){var o=Wf(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Vf=function(e,t){return"v"===e?function(e){return Uf(e,"overflowY")}(t):function(e){return Uf(e,"overflowX")}(t)},Wf=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Gf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qf=function(e){return[e.deltaX,e.deltaY]},Yf=function(e){return e&&"current"in e?e.current:e},Kf=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Qf=0,Hf=[];function Zf(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xf=(Jf=function(e){var t=v.useRef([]),r=v.useRef([0,0]),n=v.useRef(),o=v.useState(Qf++)[0],i=v.useState(Nf)[0],a=v.useRef(e);v.useEffect(function(){a.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Ul([e.lockRef.current],(e.shards||[]).map(Yf),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=v.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Gf(e),c=r.current,l="deltaX"in e?e.deltaX:c[0]-i[0],s="deltaY"in e?e.deltaY:c[1]-i[1],u=e.target,f=Math.abs(l)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Bf(f,u);if(!m)return!0;if(m?o=f:(o="v"===f?"h":"v",m=Bf(f,u)),!m)return!1;if(!n.current&&"changedTouches"in e&&(l||s)&&(n.current=o),!o)return!0;var y=n.current||o;return function(e,t,r,n,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*n,c=r.target,l=t.contains(c),s=!1,u=a>0,f=0,d=0;do{if(!c)break;var p=Wf(e,c),m=p[0],y=p[1]-p[2]-i*m;(m||y)&&Vf(e,c)&&(f+=y,d+=m);var b=c.parentNode;c=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(u&&(o&&Math.abs(f)<1||!o&&a>f)||!u&&(o&&Math.abs(d)<1||!o&&-a>d))&&(s=!0),s}(y,t,e,"h"===y?l:s,!0)},[]),l=v.useCallback(function(e){var r=e;if(Hf.length&&Hf[Hf.length-1]===i){var n="deltaY"in r?qf(r):Gf(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var l=(a.current.shards||[]).map(Yf).filter(Boolean).filter(function(e){return e.contains(r.target)});(l.length>0?c(r,l[0]):!a.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),s=v.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:Zf(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=v.useCallback(function(e){r.current=Gf(e),n.current=void 0},[]),f=v.useCallback(function(t){s(t.type,qf(t),t.target,c(t,e.lockRef.current))},[]),d=v.useCallback(function(t){s(t.type,Gf(t),t.target,c(t,e.lockRef.current))},[]);v.useEffect(function(){return Hf.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,zf),document.addEventListener("touchmove",l,zf),document.addEventListener("touchstart",u,zf),function(){Hf=Hf.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,zf),document.removeEventListener("touchmove",l,zf),document.removeEventListener("touchstart",u,zf)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:Kf(o)}):null,p?v.createElement(Mf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Pf.useMedium(Jf),xf);var Jf,ed=v.forwardRef(function(e,t){return v.createElement(Sf,$l({},e,{ref:t,sideCar:Xf}))});ed.classNames=Sf.classNames;const td=ed;var rd=new WeakMap,nd=new WeakMap,od={},id=0,ad=function(e){return e&&(e.host||ad(e.parentNode))},cd=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=ad(t);return r&&e.contains(r)?r:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);od[r]||(od[r]=new WeakMap);var i=od[r],a=[],c=new Set,l=new Set(o),s=function(e){e&&!c.has(e)&&(c.add(e),s(e.parentNode))};o.forEach(s);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(c.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(rd.get(e)||0)+1,s=(i.get(e)||0)+1;rd.set(e,l),i.set(e,s),a.push(e),1===l&&o&&nd.set(e,!0),1===s&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(f){}})};return u(t),c.clear(),id++,function(){a.forEach(function(e){var t=rd.get(e)-1,o=i.get(e)-1;rd.set(e,t),i.set(e,o),t||(nd.has(e)||e.removeAttribute(n),nd.delete(e)),o||e.removeAttribute(r)}),--id||(rd=new WeakMap,rd=new WeakMap,nd=new WeakMap,od={})}},ld=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),cd(n,o,r,"aria-hidden")):function(){return null}};function sd(e){const t=ud(e),r=v.forwardRef((e,r)=>{const n=e,{children:o}=n,i=d(n,["children"]),a=v.Children.toArray(o),c=a.find(dd);if(c){const e=c.props.children,n=a.map(t=>t===c?v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null:t);return gr.jsx(t,f(u({},i),{ref:r,children:v.isValidElement(e)?v.cloneElement(e,void 0,n):null}))}return gr.jsx(t,f(u({},i),{ref:r,children:o}))});return r.displayName=`${e}.Slot`,r}function ud(e){const t=v.forwardRef((e,t)=>{const r=e,{children:n}=r,o=d(r,["children"]);if(v.isValidElement(n)){const e=function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;if(o)return e.ref;if(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const r=u({},t);for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]=u(u({},o),i):"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return u(u({},e),r)}(o,n.props);return n.type!==v.Fragment&&(r.ref=t?lr(t,e):e),v.cloneElement(n,r)}return v.Children.count(n)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fd=Symbol("radix.slottable");function dd(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===fd}var pd="Dialog",[md,yd]=function(e,t=[]){let r=[];const n=()=>{const t=r.map(e=>v.createContext(e));return function(r){const n=(null==r?void 0:r[e])||t;return v.useMemo(()=>({[`__scope${e}`]:f(u({},r),{[e]:n})}),[r,n])}};return n.scopeName=e,[function(t,n){const o=v.createContext(n),i=r.length;r=[...r,n];const a=t=>{var r;const n=t,{scope:a,children:c}=n,l=d(n,["scope","children"]),s=(null==(r=null==a?void 0:a[e])?void 0:r[i])||o,u=v.useMemo(()=>l,Object.values(l));return gr.jsx(s.Provider,{value:u,children:c})};return a.displayName=t+"Provider",[a,function(r,a){var c;const l=(null==(c=null==a?void 0:a[e])?void 0:c[i])||o,s=v.useContext(l);if(s)return s;if(void 0!==n)return n;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},Tu(n,...t)]}(pd),[bd,vd]=md(pd),hd=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,c=v.useRef(null),l=v.useRef(null),[s,u]=Fu({prop:n,defaultProp:null!=o&&o,onChange:i,caller:pd});return gr.jsx(bd,{scope:t,triggerRef:c,contentRef:l,contentId:Mu(),titleId:Mu(),descriptionId:Mu(),open:s,onOpenChange:u,onOpenToggle:v.useCallback(()=>u(e=>!e),[u]),modal:a,children:r})};hd.displayName=pd;var gd="DialogTrigger",wd=v.forwardRef((e,t)=>{const r=e,{__scopeDialog:n}=r,o=d(r,["__scopeDialog"]),i=vd(gd,n),a=sr(t,i.triggerRef);return gr.jsx(Wu.button,f(u({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Fd(i.open)},o),{ref:a,onClick:Iu(e.onClick,i.onOpenToggle)}))});wd.displayName=gd;var Od="DialogPortal",[jd,xd]=md(Od,{forceMount:void 0}),Pd=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=vd(Od,t);return gr.jsx(jd,{scope:t,forceMount:r,children:v.Children.map(n,e=>gr.jsx(df,{present:r||i.open,children:gr.jsx(ff,{asChild:!0,container:o,children:e})}))})};Pd.displayName=Od;var Ed="DialogOverlay",Sd=v.forwardRef((e,t)=>{const r=xd(Ed,e.__scopeDialog),n=e,{forceMount:o=r.forceMount}=n,i=d(n,["forceMount"]),a=vd(Ed,e.__scopeDialog);return a.modal?gr.jsx(df,{present:o||a.open,children:gr.jsx(Cd,f(u({},i),{ref:t}))}):null});Sd.displayName=Ed;var _d=sd("DialogOverlay.RemoveScroll"),Cd=v.forwardRef((e,t)=>{const r=e,{__scopeDialog:n}=r,o=d(r,["__scopeDialog"]),i=vd(Ed,n);return gr.jsx(td,{as:_d,allowPinchZoom:!0,shards:[i.contentRef],children:gr.jsx(Wu.div,f(u({"data-state":Fd(i.open)},o),{ref:t,style:u({pointerEvents:"auto"},o.style)}))})}),Nd="DialogContent",kd=v.forwardRef((e,t)=>{const r=xd(Nd,e.__scopeDialog),n=e,{forceMount:o=r.forceMount}=n,i=d(n,["forceMount"]),a=vd(Nd,e.__scopeDialog);return gr.jsx(df,{present:o||a.open,children:a.modal?gr.jsx(Dd,f(u({},i),{ref:t})):gr.jsx(Id,f(u({},i),{ref:t}))})});kd.displayName=Nd;var Dd=v.forwardRef((e,t)=>{const r=vd(Nd,e.__scopeDialog),n=v.useRef(null),o=sr(t,r.contentRef,n);return v.useEffect(()=>{const e=n.current;if(e)return ld(e)},[]),gr.jsx(Td,f(u({},e),{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Iu(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:Iu(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:Iu(e.onFocusOutside,e=>e.preventDefault())}))}),Id=v.forwardRef((e,t)=>{const r=vd(Nd,e.__scopeDialog),n=v.useRef(!1),o=v.useRef(!1);return gr.jsx(Td,f(u({},e),{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(n.current||null==(a=r.triggerRef.current)||a.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const c=t.target;(null==(a=r.triggerRef.current)?void 0:a.contains(c))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),Td=v.forwardRef((e,t)=>{const r=e,{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a}=r,c=d(r,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),l=vd(Nd,n),s=v.useRef(null),p=sr(t,s);return v.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:yf()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:yf()),mf++,()=>{1===mf&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),mf--}},[]),gr.jsxs(gr.Fragment,{children:[gr.jsx(nf,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:gr.jsx(Zu,f(u({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Fd(l.open)},c),{ref:p,onDismiss:()=>l.onOpenChange(!1)}))}),gr.jsxs(gr.Fragment,{children:[gr.jsx(Vd,{titleId:l.titleId}),gr.jsx(Wd,{contentRef:s,descriptionId:l.descriptionId})]})]})}),Ad="DialogTitle",Ld=v.forwardRef((e,t)=>{const r=e,{__scopeDialog:n}=r,o=d(r,["__scopeDialog"]),i=vd(Ad,n);return gr.jsx(Wu.h2,f(u({id:i.titleId},o),{ref:t}))});Ld.displayName=Ad;var Rd="DialogDescription";v.forwardRef((e,t)=>{const r=e,{__scopeDialog:n}=r,o=d(r,["__scopeDialog"]),i=vd(Rd,n);return gr.jsx(Wu.p,f(u({id:i.descriptionId},o),{ref:t}))}).displayName=Rd;var Md="DialogClose",$d=v.forwardRef((e,t)=>{const r=e,{__scopeDialog:n}=r,o=d(r,["__scopeDialog"]),i=vd(Md,n);return gr.jsx(Wu.button,f(u({type:"button"},o),{ref:t,onClick:Iu(e.onClick,()=>i.onOpenChange(!1))}))});function Fd(e){return e?"open":"closed"}$d.displayName=Md;var zd="DialogTitleWarning",[Ud,Bd]=function(e,t){const r=v.createContext(t),n=e=>{const t=e,{children:n}=t,o=d(t,["children"]),i=v.useMemo(()=>o,Object.values(o));return gr.jsx(r.Provider,{value:i,children:n})};return n.displayName=e+"Provider",[n,function(n){const o=v.useContext(r);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}]}(zd,{contentName:Nd,titleName:Ad,docsSlug:"dialog"}),Vd=({titleId:e})=>{const t=Bd(zd),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{if(e){document.getElementById(e)}},[r,e]),null},Wd=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bd("DialogDescriptionWarning").contentName}}.`;return v.useEffect(()=>{var r;const n=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)}},[r,e,t]),null},Gd=hd,qd=wd,Yd=Sd,Kd=kd,Qd=Ld,Hd=$d,Zd=p.createContext({size:"md",type:void 0}),Xd=function(){return p.useContext(Zd)};function Jd(e){return(Jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ep=["children","className","inset"];function tp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tp(Object(r),!0).forEach(function(t){np(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function np(e,t,r){var n;return n=function(e,t){if("object"!=Jd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Jd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Jd(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function op(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ip=p.forwardRef(function(e,t){var r=e.children,n=e.className,o=e.inset,i=op(e,ep),a=Xd().type;return gr.jsx(Nc,rp(rp({ref:t,className:ac("overflow-y-auto max-h-[70vh]",{"px-6 sm:px-4":!a&&!o},n)},i),{},{children:r}))});function ap(e){return(ap="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}ip.displayName="DialogBody";var cp=["className","children","type"];function lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(r),!0).forEach(function(t){up(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function up(e,t,r){var n;return n=function(e,t){if("object"!=ap(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ap(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ap(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var dp=p.forwardRef(function(e,t){var r=e.className,n=e.children;e.type;var o=fp(e,cp);return gr.jsx(Hd,sp(sp({ref:t,className:ac("cursor-pointer",r),type:void 0},o),{},{asChild:!0,children:n}))});function pp(e){return(pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}dp.displayName=Hd.displayName;var mp=["className"];function yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bp(e,t,r){var n;return n=function(e,t){if("object"!=pp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==pp(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var hp=p.forwardRef(function(e,t){var r=e.className,n=vp(e,mp);return gr.jsx(Yd,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(r),!0).forEach(function(t){bp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:ac("fixed left-0 top-0 w-full h-full bg-black/40 z-[1001] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r)},n))});function gp(e){return(gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}hp.displayName=Yd.displayName;var wp=["className","size","showCloseIcon","type","icon","children","onEsc","onClose","onMaskClick"];function Op(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Op(Object(r),!0).forEach(function(t){xp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Op(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xp(e,t,r){var n;return n=function(e,t){if("object"!=gp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=gp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==gp(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Ep={warning:function(e){return p.createElement(qt,Ht({spin:!1,component:p.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"warning"},p.createElement("g",{clipPath:"url(#f267a)"},p.createElement("g",null,p.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M16.2530078125,1.9676513671875L30.6984078125,27.9999513671875L1.2705078125,27.9999513671875L16.2530078125,1.9676513671875ZM15.9997078125,21.1748513671875C15.1713078125,21.1748513671875,14.4997078125,21.8463513671875,14.4997078125,22.6748513671875C14.4997078125,23.5032513671875,15.1713078125,24.1748513671875,15.9997078125,24.1748513671875C16.8282078125,24.1748513671875,17.4997078125,23.5032513671875,17.4997078125,22.6748513671875C17.4997078125,21.8463513671875,16.8282078125,21.1748513671875,15.9997078125,21.1748513671875ZM16.9997078125,11.9999513671875L14.9997078125,11.9999513671875L14.9997078125,18.9999513671875L16.9997078125,18.9999513671875L16.9997078125,11.9999513671875Z"}))))},e))},success:function(e){return p.createElement(qt,Qt({spin:!1,component:p.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"success"},p.createElement("g",{clipPath:"url(#5b1ea)"},p.createElement("g",null,p.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M16,3C23.1797,3,29,8.8203,29,16C29,23.1797,23.1797,29,16,29C8.8203,29,3,23.1797,3,16C3,8.8203,8.8203,3,16,3ZM21.2929,11.2928L14,18.5857L10.7071,15.2928L9.29291,16.7071L14,21.4142L22.7071,12.7071L21.2929,11.2928Z"}))))},e))},info:function(e){return p.createElement(qt,Kt({spin:!1,component:p.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"info"},p.createElement("g",{clipPath:"url(#348ca)"},p.createElement("g",null,p.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M16,3C17.7628,3,19.4496,3.340675,21.0605,4.0220199999999995C22.6159,4.67991,23.9932,5.6084499999999995,25.1924,6.80763C26.3916,8.00681,27.3201,9.38411,27.978,10.939530000000001C28.6593,12.55041,29,14.2372,29,16C29,17.7628,28.6593,19.4496,27.978,21.0605C27.3201,22.6159,26.3916,23.9932,25.1924,25.1924C23.9932,26.3916,22.6159,27.3201,21.0605,27.978C19.4496,28.6593,17.7628,29,16,29C14.2372,29,12.55041,28.6593,10.939530000000001,27.978C9.38411,27.3201,8.00681,26.3916,6.80761,25.1924C5.60843,23.9932,4.6799,22.6159,4.0220199999999995,21.0605C3.340672,19.4496,3,17.7628,3,16C3,14.2372,3.340672,12.5504,4.0220199999999995,10.939530000000001C4.6799,9.38412,5.60843,8.006820000000001,6.80761,6.80763C8.00681,5.6084499999999995,9.38411,4.67992,10.93952,4.0220199999999995C12.5504,3.340675,14.2372,3,16,3ZM17,13L15,13L15,23L17,23L17,13ZM16,7.8252C15.1716,7.8252,14.5,8.49677,14.5,9.325199999999999C14.5,10.15362,15.1716,10.825199999999999,16,10.825199999999999C16.828400000000002,10.825199999999999,17.5,10.15362,17.5,9.325199999999999C17.5,8.49677,16.828400000000002,7.8252,16,7.8252Z"}))))},e))},error:function(e){return p.createElement(qt,Yt({spin:!1,component:p.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"caution"},p.createElement("g",{clipPath:"url(#3aeca)"},p.createElement("g",null,p.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M16,3C19.5895,3,22.8409,4.45618,25.1924,6.80761C27.5438,9.15908,29,12.4104,29,16C29,19.5896,27.5438,22.8409,25.1924,25.1924C22.8409,27.5438,19.5896,29,16,29C12.4104,29,9.15907,27.5438,6.80761,25.1924C4.45617,22.8409,3,19.5895,3,16C3,12.4105,4.45619,9.15907,6.80761,6.8076C9.15908,4.45617,12.4105,3,16,3ZM16.0003,21.1749C15.1719,21.1749,14.5003,21.8465,14.5003,22.6749C14.5003,23.5033,15.1719,24.1749,16.0003,24.1749C16.828699999999998,24.1749,17.5003,23.5033,17.5003,22.6749C17.5003,21.8465,16.828699999999998,21.1749,16.0003,21.1749ZM17.0001,9L15.0001,9L15.0001,19L17.0001,19L17.0001,9Z"}))))},e))}},Sp=kr("fixed left-[50%] top-[50%] max-w-[80vw] sm:min-w-[280px] sm:max-w-[calc(100%-32px)] z-[1002] grid translate-x-[-50%] translate-y-[-50%] bg-white py-6 sm:pb-4 shadow-md shadow-black/10 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] transition-all",{variants:{size:{xl:"w-[1200px] max-h-70vh sm:w-auto",lg:"w-[800px] max-h-70vh sm:w-auto",md:"w-[640px] max-h-70vh sm:w-auto",sm:"w-[480px] max-h-70vh sm:w-auto",xs:"w-[320px] max-h-70vh sm:w-auto"},hasIcon:{true:"px-6 sm:px-4",false:null}},defaultVariants:{size:"md"}}),_p=kr("text-heading-3 sm:text-[32px]",{variants:{type:{warning:"text-warning",success:"text-success",info:"text-info",error:"text-error"}}}),Cp=p.forwardRef(function(e,t){var r=sa(e),n=r.className,o=r.size,i=void 0===o?"md":o,a=r.showCloseIcon,c=r.type,l=r.icon,s=r.children,u=r.onEsc,f=r.onClose,d=r.onMaskClick,m=Pp(r,wp),y="sm"!==oa()&&a;return gr.jsxs(Pd,{children:[gr.jsx(hp,{}),gr.jsx(Zd.Provider,{value:{size:i,type:c},children:gr.jsxs(Kd,jp(jp({ref:t,className:ac(Sp({size:i,hasIcon:Vi(c)}),n),onPointerDownOutside:d,onEscapeKeyDown:u},m),{},{children:[gr.jsxs(Eu,{gap:"sm",sm:{vertical:!0,align:"stretch"},children:[!l&&c&&Ep[c]?gr.jsx(Nc,{alignSelf:"start",centered:!0,height:28,className:ac(_p({type:c})),sm:{height:32,centered:!0,alignSelf:"stretch"},children:p.createElement(Ep[c])}):null,l?gr.jsx(Nc,{alignSelf:"start",centered:!0,children:l}):null,gr.jsx(Nc,{flex:1,className:"overflow-y-auto",children:s})]}),y?gr.jsx(dp,{onClick:f,className:"absolute inline-flex justify-center items-center w-7 h-7 right-2 top-2 opacity-70 hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:gr.jsx(rr,{})}):null]}))})]})});Cp.displayName=Kd.displayName;var Np=p.forwardRef(function(e,t){var r=e.children;return gr.jsx(Eu,{ref:t,justify:"start",align:"start",sm:{justify:"center"},children:gr.jsx("p",{className:"text-left text-subtler text-body",children:r})})});function kp(e){return(kp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Np.displayName="DialogDescription";var Dp=["inset","className","flexEqual","children"],Ip=["children","className"];function Tp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ap(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tp(Object(r),!0).forEach(function(t){Lp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Lp(e,t,r){var n;return n=function(e,t){if("object"!=kp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=kp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==kp(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Mp=p.forwardRef(function(e,t){var r=e.inset,n=e.className,o=e.flexEqual,i=void 0===o||o,a=e.children,c=Rp(e,Dp),l=Xd(),s=l.type,u=l.size,f="sm"===oa(),d=p.useMemo(function(){return i?p.Children.map(a,function(e){if(p.isValidElement(e)){var t=e.props,r=t.children,n=t.className,o=Rp(t,Ip);return p.cloneElement(e,Ap({className:ac(n,"sm:flex-1")},o),r)}return e}):a},[f,a,i]);return gr.jsx(Eu,Ap(Ap({ref:t,gap:u&&["lg","xl"].includes(u)?"md":"sm",className:ac("mt-6 sm:mt-8",{"px-6 sm:px-4":!s&&!r},n),align:"center",justify:"end",sm:{gap:"sm"}},c),{},{children:d}))});function $p(e){return($p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Mp.displayName="DialogFooter";var Fp=["className","inset"];function zp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Up(e,t,r){var n;return n=function(e,t){if("object"!=$p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=$p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==$p(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Vp=kr("mr-10 mb-3 sm:mr-0 space-y-1.5 text-left sm:text-center",{variants:{hasType:{true:null,false:"pl-6 sm:px-4"},inset:{true:"pl-6 sm:px-4",false:null}},compoundVariants:[{inset:!0,className:"pl-0 sm:px-0"}]}),Wp=p.forwardRef(function(e,t){var r=e.className,n=e.inset,o=Bp(e,Fp),i=Xd().type;return gr.jsx("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(r),!0).forEach(function(t){Up(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:ac(Vp({hasType:!!i,inset:n}),r)},o))});function Gp(e){return(Gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Wp.displayName="DialogHeader";var qp=["className"];function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Kp(e,t,r){var n;return n=function(e,t){if("object"!=Gp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Gp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Gp(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Hp=p.forwardRef(function(e,t){var r=e.className,n=Qp(e,qp);return gr.jsx(Qd,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(r),!0).forEach(function(t){Kp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:ac("text-heading-3 font-bold tracking-tight",r)},n))});function Zp(e){return(Zp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Jp(e,t,r){var n;return n=function(e,t){if("object"!=Zp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Zp(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function em(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
em=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(I){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:S(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",m="executing",y="completed",b={};function v(){}function h(){}function g(){}var w={};s(w,a,function(){return this});var O=Object.getPrototypeOf,j=O&&O(O(D([])));j&&j!==r&&n.call(j,a)&&(w=j);var x=g.prototype=v.prototype=Object.create(w);function P(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function E(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Zp(u)&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,a,c)},function(e){r("throw",e,a,c)}):t.resolve(u).then(function(e){s.value=e,a(s)},function(e){return r("throw",e,a,c)})}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,o){r(e,n,t,o)})}return i=i?i.then(o,o):o()}})}function S(t,r,n){var o=d;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=_(c,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function _(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Zp(t)+" is not iterable")}return h.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:h,configurable:!0}),h.displayName=s(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},P(E.prototype),s(E.prototype,c,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},P(x),s(x,l,"Generator"),s(x,a,function(){return this}),s(x,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=D,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function tm(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}function rm(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){tm(i,n,o,a,c,"next",e)}function c(e){tm(i,n,o,a,c,"throw",e)}a(void 0)})}}function nm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(u){s=!0,o=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return om(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return om(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function om(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Hp.displayName=Qd.displayName;var im=function(e){var t=e.title,r=e.type,n=e.size,o=e.footer,i=e.description,a=e.esc,c=void 0===a||a,l=e.showCloseIcon,s=void 0===l||l,u=e.maskClosable,f=void 0===u||u,d=e.content,m=void 0===d?"":d,y=e.okText,b=void 0===y?"\u786e\u5b9a":y,v=e.cancelText,h=void 0===v?"\u53d6\u6d88":v,g=e.headerInset,w=e.bodyInset,O=e.footerInset,j=e.onOk,x=e.onCancel,P=nm(p.useState(!0),2),E=P[0],S=P[1],_=nm(p.useState(!1),2),C=_[0],N=_[1],k=nm(p.useState(!1),2),D=k[0],I=k[1];if(!m&&!i)throw new Error("QuickDialog: content or description is required");var T=function(){var e=rm(em().mark(function e(){return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!C){e.next=2;break}return e.abrupt("return");case 2:return N(!0),e.next=5,null==j?void 0:j();case 5:N(!1),S(!1);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),A=function(){var e=rm(em().mark(function e(t){return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!D){e.next=2;break}return e.abrupt("return");case 2:return I(!0),e.next=5,null==x?void 0:x(t);case 5:I(!1),S(!1);case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();return gr.jsx(Gd,{open:E,onOpenChange:function(e){C||D||S(e)},children:gr.jsxs(Cp,{size:n,type:r,showCloseIcon:s,onEsc:function(e){e.preventDefault(),c&&A("esc")},onMaskClick:function(e){e.preventDefault(),f&&A("mask")},onClose:function(e){e.preventDefault(),A("close")},children:[t?gr.jsx(Wp,{inset:g,children:gr.jsx(Hp,{children:t})}):null,gr.jsxs(ip,{inset:w,children:[m||null,!m&&i?gr.jsx(Np,{children:i}):null]}),void 0===o?gr.jsxs(Mp,{inset:O,children:[gr.jsx(mc,{type:"solid",loading:C,onClick:T,children:b}),!1!==h?gr.jsx(mc,{type:"outlined",loading:D,onClick:function(){return A("cancel")},children:h}):null]}):null,void 0!==o&&o?gr.jsx(Mp,{inset:O,children:o}):null]})})};function am(e){return(am="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}im.displayName="QuickDialog";var cm=["type","children","className"];function lm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lm(Object(r),!0).forEach(function(t){um(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function um(e,t,r){var n;return n=function(e,t){if("object"!=am(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=am(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==am(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fm(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var dm=p.forwardRef(function(e,t){var r,n=e.type,o=e.children,i=e.className,a=fm(e,cm),c=p.isValidElement(o),l=c?null==o||null===(r=o.props)||void 0===r?void 0:r.type:n;return gr.jsx(qd,sm(sm({ref:t,asChild:c,type:l,className:ac("cursor-pointer",i)},a),{},{children:o}))});dm.displayName="DialogTrigger";var pm=Gd;pm.Content=Cp,pm.Trigger=dm,pm.Header=Wp,pm.Close=dp,pm.Title=Hp,pm.Body=ip,pm.Footer=Mp,pm.Description=Np,pm.open=function(e){var t=document.createElement("div");document.body.appendChild(t),y.render(gr.jsx(im,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xp(Object(r),!0).forEach(function(t){Jp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e)),t)};var mm=(e=>(e.End="end",e.SoldOut="sold_out",e))(mm||{});const ym="\u7acb\u5373\u62a2\u8d2d",bm="\u4eca\u65e5\u5df2\u552e\u7f44",vm="\u4e0d\u6ee1\u8db3\u6d3b\u52a8\u6761\u4ef6",hm="\u8be6\u89c1\u6d3b\u52a8\u89c4\u5219",gm="\u4eca\u65e5\u5df2\u7ed3\u675f",wm={[mm.End]:gm,[mm.SoldOut]:bm},Om=p.createContext({}),jm=Om.Provider;function xm(e){const t=e,{children:r}=t,n=d(t,["children"]);return p.createElement(jm,{value:u({},n)},r)}var Pm=(e=>(e.INIT="INIT",e.READY="READY",e.EFFECTIVE="EFFECTIVE",e.SOLD_OUT="SOLD_OUT",e.END="END",e.UNAVAILABLE="UNAVAILABLE",e))(Pm||{});const Em=e=>{if(!e)return"--:--:--";const t=Xl(e),[r,n]=p.useState("--:--:--"),o=p.useRef(),i=()=>{const e=Xl(),r=t.diff(e);if(r>0){const e=(e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60);return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`})(r/1e3);n(e)}else n("00:00:00");o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{i()},1e3)};return p.useEffect(()=>(t&&i(),()=>{clearTimeout(o.current)}),[t]),r},Sm=e=>{const{targetTimeStamp:t,desc:r="\u8ddd\u79bb\u672c\u573a\u5f00\u59cb\u5269"}=e,n=Em(t),[o,i,a]=null==n?void 0:n.split(":");return p.createElement("div",{className:"count-down"},p.createElement("div",{className:"count-down-desc"},r),p.createElement("div",{className:"count-down-time"},p.createElement("div",{className:"time-box"},o),p.createElement("div",{className:"count-down-colon"},":"),p.createElement("div",{className:"time-box"},i),p.createElement("div",{className:"count-down-colon"},":"),p.createElement("div",{className:"time-box"},a)))},_m="_4b58cdf69d792343426cdd91970f4d7d_btn-arrow",Cm="_4b58cdf69d792343426cdd91970f4d7d_button",Nm="_4b58cdf69d792343426cdd91970f4d7d_end-button",km="_4b58cdf69d792343426cdd91970f4d7d_effective-button",Dm="_4b58cdf69d792343426cdd91970f4d7d_init-button",Im=e=>{const{hasPrice:t,handlePopUpBuy:r,flashInfo:n,className:o="",showProgress:i=!0}=e,{cardConfig:a}=p.useContext(Om),{flashSaleEndTextType:c=mm.End}=a||{},{startTime:l,flashState:s,isCurSessionSoldOut:f}=n||{},d=[null,void 0].includes(n.progress)?100:n.progress,m=Object.assign((e=>{const{flashState:t,handlePopUpBuy:r,hasPrice:n,isCurSessionSoldOut:o,defaultEndText:i}=e;return{[Pm.INIT]:{className:`init-button ${Dm} ${Cm}`,children:p.createElement(p.Fragment,null,p.createElement("span",null,ym),p.createElement(Xt,{className:_m})),disabled:!0,type:"solid"},[Pm.EFFECTIVE]:{className:`effective-button ${km} ${Cm}`,onClick:r,children:p.createElement(p.Fragment,null,p.createElement("span",null,ym),p.createElement(Xt,{className:_m})),disabled:!n,type:"solid"},[Pm.END]:{className:`end-button ${Nm} ${Cm}`,children:o?bm:i,disabled:!0,type:"solid"}}[t]})({hasPrice:t,handlePopUpBuy:r,flashState:s,isCurSessionSoldOut:f,defaultEndText:wm[c]})||{},{size:"hero",block:!0,color:"secondary"}),y=[Pm.READY].includes(s),b=[Pm.UNAVAILABLE].includes(s),v=[Pm.SOLD_OUT].includes(s);return y?p.createElement("div",{className:o},p.createElement(Sm,{targetTimeStamp:l})):b?p.createElement("div",{className:o},p.createElement("div",{className:"unavailable-tip"},p.createElement(ar,{className:"unavailable-tip-icon"}),p.createElement("div",{className:"unavailable-tip-one"},vm),p.createElement("div",{className:"unavailable-tip-two"},hm))):v?p.createElement("div",{className:o},p.createElement(Sm,{targetTimeStamp:l,desc:"\u672c\u573a\u5df2\u552e\u7f44\uff0c\u8ddd\u79bb\u4e0b\u573a\u5f00\u59cb\u5269"})):p.createElement("div",{className:o},p.createElement("div",{className:"sale-button"},i&&p.createElement(D,{percent:d,className:"sale-progress",icon:"https://img.alicdn.com/imgextra/i2/O1CN01w6b7Gx1tf50GsZY4f_!!6000000005928-2-tps-49-56.png"}),p.createElement(mc,u({disabled:!0},m))))};var Tm=function(){return be(function e(){me(this,e),O(this,"cache",void 0),window.__good_cache_data||(window.__good_cache_data={}),this.cache=window.__good_cache_data},[{key:"setDelivery",value:function(e,t){this.cache["_delivery_".concat(e)]=t}},{key:"getDelivery",value:function(e){return this.cache["_delivery_".concat(e)]}},{key:"setGood",value:function(e,t){this.cache["_good_".concat(e)]=t}},{key:"getGood",value:function(e){return this.cache["_good_".concat(e)]}}])}(),Am=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(void 0===e)return"";var r=Number(e);return(Math.round(r*Math.pow(10,t-2))/Math.pow(10,t)).toFixed(t)},Lm=function(e){if(!e)return{};var t=e.indexOf("\uffe5")>-1?"\uffe5":"\xa5",r=e.split(t),n=(r[1]||r[0]).split("/"),o=n[0].split("."),i="";return n&&n.length>0&&n.splice(0,1),n&&n.length>0&&(i=n.join("/")),{symbol:"\uffe5",integer:o[0]||"0",decimal:o[1]||"00",unit:i}};!function(e,t){new URLSearchParams(e).get(t)}(window.location.search,"prePrice"),new Tm,new Tm;var Rm=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t";try{var r=document.body.clientWidth,n=e.currentTarget.getBoundingClientRect();n&&n.left&&r-n.left<=200?t="tl":n&&n.left&&n.left<=150&&(t="tr")}catch(o){}return t},Mm="\u5b98\u7f51\u76ee\u5f55\u4ef7",$m="\u5b98\u7f51\u6298\u6263\u4ef7",Fm="\u4f01\u4e1a\u5408\u540c\u6298\u6263\u4ef7",zm="\u5546\u54c1\u7684\u5217\u8868\u4ef7\u683c\u3002",Um="\u5546\u54c1\u5b9e\u9645\u5728\u5b98\u7f51\u552e\u5356\u7684\u4ef7\u683c\uff0c\u901a\u5e38\u4f1a\u5728\u76ee\u5f55\u4ef7\u57fa\u7840\u4e0a\u53e0\u52a0\u4e00\u5b9a\u6298\u6263\u3002",Bm="\u6839\u636e\u5408\u540c\u6298\u6263\u4f18\u60e0\u540e\u7684\u4ef7\u683c\uff0c\u5373\u5728\u76ee\u5f55\u4ef7\u57fa\u7840\u4e0a\u53e0\u52a0\u9500\u552e\u5408\u540c\u4e2d\u6240\u7ea6\u5b9a\u7684\u6298\u6263\u3002";const Vm="_56a795d1e8b9483927486bbd235c607a_tag-label",Wm="_56a795d1e8b9483927486bbd235c607a_tag-text",Gm="_56a795d1e8b9483927486bbd235c607a_tag-img";function qm(e){var t=e.className,r=e.show99Tag,n=void 0!==r&&r,o=e.showCrowdTag,i=void 0===o?{}:o,a=e.promotionTags,c=void 0===a?[]:a,l=null==i?void 0:i.text;return l&&(c=c.filter(function(e){return e!==l})),p.createElement(p.Fragment,null,p.createElement("div",{className:"".concat(Vm," ").concat(t||"")},n?p.createElement("span",{className:Gm},p.createElement("img",{alt:"99\u8ba1\u5212",src:"https://img.alicdn.com/imgextra/i3/O1CN01DYNuMQ1VyGcdDTFaN_!!6000000002721-2-tps-232-80.png"})):null,c.map(function(e,t){return t<3?p.createElement("span",{className:Wm,key:"tag".concat(t)},e):null})))}const Ym=p.memo(qm),Km="_8cb62e427ba5bad8cd7daa20c1b5df23_discounted-price",Qm="_8cb62e427ba5bad8cd7daa20c1b5df23_highlight",Hm="_8cb62e427ba5bad8cd7daa20c1b5df23_pricing-tip-btn",Zm="_8cb62e427ba5bad8cd7daa20c1b5df23_help-filled";function Xm(e){var t=R(p.useState("t"),2),r=t[0],n=t[1],o=e.isLogin,i=e.price,a=void 0===i?{}:i,c=e.isChannelPrice,l=e.className,s=e.good,u=void 0===s?{}:s,f=u.hasPostPay,d=u.isPackage,y=a.formatPrice,b=void 0===y?{}:y,v=a.price,h=b.promotionPrice,g=b.hasDiscount,w=b.queryFailCode,O=b.codeContent,j=b.channelPrice;if(!h)return null;var x=Lm(c?void 0===j?"":j:h);return p.createElement("span",{className:"".concat(Km," ").concat(l||"")},v&&!w?p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(Qm)},x.symbol,p.createElement("strong",null,x.integer),".",x.decimal),x.unit?"/".concat(x.unit):"",!o&&g?"\u8d77":"",d&&f&&p.createElement(m.Balloon,{v2:!0,align:"t",trigger:p.createElement("span",{className:Hm},p.createElement("i",{className:"".concat(Zm," aliyun-icon aliyun-icon-help_filled")})),triggerType:"hover",closable:!1},p.createElement("div",{className:"discount-ballon"},p.createElement("div",{className:"discount-ballon-rule"},p.createElement("p",null,"\u6b64\u4ef7\u683c\u4ec5\u4e3a\u9884\u4ed8\u8d39\u4ef7\u683c\uff0c\u5957\u9910\u5185\u7684\u6309\u91cf\u8ba1\u8d39\u9879\u6309\u7167\u5b9e\u9645\u7528\u91cf\u6536\u8d39"))))):"",v&&w?p.createElement(m.Balloon,{v2:!0,align:r,trigger:p.createElement("span",{className:Qm,onMouseEnter:function(e){n(Rm(e,r))}},x.symbol,p.createElement("strong",null,x.integer)),triggerType:"hover",closable:!1},O):"")}const Jm=p.memo(Xm),ey="_1dcf0e552d6f608bd75027d1df5f5d9b_origin-price",ty="_1dcf0e552d6f608bd75027d1df5f5d9b_origin-price-label",ry="_1dcf0e552d6f608bd75027d1df5f5d9b_price-tip-desc",ny="_1dcf0e552d6f608bd75027d1df5f5d9b_price-tip-label",oy="_1dcf0e552d6f608bd75027d1df5f5d9b_price-tip-desc-contract";function iy(e){var t,r=e.price,n=void 0===r?{}:r,o=e.isChannelPrice,i=e.className,a=n.formatPrice,c=void 0===a?{}:a,l=c.dailyPrice,s=c.promotionPrice,u=c.channelPrice,f=c.queryFailCode,d=c.cheapStandAmount;return f&&!o?t="\uffe5***":o?u&&s&&(t=s):t=d&&!f?d:l,t?p.createElement("span",{className:"".concat(ey," ").concat(i||"")},function(e){var t,r,n=e.price,o=void 0===n?{}:n,i=e.label,a=o.formatPrice,c=void 0===a?{}:a,l=c.isContractActivity,s=c.channelPrice,u=R(p.useState("t"),2),f=u[0],d=u[1];return i?p.createElement(p.Fragment,null,i):s?"\u65e5\u5e38\u4ef7":(l?(t=Fm,r=Bm):(t=$m,r=Um),p.createElement(p.Fragment,null,p.createElement(m.Balloon,{v2:!0,align:f,trigger:p.createElement("span",{onMouseEnter:function(e){d(Rm(e,f))},className:ty},t),triggerType:"hover",closable:!1},p.createElement("div",{className:"".concat(ry," ").concat(l?oy:null)},p.createElement("span",{className:ny},t,":"),r),p.createElement("div",{className:"".concat(ry," ").concat(l?oy:null)},p.createElement("span",{className:ny},Mm,":"),zm))))}(e),": ",t):null}const ay=p.memo(iy),cy="_4a298d96a29f0b79d7d44e9386e75a5b_discount-ballon-btn",ly="_4a298d96a29f0b79d7d44e9386e75a5b_discount-ballon",sy="_4a298d96a29f0b79d7d44e9386e75a5b_article-item-result",uy="_4a298d96a29f0b79d7d44e9386e75a5b_article-result-wrap",fy="_4a298d96a29f0b79d7d44e9386e75a5b_article-item-result-price",dy="_4a298d96a29f0b79d7d44e9386e75a5b_article-item-result-price-highlight",py="_4a298d96a29f0b79d7d44e9386e75a5b_ballon-head-price",my="_4a298d96a29f0b79d7d44e9386e75a5b_list-price",yy="_4a298d96a29f0b79d7d44e9386e75a5b_ballon-head-price-row",by="_4a298d96a29f0b79d7d44e9386e75a5b_discounted-price",vy="_4a298d96a29f0b79d7d44e9386e75a5b_highlight",hy="_4a298d96a29f0b79d7d44e9386e75a5b_discount-ballon-rule",gy="_4a298d96a29f0b79d7d44e9386e75a5b_post-pay-discount-ballon-head",wy="_4a298d96a29f0b79d7d44e9386e75a5b_discount-expand";function Oy(e){var t=e.module,r=e.refreshBallon,n=e.refreshIndex,o=R(p.useState(!1),2),i=o[0],a=o[1],c=t.name,l=t.formatPrice,s=void 0===l?{}:l,u=t.id,f=s.promotionPrice,d=s.isContractActivity;p.useEffect(function(){r()},[i]);return p.createElement("div",{className:"".concat(gy," ").concat(i?wy:""),key:"".concat(u,"-").concat(n)},p.createElement("h3",null,c,p.createElement("span",{className:vy},f,p.createElement("i",{className:"ace-icon ace-icon-arrow-down",onClick:function(){a(!i)}}))),function(){var e=t.formatPrice,r=void 0===e?{}:e,n=t.price,o=n.discount,i=n.discountedPrice,a=n.cheapStandAmount,c=void 0===a?0:a,l=n.listPrice,s=void 0===l?0:l,u=n.unitPrice,f=!1;c>0?i<c&&o>.04&&(f=!0):o>.04&&(f=!0);var m=s||u,y=c>0||s>0;return p.createElement("div",{className:py},m?p.createElement("div",{className:my},"\u5b98\u7f51\u76ee\u5f55\u4ef7\uff08",r.listPrice||r.dailyPrice,"\uff09"):null,y?p.createElement("div",{className:yy},d?"\u4f01\u4e1a\u5408\u540c\u6298\u6263\u4ef7":"\u5b98\u7f51\u6298\u6263\u4ef7"," ",p.createElement("span",null,r.cheapStandAmount||r.dailyPrice)):null,f?p.createElement("div",{className:yy},"\u6d3b\u52a8\u4f18\u60e0 ",p.createElement("span",null,"\u51cf ",r.discount)):null)}())}function jy(e){var t,r,n,o,i=e.className,a=e.price,c=e.good,l=R(p.useState("t"),2),s=l[0],u=l[1],f=R(p.useState(0),2),d=f[0],y=f[1],b=a.discountRule,v=a.price,h=a.promotionResult,g=a.articleItemResults,w=void 0===g?[]:g,O=a.formatPrice,j=void 0===O?{}:O,x=a.isPostPay,P=a.postPayModules,E=j.isContractActivity,S=j.queryFailCode,_=b||{},C=_.isRefund,N=_.isSameIdLimt,k=_.userTimes,D=_.isCoupon,I=_.orderNumLimit,T=function(){y(d+1)};return r=(t=v||{}).discountedPrice,n=t.totalPrice,!(o=t.channelPrice)&&(!c.isPackage&&!b&&!h||c.isPackage&&r===n||S||o)?null:p.createElement(m.Balloon,{v2:!0,align:s,trigger:p.createElement("span",{onMouseEnter:function(e){u(Rm(e,s))},className:"".concat(cy," ").concat(i||"")},"\u4e86\u89e3\u4f18\u60e0"),shouldUpdatePosition:!0,triggerType:"hover",closable:!1,popupStyle:{minWidth:230}},function(){return p.createElement("div",{className:ly},p.createElement("div",{className:"discount-ballon-head"},p.createElement("h3",null,"\u4f18\u60e0\u660e\u7ec6"),x?p.createElement("div",{className:"post-pay-discount-ballon"},null==P?void 0:P.map(function(e){return p.createElement(Oy,{module:e,key:e.id,refreshIndex:d,refreshBallon:T})})):(t=(e=v||{}).discount,r=void 0===t?0:t,n=e.discountedPrice,o=void 0===n?0:n,i=e.totalPrice,a=e.cheapStandAmount,l=void 0===a?0:a,s=e.listPrice,u=void 0===s?0:s,f=e.unitPrice,m=e.activityDiscount,y=void 0===m?0:m,b=e.doubleDiscount,h=e.remainDiscountQuota,g=!1,l>0?o&&o<l&&r>.4&&(g=!0):r>0&&(g=!0),p.createElement("div",{className:py},u||f?p.createElement("div",{className:my},"\u5b98\u7f51\u76ee\u5f55\u4ef7\uff08\uffe5",Am(u||f),"\uff09"):null,l>0||u>0?p.createElement("div",{className:yy},E?"\u4f01\u4e1a\u5408\u540c\u6298\u6263\u4ef7":"\u5b98\u7f51\u6298\u6263\u4ef7"," ",p.createElement("span",null,"\uffe5",Am(l||i))):null,g&&y?p.createElement("div",{className:yy},"\u6d3b\u52a8\u4f18\u60e0 ",p.createElement("span",null,"\u51cf\uffe5",Am(y))):null,g&&b?p.createElement("div",{className:yy},"\u6298\u4e0a\u6298\u4f18\u60e0",h?"\uff08\u53ef\u7528\u989d\u5ea6\uffe5".concat(Am(h),"\uff09"):"",p.createElement("span",null,"\u51cf\uffe5",Am(b))):null,o!==l?p.createElement("div",{className:by},"\u4ef7\u683c",p.createElement("span",{className:vy},"\uffe5",Am(o))):null))),c.isPackage&&w&&w.length>0?p.createElement("div",{className:uy},w.map(function(e,t){return p.createElement("div",{className:sy,key:"articleItemResult".concat(t)},e.articleItemName,p.createElement("span",{className:fy},e.price.discount?"\u8282\u7701:\uffe5".concat(Am(e.price.discount)):"",p.createElement("span",{className:dy},"\uffe5".concat(Am(e.price.discountedPrice)))))})):"",c.isPackage?"":p.createElement("div",{className:hy},p.createElement("h3",null,"\u6d3b\u52a8\u89c4\u5219"),p.createElement("div",null,p.createElement("p",null,"\u9650\u8d2d\uff1a",I?"".concat(I,"\u4ef6"):"\u4e0d\u9650\u8d2d"),p.createElement("p",null,"\u9000\u6b3e\uff1a",C?"\u53ef\u9000\u6b3e":"\u6d3b\u52a8\u5546\u54c1\u7981\u6b62\u9000\u6b3e"),p.createElement("p",null,"\u8d26\u53f7\u9650\u5236:"," ",N?"\n              \u540c\u8ba4\u8bc1\u8d26\u53f7\u4ec5\u53ef\u8d2d\u4e70".concat(k,"\u6b21\uff08\u5982\u540c\u4e2a\u4eba\u8eab\u4efd\u8bc1\u3001\u4f01\u4e1a\u6267\u7167\u8ba4\u8bc1\u3001\u540c\u624b\u673a\u53f7\u7b49\uff09\n            "):"\u65e0\u9650\u5236"),p.createElement("p",null,"\u662f\u5426\u53ef\u53e0\u52a0\u4f18\u60e0\u5238\uff1a",D?"\u53ef\u53e0\u52a0":"\u4e0d\u53ef\u53e0\u52a0"))));var e,t,r,n,o,i,a,l,s,u,f,m,y,b,h,g}())}const xy=p.memo(jy);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var Py=function(){return Py=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Py.apply(this,arguments)};var Ey=function(e){var t=e.animate,r=void 0===t||t,n=e.backgroundColor,o=void 0===n?"#f5f6f7":n,i=e.backgroundOpacity,a=void 0===i?1:i,c=e.baseUrl,l=void 0===c?"":c,s=e.children,u=e.foregroundColor,f=void 0===u?"#eee":u,d=e.foregroundOpacity,m=void 0===d?1:d,y=e.gradientRatio,b=void 0===y?2:y,v=e.uniqueKey,h=e.rtl,g=void 0!==h&&h,w=e.speed,O=void 0===w?1.2:w,j=e.style,x=void 0===j?{}:j,P=e.title,E=void 0===P?"Loading...":P,S=e.beforeMask,_=void 0===S?null:S,C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),N=v||Math.random().toString(36).substring(6),k="".concat(N,"-diff"),D="".concat(N,"-animated-diff"),I="".concat(N,"-aria"),T=g?{transform:"scaleX(-1)"}:null,A="".concat(O,"s"),L="".concat(-1*b," 0"),R="".concat(b," 0");return p.createElement("svg",Py({"aria-labelledby":I,role:"img",style:Py(Py({},x),T)},C),E?p.createElement("title",{id:I},E):null,_&&p.isValidElement(_)?_:null,p.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(l,"#").concat(k,")"),style:{fill:"url(".concat(l,"#").concat(D,")")}}),p.createElement("defs",null,p.createElement("clipPath",{id:k},s),p.createElement("linearGradient",{id:D,gradientTransform:"translate(".concat(L,")")},p.createElement("stop",{offset:"0%",stopColor:o,stopOpacity:a}),p.createElement("stop",{offset:"50%",stopColor:f,stopOpacity:m}),p.createElement("stop",{offset:"100%",stopColor:o,stopOpacity:a}),r&&p.createElement("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(L,"; 0 0; ").concat(R),dur:A,repeatCount:"indefinite"}))))},Sy=function(e){return e.children?p.createElement(Ey,Py({},e)):p.createElement(_y,Py({},e))},_y=function(e){return p.createElement(Sy,Py({viewBox:"0 0 476 124"},e),p.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),p.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),p.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),p.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),p.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),p.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const Cy=Sy,Ny=()=>p.createElement(Cy,{title:"",height:"80px",width:"120px",style:{marginBottom:"8px"}},p.createElement("rect",{x:"0",y:"35.5",width:"80",height:"18"}),p.createElement("rect",{x:"0",y:"61.5",width:"120",height:"18"})),ky="e4af861e6d1de9889b82adff73cb4ac5_price",Dy="e4af861e6d1de9889b82adff73cb4ac5_simple-label-container",Iy="e4af861e6d1de9889b82adff73cb4ac5_price-container",Ty="e4af861e6d1de9889b82adff73cb4ac5_symbol",Ay="e4af861e6d1de9889b82adff73cb4ac5_decimal",Ly="e4af861e6d1de9889b82adff73cb4ac5_original-price";const Ry=p.memo(function(e){const{accountStatus:t,goods:r,price:n,loadingPrice:o,hasPrice:i,flashState:a,fallbackPrice:c,className:l=""}=e,{isLogin:s,isCertificated:u}=t,f=(e=>{const{price:t=0,unit:r=""}=e,n=String(t).split(".");return{symbol:"\uffe5",int:n[0],decimal:`${n[1]||""}00`.slice(0,2),unit:r}})(c),d=!([Pm.EFFECTIVE].includes(a)&&s&&u),m=d?p.createElement(p.Fragment,null,p.createElement("span",{className:Ty},f.symbol),p.createElement("strong",null,f.int),p.createElement("span",{className:Ay},".",f.decimal),p.createElement("span",null,"/",f.unit)):p.createElement(p.Fragment,null,p.createElement(Jm,{isLogin:s,price:n}),(null==n?void 0:n.price)&&p.createElement(xy,{good:r,price:n}));return p.createElement("div",{className:`${l} ${ky}`},o?p.createElement(Ny,null):i?p.createElement(p.Fragment,null,p.createElement("div",{className:Dy},!d&&(null==n?void 0:n.promotionTags)&&p.createElement(Ym,{promotionTags:((null==n?void 0:n.promotionTags)||["dddd"]).slice(0,3)})),p.createElement("div",{className:Iy},m),p.createElement(ay,{price:n,className:Ly})):p.createElement(p.Fragment,null,p.createElement("span",{className:"price-tip-text"},"\u5237\u65b0\u9875\u9762\uff0c\u7acb\u5373\u53c2\u4e0e\u62a2\u8d2d")))});const My=p.memo(function(e){const{displayComponents:t,className:r="",terminal:n="pc"}=e,o=t&&t.length>1&&"pc"===n?"calc(50% - 8px)":"100%",i=({commodityItem:e,index:t})=>{var r;return p.createElement("div",{className:"modify-item",key:`modify-item-${t}`,style:{width:o}},p.createElement(Gc,{className:"label "+((null==e?void 0:e.loading)?"loading":"")},null==(r=null==e?void 0:e.label)?void 0:r.name),p.createElement(Cl,{className:"modify-item-content"},((e={})=>{const{options:t=[]}=e,r=t.slice(0,1);return r.length>0?"string"==typeof r[0].text?p.createElement(m.Text,{className:"sku-text",title:r[0].text},r[0].text):r[0].text&&r[0].text.title?p.createElement(m.Text,{className:"sku-text",title:r[0].text.title},r[0].text.title):"":""})(e)))};return p.createElement("div",{className:r},t&&t.length>0&&t.map((e,t)=>p.createElement(i,{commodityItem:e,index:t})))}),$y="e0189aeb023257e20fc165d62bb0b30c_tag",Fy="e0189aeb023257e20fc165d62bb0b30c_title",zy={Color:"#a84600",DescBackground:"#fddcc4",LogoBackground:"#753100"},Uy=e=>{const{uiConfig:t}=p.useContext(Om),{commonConfig:r}=t||{},{tagColor:n=zy.Color,tagDescBackground:o=zy.DescBackground,tagLogoBackground:i=zy.LogoBackground}=r||{},{className:a="",title:c="",loading:l}=e,s={"--good-tag-color":n,"--good-tag-desc-bg":o,"--good-tag-logo-bg":i};return c?p.createElement("div",{className:`${$y} ${a}`,style:s},p.createElement("div",{className:Fy},c)):null},By=e=>p.createElement(Cy,{title:"",height:"22px",width:"150px",className:(null==e?void 0:e.className)||""},p.createElement("rect",{x:"0",y:"0",width:"150px",height:"22px"})),Vy=e=>p.createElement(Cy,{title:"",height:"28px",width:"250px",className:(null==e?void 0:e.className)||""},p.createElement("rect",{x:"0",y:"0",width:"250px",height:"28px"}));function Wy(e){const{activityRules:t}=p.useContext(Om),{name:r,detailLink:n,className:o="",description:i="",loading:a,terminal:c="pc"}=e,{H3:l,Text:s}=Nl,{cardConfig:u}=p.useContext(Om),{tagTitle:f,tagLogo:d}=u||{};return p.createElement("div",{className:o},p.createElement("div",{className:"good-title-container"},a?p.createElement(p.Fragment,null,p.createElement(Vy,{className:"good-title-skeleton-pc"}),p.createElement(By,{className:"good-title-skeleton-mobile"})):p.createElement(l,{title:r,className:"good-title"},p.createElement(Uy,{loading:a,className:"good-title-tag",title:f,logo:d}),n?p.createElement("a",{href:n,target:"_blank"},r):r),p.createElement(s,{className:"good-caption",title:i},i)),p.createElement("a",{className:"good-caption-rule",onClick:()=>{var e;null==(e=null==window?void 0:window.__ADC_GLOBAL_RULES_MODAL)||e.call(window,{activityRules:t,title:"\u6d3b\u52a8\u89c4\u5219",device:c})}},"\u67e5\u770b\u89c4\u5219 ",p.createElement(er,null)))}const Gy=(e,t="")=>{if(!e)return t;const r=e.startsWith("https://")||e.startsWith("http://"),n=e.startsWith("#")||e.startsWith("linear-gradient");return r?`url(${e})`:n?e:t},qy=e=>{const{className:t="",text:r=""}=e;return p.createElement("span",{className:`${t}`},p.createElement(ar,{style:{fontSize:"16px",marginRight:"6px"}}),r)},Yy={WholeBg:"#fff",FooterBg:"#F4F8FE",TitleBg:"transparent"},Ky=e=>{const{uiConfig:t,cardConfig:r}=p.useContext(Om),{h5Config:n}=t||{},{goodBuyTipText:o}=r||{},{background:i,footerBackground:a,titleBackground:c,titleColor:l,descColor:s}=n||{},{config:d,ref:m,className:y,loading:b}=e,{titleDomConfig:v,priceDomConfig:h,skuDomConfig:g,buttonDomConfig:w,flashInfo:O}=d,[j,x,P]=[[i,Yy.WholeBg],[a,Yy.FooterBg],[c,Yy.TitleBg]].map(e=>Gy(...e)),E={"--mobile-sku-card-background":j,"--mobile-sku-card-footer-background":x,"--mobile-sku-card-title-background":P,"--mobile-sku-card-title-color":l,"--mobile-sku-card-title-desc-color":s};return p.createElement("div",{ref:m,className:`${y} mobile-sku-good-card`,style:E},p.createElement(Wy,f(u({},v),{loading:b,className:"good-info",terminal:"h5"})),p.createElement("div",{className:"good-body-container"},p.createElement("div",{className:"good-body"},p.createElement(My,f(u({},g),{className:"good-sku",terminal:"h5"})),p.createElement(Ry,f(u({},h),{className:"good-price"}))),p.createElement(Im,f(u({},w),{showProgress:![Pm.UNAVAILABLE,Pm.END,Pm.SOLD_OUT].includes(O.flashState),className:"good-buy"})),o&&p.createElement(qy,{className:"good-buy-tip",text:o})))},Qy={TitleBg:"transparent",WholeBg:"#fff",TitleColor:"#181818",DescColor:"#181818"},Hy=e=>{const{uiConfig:t={},cardConfig:r}=p.useContext(Om),{pcConfig:n}=t,{goodBuyTipText:o}=r||{};let{background:i,wholeBackground:a,titleColor:c=Qy.TitleColor,descColor:l=Qy.DescColor}=n||{};const{tagTitle:s,tagLogo:d}=r||{},m=s&&d,{config:y,ref:b,className:v="",loading:h}=e,{titleDomConfig:g,priceDomConfig:w,skuDomConfig:O,buttonDomConfig:j}=y,[x,P]=[[i,Qy.TitleBg],[a,Qy.WholeBg]].map(e=>Gy(...e)),E={"--pc-sku-card-title-background":x,"--pc-sku-card-title-color":c,"--pc-sku-card-title-desc-color":l,"--pc-sku-card-whole-background":P,"--pc-sku-card-title-width":m?"calc(100% - 100px)":"100%"};return p.createElement("div",{ref:b,style:E,className:`pc-sku-good-card ${v}`},p.createElement("div",{className:"left"},p.createElement(Wy,f(u({},g),{loading:h,className:"good-info",terminal:"pc"}))),p.createElement("div",{className:"right"},p.createElement(My,f(u({},O),{className:"good-sku",terminal:"pc"})),p.createElement("div",{className:"good-price"},p.createElement(Ry,u({},w)),o&&p.createElement(qy,{className:"good-buy-tip",text:o})),p.createElement(Im,f(u({},j),{className:"good-buy"}))))};r.exports=function(e){const{goodInfo:t}=e,{goodsId:r}=t||{},{goods:n}=function(e){var t=e.goodsIds,r=R(p.useState({}),2),n=r[0],o=r[1],i=function(){var e=T(ae.mark(function e(){var r,n,i;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.map(function(e){return wt(e)}),e.next=3,Promise.allSettled(r);case 3:n=e.sent,i={},n.forEach(function(e,r){if("fulfilled"===e.status){var n=e.value.goodsId;i[n]=e.value}else se(function(){var n=T(ae.mark(function n(o){return ae.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:o.Logger.fatal("\u83b7\u53d6\u5546\u54c1\u6570\u636e".concat(t[r],"\u53d1\u751f\u9519\u8bef").concat(e.reason),{},{tags:"ace-flash-sale-card"});case 1:case"end":return n.stop()}},n)}));return function(e){return n.apply(this,arguments)}}())}),o(i);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return p.useEffect(function(){i()},[]),{goods:n}}({goodsIds:[r]}),o=p.useRef(null),i=r?n[r]:{},a=!i,{goodsConfig:c,dataTrackerConfig:l,startUpdateFlashInfo:s,stopUpdateFlashInfo:d}=(({goods:e,goodInfo:t})=>{const[r,n]=p.useState(null),o=pe(),{loadingPrice:i,flashInfo:a,price:c,handleSnatch:l,startUpdateFlashInfo:s,stopUpdateFlashInfo:u}=At({accountStatus:o,goods:e}),f=p.useMemo(()=>!!(null==c?void 0:c.price)||!!((null==c?void 0:c.formatPrice)&&Object.keys(c.formatPrice).length>0),[c]);p.useEffect(()=>{if(e&&e&&(null==e?void 0:e.getDisplayComponents)){const t=e.getDisplayComponents();n(t.slice(0,2))}},[e]);const d=p.useMemo(()=>({"data-tracker-container":!0,"data-tracker-scm":null==e?void 0:e.scm,"data-tracker-mcm-code":null==e?void 0:e.mcm_code,"data-tracker-mcm-id":null==e?void 0:e.mcm_id}),[e]),m={name:null==e?void 0:e.name,detailLink:(null==e?void 0:e.commodityDetailUrl)||(null==e?void 0:e.productDetailLink),description:null==e?void 0:e.description},y={displayComponents:r},b={accountStatus:o,goods:e,price:c,hasPrice:f,loadingPrice:i,flashState:null==a?void 0:a.flashState,fallbackPrice:{price:null==t?void 0:t.goodsPrice,unit:null==t?void 0:t.goodsUnit}};return{goodsConfig:{goods:e,titleDomConfig:m,skuDomConfig:y,priceDomConfig:b,buttonDomConfig:{flashInfo:a,hasPrice:f,handlePopUpBuy:l},flashInfo:a},dataTrackerConfig:d,startUpdateFlashInfo:s,stopUpdateFlashInfo:u}})({goods:i,goodInfo:t});return p.useEffect(()=>{if(!i)return;const e=new IntersectionObserver(t=>{return r=this,n=null,o=function*(){t&&t[0]&&t[0].intersectionRatio>0&&(null==s||s(),e.disconnect())},new Promise((e,t)=>{var i=e=>{try{c(o.next(e))}catch(r){t(r)}},a=e=>{try{c(o.throw(e))}catch(r){t(r)}},c=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,a);c((o=o.apply(r,n)).next())});var r,n,o},{threshold:[.05]});return o&&o.current&&e.observe(o.current),()=>{null==d||d()}},[i]),p.createElement(xm,u({},e),p.createElement("div",{className:"flash-sale-card-wrapper"},p.createElement("div",{ref:o,className:"flash-sale-card-container"},p.createElement(Ky,f(u({config:c,className:"ace-flash-sale-single-sku-card-h5"},l),{loading:a,ref:o})),p.createElement(Hy,f(u({config:c,className:"ace-flash-sale-single-sku-card-pc"},l),{loading:a,ref:o})))))}});
biu.define({name:"@ali/hmod-adc-marketing-token-plan-card-compact",version:"0.0.6",dependencies:{react:">=18.2.0","react-dom":"^16.8 || ^17.0 || ^18.0 || ^19.0"}},function(e,t,r){"use strict";var n=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&u(e,r,t[r]);if(a)for(var r of a(t))s.call(t,r)&&u(e,r,t[r]);return e},d=(e,t)=>o(e,i(t)),f=(e,t)=>{var r={};for(var n in e)c.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&a)for(var n of a(e))t.indexOf(n)<0&&s.call(e,n)&&(r[n]=e[n]);return r},p=(e,t,r)=>new Promise((n,o)=>{var i=e=>{try{c(r.next(e))}catch(t){o(t)}},a=e=>{try{c(r.throw(e))}catch(t){o(t)}},c=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,a);c((r=r.apply(e,t)).next())});const m=e("react"),b=e("react-dom");function y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const v=y(m),h=y(b);function g(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=g(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function w(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=g(e))&&(n&&(n+=" "),n+=t);return n}const O="_9a1d73bbcd1a80626a31035a12410804_icon",P="_9a1d73bbcd1a80626a31035a12410804_spin";function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var j=["role","spin","component","className","style","children"];function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(this,arguments)}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach(function(t){_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(e,t,r){var n;return n=function(e,t){if("object"!=x(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==x(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var N=function(e){var t=e.role,r=void 0===t?"img":t,n=e.spin,o=e.component,i=e.className,a=e.style;e.children;var c=C(e,j);return m.createElement("span",E({role:r,className:w(O,_({},P,n),i),style:S({},a)},c),o)};function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D.apply(this,arguments)}N.displayName="AdcIcon";function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T.apply(this,arguments)}function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I.apply(this,arguments)}function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R.apply(this,arguments)}function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(this,arguments)}var L=function(e){return m.createElement(N,A({spin:!1,component:m.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"arrow-right-up"},m.createElement("g",{clipPath:"url(#9823a)"},m.createElement("g",null,m.createElement("path",{fillOpacity:1,d:"M22.498420768066406,10.95895294989624L22.498420768066406,19.85851404989624L24.498418768066408,19.85851404989624L24.498418768066408,7.54480600357056L12.184709568066406,7.54480504989624L12.184711468066407,9.54480554989624L21.084140768066405,9.54480554989624L6.881324768066406,23.74761904989624L8.295539868066406,25.16183404989624L22.498420768066406,10.95895294989624Z"}))))},e))};function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(this,arguments)}var z=function(e){return m.createElement(N,M({spin:!1,component:m.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"close"},m.createElement("g",null,m.createElement("g",null,m.createElement("path",{fillOpacity:1,d:"M17.41438046875,15.999036328125L26.70768046875,25.292336328125L25.29348046875,26.706536328125L16.000180468750003,17.413236328125002L6.70669046875,26.706636328125L5.29248046875,25.292436328125L14.58598046875,15.998936328125L5.29352759875,6.706446328125L6.70775046875,5.292236328125L16.000180468750003,14.584766328125L25.29258046875,5.292462826125L26.70678046875,6.706686328125L17.41438046875,15.999036328125Z"}))))},e))};function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U.apply(this,arguments)}var F=function(e){return m.createElement(N,U({spin:!0,component:m.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"spin","data-icon":"loading"},m.createElement("g",null,m.createElement("g",{transform:"matrix(-1,0,0,1,58,0)"},m.createElement("path",{fillOpacity:1,d:"M42,3L43,3L43,5L42,5C40.5076,5,39.0805,5.28801,37.71861,5.86403C36.40271,6.42061,35.23711,7.20654,34.22183,8.22183C33.206540000000004,9.23712,32.4206,10.402709999999999,31.86402,11.71861C31.28801,13.0805,31,14.5076,31,16C31,17.4924,31.28801,18.9195,31.86402,20.2814C32.4206,21.5973,33.206540000000004,22.7629,34.22183,23.7782C35.23711,24.7935,36.40271,25.5794,37.71861,26.136C39.0805,26.712,40.5076,27,42,27C43.4924,27,44.9195,26.712,46.281400000000005,26.136C47.597300000000004,25.5794,48.7629,24.7935,49.7782,23.7782C50.7935,22.7629,51.5794,21.5973,52.135999999999996,20.2814C52.712,18.9195,53,17.4924,53,16L53,15L55,15L55,16C55,17.7628,54.6593,19.4496,53.978,21.0605C53.3201,22.6159,52.3916,23.9932,51.1924,25.1924C49.9932,26.3916,48.615899999999996,27.3201,47.060500000000005,27.978C45.449600000000004,28.6593,43.7628,29,42,29C40.2372,29,38.55039,28.6593,36.93951,27.978C35.38409,27.3201,34.00679,26.3916,32.80761,25.1924C31.60843,23.9932,30.6799,22.6159,30.02202,21.0605C29.340672,19.4496,29,17.7628,29,16C29,14.2372,29.340672,12.55039,30.02202,10.93951C30.6799,9.38409,31.60843,8.006789999999999,32.80761,6.80762C34.00679,5.60844,35.38409,4.67991,36.93951,4.0220199999999995C38.550380000000004,3.340673,40.2372,3,42,3Z"}))))},e))},B=Object.defineProperty,V=(e,t)=>B(e,"name",{value:t,configurable:!0});function $(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function W(...e){return t=>{let r=!1;const n=e.map(e=>{const n=$(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():$(e[t],null)}}}}function q(...e){return v.useCallback(W(...e),e)}V($,"setRef"),V(W,"composeRefs"),V(q,"useComposedRefs");var G=Object.defineProperty,K=(e,t)=>G(e,"name",{value:t,configurable:!0});function H(e){const t=v.forwardRef((t,r)=>{var n;let o=t,{children:i}=o,a=f(o,["children"]),c=null,s=!1;const u=[];re(i)&&"function"==typeof ae&&(i=ae(i._payload)),v.Children.forEach(i,e=>{var t;if(ee(e)){s=!0;const r=e;let n="child"in r.props?r.props.child:r.props.children;re(n)&&"function"==typeof ae&&(n=ae(n._payload)),c=Q(r,n),u.push(null==(t=null==c?void 0:c.props)?void 0:t.children)}else u.push(e)}),c?c=v.cloneElement(c,void 0,u):!s&&1===v.Children.count(i)&&v.isValidElement(i)&&(c=i);const l=c?X(c):void 0,d=q(r,l);if(!c){if(i||0===i)throw new Error(s?ie(e):oe(e));return i}const p=Z(a,null!=(n=c.props)?n:{});return c.type!==v.Fragment&&(p.ref=r?d:l),v.cloneElement(c,p)});return t.displayName=`${e}.Slot`,t}K(H,"createSlot");var Y=H("Slot"),J=Symbol.for("radix.slottable");K(function(e){const t=K(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=J,t},"createSlottable");var Q=K((e,t)=>{if("child"in e.props){const t=e.props.child;return v.isValidElement(t)?v.cloneElement(t,void 0,e.props.children(t.props.children)):null}return v.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Z(e,t){const r=l({},t);for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]=l(l({},o),i):"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return l(l({},e),r)}function X(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function ee(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===J}K(Z,"mergeProps"),K(X,"getElementRef"),K(ee,"isSlottable");var te=Symbol.for("react.lazy");function re(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===te&&"_payload"in e&&ne(e._payload)}function ne(e){return"object"==typeof e&&null!==e&&"then"in e}K(re,"isLazyComponent"),K(ne,"isPromiseLike");var oe=K(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ie=K(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ae=v[" use ".trim().toString()];const ce=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,se=w,ue=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return se(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const a=ce(t)||ce(n);return o[e][a]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),s=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let r=t,{class:n,className:o}=r,a=f(r,["class","className"]);return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes(l(l({},i),c)[t]):l(l({},i),c)[t]===r})?[...e,n,o]:e},[]);return se(e,a,s,null==r?void 0:r.class,null==r?void 0:r.className)};var le=ue("inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{color:{primary:"",secondary:""},type:{default:"border border-bold bg-transparent text-subtle hover:bg-primary hover:border-transparent hover:text-white",solid:"bg-primary text-white hover:bg-primary-hover",outlined:"border border-gray-500 text-primary hover:bg-primary hover:border-transparent hover:text-white",link:"text-primary hover:text-primary-hover no-underline"},size:{sm:"h-7 text-sm",md:"h-8",lg:"h-9",hero:"h-11 text-lg"},block:{true:"w-full",false:null},loading:{true:"opacity-60",false:null}},compoundVariants:[{color:"secondary",type:"default",className:"hover:bg-secondary"},{color:"secondary",type:"outlined",className:"text-secondary hover:bg-secondary"},{color:"secondary",type:"solid",className:"bg-secondary hover:bg-secondary-hover"},{color:"secondary",type:"link",className:"text-secondary hover:text-secondary-hover"},{type:["default","solid","outlined"],size:"sm",className:"px-4"},{type:["default","solid","outlined"],size:"md",className:"px-6"},{type:["default","solid","outlined"],size:"lg",className:"px-9"},{type:["default","solid","outlined"],size:"hero",className:"px-12"}],defaultVariants:{color:"primary",type:"default",size:"md"}}),de=ue("inline-flex justify-center items-center",{variants:{size:{sm:"gap-1",md:"gap-2",lg:"gap-3",hero:"gap-4"}},defaultVariants:{size:"md"}});const fe="object"==typeof global&&global&&global.Object===Object&&global;var pe="object"==typeof self&&self&&self.Object===Object&&self;const me=fe||pe||Function("return this")();const be=me.Symbol;var ye=Object.prototype,ve=ye.hasOwnProperty,he=ye.toString,ge=be?be.toStringTag:void 0;var we=Object.prototype.toString;var Oe=be?be.toStringTag:void 0;function Pe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Oe&&Oe in Object(e)?function(e){var t=ve.call(e,ge),r=e[ge];try{e[ge]=void 0;var n=!0}catch(i){}var o=he.call(e);return n&&(t?e[ge]=r:delete e[ge]),o}(e):function(e){return we.call(e)}(e)}function xe(e){return null!=e&&"object"==typeof e}function je(e){return"symbol"==typeof e||xe(e)&&"[object Symbol]"==Pe(e)}function Ee(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}const ke=Array.isArray;var Se=be?be.prototype:void 0,_e=Se?Se.toString:void 0;function Ce(e){if("string"==typeof e)return e;if(ke(e))return Ee(e,Ce)+"";if(je(e))return _e?_e.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var Ne=/\s/;var De=/^\s+/;function Te(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Ne.test(e.charAt(t)););return t}(e)+1).replace(De,""):e}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Re=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,Le=/^0o[0-7]+$/i,Me=parseInt;function ze(e){if("number"==typeof e)return e;if(je(e))return NaN;if(Ie(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ie(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Te(e);var r=Ae.test(e);return r||Le.test(e)?Me(e.slice(2),r?2:8):Re.test(e)?NaN:+e}function Ue(e){if(!Ie(e))return!1;var t=Pe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Fe=me["__core-js_shared__"];var Be,Ve=(Be=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||""))?"Symbol(src)_1."+Be:"";var $e=Function.prototype.toString;function We(e){if(null!=e){try{return $e.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var qe=/^\[object .+?Constructor\]$/,Ge=Function.prototype,Ke=Object.prototype,He=Ge.toString,Ye=Ke.hasOwnProperty,Je=RegExp("^"+He.call(Ye).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qe(e){return!(!Ie(e)||(t=e,Ve&&Ve in t))&&(Ue(e)?Je:qe).test(We(e));var t}function Ze(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Qe(r)?r:void 0}const Xe=Ze(me,"WeakMap");var et=Object.create;const tt=function(){function e(){}return function(t){if(!Ie(t))return{};if(et)return et(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var rt=Date.now;var nt=function(){try{var e=Ze(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const ot=nt;var it=ot?function(e,t){return ot(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:function(e){return e};var at,ct,st,ut=(at=it,ct=0,st=0,function(){var e=rt(),t=16-(e-st);if(st=e,t>0){if(++ct>=800)return arguments[0]}else ct=0;return at.apply(void 0,arguments)});const lt=ut;var dt=/^(?:0|[1-9]\d*)$/;function ft(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&dt.test(e))&&e>-1&&e%1==0&&e<t}function pt(e,t,r){"__proto__"==t&&ot?ot(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function mt(e,t){return e===t||e!=e&&t!=t}var bt=Object.prototype.hasOwnProperty;function yt(e,t,r){var n=e[t];bt.call(e,t)&&mt(n,r)&&(void 0!==r||t in e)||pt(e,t,r)}function vt(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var c=t[i],s=n?n(r[c],e[c],c,r,e):void 0;void 0===s&&(s=e[c]),o?pt(r,c,s):yt(r,c,s)}return r}var ht=Math.max;function gt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function wt(e){return null!=e&&gt(e.length)&&!Ue(e)}var Ot=Object.prototype;function Pt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ot)}function xt(e){return xe(e)&&"[object Arguments]"==Pe(e)}var jt=Object.prototype,Et=jt.hasOwnProperty,kt=jt.propertyIsEnumerable,St=xt(function(){return arguments}())?xt:function(e){return xe(e)&&Et.call(e,"callee")&&!kt.call(e,"callee")};const _t=St;var Ct="object"==typeof t&&t&&!t.nodeType&&t,Nt=Ct&&"object"==typeof r&&r&&!r.nodeType&&r,Dt=Nt&&Nt.exports===Ct?me.Buffer:void 0;const Tt=(Dt?Dt.isBuffer:void 0)||function(){return!1};var It={};function Rt(e){return function(t){return e(t)}}It["[object Float32Array]"]=It["[object Float64Array]"]=It["[object Int8Array]"]=It["[object Int16Array]"]=It["[object Int32Array]"]=It["[object Uint8Array]"]=It["[object Uint8ClampedArray]"]=It["[object Uint16Array]"]=It["[object Uint32Array]"]=!0,It["[object Arguments]"]=It["[object Array]"]=It["[object ArrayBuffer]"]=It["[object Boolean]"]=It["[object DataView]"]=It["[object Date]"]=It["[object Error]"]=It["[object Function]"]=It["[object Map]"]=It["[object Number]"]=It["[object Object]"]=It["[object RegExp]"]=It["[object Set]"]=It["[object String]"]=It["[object WeakMap]"]=!1;var At="object"==typeof t&&t&&!t.nodeType&&t,Lt=At&&"object"==typeof r&&r&&!r.nodeType&&r,Mt=Lt&&Lt.exports===At&&fe.process;const zt=function(){try{var e=Lt&&Lt.require&&Lt.require("util").types;return e||Mt&&Mt.binding&&Mt.binding("util")}catch(t){}}();var Ut=zt&&zt.isTypedArray,Ft=Ut?Rt(Ut):function(e){return xe(e)&&gt(e.length)&&!!It[Pe(e)]};const Bt=Ft;var Vt=Object.prototype.hasOwnProperty;function $t(e,t){var r=ke(e),n=!r&&_t(e),o=!r&&!n&&Tt(e),i=!r&&!n&&!o&&Bt(e),a=r||n||o||i,c=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],s=c.length;for(var u in e)!t&&!Vt.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ft(u,s))||c.push(u);return c}function Wt(e,t){return function(r){return e(t(r))}}const qt=Wt(Object.keys,Object);var Gt=Object.prototype.hasOwnProperty;function Kt(e){return wt(e)?$t(e):function(e){if(!Pt(e))return qt(e);var t=[];for(var r in Object(e))Gt.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var Ht=Object.prototype.hasOwnProperty;function Yt(e){if(!Ie(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Pt(e),r=[];for(var n in e)("constructor"!=n||!t&&Ht.call(e,n))&&r.push(n);return r}function Jt(e){return wt(e)?$t(e,!0):Yt(e)}var Qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zt=/^\w*$/;const Xt=Ze(Object,"create");var er=Object.prototype.hasOwnProperty;var tr=Object.prototype.hasOwnProperty;function rr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function nr(e,t){for(var r=e.length;r--;)if(mt(e[r][0],t))return r;return-1}rr.prototype.clear=function(){this.__data__=Xt?Xt(null):{},this.size=0},rr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rr.prototype.get=function(e){var t=this.__data__;if(Xt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return er.call(t,e)?t[e]:void 0},rr.prototype.has=function(e){var t=this.__data__;return Xt?void 0!==t[e]:tr.call(t,e)},rr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xt&&void 0===t?"__lodash_hash_undefined__":t,this};var or=Array.prototype.splice;function ir(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ir.prototype.clear=function(){this.__data__=[],this.size=0},ir.prototype.delete=function(e){var t=this.__data__,r=nr(t,e);return!(r<0)&&(r==t.length-1?t.pop():or.call(t,r,1),--this.size,!0)},ir.prototype.get=function(e){var t=this.__data__,r=nr(t,e);return r<0?void 0:t[r][1]},ir.prototype.has=function(e){return nr(this.__data__,e)>-1},ir.prototype.set=function(e,t){var r=this.__data__,n=nr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};const ar=Ze(me,"Map");function cr(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function sr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sr.prototype.clear=function(){this.size=0,this.__data__={hash:new rr,map:new(ar||ir),string:new rr}},sr.prototype.delete=function(e){var t=cr(this,e).delete(e);return this.size-=t?1:0,t},sr.prototype.get=function(e){return cr(this,e).get(e)},sr.prototype.has=function(e){return cr(this,e).has(e)},sr.prototype.set=function(e,t){var r=cr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function ur(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(ur.Cache||sr),r}ur.Cache=sr;var lr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dr=/\\(\\)?/g,fr=function(e){var t=ur(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(lr,function(e,r,n,o){t.push(n?o.replace(dr,"$1"):r||e)}),t});const pr=fr;function mr(e,t){return ke(e)?e:function(e,t){if(ke(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!je(e))||Zt.test(e)||!Qt.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:pr(function(e){return null==e?"":Ce(e)}(e))}function br(e){if("string"==typeof e||je(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function yr(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var vr=be?be.isConcatSpreadable:void 0;function hr(e){return ke(e)||_t(e)||!!(vr&&e&&e[vr])}function gr(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=hr),o||(o=[]);++i<a;){var c=e[i];t>0&&r(c)?t>1?gr(c,t-1,r,n,o):yr(o,c):n||(o[o.length]=c)}return o}function wr(e){return(null==e?0:e.length)?gr(e,1):[]}const Or=Wt(Object.getPrototypeOf,Object);var Pr=Function.prototype,xr=Object.prototype,jr=Pr.toString,Er=xr.hasOwnProperty,kr=jr.call(Object);function Sr(e){var t=this.__data__=new ir(e);this.size=t.size}Sr.prototype.clear=function(){this.__data__=new ir,this.size=0},Sr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Sr.prototype.get=function(e){return this.__data__.get(e)},Sr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ir){var n=r.__data__;if(!ar||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new sr(n)}return r.set(e,t),this.size=r.size,this};var _r="object"==typeof t&&t&&!t.nodeType&&t,Cr=_r&&"object"==typeof r&&r&&!r.nodeType&&r,Nr=Cr&&Cr.exports===_r?me.Buffer:void 0,Dr=Nr?Nr.allocUnsafe:void 0;function Tr(){return[]}var Ir=Object.prototype.propertyIsEnumerable,Rr=Object.getOwnPropertySymbols,Ar=Rr?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(Rr(e),function(t){return Ir.call(e,t)}))}:Tr;const Lr=Ar;const Mr=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)yr(t,Lr(e)),e=Or(e);return t}:Tr;function zr(e,t,r){var n=t(e);return ke(e)?n:yr(n,r(e))}function Ur(e){return zr(e,Kt,Lr)}function Fr(e){return zr(e,Jt,Mr)}const Br=Ze(me,"DataView");const Vr=Ze(me,"Promise");const $r=Ze(me,"Set");var Wr="[object Map]",qr="[object Promise]",Gr="[object Set]",Kr="[object WeakMap]",Hr="[object DataView]",Yr=We(Br),Jr=We(ar),Qr=We(Vr),Zr=We($r),Xr=We(Xe),en=Pe;(Br&&en(new Br(new ArrayBuffer(1)))!=Hr||ar&&en(new ar)!=Wr||Vr&&en(Vr.resolve())!=qr||$r&&en(new $r)!=Gr||Xe&&en(new Xe)!=Kr)&&(en=function(e){var t=Pe(e),r="[object Object]"==t?e.constructor:void 0,n=r?We(r):"";if(n)switch(n){case Yr:return Hr;case Jr:return Wr;case Qr:return qr;case Zr:return Gr;case Xr:return Kr}return t});const tn=en;var rn=Object.prototype.hasOwnProperty;const nn=me.Uint8Array;function on(e){var t=new e.constructor(e.byteLength);return new nn(t).set(new nn(e)),t}var an=/\w*$/;var cn=be?be.prototype:void 0,sn=cn?cn.valueOf:void 0;function un(e,t,r){var n,o,i,a=e.constructor;switch(t){case"[object ArrayBuffer]":return on(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var r=t?on(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?on(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,an.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return n=e,sn?Object(sn.call(n)):{}}}var ln=zt&&zt.isMap,dn=ln?Rt(ln):function(e){return xe(e)&&"[object Map]"==tn(e)};const fn=dn;var pn=zt&&zt.isSet,mn=pn?Rt(pn):function(e){return xe(e)&&"[object Set]"==tn(e)};const bn=mn;var yn="[object Arguments]",vn="[object Function]",hn="[object Object]",gn={};function wn(e,t,r,n,o,i){var a,c=1&t,s=2&t,u=4&t;if(r&&(a=o?r(e,n,o,i):r(e)),void 0!==a)return a;if(!Ie(e))return e;var l=ke(e);if(l){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&rn.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!c)return function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e,a)}else{var d=tn(e),f=d==vn||"[object GeneratorFunction]"==d;if(Tt(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Dr?Dr(r):new e.constructor(r);return e.copy(n),n}(e,c);if(d==hn||d==yn||f&&!o){if(a=s||f?{}:function(e){return"function"!=typeof e.constructor||Pt(e)?{}:tt(Or(e))}(e),!c)return s?function(e,t){return vt(e,Mr(e),t)}(e,function(e,t){return e&&vt(t,Jt(t),e)}(a,e)):function(e,t){return vt(e,Lr(e),t)}(e,function(e,t){return e&&vt(t,Kt(t),e)}(a,e))}else{if(!gn[d])return o?e:{};a=un(e,d,c)}}i||(i=new Sr);var p=i.get(e);if(p)return p;i.set(e,a),bn(e)?e.forEach(function(n){a.add(wn(n,t,r,n,e,i))}):fn(e)&&e.forEach(function(n,o){a.set(o,wn(n,t,r,o,e,i))});var m=l?void 0:(u?s?Fr:Ur:s?Jt:Kt)(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(m||e,function(n,o){m&&(n=e[o=n]),yt(a,o,wn(n,t,r,o,e,i))}),a}gn[yn]=gn["[object Array]"]=gn["[object ArrayBuffer]"]=gn["[object DataView]"]=gn["[object Boolean]"]=gn["[object Date]"]=gn["[object Float32Array]"]=gn["[object Float64Array]"]=gn["[object Int8Array]"]=gn["[object Int16Array]"]=gn["[object Int32Array]"]=gn["[object Map]"]=gn["[object Number]"]=gn[hn]=gn["[object RegExp]"]=gn["[object Set]"]=gn["[object String]"]=gn["[object Symbol]"]=gn["[object Uint8Array]"]=gn["[object Uint8ClampedArray]"]=gn["[object Uint16Array]"]=gn["[object Uint32Array]"]=!0,gn["[object Error]"]=gn[vn]=gn["[object WeakMap]"]=!1;const On=function(){return me.Date.now()};var Pn=Math.max,xn=Math.min;function jn(e,t,r){var n,o,i,a,c,s,u=0,l=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,i=o;return n=o=void 0,u=t,a=e.apply(i,r)}function m(e){var r=e-s;return void 0===s||r>=t||r<0||d&&e-u>=i}function b(){var e=On();if(m(e))return y(e);c=setTimeout(b,function(e){var r=t-(e-s);return d?xn(r,i-(e-u)):r}(e))}function y(e){return c=void 0,f&&n?p(e):(n=o=void 0,a)}function v(){var e=On(),r=m(e);if(n=arguments,o=this,s=e,r){if(void 0===c)return function(e){return u=e,c=setTimeout(b,t),l?p(e):a}(s);if(d)return clearTimeout(c),c=setTimeout(b,t),p(s)}return void 0===c&&(c=setTimeout(b,t)),a}return t=ze(t)||0,Ie(r)&&(l=!!r.leading,i=(d="maxWait"in r)?Pn(ze(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f),v.cancel=function(){void 0!==c&&clearTimeout(c),u=0,n=s=o=c=void 0},v.flush=function(){return void 0===c?a:y(On())},v}function En(e){return"string"==typeof e||!ke(e)&&xe(e)&&"[object String]"==Pe(e)}function kn(e,t){return t.length<2?e:function(e,t){for(var r=0,n=(t=mr(t,e)).length;null!=e&&r<n;)e=e[br(t[r++])];return r&&r==n?e:void 0}(e,function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}(t,0,-1))}function Sn(e){return"number"==typeof e||xe(e)&&"[object Number]"==Pe(e)}function _n(e){return null==e}var Cn=Object.prototype.hasOwnProperty;function Nn(e,t){var r=-1,n=(t=mr(t,e)).length;if(!n)return!0;for(;++r<n;){var o=br(t[r]);if("__proto__"===o&&!Cn.call(e,"__proto__"))return!1;if(("constructor"===o||"prototype"===o)&&r<n-1)return!1}var i=kn(e,t);return null==i||delete i[br(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}function Dn(e){return function(e){if(!xe(e)||"[object Object]"!=Pe(e))return!1;var t=Or(e);if(null===t)return!0;var r=Er.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&jr.call(r)==kr}(e)?void 0:e}var Tn=function(e){return lt(function(e,t,r){return t=ht(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=ht(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=n[o];return c[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,c)}}(e,void 0,wr),e+"")}(function(e,t){var r={};if(null==e)return r;var n=!1;t=Ee(t,function(t){return t=mr(t,e),n||(n=t.length>1),t}),vt(e,Fr(e),r),n&&(r=wn(r,7,Dn));for(var o=t.length;o--;)Nn(r,t[o]);return r});const In=Tn;function Rn(e){return function(e){if(Array.isArray(e))return Mn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ln(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||Ln(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ln(e,t){if(e){if("string"==typeof e)return Mn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mn(e,t):void 0}}function Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var zn=[{screen:"sm",min:0,max:1055},{screen:"md",min:1056,max:1920},{screen:"lg",min:1921,max:1/0}];function Un(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=function(){var e=window.innerWidth;return zn.find(function(t){return t.min<=e&&e<=t.max})},n=An(m.useState(r),2),o=n[0],i=n[1],a=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Ie(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),jn(e,t,{leading:n,maxWait:t,trailing:o})}(function(){return i(r())},100);return m.useEffect(function(){return a(),window.addEventListener("resize",a),function(){return window.removeEventListener("resize",a)}},[]),m.useEffect(function(){a()},[null===(e=window)||void 0===e||null===(e=e.__LOWCODE_ENV__)||void 0===e?void 0:e.env].concat(Rn(t))),o}function Fn(e){return Un(e).screen}function Bn(e){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(r),!0).forEach(function(t){Wn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Wn(e,t,r){var n;return n=function(e,t){if("object"!=Bn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Bn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Bn(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qn(e){var t=Fn(),r=In(e,["sm","lg"]);return"sm"===t&&null!=e&&e.sm?$n($n({},r),e.sm):"lg"===t&&e.lg?$n($n({},r),e.lg):e}const Gn=(e,t)=>{var r;if(0===e.length)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),i=o?Gn(e.slice(1),o):void 0;if(i)return i;if(0===t.validators.length)return;const a=e.join("-");return null==(r=t.validators.find(({validator:e})=>e(a)))?void 0:r.classGroupId},Kn=/^\[(.+)\]$/,Hn=e=>{if(Kn.test(e)){const t=Kn.exec(e)[1],r=null==t?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Yn=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Xn(Object.entries(e.classGroups),r).forEach(([e,r])=>{Jn(r,n,e,t)}),n},Jn=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Qn(t,e)).classGroupId=r)}if("function"==typeof e)return Zn(e)?void Jn(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{Jn(o,Qn(t,e),r,n)})})},Qn=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},Zn=e=>e.isThemeGetter,Xn=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,eo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},to=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length,a=e=>{const r=[];let a,c=0,s=0;for(let d=0;d<e.length;d++){let u=e[d];if(0===c){if(u===o&&(n||e.slice(d,d+i)===t)){r.push(e.slice(s,d)),s=d+i;continue}if("/"===u){a=d;continue}}"["===u?c++:"]"===u&&c--}const u=0===r.length?e:e.substring(s),l=u.startsWith("!");return{modifiers:r,hasImportantModifier:l,baseClassName:l?u.substring(1):u,maybePostfixModifierPosition:a&&a>s?a-s:void 0}};return r?e=>r({className:e,parseClassName:a}):a},ro=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},no=e=>l({cache:eo(e.cacheSize),parseClassName:to(e)},(e=>{const t=Yn(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),Gn(r,t)||Hn(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}})(e)),oo=/\s+/;function io(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=ao(e))&&(n&&(n+=" "),n+=t);return n}const ao=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ao(e[n]))&&(r&&(r+=" "),r+=t);return r};function co(e,...t){let r,n,o,i=function(c){const s=t.reduce((e,t)=>t(e),e());return r=no(s),n=r.cache.get,o=r.cache.set,i=a,a(c)};function a(e){const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(oo);let c="";for(let s=a.length-1;s>=0;s-=1){const e=a[s],{modifiers:t,hasImportantModifier:u,baseClassName:l,maybePostfixModifierPosition:d}=r(e);let f=Boolean(d),p=n(f?l.substring(0,d):l);if(!p){if(!f){c=e+(c.length>0?" "+c:c);continue}if(p=n(l),!p){c=e+(c.length>0?" "+c:c);continue}f=!1}const m=ro(t).join(":"),b=u?m+"!":m,y=b+p;if(i.includes(y))continue;i.push(y);const v=o(p,f);for(let r=0;r<v.length;++r){const e=v[r];i.push(b+e)}c=e+(c.length>0?" "+c:c)}return c})(e,r);return o(e,i),i}return function(){return i(io.apply(null,arguments))}}const so=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},uo=/^\[(?:([a-z-]+):)?(.+)\]$/i,lo=/^\d+\/\d+$/,fo=new Set(["px","full","screen"]),po=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ho=e=>wo(e)||fo.has(e)||lo.test(e),go=e=>Io(e,"length",Ro),wo=e=>Boolean(e)&&!Number.isNaN(Number(e)),Oo=e=>Io(e,"number",wo),Po=e=>Boolean(e)&&Number.isInteger(Number(e)),xo=e=>e.endsWith("%")&&wo(e.slice(0,-1)),jo=e=>uo.test(e),Eo=e=>po.test(e),ko=new Set(["length","size","percentage"]),So=e=>Io(e,ko,Ao),_o=e=>Io(e,"position",Ao),Co=new Set(["image","url"]),No=e=>Io(e,Co,Mo),Do=e=>Io(e,"",Lo),To=()=>!0,Io=(e,t,r)=>{const n=uo.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},Ro=e=>mo.test(e)&&!bo.test(e),Ao=()=>!1,Lo=e=>yo.test(e),Mo=e=>vo.test(e),zo=()=>{const e=so("colors"),t=so("spacing"),r=so("blur"),n=so("brightness"),o=so("borderColor"),i=so("borderRadius"),a=so("borderSpacing"),c=so("borderWidth"),s=so("contrast"),u=so("grayscale"),l=so("hueRotate"),d=so("invert"),f=so("gap"),p=so("gradientColorStops"),m=so("gradientColorStopPositions"),b=so("inset"),y=so("margin"),v=so("opacity"),h=so("padding"),g=so("saturate"),w=so("scale"),O=so("sepia"),P=so("skew"),x=so("space"),j=so("translate"),E=()=>["auto",jo,t],k=()=>[jo,t],S=()=>["",ho,go],_=()=>["auto",wo,jo],C=()=>["","0",jo],N=()=>[wo,jo];return{cacheSize:500,separator:":",theme:{colors:[To],spacing:[ho,go],blur:["none","",Eo,jo],brightness:N(),borderColor:[e],borderRadius:["none","","full",Eo,jo],borderSpacing:k(),borderWidth:S(),contrast:N(),grayscale:C(),hueRotate:N(),invert:C(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[xo,go],inset:E(),margin:E(),opacity:N(),padding:k(),saturate:N(),scale:N(),sepia:C(),skew:N(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",jo]}],container:["container"],columns:[{columns:[Eo]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",jo]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Po,jo]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",jo]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",Po,jo]}],"grid-cols":[{"grid-cols":[To]}],"col-start-end":[{col:["auto",{span:["full",Po,jo]},jo]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[To]}],"row-start-end":[{row:["auto",{span:[Po,jo]},jo]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",jo]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",jo]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[x]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[x]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",jo,t]}],"min-w":[{"min-w":[jo,t,"min","max","fit"]}],"max-w":[{"max-w":[jo,t,"none","full","min","max","fit","prose",{screen:[Eo]},Eo]}],h:[{h:[jo,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[jo,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[jo,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[jo,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Eo,go]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Oo]}],"font-family":[{font:[To]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",jo]}],"line-clamp":[{"line-clamp":["none",wo,Oo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ho,jo]}],"list-image":[{"list-image":["none",jo]}],"list-style-type":[{list:["none","disc","decimal",jo]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ho,go]}],"underline-offset":[{"underline-offset":["auto",ho,jo]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",jo]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",jo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",_o]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",So]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},No]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[ho,jo]}],"outline-w":[{outline:[ho,go]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[ho,go]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Eo,Do]}],"shadow-color":[{shadow:[To]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",Eo,jo]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[l]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[l]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",jo]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",jo]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",jo]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Po,jo]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",jo]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",jo]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",jo]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ho,go,Oo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Uo=(e,t,r)=>{void 0!==r&&(e[t]=r)},Fo=(e,t)=>{if(t)for(const r in t)Uo(e,r,t[r])},Bo=(e,t)=>{if(t)for(const r in t){const n=t[r];void 0!==n&&(e[r]=(e[r]||[]).concat(n))}};var Vo=((e,...t)=>"function"==typeof e?co(zo,e,...t):co(()=>((e,{cacheSize:t,prefix:r,separator:n,experimentalParseClassName:o,extend:i={},override:a={}})=>{Uo(e,"cacheSize",t),Uo(e,"prefix",r),Uo(e,"separator",n),Uo(e,"experimentalParseClassName",o);for(const c in a)Fo(e[c],a[c]);for(const c in i)Bo(e[c],i[c]);return e})(zo(),e),...t))({extend:{theme:{colors:["blue","yellow","green","red","orange","gray","steel","cyan","purple","magenta"],spacing:["xs","sm","md","lg","xl"],borderRadius:["sm","md","lg","semicircle"],borderColor:["hover","focus","selected","disabled","primary","secondary","success","error","warning","info"],borderWidth:["thick","medium","large"]},classGroups:{"font-size":[{text:["banner","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","body","caption","sm","md","lg"]}],"shadow-color":["default","primary","secondary"],"text-color":[{text:["subtle","subtler","subtlest","primary","primary-hover","secondary","secondary-hover","success","success-hover","error","error-hover","warning","warning-hover","info","info-hover"]}]}}});function $o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Vo(w(t))}function Wo(e){return!(!Sn(e)&&!En(e))&&(En(e)?["xs","sm","md","lg","xl"].includes(e):[0,.5,1,1.5,2,2.5,3,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32].includes(e))}function qo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Go={exports:{}},Ko={},Ho=m,Yo=Symbol.for("react.element"),Jo=Symbol.for("react.fragment"),Qo=Object.prototype.hasOwnProperty,Zo=Ho.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Xo={key:!0,ref:!0,__self:!0,__source:!0};function ei(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Qo.call(t,n)&&!Xo.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Yo,type:e,key:i,ref:a,props:o,_owner:Zo.current}}Ko.Fragment=Jo,Ko.jsx=ei,Ko.jsxs=ei,Go.exports=Ko;var ti=Go.exports;function ri(e){return(ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ni=["className","type","size","as","asChild","block","loading","href","icon","color","iconPosition","target","children","onClick"];function oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(r),!0).forEach(function(t){ai(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ai(e,t,r){var n;return n=function(e,t){if("object"!=ri(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ri(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ci(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var si=m.forwardRef(function(e,t){var r=qn(e),n=r.className,o=r.type,i=r.size,a=r.as,c=r.asChild,s=void 0!==c&&c,u=r.block,l=r.loading,d=r.href,f=r.icon,p=r.color,m=r.iconPosition,b=r.target,y=void 0===b?"_blank":b,v=r.children,h=r.onClick,g=ci(r,ni),w=s?Y:"button",O=l?ti.jsx(F,{}):f,P="right"!==m||l?"left":"right";d&&!s?w="a":a&&(w=a);return ti.jsx(w,ii(ii({ref:t,href:d,target:"a"===w&&d?y:void 0,className:$o(le({type:o,size:i,className:n,color:p,block:u,loading:l})),onClick:function(e){l||null==h||h(e)}},g),{},{children:O?ti.jsxs("span",{className:de({size:i}),children:["left"===P?ti.jsx("span",{className:"inline-flex justify-center items-center",children:O}):null,v?ti.jsx("span",{className:"inline-block",children:v}):null,"right"===P?ti.jsx("span",{className:"inline-flex justify-center items-center",children:O}):null]}):v}))});function ui(e){return(ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}si.displayName="Button";var li=["as","asChild"];function di(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?di(Object(r),!0).forEach(function(t){pi(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):di(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function pi(e,t,r){var n;return n=function(e,t){if("object"!=ui(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ui(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mi(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var bi=m.forwardRef(function(e,t){var r=e.as,n=e.asChild,o=mi(e,li);if(n)return ti.jsx(Y,fi({},o));var i=r||"div";return ti.jsx(i,fi({ref:t},o))});function yi(e){return(yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}bi.displayName="BaseElement";var vi=["className","style","box","m","mt","mb","ml","mr","mx","my","pt","pb","pl","pr","px","py","p","alignSelf","shadowed","shadowColor","width","height","flex","centered","bg","bordered"];function hi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(r),!0).forEach(function(t){wi(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function wi(e,t,r){var n;return n=function(e,t){if("object"!=yi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==yi(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oi(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Pi=ue("animation-color",{variants:{box:{border:"box-border",content:"box-content"},shadowed:{true:"shadow",false:"shadow-none"},shadowColor:{default:"shadow-default",primary:"shadow-primary",secondary:"shadow-secondary"},bordered:{true:"border",false:null},bg:{default:"bg-default",transparent:"bg-transparent",primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",error:"bg-error",info:"bg-info"},flex:{none:"flex-none",auto:"flex-auto",initial:"flex-initial",1:"flex-1",2:"flex-2",3:"flex-3",4:"flex-4",5:"flex-5",6:"flex-6",7:"flex-7",8:"flex-8",9:"flex-9",10:"flex-10",11:"flex-11",12:"flex-12"},grow:{true:"flex-grow",false:null},shrink:{true:"flex-shrink",false:null},basis:{auto:"flex-basis-auto",full:"basis-full",0:"flex-basis-0"},alignSelf:{auto:"self-auto",start:"self-start",end:"self-end",center:"self-center",stretch:"self-stretch",baseline:"self-baseline"},centered:{true:"flex items-center justify-center",false:null}},defaultVariants:{box:"border",bordered:!1,shadowed:!1}}),xi=m.forwardRef(function(e,t){var r,n=qn(e),o=n.className,i=n.style,a=n.box,c=n.m,s=n.mt,u=n.mb,l=n.ml,d=n.mr,f=n.mx,p=n.my,b=n.pt,y=n.pb,v=n.pl,h=n.pr,g=n.px,w=n.py,O=n.p,P=n.alignSelf,x=n.shadowed,j=n.shadowColor,E=n.width,k=n.height,S=n.flex,_=n.centered,C=n.bg,N=n.bordered,D=Oi(n,vi),T=m.useMemo(function(){return gi({width:E,height:k},i)},[i,E,k]);return ti.jsx(bi,gi({ref:t,className:$o(Pi({box:a,shadowed:x,shadowColor:j,flex:S,bg:C,bordered:N,centered:_,alignSelf:P}),(r={},wi(wi(wi(wi(wi(wi(wi(wi(wi(wi(r,"m-".concat(c),Wo(c)),"mx-".concat(f),Wo(f)),"my-".concat(p),Wo(p)),"mt-".concat(s),Wo(s)),"mb-".concat(u),Wo(u)),"ml-".concat(l),Wo(l)),"mr-".concat(d),Wo(d)),"p-".concat(O),Wo(O)),"px-".concat(g),Wo(g)),"py-".concat(w),Wo(w)),wi(wi(wi(wi(r,"pt-".concat(b),Wo(b)),"pb-".concat(y),Wo(y)),"pl-".concat(v),Wo(v)),"pr-".concat(h),Wo(h))),o),style:T},D))});function ji(e){return(ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}xi.displayName="Box";var Ei=["className","as","outerClassName","outerStyle","outerProps"];function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Si(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(r),!0).forEach(function(t){_i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _i(e,t,r){var n;return n=function(e,t){if("object"!=ji(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ji(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ji(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ci(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ni(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ni(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Di(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ti(e){return(Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}m.forwardRef(function(e,t){var r=e.className,n=e.as,o=void 0===n?"section":n,i=e.outerClassName,a=e.outerStyle,c=e.outerProps,s=Di(e,Ei),u=Ci(m.useState(!1),2),l=u[0],d=u[1],f=m.useRef(null),p=t||f;return m.useEffect(function(){var e;if(p&&"function"!=typeof p&&null!=p&&null!==(e=p.current)&&void 0!==e&&e.parentElement){var t=p.current.parentElement.closest("[data-adc-container]");d(!!t)}},[p]),ti.jsx(xi,Si(Si({as:o,ref:p,"data-adc-container":!0,className:$o({"px-6 sm:px-4":!l},i),style:a},c),{},{children:ti.jsx(xi,Si({className:$o(r,"mx-auto max-w-screen-lg")},s))}))}).displayName="Container";var Ii=["as","code","strong","compact","underline","italic","delete","disabled","color","children","className"];function Ri(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ai(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(r),!0).forEach(function(t){Li(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ri(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Li(e,t,r){var n;return n=function(e,t){if("object"!=Ti(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ti(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Ti(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mi(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var zi=ue("inline border-box text-body",{variants:{code:{true:"bg-default border px-1 rounded-sm font-code text-subtler",false:null},underline:{true:"underline",false:null},strong:{true:"font-bold",false:null},italic:{true:"italic",false:null},delete:{true:"line-through",false:null},disabled:{true:"text-disabled",false:null},color:{default:"text-default",subtle:"text-subtle",subtler:"text-subtler",subtlest:"text-subtlest",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",info:"text-info",error:"text-error",white:"text-white"},compact:{true:"!leading-none",false:null}},compoundVariants:[{color:["default","subtle","subtler","subtlest","success","error","info","error","primary","white","secondary"],disabled:!0,className:"text-disabled"}],defaultVariants:{code:!1,underline:!1,delete:!1,strong:!1,italic:!1,disabled:!1,color:"default"}}),Ui=m.forwardRef(function(e,t){var r=e.as,n=void 0===r?"span":r,o=e.code,i=e.strong,a=e.compact,c=e.underline,s=e.italic,u=e.delete,l=e.disabled,d=e.color,f=e.children,p=e.className,m=Mi(e,Ii),b=n||"span";return o?b="code":u?b="del":c?b="u":i?b="strong":s&&(b="i"),ti.jsx(bi,Ai(Ai({as:b,ref:t,className:$o(zi({color:d,code:o,strong:i,italic:s,underline:c,compact:a,delete:u,disabled:l}),p)},m),{},{children:f}))});function Fi(e){return(Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Ui.displayName="Text";var Bi=["className","color"];function Vi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $i(e,t,r){var n;return n=function(e,t){if("object"!=Fi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Fi(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wi(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var qi=m.forwardRef(function(e,t){var r=e.className,n=e.color,o=void 0===n?"subtlest":n,i=Wi(e,Bi);return ti.jsx(Ui,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(r),!0).forEach(function(t){$i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:$o("text-caption",r),color:o},i))});function Gi(e){return(Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}qi.displayName="Caption";var Ki=["className","underline","disabled","target","href","onClick"];function Hi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Yi(e,t,r){var n;return n=function(e,t){if("object"!=Gi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Gi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Gi(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ji(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Qi=ue("text-link hover:text-link-hover active:text-link-active text-body transition-colors disabled:text-link-disabled visited:text-link-visited",{variants:{underline:{true:"underline hover:underline active:underline",false:"no-underline"},disabled:{true:"opacity-50 cursor-not-allowed",false:"opacity-100 cursor-pointer"}},defaultVariants:{underline:!1,disabled:!1}}),Zi=m.forwardRef(function(e,t){var r=e.className,n=e.underline,o=e.disabled,i=e.target,a=void 0===i?"_blank":i,c=e.href,s=e.onClick,u=Ji(e,Ki),l=o||!c;return ti.jsx("a",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(r),!0).forEach(function(t){Yi(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,target:a,href:c,className:$o(r,Qi({underline:n,disabled:l})),onClick:function(e){l&&e.preventDefault(),null==s||s(e)}},u))});function Xi(e){return(Xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Zi.displayName="Link";var ea=["children","space","align","bottomSpacing","appressed","childProps","className"];function ta(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ra(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(r),!0).forEach(function(t){na(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ta(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function na(e,t,r){var n;return n=function(e,t){if("object"!=Xi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Xi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Xi(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oa(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ia=ue("w-full",{variants:{align:{left:"text-left",center:"text-center",right:"text-right"},space:{sm:"",md:"",lg:""},appressed:{true:"!mb-0 !mt-0",false:null},bottomSpacing:{sm:"mb-1 last:mb-0",md:"mb-2 last:mb-0",lg:"mb-6 last:mb-0"}},compoundVariants:[{align:"right",space:"lg",className:"*:ml-4 first:*:ml-0"},{align:"right",space:"md",className:"*:ml-2 first:*:ml-0"},{align:"right",space:"sm",className:"*:ml-1 first:*:ml-0"},{align:["left","center"],space:"lg",className:"*:mr-4 last:*:mr-0"},{align:["left","center"],space:"md",className:"*:mr-2 last:*:mr-0"},{align:["left","center"],space:"sm",className:"*:mr-1 last:*:mr-0"}],defaultVariants:{space:"md",align:"left",bottomSpacing:"md",appressed:!1}});function aa(e){return(aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}m.forwardRef(function(e,t){var r=e.children,n=e.space,o=void 0===n?"md":n,i=e.align,a=void 0===i?"left":i,c=e.bottomSpacing,s=void 0===c?"md":c,u=e.appressed,l=e.childProps,d=e.className,f=oa(e,ea),p=m.Children.map(r,function(e){return e?En(e)||Sn(e)?ti.jsx(Ui,ra(ra({},l),{},{children:e})):e:null});return ti.jsx("p",ra(ra({ref:t,className:$o(ia({space:o,align:a,bottomSpacing:s,appressed:u}),d)},f),{},{children:p}))}).displayName="Paragraph";var ca=["level","bottomSpacing","className","appressed"];function sa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ua(e,t,r){var n;return n=function(e,t){if("object"!=aa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=aa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==aa(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function la(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var da=ue("block font-bold",{variants:{level:{1:"text-heading-1",2:"text-heading-2",3:"text-heading-3",4:"text-heading-4",5:"text-heading-5",6:"text-heading-6"},appressed:{true:"!mt-0 !mb-0",false:null}},defaultVariants:{appressed:!1}}),fa={1:{sm:"mb-3 sm:mb-[10px]",md:"mb-7 sm:mb-5",lg:"mb-12 sm:mb-[38px]"},2:{sm:"mb-[10px] sm:mb-2",md:"mb-6 sm:mb-4",lg:"mb-10 sm:mb-[34px]"},3:{sm:"mb-2 sm:mb-2",md:"mb-[14px] sm:mb-[14px]",lg:"mb-8"},4:{sm:"mb-[6px]",md:"mb-3",lg:"mb-7"},5:{sm:"mb-[6px]",md:"mb-[10px]",lg:"mb-[26px]"},6:{sm:"mb-1",md:"mb-2",lg:"mb-6"}};function pa(e){var t=e.level,r=void 0===t?1:t,n=e.bottomSpacing,o=void 0===n?"md":n,i=e.className,a=e.appressed,c=la(e,ca);return ti.jsx(Ui,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(r),!0).forEach(function(t){ua(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:$o(da({appressed:a,level:r}),ua({},"".concat(fa[r][o]),!!o),{"last:mb-0":!!o},i)},c))}var ma=ue("inline-flex justify-center items-center text-center border-box transition-colors overflow-hidden",{variants:{color:{primary:"bg-blue-100 text-primary border-primary",secondary:"bg-orange-100 text-secondary border-secondary",success:"bg-success text-success border-success",info:"bg-info text-info border-info",error:"bg-error text-error border-error",warning:"bg-warning text-warning border-warning",gray:"bg-gray-100 text-gray-600 border-gray-400",white:"bg-white text-subtler border",blue:"bg-blue-100 text-blue-600 border-blue-400",yellow:"bg-yellow-100 text-yellow-400 border-yellow-300",orange:"bg-orange-100 text-orange border-orange-400",green:"bg-green-100 text-green-600 border-green-400",red:"bg-red-100 text-red-600 border-red-400",cyan:"bg-cyan-100 text-cyan-600 border-cyan-400",purple:"bg-purple-100 text-purple-600 border-purple-400",magenta:"bg-magenta-100 text-magenta-600 border-magenta-400"},type:{solid:"text-white",outlined:""},size:{xs:"px-[6px] h-5 text-caption",sm:"px-2 h-6 text-caption",md:"px-3 h-7 text-caption",lg:"px-3 h-8 text-body"},shape:{square:"rounded-none",rounded:"rounded",pill:"rounded-full"},bordered:{true:"border",false:"border-none"},disabled:{true:"opacity-60",false:null},hasLink:{true:"cursor-pointer hover:border-link hover:text-link",false:null},closable:{true:"pr-1",false:null}},compoundVariants:[{closable:!0,size:"xs",className:"pr-3"},{color:"primary",type:"solid",className:"bg-primary"},{color:"secondary",type:"solid",className:"bg-secondary"},{color:"success",type:"solid",className:"bg-green-600"},{color:"info",type:"solid",className:"bg-blue-600"},{color:"error",type:"solid",className:"bg-red-600"},{color:"warning",type:"solid",className:"bg-yellow-400"},{color:"gray",type:"solid",className:"bg-gray-600"},{color:"blue",type:"solid",className:"bg-blue-600"},{color:"yellow",type:"solid",className:"bg-yellow-400"},{color:"orange",type:"solid",className:"bg-orange-600"},{color:"green",type:"solid",className:"bg-green-600"},{color:"red",type:"solid",className:"bg-red-600"},{color:"cyan",type:"solid",className:"bg-cyan-600"},{color:"purple",type:"solid",className:"bg-purple-600"},{color:"magenta",type:"solid",className:"bg-magenta-600"},{hasLink:!0,type:"solid",className:"hover:text-white"}],defaultVariants:{color:"gray",type:"outlined",size:"sm",bordered:!1,shape:"rounded"}}),ba=ue("inline-flex justify-center items-center",{variants:{size:{xs:"gap-1",sm:"gap-1",md:"gap-1",lg:"gap-2"}},defaultVariants:{size:"md"}});function ya(e){return(ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var va=["className","shape","bordered","size","disabled","type","color","onClose","href","target","closable","icon","children"];function ha(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ga(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(r),!0).forEach(function(t){wa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ha(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function wa(e,t,r){var n;return n=function(e,t){if("object"!=ya(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ya(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oa(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Pa=m.forwardRef(function(e,t){var r=e.className,n=e.shape,o=e.bordered,i=e.size,a=void 0===i?"sm":i,c=e.disabled,s=e.type,u=e.color,l=void 0===u?"gray":u,d=e.onClose,f=e.href,p=e.target,m=e.closable,b=e.icon,y=e.children,v=Oa(e,va);return ti.jsx(bi,ga(ga({ref:t,as:f?"a":"span",href:f,target:f?p||"_blank":"",className:$o(ma({shape:n,size:a,color:l,type:s,disabled:c,bordered:o,closable:m,hasLink:!!f}),r)},v),{},{children:ti.jsxs("span",{className:ba({size:a}),children:[b?ti.jsx("span",{className:"inline-flex justify-center items-center",children:b}):null,ti.jsx("span",{className:"inline-block",children:y}),m?ti.jsx(z,{className:$o("inline-flex text-[12px] justify-center p-0.5  cursor-pointer rounded-semicircle items-center transition-colors",{"hover:bg-white/10":"solid"===s,"hover:bg-black/5":"solid"!==s}),onClick:d}):null]})}))});Pa.displayName="Tag";var xa=function(){return xa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xa.apply(this,arguments)};function ja(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function Ea(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(c){o={error:c}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function ka(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Sa=function(e){return"function"==typeof e};const _a=function(e){var t=m.useRef(e);t.current=m.useMemo(function(){return e},[e]);var r=m.useRef(void 0);return r.current||(r.current=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.current.apply(this,e)}),r.current};function Ca(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}const Na=function(e){var t,r,n=(t=e,(r=m.useRef(t)).current=t,r);m.useEffect(function(){return function(){n.current()}},[])};const Da=!("undefined"==typeof window||!window.document||!window.document.createElement);const Ta=function(){var e=Ea(m.useState({}),2)[1];return _a(function(){return e({})})};function Ia(e,t){if(Da)return e?Sa(e)?e():"current"in e?e.current:e:t}const Ra=function(e){return function(t,r,n){var o=m.useRef(!1),i=m.useRef([]),a=m.useRef([]),c=m.useRef(void 0);e(function(){var e,s=(Array.isArray(n)?n:[n]).map(function(e){return Ia(e)});if(!o.current)return o.current=!0,i.current=s,a.current=r,void(c.current=t());s.length===i.current.length&&Ca(i.current,s)&&Ca(a.current,r)||(null===(e=c.current)||void 0===e||e.call(c),i.current=s,a.current=r,c.current=t())}),Na(function(){var e;null===(e=c.current)||void 0===e||e.call(c),o.current=!1})}};const Aa=Ra(m.useEffect);var La=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}()}(),Ma="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,za="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ua="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(za):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var Fa=["top","right","bottom","left","width","height","size","weight"],Ba="undefined"!=typeof MutationObserver,Va=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&c()}function a(){Ua(i)}function c(){var e=Date.now();if(r){if(e-o<2)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Ma&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ba?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ma&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;Fa.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),$a=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Wa=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||za},qa=Qa(0,0,0,0);function Ga(e){return parseFloat(e)||0}function Ka(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+Ga(e["border-"+r+"-width"])},0)}function Ha(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return qa;var n=Wa(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=e["padding-"+o];t[o]=Ga(i)}return t}(n),i=o.left+o.right,a=o.top+o.bottom,c=Ga(n.width),s=Ga(n.height);if("border-box"===n.boxSizing&&(Math.round(c+i)!==t&&(c-=Ka(n,"left","right")+i),Math.round(s+a)!==r&&(s-=Ka(n,"top","bottom")+a)),!function(e){return e===Wa(e).document.documentElement}(e)){var u=Math.round(c+i)-t,l=Math.round(s+a)-r;1!==Math.abs(u)&&(c-=u),1!==Math.abs(l)&&(s-=l)}return Qa(o.left,o.top,c,s)}var Ya="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Wa(e).SVGGraphicsElement}:function(e){return e instanceof Wa(e).SVGElement&&"function"==typeof e.getBBox};function Ja(e){return Ma?Ya(e)?function(e){var t=e.getBBox();return Qa(0,0,t.width,t.height)}(e):Ha(e):qa}function Qa(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Za=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Qa(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ja(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Xa=function(e,t){var r,n,o,i,a,c,s,u=(n=(r=t).x,o=r.y,i=r.width,a=r.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),$a(s,{x:n,y:o,width:i,height:a,top:o,right:n+i,bottom:a+o,left:n}),s);$a(this,{target:e,contentRect:u})},ec=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new La,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Wa(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Za(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Wa(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new Xa(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),tc="undefined"!=typeof WeakMap?new WeakMap:new La,rc=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Va.getInstance(),n=new ec(t,r,this);tc.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){rc.prototype[e]=function(){var t;return(t=tc.get(this))[e].apply(t,arguments)}});var nc=void 0!==za.ResizeObserver?za.ResizeObserver:rc,oc=Ra(m.useLayoutEffect);const ic=Da?oc:Aa;function ac(e){var t=Ea(function(e){var t=m.useRef(0),r=Ea(m.useState(e),2),n=r[0],o=r[1],i=m.useCallback(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(e)})},[]);return Na(function(){cancelAnimationFrame(t.current)}),[n,i]}(function(){var t=Ia(e);return t?{width:t.clientWidth,height:t.clientHeight}:void 0}),2),r=t[0],n=t[1];return ic(function(){var t=Ia(e);if(t){var r=new nc(function(e){e.forEach(function(e){var t=e.target,r=t.clientWidth,o=t.clientHeight;n({width:r,height:o})})});return r.observe(t),function(){r.disconnect()}}},[],e),r}var cc=m.createContext({activeTabValue:void 0,size:"md",type:"underline"}),sc=function(){return m.useContext(cc)};function uc(e){return(uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var lc=["className","value"];function dc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fc(e,t,r){var n;return n=function(e,t){if("object"!=uc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=uc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==uc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var mc=m.forwardRef(function(e,t){var r=e.className,n=e.value,o=pc(e,lc),i=n===sc().activeTabValue;return ti.jsx("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dc(Object(r),!0).forEach(function(t){fc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:$o("outline-0",r,{hidden:!i})},o))});function bc(e){return(bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}mc.displayName="TabPanel";var yc=["children","disabled","value","className","onClick"];function vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function hc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(r),!0).forEach(function(t){gc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gc(e,t,r){var n;return n=function(e,t){if("object"!=bc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=bc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==bc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Oc=ue("relative inline-flex justify-center items-center z-popup transition-colors cursor-pointer text-body data-[state=active]:font-bold data-[state=active]:border-b-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",{variants:{size:{sm:"px-2 h-8 text-caption",md:"px-4 h-9 text-body",lg:"px-5 h-10 text-body",xl:"px-6 h-12 text-body"},type:{underline:"border-b-2 border-transparent",overline:"border-t-2 border-transparent hover:bg-hover data-[state=active]:bg-white",divider:"",block:"bg-white hover:text-primary hover:data-[state=active]:text-white"},disabled:{true:null,false:null},active:{true:null,false:null},full:{true:"flex-1",false:"flex-none"}},compoundVariants:[{type:["divider","overline","underline"],className:"hover:text-primary data-[state=active]:text-primary"},{type:"overline",disabled:!0,active:!1,className:"bg-disabled"},{type:"overline",disabled:!1,active:!1,className:"bg-default"},{type:"overline",disabled:!1,active:!0,className:"bg-white border-t-primary"},{type:"divider",className:"after:content after:absolute after:top-1/3 after:right-0 after:w-[1px] after:h-1/3 after:border-l  last:after:content-none"},{type:"block",active:!0,className:"bg-primary text-white"}],defaultVariants:{disabled:!1,type:"underline",size:"md",active:!1}}),Pc=m.forwardRef(function(e,t){var r=e.children,n=e.disabled,o=e.value,i=e.className,a=e.onClick,c=wc(e,yc),s=sc(),u=s.activeTabValue,l=s.size,d=s.type,f=s.full,p=s.onTabChange,m=u===o;return ti.jsx("li",hc(hc(hc({ref:t,"data-state":m?"active":"inactive"},n&&{"data-disabled":!0}),{},{className:$o(Oc({size:l,type:d,full:f,active:m}),i),onClick:function(e){null==p||p(_n(o)?void 0:o),null==a||a(e)}},c),{},{children:r}))});function xc(e){return(xc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Pc.displayName="Tab";var jc=["align","bordered","className","outerClassName","children"];function Ec(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function kc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(r),!0).forEach(function(t){Sc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ec(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sc(e,t,r){var n;return n=function(e,t){if("object"!=xc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=xc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==xc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Cc=ue("relative flex flex-row justify-start items-center overflow-x-scroll no-scrollbar",{variants:{type:{underline:"",overline:"",divider:"",block:'relative shadow-md after:content-[""] after:absolute after:left-0 after:top-0 after:bottom-0 after:right-0 z-2'},full:{true:"w-full px-12 sm:px-0 lg:px-0",false:null}},defaultVariants:{type:"underline"}}),Nc=ue("flex w-auto relative flex-row items-center max-w-screen-lg mx-auto",{variants:{type:{underline:"",overline:"",divider:"",block:""},align:{left:"justify-start",center:"justify-center"},full:{true:"w-full",false:null}},compoundVariants:[{type:["underline","overline","divider"],className:"w-full"},{type:"block",full:!1,className:""}]}),Dc=m.forwardRef(function(e,t){var r=qn(e),n=r.align,o=void 0===n?"left":n,i=r.bordered,a=void 0===i||i,c=r.className,s=r.outerClassName,u=r.children,l=_c(r,jc),d=sc(),f=d.activeTabValue,p=d.full,b=d.onTabChange,y=d.type,v=m.useRef(null),h=ac(v),g=m.Children.map(u,function(e,t){var r;return(null==e||null===(r=e.props)||void 0===r?void 0:r.value)||t})||[];m.useEffect(function(){g&&g.length>0&&_n(f)&&(null==b||b(g[0]))},[f,g]);var w=m.useMemo(function(){return m.Children.map(u,function(e,t){var r;if(e){if(!function(e){return m.isValidElement(e)&&e.type===Pc}(e))throw new Error("Tabs.List \u53ea\u652f\u6301 Tabs.Tab \u4f5c\u4e3a\u5b50\u5143\u7d20");var n=null==e||null===(r=e.props)||void 0===r?void 0:r.value;return _n(n)&&(n=t),m.cloneElement(e,kc(kc({},In(null==e?void 0:e.props,["value"])),{},{value:n}))}})},[u]);return m.useEffect(function(){if(null!=v&&v.current&&null!=h&&h.width){var e=v.current.querySelector('[data-state="active"]');if(e){var t=e.getBoundingClientRect(),r=v.current.getBoundingClientRect(),n=v.current.scrollLeft||0,o=t.left-r.left;o&&v.current.scrollTo({left:o-h.width/2+n+t.width/2,behavior:"smooth"})}}},[null==h?void 0:h.width,f]),ti.jsxs("div",kc(kc({className:$o("w-full relative mx-auto",s),ref:t},l),{},{children:[ti.jsx("div",{className:$o(Nc({align:o,type:y,full:p})),children:ti.jsx("ul",{ref:v,className:$o(Cc({type:y,full:p}),c),children:w})}),a&&"divider"!==y&&"block"!==y?ti.jsx("div",{className:"absolute bottom-0 left-0 right-0 w-full h-[1px] border-b transition-all"}):null]}))});function Tc(e){return(Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Dc.displayName="TabList";var Ic=["className","px","pt","pb","sm","children"];function Rc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ac(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rc(Object(r),!0).forEach(function(t){Lc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Lc(e,t,r){var n;return n=function(e,t){if("object"!=Tc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Tc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Tc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var zc=m.forwardRef(function(e,t){var r=e.className,n=e.px,o=void 0===n?4:n,i=e.pt,a=void 0===i?6:i,c=e.pb,s=void 0===c?6:c,u=e.sm,l=void 0===u?{pt:4,pb:4}:u,d=e.children,f=Mc(e,Ic),p=m.useMemo(function(){return m.Children.map(d,function(e,t){if(e){!function(e){m.isValidElement(e)&&e.type}(e);var r=e.props.value;return _n(r)&&(r=t),m.cloneElement(e,Ac(Ac({},In(e.props,["value"])),{},{value:r}))}})},[d]);return ti.jsx(xi,Ac(Ac({ref:t,className:$o("tabs-panels",r),sm:l,pt:a,pb:s,px:o},f),{},{children:p}))});function Uc(e){return(Uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Fc=["size","type","full","children","onChange"];function Bc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Vc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(r),!0).forEach(function(t){$c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function $c(e,t,r){var n;return n=function(e,t){if("object"!=Uc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Uc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Uc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Kc=m.forwardRef(function(e,t){var r=qn(e),n=r.size,o=void 0===n?"md":n,i=r.type,a=void 0===i?"underline":i,c=r.full,s=void 0!==c&&c,u=r.children;r.onChange;var l=Gc(r,Fc),d=function(e,t){void 0===t&&(t={});var r=null!=e?e:{},n=t.defaultValue,o=t.defaultValuePropName,i=void 0===o?"defaultValue":o,a=t.valuePropName,c=void 0===a?"value":a,s=t.trigger,u=void 0===s?"onChange":s,l=r[c],d=Object.prototype.hasOwnProperty.call(r,c),f=m.useMemo(function(){return d?l:Object.prototype.hasOwnProperty.call(r,i)?r[i]:n},[]),p=m.useRef(f);d&&(p.current=l);var b=Ta();return[p.current,_a(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Sa(e)?e(p.current):e;d||(p.current=o,b()),r[u]&&r[u].apply(r,ka([o],Ea(t),!1))})]}(e,{defaultValue:void 0}),f=Wc(d,2),p=f[0],b=f[1];return ti.jsx(cc.Provider,{value:{activeTabValue:p,size:o,type:a,full:s,onTabChange:function(e){b(e)}},children:ti.jsx("div",Vc(Vc({ref:t},l),{},{children:u}))})});Kc.displayName="Tabs";var Hc=Kc;function Yc(e){return(Yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Hc.List=Dc,Hc.Tab=Pc,Hc.Panels=zc,Hc.Panel=mc;var Jc=["vertical","justify","align"];function Qc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Zc(e,t,r){var n;return n=function(e,t){if("object"!=Yc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Yc(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function es(e){var t=qn(e),r=t.vertical;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(r),!0).forEach(function(t){Zc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({vertical:r,justify:t.justify||(r?"center":"start"),align:t.align||(r?"start":"center")},Xc(t,Jc))}function ts(e){return(ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var rs=["className","children","vertical","justify","align","alignContent","wrap","gap"];function ns(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function os(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(r),!0).forEach(function(t){is(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ns(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function is(e,t,r){var n;return n=function(e,t){if("object"!=ts(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ts(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ts(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function as(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var cs=ue("flex",{variants:{vertical:{true:"flex-col",false:"flex-row"},justify:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},align:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},alignContent:{normal:"content-normal",center:"content-center",start:"content-start",end:"content-end",between:"content-between",around:"content-around",evenly:"content-evenly",baseline:"content-baseline",stretch:"content-stretch"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"}},defaultVariants:{vertical:!1,justify:"start",align:"center",wrap:"nowrap"}}),ss=m.forwardRef(function(e,t){var r=es(e),n=r.className,o=r.children,i=r.vertical,a=r.justify,c=r.align,s=r.alignContent,u=r.wrap,l=r.gap,d=as(r,rs);return ti.jsx(xi,os(os({ref:t,className:$o(n,is({},"gap-".concat(l),l),cs({vertical:i,justify:a,align:c,alignContent:s,wrap:u}))},d),{},{children:o}))});function us(e){return(us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}ss.displayName="Flex";var ls=["cols","gap","gapX","gapY","className","style","minChildWidth","maxChildWidth","children"];function ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(r),!0).forEach(function(t){ps(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ps(e,t,r){var n;return n=function(e,t){if("object"!=us(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=us(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==us(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ms(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}m.forwardRef(function(e,t){var r=qn(e),n=r.cols,o=r.gap,i=void 0===o?"md":o,a=r.gapX,c=r.gapY,s=r.className,u=r.style,l=r.minChildWidth,d=r.maxChildWidth,f=r.children,p=ms(r,ls),m=fs({gridTemplateColumns:n?"repeat(".concat(n,", minmax(0, 1fr))"):"repeat(auto-fill, minmax(".concat(l,"px, ").concat(d?"".concat(d,"px"):"1fr","))"),gridTemplateRows:"auto"},u);return ti.jsx(xi,fs(fs({ref:t,className:$o("grid auto-cols-max",s,ps(ps(ps({},"gap-".concat(i),i),"gap-x-".concat(a),a),"gap-y-".concat(c),c)),style:m},p),{},{children:f}))}).displayName="Grid";var bs=Object.defineProperty,ys=(e,t)=>bs(e,"name",{value:t,configurable:!0}),vs=!("undefined"==typeof window||!window.document||!window.document.createElement);function hs(e,t,{checkForDefaultPrevented:r=!0}={}){return ys(function(n){if(null==e||e(n),!1===r||!n||!n.defaultPrevented)return null==t?void 0:t(n)},"handleEvent")}function gs(e){var t;if(!vs)throw new Error("Cannot access document outside of the DOM");return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function ws(e){return"IFRAME"===e.tagName}ys(hs,"composeEventHandlers"),ys(function(e){var t,r;if(!vs)throw new Error("Cannot access window outside of the DOM");return null!=(r=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView)?r:window},"getOwnerWindow"),ys(gs,"getOwnerDocument"),ys(function e(t,r=!1){const{activeElement:n}=gs(t);if(!(null==n?void 0:n.nodeName))return null;if(ws(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){const e=n.getAttribute("aria-activedescendant");if(e){const t=gs(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),ys(ws,"isFrame");var Os=Object.defineProperty,Ps=(e,t)=>Os(e,"name",{value:t,configurable:!0});function xs(e,t=[]){let r=[];function n(t,n){const o=v.createContext(n);o.displayName=t+"Context";const i=r.length;r=[...r,n];const a=Ps(t=>{var r;const n=t,{scope:a,children:c}=n,s=f(n,["scope","children"]),u=(null==(r=null==a?void 0:a[e])?void 0:r[i])||o,l=v.useMemo(()=>s,Object.values(s));return ti.jsx(u.Provider,{value:l,children:c})},"Provider");function c(r,a,c={}){var s;const{optional:u=!1}=c,l=(null==(s=null==a?void 0:a[e])?void 0:s[i])||o,d=v.useContext(l);if(d)return d;if(void 0!==n)return n;if(!u)throw new Error(`\`${r}\` must be used within \`${t}\``)}return a.displayName=t+"Provider",Ps(c,"useContext"),[a,c]}Ps(n,"createContext");const o=Ps(()=>{const t=r.map(e=>v.createContext(e));return Ps(function(r){const n=(null==r?void 0:r[e])||t;return v.useMemo(()=>({[`__scope${e}`]:d(l({},r),{[e]:n})}),[r,n])},"useScope")},"createScope");return o.scopeName=e,[n,js(o,...t)]}function js(...e){const t=e[0];if(1===e.length)return t;const r=Ps(()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Ps(function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>{const o=r(e)[`__scope${n}`];return l(l({},t),o)},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}Ps(function(e,t){const r=v.createContext(t);r.displayName=e+"Context";const n=Ps(e=>{const t=e,{children:n}=t,o=f(t,["children"]),i=v.useMemo(()=>o,Object.values(o));return ti.jsx(r.Provider,{value:i,children:n})},"Provider");function o(n,o={}){const{optional:i=!1}=o,a=v.useContext(r);if(a)return a;if(void 0!==t)return t;if(!i)throw new Error(`\`${n}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",Ps(o,"useContext"),[n,o]},"createContext"),Ps(xs,"createContextScope"),Ps(js,"composeContextScopes");var Es=(null==globalThis?void 0:globalThis.document)?v.useLayoutEffect:()=>{},ks=Object.defineProperty,Ss=v[" useId ".trim().toString()]||(()=>{}),_s=0;function Cs(e){const[t,r]=v.useState(Ss());return Es(()=>{e||r(e=>null!=e?e:String(_s++))},[e]),e||(t?`radix-${t}`:"")}ks(Cs,"name",{value:"useId",configurable:!0});var Ns=Object.defineProperty,Ds=v[" useEffectEvent ".trim().toString()],Ts=v[" useInsertionEffect ".trim().toString()];function Is(e){if("function"==typeof Ds)return Ds(e);const t=v.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof Ts?Ts(()=>{t.current=e}):Es(()=>{t.current=e}),v.useMemo(()=>(...e)=>{var r;return null==(r=t.current)?void 0:r.call(t,...e)},[])}((e,t)=>{Ns(e,"name",{value:t,configurable:!0})})(Is,"useEffectEvent");var Rs=Object.defineProperty,As=(e,t)=>Rs(e,"name",{value:t,configurable:!0}),Ls=v[" useInsertionEffect ".trim().toString()]||Es;function Ms({prop:e,defaultProp:t,onChange:r=As(()=>{},"onChange"),caller:n}){const[o,i,a]=zs({defaultProp:t,onChange:r}),c=void 0!==e;return[c?e:o,v.useCallback(t=>{var r;if(c){const n=Us(t)?t(e):t;n!==e&&(null==(r=a.current)||r.call(a,n))}else i(t)},[c,e,i,a])]}function zs({defaultProp:e,onChange:t}){const[r,n]=v.useState(e),o=v.useRef(r),i=v.useRef(t);return Ls(()=>{i.current=t},[t]),v.useEffect(()=>{var e;o.current!==r&&(null==(e=i.current)||e.call(i,r),o.current=r)},[r,o]),[r,n,i]}function Us(e){return"function"==typeof e}As(Ms,"useControllableState"),As(zs,"useUncontrolledState"),As(Us,"isFunction");var Fs=Symbol("RADIX:SYNC_STATE");As(function(e,t,r,n){const{prop:o,defaultProp:i,onChange:a,caller:c}=t,s=void 0!==o,u=Is(a),f=[d(l({},r),{state:i})];n&&f.push(n);const[p,m]=v.useReducer((t,r)=>{if(r.type===Fs)return d(l({},t),{state:r.state});const n=e(t,r);return s&&!Object.is(n.state,t.state)&&u(n.state),n},...f),b=p.state,y=v.useRef(b);v.useEffect(()=>{y.current!==b&&(y.current=b,s||u(b))},[b,y,s]);const h=v.useMemo(()=>void 0!==o?d(l({},p),{state:o}):p,[p,o]);return v.useEffect(()=>{s&&!Object.is(o,p.state)&&m({type:Fs,state:o})},[o,p.state,s]),[h,m]},"useControllableStateReducer");var Bs=Object.defineProperty,Vs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=H(`Primitive.${t}`),n=v.forwardRef((e,n)=>{const o=e,{asChild:i}=o,a=f(o,["asChild"]),c=i?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),ti.jsx(c,d(l({},a),{ref:n}))});return n.displayName=`Primitive.${t}`,d(l({},e),{[t]:n})},{});function $s(e,t){e&&h.flushSync(()=>e.dispatchEvent(t))}((e,t)=>{Bs(e,"name",{value:t,configurable:!0})})($s,"dispatchDiscreteCustomEvent");var Ws=Object.defineProperty;function qs(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...e)=>{var r;return null==(r=t.current)?void 0:r.call(t,...e)},[])}((e,t)=>{Ws(e,"name",{value:t,configurable:!0})})(qs,"useCallbackRef");var Gs,Ks=Object.defineProperty,Hs=(e,t)=>Ks(e,"name",{value:t,configurable:!0}),Ys="dismissableLayer.update",Js=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Qs=v.forwardRef(Hs(function(e,t){var r;const n=e,{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:s,onInteractOutside:u,onDismiss:p}=n,m=f(n,["disableOutsidePointerEvents","deferPointerDownOutside","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),b=v.useContext(Js),[y,h]=v.useState(null),g=null!=(r=null==y?void 0:y.ownerDocument)?r:null==globalThis?void 0:globalThis.document,[,w]=v.useState({}),O=q(t,h),P=Array.from(b.layers),[x]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),j=x?P.indexOf(x):-1,E=y?P.indexOf(y):-1,k=b.layersWithOutsidePointerEventsDisabled.size>0,S=E>=j,_=v.useRef(!1),C=eu(e=>{null==c||c(e),null==u||u(e),e.defaultPrevented||null==p||p()},{ownerDocument:g,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:_,dismissableSurfaces:b.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...b.branches].some(t=>t.contains(e));return S&&!t},[b.branches,S])}),N=tu(e=>{if(i&&_.current)return;const t=e.target;[...b.branches].some(e=>e.contains(t))||(null==s||s(e),null==u||u(e),e.defaultPrevented||null==p||p())},g),D=!!y&&E===P.length-1,T=qs(e=>{"Escape"===e.key&&(null==a||a(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))});return v.useEffect(()=>{if(D)return g.addEventListener("keydown",T,{capture:!0}),()=>g.removeEventListener("keydown",T,{capture:!0})},[g,D,T]),v.useEffect(()=>{if(y)return o&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(Gs=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(y)),b.layers.add(y),ru(),()=>{o&&(b.layersWithOutsidePointerEventsDisabled.delete(y),0===b.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=Gs))}},[y,g,o,b]),v.useEffect(()=>()=>{y&&(b.layers.delete(y),b.layersWithOutsidePointerEventsDisabled.delete(y),ru())},[y,b]),v.useEffect(()=>{const e=Hs(()=>w({}),"handleUpdate");return document.addEventListener(Ys,e),()=>document.removeEventListener(Ys,e)},[]),ti.jsx(Vs.div,d(l({},m),{ref:O,style:l({pointerEvents:k?S?"auto":"none":void 0},e.style),onFocusCapture:hs(e.onFocusCapture,N.onFocusCapture),onBlurCapture:hs(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:hs(e.onPointerDownCapture,C.onPointerDownCapture)}))},"DismissableLayer"));function Zs(){const e=v.useContext(Js),[t,r]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}Hs(Zs,"useDismissableLayerSurface");var Xs=Hs(()=>!0,"IS_TRUE");function eu(e,t){const{ownerDocument:r=(null==globalThis?void 0:globalThis.document),deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:a=Xs}=t,c=qs(e),s=v.useRef(!1),u=v.useRef(!1),l=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function e(){u.current=!1,o.current=!1,l.current.clear()}function t(){return Array.from(l.current.values()).some(Boolean)}function f(e){if(!u.current)return;const t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||l.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&d.current()},0)}function p(e){u.current&&l.current.set(e.type,!1)}Hs(e,"resetOutsideInteraction"),Hs(t,"isOutsideInteractionIntercepted"),Hs(f,"handleInteractionCapture"),Hs(p,"handleInteractionBubble");const m=Hs(i=>{if(i.target&&!s.current){let f=function(){r.removeEventListener("click",d.current);const n=t();e(),n||nu("dismissableLayer.pointerDownOutside",c,p,{discrete:!0})};if(Hs(f,"handleAndDispatchPointerDownOutsideEvent"),!a(i.target))return r.removeEventListener("click",d.current),e(),void(s.current=!1);const p={originalEvent:i};u.current=!0,o.current=n&&0===i.button,l.current.clear(),n&&0===i.button?(r.removeEventListener("click",d.current),d.current=f,r.addEventListener("click",d.current,{once:!0})):f()}else r.removeEventListener("click",d.current),e();s.current=!1},"handlePointerDown"),b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const n of b)r.addEventListener(n,f,!0),r.addEventListener(n,p);const y=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(y),r.removeEventListener("pointerdown",m),r.removeEventListener("click",d.current);for(const e of b)r.removeEventListener(e,f,!0),r.removeEventListener(e,p)}},[r,c,n,o,i,a]),{onPointerDownCapture:Hs(()=>s.current=!0,"onPointerDownCapture")}}function tu(e,t=(null==globalThis?void 0:globalThis.document)){const r=qs(e),n=v.useRef(!1);return v.useEffect(()=>{const e=Hs(e=>{if(e.target&&!n.current){nu("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})}},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:Hs(()=>n.current=!0,"onFocusCapture"),onBlurCapture:Hs(()=>n.current=!1,"onBlurCapture")}}function ru(){const e=new CustomEvent(Ys);document.dispatchEvent(e)}function nu(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?$s(o,i):o.dispatchEvent(i)}Hs(eu,"usePointerDownOutside"),Hs(tu,"useFocusOutside"),Hs(ru,"dispatchUpdate"),Hs(nu,"handleAndDispatchCustomEvent");var ou=Object.defineProperty,iu=(e,t)=>ou(e,"name",{value:t,configurable:!0}),au="focusScope.autoFocusOnMount",cu="focusScope.autoFocusOnUnmount",su={bubbles:!1,cancelable:!0},uu=v.forwardRef(iu(function(e,t){const r=e,{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a}=r,c=f(r,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[s,u]=v.useState(null),p=qs(i),m=qs(a),b=v.useRef(null),y=q(t,u),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(o){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?b.current=t:yu(b.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||yu(b.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&yu(s)};iu(e,"handleFocusIn"),iu(t,"handleFocusOut"),iu(r,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,s,h.paused]),v.useEffect(()=>{if(s){vu.add(h);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(au,su);s.addEventListener(au,p),s.dispatchEvent(t),t.defaultPrevented||(lu(wu(fu(s)),{select:!0}),document.activeElement===e&&yu(s))}return()=>{s.removeEventListener(au,p),setTimeout(()=>{const t=new CustomEvent(cu,su);s.addEventListener(cu,m),s.dispatchEvent(t),t.defaultPrevented||yu(null!=e?e:document.body,{select:!0}),s.removeEventListener(cu,m),vu.remove(h)},0)}}},[s,p,m,h]);const g=v.useCallback(e=>{if(!n&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,i]=du(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&yu(i,{select:!0})):(e.preventDefault(),n&&yu(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,h.paused]);return ti.jsx(Vs.div,d(l({tabIndex:-1},c),{ref:y,onKeyDown:g}))},"FocusScope"));function lu(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(yu(n,{select:t}),document.activeElement!==r)return}function du(e){const t=fu(e);return[pu(t,e),pu(t.reverse(),e)]}function fu(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:iu(e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}function pu(e,t){const r="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const n of e){if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):mu(n,{upTo:t})))return n}}function mu(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function bu(e){return e instanceof HTMLInputElement&&"select"in e}function yu(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&bu(e)&&t&&e.select()}}iu(lu,"focusFirst"),iu(du,"getTabbableEdges"),iu(fu,"getTabbableCandidates"),iu(pu,"findVisible"),iu(mu,"isHidden"),iu(bu,"isSelectableInput"),iu(yu,"focus");var vu=hu();function hu(){let e=[];return{add(t){const r=e[0];t!==r&&(null==r||r.pause()),e=gu(e,t),e.unshift(t)},remove(t){var r;e=gu(e,t),null==(r=e[0])||r.resume()}}}function gu(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}function wu(e){return e.filter(e=>"A"!==e.tagName)}iu(hu,"createFocusScopesStack"),iu(gu,"arrayRemove"),iu(wu,"removeLinks");var Ou=Object.defineProperty,Pu=(e,t)=>Ou(e,"name",{value:t,configurable:!0}),xu=v.forwardRef(Pu(function(e,t){var r;const n=e,{container:o}=n,i=f(n,["container"]),[a,c]=v.useState(!1);Es(()=>c(!0),[]);const s=o||a&&(null==(r=null==globalThis?void 0:globalThis.document)?void 0:r.body);return s?h.createPortal(ti.jsx(Vs.div,d(l({},i),{ref:t})),s):null},"Portal")),ju=Object.defineProperty,Eu=(e,t)=>ju(e,"name",{value:t,configurable:!0});function ku(e,t){return v.useReducer((e,r)=>{const n=t[e][r];return null!=n?n:e},e)}Eu(ku,"useStateMachine");var Su=Eu(e=>{const{present:t,children:r}=e,n=_u(t),o="function"==typeof r?r({present:n.isPresent}):v.Children.only(r),i=Nu(n.ref,Tu(o));return"function"==typeof r||n.isPresent?v.cloneElement(o,{ref:i}):null},"Presence");function _u(e){const[t,r]=v.useState(),n=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),a=v.useRef(void 0),c=e?"mounted":"unmounted",[s,u]=ku(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{var e;"mounted"===s?(i.current=null!=(e=a.current)?e:Du(n.current),a.current=void 0):i.current="none"},[s]),Es(()=>{const t=n.current,r=o.current;if(r!==e){const n=i.current,c=Du(t);if(e)a.current=c,u("MOUNT");else if("none"===c||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(r&&n!==c?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,u]),Es(()=>{var e;if(t){let r;const a=null!=(e=t.ownerDocument.defaultView)?e:window,c=Eu(e=>{const i=Du(n.current).includes(CSS.escape(e.animationName));if(e.target===t&&i&&(u("ANIMATION_END"),!o.current)){const e=t.style.animationFillMode;t.style.animationFillMode="forwards",r=a.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},"handleAnimationEnd"),s=Eu(e=>{e.target===t&&(i.current=Du(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{a.clearTimeout(r),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(e=>{if(e){const t=getComputedStyle(e);n.current=t,a.current=Du(t)}else n.current=null;r(e)},[])}}function Cu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Nu(...e){const t=v.useRef(e);return t.current=e,v.useCallback(e=>{const r=t.current;let n=!1;const o=r.map(t=>{const r=Cu(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<o.length;e++){const t=o[e];"function"==typeof t?t():Cu(r[e],null)}}},[])}function Du(e){return(null==e?void 0:e.animationName)||"none"}function Tu(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}Eu(_u,"usePresence"),Eu(Cu,"setRef"),Eu(Nu,"useStableComposedRefs"),Eu(Du,"getAnimationName"),Eu(Tu,"getElementRef");var Iu=Object.defineProperty,Ru=(e,t)=>Iu(e,"name",{value:t,configurable:!0}),Au=0,Lu=null;function Mu(){v.useEffect(()=>{Lu||(Lu={start:zu(),end:zu()});const{start:e,end:t}=Lu;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Au++,()=>{1===Au&&(null==Lu||Lu.start.remove(),null==Lu||Lu.end.remove(),Lu=null),Au=Math.max(0,Au-1)}},[])}function zu(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}Ru(function(e){return Mu(),e.children},"FocusGuards"),Ru(Mu,"useFocusGuards"),Ru(zu,"createFocusGuard");var Uu="right-scroll-bar-position",Fu="width-before-scroll-bar";function Bu(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Vu="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,$u=new WeakMap;function Wu(e,t){var r,n,o,i=(r=t||null,n=function(t){return e.forEach(function(e){return Bu(e,t)})},o=m.useState(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0],o.callback=n,o.facade);return Vu(function(){var t=$u.get(i);if(t){var r=new Set(t),n=new Set(e),o=i.current;r.forEach(function(e){n.has(e)||Bu(e,null)}),n.forEach(function(e){r.has(e)||Bu(e,o)})}$u.set(i,e)},[e]),i}function qu(e){return e}var Gu=function(e){var t=e.sideCar,r=ja(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return v.createElement(n,xa({},r))};Gu.isSideCarExport=!0;var Ku=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=qu);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}(null);return t.options=xa({async:!0,ssr:!1},e),t}(),Hu=function(){},Yu=v.forwardRef(function(e,t){var r=v.useRef(null),n=v.useState({onScrollCapture:Hu,onWheelCapture:Hu,onTouchMoveCapture:Hu}),o=n[0],i=n[1],a=e.forwardProps,c=e.children,s=e.className,u=e.removeScrollBar,l=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,b=e.inert,y=e.allowPinchZoom,h=e.as,g=void 0===h?"div":h,w=e.gapMode,O=ja(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=f,x=Wu([r,t]),j=xa(xa({},O),o);return v.createElement(v.Fragment,null,l&&v.createElement(P,{sideCar:Ku,removeScrollBar:u,shards:d,noRelative:p,noIsolation:m,inert:b,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:w}),a?v.cloneElement(v.Children.only(c),xa(xa({},j),{ref:x})):v.createElement(g,xa({},j,{className:s,ref:x}),c))});Yu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Yu.classNames={fullWidth:Fu,zeroRight:Uu};function Ju(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Qu=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=Ju())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zu=function(){var e,t=(e=Qu(),function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},Xu={left:0,top:0,right:0,gap:0},el=function(e){return parseInt(e||"",10)||0},tl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Xu;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[el(r),el(n),el(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},rl=Zu(),nl="data-scroll-locked",ol=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(c,"px ").concat(n,";\n  }\n  body[").concat(nl,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(c,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Uu," {\n    right: ").concat(c,"px ").concat(n,";\n  }\n  \n  .").concat(Fu," {\n    margin-right: ").concat(c,"px ").concat(n,";\n  }\n  \n  .").concat(Uu," .").concat(Uu," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(Fu," .").concat(Fu," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(nl,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n  }\n")},il=function(){var e=parseInt(document.body.getAttribute(nl)||"0",10);return isFinite(e)?e:0},al=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;v.useEffect(function(){return document.body.setAttribute(nl,(il()+1).toString()),function(){var e=il()-1;e<=0?document.body.removeAttribute(nl):document.body.setAttribute(nl,e.toString())}},[]);var i=v.useMemo(function(){return tl(o)},[o]);return v.createElement(rl,{styles:ol(i,!t,o,r?"":"!important")})},cl=!1;if("undefined"!=typeof window)try{var sl=Object.defineProperty({},"passive",{get:function(){return cl=!0,!0}});window.addEventListener("test",sl,sl),window.removeEventListener("test",sl,sl)}catch(xy){cl=!1}var ul=!!cl&&{passive:!1},ll=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},dl=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),fl(e,n)){var o=pl(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},fl=function(e,t){return"v"===e?function(e){return ll(e,"overflowY")}(t):function(e){return ll(e,"overflowX")}(t)},pl=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},ml=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bl=function(e){return[e.deltaX,e.deltaY]},yl=function(e){return e&&"current"in e?e.current:e},vl=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},hl=0,gl=[];function wl(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ol=(Pl=function(e){var t=v.useRef([]),r=v.useRef([0,0]),n=v.useRef(),o=v.useState(hl++)[0],i=v.useState(Zu)[0],a=v.useRef(e);v.useEffect(function(){a.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=ka([e.lockRef.current],(e.shards||[]).map(yl),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=v.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=ml(e),c=r.current,s="deltaX"in e?e.deltaX:c[0]-i[0],u="deltaY"in e?e.deltaY:c[1]-i[1],l=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===l||p.contains(l)))return!1;var m=dl(d,l);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=dl(d,l)),!m)return!1;if(!n.current&&"changedTouches"in e&&(s||u)&&(n.current=o),!o)return!0;var b=n.current||o;return function(e,t,r,n,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*n,c=r.target,s=t.contains(c),u=!1,l=a>0,d=0,f=0;do{if(!c)break;var p=pl(e,c),m=p[0],b=p[1]-p[2]-i*m;(m||b)&&fl(e,c)&&(d+=b,f+=m);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!s&&c!==document.body||s&&(t.contains(c)||t===c));return(l&&(o&&Math.abs(d)<1||!o&&a>d)||!l&&(o&&Math.abs(f)<1||!o&&-a>f))&&(u=!0),u}(b,t,e,"h"===b?s:u,!0)},[]),s=v.useCallback(function(e){var r=e;if(gl.length&&gl[gl.length-1]===i){var n="deltaY"in r?bl(r):ml(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var s=(a.current.shards||[]).map(yl).filter(Boolean).filter(function(e){return e.contains(r.target)});(s.length>0?c(r,s[0]):!a.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=v.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:wl(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),l=v.useCallback(function(e){r.current=ml(e),n.current=void 0},[]),d=v.useCallback(function(t){u(t.type,bl(t),t.target,c(t,e.lockRef.current))},[]),f=v.useCallback(function(t){u(t.type,ml(t),t.target,c(t,e.lockRef.current))},[]);v.useEffect(function(){return gl.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,ul),document.addEventListener("touchmove",s,ul),document.addEventListener("touchstart",l,ul),function(){gl=gl.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,ul),document.removeEventListener("touchmove",s,ul),document.removeEventListener("touchstart",l,ul)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:vl(o)}):null,p?v.createElement(al,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Ku.useMedium(Pl),Gu);var Pl,xl=v.forwardRef(function(e,t){return v.createElement(Yu,xa({},e,{ref:t,sideCar:Ol}))});xl.classNames=Yu.classNames;const jl=xl;var El=new WeakMap,kl=new WeakMap,Sl={},_l=0,Cl=function(e){return e&&(e.host||Cl(e.parentNode))},Nl=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=Cl(t);return r&&e.contains(r)?r:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Sl[r]||(Sl[r]=new WeakMap);var i=Sl[r],a=[],c=new Set,s=new Set(o),u=function(e){e&&!c.has(e)&&(c.add(e),u(e.parentNode))};o.forEach(u);var l=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(c.has(e))l(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,s=(El.get(e)||0)+1,u=(i.get(e)||0)+1;El.set(e,s),i.set(e,u),a.push(e),1===s&&o&&kl.set(e,!0),1===u&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(d){}})};return l(t),c.clear(),_l++,function(){a.forEach(function(e){var t=El.get(e)-1,o=i.get(e)-1;El.set(e,t),i.set(e,o),t||(kl.has(e)||e.removeAttribute(n),kl.delete(e)),o||e.removeAttribute(r)}),--_l||(El=new WeakMap,El=new WeakMap,kl=new WeakMap,Sl={})}},Dl=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Nl(n,o,r,"aria-hidden")):function(){return null}},Tl=Object.defineProperty,Il=(e,t)=>Tl(e,"name",{value:t,configurable:!0}),Rl="Dialog",[Al,Ll]=xs(Rl),[Ml,zl]=Al(Rl),Ul=Il(e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,c=v.useRef(null),s=v.useRef(null),[u,l]=Ms({prop:n,defaultProp:null!=o&&o,onChange:i,caller:Rl}),[d,f]=v.useState(0),[p,m]=v.useState(0);return ti.jsx(Ml,{scope:t,triggerRef:c,contentRef:s,contentId:Cs(),titleId:Cs(),descriptionId:Cs(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:u,onOpenChange:l,onOpenToggle:v.useCallback(()=>l(e=>!e),[l]),modal:a,children:r})},"Dialog"),Fl=v.forwardRef(Il(function(e,t){const r=e,{__scopeDialog:n}=r,o=f(r,["__scopeDialog"]),i=zl("DialogTrigger",n),a=q(t,i.triggerRef);return ti.jsx(Vs.button,d(l({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":rd(i.open)},o),{ref:a,onClick:hs(e.onClick,i.onOpenToggle)}))},"DialogTrigger")),Bl="DialogPortal",[Vl,$l]=Al(Bl,{forceMount:void 0}),Wl=Il(e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=zl(Bl,t);return ti.jsx(Vl,{scope:t,forceMount:r,children:v.Children.map(n,e=>ti.jsx(Su,{present:r||i.open,children:ti.jsx(xu,{asChild:!0,container:o,children:e})}))})},"DialogPortal"),ql="DialogOverlay",Gl=v.forwardRef(Il(function(e,t){const r=$l(ql,e.__scopeDialog),n=e,{forceMount:o=r.forceMount}=n,i=f(n,["forceMount"]),a=zl(ql,e.__scopeDialog);return a.modal?ti.jsx(Su,{present:o||a.open,children:ti.jsx(Hl,d(l({},i),{ref:t}))}):null},"DialogOverlay")),Kl=H("DialogOverlay.RemoveScroll"),Hl=v.forwardRef(Il(function(e,t){const r=e,{__scopeDialog:n}=r,o=f(r,["__scopeDialog"]),i=zl(ql,n),a=q(t,Zs());return ti.jsx(jl,{as:Kl,allowPinchZoom:!0,shards:[i.contentRef],children:ti.jsx(Vs.div,d(l({"data-state":rd(i.open)},o),{ref:a,style:l({pointerEvents:"auto"},o.style)}))})},"DialogOverlayImpl")),Yl="DialogContent",Jl=v.forwardRef(Il(function(e,t){const r=$l(Yl,e.__scopeDialog),n=e,{forceMount:o=r.forceMount}=n,i=f(n,["forceMount"]),a=zl(Yl,e.__scopeDialog);return ti.jsx(Su,{present:o||a.open,children:a.modal?ti.jsx(Ql,d(l({},i),{ref:t})):ti.jsx(Zl,d(l({},i),{ref:t}))})},"DialogContent")),Ql=v.forwardRef(Il(function(e,t){const r=zl(Yl,e.__scopeDialog),n=v.useRef(null),o=q(t,r.contentRef,n);return v.useEffect(()=>{const e=n.current;if(e)return Dl(e)},[]),ti.jsx(Xl,d(l({},e),{ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:hs(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:hs(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:hs(e.onFocusOutside,e=>e.preventDefault())}))},"DialogContentModal")),Zl=v.forwardRef(Il(function(e,t){const r=zl(Yl,e.__scopeDialog),n=v.useRef(!1),o=v.useRef(!1);return ti.jsx(Xl,d(l({},e),{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(n.current||null==(a=r.triggerRef.current)||a.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const c=t.target;(null==(a=r.triggerRef.current)?void 0:a.contains(c))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))},"DialogContentNonModal")),Xl=v.forwardRef(Il(function(e,t){const r=e,{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a}=r,c=f(r,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),s=zl(Yl,n);return Mu(),ti.jsx(ti.Fragment,{children:ti.jsx(uu,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:ti.jsx(Qs,d(l({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":rd(s.open)},c),{ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)}))})})},"DialogContentImpl")),ed=v.forwardRef(Il(function(e,t){const r=e,{__scopeDialog:n}=r,o=f(r,["__scopeDialog"]),i=zl("DialogTitle",n),{setTitleCount:a}=i;return Es(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),ti.jsx(Vs.h2,d(l({id:i.titleId},o),{ref:t}))},"DialogTitle")),td=v.forwardRef(Il(function(e,t){const r=e,{__scopeDialog:n}=r,o=f(r,["__scopeDialog"]),i=zl("DialogClose",n);return ti.jsx(Vs.button,d(l({type:"button"},o),{ref:t,onClick:hs(e.onClick,()=>i.onOpenChange(!1))}))},"DialogClose"));function rd(e){return e?"open":"closed"}Il(rd,"getState");var nd=m.createContext({size:"md",type:void 0}),od=function(){return m.useContext(nd)};function id(e){return(id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ad=["children","className","inset"];function cd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(r),!0).forEach(function(t){ud(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ud(e,t,r){var n;return n=function(e,t){if("object"!=id(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=id(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==id(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ld(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var dd=m.forwardRef(function(e,t){var r=e.children,n=e.className,o=e.inset,i=ld(e,ad),a=od().type;return ti.jsx(xi,sd(sd({ref:t,className:$o("overflow-y-auto max-h-[70vh]",{"px-6 sm:px-4":!a&&!o},n)},i),{},{children:r}))});function fd(e){return(fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}dd.displayName="DialogBody";var pd=["className","children","type"];function md(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?md(Object(r),!0).forEach(function(t){yd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function yd(e,t,r){var n;return n=function(e,t){if("object"!=fd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==fd(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var hd=m.forwardRef(function(e,t){var r=e.className,n=e.children;e.type;var o=vd(e,pd);return ti.jsx(td,bd(bd({ref:t,className:$o("cursor-pointer",r),type:void 0},o),{},{asChild:!0,children:n}))});function gd(e){return(gd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}hd.displayName=td.displayName;var wd=["className"];function Od(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Pd(e,t,r){var n;return n=function(e,t){if("object"!=gd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=gd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==gd(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var jd=m.forwardRef(function(e,t){var r=e.className,n=xd(e,wd);return ti.jsx(Gl,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Od(Object(r),!0).forEach(function(t){Pd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Od(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:$o("fixed left-0 top-0 w-full h-full bg-black/40 z-[1001] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r)},n))});function Ed(e){return(Ed="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}jd.displayName=Gl.displayName;var kd=["className","size","showCloseIcon","type","icon","children","onEsc","onClose","onMaskClick"];function Sd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(r),!0).forEach(function(t){Cd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Cd(e,t,r){var n;return n=function(e,t){if("object"!=Ed(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ed(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Ed(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Dd={warning:function(e){return m.createElement(N,R({spin:!1,component:m.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"warning"},m.createElement("g",{clipPath:"url(#f267a)"},m.createElement("g",null,m.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M16.2530078125,1.9676513671875L30.6984078125,27.9999513671875L1.2705078125,27.9999513671875L16.2530078125,1.9676513671875ZM15.9997078125,21.1748513671875C15.1713078125,21.1748513671875,14.4997078125,21.8463513671875,14.4997078125,22.6748513671875C14.4997078125,23.5032513671875,15.1713078125,24.1748513671875,15.9997078125,24.1748513671875C16.8282078125,24.1748513671875,17.4997078125,23.5032513671875,17.4997078125,22.6748513671875C17.4997078125,21.8463513671875,16.8282078125,21.1748513671875,15.9997078125,21.1748513671875ZM16.9997078125,11.9999513671875L14.9997078125,11.9999513671875L14.9997078125,18.9999513671875L16.9997078125,18.9999513671875L16.9997078125,11.9999513671875Z"}))))},e))},success:function(e){return m.createElement(N,I({spin:!1,component:m.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"success"},m.createElement("g",{clipPath:"url(#5b1ea)"},m.createElement("g",null,m.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M16,3C23.1797,3,29,8.8203,29,16C29,23.1797,23.1797,29,16,29C8.8203,29,3,23.1797,3,16C3,8.8203,8.8203,3,16,3ZM21.2929,11.2928L14,18.5857L10.7071,15.2928L9.29291,16.7071L14,21.4142L22.7071,12.7071L21.2929,11.2928Z"}))))},e))},info:function(e){return m.createElement(N,T({spin:!1,component:m.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"info"},m.createElement("g",{clipPath:"url(#348ca)"},m.createElement("g",null,m.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M16,3C17.7628,3,19.4496,3.340675,21.0605,4.0220199999999995C22.6159,4.67991,23.9932,5.6084499999999995,25.1924,6.80763C26.3916,8.00681,27.3201,9.38411,27.978,10.939530000000001C28.6593,12.55041,29,14.2372,29,16C29,17.7628,28.6593,19.4496,27.978,21.0605C27.3201,22.6159,26.3916,23.9932,25.1924,25.1924C23.9932,26.3916,22.6159,27.3201,21.0605,27.978C19.4496,28.6593,17.7628,29,16,29C14.2372,29,12.55041,28.6593,10.939530000000001,27.978C9.38411,27.3201,8.00681,26.3916,6.80761,25.1924C5.60843,23.9932,4.6799,22.6159,4.0220199999999995,21.0605C3.340672,19.4496,3,17.7628,3,16C3,14.2372,3.340672,12.5504,4.0220199999999995,10.939530000000001C4.6799,9.38412,5.60843,8.006820000000001,6.80761,6.80763C8.00681,5.6084499999999995,9.38411,4.67992,10.93952,4.0220199999999995C12.5504,3.340675,14.2372,3,16,3ZM17,13L15,13L15,23L17,23L17,13ZM16,7.8252C15.1716,7.8252,14.5,8.49677,14.5,9.325199999999999C14.5,10.15362,15.1716,10.825199999999999,16,10.825199999999999C16.828400000000002,10.825199999999999,17.5,10.15362,17.5,9.325199999999999C17.5,8.49677,16.828400000000002,7.8252,16,7.8252Z"}))))},e))},error:function(e){return m.createElement(N,D({spin:!1,component:m.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"caution"},m.createElement("g",{clipPath:"url(#3aeca)"},m.createElement("g",null,m.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M16,3C19.5895,3,22.8409,4.45618,25.1924,6.80761C27.5438,9.15908,29,12.4104,29,16C29,19.5896,27.5438,22.8409,25.1924,25.1924C22.8409,27.5438,19.5896,29,16,29C12.4104,29,9.15907,27.5438,6.80761,25.1924C4.45617,22.8409,3,19.5895,3,16C3,12.4105,4.45619,9.15907,6.80761,6.8076C9.15908,4.45617,12.4105,3,16,3ZM16.0003,21.1749C15.1719,21.1749,14.5003,21.8465,14.5003,22.6749C14.5003,23.5033,15.1719,24.1749,16.0003,24.1749C16.828699999999998,24.1749,17.5003,23.5033,17.5003,22.6749C17.5003,21.8465,16.828699999999998,21.1749,16.0003,21.1749ZM17.0001,9L15.0001,9L15.0001,19L17.0001,19L17.0001,9Z"}))))},e))}},Td=ue("fixed left-[50%] top-[50%] max-w-[80vw] sm:min-w-[280px] sm:max-w-[calc(100%-32px)] z-[1002] grid translate-x-[-50%] translate-y-[-50%] bg-white py-6 sm:pb-4 shadow-md shadow-black/10 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] transition-all",{variants:{size:{xl:"w-[1200px] max-h-70vh sm:w-auto",lg:"w-[800px] max-h-70vh sm:w-auto",md:"w-[640px] max-h-70vh sm:w-auto",sm:"w-[480px] max-h-70vh sm:w-auto",xs:"w-[320px] max-h-70vh sm:w-auto"},hasIcon:{true:"px-6 sm:px-4",false:null}},defaultVariants:{size:"md"}}),Id=ue("text-heading-3 sm:text-[32px]",{variants:{type:{warning:"text-warning",success:"text-success",info:"text-info",error:"text-error"}}}),Rd=m.forwardRef(function(e,t){var r=qn(e),n=r.className,o=r.size,i=void 0===o?"md":o,a=r.showCloseIcon,c=r.type,s=r.icon,u=r.children,l=r.onEsc,d=r.onClose,f=r.onMaskClick,p=Nd(r,kd),b="sm"!==Fn()&&a;return ti.jsxs(Wl,{children:[ti.jsx(jd,{}),ti.jsx(nd.Provider,{value:{size:i,type:c},children:ti.jsxs(Jl,_d(_d({ref:t,className:$o(Td({size:i,hasIcon:En(c)}),n),onPointerDownOutside:f,onEscapeKeyDown:l},p),{},{children:[ti.jsxs(ss,{gap:"sm",sm:{vertical:!0,align:"stretch"},children:[!s&&c&&Dd[c]?ti.jsx(xi,{alignSelf:"start",centered:!0,height:28,className:$o(Id({type:c})),sm:{height:32,centered:!0,alignSelf:"stretch"},children:m.createElement(Dd[c])}):null,s?ti.jsx(xi,{alignSelf:"start",centered:!0,children:s}):null,ti.jsx(xi,{flex:1,className:"overflow-y-auto",children:u})]}),b?ti.jsx(hd,{onClick:d,className:"absolute inline-flex justify-center items-center w-7 h-7 right-2 top-2 opacity-70 hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:ti.jsx(z,{})}):null]}))})]})});Rd.displayName=Jl.displayName;var Ad=m.forwardRef(function(e,t){var r=e.children;return ti.jsx(ss,{ref:t,justify:"start",align:"start",sm:{justify:"center"},children:ti.jsx("p",{className:"text-left text-subtler text-body",children:r})})});function Ld(e){return(Ld="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Ad.displayName="DialogDescription";var Md=["inset","className","flexEqual","children"],zd=["children","className"];function Ud(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Fd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ud(Object(r),!0).forEach(function(t){Bd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ud(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bd(e,t,r){var n;return n=function(e,t){if("object"!=Ld(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ld(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Ld(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var $d=m.forwardRef(function(e,t){var r=e.inset,n=e.className,o=e.flexEqual,i=void 0===o||o,a=e.children,c=Vd(e,Md),s=od(),u=s.type,l=s.size,d="sm"===Fn(),f=m.useMemo(function(){return i?m.Children.map(a,function(e){if(m.isValidElement(e)){var t=e.props,r=t.children,n=t.className,o=Vd(t,zd);return m.cloneElement(e,Fd({className:$o(n,"sm:flex-1")},o),r)}return e}):a},[d,a,i]);return ti.jsx(ss,Fd(Fd({ref:t,gap:l&&["lg","xl"].includes(l)?"md":"sm",className:$o("mt-6 sm:mt-8",{"px-6 sm:px-4":!u&&!r},n),align:"center",justify:"end",sm:{gap:"sm"}},c),{},{children:f}))});function Wd(e){return(Wd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}$d.displayName="DialogFooter";var qd=["className","inset"];function Gd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Kd(e,t,r){var n;return n=function(e,t){if("object"!=Wd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Wd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Wd(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Yd=ue("mr-10 mb-3 sm:mr-0 space-y-1.5 text-left sm:text-center",{variants:{hasType:{true:null,false:"pl-6 sm:px-4"},inset:{true:"pl-6 sm:px-4",false:null}},compoundVariants:[{inset:!0,className:"pl-0 sm:px-0"}]}),Jd=m.forwardRef(function(e,t){var r=e.className,n=e.inset,o=Hd(e,qd),i=od().type;return ti.jsx("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gd(Object(r),!0).forEach(function(t){Kd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:$o(Yd({hasType:!!i,inset:n}),r)},o))});function Qd(e){return(Qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Jd.displayName="DialogHeader";var Zd=["className"];function Xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ef(e,t,r){var n;return n=function(e,t){if("object"!=Qd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Qd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Qd(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tf(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var rf=m.forwardRef(function(e,t){var r=e.className,n=tf(e,Zd);return ti.jsx(ed,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xd(Object(r),!0).forEach(function(t){ef(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:$o("text-heading-3 font-bold tracking-tight",r)},n))});function nf(e){return(nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function of(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function af(e,t,r){var n;return n=function(e,t){if("object"!=nf(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=nf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==nf(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cf(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
cf=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new N(n||[]);return o(a,"_invoke",{value:k(e,r,c)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=l;var f="suspendedStart",p="suspendedYield",m="executing",b="completed",y={};function v(){}function h(){}function g(){}var w={};u(w,a,function(){return this});var O=Object.getPrototypeOf,P=O&&O(O(D([])));P&&P!==r&&n.call(P,a)&&(w=P);var x=g.prototype=v.prototype=Object.create(w);function j(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function E(e,t){function r(o,i,a,c){var s=d(e[o],e,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==nf(l)&&n.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,a,c)},function(e){r("throw",e,a,c)}):t.resolve(l).then(function(e){u.value=e,a(u)},function(e){return r("throw",e,a,c)})}c(s.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,o){r(e,n,t,o)})}return i=i?i.then(o,o):o()}})}function k(t,r,n){var o=f;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=S(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?b:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=b,n.method="throw",n.arg=u.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(nf(t)+" is not iterable")}return h.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:h,configurable:!0}),h.displayName=u(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},j(E.prototype),u(E.prototype,c,function(){return this}),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},j(x),u(x,s,"Generator"),u(x,a,function(){return this}),u(x,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=D,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function sf(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(u){return void r(u)}c.done?t(s):Promise.resolve(s).then(n,o)}function uf(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){sf(i,n,o,a,c,"next",e)}function c(e){sf(i,n,o,a,c,"throw",e)}a(void 0)})}}function lf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return df(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return df(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function df(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}rf.displayName=ed.displayName;var ff=function(e){var t=e.title,r=e.type,n=e.size,o=e.footer,i=e.description,a=e.esc,c=void 0===a||a,s=e.showCloseIcon,u=void 0===s||s,l=e.maskClosable,d=void 0===l||l,f=e.content,p=void 0===f?"":f,b=e.okText,y=void 0===b?"\u786e\u5b9a":b,v=e.cancelText,h=void 0===v?"\u53d6\u6d88":v,g=e.headerInset,w=e.bodyInset,O=e.footerInset,P=e.onOk,x=e.onCancel,j=lf(m.useState(!0),2),E=j[0],k=j[1],S=lf(m.useState(!1),2),_=S[0],C=S[1],N=lf(m.useState(!1),2),D=N[0],T=N[1];if(!p&&!i)throw new Error("QuickDialog: content or description is required");var I=function(){var e=uf(cf().mark(function e(){return cf().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=2;break}return e.abrupt("return");case 2:return C(!0),e.next=5,null==P?void 0:P();case 5:C(!1),k(!1);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),R=function(){var e=uf(cf().mark(function e(t){return cf().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!D){e.next=2;break}return e.abrupt("return");case 2:return T(!0),e.next=5,null==x?void 0:x(t);case 5:T(!1),k(!1);case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();return ti.jsx(Ul,{open:E,onOpenChange:function(e){_||D||k(e)},children:ti.jsxs(Rd,{size:n,type:r,showCloseIcon:u,onEsc:function(e){e.preventDefault(),c&&R("esc")},onMaskClick:function(e){e.preventDefault(),d&&R("mask")},onClose:function(e){e.preventDefault(),R("close")},children:[t?ti.jsx(Jd,{inset:g,children:ti.jsx(rf,{children:t})}):null,ti.jsxs(dd,{inset:w,children:[p||null,!p&&i?ti.jsx(Ad,{children:i}):null]}),void 0===o?ti.jsxs($d,{inset:O,children:[ti.jsx(si,{type:"solid",loading:_,onClick:I,children:y}),!1!==h?ti.jsx(si,{type:"outlined",loading:D,onClick:function(){return R("cancel")},children:h}):null]}):null,void 0!==o&&o?ti.jsx($d,{inset:O,children:o}):null]})})};function pf(e){return(pf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}ff.displayName="QuickDialog";var mf=["type","children","className"];function bf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function yf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bf(Object(r),!0).forEach(function(t){vf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vf(e,t,r){var n;return n=function(e,t){if("object"!=pf(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==pf(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hf(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var gf=m.forwardRef(function(e,t){var r,n=e.type,o=e.children,i=e.className,a=hf(e,mf),c=m.isValidElement(o),s=c?null==o||null===(r=o.props)||void 0===r?void 0:r.type:n;return ti.jsx(Fl,yf(yf({ref:t,asChild:c,type:s,className:$o("cursor-pointer",i)},a),{},{children:o}))});gf.displayName="DialogTrigger";var wf=Ul;function Of(e){return(Of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}wf.Content=Rd,wf.Trigger=gf,wf.Header=Jd,wf.Close=hd,wf.Title=rf,wf.Body=dd,wf.Footer=$d,wf.Description=Ad,wf.open=function(e){var t=document.createElement("div");document.body.appendChild(t),b.render(ti.jsx(ff,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?of(Object(r),!0).forEach(function(t){af(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):of(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e)),t)};function Pf(...e){return e.filter(Boolean).join(" ")}function xf({value:e,defaultValue:t,onChange:r}){const[n,o]=v.useState(t),i=void 0!==e,a=i?e:n,c=v.useCallback(e=>{const t="function"==typeof e?e(a):e;i||o(t),null==r||r(t)},[i,a,r]);return[a,c]}function jf(e,t,r){var n;if(!e.length)return;const o=Math.max(0,e.indexOf(t));null==(n=e["first"===r?0:"last"===r?e.length-1:"next"===r?(o+1)%e.length:(o-1+e.length)%e.length])||n.focus()}var Ef=v.forwardRef(function(e,t){var r=e,{variant:n="standard",size:o="md",secondary:i=!1,className:a,onPointerMove:c}=r,s=f(r,["variant","size","secondary","className","onPointerMove"]);return ti.jsx("button",l({ref:t,type:"button",className:Pf("btn",`btn-${n}`,`btn-${o}`,i&&("elevated"===n||"filled"===n||"text"===n)&&`btn-${n}-secondary`,a),onPointerMove:e=>{if("elevated"===n){const t=e.currentTarget.getBoundingClientRect();e.currentTarget.style.setProperty("--pointer-x",e.clientX-t.left+"px"),e.currentTarget.style.setProperty("--pointer-y",e.clientY-t.top+"px")}null==c||c(e)}},s))});v.forwardRef(function(e,t){var r=e,{size:n="md",indeterminate:o=!1,label:i,description:a,className:c}=r,s=f(r,["size","indeterminate","label","description","className"]);const u=v.useRef(null);v.useImperativeHandle(t,()=>u.current),v.useEffect(()=>{u.current&&(u.current.indeterminate=o)},[o]);const p=ti.jsx("input",d(l({},s),{ref:u,type:"checkbox","aria-checked":o?"mixed":s.checked,className:Pf("checkbox","sm"===n&&"checkbox-sm",c)}));return void 0===i&&void 0===a?p:ti.jsxs("label",{className:Pf("checkbox-field","sm"===n&&"checkbox-sm"),children:[p,ti.jsxs("span",{className:"checkbox-content",children:[void 0!==i&&ti.jsx("span",{className:"checkbox-label",children:i}),void 0!==a&&ti.jsx("span",{className:"checkbox-description",children:a})]})]})});var kf=v.createContext(null);function Sf(e){const t=v.useContext(kf);if(!t)throw new Error(`${e} must be used inside <Dropdown>`);return t}v.forwardRef(function(e,t){var r,n=e,{variant:o="default",className:i,children:a,onClick:c,onKeyDown:s}=n,u=f(n,["variant","className","children","onClick","onKeyDown"]);const p=Sf("DropdownTrigger");return v.useImperativeHandle(t,()=>p.triggerRef.current),ti.jsx("button",d(l({},u),{ref:p.triggerRef,type:null!=(r=u.type)?r:"button","data-dropdown-trigger":"","aria-haspopup":"menu","aria-controls":p.menuId,"aria-expanded":p.open,className:Pf("dropdown-trigger",p.subMenu&&"dropdown-item","default"!==o&&`dropdown-trigger-${o}`,i),onClick:e=>{p.setOpen(!p.open),null==c||c(e)},onKeyDown:e=>{["ArrowDown","Enter"," "].includes(e.key)?(e.preventDefault(),p.setOpen(!0,"first")):"ArrowUp"===e.key?(e.preventDefault(),p.setOpen(!0,"last")):"ArrowRight"===e.key&&p.subMenu?(e.preventDefault(),p.setOpen(!0,"first")):"Escape"===e.key&&(e.preventDefault(),p.setOpen(!1)),null==s||s(e)},children:a}))}),v.forwardRef(function(e,t){var r=e,{className:n,onKeyDown:o}=r,i=f(r,["className","onKeyDown"]);const a=Sf("DropdownMenu");return v.useImperativeHandle(t,()=>a.menuRef.current),ti.jsx("div",d(l({},i),{ref:a.menuRef,id:a.menuId,role:"menu","aria-hidden":!a.open,className:Pf("dropdown-menu",n),onKeyDown:e=>{var t;const r=e.target.closest(".dropdown-item"),n=(i=a.menuRef.current)?[...i.querySelectorAll(".dropdown-item")].filter(e=>e.closest(".dropdown-menu")===i&&!e.matches(":disabled, [disabled], [aria-disabled='true'], .dropdown-item-disabled")):[];var i;if("ArrowDown"===e.key)e.preventDefault(),jf(n,r,"next");else if("ArrowUp"===e.key)e.preventDefault(),jf(n,r,"previous");else if("Home"===e.key)e.preventDefault(),jf(n,r,"first");else if("End"===e.key)e.preventDefault(),jf(n,r,"last");else if("ArrowLeft"===e.key&&a.subMenu)e.preventDefault(),a.setOpen(!1),null==(t=a.triggerRef.current)||t.focus();else if("Tab"===e.key)a.setOpen(!1);else if(1===e.key.length&&/\S/.test(e.key)){const t=n.find(t=>{var r;return null==(r=t.textContent)?void 0:r.trim().toLocaleLowerCase().startsWith(e.key.toLocaleLowerCase())});null==t||t.focus()}null==o||o(e)}}))}),v.forwardRef(function(e,t){var r,n=e,{value:o,kind:i="item",checked:a,defaultChecked:c=!1,onCheckedChange:s,closeOnSelect:u=!0,updateLabel:p=!0,disabled:m,className:b,children:y,onClick:v}=n,h=f(n,["value","kind","checked","defaultChecked","onCheckedChange","closeOnSelect","updateLabel","disabled","className","children","onClick"]);const g=Sf("DropdownItem"),[w,O]=xf({value:a,defaultValue:c,onChange:s}),P=null!=o?o:"string"==typeof y?y:"",x="radio"===i?g.selectedValue===P:"checkbox"===i?w:g.selectedValue===P,j="radio"===i?"menuitemradio":"checkbox"===i?"menuitemcheckbox":"menuitem";return ti.jsx("button",d(l({},h),{ref:t,type:null!=(r=h.type)?r:"button",role:j,tabIndex:-1,disabled:m,"aria-disabled":m||void 0,"aria-checked":"item"===i?void 0:x,className:Pf("dropdown-item",x&&"dropdown-item-selected",m&&"dropdown-item-disabled",b),onClick:e=>{var t;m||("checkbox"===i?O(!w):P&&g.setSelectedValue(P),p&&g.setSelectedLabel(y),null==(t=g.onSelect)||t.call(g,P),null==v||v(e),u&&"checkbox"!==i&&(g.closeTree(),requestAnimationFrame(()=>{var e;return null==(e=g.triggerRef.current)?void 0:e.focus()})))},onKeyDown:e=>{var t;"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click()),null==(t=h.onKeyDown)||t.call(h,e)},children:y}))}),v.forwardRef(function(e,t){var r=e,{className:n}=r,o=f(r,["className"]);return ti.jsx("div",l({ref:t,role:"group",className:Pf("dropdown-group",n)},o))}),v.createContext(null);var _f=v.createContext(null);function Cf(e){const t=v.useContext(_f);if(!t)throw new Error(`${e} must be used inside <Modal>`);return t}v.forwardRef(function(e,t){var r,n=e,{onClick:o}=n,i=f(n,["onClick"]);const a=Cf("ModalTrigger");return v.useImperativeHandle(t,()=>a.triggerRef.current),ti.jsx("button",d(l({},i),{ref:a.triggerRef,type:null!=(r=i.type)?r:"button",onClick:e=>{a.setOpen(!0),null==o||o(e)}}))}),v.forwardRef(function(e,t){var r,n=e,{size:o="md",closeOnBackdrop:i=!0,className:a,boxClassName:c,children:s,onClick:u,onCancel:p,onClose:m}=n,b=f(n,["size","closeOnBackdrop","className","boxClassName","children","onClick","onCancel","onClose"]);const y=Cf("ModalContent");return v.useImperativeHandle(t,()=>y.dialogRef.current),ti.jsx("dialog",d(l({},b),{ref:y.dialogRef,"aria-labelledby":null!=(r=b["aria-labelledby"])?r:y.titleId,className:Pf("modal",`modal-${o}`,y.open&&"modal-open",a),onClick:e=>{i&&e.target===e.currentTarget&&y.setOpen(!1),null==u||u(e)},onCancel:e=>{y.setOpen(!1),null==p||p(e)},onClose:e=>{y.setOpen(!1),null==m||m(e)},children:ti.jsx("section",{className:Pf("modal-box",c),children:s})}))}),v.forwardRef(function(e,t){var r=e,{className:n}=r,o=f(r,["className"]);return ti.jsx("header",l({ref:t,className:Pf("modal-header",n)},o))}),v.forwardRef(function(e,t){var r,n=e,{className:o}=n,i=f(n,["className"]);const a=Cf("ModalTitle");return ti.jsx("h2",l({ref:t,id:null!=(r=i.id)?r:a.titleId,className:Pf("modal-title",o)},i))}),v.forwardRef(function(e,t){var r=e,{className:n}=r,o=f(r,["className"]);return ti.jsx("div",l({ref:t,className:Pf("modal-content",n)},o))}),v.forwardRef(function(e,t){var r=e,{className:n}=r,o=f(r,["className"]);return ti.jsx("footer",l({ref:t,className:Pf("modal-action",n)},o))}),v.forwardRef(function(e,t){var r,n=e,{className:o,onClick:i}=n,a=f(n,["className","onClick"]);const c=Cf("ModalClose");return ti.jsx("button",d(l({},a),{ref:t,type:null!=(r=a.type)?r:"button",className:Pf("modal-close",o),onClick:e=>{c.setOpen(!1),requestAnimationFrame(()=>{var e;return null==(e=c.triggerRef.current)?void 0:e.focus()}),null==i||i(e)}}))});var Nf=v.createContext(null);function Df(e){const t=v.useContext(Nf);if(!t)throw new Error(`${e} must be used inside <Popover>`);return t}v.forwardRef(function(e,t){var r,n=e,{onClick:o}=n,i=f(n,["onClick"]);const a=Df("PopoverTrigger");return v.useImperativeHandle(t,()=>a.triggerRef.current),ti.jsx("button",d(l({},i),{ref:a.triggerRef,type:null!=(r=i.type)?r:"button","data-popover-trigger":"","aria-haspopup":"dialog","aria-controls":a.contentId,"aria-expanded":a.open,onClick:e=>{"click"===a.triggerMode&&a.setOpen(!a.open),null==o||o(e)}}))}),v.forwardRef(function(e,t){var r,n=e,{className:o,onKeyDown:i}=n,a=f(n,["className","onKeyDown"]);const c=Df("PopoverContent");return v.useImperativeHandle(t,()=>c.contentRef.current),ti.jsx("div",d(l({},a),{ref:c.contentRef,id:c.contentId,role:null!=(r=a.role)?r:"dialog","aria-hidden":!c.open,className:Pf("popover-content",o),onKeyDown:e=>{var t;"Escape"===e.key&&(e.preventDefault(),c.setOpen(!1),null==(t=c.triggerRef.current)||t.focus()),null==i||i(e)}}))}),v.forwardRef(function(e,t){var r,n=e,{onClick:o}=n,i=f(n,["onClick"]);const a=Df("PopoverClose");return ti.jsx("button",d(l({},i),{ref:t,type:null!=(r=i.type)?r:"button",onClick:e=>{var t;a.setOpen(!1),null==(t=a.triggerRef.current)||t.focus(),null==o||o(e)}}))}),v.forwardRef(function(e,t){var r=e,{className:n}=r,o=f(r,["className"]);return ti.jsx("article",l({ref:t,className:Pf("card",n)},o))}),v.forwardRef(function(e,t){var r=e,{className:n}=r,o=f(r,["className"]);return ti.jsx("div",l({ref:t,className:Pf("card-body",n)},o))}),v.forwardRef(function(e,t){var r=e,{className:n}=r,o=f(r,["className"]);return ti.jsx("h3",l({ref:t,className:Pf("card-title",n)},o))}),v.forwardRef(function(e,t){var r=e,{className:n}=r,o=f(r,["className"]);return ti.jsx("div",l({ref:t,className:Pf("card-actions",n)},o))}),v.forwardRef(function(e,t){var r=e,{className:n,children:o}=r,i=f(r,["className","children"]);return ti.jsx("div",d(l({ref:t,role:"separator",className:Pf("divider",Boolean(o)&&"divider-title",n)},i),{children:o}))}),v.forwardRef(function(e,t){var r=e,{className:n}=r,o=f(r,["className"]);return ti.jsx("a",l({ref:t,className:Pf("link",n)},o))}),v.forwardRef(function(e,t){var r=e,{size:n="md",label:o="\u52a0\u8f7d\u4e2d",className:i}=r,a=f(r,["size","label","className"]);return ti.jsx("span",l({ref:t,role:"status","aria-label":o,className:Pf("loading",`loading-${n}`,i)},a))});var Tf=v.createContext(null);function If(e){const t=v.useContext(Tf);if(!t)throw new Error(`${e} must be used inside <Select>`);return t}v.forwardRef(function(e,t){var r,n,o=e,{className:i,onClick:a,onKeyDown:c,children:s}=o,u=f(o,["className","onClick","onKeyDown","children"]);const p=If("SelectTrigger");return v.useImperativeHandle(t,()=>p.triggerRef.current),ti.jsx("div",d(l({},u),{ref:p.triggerRef,role:"combobox",tabIndex:p.disabled?-1:null!=(r=u.tabIndex)?r:0,"aria-disabled":p.disabled||void 0,"aria-haspopup":"listbox","aria-controls":p.menuId,"aria-labelledby":u["aria-label"]?void 0:null!=(n=u["aria-labelledby"])?n:p.valueId,"aria-expanded":p.open,className:Pf("select-trigger",i),onClick:e=>{p.setOpen(!p.open),null==a||a(e)},onKeyDown:e=>{["ArrowDown","Enter"," "].includes(e.key)?(e.preventDefault(),p.setOpen(!0,!0)):"Escape"===e.key&&(e.preventDefault(),p.setOpen(!1)),null==c||c(e)},children:s}))}),v.forwardRef(function(e,t){var r,n=e,{className:o,onClick:i}=n,a=f(n,["className","onClick"]);const c=If("SelectClear");return ti.jsx("button",d(l({},a),{ref:t,type:null!=(r=a.type)?r:"button",className:Pf("select-clear",o),onClick:e=>{e.stopPropagation(),c.setValues([]),null==i||i(e)}}))}),v.forwardRef(function(e,t){var r=e,{className:n,onKeyDown:o}=r,i=f(r,["className","onKeyDown"]);const a=If("SelectMenu");return v.useImperativeHandle(t,()=>a.menuRef.current),ti.jsx("div",d(l({},i),{ref:a.menuRef,id:a.menuId,role:"listbox","aria-multiselectable":a.multiple||void 0,"aria-hidden":!a.open,className:Pf("select-menu",n),onKeyDown:e=>{var t;const r=e.target.closest(".select-option"),n=(i=a.menuRef.current)?[...i.querySelectorAll(".select-option")].filter(e=>!e.matches(":disabled, [disabled], [aria-disabled='true']")):[];var i;"ArrowDown"===e.key?(e.preventDefault(),jf(n,r,"next")):"ArrowUp"===e.key?(e.preventDefault(),jf(n,r,"previous")):"Home"===e.key?(e.preventDefault(),jf(n,r,"first")):"End"===e.key?(e.preventDefault(),jf(n,r,"last")):"Escape"===e.key?(e.preventDefault(),a.setOpen(!1),null==(t=a.triggerRef.current)||t.focus()):"Tab"===e.key&&a.setOpen(!1),null==o||o(e)}}))}),v.forwardRef(function(e,t){var r,n=e,{value:o,disabled:i,className:a,children:c,onClick:s,onKeyDown:u}=n,p=f(n,["value","disabled","className","children","onClick","onKeyDown"]);const m=If("SelectOption"),b=m.values.includes(o);v.useEffect(()=>m.registerLabel(o,c),[c,m.registerLabel,o]);const y=()=>{i||(m.multiple?m.setValues(b?m.values.filter(e=>e!==o):[...m.values,o]):(m.setValues([o]),m.setOpen(!1),requestAnimationFrame(()=>{var e;return null==(e=m.triggerRef.current)?void 0:e.focus()})))};return ti.jsx("button",d(l({},p),{ref:t,type:null!=(r=p.type)?r:"button",role:"option",tabIndex:-1,disabled:i,"aria-selected":b,"aria-disabled":i||void 0,className:Pf("select-option",b&&"select-option-selected",a),onClick:e=>{y(),null==s||s(e)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),y()),null==u||u(e)},children:c}))}),v.forwardRef(function(e,t){var r,n=e,{size:o="md",color:i,selectable:a=!1,selected:c,defaultSelected:s=!1,onSelectedChange:u,closable:p=!1,onRemove:m,removeOnClose:b=!0,closeLabel:y="\u79fb\u9664",className:h,children:g,onClick:w}=n,O=f(n,["size","color","selectable","selected","defaultSelected","onSelectedChange","closable","onRemove","removeOnClose","closeLabel","className","children","onClick"]);const[P,x]=v.useState(!1),[j,E]=xf({value:c,defaultValue:s,onChange:u});return P?null:ti.jsxs("span",d(l({},O),{ref:t,role:a?"button":O.role,tabIndex:a?null!=(r=O.tabIndex)?r:0:O.tabIndex,"aria-pressed":a?j:void 0,className:Pf("tag",`tag-${o}`,i&&`tag-${i}`,a&&"tag-selectable",p&&"tag-closable",j&&"tag-selected",h),onClick:e=>{a&&E(!j),null==w||w(e)},onKeyDown:e=>{var t;!a||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),E(!j)),null==(t=O.onKeyDown)||t.call(O,e)},children:[g,p&&ti.jsx("button",{type:"button",className:"tag-close","aria-label":y,onClick:e=>{e.stopPropagation();const t=!1!==(null==m?void 0:m());b&&t&&x(!0)},children:"\xd7"})]}))});var Rf=v.createContext(null);function Af(e){const t=v.useContext(Rf);if(!t)throw new Error(`${e} must be used inside <Tooltip>`);return t}v.forwardRef(function(e,t){var r,n=e,{onClick:o,onFocus:i,onBlur:a,onKeyDown:c}=n,s=f(n,["onClick","onFocus","onBlur","onKeyDown"]);const u=Af("TooltipTrigger");return v.useImperativeHandle(t,()=>u.triggerRef.current),ti.jsx("button",d(l({},s),{ref:u.triggerRef,type:null!=(r=s.type)?r:"button","aria-describedby":u.contentId,onClick:e=>{"click"===u.triggerMode&&u.setOpen(!u.open),null==o||o(e)},onFocus:e=>{"hover"===u.triggerMode&&u.setOpen(!0),null==i||i(e)},onBlur:e=>{"hover"===u.triggerMode&&u.setOpen(!1),null==a||a(e)},onKeyDown:e=>{"Escape"===e.key&&u.setOpen(!1),null==c||c(e)}}))}),v.forwardRef(function(e,t){var r=e,{className:n}=r,o=f(r,["className"]);const i=Af("TooltipContent");return ti.jsx("span",d(l({},o),{ref:t,id:i.contentId,role:"tooltip","aria-hidden":!i.open,className:Pf("tooltip-content",n)}))});const Lf="_25b1c227dc41b9d59f805e425a941881_invite_button_wrap",Mf="_25b1c227dc41b9d59f805e425a941881_modal_trigger",zf="_25b1c227dc41b9d59f805e425a941881_drawer_trigger",Uf="_25b1c227dc41b9d59f805e425a941881_triggerButton",Ff="_25b1c227dc41b9d59f805e425a941881_text",Bf="_25b1c227dc41b9d59f805e425a941881_iconSlot";var Vf=function(e){var t=e&&"object"===Of(e)&&!Array.isArray(e)&&!m.isValidElement(e)&&"children"in e?e.children:e;return m.Children.toArray(t)},$f=function(e){var t=e.btnText,r=void 0===t?"\u9080\u8bf7\u597d\u53cb":t,n=e.size,o=void 0===n?"hero":n,i=e.buttonType,a=void 0===i?"filled":i,c=e.className,s=e.leftIcon,u=e.rightIcon,l=Vf(s),d=Vf(u),f=function(e){return m.createElement(Ef,{type:"button",className:"".concat(Uf," ").concat(c||""),size:o,variant:a,onClick:function(){return function(e){var t="undefined"!=typeof window?window.__ADC_2025_OPEN_SHARE_INVITE_MODAL:void 0;null==t||t(e)}(e)}},l.length?m.createElement("span",{className:Bf},l):null,m.createElement("span",{className:Ff},r),d.length?m.createElement("span",{className:Bf},d):null)};return m.createElement("div",{className:Lf},m.createElement("div",{className:Mf},f("pc")),m.createElement("div",{className:zf},f("h5")))};function Wf(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(u){return void r(u)}c.done?t(s):Promise.resolve(s).then(n,o)}function qf(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Wf(i,n,o,a,c,"next",e)}function c(e){Wf(i,n,o,a,c,"throw",e)}a(void 0)})}}var Gf,Kf={exports:{}},Hf={exports:{}};(Gf=Hf).exports=function(e,t){this.v=e,this.k=t},Gf.exports.__esModule=!0,Gf.exports.default=Gf.exports;var Yf=Hf.exports,Jf={exports:{}},Qf={exports:{}};!function(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(c){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Qf);var Zf=Qf.exports;!function(e){var t=Zf;function r(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var n,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.toStringTag||"@@toStringTag";function s(e,r,i,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return t(s,"_invoke",function(e,t,r){var i,a,c,s=0,l=r||[],d=!1,f={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(e,t){return i=e,a=0,c=n,f.n=t,u}};function p(e,t){for(a=e,c=t,o=0;!d&&s&&!r&&o<l.length;o++){var r,i=l[o],p=f.p,m=i[2];e>3?(r=m===t)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=p&&((r=e<2&&p<i[1])?(a=0,f.v=t,f.n=i[1]):p<m&&(r=e<3||i[0]>t||t>m)&&(i[4]=e,i[5]=t,f.n=m,a=0))}if(r||e>1)return u;throw d=!0,t}return function(r,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),a=l,c=m;(o=a<2?n:c)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,c)):f.n=c:f.v=c);try{if(s=2,i){if(a||(r="next"),o=i[r]){if(!(o=o.call(i,c)))throw TypeError("iterator result is not an object");if(!o.done)return o;c=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=n}else if((o=(d=f.n<0)?c:e.call(t,f))!==u)break}catch(b){i=n,a=1,c=b}finally{s=1}}return{value:o,done:d}}}(e,i,a),!0),s}var u={};function l(){}function d(){}function f(){}o=Object.getPrototypeOf;var p=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),m=f.prototype=l.prototype=Object.create(p);function b(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,t(e,c,"GeneratorFunction")),e.prototype=Object.create(m),e}return d.prototype=f,t(m,"constructor",f),t(f,"constructor",d),d.displayName="GeneratorFunction",t(f,c,"GeneratorFunction"),t(m),t(m,c,"Generator"),t(m,a,function(){return this}),t(m,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:s,m:b}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Jf);var Xf=Jf.exports,ep={exports:{}},tp={exports:{}},rp={exports:{}};!function(e){var t=Yf,r=Zf;e.exports=function e(n,o){function i(e,r,a,c){try{var s=n[e](r),u=s.value;return u instanceof t?o.resolve(u.v).then(function(e){i("next",e,a,c)},function(e){i("throw",e,a,c)}):o.resolve(u).then(function(e){s.value=e,a(s)},function(e){return i("throw",e,a,c)})}catch(l){c(l)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,r){function n(){return new o(function(t,n){i(e,r,t,n)})}return a=a?a.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(rp);var np=rp.exports;!function(e){var t=Xf,r=np;e.exports=function(e,n,o,i,a){return new r(t().w(e,n,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(tp);var op=tp.exports;!function(e){var t=op;e.exports=function(e,r,n,o,i){var a=t(e,r,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}(ep);var ip=ep.exports,ap={exports:{}};!function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(ap);var cp=ap.exports,sp={exports:{}},up={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(up);var lp=up.exports;!function(e){var t=lp.default;e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(sp);var dp=sp.exports;!function(e){var t=Yf,r=Xf,n=ip,o=op,i=np,a=cp,c=dp;function s(){var u=r(),l=u.m(s),d=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function f(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function m(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,p[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,c(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=s=function(){return{wrap:function(e,t,r,n){return u.w(m(e),t,r,n&&n.reverse())},isGeneratorFunction:f,mark:u.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:i,async:function(e,t,r,i,a){return(f(t)?o:n)(m(e),t,r,i,a)},keys:a,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}(Kf);var fp=(0,Kf.exports)(),pp=fp;try{regeneratorRuntime=fp}catch(jy){"object"==typeof globalThis?globalThis.regeneratorRuntime=fp:Function("r","regeneratorRuntime = r")(fp)}const mp=qo(pp);function bp(){return yp.apply(this,arguments)}function yp(){return(yp=qf(mp.mark(function e(){return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.$ACE){e.next=2;break}return e.abrupt("return",window.$ACE);case 2:return e.next=4,hp("//g.alicdn.com/??aliyun/util/".concat("1.2.30","/index.js"));case 4:return e.abrupt("return",window.$ACE);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}window.$ACE_LOADER=bp;const vp={then:function(e){return bp().then(e)}};function hp(e){return gp.apply(this,arguments)}function gp(){return(gp=qf(mp.mark(function e(t){var r,n;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=document.getElementsByTagName("head")[0],(n=document.createElement("script")).setAttribute("type","text/javascript"),n.setAttribute("src",t),r.appendChild(n),e.abrupt("return",new Promise(function(e){n.onload=function(){e()}}));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function wp(e){var t=function(e,t){if("object"!=Of(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Of(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Of(t)?t:t+""}function Op(e,t,r){return(t=wp(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function xp(e,t){if(e){if("string"==typeof e)return Pp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pp(e,t):void 0}}function jp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||xp(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ep=null;function kp(){return Sp.apply(this,arguments)}function Sp(){return(Sp=qf(mp.mark(function e(){return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ep){e.next=2;break}return e.abrupt("return",Ep);case 2:if(!window.__MONITOR__){e.next=5;break}return Ep=new window.__MONITOR__({biz:"adc-core"}),e.abrupt("return",Ep);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _p(e){return Cp.apply(this,arguments)}function Cp(){return(Cp=qf(mp.mark(function e(t){var r;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,kp();case 3:(r=e.sent)&&r.report({level:"warn",message:t});case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Np(){return(Np=qf(mp.mark(function e(t){var r;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,kp();case 3:(r=e.sent)&&r.report({level:"error",message:t});case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Dp(e){return Tp.apply(this,arguments)}function Tp(){return(Tp=qf(mp.mark(function e(t){var r;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kp();case 2:(r=e.sent)&&r.report(t);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Ip=Symbol("flag"),Rp=new Map;function Ap(e,t){var r;Rp.has(e)||Rp.set(e,[]),null===(r=Rp.get(e))||void 0===r||r.push(t)}function Lp(e,t){return t[Ip]={once:!0},Ap(e,t)}function Mp(e,t){if(Rp.has(e))if(t){var r,n=Rp.get(e).indexOf(t);if(-1!==n)null===(r=Rp.get(e))||void 0===r||r.splice(n,1)}else Rp.delete(e)}function zp(e,t,r){if(t=[e.name,t].join(":"),Rp.has(t)){var n=Rp.get(t);n.forEach(function(n){try{n({data:r})}catch(o){Dp({type:"event-emit-error",app:e.name,event:t,error:o.message})}}),Rp.set(t,n.filter(function(e){var t=e[Ip];return!t||!t.once}))}}function Up(e){return function(e){if(Array.isArray(e))return Pp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wp(n.key),n)}}function Vp(e,t,r){return t&&Bp(e.prototype,t),r&&Bp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var $p=/\.aliyun\.com$/.test(location.hostname);function Wp(e){return new Promise(function(t,r){var n=document.createElement("script");n.src=e,$p&&(n.crossOrigin=""),n.onload=t,n.onerror=function(t){Dp({type:"script-load-error",url:e}),r(t)},document.body.appendChild(n)})}var qp=null;function Gp(){return Kp.apply(this,arguments)}function Kp(){return(Kp=qf(mp.mark(function e(){return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.biu){e.next=2;break}return e.abrupt("return");case 2:return qp||(qp=Wp("https://cloud-assets.alicdn.com/alicdn/code/npm/@ali/biu-loader/latest/index.js")),e.next=5,qp;case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Hp=function(e){if(!window.biu){var t="\u9875\u9762\u4e2d\u672a\u5f15\u5165 biu-loader";throw function(e){Np.apply(this,arguments)}(t),new Error(t)}return window.biu.require(e)},Yp=function(){try{return"pre"===new URL(location.href).searchParams.get("adc-app-env")}catch(e){return!1}}(),Jp=[],Qp=null,Zp=new Map;function Xp(e){return em.apply(this,arguments)}function em(){return em=qf(mp.mark(function e(t){var r,n;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="@ali/aliyun-com-adc-app-".concat(t),e.next=3,Gp();case 3:if(!(n=Hp(r))){e.next=6;break}return e.abrupt("return",n);case 6:if(!Zp.has(t)){e.next=11;break}return e.next=9,Zp.get(t);case 9:e.next=14;break;case 11:return Qp?-1===Jp.indexOf(t)&&Jp.push(t):(Jp=[t],Qp=Promise.resolve().then(function(){var e;e=Yp?Promise.all(Jp.map(function(){var e=qf(mp.mark(function e(t){var r;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="https://aliyun-com-air-cloud-assets-er.pre-air-er.taobao.com/adc/app/v2/".concat(t,".js"),e.next=3,Wp(r);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}())):Promise.all(Jp.map(function(){var e=qf(mp.mark(function e(t){var r;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="https://cloud-assets.alicdn.com/adc/app/v2/".concat(t,".js"),e.next=3,Wp(r);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));var t=Up(Jp);return t.forEach(function(e){Zp.set(e,Qp)}),Qp=null,e.then(function(){t.forEach(function(e){Zp.delete(e)})}).catch(function(){t.forEach(function(e){Zp.delete(e)})})})),e.next=14,Qp;case 14:return e.abrupt("return",Hp(r));case 15:case"end":return e.stop()}},e)})),em.apply(this,arguments)}var tm=function(){return Vp(function e(t){Fp(this,e),Op(this,"_subscribe",void 0),t&&(this._subscribe=t)},[{key:"subscribe",value:function(e){var t;return this._subscribe&&(t=this._subscribe({next:function(t){e(t)}})),{unsubscribe:function(){t&&t()}}}}])}(),rm="__property_change__",nm="__app_register__",om="__app_unregister__",im=function(){return Vp(function e(t){Fp(this,e),Op(this,"$options",void 0),Op(this,"$listeners",void 0),Op(this,"$subscriptions",void 0),Op(this,"$isDestructed",!1),this.$options=t,this.$listeners=new Map,this.$subscriptions=[],cm(this)},[{key:"name",get:function(){return this.$options.name}},{key:"priority",get:function(){return"number"==typeof this.$options.priority?this.$options.priority:10}},{key:"destructor",value:(e=qf(mp.mark(function e(){return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.$isDestructed=!0,this.$listeners.forEach(function(e,t){e.forEach(function(e){Mp(t,e)})}),this.$listeners.clear(),this.$subscriptions.forEach(function(e){e.unsubscribe()}),this.$subscriptions=[];case 5:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"$emit",value:function(e,t){this.$isDestructed||zp(this,e,t)}},{key:"$on",value:function(e,t){var r;if(!this.$isDestructed)return this.$listeners.has(e)||this.$listeners.set(e,[]),null===(r=this.$listeners.get(e))||void 0===r||r.push(t),Ap(e,t)}},{key:"$once",value:function(e,t){var r;if(!this.$isDestructed)return this.$listeners.has(e)||this.$listeners.set(e,[]),null===(r=this.$listeners.get(e))||void 0===r||r.push(t),Lp(e,t)}},{key:"$off",value:function(e,t){if(!this.$isDestructed){var r=this.$listeners.get(e);if(r){var n=r.indexOf(t);-1!==n&&r.splice(n,1)}return Mp(e,t)}}},{key:"$watch",value:function(e,t){var r=this;if(!this.$isDestructed){var n=vm(e,t);return new tm(function(e){var t=n.subscribe(function(t){e.next(t)});return r.$subscriptions.push(t),function(){t.unsubscribe();var e=r.$subscriptions.indexOf(t);-1!==e&&r.$subscriptions.splice(e,1)}})}}},{key:"$nextProperty",value:function(e,t){this.$isDestructed||zp(this,rm+e,t)}}]);var e}(),am=new Map;function cm(e){return sm.apply(this,arguments)}function sm(){return(sm=qf(mp.mark(function e(t){var r;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!am.has(t.name)){e.next=17;break}if(r=am.get(t.name),!(t.priority<r.priority)){e.next=11;break}return e.next=8,r.destructor();case 8:zp(r,om),e.next=17;break;case 11:return _p("\u5e94\u7528 ".concat(t.name," \u91cd\u590d\u6ce8\u518c\uff1a")),e.next=16,t.destructor();case 16:return e.abrupt("return");case 17:am.set(t.name,t),zp(t,nm);case 19:case"end":return e.stop()}},e)}))).apply(this,arguments)}function um(e){return am.has(e)}function lm(e){return dm.apply(this,arguments)}function dm(){return dm=qf(mp.mark(function e(t){var r,n,o,i=arguments;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=i.length>1&&void 0!==i[1]?i[1]:{},am.has(t)){e.next=17;break}if(!1!==r.loadIfNotExists){e.next=6;break}return e.abrupt("return",new Promise(function(e){Lp([t,nm].join(":"),function(){var r=am.get(t);e(r)})}));case 6:return e.next=8,Xp(t);case 8:if(n=e.sent){e.next=12;break}throw Dp({type:"app-load-fail",app:t}),new Error("\u5e94\u7528 ".concat(t," \u52a0\u8f7d\u5931\u8d25"));case 12:if(am.has(t)){e.next=17;break}if(new n({name:t}),am.has(t)){e.next=17;break}throw Dp({type:"app-unregister",app:t}),new Error("\u8981\u8c03\u7528\u7684\u5e94\u7528 ".concat(t," \u672a\u6ce8\u518c\uff0c\u53ef\u80fd\u7684\u539f\u56e0\u662f\u5e94\u7528\u5185\u90e8\u5b9e\u4f8b\u5316\u65f6\u5199\u6b7b\u4e86\u5e94\u7528\u540d"));case 17:return o=am.get(t),e.abrupt("return",o);case 19:case"end":return e.stop()}},e)})),dm.apply(this,arguments)}function fm(){return fm=qf(mp.mark(function e(t){var r=arguments;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t&&(t=[t]),!1!==(r.length>1&&void 0!==r[1]?r[1]:{}).register){e.next=7;break}return e.next=5,t.map(function(e){return Xp(e)});case 5:e.next=9;break;case 7:return e.next=9,t.map(function(e){return lm(e)});case 9:case"end":return e.stop()}},e)})),fm.apply(this,arguments)}function pm(e,t){return mm.apply(this,arguments)}function mm(){return(mm=qf(mp.mark(function e(t,r){var n;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lm(t);case 2:return n=e.sent,e.abrupt("return",n[r]);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function bm(e,t){return ym.apply(this,arguments)}function ym(){return ym=qf(mp.mark(function e(t,r){var n,o,i,a=arguments;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>2&&void 0!==a[2]?a[2]:[],e.next=3,lm(t);case 3:if((o=e.sent)[r]){e.next=7;break}throw Dp({type:"method-nofound",app:t,method:r}),new Error("\u5e94\u7528 ".concat(t," \u4e0a\u4e0d\u5b58\u5728\u65b9\u6cd5 ").concat(r));case 7:return e.prev=7,i=o[r].apply(o,Up(n)),e.abrupt("return",i);case 12:e.prev=12,e.t0=e.catch(7),Dp({type:"bridge-call-error",app:t,method:r,params:n,error:e.t0.message});case 15:case"end":return e.stop()}},e,null,[[7,12]])})),ym.apply(this,arguments)}function vm(e,t){return new tm(function(r){um(e)?pm(e,t).then(function(e){r.next(e)}):lm(e);var n="".concat(e,":").concat(rm).concat(t),o=function(e){r.next(e.data)};Ap(n,o);var i="".concat(e,":").concat(nm),a=function(){pm(e,t).then(function(e){r.next(e)})};return Ap(i,a),function(){Mp(n,o),Mp(i,a)}})}var hm=[],gm=document.body;function wm(e,t){if("string"==typeof e){var r=new URL(e);e={protocol:r.protocol,hostname:r.hostname,pathname:r.pathname}}e.protocol&&!/:$/.test(e.protocol)&&(e.protocol+=":"),e.pathname&&(e.pathname=e.pathname.replace(/\/$/g,""));var n=function(r){var n=function(e,t){if(!e)return null;if(e.composedPath)return e.composedPath().find(function(e){return e&&-1!==t.indexOf(e.tagName)});for(var r=e.target;r&&-1===t.indexOf(r.tagName)&&r!==gm;)r=r.parentElement;return r?r===gm?null:r:null}(r,["A"]);if(n&&"A"===n.tagName){var o=n.href;if(!o)return;var i=new URL(o);if(Object.keys(e).some(function(t){var r=i[t];return"pathname"===t&&(r=r.replace(/\/$/g,"")),r!==e[t]}))return;return t(n,i)}};return hm.push(n),function(){var e=hm.indexOf(n);-1!==e&&hm.splice(e,1)}}var Om="__ADC_CORE__",Pm=Symbol("__ADC_CORE_DEBUG__");window[Om]||(!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",r=function(e){var t=e.target;if(t){var r=t.tagName;if(r){var n=window.$$customElementInfos;n&&n[r.toLowerCase()]&&e.originalEvent&&(e=e.originalEvent),hm.some(function(t){return t(e)})&&e.preventDefault()}}};e.addEventListener(t,r)}(window),wm({protocol:"adc"},function(e,t){var r=jp(t.pathname.replace(/^\/\//,"").split("/"),2),n=r[0],o=r[1],i={};return t.searchParams.forEach(function(e,t){i[t]=e}),bm(n,o,[i]),!0}),window[Om]={event:{on:Ap,once:Lp,off:Mp},bridge:{get:pm,call:bm,watch:vm},uriScheme:{register:wm},App:im,getApp:function(e,t){return lm(e,t).then(function(e){return function(e){return new Proxy({},{get:function(t,r){if("on"===r)return function(t,r){return Ap(t=[e.name,t].join(":"),r)};if("off"===r)return function(t,r){return Mp(t=[e.name,t].join(":"),r)};if(/\$$/.test(r))return r=r.replace(/\$$/,""),vm(e.name,r);var n=e[r];return"function"==typeof n?function(){return n.apply(void 0,arguments)}:n}})}(e)})},hasApp:um,preloadApp:function(e){return fm.apply(this,arguments)}},window[Pm]={apps:am,registerApp:cm,loadApp:Xp,PROPERTY_CHANGE_EVENT_PREFIX:rm,APP_REGISTER_EVENT:nm,APP_UNREGISTER_EVENT:om,listeners:Rp,listenFlag:Ip,emit:zp});const xm=window[Om];xm.event;var jm=xm.bridge;xm.uriScheme,xm.App,xm.getApp,xm.hasApp,xm.preloadApp;const Em={common:{tips:"\u6e29\u99a8\u63d0\u793a",goToSubmit:"\u524d\u5f80\u63d0\u4ea4",addToCart:"\u52a0\u5165\u8d2d\u7269\u8f66",directPurchase:"\u76f4\u63a5\u8d2d\u4e70",changeToEnterpriseCert:"\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1"},certify:{personalOnlyPrice:"\u5f53\u524d\u4ef7\u683c\u9650\u4e2a\u4eba\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4e2a\u4eba\u8d26\u53f7\u8d2d\u4e70\u6216\u76f4\u63a5\u8d2d\u4e70\u3002",enterpriseOnlyPriceMobile:"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u6309\u4e2a\u4eba\u7528\u6237\u4ef7\u683c\u76f4\u63a5\u8d2d\u4e70",enterpriseOnlyPrice:"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u5c06\u8be5\u8d26\u53f7\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u3002"},queryPrice:{ramNoPermission:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u63a7\u5236\u53f0\u6388\u6743\uff0c\u9700\u8981\u6388\u6743\u7684Action\u4e3a\uff1abss:QueryPrice",fcNoPermission:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u8d39\u7528\u4e2d\u5fc3\u6388\u6743\uff0c\u9700\u6388\u6743\u7684\u6743\u9650\u70b9code\u4e3a\uff1aqueryprice"},systemDisk:{cloudEfficiency:"\u9ad8\u6548\u4e91\u76d8",cloudEssd:"ESSD\u4e91\u76d8",cloudSsd:"SSD\u4e91\u76d8",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"\u4f01\u4e1a\u4e13\u4eab",newUserOnly:"\u65b0\u4eba\u4e13\u4eab",personalUserOnly:"\u4e2a\u4eba\u4e13\u4eab"},timeUnit:{oneYear:"1\u5e74",twoYears:"2\u5e74",threeYears:"3\u5e74"},activity:{riskControlTip:"\u7cfb\u7edf\u68c0\u6d4b\u5230\u60a8\u7684\u8d26\u53f7\u65e0\u6cd5\u53c2\u52a0\u6b64\u4f18\u60e0\u6d3b\u52a8\uff0c\u60a8\u53ef\u63d0\u4ea4\u6750\u6599\u8fdb\u884c\u7533\u8bc9\uff0c\u7533\u8bc9\u901a\u8fc7\u540e\u53ef\u53c2\u52a0\u6d3b\u52a8"},errors:{fetchGoodByIdError:"fetchGoodById\u51fa\u73b0\u9519\u8bef",getUserInfoError:"getUserInfo\u51fa\u73b0\u9519\u8bef",fetchGoodsError:"fetchGoods\u51fa\u73b0\u9519\u8bef"}};var km=function(e,t){return new URLSearchParams(e).get(t)},Sm=function(){var e=!!navigator.userAgent.toLowerCase().match(/(android|iphone|ipod|windows\sphone)/gm);return{isMobile:e||window.innerWidth<1056,isPhone:e}},_m=window.__LOWCODE_ENV__||{},Cm=location.hostname.indexOf("alibabacloud.com")>0||"alibabacloud"===(null==_m?void 0:_m.tenant);location.hostname.indexOf("pre-");var Nm={en:"en-US",zh:"zh-CN",tc:"zh-TW",de:"de-DE",ja:"ja-JP",ko:"ko-KR",fr:"fr-FR",id:"id-ID",th:"th-TH",vi:"vi-VN",ru:"ru-RU",es:"es-ES",tr:"tr-TR",it:"it-IT"};function Dm(){var e="";e=Cm?"https://alioth-intl.alicdn.com":"https://alioth.alicdn.com";var t=zm();return t&&"zh-CN"!==t&&"zh_CN"!==t&&(e="".concat(e,"/").concat(t)),e}function Tm(){var e=_m;return null!=e&&e.language?null==e?void 0:e.language:function(){var e;if(window.kloud&&null!==(e=window.kloud)&&void 0!==e&&e.lang)return Nm[window.kloud.lang]}()}var Im=function(){return Vp(function e(){Fp(this,e),Op(this,"cache",void 0),window.__good_cache_data||(window.__good_cache_data={}),this.cache=window.__good_cache_data},[{key:"setDelivery",value:function(e,t,r){r?this.cache["_delivery_".concat(e,"_").concat(r)]=t:this.cache["_delivery_".concat(e)]=t}},{key:"getDelivery",value:function(e,t){return t?this.cache["_delivery_".concat(e,"_").concat(t)]:this.cache["_delivery_".concat(e)]}},{key:"setGood",value:function(e,t,r){r?this.cache["_good_".concat(e,"_").concat(r)]=t:this.cache["_good_".concat(e)]=t}},{key:"getGood",value:function(e,t){return t?this.cache["_good_".concat(e,"_").concat(t)]:this.cache["_good_".concat(e)]}}])}();function Rm(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Am(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Am(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Am(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Lm={"zh-CN":Em,"en-US":{common:{tips:"Tips",goToSubmit:"Go to Submit",addToCart:"Add to Cart",directPurchase:"Direct Purchase",changeToEnterpriseCert:"Change to Enterprise Certification"},certify:{personalOnlyPrice:"This price is exclusive for individual customers. You are logged in with an enterprise account. Please switch to a personal account to purchase or purchase directly.",enterpriseOnlyPriceMobile:"This price is exclusive for enterprise customers. You are logged in with a personal account. Please switch to an enterprise account to purchase or purchase at personal user price.",enterpriseOnlyPrice:"This price is exclusive for enterprise customers. You are logged in with a personal account. Please switch to an enterprise account to purchase or change this account to enterprise certification."},queryPrice:{ramNoPermission:"You do not have permission to query prices. Please contact the main account to authorize in the console. The Action to authorize is: bss:QueryPrice",fcNoPermission:"You do not have permission to query prices. Please contact the main account to authorize in the Cost Center. The permission code to authorize is: queryprice"},systemDisk:{cloudEfficiency:"Cloud Efficiency",cloudEssd:"ESSD Cloud Disk",cloudSsd:"SSD Cloud Disk",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"Enterprise Exclusive",newUserOnly:"New User Exclusive",personalUserOnly:"Personal Exclusive"},timeUnit:{oneYear:"1 Year",twoYears:"2 Years",threeYears:"3 Years"},activity:{riskControlTip:"The system detected that your account cannot participate in this promotional activity. You can submit materials for appeal. After the appeal is approved, you can participate in the activity."},errors:{fetchGoodByIdError:"fetchGoodById error occurred",getUserInfoError:"getUserInfo error occurred",fetchGoodsError:"fetchGoods error occurred"}},"zh-TW":{common:{tips:"\u6eab\u99a8\u63d0\u793a",goToSubmit:"\u524d\u5f80\u63d0\u4ea4",addToCart:"\u52a0\u5165\u8cfc\u7269\u8eca",directPurchase:"\u76f4\u63a5\u8cfc\u8cb7",changeToEnterpriseCert:"\u8b8a\u66f4\u70ba\u4f01\u696d\u8a8d\u8b49"},certify:{personalOnlyPrice:"\u7576\u524d\u50f9\u683c\u9650\u500b\u4eba\u5ba2\u6236\u5c08\u4eab\uff0c\u60a8\u767b\u9304\u7684\u5e33\u865f\u70ba\u4f01\u696d\u8a8d\u8b49\u5e33\u865f\uff0c\u8acb\u66f4\u63db\u500b\u4eba\u5e33\u865f\u8cfc\u8cb7\u6216\u76f4\u63a5\u8cfc\u8cb7\u3002",enterpriseOnlyPriceMobile:"\u7576\u524d\u50f9\u683c\u9650\u4f01\u696d\u5ba2\u6236\u5c08\u4eab\uff0c\u60a8\u767b\u9304\u7684\u5e33\u865f\u70ba\u500b\u4eba\u5e33\u865f\uff0c\u8acb\u66f4\u63db\u4f01\u696d\u5e33\u865f\u8cfc\u8cb7\uff0c\u6216\u6309\u500b\u4eba\u7528\u6236\u50f9\u683c\u76f4\u63a5\u8cfc\u8cb7",enterpriseOnlyPrice:"\u7576\u524d\u50f9\u683c\u9650\u4f01\u696d\u5ba2\u6236\u5c08\u4eab\uff0c\u60a8\u767b\u9304\u7684\u5e33\u865f\u70ba\u500b\u4eba\u8a8d\u8b49\u5e33\u865f\uff0c\u8acb\u66f4\u63db\u4f01\u696d\u5e33\u865f\u8cfc\u8cb7\uff0c\u6216\u5c07\u8a72\u5e33\u865f\u8b8a\u66f4\u70ba\u4f01\u696d\u8a8d\u8b49\u3002"},queryPrice:{ramNoPermission:"\u60a8\u6c92\u6709\u6b0a\u9650\u8a62\u50f9\uff0c\u8acb\u806f\u7e6b\u4e3b\u5e33\u865f\u524d\u5f80\u63a7\u5236\u53f0\u6388\u6b0a\uff0c\u9700\u8981\u6388\u6b0a\u7684Action\u70ba\uff1abss:QueryPrice",fcNoPermission:"\u60a8\u6c92\u6709\u6b0a\u9650\u8a62\u50f9\uff0c\u8acb\u806f\u7e6b\u4e3b\u5e33\u865f\u524d\u5f80\u8cbb\u7528\u4e2d\u5fc3\u6388\u6b0a\uff0c\u9700\u6388\u6b0a\u7684\u6b0a\u9650\u9edecode\u70ba\uff1aqueryprice"},systemDisk:{cloudEfficiency:"\u9ad8\u6548\u96f2\u76e4",cloudEssd:"ESSD\u96f2\u76e4",cloudSsd:"SSD\u96f2\u76e4",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"\u4f01\u696d\u5c08\u4eab",newUserOnly:"\u65b0\u4eba\u5c08\u4eab",personalUserOnly:"\u500b\u4eba\u5c08\u4eab"},timeUnit:{oneYear:"1\u5e74",twoYears:"2\u5e74",threeYears:"3\u5e74"},activity:{riskControlTip:"\u7cfb\u7d71\u6aa2\u6e2c\u5230\u60a8\u7684\u5e33\u865f\u7121\u6cd5\u53c3\u52a0\u6b64\u512a\u60e0\u6d3b\u52d5\uff0c\u60a8\u53ef\u63d0\u4ea4\u6750\u6599\u9032\u884c\u7533\u8a34\uff0c\u7533\u8a34\u901a\u904e\u5f8c\u53ef\u53c3\u52a0\u6d3b\u52d5"},errors:{fetchGoodByIdError:"fetchGoodById\u51fa\u73fe\u932f\u8aa4",getUserInfoError:"getUserInfo\u51fa\u73fe\u932f\u8aa4",fetchGoodsError:"fetchGoods\u51fa\u73fe\u932f\u8aa4"}},"de-DE":{common:{tips:"Hinweis",goToSubmit:"Zur Einreichung",addToCart:"In den Warenkorb",directPurchase:"Direkt kaufen",changeToEnterpriseCert:"Zu Unternehmenszertifizierung wechseln"},certify:{personalOnlyPrice:"Dieser Preis ist exklusiv f\xfcr Privatkunden. Sie sind mit einem Unternehmenskonto angemeldet. Bitte wechseln Sie zu einem Privatkonto zum Kaufen oder kaufen Sie direkt.",enterpriseOnlyPriceMobile:"Dieser Preis ist exklusiv f\xfcr Unternehmenskunden. Sie sind mit einem Privatkonto angemeldet. Bitte wechseln Sie zu einem Unternehmenskonto zum Kaufen oder kaufen Sie zum Privatkundenpreis direkt.",enterpriseOnlyPrice:"Dieser Preis ist exklusiv f\xfcr Unternehmenskunden. Sie sind mit einem Privatkonto angemeldet. Bitte wechseln Sie zu einem Unternehmenskonto zum Kaufen oder \xe4ndern Sie dieses Konto in eine Unternehmenszertifizierung."},queryPrice:{ramNoPermission:"Sie haben keine Berechtigung zur Preisabfrage. Bitte kontaktieren Sie das Hauptkonto zur Autorisierung in der Konsole. Die zu autorisierende Action ist: bss:QueryPrice",fcNoPermission:"Sie haben keine Berechtigung zur Preisabfrage. Bitte kontaktieren Sie das Hauptkonto zur Autorisierung im Kostencenter. Der zu autorisierende Berechtigungscode ist: queryprice"},systemDisk:{cloudEfficiency:"Cloud Efficiency",cloudEssd:"ESSD Cloud Disk",cloudSsd:"SSD Cloud Disk",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"Nur f\xfcr Unternehmen",newUserOnly:"Nur f\xfcr neue Benutzer",personalUserOnly:"Nur f\xfcr Privatpersonen"},timeUnit:{oneYear:"1 Jahr",twoYears:"2 Jahre",threeYears:"3 Jahre"},activity:{riskControlTip:"Das System hat erkannt, dass Ihr Konto nicht an dieser Werbeaktion teilnehmen kann. Sie k\xf6nnen Materialien zur Beschwerde einreichen. Nach Genehmigung der Beschwerde k\xf6nnen Sie an der Aktivit\xe4t teilnehmen."},errors:{fetchGoodByIdError:"Fehler bei fetchGoodById aufgetreten",getUserInfoError:"Fehler bei getUserInfo aufgetreten",fetchGoodsError:"Fehler bei fetchGoods aufgetreten"}},"ja-JP":{common:{tips:"\u3054\u6ce8\u610f",goToSubmit:"\u9001\u4fe1\u3078",addToCart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",directPurchase:"\u76f4\u63a5\u8cfc\u5165",changeToEnterpriseCert:"\u4f01\u696d\u8a8d\u8a3c\u306b\u5909\u66f4"},certify:{personalOnlyPrice:"\u3053\u306e\u4fa1\u683c\u306f\u500b\u4eba\u9867\u5ba2\u5c02\u7528\u3067\u3059\u3002\u73fe\u5728\u4f01\u696d\u8a8d\u8a3c\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u307e\u3059\u3002\u500b\u4eba\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u5207\u308a\u66ff\u3048\u3066\u8cfc\u5165\u3059\u308b\u304b\u3001\u76f4\u63a5\u8cfc\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002",enterpriseOnlyPriceMobile:"\u3053\u306e\u4fa1\u683c\u306f\u4f01\u696d\u9867\u5ba2\u5c02\u7528\u3067\u3059\u3002\u73fe\u5728\u500b\u4eba\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u307e\u3059\u3002\u4f01\u696d\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u5207\u308a\u66ff\u3048\u3066\u8cfc\u5165\u3059\u308b\u304b\u3001\u500b\u4eba\u30e6\u30fc\u30b6\u30fc\u4fa1\u683c\u3067\u76f4\u63a5\u8cfc\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002",enterpriseOnlyPrice:"\u3053\u306e\u4fa1\u683c\u306f\u4f01\u696d\u9867\u5ba2\u5c02\u7528\u3067\u3059\u3002\u73fe\u5728\u500b\u4eba\u8a8d\u8a3c\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u307e\u3059\u3002\u4f01\u696d\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u5207\u308a\u66ff\u3048\u3066\u8cfc\u5165\u3059\u308b\u304b\u3001\u3053\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f01\u696d\u8a8d\u8a3c\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002"},queryPrice:{ramNoPermission:"\u4fa1\u683c\u7167\u4f1a\u306e\u6a29\u9650\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u30e1\u30a4\u30f3\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u9023\u7d61\u3057\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u8a8d\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u8a8d\u8a3c\u304c\u5fc5\u8981\u306aAction\u306f\uff1abss:QueryPrice",fcNoPermission:"\u4fa1\u683c\u7167\u4f1a\u306e\u6a29\u9650\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u30e1\u30a4\u30f3\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u9023\u7d61\u3057\u3066\u30b3\u30b9\u30c8\u30bb\u30f3\u30bf\u30fc\u3067\u8a8d\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u8a8d\u8a3c\u304c\u5fc5\u8981\u306a\u6a29\u9650\u30b3\u30fc\u30c9\u306f\uff1aqueryprice"},systemDisk:{cloudEfficiency:"\u30af\u30e9\u30a6\u30c9\u52b9\u7387\u30c7\u30a3\u30b9\u30af",cloudEssd:"ESSD\u30af\u30e9\u30a6\u30c9\u30c7\u30a3\u30b9\u30af",cloudSsd:"SSD\u30af\u30e9\u30a6\u30c9\u30c7\u30a3\u30b9\u30af",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"\u4f01\u696d\u5c02\u7528",newUserOnly:"\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u5c02\u7528",personalUserOnly:"\u500b\u4eba\u5c02\u7528"},timeUnit:{oneYear:"1\u5e74",twoYears:"2\u5e74",threeYears:"3\u5e74"},activity:{riskControlTip:"\u30b7\u30b9\u30c6\u30e0\u304c\u691c\u51fa\u3057\u305f\u3068\u3053\u308d\u3001\u304a\u5ba2\u69d8\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u3053\u306e\u30d7\u30ed\u30e2\u30fc\u30b7\u30e7\u30f3\u6d3b\u52d5\u306b\u53c2\u52a0\u3067\u304d\u307e\u305b\u3093\u3002\u7533\u3057\u7acb\u3066\u8cc7\u6599\u3092\u63d0\u51fa\u3067\u304d\u307e\u3059\u3002\u7533\u3057\u7acb\u3066\u304c\u627f\u8a8d\u3055\u308c\u308b\u3068\u3001\u6d3b\u52d5\u306b\u53c2\u52a0\u3067\u304d\u307e\u3059\u3002"},errors:{fetchGoodByIdError:"fetchGoodById\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",getUserInfoError:"getUserInfo\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",fetchGoodsError:"fetchGoods\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f"}},"ko-KR":{common:{tips:"\uc548\ub0b4",goToSubmit:"\uc81c\ucd9c\ud558\uae30",addToCart:"\uc7a5\ubc14\uad6c\ub2c8\uc5d0 \ucd94\uac00",directPurchase:"\uc9c1\uc811 \uad6c\ub9e4",changeToEnterpriseCert:"\uae30\uc5c5 \uc778\uc99d\uc73c\ub85c \ubcc0\uacbd"},certify:{personalOnlyPrice:"\uc774 \uac00\uaca9\uc740 \uac1c\uc778 \uace0\uac1d \uc804\uc6a9\uc785\ub2c8\ub2e4. \ud604\uc7ac \uae30\uc5c5 \uc778\uc99d \uacc4\uc815\uc73c\ub85c \ub85c\uadf8\uc778\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uac1c\uc778 \uacc4\uc815\uc73c\ub85c \uc804\ud658\ud558\uc5ec \uad6c\ub9e4\ud558\uac70\ub098 \uc9c1\uc811 \uad6c\ub9e4\ud558\uc138\uc694.",enterpriseOnlyPriceMobile:"\uc774 \uac00\uaca9\uc740 \uae30\uc5c5 \uace0\uac1d \uc804\uc6a9\uc785\ub2c8\ub2e4. \ud604\uc7ac \uac1c\uc778 \uacc4\uc815\uc73c\ub85c \ub85c\uadf8\uc778\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uae30\uc5c5 \uacc4\uc815\uc73c\ub85c \uc804\ud658\ud558\uc5ec \uad6c\ub9e4\ud558\uac70\ub098 \uac1c\uc778 \uc0ac\uc6a9\uc790 \uac00\uaca9\uc73c\ub85c \uc9c1\uc811 \uad6c\ub9e4\ud558\uc138\uc694.",enterpriseOnlyPrice:"\uc774 \uac00\uaca9\uc740 \uae30\uc5c5 \uace0\uac1d \uc804\uc6a9\uc785\ub2c8\ub2e4. \ud604\uc7ac \uac1c\uc778 \uc778\uc99d \uacc4\uc815\uc73c\ub85c \ub85c\uadf8\uc778\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uae30\uc5c5 \uacc4\uc815\uc73c\ub85c \uc804\ud658\ud558\uc5ec \uad6c\ub9e4\ud558\uac70\ub098 \uc774 \uacc4\uc815\uc744 \uae30\uc5c5 \uc778\uc99d\uc73c\ub85c \ubcc0\uacbd\ud558\uc138\uc694."},queryPrice:{ramNoPermission:"\uac00\uaca9 \uc870\ud68c \uad8c\ud55c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4. \uba54\uc778 \uacc4\uc815\uc5d0 \uc5f0\ub77d\ud558\uc5ec \ucf58\uc194\uc5d0\uc11c \uad8c\ud55c\uc744 \ubd80\uc5ec\ud558\uc138\uc694. \uad8c\ud55c\uc744 \ubd80\uc5ec\ud574\uc57c \ud558\ub294 Action\uc740: bss:QueryPrice",fcNoPermission:"\uac00\uaca9 \uc870\ud68c \uad8c\ud55c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4. \uba54\uc778 \uacc4\uc815\uc5d0 \uc5f0\ub77d\ud558\uc5ec \ube44\uc6a9 \uc13c\ud130\uc5d0\uc11c \uad8c\ud55c\uc744 \ubd80\uc5ec\ud558\uc138\uc694. \uad8c\ud55c\uc744 \ubd80\uc5ec\ud574\uc57c \ud558\ub294 \uad8c\ud55c \ucf54\ub4dc\ub294: queryprice"},systemDisk:{cloudEfficiency:"\ud074\ub77c\uc6b0\ub4dc \ud6a8\uc728 \ub514\uc2a4\ud06c",cloudEssd:"ESSD \ud074\ub77c\uc6b0\ub4dc \ub514\uc2a4\ud06c",cloudSsd:"SSD \ud074\ub77c\uc6b0\ub4dc \ub514\uc2a4\ud06c",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"\uae30\uc5c5 \uc804\uc6a9",newUserOnly:"\uc2e0\uaddc \uc0ac\uc6a9\uc790 \uc804\uc6a9",personalUserOnly:"\uac1c\uc778 \uc804\uc6a9"},timeUnit:{oneYear:"1\ub144",twoYears:"2\ub144",threeYears:"3\ub144"},activity:{riskControlTip:"\uc2dc\uc2a4\ud15c\uc5d0\uc11c \uadc0\ud558\uc758 \uacc4\uc815\uc774 \uc774 \ud504\ub85c\ubaa8\uc158 \ud65c\ub3d9\uc5d0 \ucc38\uc5ec\ud560 \uc218 \uc5c6\uc74c\uc744 \uac10\uc9c0\ud588\uc2b5\ub2c8\ub2e4. \uc774\uc758 \uc81c\uae30 \uc790\ub8cc\ub97c \uc81c\ucd9c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\uc758 \uc81c\uae30\uac00 \uc2b9\uc778\ub418\uba74 \ud65c\ub3d9\uc5d0 \ucc38\uc5ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."},errors:{fetchGoodByIdError:"fetchGoodById \uc624\ub958 \ubc1c\uc0dd",getUserInfoError:"getUserInfo \uc624\ub958 \ubc1c\uc0dd",fetchGoodsError:"fetchGoods \uc624\ub958 \ubc1c\uc0dd"}},"fr-FR":{common:{tips:"Conseil",goToSubmit:"Aller \xe0 la soumission",addToCart:"Ajouter au panier",directPurchase:"Achat direct",changeToEnterpriseCert:"Changer en certification entreprise"},certify:{personalOnlyPrice:"Ce prix est exclusif aux clients individuels. Vous \xeates connect\xe9 avec un compte entreprise. Veuillez passer \xe0 un compte personnel pour acheter ou acheter directement.",enterpriseOnlyPriceMobile:"Ce prix est exclusif aux clients entreprise. Vous \xeates connect\xe9 avec un compte personnel. Veuillez passer \xe0 un compte entreprise pour acheter ou acheter au prix utilisateur personnel.",enterpriseOnlyPrice:"Ce prix est exclusif aux clients entreprise. Vous \xeates connect\xe9 avec un compte personnel. Veuillez passer \xe0 un compte entreprise pour acheter ou changer ce compte en certification entreprise."},queryPrice:{ramNoPermission:"Vous n'avez pas la permission de consulter les prix. Veuillez contacter le compte principal pour autoriser dans la console. L'Action \xe0 autoriser est : bss:QueryPrice",fcNoPermission:"Vous n'avez pas la permission de consulter les prix. Veuillez contacter le compte principal pour autoriser dans le Centre des co\xfbts. Le code de permission \xe0 autoriser est : queryprice"},systemDisk:{cloudEfficiency:"Disque Cloud Efficiency",cloudEssd:"Disque Cloud ESSD",cloudSsd:"Disque Cloud SSD",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"Exclusif entreprise",newUserOnly:"Exclusif nouveaux utilisateurs",personalUserOnly:"Exclusif personnel"},timeUnit:{oneYear:"1 an",twoYears:"2 ans",threeYears:"3 ans"},activity:{riskControlTip:"Le syst\xe8me a d\xe9tect\xe9 que votre compte ne peut pas participer \xe0 cette activit\xe9 promotionnelle. Vous pouvez soumettre des documents pour faire appel. Une fois l'appel approuv\xe9, vous pouvez participer \xe0 l'activit\xe9."},errors:{fetchGoodByIdError:"Erreur fetchGoodById survenue",getUserInfoError:"Erreur getUserInfo survenue",fetchGoodsError:"Erreur fetchGoods survenue"}},"ru-RU":{common:{tips:"\u0421\u043e\u0432\u0435\u0442",goToSubmit:"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435",addToCart:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443",directPurchase:"\u041f\u0440\u044f\u043c\u0430\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0430",changeToEnterpriseCert:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e"},certify:{personalOnlyPrice:"\u042d\u0442\u0430 \u0446\u0435\u043d\u0430 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u0412\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u043d\u0430 \u043b\u0438\u0447\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438\u043b\u0438 \u043a\u0443\u043f\u0438\u0442\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e.",enterpriseOnlyPriceMobile:"\u042d\u0442\u0430 \u0446\u0435\u043d\u0430 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u0412\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u043b\u0438\u0447\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438\u043b\u0438 \u043a\u0443\u043f\u0438\u0442\u0435 \u043f\u043e \u0446\u0435\u043d\u0435 \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.",enterpriseOnlyPrice:"\u042d\u0442\u0430 \u0446\u0435\u043d\u0430 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u0412\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u043b\u0438\u0447\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e."},queryPrice:{ramNoPermission:"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0446\u0435\u043d. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438. \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438: bss:QueryPrice",fcNoPermission:"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0446\u0435\u043d. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0426\u0435\u043d\u0442\u0440\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432. \u041a\u043e\u0434 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438: queryprice"},systemDisk:{cloudEfficiency:"\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a Efficiency",cloudEssd:"\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a ESSD",cloudSsd:"\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a SSD",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"\u0422\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0439",newUserOnly:"\u0422\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439",personalUserOnly:"\u0422\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u043b\u0438\u0446"},timeUnit:{oneYear:"1 \u0433\u043e\u0434",twoYears:"2 \u0433\u043e\u0434\u0430",threeYears:"3 \u0433\u043e\u0434\u0430"},activity:{riskControlTip:"\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0430, \u0447\u0442\u043e \u0432\u0430\u0448 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u043e\u0439 \u0430\u043a\u0446\u0438\u0438. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0430\u0442\u044c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0434\u043b\u044f \u0430\u043f\u0435\u043b\u043b\u044f\u0446\u0438\u0438. \u041f\u043e\u0441\u043b\u0435 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u044f \u0430\u043f\u0435\u043b\u043b\u044f\u0446\u0438\u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0430\u043a\u0446\u0438\u0438."},errors:{fetchGoodByIdError:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 fetchGoodById",getUserInfoError:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 getUserInfo",fetchGoodsError:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 fetchGoods"}},"es-ES":{common:{tips:"Consejo",goToSubmit:"Ir a enviar",addToCart:"A\xf1adir al carrito",directPurchase:"Compra directa",changeToEnterpriseCert:"Cambiar a certificaci\xf3n empresarial"},certify:{personalOnlyPrice:"Este precio es exclusivo para clientes individuales. Ha iniciado sesi\xf3n con una cuenta empresarial. Por favor, cambie a una cuenta personal para comprar o compre directamente.",enterpriseOnlyPriceMobile:"Este precio es exclusivo para clientes empresariales. Ha iniciado sesi\xf3n con una cuenta personal. Por favor, cambie a una cuenta empresarial para comprar o compre al precio de usuario personal.",enterpriseOnlyPrice:"Este precio es exclusivo para clientes empresariales. Ha iniciado sesi\xf3n con una cuenta personal. Por favor, cambie a una cuenta empresarial para comprar o cambie esta cuenta a certificaci\xf3n empresarial."},queryPrice:{ramNoPermission:"No tiene permiso para consultar precios. Por favor, contacte con la cuenta principal para autorizar en la consola. La Acci\xf3n a autorizar es: bss:QueryPrice",fcNoPermission:"No tiene permiso para consultar precios. Por favor, contacte con la cuenta principal para autorizar en el Centro de Costes. El c\xf3digo de permiso a autorizar es: queryprice"},systemDisk:{cloudEfficiency:"Disco Cloud Efficiency",cloudEssd:"Disco Cloud ESSD",cloudSsd:"Disco Cloud SSD",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"Exclusivo para empresas",newUserOnly:"Exclusivo para nuevos usuarios",personalUserOnly:"Exclusivo para particulares"},timeUnit:{oneYear:"1 a\xf1o",twoYears:"2 a\xf1os",threeYears:"3 a\xf1os"},activity:{riskControlTip:"El sistema ha detectado que su cuenta no puede participar en esta actividad promocional. Puede enviar materiales para apelar. Una vez aprobada la apelaci\xf3n, puede participar en la actividad."},errors:{fetchGoodByIdError:"Error en fetchGoodById",getUserInfoError:"Error en getUserInfo",fetchGoodsError:"Error en fetchGoods"}},"id-ID":{common:{tips:"Tips",goToSubmit:"Pergi ke kirim",addToCart:"Tambahkan ke keranjang",directPurchase:"Beli langsung",changeToEnterpriseCert:"Ubah ke sertifikasi perusahaan"},certify:{personalOnlyPrice:"Harga ini eksklusif untuk pelanggan individu. Anda masuk dengan akun perusahaan. Silakan beralih ke akun pribadi untuk membeli atau beli langsung.",enterpriseOnlyPriceMobile:"Harga ini eksklusif untuk pelanggan perusahaan. Anda masuk dengan akun pribadi. Silakan beralih ke akun perusahaan untuk membeli atau beli dengan harga pengguna pribadi.",enterpriseOnlyPrice:"Harga ini eksklusif untuk pelanggan perusahaan. Anda masuk dengan akun pribadi. Silakan beralih ke akun perusahaan untuk membeli atau ubah akun ini menjadi sertifikasi perusahaan."},queryPrice:{ramNoPermission:"Anda tidak memiliki izin untuk mengkueri harga. Silakan hubungi akun utama untuk memberikan otorisasi di konsol. Tindakan yang perlu diotorisasi adalah: bss:QueryPrice",fcNoPermission:"Anda tidak memiliki izin untuk mengkueri harga. Silakan hubungi akun utama untuk memberikan otorisasi di Pusat Biaya. Kode izin yang perlu diotorisasi adalah: queryprice"},systemDisk:{cloudEfficiency:"Cloud Efficiency Disk",cloudEssd:"ESSD Cloud Disk",cloudSsd:"SSD Cloud Disk",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"Eksklusif Perusahaan",newUserOnly:"Eksklusif Pengguna Baru",personalUserOnly:"Eksklusif Pribadi"},timeUnit:{oneYear:"1 tahun",twoYears:"2 tahun",threeYears:"3 tahun"},activity:{riskControlTip:"Sistem mendeteksi bahwa akun Anda tidak dapat berpartisipasi dalam aktivitas promosi ini. Anda dapat mengirimkan materi untuk banding. Setelah banding disetujui, Anda dapat berpartisipasi dalam aktivitas."},errors:{fetchGoodByIdError:"Terjadi kesalahan fetchGoodById",getUserInfoError:"Terjadi kesalahan getUserInfo",fetchGoodsError:"Terjadi kesalahan fetchGoods"}},zh_CN:Em},Mm=null;function zm(){return function(){if(null===Mm){var e=Tm();Mm=e&&e in Lm?e:"zh-CN"}return Mm}()}function Um(e,t){var r,n=Lm[zm()]||Lm["zh-CN"],o=Rm(e.split("."));try{for(o.s();!(r=o.n()).done;){var i=r.value;if(!n||"object"!==Of(n)||!(i in n))return void 0!==t?t:e;n=n[i]}}catch(xy){o.e(xy)}finally{o.f()}return"string"==typeof n?n:void 0!==t?t:e}var Fm=function(){return{RAM_USER_HAS_NOT_FOR_PRICE:Um("queryPrice.ramNoPermission"),FC_USER_HAS_NOT_FOR_PRICE:Um("queryPrice.fcNoPermission")}},Bm=function(){return{cloud_efficiency:Um("systemDisk.cloudEfficiency"),cloud_essd:Um("systemDisk.cloudEssd"),cloud_ssd:Um("systemDisk.cloudSsd"),cloud_essd_entry:Um("systemDisk.cloudEssdEntry"),cloud_auto:Um("systemDisk.cloudAuto")}},Vm=function(){return{"12:Month":Um("timeUnit.oneYear"),"24:Month":Um("timeUnit.twoYears"),"36:Month":Um("timeUnit.threeYears")}};Fm(),Bm(),Um("crowdTag.enterpriseUserOnly"),Um("crowdTag.newUserOnly"),Um("crowdTag.personalUserOnly"),Vm();var $m="\xa5",Wm="".concat($m,"***"),qm=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(void 0===e)return"";var r=Number(e);return(Math.round(r*Math.pow(10,t-2))/Math.pow(10,t)).toFixed(t)},Gm=function(e){var t=e.unit,r=e.digital,n=e.money,o=e.unitCurrency,i=void 0===o?$m:o,a=e.noPermission,c=void 0!==a&&a,s=e.ignorePermission,u=void 0!==s&&s,l=e.defaultCondition,d=void 0===l?function(){}:l;return c&&!u?Wm:[void 0,null].includes(n)||d()?"":function(e){var t=e.currency,r=void 0===t?$m:t,n=e.money,o=void 0===n?"":n,i=e.unit,a=void 0===i?"":i;return"".concat(r).concat(o).concat(a)}({money:qm(n,r),unit:t,currency:i})},Km=function(e){var t=e.articleItemResults,r=0,n=0,o=0;return t.forEach(function(e){e.price&&2!==e.chargeType&&e.price.discountedPrice>-1&&(r||(r=0),n||(n=0),r+=e.price.discountedPrice||0,n+=e.price.totalPrice||0,o+=e.price.discount||0)}),{discountedPrice:r,totalPrice:n,discount:o}},Hm=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o=t.code,i=t.price,a=t.priceAdjustTime,c=(null==t?void 0:t.depreciateInfo)||{},s=r,u=null==e?void 0:e.isPackage,l=null==e?void 0:e.isPostPay,d=null==e?void 0:e.isResourcePackage;if(!(u||i&&void 0!==i.discountedPrice))return{};l&&i.unit&&(s=i.unit.replace("\u5143","")),d&&(s="");var f=null,p=null,m=0,b=null;if(u){var y=t.articleItemResults,v=Km({articleItemResults:void 0===y?[]:y});f=v.discountedPrice,p=v.totalPrice,m=v.discount}else p=i.totalPrice,f=i.discountedPrice,m=i.discount,b=i.channelPrice;var h=Gm({ignorePermission:!0,noPermission:!!o,money:p,unit:s,digital:n,unitCurrency:null==i?void 0:i.unitCurrency}),g=Gm({noPermission:!!o,money:f,unit:s,digital:n,unitCurrency:null==i?void 0:i.unitCurrency}),w=Gm({noPermission:o&&b,money:b,unit:s,digital:n,unitCurrency:null==i?void 0:i.unitCurrency}),O=Gm({ignorePermission:!0,money:c.listPrice,unit:s,digital:n,unitCurrency:null==i?void 0:i.unitCurrency,defaultCondition:function(){return c.listPrice<=0}}),P=i.cheapStandAmount,x=Gm({ignorePermission:!0,money:P,unit:s,digital:n,unitCurrency:null==i?void 0:i.unitCurrency,defaultCondition:function(){return P<=0}}),j=void 0!==c.cheapRate&&null!==c.cheapRate?"".concat(Math.round(1e4*c.cheapRate)/100,"%"):"",E=Gm({ignorePermission:!0,money:m,unit:s,digital:n,unitCurrency:null==i?void 0:i.unitCurrency,defaultCondition:function(){return m<=0}}),k=Fm();return{dailyPrice:h,promotionPrice:g,discount:E,hasDiscount:m>0,queryFailCode:o||"",codeContent:k[o],channelPrice:w,listPrice:O,cheapStandAmount:x,cheapRate:j,isContractActivity:c.isContractActivity||!1,priceAdjustTime:a}},Ym=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$m;if(!e)return{};var r=(e.indexOf(t),t),n=e.split(r),o=(n[1]||n[0]).split("/"),i=o[0].split("."),a="";return o&&o.length>0&&o.splice(0,1),o&&o.length>0&&(a=o.join("/")),{symbol:t,integer:i[0]||"0",decimal:i[1]||"00",unit:a}};function Jm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$m;if(!e)return"";var r=jp(e.match(/^(\D*)(\d+)(\.\d+)?(.*)$/),5),n=r[1],o=r[2],i=void 0===o?"":o,a=r[3],c=void 0===a?".00":a,s=r[4],u=void 0===s?"":s,l=u;if(/\//.test(l)){var d=(l=u.replace(/\s/g,"").replace(/^\//,"")).split("/");d.length>2&&(d.length=2),l=d.join("/")}var f="";return i&&(f=(n||t)+i+c),l&&(f+="/".concat(l)),/\/\u5143/.test(f)&&(f=f.replace(/\/\u5143/,"")),f}function Qm(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Zm=function(e){return e.DailyDiscount="dailyDiscount",e.NinetyNinePrice="99Price",e.DoubleDiscount="doubleDiscount",e}({}),Xm=function(e){return e.DoubleDiscount="doubleDiscount",e}({});function eb(e){return tb.apply(this,arguments)}function tb(){return tb=qf(mp.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,f,p,b,y,v,h,g,w,O,P,x,j,E,k,S,_,C,N,D,T,I,R,A,L=arguments;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=L.length>2?L[2]:void 0,a=!(L.length>3&&void 0!==L[3])||L[3],c=L.length>4?L[4]:void 0,(o=L.length>1&&void 0!==L[1]?L[1]:{})||(o={}),s=t.isBuy,u=t.buyUrl,l=(null===(r=o)||void 0===r?void 0:r.btnType)||"pay",d=(null===(n=o)||void 0===n?void 0:n.orderParams)||{},1!==s||!u){e.next=1;break}return window.open(u,"_blank")||setTimeout(function(){window.open(u,"_blank")},50),e.abrupt("return");case 1:if(Cm){e.next=11;break}if(f=t._promationPriceResult,p=(void 0===f?{}:f).needCertifiedType,"individual_business"===(b=null==i?void 0:i.certifyAccountType)&&(b="enterprise"),!a||!p||"all"===p||b===p||!c&&!window.__ALIYUN_EXPERIENCE_ELEMENT__){e.next=4;break}return y="enterprise"===p,v=Sm().isMobile,h=Um("certify.personalOnlyPrice"),y&&(h=Um(v?"certify.enterpriseOnlyPriceMobile":"certify.enterpriseOnlyPrice")),e.prev=2,g=c||window.__ALIYUN_EXPERIENCE_ELEMENT__,w=g.Dialog,O=g.Button,P=w.show({v2:!0,title:Um("common.tips"),content:h,footer:m.createElement("div",{className:"marketing-goods-dialog-footer"},y&&!v&&m.createElement("a",{href:"https://account.console.aliyun.com/v2/?#/authc/home",target:"_blank",style:{marginRight:10}},m.createElement(O,{type:"primary"},Um("common.changeToEnterpriseCert"))),m.createElement(O,{type:y&&v?"primary":"secondary",onClick:function(){P.hide(),eb(t,o,i,!1,c)}},Um("cart"===l?"common.addToCart":"common.directPurchase")))}),e.abrupt("return");case 3:e.prev=3,e.catch(2);case 4:if(x=t._promationPriceResult.promotionResults,!((j=Object.keys(x))&&j.length>0)){e.next=11;break}return e.prev=5,E=[],j.forEach(function(e){var t,r=x[e],n=null==r||null===(t=r.promotionOption)||void 0===t||null===(t=t.activityExtInfo)||void 0===t?void 0:t.activityId;n&&E.push(n)}),E=Array.from(new Set(E)),k=c||window.__ALIYUN_EXPERIENCE_ELEMENT__,S=k.Dialog,_=k.Button,e.next=6,vp;case 6:return C=e.sent,e.next=7,C.get("Promotion");case 7:return N=e.sent,D=N.Verify,T=km(window.location.search,"preVerify"),e.next=8,Promise.all(E.map(function(e){return D.queryRisk(e,"1"===T)}));case 8:if(!(e.sent.some(function(e){return!e.status})&&S&&_)){e.next=9;break}return I=S.show({v2:!0,title:Um("common.tips"),content:m.createElement("span",null,Um("activity.riskControlTip")),footer:m.createElement("div",{className:"marketing-goods-dialog-footer"},m.createElement(_,{type:"primary",onClick:function(){I.hide(),window.open("https://smartservice.console.aliyun.com/service/self-service-center/search?id=27874&mode=toolPage&trackFrom=topic-MICRO_APP","_blank")}},Um("common.goToSubmit")))}),e.abrupt("return");case 9:e.next=11;break;case 10:e.prev=10,e.catch(5);case 11:if(t.product){e.next=12;break}return e.next=12,t.init();case 12:if(!(R=t.children)||!R.length){e.next=13;break}return e.next=13,Promise.all(R.map(function(){var e=qf(mp.mark(function e(t){var r;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=0,t&&t.selectedCardIndex&&(r=t.selectedCardIndex),!t||t.product){e.next=1;break}return e.next=1,t.init();case 1:t&&t.product&&t.product.setSKU(r);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 13:if(A={id:t?"".concat(0,".",t.goodsId,".").concat(t.goodsId):null,bizChannel:"",fromApp:"",orderParams:d,buttons:[l],moduleVersion:3},!t.isPackage){e.next=15;break}return t.product.setPackageName(t.name),t.product.setPackageGoods(R),e.next=14,t.product.startPackagePopUpBuy(A);case 14:e.next=16;break;case 15:return t.product.setSKU(t.selectedCardIndex),e.next=16,t.product.popUpBuy(A);case 16:case"end":return e.stop()}},e,null,[[2,3],[5,10]])})),tb.apply(this,arguments)}var rb=function(e){return e.FlashSale="flash_sale_activity_id",e.LowPrice="low_price_activity_id",e}({}),nb=function(e){return e[e.PostPay=2]="PostPay",e[e.PrePay=1]="PrePay",e}({});function ob(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var ib=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).settlement;if(e){var t=null==e?void 0:e.settlementCurrency;if(t)return"USD"===t?"$":$m}return $m},ab=function(e){var t=e.good,r=e.order,n=void 0===r?0:r,o=t.commodityCode,i=t.goodsId,a=t.id;return"".concat(o,".").concat(i||a,".").concat(n)},cb=function(e){var t=e.goodsList,r=void 0===t?[]:t,n=e.planCode,o=void 0===n?"":n;return r.map(function(e,t){return new Lb({good:e,planCode:o,order:t})})},sb=function(e){var t=e.articleItemResults,r=e.activityChannel,n=e.promotionPriceData,o=(null==t?void 0:t.length)>0?t[0]:{};if(r&&o&&o.price){var i,a=(null==n||null===(i=n.articleItemResults)||void 0===i?void 0:i.length)>0?null==n?void 0:n.articleItemResults[0]:{},c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ob(Object(r),!0).forEach(function(t){Op(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ob(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},(null==o?void 0:o.price)||{});o.price=null==a?void 0:a.price,o.price.channelPrice=null==c?void 0:c.discountedPrice,o.price.channelTotalPrice=null==c?void 0:c.discountedTotalPrice,o.price.channelDiscount=null==c?void 0:c.discount}if(o&&o.price){var s,u,l=o.depreciateInfo,d=void 0===l?{}:l;if(d){var f=d.isContractActivity,p=d.contractActivity;if(f){var m=(void 0===p?{}:p).finalFee;o.price.cheapStandAmount=m||o.price.totalPrice}else o.price.cheapStandAmount=d.cheapStandAmount||d.originalStandAmount;o.price.listPrice=d.listPrice,o.price.unitCurrency=ib(o)}var b=function(e){if(e){var t=Object.entries(e).find(function(e){var t,r=e[1];return(null==r||null===(t=r.promotionOption)||void 0===t?void 0:t.levelCategory)===Xm.DoubleDiscount});if(t){var r=t[1].promotionOption,n=void 0===r?{}:r;return{doubleDiscount:n.discount,remainDiscountQuota:n.remainDiscountQuota}}}}(null==n?void 0:n.promotionResults);b&&(o.price.doubleDiscount=b.doubleDiscount,o.price.remainDiscountQuota=b.remainDiscountQuota),o.price.activityDiscount=null!=b&&b.doubleDiscount&&null!=o&&null!==(s=o.price)&&void 0!==s&&s.discount?o.price.discount-b.doubleDiscount:null==o||null===(u=o.price)||void 0===u?void 0:u.discount}return o},ub=function(e){var t=(null==e?void 0:e.articleItemResults)||[],r={discountedPrice:0,totalPrice:0,discount:0,unitCurrency:$m},n=Km({articleItemResults:t}),o=n.discountedPrice,i=n.totalPrice,a=n.discount;return r.discount=a||0,r.discountedPrice=o||0,r.totalPrice=i||0,r.totalPrice&&(r.listPrice=r.totalPrice),r.discount&&(r.activityDiscount=r.discount),t.length>0&&(r.unitCurrency=ib(t[0])),r},lb=function(e,t){var r=e.filter(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).price,t=void 0===e?{}:e;return t&&t.discountedPrice>=0&&t.unitPrice>0}),n=[];return r&&r.length>0&&r.forEach(function(e,r){var o=sb({articleItemResults:[e]}),i=o.name,a=o.depreciateInfo,c=o.price;n.push({id:"".concat(r,"-").concat(i),name:i,depreciateInfo:a||{},price:c,priceAdjustTime:t})}),n},db=function(){var e=qf(mp.mark(function e(t,r){var n,o,i;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object.keys(t),o=Object.keys(r),n&&n.length>0?n.forEach(function(e){o.forEach(function(t){e===t&&(i=e)})}):i=o&&o.length>0?o[0]:"",e.abrupt("return",{labelItemKey:i,hasPromotion:o&&o.length>0});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}();const fb=function(e){var t=e||{},r=t.enterpriseUserOnly,n=t.personalUserOnly;return t.newUserOnly?{type:"newUser",text:Um("crowdTag.newUserOnly")}:r?{type:"enterprise",text:Um("crowdTag.enterpriseUserOnly")}:n?{type:"personal",text:Um("crowdTag.personalUserOnly")}:null},pb=function(e,t,r){var n=e,o=Vm();"12:Month"===t?n=o["12:Month"]:"24:Month"===t?n=o["24:Month"]:"36:Month"===t&&(n=o["36:Month"]);var i=Bm();return"systemdisk"===r&&i[t]&&(n=i[t]),n=n.replace(/([0-9]+)\s+/g,"$1")},mb=function(e,t){var r=e[t];return"systemdisk"===t?r=r.systemdiskCategory||r.systemDiskCategory:"vm_bandwidth"!==t&&"bandwidth"!==t||(r.internetMaxBandwidthOut||r.internetMaxBandwidthOut>-1)&&(r=r.internetMaxBandwidthOut),r},bb=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.defaultValues,n=t.isPackage,o=t.selectedCardIndex,i=t.children;return n?(e=[],i.forEach(function(t,r){t.defaultValues.forEach(function(n){if(n.cardIndex===t.selectedCardIndex){var o=n.orderParams;o.uniqLabel=t.uniqKey||ab({good:t,order:r}),e.push(o)}})})):(r.forEach(function(r){r.cardIndex===o&&((e=r.orderParams).uniqLabel=t.uniqKey||ab({good:t}))}),!e&&r[0]&&((e=r[0].orderParams).uniqLabel=t.uniqKey||ab({good:t}))),e};function yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yb(Object(r),!0).forEach(function(t){Op(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var hb,gb=function(e){return"number"==typeof e?"".concat(e):e},wb=function(e,t,r,n,o,i){var a,c=[],s=[];if(e<t.length){var u=o[a=t[e].code];if(r.forEach(function(e){var t=e.value,r=e.orderParams;if(t){var n=Object.keys(t);if(!n||n.length<1)return!1;var o,i,s=mb(t,a);if("instance_type"!==a)o=null==r||null===(i=r.components)||void 0===i?void 0:i.find(function(e){return e.componentCode===a});o&&o.instanceProperty?function(e,t,r,n){var o=e.instanceProperty[0];if(o&&o.name&&!r.find(function(e){return e.value===t})){var i=pb(o.name,t,n);r.push({text:i,label:i,value:gb(t)})}}(o,s,c,a):function(e,t,r,n){e&&e.options&&e.options.length>0&&e.options.forEach(function(e){var o=e.value||e.defaultValue;if(!o||gb(o)===gb(t)){var i=function(e){var t="";return"string"==typeof e.text?t=e.text:e.text&&e.text.title&&(t=e.text.title),t}(e);if("instance_type"===n){var a=i.split(" ");a&&a.length>0&&(i=a[0])}var c=r.find(function(e){return gb(e.value)===gb(t)});if(i||(i=t),i&&!c){var s=pb("".concat(i).concat(e.unit||""),t,n);r.push({text:s,label:s,value:gb(o)})}}})}(u,s,c,a)}}),c&&c.length>0){var l=function(e,t,r,n){var o=0;return e&&e.forEach(function(e){e.code===t&&r.forEach(function(t,r){var i=n[e.code];gb(t.value)===i&&(o=r)})}),o}(t,a,c,i),d=c[l];i[a]=gb(d.value),r.forEach(function(e){var t=e.value;if(t){var r=Object.keys(t);if(!r||r.length<1)return!1;var n=mb(t,a);gb(d.value)===gb(n)&&s.push(e)}})}if(e<10){var f=s.length>0?s:r;wb(e+1,t,f,n,o,i)}}return a&&s.length>0&&(n[a]=c),s},Ob=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=window.location.search,r=!1;return(e||/preVerify=true/.test(t)||/prePrice=1/.test(t))&&(r=!0),Cm?r?"https://pre-page.alibabacloud.com":"https://page.alibabacloud.com":r?"https://pre-t.aliyun.com/abs":"https://t.aliyun.com/abs"}(),Pb=(hb="1"===new URLSearchParams(window.location.search).get("prePrice"),Cm?hb?"https://pre-page.alibabacloud.com":"https://page.alibabacloud.com":hb?"https://pre-page.aliyun.com":"https://page.aliyun.com"),xb={QUERY_PRICE:"".concat(Ob,"/promotion/queryPrice"),QUERY_PRICE_BATCH:"".concat(Ob,"/promotion/queryPriceBatch"),QUERY_PRICE_BATCH_STEALTH:"".concat(Ob,"/promotion/queryPriceBatchStealth")},jb={GET_STOCK_STATUS:"".concat(Pb,"/promotion/checkInventory")},Eb=function(e,t){var r=function(e){for(var t=null,r=0,n=[rb.FlashSale,rb.LowPrice];r<n.length;r++){var o=n[r];if(e[o]){t=o;break}}return t}(t),n=null;if(r&&(n=t[r]),n)switch(r){case rb.FlashSale:return e.orderParams.flash_sale_activity_id=n,e.orderParams.no_coupons=!0,void(e.orderParams.watchActivityIdList=n);case rb.LowPrice:return void(e.orderParams.watchActivityIdList=n);default:return}},kb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){if(null!=e&&e.orderParams||(e.orderParams={}),"object"===Object.prototype.toString.call(e.orderParams).slice(8,-1).toLowerCase()){var r=t.isManualQueryPrice,n=void 0!==r&&r;e.orderParams.pricing_trigger_type=n?"manual":"default"}return e}},Sb=function(e){var t,r=e.goodsId,n=e.orderParams,o=void 0===n?{}:n,i=e.planId,a=e.activityId,c=e.orderParamsOption,s=e.isBatch,u=void 0!==s&&s;Array.isArray(o)?(a&&o.forEach(function(e){Eb(e,a)}),o.forEach(function(e){kb(e,c)}),t=o):(a&&Eb(o,a),kb(o,c),t=[o]);var l={commodityId:r,commodities:t};return i&&(l.planId=i),u&&(l.bizOccasion="queryPrice"),l};const _b=function(){var e=qf(mp.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,f,p,m,b;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.goodsId,n=t.orderParams,o=void 0===n?{}:n,i=t.planId,a=t.activityChannel,c=t.stealth,s=t.activityId,u=t.orderParamsOption,d=Sb({goodsId:r,orderParams:o,planId:i,activityId:s,orderParamsOption:void 0===u?{}:u}),f=xb.QUERY_PRICE,a?(f=xb.QUERY_PRICE_BATCH,c&&(f=xb.QUERY_PRICE_BATCH_STEALTH),p=JSON.stringify(d),(p=JSON.parse(p)).commodities.forEach(function(e){e&&e.orderParams&&(e.orderParams.no_coupons=!0,e.orderParams.aliyunActivityChannel=a)}),(m=[]).push(p),m.push(d),l=JSON.stringify(m)):(c&&(f="".concat(Ob,"/promotion/queryPriceStealth")),l=JSON.stringify(d)),e.next=1,vp.then(function(){var e=qf(mp.mark(function e(t){return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.Request.post(f,{param:l});case 1:b=e.sent;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:return e.abrupt("return",b);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var Cb=function(){var e=qf(mp.mark(function e(t){var r,n,o,i,a;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.goodsId,n=t.planId,o=bb(t),i=Sb({goodsId:r,orderParams:o,planId:n,activityId:void 0,orderParamsOption:{}}),e.next=1,vp.then(function(){var e=qf(mp.mark(function e(t){return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.Request.post(jb.GET_STOCK_STATUS,{param:JSON.stringify(i)});case 1:a=e.sent;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:return e.abrupt("return",a);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Nb=function(e){var t=e;if(e){var r=t.split(" ");if(r&&r.length>0&&"string"==typeof r[0]){var n=[];r[0].split("-").forEach(function(e){n.push(1*e)}),t=n.join(".")}}return t},Db=function(){var e=qf(mp.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,f,p,m,b,y,v,h,g,w,O,P,x;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,n=t.activityChannel,o=t.planId,Array.isArray(r.data)&&n?(c=null===(s=r.data[0])||void 0===s?void 0:s.data,a=null===(u=r.data[1])||void 0===u?void 0:u.data,i=r.data[0].code||200):(a=r.data,i=r.code),d=(null==(l=c||a)?void 0:l.promotionResults)||{},f=(null==l?void 0:l.promotionLabelInfo)||{},e.next=1,db(f,d);case 1:return p=e.sent,m=p.labelItemKey,b=p.hasPromotion,y=null==l?void 0:l.articleItemResults,v={},o?(h=ub(l),v={price:h,hasPromotion:b,articleItemResults:y,promotionResults:d}):(w=sb({articleItemResults:y,activityChannel:n,promotionPriceData:a}),O=Nb((null==w||null===(g=w.depreciateInfo)||void 0===g?void 0:g.startTime)||""),v={price:w.price,promotionResults:d,promotionLabelInfo:f,depreciateInfo:(null==w?void 0:w.depreciateInfo)||{},labelItemKey:m,hasPromotion:b,priceAdjustTime:O,watchActivityResultList:null==w?void 0:w.watchActivityResultList},(P=w.chargeType===nb.PostPay)&&(v.isPostPay=P,v.postPayModules=lb(w.moduleResults,O))),x=Fm(),200!==i&&-1!==Object.keys(x).indexOf(i)&&(v.code=i),e.abrupt("return",v);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();const Tb=function(){var e=qf(mp.mark(function e(t){var r,n,o,i;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.planId,n=t.activityChannel,e.next=1,_b(t);case 1:return o=e.sent,e.next=2,Db({data:o,activityChannel:n,planId:r});case 2:return i=e.sent,e.abrupt("return",i);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var Ib=["refresh"];function Rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ab(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rb(Object(r),!0).forEach(function(t){Op(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Lb=function(){return Vp(function e(t){var r,n=this,o=t.good,i=t.planCode,a=t.order,c=void 0===a?0:a;Fp(this,e),Op(this,"sku",[]),Op(this,"scm",void 0),Op(this,"title",void 0),Op(this,"name",void 0),Op(this,"description",void 0),Op(this,"productCode",void 0),Op(this,"commodityCode",void 0),Op(this,"goodsId",void 0),Op(this,"mcm_code",void 0),Op(this,"mcm_id",void 0),Op(this,"selectSkuId",0),Op(this,"children",void 0),Op(this,"parent",void 0),Op(this,"_rawGood",void 0),Op(this,"price",void 0),Op(this,"postPayPrice",void 0),Op(this,"commodityType",void 0),Op(this,"isBuy",void 0),Op(this,"buyUrl",void 0),Op(this,"productDetailLink",void 0),Op(this,"commodityDetailUrl",void 0),Op(this,"isPackage",!1),Op(this,"packagecode",void 0),Op(this,"planId",void 0),Op(this,"goodsType",void 0),Op(this,"planItemId",void 0),Op(this,"defaultValues",[]),Op(this,"product",void 0),Op(this,"_commodityKeys",void 0),Op(this,"_checkedFeatureList",void 0),Op(this,"_promationPriceResult",void 0),Op(this,"commodity",void 0),Op(this,"selectedCardIndex",0),Op(this,"selectedComponentValue",{}),Op(this,"isPostPay",void 0),Op(this,"hasPostPay",void 0),Op(this,"activityId",void 0),Op(this,"isResourcePackage",void 0),Op(this,"uniqKey",void 0),Op(this,"planInstanceIsRequired",void 0),Op(this,"orderParamsOption",{isManualQueryPrice:!1}),Op(this,"_displayComponents",void 0),Op(this,"_promotionTags",void 0),Op(this,"_staticLoaded",void 0),Op(this,"_staticLabels",void 0),Op(this,"getTimeUnit",function(e){var t=e.orderParams,r="";if(!e.isPostPay){var o=Vm(),i=t?o["".concat(t.duration,":").concat(t.pricingCycle)]:"";r=n.formatTime(i,t)}return r}),o&&o.defaultValues&&o.defaultValues.forEach(function(e){var t=e.values;t&&t.forEach(function(e){n.sku.push({config:e.value})})}),this.uniqKey=ab({good:o,order:c}),this._rawGood={commodityCode:o.commodityCode,specCode:o.itemCode,productCode:o.productCode,accessories:{commodityCode:o.commodityCode,specCode:o.itemCode,productCode:o.productCode,commodity:o.modules?o.modules.commodity:void 0},title:o.itemName,name:o.itemName,sku:this.sku,goodsId:o.id,id:o.id,itemId:o.itemId,actPromotionCommodityAttributeList:o.actPromotionCommodityAttributeList},i&&this._rawGood&&(this._rawGood.accessories.planCode=i),this._staticLoaded=o.staticLoaded||o.defaultValues&&o.defaultValues.length>-1,this.scm=o.scm,this.productCode=o.productCode,this.commodityCode=o.commodityCode,this.goodsId=o.id,this.mcm_code="".concat(this.productCode,".").concat(this.commodityCode),this.mcm_id="".concat(0,".",o.id,".").concat(o.id),this.selectSkuId=0,this.children=o.children||[],this.children.forEach(function(t){t instanceof e&&(t.setParent(n),t.selected=!0)}),this.title=o.itemName,this.name=o.itemName,this.description=o.description;var s,u,l=o.defaultValues||[];this.setDefaultValues(o.defaultValues),this.commodity=(s=o.modules,u=null,s&&s.commodity?u=s.commodity:s&&s.domainParams&&(u=s.domainParams),u),this.price=o.price;var d=o.actPromotionCommodityAttributeList,f=$b(d,"post_pay_expenses_item");this.postPayPrice=f&&JSON.parse(f);var p=$b(d,"market_commodity_labels");this._staticLabels=p&&p.split(",")||[],this.commodityType=o.commodityType,this.isBuy=o.isBuy,this.buyUrl=o.buyUrl,this.productDetailLink=o.productDetailLink,this.commodityDetailUrl=o.commodityDetailUrl,this.hasPostPay=o.hasPostPay;var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("plan"===e.comType){var r=e.actPromotionCommodityAttributeList,n=$b(void 0===r?[]:r,"ntm_plan_id"),o=n&&Number(n)||void 0,i=e.commodityCode;return t&&(t.accessories.goodsType="startPackage",t.accessories.planCode=e.commodityCode),{goodsType:"startPackage",isPackage:!0,packagecode:i,planId:o,_rawGood:t}}if("plan_commodity"===e.comType){var a=e.actPromotionCommodityAttributeList.find(function(e){return"planItemId"===e.attrCode}),c=(null==a?void 0:a.attrValue)&&1*a.attrValue||null;t&&(t.accessories.planItemId=c);var s="boolean"!=typeof e.planInstanceIsRequired||e.planInstanceIsRequired;return t.accessories.defaultChecked=!0,{_rawGood:t,planInstanceIsRequired:s}}return!1}(o,this._rawGood);if(Object.assign(this,m),this._commodityKeys=this.resetCommodityKeys((null===(r=l[0])||void 0===r?void 0:r.selectedCommodityKeys)||[]),!this.isPackage){var b={};if(this.commodity){wb(0,this._commodityKeys,this.defaultValues,b,this.commodity,this.selectedComponentValue);var y=Object.keys(b);y&&y.length<3&&(b=this.groupStaticModule(b))}else b=this.groupStaticModule(b);this._displayComponents=b}var v=jp([rb.FlashSale,rb.LowPrice].map(function(e){return $b(d,e)}),2),h=v[0],g=v[1];(h||g)&&(this.activityId=Op(Op({},rb.FlashSale,h),rb.LowPrice,g));var w=this.getPromationCommodity(o,"commodity_sub_type");w&&(this.isResourcePackage="resourcePackageCommodity"===w)},[{key:"getPromationCommodity",value:function(e,t){var r=e.actPromotionCommodityAttributeList,n=void 0===r?[]:r,o=n&&n.find(function(e){return e.attrCode===t});return o&&o.attrValue}},{key:"setDefaultValues",value:function(e){var t,r=[];e&&(e.forEach(function(e,t){if(0===t){var n=e.values;n&&n.forEach(function(e,t){r.push(Ab(Ab({},e),{},{cardIndex:t}))})}}),this.defaultValues=r,this._checkedFeatureList=null===(t=e[0])||void 0===t?void 0:t.checkedFeatureList)}},{key:"init",value:(o=qf(mp.mark(function e(){var t=this;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,vp.then(function(){var e=qf(mp.mark(function e(r){var n,o;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.get("GoodsService");case 1:n=e.sent,o=n.getProduct(t._rawGood),t.product=o;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"setSku",value:function(e){this.selectSkuId=e}},{key:"handlePopUpBuy",value:(n=qf(mp.mark(function e(t,r,n,o){var i,a,c=this;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Cm){e.next=5;break}if(void 0!==o){e.next=2;break}return e.next=1,jm.call("account","getUserInfo");case 1:(a=e.sent)&&"SIN"===a.channelId&&(i=!0);case 2:if(!1!==o&&i){e.next=3;break}return window.location.href="https://account.alibabacloud.com/login/login.htm?oauth_callback=".concat(encodeURIComponent(window.location.href)),e.abrupt("return");case 3:return e.next=4,eb(this,t,n,!0,r);case 4:return e.abrupt("return");case 5:return!window.__ALIYUN_EXPERIENCE_REACT__&&window.React&&(window.__ALIYUN_EXPERIENCE_REACT__=window.React),!window.__ALIYUN_EXPERIENCE_REACT_DOM__&&window.ReactDOM&&(window.__ALIYUN_EXPERIENCE_REACT_DOM__=window.ReactDOM),e.next=6,vp.then(function(){var e=qf(mp.mark(function e(n){var o,i,a,s,u;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,n.get("Account");case 1:return o=e.sent,e.next=2,Vb();case 2:if(i=e.sent){e.next=3;break}return o.toLogin(),e.abrupt("return");case 3:if(!i||null!==i.certifyAccountType){e.next=4;break}return a=c._promationPriceResult,s=(void 0===a?{}:a).needCertifiedType,u={title:Um("common.tips")},"personal"!==s&&"enterprise"!==s||(u.subjectType=s),o.toCertificate(u),e.abrupt("return");case 4:return e.next=5,eb(c,t,i,!0,r);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 6:case"end":return e.stop()}},e,this)})),function(e,t,r,o){return n.apply(this,arguments)})},{key:"addCart",value:(r=qf(mp.mark(function e(){var t,r,n,o,i=arguments;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1?i[1]:void 0,n=i.length>2?i[2]:void 0,o=i.length>3?i[3]:void 0,e.next=1,this.handlePopUpBuy({orderParams:null==t?void 0:t.orderParams,btnType:"cart"},r,n,o);case 1:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"resetCommodityKeys",value:function(e){var t,r=this.commodity,n=[],o=this.defaultValues;(r&&o&&o.length>0&&o.forEach(function(t){if(t.orderParams){var o=t.orderParams.components;o&&(o.forEach(function(t){e.find(function(e){return t.componentCode===e})&&r[t.componentCode]&&(n.find(function(e){return e.code===t.componentCode})||n.push({code:t.componentCode,name:r[t.componentCode].name}))}),["order_time","ord_time","order_num"].forEach(function(t){e.find(function(e){return e===t})&&r[t]&&(n.find(function(e){return e.code===t})||n.push({code:t,name:r[t].name}))}))}}),!r||n&&n.length<3)&&((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){e&&e.checked&&n.length<3&&n.push({code:e.code,name:e.name})});return n}},{key:"groupStaticModule",value:function(e){var t,r=this,n=Ab({},e);return((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){if(e&&e.checked){var t=r._checkedFeatureList.options.find(function(t){return t.value===e.code});t&&(n[e.code]=[{text:t.text,label:t.label,value:t.text}])}}),n}},{key:"getTitle",value:function(){return this.title}},{key:"getDescription",value:function(){return this.description}},{key:"hasLoaded",value:function(){return this._staticLoaded}},{key:"getDisplayComponents",value:function(){var e=this;if(!this.isPackage){var t=this._commodityKeys,r=this._displayComponents,n=[];return t.forEach(function(t){r[t.code]&&n.push({label:t,options:r[t.code],target:e})}),n}var o=[];return this.children.forEach(function(e){var t=e.getDisplayComponents();t&&(o=[].concat(Up(o),Up(t)))}),o.splice(0,3)}},{key:"formatTime",value:function(e,t){return!this.isPackage&&t?e?"/".concat(e):"/".concat(t.duration).concat(t.pricingCycleTitle):""}},{key:"setFormatPriceResult",value:function(e){var t,r,n=this,o=e.price,i=bb(this),a=o.labelItemKey,c=o.promotionLabelInfo,s=o.promotionResults,u=o.hasPromotion,l=o.depreciateInfo,d=void 0===l?{}:l,f=o.articleItemResults,p=o.isPostPay,m=o.postPayModules,b=o.watchActivityResultList,y=this.getTimeUnit({orderParams:i,isPostPay:p}),v=Hm({isPackage:this.isPackage,isResourcePackage:this.isResourcePackage},o,y),h=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0===Object.keys(r).length||!n)return{};var o=r,i={tags:[]},a=(null===(e=o[n])||void 0===e?void 0:e.display)||[],c=(null==o||null===(t=o.common)||void 0===t?void 0:t.display)||[];return i.tags=[].concat(Up(a),Up(c)),i}(c,a),g=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0!==Object.keys(r).length){var o,i,a=(null==r||null===(e=r.common)||void 0===e?void 0:e.biz)||[],c=(null==r||null===(t=r.common)||void 0===t?void 0:t.extraInfo)||{},s=!1,u=!0,l=!0;try{var d=c.promotionBizLabels;for(var f in d)if(d.hasOwnProperty(f)){var p=d[f];if(p.promotionId===n){o=p.orderNumLimit;break}}s=c.sameIdLimit,i=c.userTimes,a.forEach(function(e){"NO_COUPON"===e?u=!1:"NO_REFUND"===e&&(l=!1)})}catch(m){}return{orderNumLimit:o,isSameIdLimt:s,userTimes:i,isCoupon:u,isRefund:l}}}(c,a);this._promotionTags=null==h?void 0:h.tags;var w=a&&(null==s?void 0:s[a])||void 0,O=null==c||null===(t=c.common)||void 0===t?void 0:t.extraInfo,P=O||{},x=P.enterpriseUserOnly,j=P.personalUserOnly;p&&m&&m.length>0?(this.isPostPay=!0,m.forEach(function(e){e.code=o.code,e.formatPrice=Hm({isPostPay:p,isResourcePackage:n.isResourcePackage},e,"",3)})):this.isPostPay=!1;var E=x?"enterprise":j?"personal":"all";o&&o.price&&y&&(o.price.pricingCycle=y.replace(/^\//,""));var k=[];return this.isPackage&&(k=function(e){var t=e.good,r=e.priceRes,n=t.children,o=r.articleItemResults,i=[];return n.forEach(function(e,n){var a=null==o?void 0:o.find(function(t){return t.tag===(e.uniqKey||ab({good:e,order:n}))});if(a){var c={tag:a.tag};a.code=r.code;var s=a.price,u=a.depreciateInfo,l=a.chargeType,d=a.moduleResults;s.unitCurrency=ib(a);var f=l===nb.PostPay,p=e.defaultValues.find(function(t){return t.cardIndex===e.selectedCardIndex}).orderParams,m=t.getTimeUnit({isPostPay:f,orderParams:p}),b=Hm({isPackage:e.isPackage,isResourcePackage:e.isResourcePackage},a,m);if(c.price=s,c.formatPrice=b,c.isPostPay=f,f){var y=Nb((null==u?void 0:u.startTime)||""),v=lb(d,y);v&&v.length>0&&v.forEach(function(t){t.code=null==r?void 0:r.code,t.formatPrice=Hm({isPostPay:f,isResourcePackage:e.isResourcePackage},t,"",2)}),c.postPayModules=v}i.push(c)}else i.push(null)}),i}({good:this,priceRes:o})),this._promationPriceResult={promotionResults:s,price:null==o?void 0:o.price,promotionTags:this._promotionTags,depreciateInfo:d,formatPrice:v,promotionResult:w,hasPromotion:u,discountRule:g,is99Price:(null==w||null===(r=w.promotionOption)||void 0===r||null===(r=r.activityExtInfo)||void 0===r?void 0:r.discountScene)===Zm.NinetyNinePrice||!1,articleItemResults:f,needCertifiedType:E,isPostPay:p,postPayModules:m,crowdTag:fb(O),watchActivityResultList:b,articlePriceResults:k},this._promationPriceResult}},{key:"checkStaticPrice",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.price,r=e.commodityType,n=e.commodity,o=e.postPayPrice;if("notcommonbuy_notselfcreate"===r||!n&&t&&t.length>0){var i={},a={};if(t.forEach(function(e){"daily_price"===e.code?a.totalPrice=e.value:"promotion_price"===e.code&&(a.discountedPrice=e.value)}),i={price:a,formatPrice:{promotionPrice:Jm(a.discountedPrice),dailyPrice:Jm(a.totalPrice)}},o&&o.length>0){var c=[];o.forEach(function(e){var t=e.daily_price,r=e.promotion_price,n=e.groupId,o=e.expenses_name,i=Jm(t),a=Jm(r),s={totalPrice:e.daily_price,dailyPrice:i,promotionPrice:a,discountedPrice:e.promotion_price};c.push({id:n,name:o,price:s,formatPrice:{promotionPrice:Jm(s.discountedPrice),dailyPrice:Jm(s.totalPrice)}})}),i=vb(vb({},i),{},{isPostPay:!0,postPayModules:c})}return i}return!1}(this);return!!e&&(this.isPostPay=!!e.isPostPay,Ab(Ab({},e),{},{promotionTags:this._staticLabels}))}},{key:"getPrice",value:(t=qf(mp.mark(function e(){var t,r,n,o,i,a,c,s=arguments;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:{},!(r=this.checkStaticPrice())){e.next=1;break}return e.abrupt("return",r);case 1:return n=t.activityChannel,o=t.stealth,i=t.needActivityId,a=bb(this),e.next=2,Fb({goodsId:this.goodsId,orderParams:a,planId:this.planId,activityChannel:n,stealth:o,activityId:i?this.activityId:void 0,orderParamsOption:this.orderParamsOption});case 2:return c=e.sent,e.abrupt("return",this.setFormatPriceResult({price:c}));case 3:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"getComboPrice",value:(e=qf(mp.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,f,p,m,b,y,v,h,g,w,O,P,x,j,E,k;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(n=t||{}).refresh,i=Qm(n,Ib),a=this._promationPriceResult,!o){e.next=2;break}return e.next=1,this.getPrice(i);case 1:a=e.sent;case 2:if(this.isPackage){e.next=3;break}return e.abrupt("return",a);case 3:return c=bb(this),s=this.getTimeUnit({orderParams:c,isPostPay:a.isPostPay}),u=this.children||[],l=null===(r=a.articleItemResults)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.code,d=a.articleItemResults.filter(function(e){var t=e.key,r=u.find(function(e){return e.uniqKey===t});return r&&r.selected}),f=Km({articleItemResults:d}),p=f.discountedPrice,m=f.totalPrice,b=f.discount,v={unit:s,digital:2},h=[{noPermission:l,money:p},{noPermission:l,money:y=m||0},{ignorePermission:!0,money:m},{ignorePermission:!0,money:b,defaultCondition:function(){return b<=0}}].map(function(e){return e=Object.assign(v,e),Gm(e)}),g=jp(h,4),w=g[0],O=g[1],P=g[2],x=g[3],j={promotionPrice:w,listPrice:O,dailyPrice:P,activityDiscount:x},E=Object.assign(a.formatPrice||{},j),k=Object.assign(a.price||{},{discountedPrice:p,listPrice:y,totalPrice:m,discount:b,activityDiscount:b}),e.abrupt("return",Ab(Ab({},a),{},{price:k,formatPrice:E}));case 4:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"getStringValue",value:function(e){return"number"==typeof e?"".concat(e):e}},{key:"changeSku",value:function(e,t,r){var n=this;if(this.orderParamsOption.isManualQueryPrice=!0,this.selectedComponentValue[t]=this.getStringValue(e),this.isPackage)if(r&&r.target)r.target.changeSku(e,t);else for(var o=0;o<this.children.length;o++){if(this.children[o]._commodityKeys)if(this.children[o]._commodityKeys.find(function(e){return e.code===t})){this.children[o].changeSku(e,t);break}}else{var i={};if(this.commodity){var a=wb(0,this._commodityKeys,this.defaultValues,i,this.commodity,this.selectedComponentValue),c=Object.keys(this.selectedComponentValue),s=a.find(function(e){var t=e.value;return c.every(function(e){return n.getStringValue(t[e])===n.selectedComponentValue[e]})});s&&(this.selectedCardIndex=s.cardIndex);var u=Object.keys(i);u&&u.length<3&&(i=this.groupStaticModule(i))}else i=this.groupStaticModule(i);this._displayComponents=i}}},{key:"setParent",value:function(e){this.parent=e}},{key:"selected",get:function(){if(this.parent)return!!this.planInstanceIsRequired||Boolean(this._rawGood.accessories.defaultChecked)},set:function(e){this.parent&&!this.planInstanceIsRequired&&(this._rawGood.accessories.defaultChecked=e)}},{key:"getSelectedGoods",value:function(){return this.isPackage?this.children.filter(function(e){return e.selected}):null}}]);var e,t,r,n,o}(),Mb=new Im;const zb=function(){var e=qf(mp.mark(function e(t){var r;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,vp.then(function(){var e=qf(mp.mark(function e(n){var o,i,a,c,s;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=Dm(),i="".concat(o,"/promotion-commodity-").concat(t),a=zm(),!Mb.getGood(t,a)){e.next=1;break}c=Mb.getGood(t,a),e.next=3;break;case 1:return e.next=2,n.Request.get(i,null,{withCredentials:!1,xsrfCookieName:""});case 2:(c=e.sent).scm="20140722.M_".concat(c.id,"._.V_1"),c.staticLoaded=!0,c&&"plan"===c.comType&&c.actPromotionCommodityDTOList&&(s=c.actPromotionCommodityDTOList.find(function(e){return"POSTPAY"===e.chargeType}),c.children=c.actPromotionCommodityDTOList,c.hasPostPay=!!s,c.children=cb({goodsList:c.children,planCode:c.commodityCode})),Mb.setGood(t,c,a);case 3:return c&&(r=new Lb({good:c,planCode:c.commodityCode})),e.abrupt("return",{});case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();new Im;const Ub=qf(mp.mark(function e(){var t;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=2,vp.then(function(){var e=qf(mp.mark(function e(r){var n;return mp.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.Request.get("https://bridge.aliyun.com/abs/home/queryUserBaseInfo");case 1:n=e.sent,t=n&&n.data;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e,null,[[1,3]])}));var Fb=Tb,Bb=zb,Vb=Ub,$b=function(e,t){if(e&&Array.isArray(e)){var r=e.find(function(e){return e.attrCode===t});return null==r?void 0:r.attrValue}};var Wb=window.__LOWCODE_ENV__||{};location.hostname.indexOf("alibabacloud.com")>0||null==Wb||Wb.tenant;function qb(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Gb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gb(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Gb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Kb={};function Hb(e,t){Kb[e]=t}function Yb(e,t){var r,n=Kb["zh-CN"]||Kb["zh-CN"]||{},o=qb(e.split("."));try{for(o.s();!(r=o.n()).done;){var i=r.value;if(!n||"object"!==Of(n)||!(i in n))return e;n=n[i]}}catch(xy){o.e(xy)}finally{o.f()}return"function"==typeof n?n(t||{}):"string"==typeof n&&t?n.replace(/\{(\w+)\}/g,function(e,r){return void 0!==t[r]?String(t[r]):e}):n||e}Hb("zh-CN",{common:{refresh:"\u5237\u65b0",select:"\u8bf7\u9009\u62e9"},action:{buy:"\u7acb\u5373\u8d2d\u4e70",addToCart:"\u52a0\u5165\u8d2d\u7269\u8f66",activate:"\u7acb\u5373\u5f00\u901a"},price:{querying:"\u8be2\u4ef7\u4e2d",queryingWithEllipsis:"\u8be2\u4ef7\u4e2d...",clickToGetPrice:"\u70b9\u51fb\u7acb\u5373\u8d2d\u4e70\uff0c\u83b7\u53d6\u6700\u65b0\u4ef7\u683c",from:"\u8d77",dailyPrice:"\u65e5\u5e38\u4ef7",catalogue:"\u5b98\u7f51\u76ee\u5f55\u4ef7",discounted:"\u5b98\u7f51\u6298\u6263\u4ef7",contractDiscounted:"\u4f01\u4e1a\u5408\u540c\u6298\u6263\u4ef7",catalogueTip:"\u5546\u54c1\u7684\u5217\u8868\u4ef7\u683c\u3002",discountedTip:"\u5546\u54c1\u5b9e\u9645\u5728\u5b98\u7f51\u552e\u5356\u7684\u4ef7\u683c\uff0c\u901a\u5e38\u4f1a\u5728\u76ee\u5f55\u4ef7\u57fa\u7840\u4e0a\u53e0\u52a0\u4e00\u5b9a\u6298\u6263\u3002",contractDiscountedTip:"\u6839\u636e\u5408\u540c\u6298\u6263\u4f18\u60e0\u540e\u7684\u4ef7\u683c\uff0c\u5373\u5728\u76ee\u5f55\u4ef7\u57fa\u7840\u4e0a\u53e0\u52a0\u9500\u552e\u5408\u540c\u4e2d\u6240\u7ea6\u5b9a\u7684\u6298\u6263\u3002",price:"\u4ef7\u683c",prePayOnlyTip:"\u6b64\u4ef7\u683c\u4ec5\u4e3a\u9884\u4ed8\u8d39\u4ef7\u683c\uff0c\u5957\u9910\u5185\u7684\u6309\u91cf\u8ba1\u8d39\u9879\u6309\u7167\u5b9e\u9645\u7528\u91cf\u6536\u8d39",catalogueWithPrice:function(e){return"\u5b98\u7f51\u76ee\u5f55\u4ef7\uff08".concat(e.price,"\uff09")},cheapRateLabel:function(e){return"\u8f83".concat(e.time,"\u524d\u964d").concat(e.rate)},cheapRateAlt:"\u5b98\u7f51\u964d\u4ef7"},discount:{learnMore:"\u4e86\u89e3\u4f18\u60e0",detail:"\u4f18\u60e0\u660e\u7ec6",activityRules:"\u6d3b\u52a8\u89c4\u5219",activityDiscount:"\u6d3b\u52a8\u4f18\u60e0",doubleDiscount:"\u6298\u4e0a\u6298\u4f18\u60e0",doubleDiscountWithQuota:function(e){return"\u6298\u4e0a\u6298\u4f18\u60e0\uff08\u53ef\u7528\u989d\u5ea6".concat(e.quota,"\uff09")},reduce:"\u51cf",save:function(e){return"\u8282\u7701:".concat(e.amount)},purchaseLimit:"\u9650\u8d2d",unlimited:"\u4e0d\u9650\u8d2d",purchaseLimitWithCount:function(e){return"".concat(e.count,"\u4ef6")},refund:"\u9000\u6b3e",refundable:"\u53ef\u9000\u6b3e",nonRefundable:"\u6d3b\u52a8\u5546\u54c1\u7981\u6b62\u9000\u6b3e",accountLimit:"\u8d26\u53f7\u9650\u5236",noLimit:"\u65e0\u9650\u5236",accountLimitWithTimes:function(e){return"\u540c\u8ba4\u8bc1\u8d26\u53f7\u4ec5\u53ef\u8d2d\u4e70".concat(e.times,"\u6b21\uff08\u5982\u540c\u4e2a\u4eba\u8eab\u4efd\u8bc1\u3001\u4f01\u4e1a\u6267\u7167\u8ba4\u8bc1\u3001\u540c\u624b\u673a\u53f7\u7b49\uff09")},couponOverlay:"\u662f\u5426\u53ef\u53e0\u52a0\u4f18\u60e0\u5238",canOverlay:"\u53ef\u53e0\u52a0",cannotOverlay:"\u4e0d\u53ef\u53e0\u52a0"},error:{cannotJoin99Plan:"\u65e0\u6cd5\u53c2\u52a099\u8ba1\u5212",cannotJoin99PlanInstanceOverflowPrefix:"\u6bcf\u4e2a\u7528\u6237\u4ec5\u6709\u4e00\u53f0\u5b9e\u4f8b\u53ef\u4eab\u53d799\u8ba1\u5212\u6743\u76ca\uff0c\u60a8\u540d\u4e0b\u5df2\u6709\u5b9e\u4f8b\u5728\u4eab\u53d7\u6b64\u6743\u76ca\uff0c\u60a8\u53ef\u524d\u5f80\u5f53\u524d\u8d26\u53f7\u6216\u60a8\u540d\u4e0b\u5176\u4ed6\u8d26\u53f7\u7684",cannotJoin99PlanInstanceOverflowSuffix:"\u67e5\u770b\u3002",cannotJoin99PlanInvalidOrderPrefix:"\u6bcf\u4e2a\u7528\u6237\u4ec5\u6709\u4e00\u53f0\u5b9e\u4f8b\u53ef\u4eab\u53d799\u8ba1\u5212\u6743\u76ca\uff0c\u60a8\u5df2\u6709\u672a\u652f\u4ed8\u8ba2\u5355\u4eab\u53d7\u6b64\u6743\u76ca\uff0c",cannotJoin99PlanInvalidCrowdMessage:"\u62b1\u6b49\uff0c\u60a8\u6682\u4e0d\u7b26\u5408\u672c\u6b21\u6d3b\u52a8\u53c2\u4e0e\u4eba\u7fa4\u8981\u6c42",console:"\u63a7\u5236\u53f0",viewOrders:"\u70b9\u51fb\u67e5\u770b"},plan:{plan99:"99\u8ba1\u5212"}}),Hb("en-US",{common:{refresh:"Refresh",select:"Please select"},action:{buy:"Buy Now",addToCart:"Add to Cart",activate:"Activate Now"},price:{querying:"Querying",queryingWithEllipsis:"Querying...",clickToGetPrice:"Click to buy now and get the latest price",from:"from",dailyPrice:"Daily Price",catalogue:"Catalogue Price",discounted:"Discounted Price",contractDiscounted:"Contract Discounted Price",catalogueTip:"The list price of the product.",discountedTip:"The actual selling price on the official website, usually with a discount applied to the catalogue price.",contractDiscountedTip:"The price after applying the contract discount, i.e., the discount specified in the sales contract applied to the catalogue price.",price:"Price",prePayOnlyTip:"This price is for prepaid items only. Pay-as-you-go items in the package are charged based on actual usage.",catalogueWithPrice:function(e){return"Catalogue Price (".concat(e.price,")")},cheapRateLabel:function(e){return"Reduced ".concat(e.rate," compared to ").concat(e.time," ago")},cheapRateAlt:"Official Price Reduction"},discount:{learnMore:"Learn More",detail:"Discount Details",activityRules:"Activity Rules",activityDiscount:"Activity Discount",doubleDiscount:"Double Discount",doubleDiscountWithQuota:function(e){return"Double Discount (Available quota: ".concat(e.quota,")")},reduce:"Reduce",save:function(e){return"Save: ".concat(e.amount)},purchaseLimit:"Purchase Limit",unlimited:"Unlimited",purchaseLimitWithCount:function(e){return"".concat(e.count," items")},refund:"Refund",refundable:"Refundable",nonRefundable:"No Refunds for Promotional Items",accountLimit:"Account Restrictions",noLimit:"No Limit",accountLimitWithTimes:function(e){return"Each verified account is limited to ".concat(e.times," purchases (e.g., accounts verified with the same personal ID, business license, phone number, etc.")},couponOverlay:"Coupon Stackability",canOverlay:"Stackable",cannotOverlay:"Non-stackable"},error:{cannotJoin99Plan:"Cannot Join 99 Plan",cannotJoin99PlanInstanceOverflowPrefix:"Each user can only have one instance enjoying the 99 Plan benefits. You already have an instance enjoying this benefit. You can check in the",cannotJoin99PlanInstanceOverflowSuffix:"of the current account or other accounts under your name.",cannotJoin99PlanInvalidOrderPrefix:"Each user can only have one instance enjoying the 99 Plan benefits. You have an unpaid order enjoying this benefit.",cannotJoin99PlanInvalidCrowdMessage:"Sorry, you do not meet the participant requirements for this activity.",console:"Console",viewOrders:"Click to view"},plan:{plan99:"99 Plan"}}),Hb("zh-TW",{common:{refresh:"\u91cd\u65b0\u6574\u7406",select:"\u8acb\u9078\u64c7"},action:{buy:"\u7acb\u5373\u8cfc\u8cb7",addToCart:"\u52a0\u5165\u8cfc\u7269\u8eca",activate:"\u7acb\u5373\u958b\u901a"},price:{querying:"\u8a62\u50f9\u4e2d",queryingWithEllipsis:"\u8a62\u50f9\u4e2d...",clickToGetPrice:"\u9ede\u64ca\u7acb\u5373\u8cfc\u8cb7\uff0c\u7372\u53d6\u6700\u65b0\u50f9\u683c",from:"\u8d77",dailyPrice:"\u65e5\u5e38\u50f9",catalogue:"\u5b98\u7db2\u76ee\u9304\u50f9",discounted:"\u5b98\u7db2\u6298\u6263\u50f9",contractDiscounted:"\u4f01\u696d\u5408\u7d04\u6298\u6263\u50f9",catalogueTip:"\u5546\u54c1\u7684\u5217\u8868\u50f9\u683c\u3002",discountedTip:"\u5546\u54c1\u5be6\u969b\u5728\u5b98\u7db2\u552e\u8ce3\u7684\u50f9\u683c\uff0c\u901a\u5e38\u6703\u5728\u76ee\u9304\u50f9\u57fa\u790e\u4e0a\u758a\u52a0\u4e00\u5b9a\u6298\u6263\u3002",contractDiscountedTip:"\u6839\u64da\u5408\u7d04\u6298\u6263\u512a\u60e0\u5f8c\u7684\u50f9\u683c\uff0c\u5373\u5728\u76ee\u9304\u50f9\u57fa\u790e\u4e0a\u758a\u52a0\u92b7\u552e\u5408\u7d04\u4e2d\u6240\u7d04\u5b9a\u7684\u6298\u6263\u3002",price:"\u50f9\u683c",prePayOnlyTip:"\u6b64\u50f9\u683c\u50c5\u70ba\u9810\u4ed8\u8cbb\u50f9\u683c\uff0c\u5957\u9910\u5167\u7684\u6309\u91cf\u8a08\u8cbb\u9805\u6309\u7167\u5be6\u969b\u7528\u91cf\u6536\u8cbb",catalogueWithPrice:function(e){return"\u5b98\u7db2\u76ee\u9304\u50f9\uff08".concat(e.price,"\uff09")},cheapRateLabel:function(e){return"\u8f03".concat(e.time,"\u524d\u964d").concat(e.rate)},cheapRateAlt:"\u5b98\u7db2\u964d\u50f9"},discount:{learnMore:"\u4e86\u89e3\u512a\u60e0",detail:"\u512a\u60e0\u660e\u7d30",activityRules:"\u6d3b\u52d5\u898f\u5247",activityDiscount:"\u6d3b\u52d5\u512a\u60e0",doubleDiscount:"\u6298\u4e0a\u6298\u512a\u60e0",doubleDiscountWithQuota:function(e){return"\u6298\u4e0a\u6298\u512a\u60e0\uff08\u53ef\u7528\u984d\u5ea6".concat(e.quota,"\uff09")},reduce:"\u6e1b",save:function(e){return"\u7bc0\u7701:".concat(e.amount)},purchaseLimit:"\u9650\u8cfc",unlimited:"\u4e0d\u9650\u8cfc",purchaseLimitWithCount:function(e){return"".concat(e.count,"\u4ef6")},refund:"\u9000\u6b3e",refundable:"\u53ef\u9000\u6b3e",nonRefundable:"\u6d3b\u52d5\u5546\u54c1\u7981\u6b62\u9000\u6b3e",accountLimit:"\u5e33\u865f\u9650\u5236",noLimit:"\u7121\u9650\u5236",accountLimitWithTimes:function(e){return"\u540c\u8a8d\u8b49\u5e33\u865f\u50c5\u53ef\u8cfc\u8cb7".concat(e.times,"\u6b21\uff08\u5982\u540c\u500b\u4eba\u8eab\u4efd\u8b49\u3001\u4f01\u696d\u57f7\u7167\u8a8d\u8b49\u3001\u540c\u624b\u6a5f\u865f\u7b49\uff09")},couponOverlay:"\u662f\u5426\u53ef\u758a\u52a0\u512a\u60e0\u5238",canOverlay:"\u53ef\u758a\u52a0",cannotOverlay:"\u4e0d\u53ef\u758a\u52a0"},error:{cannotJoin99Plan:"\u7121\u6cd5\u53c3\u52a099\u8a08\u5283",cannotJoin99PlanInstanceOverflowPrefix:"\u6bcf\u500b\u7528\u6236\u50c5\u6709\u4e00\u53f0\u5be6\u4f8b\u53ef\u4eab\u53d799\u8a08\u5283\u6b0a\u76ca\uff0c\u60a8\u540d\u4e0b\u5df2\u6709\u5be6\u4f8b\u5728\u4eab\u53d7\u6b64\u6b0a\u76ca\uff0c\u60a8\u53ef\u524d\u5f80\u7576\u524d\u5e33\u865f\u6216\u60a8\u540d\u4e0b\u5176\u4ed6\u5e33\u865f\u7684",cannotJoin99PlanInstanceOverflowSuffix:"\u67e5\u770b\u3002",cannotJoin99PlanInvalidOrderPrefix:"\u6bcf\u500b\u7528\u6236\u50c5\u6709\u4e00\u53f0\u5be6\u4f8b\u53ef\u4eab\u53d799\u8a08\u5283\u6b0a\u76ca\uff0c\u60a8\u5df2\u6709\u672a\u652f\u4ed8\u8a02\u55ae\u4eab\u53d7\u6b64\u6b0a\u76ca\uff0c",cannotJoin99PlanInvalidCrowdMessage:"\u62b1\u6b49\uff0c\u60a8\u66ab\u4e0d\u7b26\u5408\u672c\u6b21\u6d3b\u52d5\u53c3\u8207\u4eba\u7fa4\u8981\u6c42",console:"\u63a7\u5236\u53f0",viewOrders:"\u9ede\u64ca\u67e5\u770b"},plan:{plan99:"99\u8a08\u5283"}}),Hb("de-DE",{common:{refresh:"Aktualisieren",select:"Bitte ausw\xe4hlen"},action:{buy:"Jetzt kaufen",addToCart:"In den Warenkorb",activate:"Jetzt aktivieren"},price:{querying:"Preisanfrage l\xe4uft",queryingWithEllipsis:"Preisanfrage l\xe4uft...",clickToGetPrice:"Klicken Sie auf Jetzt kaufen, um den neuesten Preis zu erhalten",from:"ab",dailyPrice:"Tagespreis",catalogue:"Katalogpreis",discounted:"Rabattpreis",contractDiscounted:"Vertragsrabattpreis",catalogueTip:"Der Listenpreis des Produkts.",discountedTip:"Der tats\xe4chliche Verkaufspreis auf der offiziellen Website, normalerweise mit einem Rabatt auf den Katalogpreis.",contractDiscountedTip:"Der Preis nach Anwendung des Vertragsrabatts, d. h. der im Verkaufsvertrag vereinbarte Rabatt auf den Katalogpreis.",price:"Preis",prePayOnlyTip:"Dieser Preis gilt nur f\xfcr Vorauszahlungen. Pay-as-you-go-Artikel im Paket werden basierend auf der tats\xe4chlichen Nutzung berechnet.",catalogueWithPrice:function(e){return"Katalogpreis (".concat(e.price,")")},cheapRateLabel:function(e){return"Geringer ".concat(e.rate," im Vergleich zu vor ").concat(e.time)},cheapRateAlt:"Offizielle Preissenkung"},discount:{learnMore:"Mehr erfahren",detail:"Rabattdetails",activityRules:"Aktivit\xe4tsregeln",activityDiscount:"Aktivit\xe4tsrabatt",doubleDiscount:"Doppelrabatt",doubleDiscountWithQuota:function(e){return"Doppelrabatt (Verf\xfcgbares Kontingent: ".concat(e.quota,")")},reduce:"Reduzieren",save:function(e){return"Sparen: ".concat(e.amount)},purchaseLimit:"Kaufbeschr\xe4nkung",unlimited:"Unbegrenzt",purchaseLimitWithCount:function(e){return"".concat(e.count," Artikel")},refund:"R\xfcckerstattung",refundable:"R\xfcckerstattungsf\xe4hig",nonRefundable:"Aktivit\xe4tsartikel sind nicht r\xfcckerstattungsf\xe4hig",accountLimit:"Kontolimit",noLimit:"Kein Limit",accountLimitWithTimes:function(e){return"Dasselbe authentifizierte Konto kann nur ".concat(e.times," Mal kaufen (z. B. derselbe Personalausweis, Gesch\xe4ftslizenz, Telefonnummer usw.)")},couponOverlay:"K\xf6nnen Gutscheine gestapelt werden",canOverlay:"Kann gestapelt werden",cannotOverlay:"Kann nicht gestapelt werden"},error:{cannotJoin99Plan:"Kann nicht am 99-Plan teilnehmen",cannotJoin99PlanInstanceOverflowPrefix:"Jeder Benutzer kann nur eine Instanz mit 99-Plan-Vorteilen haben. Sie haben bereits eine Instanz mit diesem Vorteil. Sie k\xf6nnen in der",cannotJoin99PlanInstanceOverflowSuffix:"des aktuellen Kontos oder anderer Konten unter Ihrem Namen nachsehen.",cannotJoin99PlanInvalidOrderPrefix:"Jeder Benutzer kann nur eine Instanz mit 99-Plan-Vorteilen haben. Sie haben eine unbezahlte Bestellung mit diesem Vorteil.",cannotJoin99PlanInvalidCrowdMessage:"Entschuldigung, Sie erf\xfcllen die Teilnahmevoraussetzungen f\xfcr diese Aktivit\xe4t nicht.",console:"Konsole",viewOrders:"Zum Anzeigen klicken"},plan:{plan99:"99-Plan"}}),Hb("ja-JP",{common:{refresh:"\u66f4\u65b0",select:"\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"},action:{buy:"\u4eca\u3059\u3050\u8cfc\u5165",addToCart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",activate:"\u4eca\u3059\u3050\u6709\u52b9\u5316"},price:{querying:"\u4fa1\u683c\u7167\u4f1a\u4e2d",queryingWithEllipsis:"\u4fa1\u683c\u7167\u4f1a\u4e2d...",clickToGetPrice:"\u4eca\u3059\u3050\u8cfc\u5165\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u6700\u65b0\u4fa1\u683c\u3092\u53d6\u5f97",from:"\u304b\u3089",dailyPrice:"\u65e5\u5e38\u4fa1\u683c",catalogue:"\u30ab\u30bf\u30ed\u30b0\u4fa1\u683c",discounted:"\u5272\u5f15\u4fa1\u683c",contractDiscounted:"\u5951\u7d04\u5272\u5f15\u4fa1\u683c",catalogueTip:"\u5546\u54c1\u306e\u30ea\u30b9\u30c8\u4fa1\u683c\u3002",discountedTip:"\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u306e\u5b9f\u969b\u306e\u8ca9\u58f2\u4fa1\u683c\u3002\u901a\u5e38\u3001\u30ab\u30bf\u30ed\u30b0\u4fa1\u683c\u306b\u4e00\u5b9a\u306e\u5272\u5f15\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002",contractDiscountedTip:"\u5951\u7d04\u5272\u5f15\u3092\u9069\u7528\u3057\u305f\u5f8c\u306e\u4fa1\u683c\u3002\u3064\u307e\u308a\u3001\u30ab\u30bf\u30ed\u30b0\u4fa1\u683c\u306b\u8ca9\u58f2\u5951\u7d04\u3067\u5408\u610f\u3055\u308c\u305f\u5272\u5f15\u3092\u9069\u7528\u3057\u305f\u4fa1\u683c\u3002",price:"\u4fa1\u683c",prePayOnlyTip:"\u3053\u306e\u4fa1\u683c\u306f\u524d\u6255\u3044\u4fa1\u683c\u306e\u307f\u3067\u3059\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u5185\u306e\u5f93\u91cf\u8ab2\u91d1\u9805\u76ee\u306f\u5b9f\u969b\u306e\u4f7f\u7528\u91cf\u306b\u57fa\u3065\u3044\u3066\u8ab2\u91d1\u3055\u308c\u307e\u3059",catalogueWithPrice:function(e){return"\u30ab\u30bf\u30ed\u30b0\u4fa1\u683c\uff08".concat(e.price,"\uff09")},cheapRateLabel:function(e){return"".concat(e.time,"\u524d\u3068\u6bd4\u8f03\u3057\u3066").concat(e.rate,"\u5024\u4e0b\u3052")},cheapRateAlt:"\u516c\u5f0f\u4fa1\u683c\u5024\u4e0b\u3052"},discount:{learnMore:"\u8a73\u7d30\u3092\u898b\u308b",detail:"\u5272\u5f15\u8a73\u7d30",activityRules:"\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u30eb\u30fc\u30eb",activityDiscount:"\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u5272\u5f15",doubleDiscount:"\u4e8c\u91cd\u5272\u5f15",doubleDiscountWithQuota:function(e){return"\u4e8c\u91cd\u5272\u5f15\uff08\u5229\u7528\u53ef\u80fd\u306a\u30af\u30a9\u30fc\u30bf\uff1a".concat(e.quota,"\uff09")},reduce:"\u6e1b",save:function(e){return"\u7bc0\u7d04: ".concat(e.amount)},purchaseLimit:"\u8cfc\u5165\u5236\u9650",unlimited:"\u7121\u5236\u9650",purchaseLimitWithCount:function(e){return"".concat(e.count,"\u70b9")},refund:"\u8fd4\u91d1",refundable:"\u8fd4\u91d1\u53ef\u80fd",nonRefundable:"\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u5546\u54c1\u306f\u8fd4\u91d1\u4e0d\u53ef",accountLimit:"\u30a2\u30ab\u30a6\u30f3\u30c8\u5236\u9650",noLimit:"\u5236\u9650\u306a\u3057",accountLimitWithTimes:function(e){return"\u540c\u3058\u8a8d\u8a3c\u30a2\u30ab\u30a6\u30f3\u30c8\u306f".concat(e.times,"\u56de\u306e\u307f\u8cfc\u5165\u53ef\u80fd\uff08\u540c\u3058\u500b\u4ebaID\u3001\u4f01\u696d\u30e9\u30a4\u30bb\u30f3\u30b9\u8a8d\u8a3c\u3001\u540c\u3058\u96fb\u8a71\u756a\u53f7\u306a\u3069\uff09")},couponOverlay:"\u30af\u30fc\u30dd\u30f3\u3092\u91cd\u306d\u3066\u4f7f\u7528\u3067\u304d\u308b\u304b",canOverlay:"\u91cd\u306d\u3066\u4f7f\u7528\u53ef\u80fd",cannotOverlay:"\u91cd\u306d\u3066\u4f7f\u7528\u4e0d\u53ef"},error:{cannotJoin99Plan:"99\u30d7\u30e9\u30f3\u306b\u53c2\u52a0\u3067\u304d\u307e\u305b\u3093",cannotJoin99PlanInstanceOverflowPrefix:"\u5404\u30e6\u30fc\u30b6\u30fc\u306f99\u30d7\u30e9\u30f3\u306e\u7279\u5178\u3092\u53d7\u3051\u3089\u308c\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30921\u3064\u3060\u3051\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3059\u3067\u306b\u3053\u306e\u7279\u5178\u3092\u53d7\u3051\u3066\u3044\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u3042\u308a\u307e\u3059\u3002\u73fe\u5728\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u307e\u305f\u306f\u304a\u540d\u524d\u306e\u4ed6\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e",cannotJoin99PlanInstanceOverflowSuffix:"\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002",cannotJoin99PlanInvalidOrderPrefix:"\u5404\u30e6\u30fc\u30b6\u30fc\u306f99\u30d7\u30e9\u30f3\u306e\u7279\u5178\u3092\u53d7\u3051\u3089\u308c\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30921\u3064\u3060\u3051\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u7279\u5178\u3092\u53d7\u3051\u3066\u3044\u308b\u672a\u6255\u3044\u306e\u6ce8\u6587\u304c\u3042\u308a\u307e\u3059\u3002",cannotJoin99PlanInvalidCrowdMessage:"\u7533\u3057\u8a33\u3054\u3056\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u306e\u53c2\u52a0\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u307e\u305b\u3093",console:"\u30b3\u30f3\u30bd\u30fc\u30eb",viewOrders:"\u30af\u30ea\u30c3\u30af\u3057\u3066\u8868\u793a"},plan:{plan99:"99\u30d7\u30e9\u30f3"}}),Hb("ko-KR",{common:{refresh:"\uc0c8\ub85c\uace0\uce68",select:"\uc120\ud0dd\ud574 \uc8fc\uc138\uc694"},action:{buy:"\uc9c0\uae08 \uad6c\ub9e4",addToCart:"\uc7a5\ubc14\uad6c\ub2c8\uc5d0 \ucd94\uac00",activate:"\uc9c0\uae08 \ud65c\uc131\ud654"},price:{querying:"\uac00\uaca9 \uc870\ud68c \uc911",queryingWithEllipsis:"\uac00\uaca9 \uc870\ud68c \uc911...",clickToGetPrice:"\uc9c0\uae08 \uad6c\ub9e4\ub97c \ud074\ub9ad\ud558\uc5ec \ucd5c\uc2e0 \uac00\uaca9 \ud655\uc778",from:"\ubd80\ud130",dailyPrice:"\uc77c\uc0c1 \uac00\uaca9",catalogue:"\uce74\ud0c8\ub85c\uadf8 \uac00\uaca9",discounted:"\ud560\uc778 \uac00\uaca9",contractDiscounted:"\uacc4\uc57d \ud560\uc778 \uac00\uaca9",catalogueTip:"\uc81c\ud488\uc758 \ubaa9\ub85d \uac00\uaca9\uc785\ub2c8\ub2e4.",discountedTip:"\uacf5\uc2dd \uc6f9\uc0ac\uc774\ud2b8\uc5d0\uc11c \uc2e4\uc81c \ud310\ub9e4\ub418\ub294 \uac00\uaca9\uc73c\ub85c, \uc77c\ubc18\uc801\uc73c\ub85c \uce74\ud0c8\ub85c\uadf8 \uac00\uaca9\uc5d0 \uc77c\uc815 \ud560\uc778\uc774 \uc801\uc6a9\ub429\ub2c8\ub2e4.",contractDiscountedTip:"\uacc4\uc57d \ud560\uc778\uc744 \uc801\uc6a9\ud55c \ud6c4\uc758 \uac00\uaca9\uc73c\ub85c, \uc989 \uce74\ud0c8\ub85c\uadf8 \uac00\uaca9\uc5d0 \ud310\ub9e4 \uacc4\uc57d\uc5d0\uc11c \uc57d\uc815\ud55c \ud560\uc778\uc744 \uc801\uc6a9\ud55c \uac00\uaca9\uc785\ub2c8\ub2e4.",price:"\uac00\uaca9",prePayOnlyTip:"\uc774 \uac00\uaca9\uc740 \uc120\ubd88 \uac00\uaca9\ub9cc \ud574\ub2f9\ud558\uba70, \ud328\ud0a4\uc9c0 \ub0b4 \uc885\ub7c9\uc81c \ud56d\ubaa9\uc740 \uc2e4\uc81c \uc0ac\uc6a9\ub7c9\uc5d0 \ub530\ub77c \uc694\uae08\uc774 \ubd80\uacfc\ub429\ub2c8\ub2e4",catalogueWithPrice:function(e){return"\uce74\ud0c8\ub85c\uadf8 \uac00\uaca9 (".concat(e.price,")")},cheapRateLabel:function(e){return"".concat(e.time," \uc804 \ub300\ube44 ").concat(e.rate," \ud558\ub77d")},cheapRateAlt:"\uacf5\uc2dd \uac00\uaca9 \ud558\ub77d"},discount:{learnMore:"\uc790\uc138\ud788 \ubcf4\uae30",detail:"\ud560\uc778 \uc0c1\uc138",activityRules:"\uc774\ubca4\ud2b8 \uaddc\uce59",activityDiscount:"\uc774\ubca4\ud2b8 \ud560\uc778",doubleDiscount:"\uc774\uc911 \ud560\uc778",doubleDiscountWithQuota:function(e){return"\uc774\uc911 \ud560\uc778 (\uc0ac\uc6a9 \uac00\ub2a5\ud55c \ud560\ub2f9\ub7c9: ".concat(e.quota,")")},reduce:"\uac10\uc18c",save:function(e){return"\uc808\uc57d: ".concat(e.amount)},purchaseLimit:"\uad6c\ub9e4 \uc81c\ud55c",unlimited:"\uc81c\ud55c \uc5c6\uc74c",purchaseLimitWithCount:function(e){return"".concat(e.count,"\uac1c")},refund:"\ud658\ubd88",refundable:"\ud658\ubd88 \uac00\ub2a5",nonRefundable:"\uc774\ubca4\ud2b8 \uc0c1\ud488\uc740 \ud658\ubd88 \ubd88\uac00",accountLimit:"\uacc4\uc815 \uc81c\ud55c",noLimit:"\uc81c\ud55c \uc5c6\uc74c",accountLimitWithTimes:function(e){return"\ub3d9\uc77c\ud55c \uc778\uc99d \uacc4\uc815\uc740 ".concat(e.times,"\ud68c\ub9cc \uad6c\ub9e4 \uac00\ub2a5\ud569\ub2c8\ub2e4 (\ub3d9\uc77c\ud55c \uac1c\uc778 \uc2e0\ubd84\uc99d, \uae30\uc5c5 \ub77c\uc774\uc120\uc2a4 \uc778\uc99d, \ub3d9\uc77c\ud55c \uc804\ud654\ubc88\ud638 \ub4f1)")},couponOverlay:"\ucfe0\ud3f0 \uc911\ubcf5 \uc0ac\uc6a9 \uac00\ub2a5 \uc5ec\ubd80",canOverlay:"\uc911\ubcf5 \uc0ac\uc6a9 \uac00\ub2a5",cannotOverlay:"\uc911\ubcf5 \uc0ac\uc6a9 \ubd88\uac00"},error:{cannotJoin99Plan:"99 \ud50c\ub79c\uc5d0 \ucc38\uc5ec\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",cannotJoin99PlanInstanceOverflowPrefix:"\uac01 \uc0ac\uc6a9\uc790\ub294 99 \ud50c\ub79c \ud61c\ud0dd\uc744 \ubc1b\uc744 \uc218 \uc788\ub294 \uc778\uc2a4\ud134\uc2a4\ub97c \ud558\ub098\ub9cc \uac00\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubbf8 \uc774 \ud61c\ud0dd\uc744 \ubc1b\uace0 \uc788\ub294 \uc778\uc2a4\ud134\uc2a4\uac00 \uc788\uc2b5\ub2c8\ub2e4. \ud604\uc7ac \uacc4\uc815 \ub610\ub294 \uadc0\ud558 \uc774\ub984\uc758 \ub2e4\ub978 \uacc4\uc815\uc758",cannotJoin99PlanInstanceOverflowSuffix:"\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.",cannotJoin99PlanInvalidOrderPrefix:"\uac01 \uc0ac\uc6a9\uc790\ub294 99 \ud50c\ub79c \ud61c\ud0dd\uc744 \ubc1b\uc744 \uc218 \uc788\ub294 \uc778\uc2a4\ud134\uc2a4\ub97c \ud558\ub098\ub9cc \uac00\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ud61c\ud0dd\uc744 \ubc1b\uace0 \uc788\ub294 \ubbf8\uacb0\uc81c \uc8fc\ubb38\uc774 \uc788\uc2b5\ub2c8\ub2e4.",cannotJoin99PlanInvalidCrowdMessage:"\uc8c4\uc1a1\ud569\ub2c8\ub2e4. \uc774\ubc88 \uc774\ubca4\ud2b8 \ucc38\uc5ec \ub300\uc0c1 \uc694\uac74\uc744 \ucda9\uc871\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",console:"\ucf58\uc194",viewOrders:"\ud074\ub9ad\ud558\uc5ec \ubcf4\uae30"},plan:{plan99:"99 \ud50c\ub79c"}}),Hb("fr-FR",{common:{refresh:"Actualiser",select:"Veuillez s\xe9lectionner"},action:{buy:"Acheter maintenant",addToCart:"Ajouter au panier",activate:"Activer maintenant"},price:{querying:"Demande de prix en cours",queryingWithEllipsis:"Demande de prix en cours...",clickToGetPrice:"Cliquez sur Acheter maintenant pour obtenir le dernier prix",from:"\xe0 partir de",dailyPrice:"Prix quotidien",catalogue:"Prix catalogue",discounted:"Prix r\xe9duit",contractDiscounted:"Prix avec remise contractuelle",catalogueTip:"Le prix catalogue du produit.",discountedTip:"Le prix r\xe9el de vente sur le site officiel, g\xe9n\xe9ralement avec une remise appliqu\xe9e au prix catalogue.",contractDiscountedTip:"Le prix apr\xe8s application de la remise contractuelle, c'est-\xe0-dire la remise convenue dans le contrat de vente appliqu\xe9e au prix catalogue.",price:"Prix",prePayOnlyTip:"Ce prix s'applique uniquement aux paiements anticip\xe9s. Les articles \xe0 la demande dans le package sont factur\xe9s en fonction de l'utilisation r\xe9elle.",catalogueWithPrice:function(e){return"Prix catalogue (".concat(e.price,")")},cheapRateLabel:function(e){return"R\xe9duit de ".concat(e.rate," par rapport \xe0 il y a ").concat(e.time)},cheapRateAlt:"R\xe9duction de prix officielle"},discount:{learnMore:"En savoir plus",detail:"D\xe9tails de la remise",activityRules:"R\xe8gles de l'activit\xe9",activityDiscount:"Remise d'activit\xe9",doubleDiscount:"Double remise",doubleDiscountWithQuota:function(e){return"Double remise (Quota disponible: ".concat(e.quota,")")},reduce:"R\xe9duire",save:function(e){return"\xc9conomiser: ".concat(e.amount)},purchaseLimit:"Limite d'achat",unlimited:"Illimit\xe9",purchaseLimitWithCount:function(e){return"".concat(e.count," articles")},refund:"Remboursement",refundable:"Remboursable",nonRefundable:"Les articles d'activit\xe9 ne sont pas remboursables",accountLimit:"Limite de compte",noLimit:"Aucune limite",accountLimitWithTimes:function(e){return"Le m\xeame compte authentifi\xe9 ne peut acheter que ".concat(e.times," fois (par exemple, m\xeame carte d'identit\xe9, licence d'entreprise, m\xeame num\xe9ro de t\xe9l\xe9phone, etc.)")},couponOverlay:"Les coupons peuvent-ils \xeatre cumul\xe9s",canOverlay:"Peut \xeatre cumul\xe9",cannotOverlay:"Ne peut pas \xeatre cumul\xe9"},error:{cannotJoin99Plan:"Impossible de rejoindre le plan 99",cannotJoin99PlanInstanceOverflowPrefix:"Chaque utilisateur ne peut avoir qu'une seule instance b\xe9n\xe9ficiant des avantages du plan 99. Vous avez d\xe9j\xe0 une instance b\xe9n\xe9ficiant de cet avantage. Vous pouvez v\xe9rifier dans la",cannotJoin99PlanInstanceOverflowSuffix:"du compte actuel ou d'autres comptes sous votre nom.",cannotJoin99PlanInvalidOrderPrefix:"Chaque utilisateur ne peut avoir qu'une seule instance b\xe9n\xe9ficiant des avantages du plan 99. Vous avez une commande impay\xe9e b\xe9n\xe9ficiant de cet avantage.",cannotJoin99PlanInvalidCrowdMessage:"D\xe9sol\xe9, vous ne r\xe9pondez pas aux exigences de participation \xe0 cette activit\xe9.",console:"Console",viewOrders:"Cliquer pour voir"},plan:{plan99:"Plan 99"}}),Hb("ru-RU",{common:{refresh:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",select:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435"},action:{buy:"\u041a\u0443\u043f\u0438\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441",addToCart:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443",activate:"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441"},price:{querying:"\u0417\u0430\u043f\u0440\u043e\u0441 \u0446\u0435\u043d\u044b",queryingWithEllipsis:"\u0417\u0430\u043f\u0440\u043e\u0441 \u0446\u0435\u043d\u044b...",clickToGetPrice:'\u041d\u0430\u0436\u043c\u0438\u0442\u0435 "\u041a\u0443\u043f\u0438\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441", \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0446\u0435\u043d\u0443',from:"\u043e\u0442",dailyPrice:"\u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0446\u0435\u043d\u0430",catalogue:"\u0426\u0435\u043d\u0430 \u043f\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443",discounted:"\u0426\u0435\u043d\u0430 \u0441\u043e \u0441\u043a\u0438\u0434\u043a\u043e\u0439",contractDiscounted:"\u0426\u0435\u043d\u0430 \u0441\u043e \u0441\u043a\u0438\u0434\u043a\u043e\u0439 \u043f\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0443",catalogueTip:"\u0426\u0435\u043d\u0430 \u0442\u043e\u0432\u0430\u0440\u0430 \u043f\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443.",discountedTip:"\u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0446\u0435\u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0438 \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435, \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e \u0441\u043a\u0438\u0434\u043a\u043e\u0439 \u043e\u0442 \u0446\u0435\u043d\u044b \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430.",contractDiscountedTip:"\u0426\u0435\u043d\u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043a\u0438\u0434\u043a\u0438 \u043f\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0443, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043a\u0438\u0434\u043a\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0430\u044f \u0432 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0435 \u043a\u0443\u043f\u043b\u0438-\u043f\u0440\u043e\u0434\u0430\u0436\u0438, \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u043d\u0430\u044f \u043a \u0446\u0435\u043d\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430.",price:"\u0426\u0435\u043d\u0430",prePayOnlyTip:"\u042d\u0442\u0430 \u0446\u0435\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u043f\u0440\u0435\u0434\u043e\u043f\u043b\u0430\u0442\u0435. \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441 \u043e\u043f\u043b\u0430\u0442\u043e\u0439 \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.",catalogueWithPrice:function(e){return"\u0426\u0435\u043d\u0430 \u043f\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 (".concat(e.price,")")},cheapRateLabel:function(e){return"\u0421\u043d\u0438\u0436\u0435\u043d\u043e \u043d\u0430 ".concat(e.rate," \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 ").concat(e.time," \u043d\u0430\u0437\u0430\u0434")},cheapRateAlt:"\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b"},discount:{learnMore:"\u0423\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435",detail:"\u0414\u0435\u0442\u0430\u043b\u0438 \u0441\u043a\u0438\u0434\u043a\u0438",activityRules:"\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0430\u043a\u0446\u0438\u0438",activityDiscount:"\u0421\u043a\u0438\u0434\u043a\u0430 \u043f\u043e \u0430\u043a\u0446\u0438\u0438",doubleDiscount:"\u0414\u0432\u043e\u0439\u043d\u0430\u044f \u0441\u043a\u0438\u0434\u043a\u0430",doubleDiscountWithQuota:function(e){return"\u0414\u0432\u043e\u0439\u043d\u0430\u044f \u0441\u043a\u0438\u0434\u043a\u0430 (\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u043a\u0432\u043e\u0442\u0430: ".concat(e.quota,")")},reduce:"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c",save:function(e){return"\u0421\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c: ".concat(e.amount)},purchaseLimit:"\u041b\u0438\u043c\u0438\u0442 \u043f\u043e\u043a\u0443\u043f\u043a\u0438",unlimited:"\u0411\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439",purchaseLimitWithCount:function(e){return"".concat(e.count," \u0448\u0442.")},refund:"\u0412\u043e\u0437\u0432\u0440\u0430\u0442",refundable:"\u0412\u043e\u0437\u0432\u0440\u0430\u0442\u043d\u044b\u0439",nonRefundable:"\u0422\u043e\u0432\u0430\u0440\u044b \u043f\u043e \u0430\u043a\u0446\u0438\u0438 \u043d\u0435 \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0443",accountLimit:"\u041b\u0438\u043c\u0438\u0442 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430",noLimit:"\u0411\u0435\u0437 \u043b\u0438\u043c\u0438\u0442\u0430",accountLimitWithTimes:function(e){return"\u041e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u043a\u0443\u043f\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e ".concat(e.times," \u0440\u0430\u0437 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u043e\u0442 \u0436\u0435 \u043f\u0430\u0441\u043f\u043e\u0440\u0442, \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u0442\u043e\u0442 \u0436\u0435 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438 \u0442.\u0434.)")},couponOverlay:"\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0443\u043f\u043e\u043d\u044b",canOverlay:"\u041c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c",cannotOverlay:"\u041d\u0435\u043b\u044c\u0437\u044f \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c"},error:{cannotJoin99Plan:"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c\u0441\u044f \u043a \u043f\u043b\u0430\u043d\u0443 99",cannotJoin99PlanInstanceOverflowPrefix:"\u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u043c\u0438 \u043f\u043b\u0430\u043d\u0430 99. \u0423 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441 \u044d\u0442\u0438\u043c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u043c. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432",cannotJoin99PlanInstanceOverflowSuffix:"\u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432 \u043f\u043e\u0434 \u0432\u0430\u0448\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c.",cannotJoin99PlanInvalidOrderPrefix:"\u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u043c\u0438 \u043f\u043b\u0430\u043d\u0430 99. \u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043a\u0430\u0437 \u0441 \u044d\u0442\u0438\u043c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u043c.",cannotJoin99PlanInvalidCrowdMessage:"\u0418\u0437\u0432\u0438\u043d\u0438\u0442\u0435, \u0432\u044b \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0434\u043b\u044f \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0432 \u044d\u0442\u043e\u0439 \u0430\u043a\u0446\u0438\u0438.",console:"\u041a\u043e\u043d\u0441\u043e\u043b\u044c",viewOrders:"\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c"},plan:{plan99:"\u041f\u043b\u0430\u043d 99"}}),Hb("es-ES",{common:{refresh:"Actualizar",select:"Por favor seleccione"},action:{buy:"Comprar ahora",addToCart:"A\xf1adir al carrito",activate:"Activar ahora"},price:{querying:"Consultando precio",queryingWithEllipsis:"Consultando precio...",clickToGetPrice:"Haga clic en Comprar ahora para obtener el \xfaltimo precio",from:"desde",dailyPrice:"Precio diario",catalogue:"Precio de cat\xe1logo",discounted:"Precio con descuento",contractDiscounted:"Precio con descuento por contrato",catalogueTip:"El precio de lista del producto.",discountedTip:"El precio real de venta en el sitio web oficial, generalmente con un descuento aplicado al precio de cat\xe1logo.",contractDiscountedTip:"El precio despu\xe9s de aplicar el descuento por contrato, es decir, el descuento especificado en el contrato de venta aplicado al precio de cat\xe1logo.",price:"Precio",prePayOnlyTip:"Este precio es solo para prepago. Los elementos de pago por uso en el paquete se cobran seg\xfan el uso real.",catalogueWithPrice:function(e){return"Precio de cat\xe1logo (".concat(e.price,")")},cheapRateLabel:function(e){return"Reducido ".concat(e.rate," en comparaci\xf3n con hace ").concat(e.time)},cheapRateAlt:"Reducci\xf3n de precio oficial"},discount:{learnMore:"Saber m\xe1s",detail:"Detalles del descuento",activityRules:"Reglas de la actividad",activityDiscount:"Descuento de actividad",doubleDiscount:"Doble descuento",doubleDiscountWithQuota:function(e){return"Doble descuento (Cuota disponible: ".concat(e.quota,")")},reduce:"Reducir",save:function(e){return"Ahorrar: ".concat(e.amount)},purchaseLimit:"L\xedmite de compra",unlimited:"Ilimitado",purchaseLimitWithCount:function(e){return"".concat(e.count," art\xedculos")},refund:"Reembolso",refundable:"Reembolsable",nonRefundable:"Los art\xedculos de actividad no son reembolsables",accountLimit:"L\xedmite de cuenta",noLimit:"Sin l\xedmite",accountLimitWithTimes:function(e){return"La misma cuenta autenticada solo puede comprar ".concat(e.times," veces (por ejemplo, misma tarjeta de identidad, licencia comercial, mismo n\xfamero de tel\xe9fono, etc.)")},couponOverlay:"\xbfSe pueden combinar cupones",canOverlay:"Se puede combinar",cannotOverlay:"No se puede combinar"},error:{cannotJoin99Plan:"No se puede unir al plan 99",cannotJoin99PlanInstanceOverflowPrefix:"Cada usuario solo puede tener una instancia disfrutando de los beneficios del plan 99. Ya tiene una instancia disfrutando de este beneficio. Puede verificar en la",cannotJoin99PlanInstanceOverflowSuffix:"de la cuenta actual u otras cuentas bajo su nombre.",cannotJoin99PlanInvalidOrderPrefix:"Cada usuario solo puede tener una instancia disfrutando de los beneficios del plan 99. Tiene un pedido sin pagar disfrutando de este beneficio.",cannotJoin99PlanInvalidCrowdMessage:"Lo sentimos, no cumple con los requisitos de participaci\xf3n para esta actividad.",console:"Consola",viewOrders:"Haga clic para ver"},plan:{plan99:"Plan 99"}}),Hb("id-ID",{common:{refresh:"Muat ulang",select:"Silakan pilih"},action:{buy:"Beli sekarang",addToCart:"Tambahkan ke keranjang",activate:"Aktifkan sekarang"},price:{querying:"Meminta harga",queryingWithEllipsis:"Meminta harga...",clickToGetPrice:"Klik Beli sekarang untuk mendapatkan harga terbaru",from:"mulai dari",dailyPrice:"Harga harian",catalogue:"Harga katalog",discounted:"Harga diskon",contractDiscounted:"Harga diskon kontrak",catalogueTip:"Harga daftar produk.",discountedTip:"Harga jual aktual di situs web resmi, biasanya dengan diskon yang diterapkan pada harga katalog.",contractDiscountedTip:"Harga setelah menerapkan diskon kontrak, yaitu diskon yang ditentukan dalam kontrak penjualan yang diterapkan pada harga katalog.",price:"Harga",prePayOnlyTip:"Harga ini hanya untuk pembayaran di muka. Item pay-as-you-go dalam paket dikenakan biaya berdasarkan penggunaan aktual.",catalogueWithPrice:function(e){return"Harga katalog (".concat(e.price,")")},cheapRateLabel:function(e){return"Turun ".concat(e.rate," dibandingkan dengan ").concat(e.time," yang lalu")},cheapRateAlt:"Penurunan harga resmi"},discount:{learnMore:"Pelajari lebih lanjut",detail:"Detail diskon",activityRules:"Aturan aktivitas",activityDiscount:"Diskon aktivitas",doubleDiscount:"Diskon ganda",doubleDiscountWithQuota:function(e){return"Diskon ganda (Kuota tersedia: ".concat(e.quota,")")},reduce:"Kurangi",save:function(e){return"Hemat: ".concat(e.amount)},purchaseLimit:"Batas pembelian",unlimited:"Tidak terbatas",purchaseLimitWithCount:function(e){return"".concat(e.count," item")},refund:"Pengembalian dana",refundable:"Dapat dikembalikan",nonRefundable:"Item aktivitas tidak dapat dikembalikan",accountLimit:"Batas akun",noLimit:"Tidak ada batas",accountLimitWithTimes:function(e){return"Akun terautentikasi yang sama hanya dapat membeli ".concat(e.times," kali (misalnya, KTP yang sama, lisensi bisnis, nomor telepon yang sama, dll.)")},couponOverlay:"Apakah kupon dapat ditumpuk",canOverlay:"Dapat ditumpuk",cannotOverlay:"Tidak dapat ditumpuk"},error:{cannotJoin99Plan:"Tidak dapat bergabung dengan paket 99",cannotJoin99PlanInstanceOverflowPrefix:"Setiap pengguna hanya dapat memiliki satu instance yang menikmati manfaat paket 99. Anda sudah memiliki instance yang menikmati manfaat ini. Anda dapat memeriksa di",cannotJoin99PlanInstanceOverflowSuffix:"dari akun saat ini atau akun lain di bawah nama Anda.",cannotJoin99PlanInvalidOrderPrefix:"Setiap pengguna hanya dapat memiliki satu instance yang menikmati manfaat paket 99. Anda memiliki pesanan yang belum dibayar yang menikmati manfaat ini.",cannotJoin99PlanInvalidCrowdMessage:"Maaf, Anda tidak memenuhi persyaratan partisipasi untuk aktivitas ini.",console:"Konsol",viewOrders:"Klik untuk melihat"},plan:{plan99:"Paket 99"}});const Jb={balloon:"_5a211f2e887f13ad8235a9e7b2fa9a5e_balloon",trigger:"_5a211f2e887f13ad8235a9e7b2fa9a5e_trigger",popup:"_5a211f2e887f13ad8235a9e7b2fa9a5e_popup",fadeIn:"_5a211f2e887f13ad8235a9e7b2fa9a5e_fadeIn","popup-hidden":"_5a211f2e887f13ad8235a9e7b2fa9a5e_popup-hidden",content:"_5a211f2e887f13ad8235a9e7b2fa9a5e_content",close:"_5a211f2e887f13ad8235a9e7b2fa9a5e_close",arrow:"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow","arrow-t":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-t","arrow-tl":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-tl","arrow-tr":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-tr","arrow-b":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-b","arrow-bl":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-bl","arrow-br":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-br","arrow-l":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-l","arrow-lt":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-lt","arrow-lb":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-lb","arrow-r":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-r","arrow-rt":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-rt","arrow-rb":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-rb"};function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Zb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(t){Op(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Xb=[0,0],ey=function(e){var t=e.trigger,r=e.children,n=e.align,o=void 0===n?"t":n,i=e.triggerType,a=void 0===i?"hover":i,c=e.closable,s=void 0!==c&&c,u=e.visible,l=e.defaultVisible,d=void 0!==l&&l,f=e.onVisibleChange,p=e.className,y=void 0===p?"":p,v=e.popupStyle,h=void 0===v?{}:v,g=e.popupClassName,w=void 0===g?"":g,O=e.offset,P=void 0===O?Xb:O,x=e.delay,j=void 0===x?0:x,E=e.autoAdjust,k=void 0===E||E,S=e.onTriggerMouseEnter,_=jp(m.useState(d),2),C=_[0],N=_[1],D=jp(m.useState({top:0,left:0}),2),T=D[0],I=D[1],R=jp(m.useState(!1),2),A=R[0],L=R[1],M=m.useRef(null),z=m.useRef(null),U=m.useRef(null),F=m.useRef(null),B=m.useRef(!1),V=void 0!==u,$=V?u:C,W=function(e){V||N(e),null==f||f(e)};m.useEffect(function(){return function(){U.current&&clearTimeout(U.current)}},[]);var q=m.useCallback(function(e){for(var t=0,r=0,n=e;n&&n!==document.body;)t+=n.offsetTop,r+=n.offsetLeft,n=n.offsetParent;return{top:t,left:r,width:e.offsetWidth,height:e.offsetHeight}},[]),G=m.useCallback(function(e,t){if(!M.current)return{top:0,left:0};var r=q(M.current),n=0,i=0;switch(o){case"t":n=r.top-t-8,i=r.left+r.width/2-e/2;break;case"r":n=r.top+r.height/2-t/2,i=r.left+r.width+8;break;case"b":default:n=r.top+r.height+8,i=r.left+r.width/2-e/2;break;case"l":n=r.top+r.height/2-t/2,i=r.left-e-8;break;case"tl":n=r.top-t-8,i=r.left;break;case"tr":n=r.top-t-8,i=r.left+r.width-e;break;case"bl":n=r.top+r.height+8,i=r.left;break;case"br":n=r.top+r.height+8,i=r.left+r.width-e;break;case"lt":n=r.top,i=r.left-e-8;break;case"lb":n=r.top+r.height-t,i=r.left-e-8;break;case"rt":n=r.top,i=r.left+r.width+8;break;case"rb":n=r.top+r.height-t,i=r.left+r.width+8}return{top:n+=P[1],left:i+=P[0]}},[o,P,q]);m.useEffect(function(){if(!$||!M.current)return I(function(e){return 0===e.top&&0===e.left?e:{top:0,left:0}}),void L(!1);if(L(!1),!k){var e=requestAnimationFrame(function(){if(M.current&&z.current){var e=z.current.getBoundingClientRect(),t=e.width,r=e.height,n=G(t,r);I(n),L(!0)}else L(!0)});return function(){return cancelAnimationFrame(e)}}var t=requestAnimationFrame(function(){if(M.current&&z.current){var e=z.current.getBoundingClientRect(),t=e.width,r=e.height,n=G(t,r),o=n.top,i=n.left,a=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,window.innerWidth),c=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,window.innerHeight),s=0,u=0,l=i+t;l>a?s=a-l-8:i<0&&(s=8-i);var d=o+r;d>c?u=c-d-8:o<0&&(u=8-o),0===s&&0===u||(i+=s,o+=u),I(function(e){return e.top===o&&e.left===i?e:{top:o,left:i}}),0!==s||0!==u?F.current=requestAnimationFrame(function(){if(F.current=null,z.current){var e=z.current.getBoundingClientRect(),t=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop,n=e.left+t,o=e.top+r,i=e.width,a=e.height,c=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,window.innerWidth),s=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,window.innerHeight),u=0,l=0;n+i>c?u=c-(n+i)-8:n<0&&(u=8-n),o+a>s?l=s-(o+a)-8:o<0&&(l=8-o),0===u&&0===l||I(function(e){return{top:e.top+l,left:e.left+u}}),L(!0)}else L(!0)}):L(!0)}else L(!0)});return function(){t&&cancelAnimationFrame(t),F.current&&(cancelAnimationFrame(F.current),F.current=null)}},[$,k,G]);var K=function(e){B.current||(B.current=!0,e&&S&&S(e),"hover"===a&&(j>0?(U.current&&clearTimeout(U.current),U.current=setTimeout(function(){W(!0)},j)):W(!0)))},H=function(){B.current=!1,"hover"===a&&(U.current&&(clearTimeout(U.current),U.current=null),W(!1))};m.useEffect(function(){if("click"===a&&$){var e=function(e){M.current&&z.current&&!M.current.contains(e.target)&&!z.current.contains(e.target)&&W(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}},[a,$]);var Y,J,Q=$?m.createElement("div",{ref:z,className:"".concat(Jb.popup," ").concat(w," ").concat(A?"":Jb["popup-hidden"]),style:Zb({top:"".concat(T.top,"px"),left:"".concat(T.left,"px")},h),onMouseEnter:K,onMouseLeave:H},m.createElement("div",{className:(Y=Jb.arrow,J=Jb["arrow-".concat(o)],"".concat(Y," ").concat(J||""))}),s&&m.createElement("span",{className:Jb.close,onClick:function(e){e.stopPropagation(),W(!1)}},"\xd7"),m.createElement("div",{className:Jb.content},r)):null;return m.createElement(m.Fragment,null,m.createElement("div",{className:"".concat(Jb.balloon," ").concat(y)},m.createElement("div",{ref:M,onMouseEnter:function(e){return K(e)},onMouseLeave:H,onClick:function(e){"click"===a&&(e.stopPropagation(),W(!$))},className:Jb.trigger},t)),$&&"undefined"!=typeof document&&b.createPortal(Q,document.body))};const ty=m.memo(ey),ry="_8cb62e427ba5bad8cd7daa20c1b5df23_discounted-price",ny="_8cb62e427ba5bad8cd7daa20c1b5df23_highlight",oy="_8cb62e427ba5bad8cd7daa20c1b5df23_pricing-tip-btn",iy="_8cb62e427ba5bad8cd7daa20c1b5df23_help-filled";function ay(e){var t=jp(m.useState("t"),2),r=t[0],n=t[1],o=e.isLogin,i=e.price,a=void 0===i?{}:i,c=e.isChannelPrice,s=e.className,u=e.good,l=void 0===u?{}:u,d=l.hasPostPay,f=l.isPackage,p=a.formatPrice,b=void 0===p?{}:p,y=a.price,v=b.promotionPrice,h=b.hasDiscount,g=b.queryFailCode,w=b.codeContent,O=b.channelPrice;if(!v)return null;var P=Ym(c?void 0===O?"":O:v,null==y?void 0:y.unitCurrency);return m.createElement("span",{className:"".concat(ry," ").concat(s||"")},y&&!g?m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(ny)},P.symbol,m.createElement("strong",null,P.integer),".",P.decimal),P.unit?"/".concat(P.unit):"",!o&&h?Yb("price.from"):"",f&&d&&m.createElement(ty,{align:"t",trigger:m.createElement("span",{className:oy},m.createElement("i",{className:"".concat(iy," aliyun-icon aliyun-icon-help_filled")})),triggerType:"hover",closable:!1},m.createElement("div",{className:"discount-ballon"},m.createElement("div",{className:"discount-ballon-rule"},m.createElement("p",null,Yb("price.prePayOnlyTip")))))):"",y&&g?m.createElement(ty,{align:r,trigger:m.createElement("span",{className:ny},P.symbol,m.createElement("strong",null,P.integer)),triggerType:"hover",closable:!1,onTriggerMouseEnter:function(e){n(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t";try{var r=document.body.clientWidth,n=e.currentTarget.getBoundingClientRect();(n&&n.left&&r-n.left<=200||n&&n.left&&n.left<=150)&&(t="tl")}catch(o){}return t}(e,r))}},w):"")}const cy=m.memo(ay);var sy="PRO-99PRICE_INSTANCE_OVERFLOW",uy="PRO-99PRICE_INVALID_ORDER_COUNT",ly="CROWD-NOT_IN_RANGE",dy="https://home.console.aliyun.com/home/dashboard/ProductAndService",fy="https://usercenter2.aliyun.com/order/list?pageIndex=1&pageSize=20&orderStatus=UNPAID",py=function(e){var t=Yb("error.cannotJoin99Plan");switch(e){case sy:return m.createElement("span",null,m.createElement("em",null,t,"\uff1a"),Yb("error.cannotJoin99PlanInstanceOverflowPrefix")," ",m.createElement("a",{href:dy,target:"_blank",rel:"noopener noreferrer"},Yb("error.console"))," ",Yb("error.cannotJoin99PlanInstanceOverflowSuffix"));case uy:return m.createElement("span",null,m.createElement("em",null,t,"\uff1a"),Yb("error.cannotJoin99PlanInvalidOrderPrefix")," ",m.createElement("a",{href:fy,target:"_blank",rel:"noopener noreferrer"},Yb("error.viewOrders")));case ly:return m.createElement("span",null,m.createElement("em",null,t,"\uff1a"),Yb("error.cannotJoin99PlanInvalidCrowdMessage"));default:return null}};Op(Op(Op({},sy,py(sy)),uy,py(uy)),ly,py(ly));Yb("price.catalogue"),Yb("price.discounted"),Yb("price.contractDiscounted"),Yb("price.catalogueTip"),Yb("price.discountedTip"),Yb("price.contractDiscountedTip");const my={"token-plan-container":"_83ea512a8372cba66337ed572b6cf7fe_token-plan-container",surface:"_83ea512a8372cba66337ed572b6cf7fe_surface","surface-custom-pc":"_83ea512a8372cba66337ed572b6cf7fe_surface-custom-pc","background-visual":"_83ea512a8372cba66337ed572b6cf7fe_background-visual","glow-left":"_83ea512a8372cba66337ed572b6cf7fe_glow-left","glow-right":"_83ea512a8372cba66337ed572b6cf7fe_glow-right","token-plan-card-compact":"_83ea512a8372cba66337ed572b6cf7fe_token-plan-card-compact",groups:"_83ea512a8372cba66337ed572b6cf7fe_groups",group:"_83ea512a8372cba66337ed572b6cf7fe_group","group-header":"_83ea512a8372cba66337ed572b6cf7fe_group-header","group-title":"_83ea512a8372cba66337ed572b6cf7fe_group-title","period-tabs":"_83ea512a8372cba66337ed572b6cf7fe_period-tabs","period-tab":"_83ea512a8372cba66337ed572b6cf7fe_period-tab","period-tab-active":"_83ea512a8372cba66337ed572b6cf7fe_period-tab-active","mobile-group-tab":"_83ea512a8372cba66337ed572b6cf7fe_mobile-group-tab",products:"_83ea512a8372cba66337ed572b6cf7fe_products","product-card":"_83ea512a8372cba66337ed572b6cf7fe_product-card","product-heading":"_83ea512a8372cba66337ed572b6cf7fe_product-heading","product-name":"_83ea512a8372cba66337ed572b6cf7fe_product-name","hot-dot":"_83ea512a8372cba66337ed572b6cf7fe_hot-dot","hot-tag":"_83ea512a8372cba66337ed572b6cf7fe_hot-tag","name-skeleton":"_83ea512a8372cba66337ed572b6cf7fe_name-skeleton","price-skeleton":"_83ea512a8372cba66337ed572b6cf7fe_price-skeleton","skeleton-shimmer":"_83ea512a8372cba66337ed572b6cf7fe_skeleton-shimmer","price-area":"_83ea512a8372cba66337ed572b6cf7fe_price-area","price-unavailable":"_83ea512a8372cba66337ed572b6cf7fe_price-unavailable","dynamic-price":"_83ea512a8372cba66337ed572b6cf7fe_dynamic-price","original-price-value":"_83ea512a8372cba66337ed572b6cf7fe_original-price-value","original-price-strikethrough":"_83ea512a8372cba66337ed572b6cf7fe_original-price-strikethrough","feature-box":"_83ea512a8372cba66337ed572b6cf7fe_feature-box","feature-row":"_83ea512a8372cba66337ed572b6cf7fe_feature-row","feature-spacer":"_83ea512a8372cba66337ed572b6cf7fe_feature-spacer","purchase-button":"_83ea512a8372cba66337ed572b6cf7fe_purchase-button","mobile-group-tabs":"_83ea512a8372cba66337ed572b6cf7fe_mobile-group-tabs","invite-action":"_83ea512a8372cba66337ed572b6cf7fe_invite-action","invite-icon":"_83ea512a8372cba66337ed572b6cf7fe_invite-icon","invite-prompt":"_83ea512a8372cba66337ed572b6cf7fe_invite-prompt","invite-prompt-highlight":"_83ea512a8372cba66337ed572b6cf7fe_invite-prompt-highlight","invite-button":"_83ea512a8372cba66337ed572b6cf7fe_invite-button","group-empty":"_83ea512a8372cba66337ed572b6cf7fe_group-empty","empty-state":"_83ea512a8372cba66337ed572b6cf7fe_empty-state","surface-custom-h5":"_83ea512a8372cba66337ed572b6cf7fe_surface-custom-h5","mobile-group-tab-active":"_83ea512a8372cba66337ed572b6cf7fe_mobile-group-tab-active","group-active":"_83ea512a8372cba66337ed572b6cf7fe_group-active"},by=e=>Boolean(e)&&"object"==typeof e&&!Array.isArray(e),yy=e=>{if(!(null==e?void 0:e.formatPrice)||e.formatPrice.queryFailCode||!e.price)return null;const t=Number(e.price.discountedPrice),r=Number(e.price.cheapStandAmount),n=Number(e.price.totalPrice),o=Number.isFinite(r)&&r>0?r:n;return!Number.isFinite(t)||!Number.isFinite(o)||o<=0?null:{discounted:t,reference:o}},vy=({product:e={},isLogin:r=!1})=>{var n;const[o,i]=m.useState(null),[a,c]=m.useState(null),[s,u]=m.useState(Boolean(e.goodId)),[d,f]=m.useState(!1),b=m.useRef(null),y=m.useRef(null),v=r=>p(t,null,function*(){if(!e.enableSoldOutTip||!r)return!1;try{const e=yield Cb(r).catch(()=>null),t=Boolean(e&&!e.data);return f(t),t}catch(t){return!1}});m.useEffect(()=>{if(y.current&&clearInterval(y.current),i(null),b.current=null,c(null),f(!1),!e.goodId)return void u(!1);let r=!1;return u(!0),Bb(e.goodId).then(n=>p(t,null,function*(){if(r)return;i(n),b.current=n;const[t]=yield Promise.all([n.getPrice({}),e.enableSoldOutTip?v(n):Promise.resolve(!1)]);r||(c(t),u(!1),e.enableSoldOutTip&&(y.current=setInterval(()=>{v(n).then(e=>{e&&y.current&&(clearInterval(y.current),y.current=null)})},6e4)))})).catch(()=>{r||u(!1)}),()=>{r=!0,y.current&&(clearInterval(y.current),y.current=null)}},[e.goodId,e.enableSoldOutTip]);const h=a,g=Boolean(null==(n=null==h?void 0:h.formatPrice)?void 0:n.promotionPrice),w=m.useMemo(()=>((e,t)=>{if(!e)return!1;if(!(null==t?void 0:t.price)||t.price.channelPrice)return!1;const r=yy(t);return Boolean(r&&r.discounted===r.reference)})(e.hideOriginalPriceWhenNoDiscount,h),[e.hideOriginalPriceWhenNoDiscount,h]),O=m.useMemo(()=>(e=>{const t=yy(e);return Boolean(t&&t.discounted!==t.reference)})(h),[h]),P=(e=>{const t=null==e?void 0:e.formatPrice;if(!t)return"";if(t.queryFailCode)return`${(null==e?void 0:e.unitCurrency)||"\uffe5"}***`;const r=t.cheapStandAmount||t.dailyPrice;return null==r?"":String(r)})(h),x=(null==o?void 0:o.name)||"\u5546\u54c1\u52a0\u8f7d\u5931\u8d25",j=(Array.isArray(e.features)?e.features:[]).filter(e=>Boolean(e&&"object"==typeof e)).slice(0,2),E=d?e.soldOutText||"\u5df2\u552e\u7f44":e.buttonText||"\u7acb\u5373\u8ba2\u9605",k=o?{"data-tracker-container":!0,"data-tracker-scm":o.scm,"data-tracker-mcm-code":o.mcm_code,"data-tracker-mcm-id":o.mcm_id}:{},S=my["purchase-button"];return m.createElement("article",l({className:`${my["product-card"]} ${e.isHot?my["product-card-hot"]:""}`},k),m.createElement("div",{className:my["product-heading"]},e.isHot?m.createElement("span",{className:my["hot-dot"],"aria-hidden":"true"}):null,s?m.createElement("span",{className:my["name-skeleton"],"aria-label":"\u5546\u54c1\u540d\u79f0\u52a0\u8f7d\u4e2d"}):m.createElement("h3",{className:my["product-name"],title:x},x),e.isHot?m.createElement("span",{className:my["hot-tag"]},"HOT"):null),s?m.createElement("div",{className:my["price-skeleton"],"aria-label":"\u4ef7\u683c\u52a0\u8f7d\u4e2d"}):o&&h&&g?m.createElement("div",{className:`${my["price-area"]} ${my["dynamic-price"]}`},m.createElement(cy,{isLogin:r,price:h,isChannelPrice:!1,good:o}),!w&&P?m.createElement("span",{className:`${my["original-price-value"]} ${O?my["original-price-strikethrough"]:""}`},P):null):m.createElement("div",{className:`${my["price-area"]} ${my["price-unavailable"]}`},"\u4ef7\u683c\u6682\u4e0d\u53ef\u7528"),j.length?m.createElement("dl",{className:my["feature-box"]},j.map((e,t)=>m.createElement("div",{className:my["feature-row"],key:`${e.featureLabel}-${t}`},m.createElement("dt",{title:e.featureLabel},e.featureLabel),m.createElement("dd",{title:e.featureValue},e.featureValue)))):m.createElement("div",{className:my["feature-spacer"]}),m.createElement(Ef,{className:S,type:"button",variant:"standard",size:"xl",disabled:!o||!g||d,onClick:()=>p(t,null,function*(){b.current&&g&&!d&&(e.enableSoldOutTip&&(yield v(b.current))||b.current.handlePopUpBuy())})},m.createElement("span",null,E),m.createElement(L,null)))},hy=({activeIndex:e,ariaLabel:t,className:r,items:n,onChange:o,tabActiveClassName:i,tabClassName:a})=>m.createElement("div",{className:r,role:"tablist","aria-label":t},n.map((t,r)=>{const c=r===e;return m.createElement("button",{className:`${a} ${c?i:""}`,type:"button",role:"tab","aria-selected":c,tabIndex:c?0:-1,key:`${t}-${r}`,onClick:()=>o(r),onKeyDown:e=>{let t=r;if("ArrowRight"===e.key)t=(r+1)%n.length;else if("ArrowLeft"===e.key)t=(r-1+n.length)%n.length;else if("Home"===e.key)t=0;else{if("End"!==e.key)return;t=n.length-1}e.preventDefault(),o(t),((e,t)=>{var r,n;const o=null==(r=e.parentElement)?void 0:r.querySelectorAll('[role="tab"]');null==(n=null==o?void 0:o[t])||n.focus()})(e.currentTarget,t)}},m.createElement("span",null,t))})),gy={btnText:"\u53bb\u9080\u8bf7",size:"md",buttonType:"filled"},wy=e=>{const t=(e=>{const t=Array.from("string"==typeof e?e:""),r=[];let n="";const o=()=>{n&&(r.push({text:n,highlighted:!1}),n="")};for(let a=0;a<t.length;){const e=t[a];if("\\"===e&&"*"===t[a+1]){n+="*",a+=2;continue}if("*"!==e||"*"===t[a-1]||"*"===t[a+1]){n+=e,a+=1;continue}let i=a+1,c="",s=-1;for(;i<t.length;)if("\\"!==t[i]||"*"!==t[i+1]){if("*"===t[i]&&"*"!==t[i-1]&&"*"!==t[i+1]&&c){s=i;break}c+=t[i],i+=1}else c+="*",i+=2;s<0?(n+="*",a+=1):(o(),r.push({text:c,highlighted:!0}),a=s+1)}o();let i=40;return r.reduce((e,t)=>{if(i<=0)return e;const r=Array.from(t.text).slice(0,i).join("");return r?(i-=Array.from(r).length,e.push(d(l({},t),{text:r})),e):e},[])})(e);return t.some(e=>e.text.trim())?t.map((e,t)=>e.highlighted?m.createElement("span",{className:my["invite-prompt-highlight"],key:`highlight-${t}`},e.text):m.createElement(m.Fragment,{key:`text-${t}`},e.text)):null},Oy=e=>"string"==typeof e?e.trim():"",Py=e=>e?`url(${JSON.stringify(e)})`:"";r.exports=({backgroundGradient:e,backgroundImage:r,backgroundImageH5:n,showInviteButton:o=!0,invitePromptText:i="\u9080\u8bf7\u597d\u53cb\u73a9\u8f6cAI\uff0c\u81f3\u9ad8\u5f97 1000\u5143",inviteIcon:a="https://img.alicdn.com/imgextra/i4/O1CN01DiLmrl1ysQebF9LM7_!!6000000006634-2-tps-240-240.png",inviteButtonConfig:c={},groups:s=[]})=>{const u=Oy(r),f=Oy(n),b=Oy(e),y=(e=>/^(?:repeating-)?(?:linear|radial|conic)-gradient\(.+\)$/i.test(e))(b)?b:"",v=Py(u)||y,h=Py(f)||v,g=Boolean(v),w=Boolean(h),O=l(l({},v?{"--surface-background-pc":v}:{}),h?{"--surface-background-h5":h}:{}),P=[my.surface,g?my["surface-custom-pc"]:"",w?my["surface-custom-h5"]:""].filter(Boolean).join(" "),x=m.useMemo(()=>((e=[])=>Array.isArray(e)?e.filter(by).slice(0,2).map(e=>({groupTitle:"string"==typeof e.groupTitle?e.groupTitle:"",tabs:Array.isArray(e.tabs)?e.tabs.filter(by).slice(0,4).map(e=>{return{label:"string"==typeof e.label?e.label:"",products:(t=e.products,Array.isArray(t)?t.filter(by).slice(0,3).map(e=>{return d(l({},e),{goodId:"number"==typeof e.goodId&&Number.isFinite(e.goodId)?e.goodId:0,features:(t=e.features,Array.isArray(t)?t.filter(by).slice(0,2).map(e=>({featureLabel:"string"==typeof e.featureLabel?e.featureLabel:"",featureValue:"string"==typeof e.featureValue?e.featureValue:""})):[])});var t}):[])};var t}):[]})):[])(s),[s]),[j,E]=m.useState(0),[k,S]=m.useState({}),[_,C]=m.useState(!1),N=l(l({},gy),c);return m.useEffect(()=>{E(e=>Math.min(e,Math.max(x.length-1,0))),S(e=>{const t={};return x.forEach((r,n)=>{t[n]=Math.min(e[n]||0,Math.max(r.tabs.length-1,0))}),t})},[x]),m.useEffect(()=>{vp.then(e=>p(t,null,function*(){const t=yield e.get("Account");C(yield t.isLogin())})).catch(()=>C(!1))},[]),m.createElement("section",{className:my["token-plan-container"]},m.createElement("div",{className:P,style:O},m.createElement("div",{className:my["background-visual"],"aria-hidden":"true"},m.createElement("div",{className:my["glow-left"]}),m.createElement("div",{className:my["glow-right"]})),m.createElement("div",{className:my["token-plan-card-compact"]},x.length>1?m.createElement(hy,{className:my["mobile-group-tabs"],tabClassName:my["mobile-group-tab"],tabActiveClassName:my["mobile-group-tab-active"],activeIndex:j,items:x.map(e=>e.groupTitle),onChange:E,ariaLabel:"\u5546\u54c1\u7248\u672c"}):null,o?m.createElement("aside",{className:my["invite-action"],"aria-label":"\u9080\u8bf7\u597d\u53cb"},a?m.createElement("img",{className:my["invite-icon"],src:a,alt:"","aria-hidden":"true"}):null,m.createElement("strong",{className:my["invite-prompt"]},wy(i)),m.createElement($f,d(l({},N),{className:my["invite-button"]}))):null,x.length?m.createElement("div",{className:my.groups,style:{"--group-count":x.length}},x.map((e,t)=>{var r;const n=k[t]||0,o=e.tabs[n];return m.createElement("section",{className:`${my.group} ${j===t?my["group-active"]:""}`,key:`${e.groupTitle}-${t}`},m.createElement("header",{className:my["group-header"]},m.createElement(pa,{level:2,appressed:!0,className:my["group-title"]},e.groupTitle),e.tabs.length?m.createElement(hy,{className:my["period-tabs"],tabClassName:my["period-tab"],tabActiveClassName:my["period-tab-active"],activeIndex:n,items:e.tabs.map(e=>e.label),onChange:e=>S(r=>d(l({},r),{[t]:e})),ariaLabel:`${e.groupTitle}\u4ed8\u6b3e\u5468\u671f`}):null),(null==(r=null==o?void 0:o.products)?void 0:r.length)?m.createElement("div",{className:my.products,style:{"--product-count":o.products.length}},o.products.map((e,t)=>m.createElement(vy,{product:e,isLogin:_,key:`${e.goodId}-${t}`}))):m.createElement("div",{className:my["group-empty"]},"\u5f53\u524d\u5468\u671f\u6682\u65e0\u5546\u54c1"))})):m.createElement("div",{className:my["empty-state"]},"\u6682\u65e0\u5546\u54c1\u914d\u7f6e"))))}});
biu.define({name:"@ali/hmod-adc-pd-coding-plan-ai-product-card-button",version:"0.0.6",dependencies:{react:"^16.8.1"}},function(e,t,r){"use strict";const n=e("react");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=function(e,t){return new URLSearchParams(e).get(t)},d=function(){var e=!!navigator.userAgent.toLowerCase().match(/(android|iphone|ipod|windows\sphone)/gm);return{isMobile:e||window.innerWidth<1056,isPhone:e}},p=function(){return s(function e(){o(this,e),u(this,"cache",void 0),window.__good_cache_data||(window.__good_cache_data={}),this.cache=window.__good_cache_data},[{key:"setDelivery",value:function(e,t){this.cache["_delivery_".concat(e)]=t}},{key:"getDelivery",value:function(e){return this.cache["_delivery_".concat(e)]}},{key:"setGood",value:function(e,t){this.cache["_good_".concat(e)]=t}},{key:"getGood",value:function(e){return this.cache["_good_".concat(e)]}}])}();function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y={RAM_USER_HAS_NOT_FOR_PRICE:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u63a7\u5236\u53f0\u6388\u6743\uff0c\u9700\u8981\u6388\u6743\u7684Action\u4e3a\uff1abss:QueryPrice",FC_USER_HAS_NOT_FOR_PRICE:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u8d39\u7528\u4e2d\u5fc3\u6388\u6743\uff0c\u9700\u6388\u6743\u7684\u6743\u9650\u70b9code\u4e3a\uff1aqueryprice"},P={cloud_efficiency:"\u9ad8\u6548\u4e91\u76d8",cloud_essd:"ESSD\u4e91\u76d8",cloud_ssd:"SSD\u4e91\u76d8",cloud_essd_entry:"ESSD Entry",cloud_auto:"ESSD AutoPL"},g="\u4f01\u4e1a\u4e13\u4eab",b="\u65b0\u4eba\u4e13\u4eab",_="\u4e2a\u4eba\u4e13\u4eab",x={"12:Month":"1\u5e74","24:Month":"2\u5e74","36:Month":"3\u5e74"},w="".concat("\xa5","***"),k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(void 0===e)return"";var r=Number(e);return(Math.round(r*Math.pow(10,t-2))/Math.pow(10,t)).toFixed(t)},C=function(e){var t=e.unit,r=e.digital,n=e.money,o=e.noPermission,i=void 0!==o&&o,a=e.ignorePermission,c=void 0!==a&&a,s=e.defaultCondition,u=void 0===s?function(){}:s;return i&&!c?w:[void 0,null].includes(n)||u()?"":function(e){var t=e.currency,r=void 0===t?"\xa5":t,n=e.money,o=void 0===n?"":n,i=e.unit,a=void 0===i?"":i;return"".concat(r).concat(o).concat(a)}({money:k(n,r),unit:t})},I=function(e){var t=e.articleItemResults,r=0,n=0,o=0;return t.forEach(function(e){e.price&&2!==e.chargeType&&e.price.discountedPrice>-1&&(r||(r=0),n||(n=0),r+=e.price.discountedPrice||0,n+=e.price.totalPrice||0,o+=e.price.discount||0)}),{discountedPrice:r,totalPrice:n,discount:o}},O=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o=t.code,i=t.price,a=t.priceAdjustTime,c=(null==t?void 0:t.depreciateInfo)||{},s=r,u=null==e?void 0:e.isPackage,l=null==e?void 0:e.isPostPay,d=null==e?void 0:e.isResourcePackage;if(!(u||i&&void 0!==i.discountedPrice))return{};l&&i.unit&&(s=i.unit.replace("\u5143","")),d&&(s="");var p=null,f=null,h=0,m=null;if(u){var v=t.articleItemResults,P=I({articleItemResults:void 0===v?[]:v});p=P.discountedPrice,f=P.totalPrice,h=P.discount}else f=i.totalPrice,p=i.discountedPrice,h=i.discount,m=i.channelPrice;var g=C({ignorePermission:!0,noPermission:!!o,money:f,unit:s,digital:n}),b=C({noPermission:!!o,money:p,unit:s,digital:n}),_=C({noPermission:o&&m,money:m,unit:s,digital:n}),x=C({ignorePermission:!0,money:c.listPrice,unit:s,digital:n,defaultCondition:function(){return c.listPrice<=0}}),w=i.cheapStandAmount,k=C({ignorePermission:!0,money:w,unit:s,digital:n,defaultCondition:function(){return w<=0}}),O=void 0!==c.cheapRate&&null!==c.cheapRate?"".concat(Math.round(1e4*c.cheapRate)/100,"%"):"";return{dailyPrice:g,promotionPrice:b,discount:C({ignorePermission:!0,money:h,unit:s,digital:n,defaultCondition:function(){return h<=0}}),hasDiscount:h>0,queryFailCode:o||"",codeContent:y[o],channelPrice:_,listPrice:x,cheapStandAmount:k,cheapRate:O,isContractActivity:c.isContractActivity||!1,priceAdjustTime:a}};function E(e){if(!e)return"";var t=m(e.match(/^(\D*)(\d+)(\.\d+)?(.*)$/),5),r=t[1],n=t[2],o=void 0===n?"":n,i=t[3],a=void 0===i?".00":i,c=t[4],s=void 0===c?"":c,u=s;if(/\//.test(u)){var l=(u=s.replace(/\s/g,"").replace(/^\//,"")).split("/");l.length>2&&(l.length=2),u=l.join("/")}var d="";return o&&(d=(r||"\uffe5")+o+a),u&&(d+="/".concat(u)),/\/\u5143/.test(d)&&(d=d.replace(/\/\u5143/,"")),d}function R(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(u){return void r(u)}c.done?t(s):Promise.resolve(s).then(n,o)}function S(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){R(i,n,o,a,c,"next",e)}function c(e){R(i,n,o,a,c,"throw",e)}a(void 0)})}}function j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T,A={exports:{}},D={exports:{}};(T=D).exports=function(e,t){this.v=e,this.k=t},T.exports.__esModule=!0,T.exports.default=T.exports;var L=D.exports,N={exports:{}},M={exports:{}};!function(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(c){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(M);var U=M.exports;!function(e){var t=U;function r(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var n,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.toStringTag||"@@toStringTag";function s(e,r,i,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return t(s,"_invoke",function(e,t,r){var i,a,c,s=0,l=r||[],d=!1,p={p:0,n:0,v:n,a:f,f:f.bind(n,4),d:function(e,t){return i=e,a=0,c=n,p.n=t,u}};function f(e,t){for(a=e,c=t,o=0;!d&&s&&!r&&o<l.length;o++){var r,i=l[o],f=p.p,h=i[2];e>3?(r=h===t)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=f&&((r=e<2&&f<i[1])?(a=0,p.v=t,p.n=i[1]):f<h&&(r=e<3||i[0]>t||t>h)&&(i[4]=e,i[5]=t,p.n=h,a=0))}if(r||e>1)return u;throw d=!0,t}return function(r,l,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,h),a=l,c=h;(o=a<2?n:c)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(r="next"),o=i[r]){if(!(o=o.call(i,c)))throw TypeError("iterator result is not an object");if(!o.done)return o;c=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=n}else if((o=(d=p.n<0)?c:e.call(t,p))!==u)break}catch(m){i=n,a=1,c=m}finally{s=1}}return{value:o,done:d}}}(e,i,a),!0),s}var u={};function l(){}function d(){}function p(){}o=Object.getPrototypeOf;var f=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),h=p.prototype=l.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,t(e,c,"GeneratorFunction")),e.prototype=Object.create(h),e}return d.prototype=p,t(h,"constructor",p),t(p,"constructor",d),d.displayName="GeneratorFunction",t(p,c,"GeneratorFunction"),t(h),t(h,c,"Generator"),t(h,a,function(){return this}),t(h,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:s,m:m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(N);var V=N.exports,B={exports:{}},q={exports:{}},F={exports:{}};!function(e){var t=L,r=U;e.exports=function e(n,o){function i(e,r,a,c){try{var s=n[e](r),u=s.value;return u instanceof t?o.resolve(u.v).then(function(e){i("next",e,a,c)},function(e){i("throw",e,a,c)}):o.resolve(u).then(function(e){s.value=e,a(s)},function(e){return i("throw",e,a,c)})}catch(l){c(l)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,r){function n(){return new o(function(t,n){i(e,r,t,n)})}return a=a?a.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(F);var G=F.exports;!function(e){var t=V,r=G;e.exports=function(e,n,o,i,a){return new r(t().w(e,n,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(q);var K=q.exports;!function(e){var t=K;e.exports=function(e,r,n,o,i){var a=t(e,r,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}(B);var Y=B.exports,Q={exports:{}};!function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Q);var H=Q.exports,X={exports:{}},$={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($);var z=$.exports;!function(e){var t=z.default;e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(X);var J=X.exports;!function(e){var t=L,r=V,n=Y,o=K,i=G,a=H,c=J;function s(){var u=r(),l=u.m(s),d=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,f[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,c(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=s=function(){return{wrap:function(e,t,r,n){return u.w(h(e),t,r,n&&n.reverse())},isGeneratorFunction:p,mark:u.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:i,async:function(e,t,r,i,a){return(p(t)?o:n)(h(e),t,r,i,a)},keys:a,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}(A);var W=(0,A.exports)(),Z=W;try{regeneratorRuntime=W}catch(ze){"object"==typeof globalThis?globalThis.regeneratorRuntime=W:Function("r","regeneratorRuntime = r")(W)}const ee=j(Z);function te(){return re.apply(this,arguments)}function re(){return(re=S(ee.mark(function e(){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.$ACE){e.next=2;break}return e.abrupt("return",window.$ACE);case 2:return e.next=4,oe("//g.alicdn.com/??aliyun/util/".concat("1.2.30","/index.js"));case 4:return e.abrupt("return",window.$ACE);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}window.$ACE_LOADER=te;const ne={then:function(e){return te().then(e)}};function oe(e){return ie.apply(this,arguments)}function ie(){return(ie=S(ee.mark(function e(t){var r,n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=document.getElementsByTagName("head")[0],(n=document.createElement("script")).setAttribute("type","text/javascript"),n.setAttribute("src",t),r.appendChild(n),e.abrupt("return",new Promise(function(e){n.onload=function(){e()}}));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ae(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ce=function(e){return e.DailyDiscount="dailyDiscount",e.NinetyNinePrice="99Price",e.DoubleDiscount="doubleDiscount",e}({}),se=function(e){return e.DoubleDiscount="doubleDiscount",e}({});function ue(e){return le.apply(this,arguments)}function le(){return le=S(ee.mark(function e(t){var r,o,i,a,c,s,u,p,f,h,m,v,y,P,g,b,_,x,w,k,C,I,O,E,R,j,T,A,D,L,N,M=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=M.length>1&&void 0!==M[1]?M[1]:{},o=M.length>2?M[2]:void 0,i=!(M.length>3&&void 0!==M[3])||M[3],a=M.length>4?M[4]:void 0,c=t.isBuy,s=t.buyUrl,u=r.btnType||"pay",p=r.orderParams||{},1!==c||!s){e.next=1;break}return window.open(s,"_blank")||setTimeout(function(){window.open(s,"_blank")},50),e.abrupt("return");case 1:if(f=t._promationPriceResult,h=(void 0===f?{}:f).needCertifiedType,"individual_business"===(m=null==o?void 0:o.certifyAccountType)&&(m="enterprise"),!i||!h||"all"===h||m===h||!a&&!window.__ALIYUN_EXPERIENCE_ELEMENT__){e.next=4;break}return v="enterprise"===h,y=d().isMobile,P="\u5f53\u524d\u4ef7\u683c\u9650\u4e2a\u4eba\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4e2a\u4eba\u8d26\u53f7\u8d2d\u4e70\u6216\u76f4\u63a5\u8d2d\u4e70\u3002",v&&(P=y?"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u6309\u4e2a\u4eba\u7528\u6237\u4ef7\u683c\u76f4\u63a5\u8d2d\u4e70":"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u5c06\u8be5\u8d26\u53f7\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u3002"),e.prev=2,g=a||window.__ALIYUN_EXPERIENCE_ELEMENT__,b=g.Dialog,_=g.Button,x=b.show({v2:!0,title:"\u6e29\u99a8\u63d0\u793a",content:P,footer:n.createElement("div",{className:"marketing-goods-dialog-footer"},v&&!y&&n.createElement("a",{href:"https://account.console.aliyun.com/v2/?#/authc/home",target:"_blank",style:{marginRight:10}},n.createElement(_,{type:"primary"},"\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1")),n.createElement(_,{type:v&&y?"primary":"secondary",onClick:function(){x.hide(),ue(t,r,o,!1,a)}},"cart"===u?"\u52a0\u5165\u8d2d\u7269\u8f66":"\u76f4\u63a5\u8d2d\u4e70"))}),e.abrupt("return");case 3:e.prev=3,e.catch(2);case 4:if(w=t._promationPriceResult.promotionResults,!((k=Object.keys(w))&&k.length>0)){e.next=11;break}return e.prev=5,C=[],k.forEach(function(e){var t,r=w[e],n=null==r||null===(t=r.promotionOption)||void 0===t||null===(t=t.activityExtInfo)||void 0===t?void 0:t.activityId;n&&C.push(n)}),C=Array.from(new Set(C)),I=a||window.__ALIYUN_EXPERIENCE_ELEMENT__,O=I.Dialog,E=I.Button,e.next=6,ne;case 6:return R=e.sent,e.next=7,R.get("Promotion");case 7:return j=e.sent,T=j.Verify,A=l(window.location.search,"preVerify"),e.next=8,Promise.all(C.map(function(e){return T.queryRisk(e,"1"===A)}));case 8:if(!(e.sent.some(function(e){return!e.status})&&O&&E)){e.next=9;break}return D=O.show({v2:!0,title:"\u6e29\u99a8\u63d0\u793a",content:n.createElement("span",null,"\u7cfb\u7edf\u68c0\u6d4b\u5230\u60a8\u7684\u8d26\u53f7\u65e0\u6cd5\u53c2\u52a0\u6b64\u4f18\u60e0\u6d3b\u52a8\uff0c\u60a8\u53ef\u63d0\u4ea4\u6750\u6599\u8fdb\u884c\u7533\u8bc9\uff0c\u7533\u8bc9\u901a\u8fc7\u540e\u53ef\u53c2\u52a0\u6d3b\u52a8"),footer:n.createElement("div",{className:"marketing-goods-dialog-footer"},n.createElement(E,{type:"primary",onClick:function(){D.hide(),window.open("https://smartservice.console.aliyun.com/service/self-service-center/search?id=27874&mode=toolPage&trackFrom=topic-MICRO_APP","_blank")}},"\u524d\u5f80\u63d0\u4ea4"))}),e.abrupt("return");case 9:e.next=11;break;case 10:e.prev=10,e.catch(5);case 11:if(t.product){e.next=12;break}return e.next=12,t.init();case 12:if(!(L=t.children)||!L.length){e.next=13;break}return e.next=13,Promise.all(L.map(function(){var e=S(ee.mark(function e(t){var r;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=0,t&&t.selectedCardIndex&&(r=t.selectedCardIndex),!t||t.product){e.next=1;break}return e.next=1,t.init();case 1:t&&t.product&&t.product.setSKU(r);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 13:if(N={id:t?"".concat(0,".",t.goodsId,".").concat(t.goodsId):null,bizChannel:"",fromApp:"",orderParams:p,buttons:[u],moduleVersion:3},!t.isPackage){e.next=15;break}return t.product.setPackageName(t.name),t.product.setPackageGoods(L),e.next=14,t.product.startPackagePopUpBuy(N);case 14:e.next=16;break;case 15:return t.product.setSKU(t.selectedCardIndex),e.next=16,t.product.popUpBuy(N);case 16:case"end":return e.stop()}},e,null,[[2,3],[5,10]])})),le.apply(this,arguments)}var de=function(e){return e.FlashSale="flash_sale_activity_id",e.LowPrice="low_price_activity_id",e}({}),pe=function(e){return e[e.PostPay=2]="PostPay",e[e.PrePay=1]="PrePay",e}({});function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var he=function(e){var t=e.good,r=e.order,n=void 0===r?0:r,o=t.commodityCode,i=t.goodsId,a=t.id;return"".concat(o,".").concat(i||a,".").concat(n)},me=function(e){var t=e.goodsList,r=void 0===t?[]:t,n=e.planCode,o=void 0===n?"":n;return r.map(function(e,t){return new Be({good:e,planCode:o,order:t})})},ve=function(e){var t=e.articleItemResults,r=e.activityChannel,n=e.promotionPriceData,o=(null==t?void 0:t.length)>0?t[0]:{};if(r&&o&&o.price){var i,a=(null==n||null===(i=n.articleItemResults)||void 0===i?void 0:i.length)>0?null==n?void 0:n.articleItemResults[0]:{},c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},(null==o?void 0:o.price)||{});o.price=null==a?void 0:a.price,o.price.channelPrice=null==c?void 0:c.discountedPrice,o.price.channelTotalPrice=null==c?void 0:c.discountedTotalPrice,o.price.channelDiscount=null==c?void 0:c.discount}if(o&&o.price){var s,l,d=o.depreciateInfo,p=void 0===d?{}:d;if(p){var f=p.isContractActivity,h=p.contractActivity;if(f){var m=(void 0===h?{}:h).finalFee;o.price.cheapStandAmount=m||o.price.totalPrice}else o.price.cheapStandAmount=p.cheapStandAmount||p.originalStandAmount;o.price.listPrice=p.listPrice}var v=function(e){if(e){var t=Object.entries(e).find(function(e){var t,r=e[1];return(null==r||null===(t=r.promotionOption)||void 0===t?void 0:t.levelCategory)===se.DoubleDiscount});if(t){var r=t[1].promotionOption,n=void 0===r?{}:r;return{doubleDiscount:n.discount,remainDiscountQuota:n.remainDiscountQuota}}}}(null==n?void 0:n.promotionResults);v&&(o.price.doubleDiscount=v.doubleDiscount,o.price.remainDiscountQuota=v.remainDiscountQuota),o.price.activityDiscount=null!=v&&v.doubleDiscount&&null!=o&&null!==(s=o.price)&&void 0!==s&&s.discount?o.price.discount-v.doubleDiscount:null==o||null===(l=o.price)||void 0===l?void 0:l.discount}return o},ye=function(e){var t=(null==e?void 0:e.articleItemResults)||[],r={discountedPrice:0,totalPrice:0,discount:0},n=I({articleItemResults:t}),o=n.discountedPrice,i=n.totalPrice,a=n.discount;return r.discount=a||0,r.discountedPrice=o||0,r.totalPrice=i||0,r.totalPrice&&(r.listPrice=r.totalPrice),r.discount&&(r.activityDiscount=r.discount),r},Pe=function(e,t){var r=e.filter(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).price,t=void 0===e?{}:e;return t&&t.discountedPrice>=0&&t.unitPrice>0}),n=[];return r&&r.length>0&&r.forEach(function(e,r){var o=ve({articleItemResults:[e]}),i=o.name,a=o.depreciateInfo,c=o.price;n.push({id:"".concat(r,"-").concat(i),name:i,depreciateInfo:a||{},price:c,priceAdjustTime:t})}),n},ge=function(){var e=S(ee.mark(function e(t,r){var n,o,i;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object.keys(t),o=Object.keys(r),n&&n.length>0?n.forEach(function(e){o.forEach(function(t){e===t&&(i=e)})}):i=o&&o.length>0?o[0]:"",e.abrupt("return",{labelItemKey:i,hasPromotion:o&&o.length>0});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}();const be=function(e){var t=e||{},r=t.enterpriseUserOnly,n=t.personalUserOnly;return t.newUserOnly?{type:"newUser",text:b}:r?{type:"enterprise",text:g}:n?{type:"personal",text:_}:null},_e=function(e,t,r){var n=e;return"12:Month"===t?n="1\u5e74":"24:Month"===t?n="2\u5e74":"36:Month"===t&&(n="3\u5e74"),"systemdisk"===r&&P[t]&&(n=P[t]),n=n.replace(/([0-9]+)\s+/g,"$1")},xe=function(e,t){var r=e[t];return"systemdisk"===t?r=r.systemdiskCategory||r.systemDiskCategory:"vm_bandwidth"!==t&&"bandwidth"!==t||(r.internetMaxBandwidthOut||r.internetMaxBandwidthOut>-1)&&(r=r.internetMaxBandwidthOut),r},we=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.defaultValues,n=t.isPackage,o=t.selectedCardIndex,i=t.children;return n?(e=[],i.forEach(function(t,r){t.defaultValues.forEach(function(n){if(n.cardIndex===t.selectedCardIndex){var o=n.orderParams;o.uniqLabel=t.uniqKey||he({good:t,order:r}),e.push(o)}})})):(r.forEach(function(r){r.cardIndex===o&&((e=r.orderParams).uniqLabel=t.uniqKey||he({good:t}))}),!e&&r[0]&&((e=r[0].orderParams).uniqLabel=t.uniqKey||he({good:t}))),e};function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ke(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Ie=function(e){return"number"==typeof e?"".concat(e):e},Oe=function(e,t,r,n,o,i){var a,c=[],s=[];if(e<t.length){var u=o[a=t[e].code];if(r.forEach(function(e){var t=e.value,r=e.orderParams;if(t){var n=Object.keys(t);if(!n||n.length<1)return!1;var o,i,s=xe(t,a);if("instance_type"!==a)o=null==r||null===(i=r.components)||void 0===i?void 0:i.find(function(e){return e.componentCode===a});o&&o.instanceProperty?function(e,t,r,n){var o=e.instanceProperty[0];if(o&&o.name&&!r.find(function(e){return e.value===t})){var i=_e(o.name,t,n);r.push({text:i,label:i,value:Ie(t)})}}(o,s,c,a):function(e,t,r,n){e&&e.options&&e.options.length>0&&e.options.forEach(function(e){var o=e.value||e.defaultValue;if(!o||Ie(o)===Ie(t)){var i=function(e){var t="";return"string"==typeof e.text?t=e.text:e.text&&e.text.title&&(t=e.text.title),t}(e);if("instance_type"===n){var a=i.split(" ");a&&a.length>0&&(i=a[0])}var c=r.find(function(e){return Ie(e.value)===Ie(t)});if(i||(i=t),i&&!c){var s=_e("".concat(i).concat(e.unit||""),t,n);r.push({text:s,label:s,value:Ie(o)})}}})}(u,s,c,a)}}),c&&c.length>0){var l=function(e,t,r,n){var o=0;return e&&e.forEach(function(e){e.code===t&&r.forEach(function(t,r){var i=n[e.code];Ie(t.value)===i&&(o=r)})}),o}(t,a,c,i),d=c[l];i[a]=Ie(d.value),r.forEach(function(e){var t=e.value;if(t){var r=Object.keys(t);if(!r||r.length<1)return!1;var n=xe(t,a);Ie(d.value)===Ie(n)&&s.push(e)}})}if(e<10){var p=s.length>0?s:r;Oe(e+1,t,p,n,o,i)}}return a&&s.length>0&&(n[a]=c),s},Ee="1"===l(window.location.search,"prePrice")?"https://pre-t.aliyun.com":"https://t.aliyun.com",Re={QUERY_PRICE:"".concat(Ee,"/abs/promotion/queryPrice"),QUERY_PRICE_BATCH:"".concat(Ee,"/abs/promotion/queryPriceBatch"),QUERY_PRICE_BATCH_STEALTH:"".concat(Ee,"/abs/promotion/queryPriceBatchStealth")},Se=function(e,t){var r=function(e){for(var t=null,r=0,n=[de.FlashSale,de.LowPrice];r<n.length;r++){var o=n[r];if(e[o]){t=o;break}}return t}(t),n=null;if(r&&(n=t[r]),n)switch(r){case de.FlashSale:return e.orderParams.flash_sale_activity_id=n,e.orderParams.no_coupons=!0,void(e.orderParams.watchActivityIdList=n);case de.LowPrice:return void(e.orderParams.watchActivityIdList=n);default:return}},je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){if(null!=e&&e.orderParams||(e.orderParams={}),"object"===Object.prototype.toString.call(e.orderParams).slice(8,-1).toLowerCase()){var r=t.isManualQueryPrice,n=void 0!==r&&r;e.orderParams.pricing_trigger_type=n?"manual":"default"}return e}},Te=function(e){var t,r=e.goodsId,n=e.orderParams,o=void 0===n?{}:n,i=e.planId,a=e.activityId,c=e.orderParamsOption,s=e.isBatch,u=void 0!==s&&s;Array.isArray(o)?(a&&o.forEach(function(e){Se(e,a)}),o.forEach(function(e){je(e,c)}),t=o):(a&&Se(o,a),je(o,c),t=[o]);var l={commodityId:r,commodities:t};return i&&(l.planId=i),u&&(l.bizOccasion="queryPrice"),l};const Ae=function(){var e=S(ee.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,p,f,h,m;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.goodsId,n=t.orderParams,o=void 0===n?{}:n,i=t.planId,a=t.activityChannel,c=t.stealth,s=t.activityId,u=t.orderParamsOption,d=Te({goodsId:r,orderParams:o,planId:i,activityId:s,orderParamsOption:void 0===u?{}:u}),p=Re.QUERY_PRICE,a?(p=Re.QUERY_PRICE_BATCH,c&&(p=Re.QUERY_PRICE_BATCH_STEALTH),f=JSON.stringify(d),(f=JSON.parse(f)).commodities.forEach(function(e){e&&e.orderParams&&(e.orderParams.no_coupons=!0,e.orderParams.aliyunActivityChannel=a)}),(h=[]).push(f),h.push(d),l=JSON.stringify(h)):(c&&(p="".concat(Ee,"/abs/promotion/queryPriceStealth")),l=JSON.stringify(d)),e.next=1,ne.then(function(){var e=S(ee.mark(function e(t){return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.Request.post(p,{param:l});case 1:m=e.sent;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:return e.abrupt("return",m);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var De=function(e){var t=e;if(e){var r=t.split(" ");if(r&&r.length>0&&"string"==typeof r[0]){var n=[];r[0].split("-").forEach(function(e){n.push(1*e)}),t=n.join(".")}}return t},Le=function(){var e=S(ee.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,p,f,h,m,v,P,g,b,_,x,w;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,n=t.activityChannel,o=t.planId,Array.isArray(r.data)&&n?(c=null===(s=r.data[0])||void 0===s?void 0:s.data,a=null===(u=r.data[1])||void 0===u?void 0:u.data,i=r.data[0].code||200):(a=r.data,i=r.code),d=(null==(l=c||a)?void 0:l.promotionResults)||{},p=(null==l?void 0:l.promotionLabelInfo)||{},e.next=1,ge(p,d);case 1:return f=e.sent,h=f.labelItemKey,m=f.hasPromotion,v=null==l?void 0:l.articleItemResults,P={},o?(g=ye(l),P={price:g,hasPromotion:m,articleItemResults:v,promotionResults:d}):(_=ve({articleItemResults:v,activityChannel:n,promotionPriceData:a}),x=De((null==_||null===(b=_.depreciateInfo)||void 0===b?void 0:b.startTime)||""),P={price:_.price,promotionResults:d,promotionLabelInfo:p,depreciateInfo:(null==_?void 0:_.depreciateInfo)||{},labelItemKey:h,hasPromotion:m,priceAdjustTime:x,watchActivityResultList:null==_?void 0:_.watchActivityResultList},(w=_.chargeType===pe.PostPay)&&(P.isPostPay=w,P.postPayModules=Pe(_.moduleResults,x))),200!==i&&-1!==Object.keys(y).indexOf(i)&&(P.code=i),e.abrupt("return",P);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();const Ne=function(){var e=S(ee.mark(function e(t){var r,n,o,i;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.planId,n=t.activityChannel,e.next=1,Ae(t);case 1:return o=e.sent,e.next=2,Le({data:o,activityChannel:n,planId:r});case 2:return i=e.sent,e.abrupt("return",i);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var Me=["refresh"];function Ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Be=function(){return s(function e(t){var r,n=this,i=t.good,a=t.planCode,c=t.order,s=void 0===c?0:c;o(this,e),u(this,"sku",[]),u(this,"scm",void 0),u(this,"title",void 0),u(this,"name",void 0),u(this,"description",void 0),u(this,"productCode",void 0),u(this,"commodityCode",void 0),u(this,"goodsId",void 0),u(this,"mcm_code",void 0),u(this,"mcm_id",void 0),u(this,"selectSkuId",0),u(this,"children",void 0),u(this,"parent",void 0),u(this,"_rawGood",void 0),u(this,"price",void 0),u(this,"postPayPrice",void 0),u(this,"commodityType",void 0),u(this,"isBuy",void 0),u(this,"buyUrl",void 0),u(this,"productDetailLink",void 0),u(this,"commodityDetailUrl",void 0),u(this,"isPackage",!1),u(this,"packagecode",void 0),u(this,"planId",void 0),u(this,"goodsType",void 0),u(this,"planItemId",void 0),u(this,"defaultValues",[]),u(this,"product",void 0),u(this,"_commodityKeys",void 0),u(this,"_checkedFeatureList",void 0),u(this,"_promationPriceResult",void 0),u(this,"commodity",void 0),u(this,"selectedCardIndex",0),u(this,"selectedComponentValue",{}),u(this,"isPostPay",void 0),u(this,"hasPostPay",void 0),u(this,"activityId",void 0),u(this,"isResourcePackage",void 0),u(this,"uniqKey",void 0),u(this,"planInstanceIsRequired",void 0),u(this,"orderParamsOption",{isManualQueryPrice:!1}),u(this,"_displayComponents",void 0),u(this,"_promotionTags",void 0),u(this,"_staticLoaded",void 0),u(this,"_staticLabels",void 0),u(this,"getTimeUnit",function(e){var t=e.orderParams,r="";if(!e.isPostPay){var o=t?x["".concat(t.duration,":").concat(t.pricingCycle)]:"";r=n.formatTime(o,t)}return r}),i&&i.defaultValues&&i.defaultValues.forEach(function(e){var t=e.values;t&&t.forEach(function(e){n.sku.push({config:e.value})})}),this.uniqKey=he({good:i,order:s}),this._rawGood={commodityCode:i.commodityCode,specCode:i.itemCode,productCode:i.productCode,accessories:{commodityCode:i.commodityCode,specCode:i.itemCode,productCode:i.productCode,commodity:i.modules?i.modules.commodity:void 0},title:i.itemName,name:i.itemName,sku:this.sku,goodsId:i.id,id:i.id,itemId:i.itemId,actPromotionCommodityAttributeList:i.actPromotionCommodityAttributeList},a&&this._rawGood&&(this._rawGood.accessories.planCode=a),this._staticLoaded=i.staticLoaded||i.defaultValues&&i.defaultValues.length>-1,this.scm=i.scm,this.productCode=i.productCode,this.commodityCode=i.commodityCode,this.goodsId=i.id,this.mcm_code="".concat(this.productCode,".").concat(this.commodityCode),this.mcm_id="".concat(0,".",i.id,".").concat(i.id),this.selectSkuId=0,this.children=i.children||[],this.children.forEach(function(t){t instanceof e&&(t.setParent(n),t.selected=!0)}),this.title=i.itemName,this.name=i.itemName,this.description=i.description;var l,d,p=i.defaultValues||[];this.setDefaultValues(i.defaultValues),this.commodity=(l=i.modules,d=null,l&&l.commodity?d=l.commodity:l&&l.domainParams&&(d=l.domainParams),d),this.price=i.price;var f=i.actPromotionCommodityAttributeList,h=He(f,"post_pay_expenses_item");this.postPayPrice=h&&JSON.parse(h);var v=He(f,"market_commodity_labels");this._staticLabels=v&&v.split(",")||[],this.commodityType=i.commodityType,this.isBuy=i.isBuy,this.buyUrl=i.buyUrl,this.productDetailLink=i.productDetailLink,this.commodityDetailUrl=i.commodityDetailUrl,this.hasPostPay=i.hasPostPay;var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("plan"===e.comType){var r=e.actPromotionCommodityAttributeList,n=He(void 0===r?[]:r,"ntm_plan_id"),o=n&&Number(n)||void 0,i=e.commodityCode;return t&&(t.accessories.goodsType="startPackage",t.accessories.planCode=e.commodityCode),{goodsType:"startPackage",isPackage:!0,packagecode:i,planId:o,_rawGood:t}}if("plan_commodity"===e.comType){var a=e.actPromotionCommodityAttributeList.find(function(e){return"planItemId"===e.attrCode}),c=(null==a?void 0:a.attrValue)&&1*a.attrValue||null;t&&(t.accessories.planItemId=c);var s="boolean"!=typeof e.planInstanceIsRequired||e.planInstanceIsRequired;return t.accessories.defaultChecked=!0,{_rawGood:t,planInstanceIsRequired:s}}return!1}(i,this._rawGood);if(Object.assign(this,y),this._commodityKeys=this.resetCommodityKeys((null===(r=p[0])||void 0===r?void 0:r.selectedCommodityKeys)||[]),!this.isPackage){var P={};if(this.commodity){Oe(0,this._commodityKeys,this.defaultValues,P,this.commodity,this.selectedComponentValue);var g=Object.keys(P);g&&g.length<3&&(P=this.groupStaticModule(P))}else P=this.groupStaticModule(P);this._displayComponents=P}var b=m([de.FlashSale,de.LowPrice].map(function(e){return He(f,e)}),2),_=b[0],w=b[1];(_||w)&&(this.activityId=u(u({},de.FlashSale,_),de.LowPrice,w));var k=this.getPromationCommodity(i,"commodity_sub_type");k&&(this.isResourcePackage="resourcePackageCommodity"===k)},[{key:"getPromationCommodity",value:function(e,t){var r=e.actPromotionCommodityAttributeList,n=void 0===r?[]:r,o=n&&n.find(function(e){return e.attrCode===t});return o&&o.attrValue}},{key:"setDefaultValues",value:function(e){var t,r=[];e&&(e.forEach(function(e,t){if(0===t){var n=e.values;n&&n.forEach(function(e,t){r.push(Ve(Ve({},e),{},{cardIndex:t}))})}}),this.defaultValues=r,this._checkedFeatureList=null===(t=e[0])||void 0===t?void 0:t.checkedFeatureList)}},{key:"init",value:(i=S(ee.mark(function e(){var t=this;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ne.then(function(){var e=S(ee.mark(function e(r){var n,o;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.get("GoodsService");case 1:n=e.sent,o=n.getProduct(t._rawGood),t.product=o;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"setSku",value:function(e){this.selectSkuId=e}},{key:"handlePopUpBuy",value:(n=S(ee.mark(function e(t,r){var n=this;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return!window.__ALIYUN_EXPERIENCE_REACT__&&window.React&&(window.__ALIYUN_EXPERIENCE_REACT__=window.React),!window.__ALIYUN_EXPERIENCE_REACT_DOM__&&window.ReactDOM&&(window.__ALIYUN_EXPERIENCE_REACT_DOM__=window.ReactDOM),e.next=1,ne.then(function(){var e=S(ee.mark(function e(o){var i,a,c,s,u;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,o.get("Account");case 1:return i=e.sent,e.next=2,Qe();case 2:if(a=e.sent){e.next=3;break}return i.toLogin(),e.abrupt("return");case 3:if(!a||null!==a.certifyAccountType){e.next=4;break}return c=n._promationPriceResult,s=(void 0===c?{}:c).needCertifiedType,u={title:"\u6e29\u99a8\u63d0\u793a"},"personal"!==s&&"enterprise"!==s||(u.subjectType=s),i.toCertificate(u),e.abrupt("return");case 4:return e.next=5,ue(n,t,a,!0,r);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})},{key:"addCart",value:(r=S(ee.mark(function e(){var t,r,n=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},r=n.length>1?n[1]:void 0,e.next=1,this.handlePopUpBuy({orderParams:null==t?void 0:t.orderParams,btnType:"cart"},r);case 1:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"resetCommodityKeys",value:function(e){var t,r=this.commodity,n=[],o=this.defaultValues;(r&&o&&o.length>0&&o.forEach(function(t){if(t.orderParams){var o=t.orderParams.components;o&&(o.forEach(function(t){e.find(function(e){return t.componentCode===e})&&r[t.componentCode]&&(n.find(function(e){return e.code===t.componentCode})||n.push({code:t.componentCode,name:r[t.componentCode].name}))}),["order_time","ord_time","order_num"].forEach(function(t){e.find(function(e){return e===t})&&r[t]&&(n.find(function(e){return e.code===t})||n.push({code:t,name:r[t].name}))}))}}),!r||n&&n.length<3)&&((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){e&&e.checked&&n.length<3&&n.push({code:e.code,name:e.name})});return n}},{key:"groupStaticModule",value:function(e){var t,r=this,n=Ve({},e);return((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){if(e&&e.checked){var t=r._checkedFeatureList.options.find(function(t){return t.value===e.code});t&&(n[e.code]=[{text:t.text,label:t.label,value:t.text}])}}),n}},{key:"getTitle",value:function(){return this.title}},{key:"getDescription",value:function(){return this.description}},{key:"hasLoaded",value:function(){return this._staticLoaded}},{key:"getDisplayComponents",value:function(){var e=this;if(!this.isPackage){var t=this._commodityKeys,r=this._displayComponents,n=[];return t.forEach(function(t){r[t.code]&&n.push({label:t,options:r[t.code],target:e})}),n}var o=[];return this.children.forEach(function(e){var t=e.getDisplayComponents();t&&(o=[].concat(v(o),v(t)))}),o.splice(0,3)}},{key:"formatTime",value:function(e,t){return!this.isPackage&&t?e?"/".concat(e):"/".concat(t.duration).concat(t.pricingCycleTitle):""}},{key:"setFormatPriceResult",value:function(e){var t,r,n=this,o=e.price,i=we(this),a=o.labelItemKey,c=o.promotionLabelInfo,s=o.promotionResults,u=o.hasPromotion,l=o.depreciateInfo,d=void 0===l?{}:l,p=o.articleItemResults,f=o.isPostPay,h=o.postPayModules,m=o.watchActivityResultList,y=this.getTimeUnit({orderParams:i,isPostPay:f}),P=O({isPackage:this.isPackage,isResourcePackage:this.isResourcePackage},o,y),g=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0===Object.keys(r).length||!n)return{};var o=r,i={tags:[]},a=(null===(e=o[n])||void 0===e?void 0:e.display)||[],c=(null==o||null===(t=o.common)||void 0===t?void 0:t.display)||[];return i.tags=[].concat(v(a),v(c)),i}(c,a),b=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0!==Object.keys(r).length){var o,i,a=(null==r||null===(e=r.common)||void 0===e?void 0:e.biz)||[],c=(null==r||null===(t=r.common)||void 0===t?void 0:t.extraInfo)||{},s=!1,u=!0,l=!0;try{var d=c.promotionBizLabels;for(var p in d)if(d.hasOwnProperty(p)){var f=d[p];if(f.promotionId===n){o=f.orderNumLimit;break}}s=c.sameIdLimit,i=c.userTimes,a.forEach(function(e){"NO_COUPON"===e?u=!1:"NO_REFUND"===e&&(l=!1)})}catch(h){}return{orderNumLimit:o,isSameIdLimt:s,userTimes:i,isCoupon:u,isRefund:l}}}(c,a);this._promotionTags=null==g?void 0:g.tags;var _=a&&(null==s?void 0:s[a])||void 0,x=null==c||null===(t=c.common)||void 0===t?void 0:t.extraInfo,w=x||{},k=w.enterpriseUserOnly,C=w.personalUserOnly;f&&h&&h.length>0?(this.isPostPay=!0,h.forEach(function(e){e.code=o.code,e.formatPrice=O({isPostPay:f,isResourcePackage:n.isResourcePackage},e,"",3)})):this.isPostPay=!1;var I=k?"enterprise":C?"personal":"all";o&&o.price&&y&&(o.price.pricingCycle=y.replace(/^\//,""));var E=[];return this.isPackage&&(E=function(e){var t=e.good,r=e.priceRes,n=t.children,o=r.articleItemResults,i=[];return n.forEach(function(e,n){var a=null==o?void 0:o.find(function(t){return t.tag===(e.uniqKey||he({good:e,order:n}))});if(a){var c={tag:a.tag};a.code=r.code;var s=a.price,u=a.depreciateInfo,l=a.chargeType,d=a.moduleResults,p=l===pe.PostPay,f=e.defaultValues.find(function(t){return t.cardIndex===e.selectedCardIndex}).orderParams,h=t.getTimeUnit({isPostPay:p,orderParams:f}),m=O({isPackage:e.isPackage,isResourcePackage:e.isResourcePackage},a,h);if(c.price=s,c.formatPrice=m,c.isPostPay=p,p){var v=De((null==u?void 0:u.startTime)||""),y=Pe(d,v);y&&y.length>0&&y.forEach(function(t){t.code=null==r?void 0:r.code,t.formatPrice=O({isPostPay:p,isResourcePackage:e.isResourcePackage},t,"",2)}),c.postPayModules=y}i.push(c)}else i.push(null)}),i}({good:this,priceRes:o})),this._promationPriceResult={promotionResults:s,price:null==o?void 0:o.price,promotionTags:this._promotionTags,depreciateInfo:d,formatPrice:P,promotionResult:_,hasPromotion:u,discountRule:b,is99Price:(null==_||null===(r=_.promotionOption)||void 0===r||null===(r=r.activityExtInfo)||void 0===r?void 0:r.discountScene)===ce.NinetyNinePrice||!1,articleItemResults:p,needCertifiedType:I,isPostPay:f,postPayModules:h,crowdTag:be(x),watchActivityResultList:m,articlePriceResults:E},this._promationPriceResult}},{key:"checkStaticPrice",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.price,r=e.commodityType,n=e.commodity,o=e.postPayPrice;if("notcommonbuy_notselfcreate"===r||!n&&t&&t.length>0){var i={},a={};if(t.forEach(function(e){"daily_price"===e.code?a.totalPrice=e.value:"promotion_price"===e.code&&(a.discountedPrice=e.value)}),i={price:a,formatPrice:{promotionPrice:E(a.discountedPrice),dailyPrice:E(a.totalPrice)}},o&&o.length>0){var c=[];o.forEach(function(e){var t=e.daily_price,r=e.promotion_price,n=e.groupId,o=e.expenses_name,i=E(t),a=E(r),s={totalPrice:e.daily_price,dailyPrice:i,promotionPrice:a,discountedPrice:e.promotion_price};c.push({id:n,name:o,price:s,formatPrice:{promotionPrice:E(s.discountedPrice),dailyPrice:E(s.totalPrice)}})}),i=Ce(Ce({},i),{},{isPostPay:!0,postPayModules:c})}return i}return!1}(this);return!!e&&(this.isPostPay=!!e.isPostPay,Ve(Ve({},e),{},{promotionTags:this._staticLabels}))}},{key:"getPrice",value:(t=S(ee.mark(function e(){var t,r,n,o,i,a,c,s=arguments;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:{},!(r=this.checkStaticPrice())){e.next=1;break}return e.abrupt("return",r);case 1:return n=t.activityChannel,o=t.stealth,i=t.needActivityId,a=we(this),e.next=2,Ke({goodsId:this.goodsId,orderParams:a,planId:this.planId,activityChannel:n,stealth:o,activityId:i?this.activityId:void 0,orderParamsOption:this.orderParamsOption});case 2:return c=e.sent,e.abrupt("return",this.setFormatPriceResult({price:c}));case 3:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"getComboPrice",value:(e=S(ee.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,p,f,h,v,y,P,g,b,_,x,w,k,O,E,R;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(n=t||{}).refresh,i=ae(n,Me),a=this._promationPriceResult,!o){e.next=2;break}return e.next=1,this.getPrice(i);case 1:a=e.sent;case 2:if(this.isPackage){e.next=3;break}return e.abrupt("return",a);case 3:return c=we(this),s=this.getTimeUnit({orderParams:c,isPostPay:a.isPostPay}),u=this.children||[],l=null===(r=a.articleItemResults)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.code,d=a.articleItemResults.filter(function(e){var t=e.key,r=u.find(function(e){return e.uniqKey===t});return r&&r.selected}),p=I({articleItemResults:d}),f=p.discountedPrice,h=p.totalPrice,v=p.discount,P={unit:s,digital:2},g=[{noPermission:l,money:f},{noPermission:l,money:y=h||0},{ignorePermission:!0,money:h},{ignorePermission:!0,money:v,defaultCondition:function(){return v<=0}}].map(function(e){return e=Object.assign(P,e),C(e)}),b=m(g,4),_=b[0],x=b[1],w=b[2],k=b[3],O={promotionPrice:_,listPrice:x,dailyPrice:w,activityDiscount:k},E=Object.assign(a.formatPrice||{},O),R=Object.assign(a.price||{},{discountedPrice:f,listPrice:y,totalPrice:h,discount:v,activityDiscount:v}),e.abrupt("return",Ve(Ve({},a),{},{price:R,formatPrice:E}));case 4:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"getStringValue",value:function(e){return"number"==typeof e?"".concat(e):e}},{key:"changeSku",value:function(e,t,r){var n=this;if(this.orderParamsOption.isManualQueryPrice=!0,this.selectedComponentValue[t]=this.getStringValue(e),this.isPackage)if(r&&r.target)r.target.changeSku(e,t);else for(var o=0;o<this.children.length;o++){if(this.children[o]._commodityKeys)if(this.children[o]._commodityKeys.find(function(e){return e.code===t})){this.children[o].changeSku(e,t);break}}else{var i={};if(this.commodity){var a=Oe(0,this._commodityKeys,this.defaultValues,i,this.commodity,this.selectedComponentValue),c=Object.keys(this.selectedComponentValue),s=a.find(function(e){var t=e.value;return c.every(function(e){return n.getStringValue(t[e])===n.selectedComponentValue[e]})});s&&(this.selectedCardIndex=s.cardIndex);var u=Object.keys(i);u&&u.length<3&&(i=this.groupStaticModule(i))}else i=this.groupStaticModule(i);this._displayComponents=i}}},{key:"setParent",value:function(e){this.parent=e}},{key:"selected",get:function(){if(this.parent)return!!this.planInstanceIsRequired||Boolean(this._rawGood.accessories.defaultChecked)},set:function(e){this.parent&&!this.planInstanceIsRequired&&(this._rawGood.accessories.defaultChecked=e)}},{key:"getSelectedGoods",value:function(){return this.isPackage?this.children.filter(function(e){return e.selected}):null}}]);var e,t,r,n,i}(),qe=new p;const Fe=function(){var e=S(ee.mark(function e(t){var r;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,ne.then(function(){var e=S(ee.mark(function e(n){var o,i,a;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o="https://alioth.alicdn.com/promotion-commodity-".concat(t),!qe.getGood(t)){e.next=1;break}i=qe.getGood(t),e.next=3;break;case 1:return e.next=2,n.Request.get(o,null,{withCredentials:!1,xsrfCookieName:""});case 2:(i=e.sent).scm="20140722.M_".concat(i.id,"._.V_1"),i.staticLoaded=!0,i&&"plan"===i.comType&&i.actPromotionCommodityDTOList&&(a=i.actPromotionCommodityDTOList.find(function(e){return"POSTPAY"===e.chargeType}),i.children=i.actPromotionCommodityDTOList,i.hasPostPay=!!a,i.children=me({goodsList:i.children,planCode:i.commodityCode})),qe.setGood(t,i);case 3:return i&&(r=new Be({good:i,planCode:i.commodityCode})),e.abrupt("return",{});case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();new p;const Ge=S(ee.mark(function e(){var t;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=2,ne.then(function(){var e=S(ee.mark(function e(r){var n;return ee.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.Request.get("https://bridge.aliyun.com/abs/home/queryUserBaseInfo");case 1:n=e.sent,t=n&&n.data;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e,null,[[1,3]])}));var Ke=Ne,Ye=Fe,Qe=Ge,He=function(e,t){if(e&&Array.isArray(e)){var r=e.find(function(e){return e.attrCode===t});return null==r?void 0:r.attrValue}};const Xe={"subscribe-btn":"ae59ea9b1bdc7e96ac2e340576b7af3e_subscribe-btn"},$e=n.memo(n.forwardRef(({card:e,goodData:t,buyHref:r,onTriggerBuy:o,children:i},a)=>{const{buttonText:c="",iconPosition:s="none",customizedStyle:u,background:l,hoverBackground:d}=e,p=[e.className,Xe["subscribe-btn"],u].filter(Boolean).join(" "),f="left"===s||"right"===s,h={};l&&(h["--btn-bg"]=l),d&&(h["--btn-hover-bg"]=d);const m=n.createElement(n.Fragment,null,"left"===s&&f&&i,n.createElement("span",null,c),"right"===s&&f&&i);return t?n.createElement("a",{ref:a,className:p,style:h,href:r,target:r?"_blank":void 0,rel:r?"noreferrer":void 0,onClick:o},m):n.createElement("a",{ref:a,className:p,style:h},m)}));$e.displayName="SubscribeButton";r.exports=({card:e,children:t})=>{const[r,o]=n.useState(null),i=n.useRef("idle"),a=n.useRef(null),[c,s]=n.useState(void 0),u=n.useRef(null),l=(e,t)=>{if(i.current=e,"done"===e&&t){const{isBuy:e,buyUrl:r}=t;1===e&&r&&s(r)}};n.useEffect(()=>{if(!(null==e?void 0:e.goodId))return;let t=!1;return Ye(e.goodId).then(e=>{t||o(e)}).catch(()=>{}),()=>{t=!0}},[null==e?void 0:e.goodId]),n.useEffect(()=>{if(!r||!u.current)return;if("idle"!==i.current)return;const e=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting&&"idle"===i.current){e.disconnect(),i.current="pending";const t=r.getPrice({}).then(()=>{l("done",r)}).catch(()=>{l("failed")});a.current=t}})},{threshold:.1});return e.observe(u.current),()=>{e.disconnect()}},[r]);const d=n.useCallback(e=>{if(!r)return void e.preventDefault();const t=i.current;if(!c)if(e.preventDefault(),"done"!==t&&"failed"!==t){if("idle"===t){i.current="pending";const e=r.getPrice({}).then(()=>l("done",r)).catch(()=>l("failed"));a.current=e}a.current.then(()=>{r.handlePopUpBuy()}).catch(()=>{r.handlePopUpBuy()})}else r.handlePopUpBuy()},[r,c]);return e?n.createElement($e,{card:e,goodData:r,buyHref:c,onTriggerBuy:d,ref:u},t):null}});
biu.define({name:"@ali/hmod-adc-pd-coding-plan-ai-product-card-price",version:"0.0.1",dependencies:{react:"^16.8.1","ace-element":"script:__ALIYUN_EXPERIENCE_ELEMENT__"}},function(e,t,r){"use strict";var n=Object.defineProperty,o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const s=e("react"),u=e("ace-element");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function p(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(u){return void r(u)}c.done?t(s):Promise.resolve(s).then(n,o)}function m(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,c,"next",e)}function c(e){f(i,n,o,a,c,"throw",e)}a(void 0)})}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g,b={exports:{}},_={exports:{}};(g=_).exports=function(e,t){this.v=e,this.k=t},g.exports.__esModule=!0,g.exports.default=g.exports;var E=_.exports,x={exports:{}},w={exports:{}};!function(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(c){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(w);var k=w.exports;!function(e){var t=k;function r(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var n,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.toStringTag||"@@toStringTag";function s(e,r,i,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return t(s,"_invoke",function(e,t,r){var i,a,c,s=0,l=r||[],d=!1,p={p:0,n:0,v:n,a:f,f:f.bind(n,4),d:function(e,t){return i=e,a=0,c=n,p.n=t,u}};function f(e,t){for(a=e,c=t,o=0;!d&&s&&!r&&o<l.length;o++){var r,i=l[o],f=p.p,m=i[2];e>3?(r=m===t)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=f&&((r=e<2&&f<i[1])?(a=0,p.v=t,p.n=i[1]):f<m&&(r=e<3||i[0]>t||t>m)&&(i[4]=e,i[5]=t,p.n=m,a=0))}if(r||e>1)return u;throw d=!0,t}return function(r,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,m),a=l,c=m;(o=a<2?n:c)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(r="next"),o=i[r]){if(!(o=o.call(i,c)))throw TypeError("iterator result is not an object");if(!o.done)return o;c=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=n}else if((o=(d=p.n<0)?c:e.call(t,p))!==u)break}catch(v){i=n,a=1,c=v}finally{s=1}}return{value:o,done:d}}}(e,i,a),!0),s}var u={};function l(){}function d(){}function p(){}o=Object.getPrototypeOf;var f=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),m=p.prototype=l.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,t(e,c,"GeneratorFunction")),e.prototype=Object.create(m),e}return d.prototype=p,t(m,"constructor",p),t(p,"constructor",d),d.displayName="GeneratorFunction",t(p,c,"GeneratorFunction"),t(m),t(m,c,"Generator"),t(m,a,function(){return this}),t(m,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:s,m:v}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(x);var C=x.exports,O={exports:{}},I={exports:{}},R={exports:{}};!function(e){var t=E,r=k;e.exports=function e(n,o){function i(e,r,a,c){try{var s=n[e](r),u=s.value;return u instanceof t?o.resolve(u.v).then(function(e){i("next",e,a,c)},function(e){i("throw",e,a,c)}):o.resolve(u).then(function(e){s.value=e,a(s)},function(e){return i("throw",e,a,c)})}catch(l){c(l)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,r){function n(){return new o(function(t,n){i(e,r,t,n)})}return a=a?a.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(R);var S=R.exports;!function(e){var t=C,r=S;e.exports=function(e,n,o,i,a){return new r(t().w(e,n,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(I);var N=I.exports;!function(e){var t=N;e.exports=function(e,r,n,o,i){var a=t(e,r,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}(O);var T=O.exports,j={exports:{}};!function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(j);var A=j.exports,D={exports:{}},L={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(L);var M=L.exports;!function(e){var t=M.default;e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(D);var U=D.exports;!function(e){var t=E,r=C,n=T,o=N,i=S,a=A,c=U;function s(){var u=r(),l=u.m(s),d=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function m(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,f[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,c(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=s=function(){return{wrap:function(e,t,r,n){return u.w(m(e),t,r,n&&n.reverse())},isGeneratorFunction:p,mark:u.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:i,async:function(e,t,r,i,a){return(p(t)?o:n)(m(e),t,r,i,a)},keys:a,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}(b);var V=(0,b.exports)(),B=V;try{regeneratorRuntime=V}catch(Gt){"object"==typeof globalThis?globalThis.regeneratorRuntime=V:Function("r","regeneratorRuntime = r")(V)}const q=P(B);function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function K(e,t,r){return t&&G(e.prototype,t),r&&G(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var Y=function(e,t){return new URLSearchParams(e).get(t)},Q=function(){var e=!!navigator.userAgent.toLowerCase().match(/(android|iphone|ipod|windows\sphone)/gm);return{isMobile:e||window.innerWidth<1056,isPhone:e}},H=function(){return K(function e(){F(this,e),p(this,"cache",void 0),window.__good_cache_data||(window.__good_cache_data={}),this.cache=window.__good_cache_data},[{key:"setDelivery",value:function(e,t){this.cache["_delivery_".concat(e)]=t}},{key:"getDelivery",value:function(e){return this.cache["_delivery_".concat(e)]}},{key:"setGood",value:function(e,t){this.cache["_good_".concat(e)]=t}},{key:"getGood",value:function(e){return this.cache["_good_".concat(e)]}}])}();function X(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var $={RAM_USER_HAS_NOT_FOR_PRICE:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u63a7\u5236\u53f0\u6388\u6743\uff0c\u9700\u8981\u6388\u6743\u7684Action\u4e3a\uff1abss:QueryPrice",FC_USER_HAS_NOT_FOR_PRICE:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u8d39\u7528\u4e2d\u5fc3\u6388\u6743\uff0c\u9700\u6388\u6743\u7684\u6743\u9650\u70b9code\u4e3a\uff1aqueryprice"},z={cloud_efficiency:"\u9ad8\u6548\u4e91\u76d8",cloud_essd:"ESSD\u4e91\u76d8",cloud_ssd:"SSD\u4e91\u76d8",cloud_essd_entry:"ESSD Entry",cloud_auto:"ESSD AutoPL"},J="\u4f01\u4e1a\u4e13\u4eab",W="\u65b0\u4eba\u4e13\u4eab",Z="\u4e2a\u4eba\u4e13\u4eab",ee={"12:Month":"1\u5e74","24:Month":"2\u5e74","36:Month":"3\u5e74"},te="".concat("\xa5","***"),re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(void 0===e)return"";var r=Number(e);return(Math.round(r*Math.pow(10,t-2))/Math.pow(10,t)).toFixed(t)},ne=function(e){var t=e.unit,r=e.digital,n=e.money,o=e.noPermission,i=void 0!==o&&o,a=e.ignorePermission,c=void 0!==a&&a,s=e.defaultCondition,u=void 0===s?function(){}:s;return i&&!c?te:[void 0,null].includes(n)||u()?"":function(e){var t=e.currency,r=void 0===t?"\xa5":t,n=e.money,o=void 0===n?"":n,i=e.unit,a=void 0===i?"":i;return"".concat(r).concat(o).concat(a)}({money:re(n,r),unit:t})},oe=function(e){var t=e.articleItemResults,r=0,n=0,o=0;return t.forEach(function(e){e.price&&2!==e.chargeType&&e.price.discountedPrice>-1&&(r||(r=0),n||(n=0),r+=e.price.discountedPrice||0,n+=e.price.totalPrice||0,o+=e.price.discount||0)}),{discountedPrice:r,totalPrice:n,discount:o}},ie=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o=t.code,i=t.price,a=t.priceAdjustTime,c=(null==t?void 0:t.depreciateInfo)||{},s=r,u=null==e?void 0:e.isPackage,l=null==e?void 0:e.isPostPay,d=null==e?void 0:e.isResourcePackage;if(!(u||i&&void 0!==i.discountedPrice))return{};l&&i.unit&&(s=i.unit.replace("\u5143","")),d&&(s="");var p=null,f=null,m=0,v=null;if(u){var h=t.articleItemResults,y=oe({articleItemResults:void 0===h?[]:h});p=y.discountedPrice,f=y.totalPrice,m=y.discount}else f=i.totalPrice,p=i.discountedPrice,m=i.discount,v=i.channelPrice;var P=ne({ignorePermission:!0,noPermission:!!o,money:f,unit:s,digital:n}),g=ne({noPermission:!!o,money:p,unit:s,digital:n}),b=ne({noPermission:o&&v,money:v,unit:s,digital:n}),_=ne({ignorePermission:!0,money:c.listPrice,unit:s,digital:n,defaultCondition:function(){return c.listPrice<=0}}),E=i.cheapStandAmount,x=ne({ignorePermission:!0,money:E,unit:s,digital:n,defaultCondition:function(){return E<=0}}),w=void 0!==c.cheapRate&&null!==c.cheapRate?"".concat(Math.round(1e4*c.cheapRate)/100,"%"):"";return{dailyPrice:P,promotionPrice:g,discount:ne({ignorePermission:!0,money:m,unit:s,digital:n,defaultCondition:function(){return m<=0}}),hasDiscount:m>0,queryFailCode:o||"",codeContent:$[o],channelPrice:b,listPrice:_,cheapStandAmount:x,cheapRate:w,isContractActivity:c.isContractActivity||!1,priceAdjustTime:a}},ae=function(e){if(!e)return{};var t=e.indexOf("\uffe5")>-1?"\uffe5":"\xa5",r=e.split(t),n=(r[1]||r[0]).split("/"),o=n[0].split("."),i="";return n&&n.length>0&&n.splice(0,1),n&&n.length>0&&(i=n.join("/")),{symbol:"\uffe5",integer:o[0]||"0",decimal:o[1]||"00",unit:i}};function ce(e){if(!e)return"";var t=y(e.match(/^(\D*)(\d+)(\.\d+)?(.*)$/),5),r=t[1],n=t[2],o=void 0===n?"":n,i=t[3],a=void 0===i?".00":i,c=t[4],s=void 0===c?"":c,u=s;if(/\//.test(u)){var l=(u=s.replace(/\s/g,"").replace(/^\//,"")).split("/");l.length>2&&(l.length=2),u=l.join("/")}var d="";return o&&(d=(r||"\uffe5")+o+a),u&&(d+="/".concat(u)),/\/\u5143/.test(d)&&(d=d.replace(/\/\u5143/,"")),d}function se(){return ue.apply(this,arguments)}function ue(){return(ue=m(q.mark(function e(){return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.$ACE){e.next=2;break}return e.abrupt("return",window.$ACE);case 2:return e.next=4,de("//g.alicdn.com/??aliyun/util/".concat("1.2.30","/index.js"));case 4:return e.abrupt("return",window.$ACE);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}window.$ACE_LOADER=se;const le={then:function(e){return se().then(e)}};function de(e){return pe.apply(this,arguments)}function pe(){return(pe=m(q.mark(function e(t){var r,n;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=document.getElementsByTagName("head")[0],(n=document.createElement("script")).setAttribute("type","text/javascript"),n.setAttribute("src",t),r.appendChild(n),e.abrupt("return",new Promise(function(e){n.onload=function(){e()}}));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function fe(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var me=function(e){return e.DailyDiscount="dailyDiscount",e.NinetyNinePrice="99Price",e.DoubleDiscount="doubleDiscount",e}({}),ve=function(e){return e.DoubleDiscount="doubleDiscount",e}({});function he(e){return ye.apply(this,arguments)}function ye(){return ye=m(q.mark(function e(t){var r,n,o,i,a,c,u,l,d,p,f,v,h,y,P,g,b,_,E,x,w,k,C,O,I,R,S,N,T,j,A,D=arguments;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=D.length>1&&void 0!==D[1]?D[1]:{},n=D.length>2?D[2]:void 0,o=!(D.length>3&&void 0!==D[3])||D[3],i=D.length>4?D[4]:void 0,a=t.isBuy,c=t.buyUrl,u=r.btnType||"pay",l=r.orderParams||{},1!==a||!c){e.next=1;break}return window.open(c,"_blank")||setTimeout(function(){window.open(c,"_blank")},50),e.abrupt("return");case 1:if(d=t._promationPriceResult,p=(void 0===d?{}:d).needCertifiedType,"individual_business"===(f=null==n?void 0:n.certifyAccountType)&&(f="enterprise"),!o||!p||"all"===p||f===p||!i&&!window.__ALIYUN_EXPERIENCE_ELEMENT__){e.next=4;break}return v="enterprise"===p,h=Q().isMobile,y="\u5f53\u524d\u4ef7\u683c\u9650\u4e2a\u4eba\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4e2a\u4eba\u8d26\u53f7\u8d2d\u4e70\u6216\u76f4\u63a5\u8d2d\u4e70\u3002",v&&(y=h?"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u6309\u4e2a\u4eba\u7528\u6237\u4ef7\u683c\u76f4\u63a5\u8d2d\u4e70":"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u5c06\u8be5\u8d26\u53f7\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u3002"),e.prev=2,P=i||window.__ALIYUN_EXPERIENCE_ELEMENT__,g=P.Dialog,b=P.Button,_=g.show({v2:!0,title:"\u6e29\u99a8\u63d0\u793a",content:y,footer:s.createElement("div",{className:"marketing-goods-dialog-footer"},v&&!h&&s.createElement("a",{href:"https://account.console.aliyun.com/v2/?#/authc/home",target:"_blank",style:{marginRight:10}},s.createElement(b,{type:"primary"},"\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1")),s.createElement(b,{type:v&&h?"primary":"secondary",onClick:function(){_.hide(),he(t,r,n,!1,i)}},"cart"===u?"\u52a0\u5165\u8d2d\u7269\u8f66":"\u76f4\u63a5\u8d2d\u4e70"))}),e.abrupt("return");case 3:e.prev=3,e.catch(2);case 4:if(E=t._promationPriceResult.promotionResults,!((x=Object.keys(E))&&x.length>0)){e.next=11;break}return e.prev=5,w=[],x.forEach(function(e){var t,r=E[e],n=null==r||null===(t=r.promotionOption)||void 0===t||null===(t=t.activityExtInfo)||void 0===t?void 0:t.activityId;n&&w.push(n)}),w=Array.from(new Set(w)),k=i||window.__ALIYUN_EXPERIENCE_ELEMENT__,C=k.Dialog,O=k.Button,e.next=6,le;case 6:return I=e.sent,e.next=7,I.get("Promotion");case 7:return R=e.sent,S=R.Verify,N=Y(window.location.search,"preVerify"),e.next=8,Promise.all(w.map(function(e){return S.queryRisk(e,"1"===N)}));case 8:if(!(e.sent.some(function(e){return!e.status})&&C&&O)){e.next=9;break}return T=C.show({v2:!0,title:"\u6e29\u99a8\u63d0\u793a",content:s.createElement("span",null,"\u7cfb\u7edf\u68c0\u6d4b\u5230\u60a8\u7684\u8d26\u53f7\u65e0\u6cd5\u53c2\u52a0\u6b64\u4f18\u60e0\u6d3b\u52a8\uff0c\u60a8\u53ef\u63d0\u4ea4\u6750\u6599\u8fdb\u884c\u7533\u8bc9\uff0c\u7533\u8bc9\u901a\u8fc7\u540e\u53ef\u53c2\u52a0\u6d3b\u52a8"),footer:s.createElement("div",{className:"marketing-goods-dialog-footer"},s.createElement(O,{type:"primary",onClick:function(){T.hide(),window.open("https://smartservice.console.aliyun.com/service/self-service-center/search?id=27874&mode=toolPage&trackFrom=topic-MICRO_APP","_blank")}},"\u524d\u5f80\u63d0\u4ea4"))}),e.abrupt("return");case 9:e.next=11;break;case 10:e.prev=10,e.catch(5);case 11:if(t.product){e.next=12;break}return e.next=12,t.init();case 12:if(!(j=t.children)||!j.length){e.next=13;break}return e.next=13,Promise.all(j.map(function(){var e=m(q.mark(function e(t){var r;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=0,t&&t.selectedCardIndex&&(r=t.selectedCardIndex),!t||t.product){e.next=1;break}return e.next=1,t.init();case 1:t&&t.product&&t.product.setSKU(r);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 13:if(A={id:t?"".concat(0,".",t.goodsId,".").concat(t.goodsId):null,bizChannel:"",fromApp:"",orderParams:l,buttons:[u],moduleVersion:3},!t.isPackage){e.next=15;break}return t.product.setPackageName(t.name),t.product.setPackageGoods(j),e.next=14,t.product.startPackagePopUpBuy(A);case 14:e.next=16;break;case 15:return t.product.setSKU(t.selectedCardIndex),e.next=16,t.product.popUpBuy(A);case 16:case"end":return e.stop()}},e,null,[[2,3],[5,10]])})),ye.apply(this,arguments)}var Pe=function(e){return e.FlashSale="flash_sale_activity_id",e.LowPrice="low_price_activity_id",e}({}),ge=function(e){return e[e.PostPay=2]="PostPay",e[e.PrePay=1]="PrePay",e}({});function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var _e=function(e){var t=e.good,r=e.order,n=void 0===r?0:r,o=t.commodityCode,i=t.goodsId,a=t.id;return"".concat(o,".").concat(i||a,".").concat(n)},Ee=function(e){var t=e.goodsList,r=void 0===t?[]:t,n=e.planCode,o=void 0===n?"":n;return r.map(function(e,t){return new He({good:e,planCode:o,order:t})})},xe=function(e){var t=e.articleItemResults,r=e.activityChannel,n=e.promotionPriceData,o=(null==t?void 0:t.length)>0?t[0]:{};if(r&&o&&o.price){var i,a=(null==n||null===(i=n.articleItemResults)||void 0===i?void 0:i.length)>0?null==n?void 0:n.articleItemResults[0]:{},c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},(null==o?void 0:o.price)||{});o.price=null==a?void 0:a.price,o.price.channelPrice=null==c?void 0:c.discountedPrice,o.price.channelTotalPrice=null==c?void 0:c.discountedTotalPrice,o.price.channelDiscount=null==c?void 0:c.discount}if(o&&o.price){var s,u,l=o.depreciateInfo,d=void 0===l?{}:l;if(d){var f=d.isContractActivity,m=d.contractActivity;if(f){var v=(void 0===m?{}:m).finalFee;o.price.cheapStandAmount=v||o.price.totalPrice}else o.price.cheapStandAmount=d.cheapStandAmount||d.originalStandAmount;o.price.listPrice=d.listPrice}var h=function(e){if(e){var t=Object.entries(e).find(function(e){var t,r=e[1];return(null==r||null===(t=r.promotionOption)||void 0===t?void 0:t.levelCategory)===ve.DoubleDiscount});if(t){var r=t[1].promotionOption,n=void 0===r?{}:r;return{doubleDiscount:n.discount,remainDiscountQuota:n.remainDiscountQuota}}}}(null==n?void 0:n.promotionResults);h&&(o.price.doubleDiscount=h.doubleDiscount,o.price.remainDiscountQuota=h.remainDiscountQuota),o.price.activityDiscount=null!=h&&h.doubleDiscount&&null!=o&&null!==(s=o.price)&&void 0!==s&&s.discount?o.price.discount-h.doubleDiscount:null==o||null===(u=o.price)||void 0===u?void 0:u.discount}return o},we=function(e){var t=(null==e?void 0:e.articleItemResults)||[],r={discountedPrice:0,totalPrice:0,discount:0},n=oe({articleItemResults:t}),o=n.discountedPrice,i=n.totalPrice,a=n.discount;return r.discount=a||0,r.discountedPrice=o||0,r.totalPrice=i||0,r.totalPrice&&(r.listPrice=r.totalPrice),r.discount&&(r.activityDiscount=r.discount),r},ke=function(e,t){var r=e.filter(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).price,t=void 0===e?{}:e;return t&&t.discountedPrice>=0&&t.unitPrice>0}),n=[];return r&&r.length>0&&r.forEach(function(e,r){var o=xe({articleItemResults:[e]}),i=o.name,a=o.depreciateInfo,c=o.price;n.push({id:"".concat(r,"-").concat(i),name:i,depreciateInfo:a||{},price:c,priceAdjustTime:t})}),n},Ce=function(){var e=m(q.mark(function e(t,r){var n,o,i;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object.keys(t),o=Object.keys(r),n&&n.length>0?n.forEach(function(e){o.forEach(function(t){e===t&&(i=e)})}):i=o&&o.length>0?o[0]:"",e.abrupt("return",{labelItemKey:i,hasPromotion:o&&o.length>0});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}();const Oe=function(e){var t=e||{},r=t.enterpriseUserOnly,n=t.personalUserOnly;return t.newUserOnly?{type:"newUser",text:W}:r?{type:"enterprise",text:J}:n?{type:"personal",text:Z}:null},Ie=function(e,t,r){var n=e;return"12:Month"===t?n="1\u5e74":"24:Month"===t?n="2\u5e74":"36:Month"===t&&(n="3\u5e74"),"systemdisk"===r&&z[t]&&(n=z[t]),n=n.replace(/([0-9]+)\s+/g,"$1")},Re=function(e,t){var r=e[t];return"systemdisk"===t?r=r.systemdiskCategory||r.systemDiskCategory:"vm_bandwidth"!==t&&"bandwidth"!==t||(r.internetMaxBandwidthOut||r.internetMaxBandwidthOut>-1)&&(r=r.internetMaxBandwidthOut),r},Se=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.defaultValues,n=t.isPackage,o=t.selectedCardIndex,i=t.children;return n?(e=[],i.forEach(function(t,r){t.defaultValues.forEach(function(n){if(n.cardIndex===t.selectedCardIndex){var o=n.orderParams;o.uniqLabel=t.uniqKey||_e({good:t,order:r}),e.push(o)}})})):(r.forEach(function(r){r.cardIndex===o&&((e=r.orderParams).uniqLabel=t.uniqKey||_e({good:t}))}),!e&&r[0]&&((e=r[0].orderParams).uniqLabel=t.uniqKey||_e({good:t}))),e};function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var je=function(e){return"number"==typeof e?"".concat(e):e},Ae=function(e,t,r,n,o,i){var a,c=[],s=[];if(e<t.length){var u=o[a=t[e].code];if(r.forEach(function(e){var t=e.value,r=e.orderParams;if(t){var n=Object.keys(t);if(!n||n.length<1)return!1;var o,i,s=Re(t,a);if("instance_type"!==a)o=null==r||null===(i=r.components)||void 0===i?void 0:i.find(function(e){return e.componentCode===a});o&&o.instanceProperty?function(e,t,r,n){var o=e.instanceProperty[0];if(o&&o.name&&!r.find(function(e){return e.value===t})){var i=Ie(o.name,t,n);r.push({text:i,label:i,value:je(t)})}}(o,s,c,a):function(e,t,r,n){e&&e.options&&e.options.length>0&&e.options.forEach(function(e){var o=e.value||e.defaultValue;if(!o||je(o)===je(t)){var i=function(e){var t="";return"string"==typeof e.text?t=e.text:e.text&&e.text.title&&(t=e.text.title),t}(e);if("instance_type"===n){var a=i.split(" ");a&&a.length>0&&(i=a[0])}var c=r.find(function(e){return je(e.value)===je(t)});if(i||(i=t),i&&!c){var s=Ie("".concat(i).concat(e.unit||""),t,n);r.push({text:s,label:s,value:je(o)})}}})}(u,s,c,a)}}),c&&c.length>0){var l=function(e,t,r,n){var o=0;return e&&e.forEach(function(e){e.code===t&&r.forEach(function(t,r){var i=n[e.code];je(t.value)===i&&(o=r)})}),o}(t,a,c,i),d=c[l];i[a]=je(d.value),r.forEach(function(e){var t=e.value;if(t){var r=Object.keys(t);if(!r||r.length<1)return!1;var n=Re(t,a);je(d.value)===je(n)&&s.push(e)}})}if(e<10){var p=s.length>0?s:r;Ae(e+1,t,p,n,o,i)}}return a&&s.length>0&&(n[a]=c),s},De="1"===Y(window.location.search,"prePrice")?"https://pre-t.aliyun.com":"https://t.aliyun.com",Le={QUERY_PRICE:"".concat(De,"/abs/promotion/queryPrice"),QUERY_PRICE_BATCH:"".concat(De,"/abs/promotion/queryPriceBatch"),QUERY_PRICE_BATCH_STEALTH:"".concat(De,"/abs/promotion/queryPriceBatchStealth")},Me=function(e,t){var r=function(e){for(var t=null,r=0,n=[Pe.FlashSale,Pe.LowPrice];r<n.length;r++){var o=n[r];if(e[o]){t=o;break}}return t}(t),n=null;if(r&&(n=t[r]),n)switch(r){case Pe.FlashSale:return e.orderParams.flash_sale_activity_id=n,e.orderParams.no_coupons=!0,void(e.orderParams.watchActivityIdList=n);case Pe.LowPrice:return void(e.orderParams.watchActivityIdList=n);default:return}},Ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){if(null!=e&&e.orderParams||(e.orderParams={}),"object"===Object.prototype.toString.call(e.orderParams).slice(8,-1).toLowerCase()){var r=t.isManualQueryPrice,n=void 0!==r&&r;e.orderParams.pricing_trigger_type=n?"manual":"default"}return e}},Ve=function(e){var t,r=e.goodsId,n=e.orderParams,o=void 0===n?{}:n,i=e.planId,a=e.activityId,c=e.orderParamsOption,s=e.isBatch,u=void 0!==s&&s;Array.isArray(o)?(a&&o.forEach(function(e){Me(e,a)}),o.forEach(function(e){Ue(e,c)}),t=o):(a&&Me(o,a),Ue(o,c),t=[o]);var l={commodityId:r,commodities:t};return i&&(l.planId=i),u&&(l.bizOccasion="queryPrice"),l};const Be=function(){var e=m(q.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,p,f,v,h;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.goodsId,n=t.orderParams,o=void 0===n?{}:n,i=t.planId,a=t.activityChannel,c=t.stealth,s=t.activityId,u=t.orderParamsOption,d=Ve({goodsId:r,orderParams:o,planId:i,activityId:s,orderParamsOption:void 0===u?{}:u}),p=Le.QUERY_PRICE,a?(p=Le.QUERY_PRICE_BATCH,c&&(p=Le.QUERY_PRICE_BATCH_STEALTH),f=JSON.stringify(d),(f=JSON.parse(f)).commodities.forEach(function(e){e&&e.orderParams&&(e.orderParams.no_coupons=!0,e.orderParams.aliyunActivityChannel=a)}),(v=[]).push(f),v.push(d),l=JSON.stringify(v)):(c&&(p="".concat(De,"/abs/promotion/queryPriceStealth")),l=JSON.stringify(d)),e.next=1,le.then(function(){var e=m(q.mark(function e(t){return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.Request.post(p,{param:l});case 1:h=e.sent;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:return e.abrupt("return",h);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var qe=function(e){var t=e;if(e){var r=t.split(" ");if(r&&r.length>0&&"string"==typeof r[0]){var n=[];r[0].split("-").forEach(function(e){n.push(1*e)}),t=n.join(".")}}return t},Fe=function(){var e=m(q.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,p,f,m,v,h,y,P,g,b,_,E;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,n=t.activityChannel,o=t.planId,Array.isArray(r.data)&&n?(c=null===(s=r.data[0])||void 0===s?void 0:s.data,a=null===(u=r.data[1])||void 0===u?void 0:u.data,i=r.data[0].code||200):(a=r.data,i=r.code),d=(null==(l=c||a)?void 0:l.promotionResults)||{},p=(null==l?void 0:l.promotionLabelInfo)||{},e.next=1,Ce(p,d);case 1:return f=e.sent,m=f.labelItemKey,v=f.hasPromotion,h=null==l?void 0:l.articleItemResults,y={},o?(P=we(l),y={price:P,hasPromotion:v,articleItemResults:h,promotionResults:d}):(b=xe({articleItemResults:h,activityChannel:n,promotionPriceData:a}),_=qe((null==b||null===(g=b.depreciateInfo)||void 0===g?void 0:g.startTime)||""),y={price:b.price,promotionResults:d,promotionLabelInfo:p,depreciateInfo:(null==b?void 0:b.depreciateInfo)||{},labelItemKey:m,hasPromotion:v,priceAdjustTime:_,watchActivityResultList:null==b?void 0:b.watchActivityResultList},(E=b.chargeType===ge.PostPay)&&(y.isPostPay=E,y.postPayModules=ke(b.moduleResults,_))),200!==i&&-1!==Object.keys($).indexOf(i)&&(y.code=i),e.abrupt("return",y);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();const Ge=function(){var e=m(q.mark(function e(t){var r,n,o,i;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.planId,n=t.activityChannel,e.next=1,Be(t);case 1:return o=e.sent,e.next=2,Fe({data:o,activityChannel:n,planId:r});case 2:return i=e.sent,e.abrupt("return",i);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var Ke=["refresh"];function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var He=function(){return K(function e(t){var r,n=this,o=t.good,i=t.planCode,a=t.order,c=void 0===a?0:a;F(this,e),p(this,"sku",[]),p(this,"scm",void 0),p(this,"title",void 0),p(this,"name",void 0),p(this,"description",void 0),p(this,"productCode",void 0),p(this,"commodityCode",void 0),p(this,"goodsId",void 0),p(this,"mcm_code",void 0),p(this,"mcm_id",void 0),p(this,"selectSkuId",0),p(this,"children",void 0),p(this,"parent",void 0),p(this,"_rawGood",void 0),p(this,"price",void 0),p(this,"postPayPrice",void 0),p(this,"commodityType",void 0),p(this,"isBuy",void 0),p(this,"buyUrl",void 0),p(this,"productDetailLink",void 0),p(this,"commodityDetailUrl",void 0),p(this,"isPackage",!1),p(this,"packagecode",void 0),p(this,"planId",void 0),p(this,"goodsType",void 0),p(this,"planItemId",void 0),p(this,"defaultValues",[]),p(this,"product",void 0),p(this,"_commodityKeys",void 0),p(this,"_checkedFeatureList",void 0),p(this,"_promationPriceResult",void 0),p(this,"commodity",void 0),p(this,"selectedCardIndex",0),p(this,"selectedComponentValue",{}),p(this,"isPostPay",void 0),p(this,"hasPostPay",void 0),p(this,"activityId",void 0),p(this,"isResourcePackage",void 0),p(this,"uniqKey",void 0),p(this,"planInstanceIsRequired",void 0),p(this,"orderParamsOption",{isManualQueryPrice:!1}),p(this,"_displayComponents",void 0),p(this,"_promotionTags",void 0),p(this,"_staticLoaded",void 0),p(this,"_staticLabels",void 0),p(this,"getTimeUnit",function(e){var t=e.orderParams,r="";if(!e.isPostPay){var o=t?ee["".concat(t.duration,":").concat(t.pricingCycle)]:"";r=n.formatTime(o,t)}return r}),o&&o.defaultValues&&o.defaultValues.forEach(function(e){var t=e.values;t&&t.forEach(function(e){n.sku.push({config:e.value})})}),this.uniqKey=_e({good:o,order:c}),this._rawGood={commodityCode:o.commodityCode,specCode:o.itemCode,productCode:o.productCode,accessories:{commodityCode:o.commodityCode,specCode:o.itemCode,productCode:o.productCode,commodity:o.modules?o.modules.commodity:void 0},title:o.itemName,name:o.itemName,sku:this.sku,goodsId:o.id,id:o.id,itemId:o.itemId,actPromotionCommodityAttributeList:o.actPromotionCommodityAttributeList},i&&this._rawGood&&(this._rawGood.accessories.planCode=i),this._staticLoaded=o.staticLoaded||o.defaultValues&&o.defaultValues.length>-1,this.scm=o.scm,this.productCode=o.productCode,this.commodityCode=o.commodityCode,this.goodsId=o.id,this.mcm_code="".concat(this.productCode,".").concat(this.commodityCode),this.mcm_id="".concat(0,".",o.id,".").concat(o.id),this.selectSkuId=0,this.children=o.children||[],this.children.forEach(function(t){t instanceof e&&(t.setParent(n),t.selected=!0)}),this.title=o.itemName,this.name=o.itemName,this.description=o.description;var s,u,l=o.defaultValues||[];this.setDefaultValues(o.defaultValues),this.commodity=(s=o.modules,u=null,s&&s.commodity?u=s.commodity:s&&s.domainParams&&(u=s.domainParams),u),this.price=o.price;var d=o.actPromotionCommodityAttributeList,f=et(d,"post_pay_expenses_item");this.postPayPrice=f&&JSON.parse(f);var m=et(d,"market_commodity_labels");this._staticLabels=m&&m.split(",")||[],this.commodityType=o.commodityType,this.isBuy=o.isBuy,this.buyUrl=o.buyUrl,this.productDetailLink=o.productDetailLink,this.commodityDetailUrl=o.commodityDetailUrl,this.hasPostPay=o.hasPostPay;var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("plan"===e.comType){var r=e.actPromotionCommodityAttributeList,n=et(void 0===r?[]:r,"ntm_plan_id"),o=n&&Number(n)||void 0,i=e.commodityCode;return t&&(t.accessories.goodsType="startPackage",t.accessories.planCode=e.commodityCode),{goodsType:"startPackage",isPackage:!0,packagecode:i,planId:o,_rawGood:t}}if("plan_commodity"===e.comType){var a=e.actPromotionCommodityAttributeList.find(function(e){return"planItemId"===e.attrCode}),c=(null==a?void 0:a.attrValue)&&1*a.attrValue||null;t&&(t.accessories.planItemId=c);var s="boolean"!=typeof e.planInstanceIsRequired||e.planInstanceIsRequired;return t.accessories.defaultChecked=!0,{_rawGood:t,planInstanceIsRequired:s}}return!1}(o,this._rawGood);if(Object.assign(this,v),this._commodityKeys=this.resetCommodityKeys((null===(r=l[0])||void 0===r?void 0:r.selectedCommodityKeys)||[]),!this.isPackage){var h={};if(this.commodity){Ae(0,this._commodityKeys,this.defaultValues,h,this.commodity,this.selectedComponentValue);var P=Object.keys(h);P&&P.length<3&&(h=this.groupStaticModule(h))}else h=this.groupStaticModule(h);this._displayComponents=h}var g=y([Pe.FlashSale,Pe.LowPrice].map(function(e){return et(d,e)}),2),b=g[0],_=g[1];(b||_)&&(this.activityId=p(p({},Pe.FlashSale,b),Pe.LowPrice,_));var E=this.getPromationCommodity(o,"commodity_sub_type");E&&(this.isResourcePackage="resourcePackageCommodity"===E)},[{key:"getPromationCommodity",value:function(e,t){var r=e.actPromotionCommodityAttributeList,n=void 0===r?[]:r,o=n&&n.find(function(e){return e.attrCode===t});return o&&o.attrValue}},{key:"setDefaultValues",value:function(e){var t,r=[];e&&(e.forEach(function(e,t){if(0===t){var n=e.values;n&&n.forEach(function(e,t){r.push(Qe(Qe({},e),{},{cardIndex:t}))})}}),this.defaultValues=r,this._checkedFeatureList=null===(t=e[0])||void 0===t?void 0:t.checkedFeatureList)}},{key:"init",value:(o=m(q.mark(function e(){var t=this;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,le.then(function(){var e=m(q.mark(function e(r){var n,o;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.get("GoodsService");case 1:n=e.sent,o=n.getProduct(t._rawGood),t.product=o;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"setSku",value:function(e){this.selectSkuId=e}},{key:"handlePopUpBuy",value:(n=m(q.mark(function e(t,r){var n=this;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return!window.__ALIYUN_EXPERIENCE_REACT__&&window.React&&(window.__ALIYUN_EXPERIENCE_REACT__=window.React),!window.__ALIYUN_EXPERIENCE_REACT_DOM__&&window.ReactDOM&&(window.__ALIYUN_EXPERIENCE_REACT_DOM__=window.ReactDOM),e.next=1,le.then(function(){var e=m(q.mark(function e(o){var i,a,c,s,u;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,o.get("Account");case 1:return i=e.sent,e.next=2,Ze();case 2:if(a=e.sent){e.next=3;break}return i.toLogin(),e.abrupt("return");case 3:if(!a||null!==a.certifyAccountType){e.next=4;break}return c=n._promationPriceResult,s=(void 0===c?{}:c).needCertifiedType,u={title:"\u6e29\u99a8\u63d0\u793a"},"personal"!==s&&"enterprise"!==s||(u.subjectType=s),i.toCertificate(u),e.abrupt("return");case 4:return e.next=5,he(n,t,a,!0,r);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})},{key:"addCart",value:(r=m(q.mark(function e(){var t,r,n=arguments;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},r=n.length>1?n[1]:void 0,e.next=1,this.handlePopUpBuy({orderParams:null==t?void 0:t.orderParams,btnType:"cart"},r);case 1:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"resetCommodityKeys",value:function(e){var t,r=this.commodity,n=[],o=this.defaultValues;(r&&o&&o.length>0&&o.forEach(function(t){if(t.orderParams){var o=t.orderParams.components;o&&(o.forEach(function(t){e.find(function(e){return t.componentCode===e})&&r[t.componentCode]&&(n.find(function(e){return e.code===t.componentCode})||n.push({code:t.componentCode,name:r[t.componentCode].name}))}),["order_time","ord_time","order_num"].forEach(function(t){e.find(function(e){return e===t})&&r[t]&&(n.find(function(e){return e.code===t})||n.push({code:t,name:r[t].name}))}))}}),!r||n&&n.length<3)&&((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){e&&e.checked&&n.length<3&&n.push({code:e.code,name:e.name})});return n}},{key:"groupStaticModule",value:function(e){var t,r=this,n=Qe({},e);return((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){if(e&&e.checked){var t=r._checkedFeatureList.options.find(function(t){return t.value===e.code});t&&(n[e.code]=[{text:t.text,label:t.label,value:t.text}])}}),n}},{key:"getTitle",value:function(){return this.title}},{key:"getDescription",value:function(){return this.description}},{key:"hasLoaded",value:function(){return this._staticLoaded}},{key:"getDisplayComponents",value:function(){var e=this;if(!this.isPackage){var t=this._commodityKeys,r=this._displayComponents,n=[];return t.forEach(function(t){r[t.code]&&n.push({label:t,options:r[t.code],target:e})}),n}var o=[];return this.children.forEach(function(e){var t=e.getDisplayComponents();t&&(o=[].concat(X(o),X(t)))}),o.splice(0,3)}},{key:"formatTime",value:function(e,t){return!this.isPackage&&t?e?"/".concat(e):"/".concat(t.duration).concat(t.pricingCycleTitle):""}},{key:"setFormatPriceResult",value:function(e){var t,r,n=this,o=e.price,i=Se(this),a=o.labelItemKey,c=o.promotionLabelInfo,s=o.promotionResults,u=o.hasPromotion,l=o.depreciateInfo,d=void 0===l?{}:l,p=o.articleItemResults,f=o.isPostPay,m=o.postPayModules,v=o.watchActivityResultList,h=this.getTimeUnit({orderParams:i,isPostPay:f}),y=ie({isPackage:this.isPackage,isResourcePackage:this.isResourcePackage},o,h),P=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0===Object.keys(r).length||!n)return{};var o=r,i={tags:[]},a=(null===(e=o[n])||void 0===e?void 0:e.display)||[],c=(null==o||null===(t=o.common)||void 0===t?void 0:t.display)||[];return i.tags=[].concat(X(a),X(c)),i}(c,a),g=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0!==Object.keys(r).length){var o,i,a=(null==r||null===(e=r.common)||void 0===e?void 0:e.biz)||[],c=(null==r||null===(t=r.common)||void 0===t?void 0:t.extraInfo)||{},s=!1,u=!0,l=!0;try{var d=c.promotionBizLabels;for(var p in d)if(d.hasOwnProperty(p)){var f=d[p];if(f.promotionId===n){o=f.orderNumLimit;break}}s=c.sameIdLimit,i=c.userTimes,a.forEach(function(e){"NO_COUPON"===e?u=!1:"NO_REFUND"===e&&(l=!1)})}catch(m){}return{orderNumLimit:o,isSameIdLimt:s,userTimes:i,isCoupon:u,isRefund:l}}}(c,a);this._promotionTags=null==P?void 0:P.tags;var b=a&&(null==s?void 0:s[a])||void 0,_=null==c||null===(t=c.common)||void 0===t?void 0:t.extraInfo,E=_||{},x=E.enterpriseUserOnly,w=E.personalUserOnly;f&&m&&m.length>0?(this.isPostPay=!0,m.forEach(function(e){e.code=o.code,e.formatPrice=ie({isPostPay:f,isResourcePackage:n.isResourcePackage},e,"",3)})):this.isPostPay=!1;var k=x?"enterprise":w?"personal":"all";o&&o.price&&h&&(o.price.pricingCycle=h.replace(/^\//,""));var C=[];return this.isPackage&&(C=function(e){var t=e.good,r=e.priceRes,n=t.children,o=r.articleItemResults,i=[];return n.forEach(function(e,n){var a=null==o?void 0:o.find(function(t){return t.tag===(e.uniqKey||_e({good:e,order:n}))});if(a){var c={tag:a.tag};a.code=r.code;var s=a.price,u=a.depreciateInfo,l=a.chargeType,d=a.moduleResults,p=l===ge.PostPay,f=e.defaultValues.find(function(t){return t.cardIndex===e.selectedCardIndex}).orderParams,m=t.getTimeUnit({isPostPay:p,orderParams:f}),v=ie({isPackage:e.isPackage,isResourcePackage:e.isResourcePackage},a,m);if(c.price=s,c.formatPrice=v,c.isPostPay=p,p){var h=qe((null==u?void 0:u.startTime)||""),y=ke(d,h);y&&y.length>0&&y.forEach(function(t){t.code=null==r?void 0:r.code,t.formatPrice=ie({isPostPay:p,isResourcePackage:e.isResourcePackage},t,"",2)}),c.postPayModules=y}i.push(c)}else i.push(null)}),i}({good:this,priceRes:o})),this._promationPriceResult={promotionResults:s,price:null==o?void 0:o.price,promotionTags:this._promotionTags,depreciateInfo:d,formatPrice:y,promotionResult:b,hasPromotion:u,discountRule:g,is99Price:(null==b||null===(r=b.promotionOption)||void 0===r||null===(r=r.activityExtInfo)||void 0===r?void 0:r.discountScene)===me.NinetyNinePrice||!1,articleItemResults:p,needCertifiedType:k,isPostPay:f,postPayModules:m,crowdTag:Oe(_),watchActivityResultList:v,articlePriceResults:C},this._promationPriceResult}},{key:"checkStaticPrice",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.price,r=e.commodityType,n=e.commodity,o=e.postPayPrice;if("notcommonbuy_notselfcreate"===r||!n&&t&&t.length>0){var i={},a={};if(t.forEach(function(e){"daily_price"===e.code?a.totalPrice=e.value:"promotion_price"===e.code&&(a.discountedPrice=e.value)}),i={price:a,formatPrice:{promotionPrice:ce(a.discountedPrice),dailyPrice:ce(a.totalPrice)}},o&&o.length>0){var c=[];o.forEach(function(e){var t=e.daily_price,r=e.promotion_price,n=e.groupId,o=e.expenses_name,i=ce(t),a=ce(r),s={totalPrice:e.daily_price,dailyPrice:i,promotionPrice:a,discountedPrice:e.promotion_price};c.push({id:n,name:o,price:s,formatPrice:{promotionPrice:ce(s.discountedPrice),dailyPrice:ce(s.totalPrice)}})}),i=Te(Te({},i),{},{isPostPay:!0,postPayModules:c})}return i}return!1}(this);return!!e&&(this.isPostPay=!!e.isPostPay,Qe(Qe({},e),{},{promotionTags:this._staticLabels}))}},{key:"getPrice",value:(t=m(q.mark(function e(){var t,r,n,o,i,a,c,s=arguments;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:{},!(r=this.checkStaticPrice())){e.next=1;break}return e.abrupt("return",r);case 1:return n=t.activityChannel,o=t.stealth,i=t.needActivityId,a=Se(this),e.next=2,Je({goodsId:this.goodsId,orderParams:a,planId:this.planId,activityChannel:n,stealth:o,activityId:i?this.activityId:void 0,orderParamsOption:this.orderParamsOption});case 2:return c=e.sent,e.abrupt("return",this.setFormatPriceResult({price:c}));case 3:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"getComboPrice",value:(e=m(q.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,p,f,m,v,h,P,g,b,_,E,x,w,k,C,O;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(n=t||{}).refresh,i=fe(n,Ke),a=this._promationPriceResult,!o){e.next=2;break}return e.next=1,this.getPrice(i);case 1:a=e.sent;case 2:if(this.isPackage){e.next=3;break}return e.abrupt("return",a);case 3:return c=Se(this),s=this.getTimeUnit({orderParams:c,isPostPay:a.isPostPay}),u=this.children||[],l=null===(r=a.articleItemResults)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.code,d=a.articleItemResults.filter(function(e){var t=e.key,r=u.find(function(e){return e.uniqKey===t});return r&&r.selected}),p=oe({articleItemResults:d}),f=p.discountedPrice,m=p.totalPrice,v=p.discount,P={unit:s,digital:2},g=[{noPermission:l,money:f},{noPermission:l,money:h=m||0},{ignorePermission:!0,money:m},{ignorePermission:!0,money:v,defaultCondition:function(){return v<=0}}].map(function(e){return e=Object.assign(P,e),ne(e)}),b=y(g,4),_=b[0],E=b[1],x=b[2],w=b[3],k={promotionPrice:_,listPrice:E,dailyPrice:x,activityDiscount:w},C=Object.assign(a.formatPrice||{},k),O=Object.assign(a.price||{},{discountedPrice:f,listPrice:h,totalPrice:m,discount:v,activityDiscount:v}),e.abrupt("return",Qe(Qe({},a),{},{price:O,formatPrice:C}));case 4:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"getStringValue",value:function(e){return"number"==typeof e?"".concat(e):e}},{key:"changeSku",value:function(e,t,r){var n=this;if(this.orderParamsOption.isManualQueryPrice=!0,this.selectedComponentValue[t]=this.getStringValue(e),this.isPackage)if(r&&r.target)r.target.changeSku(e,t);else for(var o=0;o<this.children.length;o++){if(this.children[o]._commodityKeys)if(this.children[o]._commodityKeys.find(function(e){return e.code===t})){this.children[o].changeSku(e,t);break}}else{var i={};if(this.commodity){var a=Ae(0,this._commodityKeys,this.defaultValues,i,this.commodity,this.selectedComponentValue),c=Object.keys(this.selectedComponentValue),s=a.find(function(e){var t=e.value;return c.every(function(e){return n.getStringValue(t[e])===n.selectedComponentValue[e]})});s&&(this.selectedCardIndex=s.cardIndex);var u=Object.keys(i);u&&u.length<3&&(i=this.groupStaticModule(i))}else i=this.groupStaticModule(i);this._displayComponents=i}}},{key:"setParent",value:function(e){this.parent=e}},{key:"selected",get:function(){if(this.parent)return!!this.planInstanceIsRequired||Boolean(this._rawGood.accessories.defaultChecked)},set:function(e){this.parent&&!this.planInstanceIsRequired&&(this._rawGood.accessories.defaultChecked=e)}},{key:"getSelectedGoods",value:function(){return this.isPackage?this.children.filter(function(e){return e.selected}):null}}]);var e,t,r,n,o}(),Xe=new H;const $e=function(){var e=m(q.mark(function e(t){var r;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,le.then(function(){var e=m(q.mark(function e(n){var o,i,a;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o="https://alioth.alicdn.com/promotion-commodity-".concat(t),!Xe.getGood(t)){e.next=1;break}i=Xe.getGood(t),e.next=3;break;case 1:return e.next=2,n.Request.get(o,null,{withCredentials:!1,xsrfCookieName:""});case 2:(i=e.sent).scm="20140722.M_".concat(i.id,"._.V_1"),i.staticLoaded=!0,i&&"plan"===i.comType&&i.actPromotionCommodityDTOList&&(a=i.actPromotionCommodityDTOList.find(function(e){return"POSTPAY"===e.chargeType}),i.children=i.actPromotionCommodityDTOList,i.hasPostPay=!!a,i.children=Ee({goodsList:i.children,planCode:i.commodityCode})),Xe.setGood(t,i);case 3:return i&&(r=new He({good:i,planCode:i.commodityCode})),e.abrupt("return",{});case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();new H;const ze=m(q.mark(function e(){var t;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=2,le.then(function(){var e=m(q.mark(function e(r){var n;return q.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.Request.get("https://bridge.aliyun.com/abs/home/queryUserBaseInfo");case 1:n=e.sent,t=n&&n.data;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e,null,[[1,3]])}));var Je=Ge,We=$e,Ze=ze,et=function(e,t){if(e&&Array.isArray(e)){var r=e.find(function(e){return e.attrCode===t});return null==r?void 0:r.attrValue}};var tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t";try{var r=document.body.clientWidth,n=e.currentTarget.getBoundingClientRect();n&&n.left&&r-n.left<=200?t="tl":n&&n.left&&n.left<=150&&(t="tr")}catch(o){}return t};const rt="_4a298d96a29f0b79d7d44e9386e75a5b_discount-ballon-btn",nt="_4a298d96a29f0b79d7d44e9386e75a5b_discount-ballon",ot="_4a298d96a29f0b79d7d44e9386e75a5b_article-item-result",it="_4a298d96a29f0b79d7d44e9386e75a5b_article-result-wrap",at="_4a298d96a29f0b79d7d44e9386e75a5b_article-item-result-price",ct="_4a298d96a29f0b79d7d44e9386e75a5b_article-item-result-price-highlight",st="_4a298d96a29f0b79d7d44e9386e75a5b_ballon-head-price",ut="_4a298d96a29f0b79d7d44e9386e75a5b_list-price",lt="_4a298d96a29f0b79d7d44e9386e75a5b_ballon-head-price-row",dt="_4a298d96a29f0b79d7d44e9386e75a5b_discounted-price",pt="_4a298d96a29f0b79d7d44e9386e75a5b_highlight",ft="_4a298d96a29f0b79d7d44e9386e75a5b_discount-ballon-rule",mt="_4a298d96a29f0b79d7d44e9386e75a5b_post-pay-discount-ballon-head",vt="_4a298d96a29f0b79d7d44e9386e75a5b_discount-expand";function ht(e){var t=e.module,r=e.refreshBallon,n=e.refreshIndex,o=y(s.useState(!1),2),i=o[0],a=o[1],c=t.name,u=t.formatPrice,l=void 0===u?{}:u,d=t.id,p=l.promotionPrice,f=l.isContractActivity;s.useEffect(function(){r()},[i]);return s.createElement("div",{className:"".concat(mt," ").concat(i?vt:""),key:"".concat(d,"-").concat(n)},s.createElement("h3",null,c,s.createElement("span",{className:pt},p,s.createElement("i",{className:"ace-icon ace-icon-arrow-down",onClick:function(){a(!i)}}))),function(){var e=t.formatPrice,r=void 0===e?{}:e,n=t.price,o=n.discount,i=n.discountedPrice,a=n.cheapStandAmount,c=void 0===a?0:a,u=n.listPrice,l=void 0===u?0:u,d=n.unitPrice,p=!1;c>0?i<c&&o>.04&&(p=!0):o>.04&&(p=!0);var m=l||d,v=c>0||l>0;return s.createElement("div",{className:st},m?s.createElement("div",{className:ut},"\u5b98\u7f51\u76ee\u5f55\u4ef7\uff08",r.listPrice||r.dailyPrice,"\uff09"):null,v?s.createElement("div",{className:lt},f?"\u4f01\u4e1a\u5408\u540c\u6298\u6263\u4ef7":"\u5b98\u7f51\u6298\u6263\u4ef7"," ",s.createElement("span",null,r.cheapStandAmount||r.dailyPrice)):null,p?s.createElement("div",{className:lt},"\u6d3b\u52a8\u4f18\u60e0 ",s.createElement("span",null,"\u51cf ",r.discount)):null)}())}function yt(e){var t,r,n,o,i=e.className,a=e.price,c=e.good,l=y(s.useState("t"),2),d=l[0],p=l[1],f=y(s.useState(0),2),m=f[0],v=f[1],h=a.discountRule,P=a.price,g=a.promotionResult,b=a.articleItemResults,_=void 0===b?[]:b,E=a.formatPrice,x=void 0===E?{}:E,w=a.isPostPay,k=a.postPayModules,C=x.isContractActivity,O=x.queryFailCode,I=h||{},R=I.isRefund,S=I.isSameIdLimt,N=I.userTimes,T=I.isCoupon,j=I.orderNumLimit,A=function(){v(m+1)};return r=(t=P||{}).discountedPrice,n=t.totalPrice,!(o=t.channelPrice)&&(!c.isPackage&&!h&&!g||c.isPackage&&r===n||O||o)?null:s.createElement(u.Balloon,{v2:!0,align:d,trigger:s.createElement("span",{onMouseEnter:function(e){p(tt(e,d))},className:"".concat(rt," ").concat(i||"")},"\u4e86\u89e3\u4f18\u60e0"),shouldUpdatePosition:!0,triggerType:"hover",closable:!1,popupStyle:{minWidth:230}},function(){return s.createElement("div",{className:nt},s.createElement("div",{className:"discount-ballon-head"},s.createElement("h3",null,"\u4f18\u60e0\u660e\u7ec6"),w?s.createElement("div",{className:"post-pay-discount-ballon"},null==k?void 0:k.map(function(e){return s.createElement(ht,{module:e,key:e.id,refreshIndex:m,refreshBallon:A})})):(t=(e=P||{}).discount,r=void 0===t?0:t,n=e.discountedPrice,o=void 0===n?0:n,i=e.totalPrice,a=e.cheapStandAmount,u=void 0===a?0:a,l=e.listPrice,d=void 0===l?0:l,p=e.unitPrice,f=e.activityDiscount,v=void 0===f?0:f,h=e.doubleDiscount,y=e.remainDiscountQuota,g=!1,u>0?o<u&&r>.4&&(g=!0):r>0&&(g=!0),s.createElement("div",{className:st},d||p?s.createElement("div",{className:ut},"\u5b98\u7f51\u76ee\u5f55\u4ef7\uff08\uffe5",re(d||p),"\uff09"):null,u>0||d>0?s.createElement("div",{className:lt},C?"\u4f01\u4e1a\u5408\u540c\u6298\u6263\u4ef7":"\u5b98\u7f51\u6298\u6263\u4ef7"," ",s.createElement("span",null,"\uffe5",re(u||i))):null,g&&v?s.createElement("div",{className:lt},"\u6d3b\u52a8\u4f18\u60e0 ",s.createElement("span",null,"\u51cf\uffe5",re(v))):null,g&&h?s.createElement("div",{className:lt},"\u6298\u4e0a\u6298\u4f18\u60e0",y?"\uff08\u53ef\u7528\u989d\u5ea6\uffe5".concat(re(y),"\uff09"):"",s.createElement("span",null,"\u51cf\uffe5",re(h))):null,o!==u?s.createElement("div",{className:dt},"\u4ef7\u683c",s.createElement("span",{className:pt},"\uffe5",re(o))):null))),c.isPackage&&_&&_.length>0?s.createElement("div",{className:it},_.map(function(e,t){return s.createElement("div",{className:ot,key:"articleItemResult".concat(t)},e.articleItemName,s.createElement("span",{className:at},e.price.discount?"\u8282\u7701:\uffe5".concat(re(e.price.discount)):"",s.createElement("span",{className:ct},"\uffe5".concat(re(e.price.discountedPrice)))))})):"",c.isPackage?"":s.createElement("div",{className:ft},s.createElement("h3",null,"\u6d3b\u52a8\u89c4\u5219"),s.createElement("div",null,s.createElement("p",null,"\u9650\u8d2d\uff1a",j?"".concat(j,"\u4ef6"):"\u4e0d\u9650\u8d2d"),s.createElement("p",null,"\u9000\u6b3e\uff1a",R?"\u53ef\u9000\u6b3e":"\u6d3b\u52a8\u5546\u54c1\u7981\u6b62\u9000\u6b3e"),s.createElement("p",null,"\u8d26\u53f7\u9650\u5236:"," ",S?"\n              \u540c\u8ba4\u8bc1\u8d26\u53f7\u4ec5\u53ef\u8d2d\u4e70".concat(N,"\u6b21\uff08\u5982\u540c\u4e2a\u4eba\u8eab\u4efd\u8bc1\u3001\u4f01\u4e1a\u6267\u7167\u8ba4\u8bc1\u3001\u540c\u624b\u673a\u53f7\u7b49\uff09\n            "):"\u65e0\u9650\u5236"),s.createElement("p",null,"\u662f\u5426\u53ef\u53e0\u52a0\u4f18\u60e0\u5238\uff1a",T?"\u53ef\u53e0\u52a0":"\u4e0d\u53ef\u53e0\u52a0"))));var e,t,r,n,o,i,a,u,l,d,p,f,v,h,y,g}())}const Pt=s.memo(yt),gt="_8cb62e427ba5bad8cd7daa20c1b5df23_discounted-price",bt="_8cb62e427ba5bad8cd7daa20c1b5df23_highlight",_t="_8cb62e427ba5bad8cd7daa20c1b5df23_pricing-tip-btn",Et="_8cb62e427ba5bad8cd7daa20c1b5df23_help-filled";function xt(e){var t=y(s.useState("t"),2),r=t[0],n=t[1],o=e.isLogin,i=e.price,a=void 0===i?{}:i,c=e.isChannelPrice,l=e.className,d=e.good,p=void 0===d?{}:d,f=p.hasPostPay,m=p.isPackage,v=a.formatPrice,h=void 0===v?{}:v,P=a.price,g=h.promotionPrice,b=h.hasDiscount,_=h.queryFailCode,E=h.codeContent,x=h.channelPrice;if(!g)return null;var w=ae(c?void 0===x?"":x:g);return s.createElement("span",{className:"".concat(gt," ").concat(l||"")},P&&!_?s.createElement(s.Fragment,null,s.createElement("span",{className:"".concat(bt)},w.symbol,s.createElement("strong",null,w.integer),".",w.decimal),w.unit?"/".concat(w.unit):"",!o&&b?"\u8d77":"",m&&f&&s.createElement(u.Balloon,{v2:!0,align:"t",trigger:s.createElement("span",{className:_t},s.createElement("i",{className:"".concat(Et," aliyun-icon aliyun-icon-help_filled")})),triggerType:"hover",closable:!1},s.createElement("div",{className:"discount-ballon"},s.createElement("div",{className:"discount-ballon-rule"},s.createElement("p",null,"\u6b64\u4ef7\u683c\u4ec5\u4e3a\u9884\u4ed8\u8d39\u4ef7\u683c\uff0c\u5957\u9910\u5185\u7684\u6309\u91cf\u8ba1\u8d39\u9879\u6309\u7167\u5b9e\u9645\u7528\u91cf\u6536\u8d39"))))):"",P&&_?s.createElement(u.Balloon,{v2:!0,align:r,trigger:s.createElement("span",{className:bt,onMouseEnter:function(e){n(tt(e,r))}},w.symbol,s.createElement("strong",null,w.integer)),triggerType:"hover",closable:!1},E):"")}const wt=s.memo(xt);var kt="PRO-99PRICE_INVALID_ORDER_COUNT",Ct="CROWD-NOT_IN_RANGE",Ot="https://home.console.aliyun.com/home/dashboard/ProductAndService",It="https://usercenter2.aliyun.com/order/list?pageIndex=1&pageSize=20&orderStatus=UNPAID";p(p(p({},"PRO-99PRICE_INSTANCE_OVERFLOW",s.createElement("span",null,s.createElement("em",null,"\u65e0\u6cd5\u53c2\u52a099\u8ba1\u5212\uff1a"),"\u6bcf\u4e2a\u7528\u6237\u4ec5\u6709\u4e00\u53f0\u5b9e\u4f8b\u53ef\u4eab\u53d799\u8ba1\u5212\u6743\u76ca\uff0c\u60a8\u540d\u4e0b\u5df2\u6709\u5b9e\u4f8b\u5728\u4eab\u53d7\u6b64\u6743\u76ca\uff0c\u60a8\u53ef\u524d\u5f80\u5f53\u524d\u8d26\u53f7\u6216\u60a8\u540d\u4e0b\u5176\u4ed6\u8d26\u53f7\u7684 ",s.createElement("a",{href:Ot,target:"_blank"},"\u63a7\u5236\u53f0")," \u67e5\u770b\u3002")),kt,s.createElement("span",null,s.createElement("em",null,"\u65e0\u6cd5\u53c2\u52a099\u8ba1\u5212\uff1a"),"\u6bcf\u4e2a\u7528\u6237\u4ec5\u6709\u4e00\u53f0\u5b9e\u4f8b\u53ef\u4eab\u53d799\u8ba1\u5212\u6743\u76ca\uff0c\u60a8\u5df2\u6709\u672a\u652f\u4ed8\u8ba2\u5355\u4eab\u53d7\u6b64\u6743\u76ca\uff0c ",s.createElement("a",{href:It,target:"_blank"},"\u70b9\u51fb\u67e5\u770b"))),Ct,s.createElement("span",null,s.createElement("em",null,"\u65e0\u6cd5\u53c2\u52a099\u8ba1\u5212\uff1a"),"\u62b1\u6b49\uff0c\u60a8\u6682\u4e0d\u7b26\u5408\u672c\u6b21\u6d3b\u52a8\u53c2\u4e0e\u4eba\u7fa4\u8981\u6c42"));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var Rt=function(){return Rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Rt.apply(this,arguments)};var St=function(e){var t=e.animate,r=void 0===t||t,n=e.animateBegin,o=e.backgroundColor,i=void 0===o?"#f5f6f7":o,a=e.backgroundOpacity,c=void 0===a?1:a,u=e.baseUrl,l=void 0===u?"":u,d=e.children,p=e.foregroundColor,f=void 0===p?"#eee":p,m=e.foregroundOpacity,v=void 0===m?1:m,h=e.gradientRatio,y=void 0===h?2:h,P=e.gradientDirection,g=void 0===P?"left-right":P,b=e.uniqueKey,_=e.interval,E=void 0===_?.25:_,x=e.rtl,w=void 0!==x&&x,k=e.speed,C=void 0===k?1.2:k,O=e.style,I=void 0===O?{}:O,R=e.title,S=void 0===R?"Loading...":R,N=e.beforeMask,T=void 0===N?null:N,j=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),A=b||Math.random().toString(36).substring(6),D=A+"-diff",L=A+"-animated-diff",M=A+"-aria",U=w?{transform:"scaleX(-1)"}:null,V="0; "+E+"; 1",B=C+"s",q="top-bottom"===g?"rotate(90)":void 0;return s.createElement("svg",Rt({"aria-labelledby":M,role:"img",style:Rt(Rt({},I),U)},j),S?s.createElement("title",{id:M},S):null,T&&s.isValidElement(T)?T:null,s.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+l+"#"+D+")",style:{fill:"url("+l+"#"+L+")"}}),s.createElement("defs",null,s.createElement("clipPath",{id:D},d),s.createElement("linearGradient",{id:L,gradientTransform:q},s.createElement("stop",{offset:"0%",stopColor:i,stopOpacity:c},r&&s.createElement("animate",{attributeName:"offset",values:-y+"; "+-y+"; 1",keyTimes:V,dur:B,repeatCount:"indefinite",begin:n})),s.createElement("stop",{offset:"50%",stopColor:f,stopOpacity:v},r&&s.createElement("animate",{attributeName:"offset",values:-y/2+"; "+-y/2+"; "+(1+y/2),keyTimes:V,dur:B,repeatCount:"indefinite",begin:n})),s.createElement("stop",{offset:"100%",stopColor:i,stopOpacity:c},r&&s.createElement("animate",{attributeName:"offset",values:"0; 0; "+(1+y),keyTimes:V,dur:B,repeatCount:"indefinite",begin:n})))))},Nt=function(e){return e.children?s.createElement(St,Rt({},e)):s.createElement(Tt,Rt({},e))},Tt=function(e){return s.createElement(Nt,Rt({viewBox:"0 0 476 124"},e),s.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),s.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),s.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),s.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),s.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),s.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const jt=Nt,At="_8e99d5f770b92b72876bd481e72af5e1_price-block",Dt="_8e99d5f770b92b72876bd481e72af5e1_price-row",Lt="_8e99d5f770b92b72876bd481e72af5e1_currency",Mt="_8e99d5f770b92b72876bd481e72af5e1_sale-price",Ut="_8e99d5f770b92b72876bd481e72af5e1_price-unit",Vt={speed:1.5,width:200,height:68,viewBox:"0 0 200 68",backgroundColor:"#f0f0f0",foregroundColor:"#e0e0e0"},Bt=s.memo(()=>s.createElement(jt,((e,t)=>{for(var r in t||(t={}))i.call(t,r)&&c(e,r,t[r]);if(o)for(var r of o(t))a.call(t,r)&&c(e,r,t[r]);return e})({},Vt),s.createElement("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"100",height:"44"})));Bt.displayName="PriceSkeleton";const qt=s.memo(({price:e,goodData:t})=>s.createElement("div",null,s.createElement(wt,{isLogin:!1,price:e,isChannelPrice:!1,good:t}),s.createElement(Pt,{good:t,price:e})));qt.displayName="ApiPrice";const Ft=s.memo(({card:e})=>null!=e.currencyUnit||null!=e.salePrice?s.createElement("div",{className:Dt},e.currencyUnit&&s.createElement("div",{className:Lt,dangerouslySetInnerHTML:{__html:e.currencyUnit}}),null!=e.salePrice&&s.createElement("div",{className:Mt,dangerouslySetInnerHTML:{__html:e.salePrice}}),e.salePriceUnit&&s.createElement("div",{className:Ut,dangerouslySetInnerHTML:{__html:e.salePriceUnit}})):null);Ft.displayName="StaticPrice";r.exports=({card:e})=>{const[t,r]=s.useState(null),[n,o]=s.useState(null),[i,a]=s.useState(!!(null==e?void 0:e.goodId));if(s.useEffect(()=>{if(!(null==e?void 0:e.goodId))return;let t=!1;return a(!0),We(e.goodId).then(e=>{if(!t)return r(e),e.getPrice({})}).then(e=>{t||(o(e),a(!1))}).catch(()=>{t||a(!1)}),()=>{t=!0}},[null==e?void 0:e.goodId]),!e)return null;const c={"--show-discount-ballon-btn":e.showDiscountBallonBtn?"inline-flex":"none"};return i?s.createElement("div",{className:At,style:c},s.createElement(Bt,null)):s.createElement("div",{className:At,style:c},n&&t?s.createElement(qt,{price:n,goodData:t}):s.createElement(Ft,{card:e}))}});
biu.define({name:"@ali/hmod-adc-pd-coding-plan-ai-product-card",version:"0.0.2",dependencies:{react:"^16.8.1"}},function(e,t,r){"use strict";var n=Object.defineProperty,o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t)=>{for(var r in t||(t={}))i.call(t,r)&&c(e,r,t[r]);if(o)for(var r of o(t))a.call(t,r)&&c(e,r,t[r]);return e};const u=e("react");function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function m(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e,t){return new URLSearchParams(e).get(t)},y=function(){var e=!!navigator.userAgent.toLowerCase().match(/(android|iphone|ipod|windows\sphone)/gm);return{isMobile:e||window.innerWidth<1056,isPhone:e}},P=function(){return m(function e(){l(this,e),h(this,"cache",void 0),window.__good_cache_data||(window.__good_cache_data={}),this.cache=window.__good_cache_data},[{key:"setDelivery",value:function(e,t){this.cache["_delivery_".concat(e)]=t}},{key:"getDelivery",value:function(e){return this.cache["_delivery_".concat(e)]}},{key:"setGood",value:function(e,t){this.cache["_good_".concat(e)]=t}},{key:"getGood",value:function(e){return this.cache["_good_".concat(e)]}}])}();function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){if(e){if("string"==typeof e)return g(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var w={RAM_USER_HAS_NOT_FOR_PRICE:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u63a7\u5236\u53f0\u6388\u6743\uff0c\u9700\u8981\u6388\u6743\u7684Action\u4e3a\uff1abss:QueryPrice",FC_USER_HAS_NOT_FOR_PRICE:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u8d39\u7528\u4e2d\u5fc3\u6388\u6743\uff0c\u9700\u6388\u6743\u7684\u6743\u9650\u70b9code\u4e3a\uff1aqueryprice"},k={cloud_efficiency:"\u9ad8\u6548\u4e91\u76d8",cloud_essd:"ESSD\u4e91\u76d8",cloud_ssd:"SSD\u4e91\u76d8",cloud_essd_entry:"ESSD Entry",cloud_auto:"ESSD AutoPL"},O="\u4f01\u4e1a\u4e13\u4eab",C="\u65b0\u4eba\u4e13\u4eab",E="\u4e2a\u4eba\u4e13\u4eab",I={"12:Month":"1\u5e74","24:Month":"2\u5e74","36:Month":"3\u5e74"},R="".concat("\xa5","***"),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(void 0===e)return"";var r=Number(e);return(Math.round(r*Math.pow(10,t-2))/Math.pow(10,t)).toFixed(t)},j=function(e){var t=e.unit,r=e.digital,n=e.money,o=e.noPermission,i=void 0!==o&&o,a=e.ignorePermission,c=void 0!==a&&a,s=e.defaultCondition,u=void 0===s?function(){}:s;return i&&!c?R:[void 0,null].includes(n)||u()?"":function(e){var t=e.currency,r=void 0===t?"\xa5":t,n=e.money,o=void 0===n?"":n,i=e.unit,a=void 0===i?"":i;return"".concat(r).concat(o).concat(a)}({money:S(n,r),unit:t})},T=function(e){var t=e.articleItemResults,r=0,n=0,o=0;return t.forEach(function(e){e.price&&2!==e.chargeType&&e.price.discountedPrice>-1&&(r||(r=0),n||(n=0),r+=e.price.discountedPrice||0,n+=e.price.totalPrice||0,o+=e.price.discount||0)}),{discountedPrice:r,totalPrice:n,discount:o}},A=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o=t.code,i=t.price,a=t.priceAdjustTime,c=(null==t?void 0:t.depreciateInfo)||{},s=r,u=null==e?void 0:e.isPackage,l=null==e?void 0:e.isPostPay,d=null==e?void 0:e.isResourcePackage;if(!(u||i&&void 0!==i.discountedPrice))return{};l&&i.unit&&(s=i.unit.replace("\u5143","")),d&&(s="");var p=null,f=null,m=0,h=null;if(u){var v=t.articleItemResults,y=T({articleItemResults:void 0===v?[]:v});p=y.discountedPrice,f=y.totalPrice,m=y.discount}else f=i.totalPrice,p=i.discountedPrice,m=i.discount,h=i.channelPrice;var P=j({ignorePermission:!0,noPermission:!!o,money:f,unit:s,digital:n}),g=j({noPermission:!!o,money:p,unit:s,digital:n}),b=j({noPermission:o&&h,money:h,unit:s,digital:n}),_=j({ignorePermission:!0,money:c.listPrice,unit:s,digital:n,defaultCondition:function(){return c.listPrice<=0}}),x=i.cheapStandAmount,k=j({ignorePermission:!0,money:x,unit:s,digital:n,defaultCondition:function(){return x<=0}}),O=void 0!==c.cheapRate&&null!==c.cheapRate?"".concat(Math.round(1e4*c.cheapRate)/100,"%"):"";return{dailyPrice:P,promotionPrice:g,discount:j({ignorePermission:!0,money:m,unit:s,digital:n,defaultCondition:function(){return m<=0}}),hasDiscount:m>0,queryFailCode:o||"",codeContent:w[o],channelPrice:b,listPrice:_,cheapStandAmount:k,cheapRate:O,isContractActivity:c.isContractActivity||!1,priceAdjustTime:a}};function D(e){if(!e)return"";var t=_(e.match(/^(\D*)(\d+)(\.\d+)?(.*)$/),5),r=t[1],n=t[2],o=void 0===n?"":n,i=t[3],a=void 0===i?".00":i,c=t[4],s=void 0===c?"":c,u=s;if(/\//.test(u)){var l=(u=s.replace(/\s/g,"").replace(/^\//,"")).split("/");l.length>2&&(l.length=2),u=l.join("/")}var d="";return o&&(d=(r||"\uffe5")+o+a),u&&(d+="/".concat(u)),/\/\u5143/.test(d)&&(d=d.replace(/\/\u5143/,"")),d}function L(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(u){return void r(u)}c.done?t(s):Promise.resolve(s).then(n,o)}function N(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){L(i,n,o,a,c,"next",e)}function c(e){L(i,n,o,a,c,"throw",e)}a(void 0)})}}function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U,V={exports:{}},q={exports:{}};(U=q).exports=function(e,t){this.v=e,this.k=t},U.exports.__esModule=!0,U.exports.default=U.exports;var B=q.exports,F={exports:{}},G={exports:{}};!function(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(c){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(G);var K=G.exports;!function(e){var t=K;function r(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var n,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.toStringTag||"@@toStringTag";function s(e,r,i,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return t(s,"_invoke",function(e,t,r){var i,a,c,s=0,l=r||[],d=!1,p={p:0,n:0,v:n,a:f,f:f.bind(n,4),d:function(e,t){return i=e,a=0,c=n,p.n=t,u}};function f(e,t){for(a=e,c=t,o=0;!d&&s&&!r&&o<l.length;o++){var r,i=l[o],f=p.p,m=i[2];e>3?(r=m===t)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=f&&((r=e<2&&f<i[1])?(a=0,p.v=t,p.n=i[1]):f<m&&(r=e<3||i[0]>t||t>m)&&(i[4]=e,i[5]=t,p.n=m,a=0))}if(r||e>1)return u;throw d=!0,t}return function(r,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,m),a=l,c=m;(o=a<2?n:c)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,c)):p.n=c:p.v=c);try{if(s=2,i){if(a||(r="next"),o=i[r]){if(!(o=o.call(i,c)))throw TypeError("iterator result is not an object");if(!o.done)return o;c=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=n}else if((o=(d=p.n<0)?c:e.call(t,p))!==u)break}catch(h){i=n,a=1,c=h}finally{s=1}}return{value:o,done:d}}}(e,i,a),!0),s}var u={};function l(){}function d(){}function p(){}o=Object.getPrototypeOf;var f=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),m=p.prototype=l.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,t(e,c,"GeneratorFunction")),e.prototype=Object.create(m),e}return d.prototype=p,t(m,"constructor",p),t(p,"constructor",d),d.displayName="GeneratorFunction",t(p,c,"GeneratorFunction"),t(m),t(m,c,"Generator"),t(m,a,function(){return this}),t(m,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:s,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(F);var Y=F.exports,Q={exports:{}},H={exports:{}},X={exports:{}};!function(e){var t=B,r=K;e.exports=function e(n,o){function i(e,r,a,c){try{var s=n[e](r),u=s.value;return u instanceof t?o.resolve(u.v).then(function(e){i("next",e,a,c)},function(e){i("throw",e,a,c)}):o.resolve(u).then(function(e){s.value=e,a(s)},function(e){return i("throw",e,a,c)})}catch(l){c(l)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,r){function n(){return new o(function(t,n){i(e,r,t,n)})}return a=a?a.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(X);var $=X.exports;!function(e){var t=Y,r=$;e.exports=function(e,n,o,i,a){return new r(t().w(e,n,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(H);var z=H.exports;!function(e){var t=z;e.exports=function(e,r,n,o,i){var a=t(e,r,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}(Q);var J=Q.exports,W={exports:{}};!function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(W);var Z=W.exports,ee={exports:{}},te={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(te);var re=te.exports;!function(e){var t=re.default;e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(ee);var ne=ee.exports;!function(e){var t=B,r=Y,n=J,o=z,i=$,a=Z,c=ne;function s(){var u=r(),l=u.m(s),d=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function m(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,f[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,c(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=s=function(){return{wrap:function(e,t,r,n){return u.w(m(e),t,r,n&&n.reverse())},isGeneratorFunction:p,mark:u.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:i,async:function(e,t,r,i,a){return(p(t)?o:n)(m(e),t,r,i,a)},keys:a,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}(V);var oe=(0,V.exports)(),ie=oe;try{regeneratorRuntime=oe}catch(st){"object"==typeof globalThis?globalThis.regeneratorRuntime=oe:Function("r","regeneratorRuntime = r")(oe)}const ae=M(ie);function ce(){return se.apply(this,arguments)}function se(){return(se=N(ae.mark(function e(){return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.$ACE){e.next=2;break}return e.abrupt("return",window.$ACE);case 2:return e.next=4,le("//g.alicdn.com/??aliyun/util/".concat("1.2.30","/index.js"));case 4:return e.abrupt("return",window.$ACE);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}window.$ACE_LOADER=ce;const ue={then:function(e){return ce().then(e)}};function le(e){return de.apply(this,arguments)}function de(){return(de=N(ae.mark(function e(t){var r,n;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=document.getElementsByTagName("head")[0],(n=document.createElement("script")).setAttribute("type","text/javascript"),n.setAttribute("src",t),r.appendChild(n),e.abrupt("return",new Promise(function(e){n.onload=function(){e()}}));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function pe(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var fe=function(e){return e.DailyDiscount="dailyDiscount",e.NinetyNinePrice="99Price",e.DoubleDiscount="doubleDiscount",e}({}),me=function(e){return e.DoubleDiscount="doubleDiscount",e}({});function he(e){return ve.apply(this,arguments)}function ve(){return ve=N(ae.mark(function e(t){var r,n,o,i,a,c,s,l,d,p,f,m,h,P,g,b,_,x,w,k,O,C,E,I,R,S,j,T,A,D,L,M=arguments;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=M.length>1&&void 0!==M[1]?M[1]:{},n=M.length>2?M[2]:void 0,o=!(M.length>3&&void 0!==M[3])||M[3],i=M.length>4?M[4]:void 0,a=t.isBuy,c=t.buyUrl,s=r.btnType||"pay",l=r.orderParams||{},1!==a||!c){e.next=1;break}return window.open(c,"_blank")||setTimeout(function(){window.open(c,"_blank")},50),e.abrupt("return");case 1:if(d=t._promationPriceResult,p=(void 0===d?{}:d).needCertifiedType,"individual_business"===(f=null==n?void 0:n.certifyAccountType)&&(f="enterprise"),!o||!p||"all"===p||f===p||!i&&!window.__ALIYUN_EXPERIENCE_ELEMENT__){e.next=4;break}return m="enterprise"===p,h=y().isMobile,P="\u5f53\u524d\u4ef7\u683c\u9650\u4e2a\u4eba\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4e2a\u4eba\u8d26\u53f7\u8d2d\u4e70\u6216\u76f4\u63a5\u8d2d\u4e70\u3002",m&&(P=h?"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u6309\u4e2a\u4eba\u7528\u6237\u4ef7\u683c\u76f4\u63a5\u8d2d\u4e70":"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u5c06\u8be5\u8d26\u53f7\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u3002"),e.prev=2,g=i||window.__ALIYUN_EXPERIENCE_ELEMENT__,b=g.Dialog,_=g.Button,x=b.show({v2:!0,title:"\u6e29\u99a8\u63d0\u793a",content:P,footer:u.createElement("div",{className:"marketing-goods-dialog-footer"},m&&!h&&u.createElement("a",{href:"https://account.console.aliyun.com/v2/?#/authc/home",target:"_blank",style:{marginRight:10}},u.createElement(_,{type:"primary"},"\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1")),u.createElement(_,{type:m&&h?"primary":"secondary",onClick:function(){x.hide(),he(t,r,n,!1,i)}},"cart"===s?"\u52a0\u5165\u8d2d\u7269\u8f66":"\u76f4\u63a5\u8d2d\u4e70"))}),e.abrupt("return");case 3:e.prev=3,e.catch(2);case 4:if(w=t._promationPriceResult.promotionResults,!((k=Object.keys(w))&&k.length>0)){e.next=11;break}return e.prev=5,O=[],k.forEach(function(e){var t,r=w[e],n=null==r||null===(t=r.promotionOption)||void 0===t||null===(t=t.activityExtInfo)||void 0===t?void 0:t.activityId;n&&O.push(n)}),O=Array.from(new Set(O)),C=i||window.__ALIYUN_EXPERIENCE_ELEMENT__,E=C.Dialog,I=C.Button,e.next=6,ue;case 6:return R=e.sent,e.next=7,R.get("Promotion");case 7:return S=e.sent,j=S.Verify,T=v(window.location.search,"preVerify"),e.next=8,Promise.all(O.map(function(e){return j.queryRisk(e,"1"===T)}));case 8:if(!(e.sent.some(function(e){return!e.status})&&E&&I)){e.next=9;break}return A=E.show({v2:!0,title:"\u6e29\u99a8\u63d0\u793a",content:u.createElement("span",null,"\u7cfb\u7edf\u68c0\u6d4b\u5230\u60a8\u7684\u8d26\u53f7\u65e0\u6cd5\u53c2\u52a0\u6b64\u4f18\u60e0\u6d3b\u52a8\uff0c\u60a8\u53ef\u63d0\u4ea4\u6750\u6599\u8fdb\u884c\u7533\u8bc9\uff0c\u7533\u8bc9\u901a\u8fc7\u540e\u53ef\u53c2\u52a0\u6d3b\u52a8"),footer:u.createElement("div",{className:"marketing-goods-dialog-footer"},u.createElement(I,{type:"primary",onClick:function(){A.hide(),window.open("https://smartservice.console.aliyun.com/service/self-service-center/search?id=27874&mode=toolPage&trackFrom=topic-MICRO_APP","_blank")}},"\u524d\u5f80\u63d0\u4ea4"))}),e.abrupt("return");case 9:e.next=11;break;case 10:e.prev=10,e.catch(5);case 11:if(t.product){e.next=12;break}return e.next=12,t.init();case 12:if(!(D=t.children)||!D.length){e.next=13;break}return e.next=13,Promise.all(D.map(function(){var e=N(ae.mark(function e(t){var r;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=0,t&&t.selectedCardIndex&&(r=t.selectedCardIndex),!t||t.product){e.next=1;break}return e.next=1,t.init();case 1:t&&t.product&&t.product.setSKU(r);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 13:if(L={id:t?"".concat(0,".",t.goodsId,".").concat(t.goodsId):null,bizChannel:"",fromApp:"",orderParams:l,buttons:[s],moduleVersion:3},!t.isPackage){e.next=15;break}return t.product.setPackageName(t.name),t.product.setPackageGoods(D),e.next=14,t.product.startPackagePopUpBuy(L);case 14:e.next=16;break;case 15:return t.product.setSKU(t.selectedCardIndex),e.next=16,t.product.popUpBuy(L);case 16:case"end":return e.stop()}},e,null,[[2,3],[5,10]])})),ve.apply(this,arguments)}var ye=function(e){return e.FlashSale="flash_sale_activity_id",e.LowPrice="low_price_activity_id",e}({}),Pe=function(e){return e[e.PostPay=2]="PostPay",e[e.PrePay=1]="PrePay",e}({});function ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var be=function(e){var t=e.good,r=e.order,n=void 0===r?0:r,o=t.commodityCode,i=t.goodsId,a=t.id;return"".concat(o,".").concat(i||a,".").concat(n)},_e=function(e){var t=e.goodsList,r=void 0===t?[]:t,n=e.planCode,o=void 0===n?"":n;return r.map(function(e,t){return new Qe({good:e,planCode:o,order:t})})},xe=function(e){var t=e.articleItemResults,r=e.activityChannel,n=e.promotionPriceData,o=(null==t?void 0:t.length)>0?t[0]:{};if(r&&o&&o.price){var i,a=(null==n||null===(i=n.articleItemResults)||void 0===i?void 0:i.length)>0?null==n?void 0:n.articleItemResults[0]:{},c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},(null==o?void 0:o.price)||{});o.price=null==a?void 0:a.price,o.price.channelPrice=null==c?void 0:c.discountedPrice,o.price.channelTotalPrice=null==c?void 0:c.discountedTotalPrice,o.price.channelDiscount=null==c?void 0:c.discount}if(o&&o.price){var s,u,l=o.depreciateInfo,d=void 0===l?{}:l;if(d){var p=d.isContractActivity,f=d.contractActivity;if(p){var m=(void 0===f?{}:f).finalFee;o.price.cheapStandAmount=m||o.price.totalPrice}else o.price.cheapStandAmount=d.cheapStandAmount||d.originalStandAmount;o.price.listPrice=d.listPrice}var v=function(e){if(e){var t=Object.entries(e).find(function(e){var t,r=e[1];return(null==r||null===(t=r.promotionOption)||void 0===t?void 0:t.levelCategory)===me.DoubleDiscount});if(t){var r=t[1].promotionOption,n=void 0===r?{}:r;return{doubleDiscount:n.discount,remainDiscountQuota:n.remainDiscountQuota}}}}(null==n?void 0:n.promotionResults);v&&(o.price.doubleDiscount=v.doubleDiscount,o.price.remainDiscountQuota=v.remainDiscountQuota),o.price.activityDiscount=null!=v&&v.doubleDiscount&&null!=o&&null!==(s=o.price)&&void 0!==s&&s.discount?o.price.discount-v.doubleDiscount:null==o||null===(u=o.price)||void 0===u?void 0:u.discount}return o},we=function(e){var t=(null==e?void 0:e.articleItemResults)||[],r={discountedPrice:0,totalPrice:0,discount:0},n=T({articleItemResults:t}),o=n.discountedPrice,i=n.totalPrice,a=n.discount;return r.discount=a||0,r.discountedPrice=o||0,r.totalPrice=i||0,r.totalPrice&&(r.listPrice=r.totalPrice),r.discount&&(r.activityDiscount=r.discount),r},ke=function(e,t){var r=e.filter(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).price,t=void 0===e?{}:e;return t&&t.discountedPrice>=0&&t.unitPrice>0}),n=[];return r&&r.length>0&&r.forEach(function(e,r){var o=xe({articleItemResults:[e]}),i=o.name,a=o.depreciateInfo,c=o.price;n.push({id:"".concat(r,"-").concat(i),name:i,depreciateInfo:a||{},price:c,priceAdjustTime:t})}),n},Oe=function(){var e=N(ae.mark(function e(t,r){var n,o,i;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object.keys(t),o=Object.keys(r),n&&n.length>0?n.forEach(function(e){o.forEach(function(t){e===t&&(i=e)})}):i=o&&o.length>0?o[0]:"",e.abrupt("return",{labelItemKey:i,hasPromotion:o&&o.length>0});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}();const Ce=function(e){var t=e||{},r=t.enterpriseUserOnly,n=t.personalUserOnly;return t.newUserOnly?{type:"newUser",text:C}:r?{type:"enterprise",text:O}:n?{type:"personal",text:E}:null},Ee=function(e,t,r){var n=e;return"12:Month"===t?n="1\u5e74":"24:Month"===t?n="2\u5e74":"36:Month"===t&&(n="3\u5e74"),"systemdisk"===r&&k[t]&&(n=k[t]),n=n.replace(/([0-9]+)\s+/g,"$1")},Ie=function(e,t){var r=e[t];return"systemdisk"===t?r=r.systemdiskCategory||r.systemDiskCategory:"vm_bandwidth"!==t&&"bandwidth"!==t||(r.internetMaxBandwidthOut||r.internetMaxBandwidthOut>-1)&&(r=r.internetMaxBandwidthOut),r},Re=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.defaultValues,n=t.isPackage,o=t.selectedCardIndex,i=t.children;return n?(e=[],i.forEach(function(t,r){t.defaultValues.forEach(function(n){if(n.cardIndex===t.selectedCardIndex){var o=n.orderParams;o.uniqLabel=t.uniqKey||be({good:t,order:r}),e.push(o)}})})):(r.forEach(function(r){r.cardIndex===o&&((e=r.orderParams).uniqLabel=t.uniqKey||be({good:t}))}),!e&&r[0]&&((e=r[0].orderParams).uniqLabel=t.uniqKey||be({good:t}))),e};function Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Te=function(e){return"number"==typeof e?"".concat(e):e},Ae=function(e,t,r,n,o,i){var a,c=[],s=[];if(e<t.length){var u=o[a=t[e].code];if(r.forEach(function(e){var t=e.value,r=e.orderParams;if(t){var n=Object.keys(t);if(!n||n.length<1)return!1;var o,i,s=Ie(t,a);if("instance_type"!==a)o=null==r||null===(i=r.components)||void 0===i?void 0:i.find(function(e){return e.componentCode===a});o&&o.instanceProperty?function(e,t,r,n){var o=e.instanceProperty[0];if(o&&o.name&&!r.find(function(e){return e.value===t})){var i=Ee(o.name,t,n);r.push({text:i,label:i,value:Te(t)})}}(o,s,c,a):function(e,t,r,n){e&&e.options&&e.options.length>0&&e.options.forEach(function(e){var o=e.value||e.defaultValue;if(!o||Te(o)===Te(t)){var i=function(e){var t="";return"string"==typeof e.text?t=e.text:e.text&&e.text.title&&(t=e.text.title),t}(e);if("instance_type"===n){var a=i.split(" ");a&&a.length>0&&(i=a[0])}var c=r.find(function(e){return Te(e.value)===Te(t)});if(i||(i=t),i&&!c){var s=Ee("".concat(i).concat(e.unit||""),t,n);r.push({text:s,label:s,value:Te(o)})}}})}(u,s,c,a)}}),c&&c.length>0){var l=function(e,t,r,n){var o=0;return e&&e.forEach(function(e){e.code===t&&r.forEach(function(t,r){var i=n[e.code];Te(t.value)===i&&(o=r)})}),o}(t,a,c,i),d=c[l];i[a]=Te(d.value),r.forEach(function(e){var t=e.value;if(t){var r=Object.keys(t);if(!r||r.length<1)return!1;var n=Ie(t,a);Te(d.value)===Te(n)&&s.push(e)}})}if(e<10){var p=s.length>0?s:r;Ae(e+1,t,p,n,o,i)}}return a&&s.length>0&&(n[a]=c),s},De="1"===v(window.location.search,"prePrice")?"https://pre-t.aliyun.com":"https://t.aliyun.com",Le={QUERY_PRICE:"".concat(De,"/abs/promotion/queryPrice"),QUERY_PRICE_BATCH:"".concat(De,"/abs/promotion/queryPriceBatch"),QUERY_PRICE_BATCH_STEALTH:"".concat(De,"/abs/promotion/queryPriceBatchStealth")},Ne=function(e,t){var r=function(e){for(var t=null,r=0,n=[ye.FlashSale,ye.LowPrice];r<n.length;r++){var o=n[r];if(e[o]){t=o;break}}return t}(t),n=null;if(r&&(n=t[r]),n)switch(r){case ye.FlashSale:return e.orderParams.flash_sale_activity_id=n,e.orderParams.no_coupons=!0,void(e.orderParams.watchActivityIdList=n);case ye.LowPrice:return void(e.orderParams.watchActivityIdList=n);default:return}},Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){if(null!=e&&e.orderParams||(e.orderParams={}),"object"===Object.prototype.toString.call(e.orderParams).slice(8,-1).toLowerCase()){var r=t.isManualQueryPrice,n=void 0!==r&&r;e.orderParams.pricing_trigger_type=n?"manual":"default"}return e}},Ue=function(e){var t,r=e.goodsId,n=e.orderParams,o=void 0===n?{}:n,i=e.planId,a=e.activityId,c=e.orderParamsOption,s=e.isBatch,u=void 0!==s&&s;Array.isArray(o)?(a&&o.forEach(function(e){Ne(e,a)}),o.forEach(function(e){Me(e,c)}),t=o):(a&&Ne(o,a),Me(o,c),t=[o]);var l={commodityId:r,commodities:t};return i&&(l.planId=i),u&&(l.bizOccasion="queryPrice"),l};const Ve=function(){var e=N(ae.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,p,f,m,h;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.goodsId,n=t.orderParams,o=void 0===n?{}:n,i=t.planId,a=t.activityChannel,c=t.stealth,s=t.activityId,u=t.orderParamsOption,d=Ue({goodsId:r,orderParams:o,planId:i,activityId:s,orderParamsOption:void 0===u?{}:u}),p=Le.QUERY_PRICE,a?(p=Le.QUERY_PRICE_BATCH,c&&(p=Le.QUERY_PRICE_BATCH_STEALTH),f=JSON.stringify(d),(f=JSON.parse(f)).commodities.forEach(function(e){e&&e.orderParams&&(e.orderParams.no_coupons=!0,e.orderParams.aliyunActivityChannel=a)}),(m=[]).push(f),m.push(d),l=JSON.stringify(m)):(c&&(p="".concat(De,"/abs/promotion/queryPriceStealth")),l=JSON.stringify(d)),e.next=1,ue.then(function(){var e=N(ae.mark(function e(t){return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.Request.post(p,{param:l});case 1:h=e.sent;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:return e.abrupt("return",h);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var qe=function(e){var t=e;if(e){var r=t.split(" ");if(r&&r.length>0&&"string"==typeof r[0]){var n=[];r[0].split("-").forEach(function(e){n.push(1*e)}),t=n.join(".")}}return t},Be=function(){var e=N(ae.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,p,f,m,h,v,y,P,g,b,_,x;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,n=t.activityChannel,o=t.planId,Array.isArray(r.data)&&n?(c=null===(s=r.data[0])||void 0===s?void 0:s.data,a=null===(u=r.data[1])||void 0===u?void 0:u.data,i=r.data[0].code||200):(a=r.data,i=r.code),d=(null==(l=c||a)?void 0:l.promotionResults)||{},p=(null==l?void 0:l.promotionLabelInfo)||{},e.next=1,Oe(p,d);case 1:return f=e.sent,m=f.labelItemKey,h=f.hasPromotion,v=null==l?void 0:l.articleItemResults,y={},o?(P=we(l),y={price:P,hasPromotion:h,articleItemResults:v,promotionResults:d}):(b=xe({articleItemResults:v,activityChannel:n,promotionPriceData:a}),_=qe((null==b||null===(g=b.depreciateInfo)||void 0===g?void 0:g.startTime)||""),y={price:b.price,promotionResults:d,promotionLabelInfo:p,depreciateInfo:(null==b?void 0:b.depreciateInfo)||{},labelItemKey:m,hasPromotion:h,priceAdjustTime:_,watchActivityResultList:null==b?void 0:b.watchActivityResultList},(x=b.chargeType===Pe.PostPay)&&(y.isPostPay=x,y.postPayModules=ke(b.moduleResults,_))),200!==i&&-1!==Object.keys(w).indexOf(i)&&(y.code=i),e.abrupt("return",y);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();const Fe=function(){var e=N(ae.mark(function e(t){var r,n,o,i;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.planId,n=t.activityChannel,e.next=1,Ve(t);case 1:return o=e.sent,e.next=2,Be({data:o,activityChannel:n,planId:r});case 2:return i=e.sent,e.abrupt("return",i);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var Ge=["refresh"];function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Qe=function(){return m(function e(t){var r,n=this,o=t.good,i=t.planCode,a=t.order,c=void 0===a?0:a;l(this,e),h(this,"sku",[]),h(this,"scm",void 0),h(this,"title",void 0),h(this,"name",void 0),h(this,"description",void 0),h(this,"productCode",void 0),h(this,"commodityCode",void 0),h(this,"goodsId",void 0),h(this,"mcm_code",void 0),h(this,"mcm_id",void 0),h(this,"selectSkuId",0),h(this,"children",void 0),h(this,"parent",void 0),h(this,"_rawGood",void 0),h(this,"price",void 0),h(this,"postPayPrice",void 0),h(this,"commodityType",void 0),h(this,"isBuy",void 0),h(this,"buyUrl",void 0),h(this,"productDetailLink",void 0),h(this,"commodityDetailUrl",void 0),h(this,"isPackage",!1),h(this,"packagecode",void 0),h(this,"planId",void 0),h(this,"goodsType",void 0),h(this,"planItemId",void 0),h(this,"defaultValues",[]),h(this,"product",void 0),h(this,"_commodityKeys",void 0),h(this,"_checkedFeatureList",void 0),h(this,"_promationPriceResult",void 0),h(this,"commodity",void 0),h(this,"selectedCardIndex",0),h(this,"selectedComponentValue",{}),h(this,"isPostPay",void 0),h(this,"hasPostPay",void 0),h(this,"activityId",void 0),h(this,"isResourcePackage",void 0),h(this,"uniqKey",void 0),h(this,"planInstanceIsRequired",void 0),h(this,"orderParamsOption",{isManualQueryPrice:!1}),h(this,"_displayComponents",void 0),h(this,"_promotionTags",void 0),h(this,"_staticLoaded",void 0),h(this,"_staticLabels",void 0),h(this,"getTimeUnit",function(e){var t=e.orderParams,r="";if(!e.isPostPay){var o=t?I["".concat(t.duration,":").concat(t.pricingCycle)]:"";r=n.formatTime(o,t)}return r}),o&&o.defaultValues&&o.defaultValues.forEach(function(e){var t=e.values;t&&t.forEach(function(e){n.sku.push({config:e.value})})}),this.uniqKey=be({good:o,order:c}),this._rawGood={commodityCode:o.commodityCode,specCode:o.itemCode,productCode:o.productCode,accessories:{commodityCode:o.commodityCode,specCode:o.itemCode,productCode:o.productCode,commodity:o.modules?o.modules.commodity:void 0},title:o.itemName,name:o.itemName,sku:this.sku,goodsId:o.id,id:o.id,itemId:o.itemId,actPromotionCommodityAttributeList:o.actPromotionCommodityAttributeList},i&&this._rawGood&&(this._rawGood.accessories.planCode=i),this._staticLoaded=o.staticLoaded||o.defaultValues&&o.defaultValues.length>-1,this.scm=o.scm,this.productCode=o.productCode,this.commodityCode=o.commodityCode,this.goodsId=o.id,this.mcm_code="".concat(this.productCode,".").concat(this.commodityCode),this.mcm_id="".concat(0,".",o.id,".").concat(o.id),this.selectSkuId=0,this.children=o.children||[],this.children.forEach(function(t){t instanceof e&&(t.setParent(n),t.selected=!0)}),this.title=o.itemName,this.name=o.itemName,this.description=o.description;var s,u,d=o.defaultValues||[];this.setDefaultValues(o.defaultValues),this.commodity=(s=o.modules,u=null,s&&s.commodity?u=s.commodity:s&&s.domainParams&&(u=s.domainParams),u),this.price=o.price;var p=o.actPromotionCommodityAttributeList,f=Ze(p,"post_pay_expenses_item");this.postPayPrice=f&&JSON.parse(f);var m=Ze(p,"market_commodity_labels");this._staticLabels=m&&m.split(",")||[],this.commodityType=o.commodityType,this.isBuy=o.isBuy,this.buyUrl=o.buyUrl,this.productDetailLink=o.productDetailLink,this.commodityDetailUrl=o.commodityDetailUrl,this.hasPostPay=o.hasPostPay;var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("plan"===e.comType){var r=e.actPromotionCommodityAttributeList,n=Ze(void 0===r?[]:r,"ntm_plan_id"),o=n&&Number(n)||void 0,i=e.commodityCode;return t&&(t.accessories.goodsType="startPackage",t.accessories.planCode=e.commodityCode),{goodsType:"startPackage",isPackage:!0,packagecode:i,planId:o,_rawGood:t}}if("plan_commodity"===e.comType){var a=e.actPromotionCommodityAttributeList.find(function(e){return"planItemId"===e.attrCode}),c=(null==a?void 0:a.attrValue)&&1*a.attrValue||null;t&&(t.accessories.planItemId=c);var s="boolean"!=typeof e.planInstanceIsRequired||e.planInstanceIsRequired;return t.accessories.defaultChecked=!0,{_rawGood:t,planInstanceIsRequired:s}}return!1}(o,this._rawGood);if(Object.assign(this,v),this._commodityKeys=this.resetCommodityKeys((null===(r=d[0])||void 0===r?void 0:r.selectedCommodityKeys)||[]),!this.isPackage){var y={};if(this.commodity){Ae(0,this._commodityKeys,this.defaultValues,y,this.commodity,this.selectedComponentValue);var P=Object.keys(y);P&&P.length<3&&(y=this.groupStaticModule(y))}else y=this.groupStaticModule(y);this._displayComponents=y}var g=_([ye.FlashSale,ye.LowPrice].map(function(e){return Ze(p,e)}),2),b=g[0],x=g[1];(b||x)&&(this.activityId=h(h({},ye.FlashSale,b),ye.LowPrice,x));var w=this.getPromationCommodity(o,"commodity_sub_type");w&&(this.isResourcePackage="resourcePackageCommodity"===w)},[{key:"getPromationCommodity",value:function(e,t){var r=e.actPromotionCommodityAttributeList,n=void 0===r?[]:r,o=n&&n.find(function(e){return e.attrCode===t});return o&&o.attrValue}},{key:"setDefaultValues",value:function(e){var t,r=[];e&&(e.forEach(function(e,t){if(0===t){var n=e.values;n&&n.forEach(function(e,t){r.push(Ye(Ye({},e),{},{cardIndex:t}))})}}),this.defaultValues=r,this._checkedFeatureList=null===(t=e[0])||void 0===t?void 0:t.checkedFeatureList)}},{key:"init",value:(o=N(ae.mark(function e(){var t=this;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ue.then(function(){var e=N(ae.mark(function e(r){var n,o;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.get("GoodsService");case 1:n=e.sent,o=n.getProduct(t._rawGood),t.product=o;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"setSku",value:function(e){this.selectSkuId=e}},{key:"handlePopUpBuy",value:(n=N(ae.mark(function e(t,r){var n=this;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return!window.__ALIYUN_EXPERIENCE_REACT__&&window.React&&(window.__ALIYUN_EXPERIENCE_REACT__=window.React),!window.__ALIYUN_EXPERIENCE_REACT_DOM__&&window.ReactDOM&&(window.__ALIYUN_EXPERIENCE_REACT_DOM__=window.ReactDOM),e.next=1,ue.then(function(){var e=N(ae.mark(function e(o){var i,a,c,s,u;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,o.get("Account");case 1:return i=e.sent,e.next=2,We();case 2:if(a=e.sent){e.next=3;break}return i.toLogin(),e.abrupt("return");case 3:if(!a||null!==a.certifyAccountType){e.next=4;break}return c=n._promationPriceResult,s=(void 0===c?{}:c).needCertifiedType,u={title:"\u6e29\u99a8\u63d0\u793a"},"personal"!==s&&"enterprise"!==s||(u.subjectType=s),i.toCertificate(u),e.abrupt("return");case 4:return e.next=5,he(n,t,a,!0,r);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})},{key:"addCart",value:(r=N(ae.mark(function e(){var t,r,n=arguments;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},r=n.length>1?n[1]:void 0,e.next=1,this.handlePopUpBuy({orderParams:null==t?void 0:t.orderParams,btnType:"cart"},r);case 1:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"resetCommodityKeys",value:function(e){var t,r=this.commodity,n=[],o=this.defaultValues;(r&&o&&o.length>0&&o.forEach(function(t){if(t.orderParams){var o=t.orderParams.components;o&&(o.forEach(function(t){e.find(function(e){return t.componentCode===e})&&r[t.componentCode]&&(n.find(function(e){return e.code===t.componentCode})||n.push({code:t.componentCode,name:r[t.componentCode].name}))}),["order_time","ord_time","order_num"].forEach(function(t){e.find(function(e){return e===t})&&r[t]&&(n.find(function(e){return e.code===t})||n.push({code:t,name:r[t].name}))}))}}),!r||n&&n.length<3)&&((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){e&&e.checked&&n.length<3&&n.push({code:e.code,name:e.name})});return n}},{key:"groupStaticModule",value:function(e){var t,r=this,n=Ye({},e);return((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){if(e&&e.checked){var t=r._checkedFeatureList.options.find(function(t){return t.value===e.code});t&&(n[e.code]=[{text:t.text,label:t.label,value:t.text}])}}),n}},{key:"getTitle",value:function(){return this.title}},{key:"getDescription",value:function(){return this.description}},{key:"hasLoaded",value:function(){return this._staticLoaded}},{key:"getDisplayComponents",value:function(){var e=this;if(!this.isPackage){var t=this._commodityKeys,r=this._displayComponents,n=[];return t.forEach(function(t){r[t.code]&&n.push({label:t,options:r[t.code],target:e})}),n}var o=[];return this.children.forEach(function(e){var t=e.getDisplayComponents();t&&(o=[].concat(x(o),x(t)))}),o.splice(0,3)}},{key:"formatTime",value:function(e,t){return!this.isPackage&&t?e?"/".concat(e):"/".concat(t.duration).concat(t.pricingCycleTitle):""}},{key:"setFormatPriceResult",value:function(e){var t,r,n=this,o=e.price,i=Re(this),a=o.labelItemKey,c=o.promotionLabelInfo,s=o.promotionResults,u=o.hasPromotion,l=o.depreciateInfo,d=void 0===l?{}:l,p=o.articleItemResults,f=o.isPostPay,m=o.postPayModules,h=o.watchActivityResultList,v=this.getTimeUnit({orderParams:i,isPostPay:f}),y=A({isPackage:this.isPackage,isResourcePackage:this.isResourcePackage},o,v),P=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0===Object.keys(r).length||!n)return{};var o=r,i={tags:[]},a=(null===(e=o[n])||void 0===e?void 0:e.display)||[],c=(null==o||null===(t=o.common)||void 0===t?void 0:t.display)||[];return i.tags=[].concat(x(a),x(c)),i}(c,a),g=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0!==Object.keys(r).length){var o,i,a=(null==r||null===(e=r.common)||void 0===e?void 0:e.biz)||[],c=(null==r||null===(t=r.common)||void 0===t?void 0:t.extraInfo)||{},s=!1,u=!0,l=!0;try{var d=c.promotionBizLabels;for(var p in d)if(d.hasOwnProperty(p)){var f=d[p];if(f.promotionId===n){o=f.orderNumLimit;break}}s=c.sameIdLimit,i=c.userTimes,a.forEach(function(e){"NO_COUPON"===e?u=!1:"NO_REFUND"===e&&(l=!1)})}catch(m){}return{orderNumLimit:o,isSameIdLimt:s,userTimes:i,isCoupon:u,isRefund:l}}}(c,a);this._promotionTags=null==P?void 0:P.tags;var b=a&&(null==s?void 0:s[a])||void 0,_=null==c||null===(t=c.common)||void 0===t?void 0:t.extraInfo,w=_||{},k=w.enterpriseUserOnly,O=w.personalUserOnly;f&&m&&m.length>0?(this.isPostPay=!0,m.forEach(function(e){e.code=o.code,e.formatPrice=A({isPostPay:f,isResourcePackage:n.isResourcePackage},e,"",3)})):this.isPostPay=!1;var C=k?"enterprise":O?"personal":"all";o&&o.price&&v&&(o.price.pricingCycle=v.replace(/^\//,""));var E=[];return this.isPackage&&(E=function(e){var t=e.good,r=e.priceRes,n=t.children,o=r.articleItemResults,i=[];return n.forEach(function(e,n){var a=null==o?void 0:o.find(function(t){return t.tag===(e.uniqKey||be({good:e,order:n}))});if(a){var c={tag:a.tag};a.code=r.code;var s=a.price,u=a.depreciateInfo,l=a.chargeType,d=a.moduleResults,p=l===Pe.PostPay,f=e.defaultValues.find(function(t){return t.cardIndex===e.selectedCardIndex}).orderParams,m=t.getTimeUnit({isPostPay:p,orderParams:f}),h=A({isPackage:e.isPackage,isResourcePackage:e.isResourcePackage},a,m);if(c.price=s,c.formatPrice=h,c.isPostPay=p,p){var v=qe((null==u?void 0:u.startTime)||""),y=ke(d,v);y&&y.length>0&&y.forEach(function(t){t.code=null==r?void 0:r.code,t.formatPrice=A({isPostPay:p,isResourcePackage:e.isResourcePackage},t,"",2)}),c.postPayModules=y}i.push(c)}else i.push(null)}),i}({good:this,priceRes:o})),this._promationPriceResult={promotionResults:s,price:null==o?void 0:o.price,promotionTags:this._promotionTags,depreciateInfo:d,formatPrice:y,promotionResult:b,hasPromotion:u,discountRule:g,is99Price:(null==b||null===(r=b.promotionOption)||void 0===r||null===(r=r.activityExtInfo)||void 0===r?void 0:r.discountScene)===fe.NinetyNinePrice||!1,articleItemResults:p,needCertifiedType:C,isPostPay:f,postPayModules:m,crowdTag:Ce(_),watchActivityResultList:h,articlePriceResults:E},this._promationPriceResult}},{key:"checkStaticPrice",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.price,r=e.commodityType,n=e.commodity,o=e.postPayPrice;if("notcommonbuy_notselfcreate"===r||!n&&t&&t.length>0){var i={},a={};if(t.forEach(function(e){"daily_price"===e.code?a.totalPrice=e.value:"promotion_price"===e.code&&(a.discountedPrice=e.value)}),i={price:a,formatPrice:{promotionPrice:D(a.discountedPrice),dailyPrice:D(a.totalPrice)}},o&&o.length>0){var c=[];o.forEach(function(e){var t=e.daily_price,r=e.promotion_price,n=e.groupId,o=e.expenses_name,i=D(t),a=D(r),s={totalPrice:e.daily_price,dailyPrice:i,promotionPrice:a,discountedPrice:e.promotion_price};c.push({id:n,name:o,price:s,formatPrice:{promotionPrice:D(s.discountedPrice),dailyPrice:D(s.totalPrice)}})}),i=je(je({},i),{},{isPostPay:!0,postPayModules:c})}return i}return!1}(this);return!!e&&(this.isPostPay=!!e.isPostPay,Ye(Ye({},e),{},{promotionTags:this._staticLabels}))}},{key:"getPrice",value:(t=N(ae.mark(function e(){var t,r,n,o,i,a,c,s=arguments;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:{},!(r=this.checkStaticPrice())){e.next=1;break}return e.abrupt("return",r);case 1:return n=t.activityChannel,o=t.stealth,i=t.needActivityId,a=Re(this),e.next=2,ze({goodsId:this.goodsId,orderParams:a,planId:this.planId,activityChannel:n,stealth:o,activityId:i?this.activityId:void 0,orderParamsOption:this.orderParamsOption});case 2:return c=e.sent,e.abrupt("return",this.setFormatPriceResult({price:c}));case 3:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"getComboPrice",value:(e=N(ae.mark(function e(t){var r,n,o,i,a,c,s,u,l,d,p,f,m,h,v,y,P,g,b,x,w,k,O,C,E;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(n=t||{}).refresh,i=pe(n,Ge),a=this._promationPriceResult,!o){e.next=2;break}return e.next=1,this.getPrice(i);case 1:a=e.sent;case 2:if(this.isPackage){e.next=3;break}return e.abrupt("return",a);case 3:return c=Re(this),s=this.getTimeUnit({orderParams:c,isPostPay:a.isPostPay}),u=this.children||[],l=null===(r=a.articleItemResults)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.code,d=a.articleItemResults.filter(function(e){var t=e.key,r=u.find(function(e){return e.uniqKey===t});return r&&r.selected}),p=T({articleItemResults:d}),f=p.discountedPrice,m=p.totalPrice,h=p.discount,y={unit:s,digital:2},P=[{noPermission:l,money:f},{noPermission:l,money:v=m||0},{ignorePermission:!0,money:m},{ignorePermission:!0,money:h,defaultCondition:function(){return h<=0}}].map(function(e){return e=Object.assign(y,e),j(e)}),g=_(P,4),b=g[0],x=g[1],w=g[2],k=g[3],O={promotionPrice:b,listPrice:x,dailyPrice:w,activityDiscount:k},C=Object.assign(a.formatPrice||{},O),E=Object.assign(a.price||{},{discountedPrice:f,listPrice:v,totalPrice:m,discount:h,activityDiscount:h}),e.abrupt("return",Ye(Ye({},a),{},{price:E,formatPrice:C}));case 4:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"getStringValue",value:function(e){return"number"==typeof e?"".concat(e):e}},{key:"changeSku",value:function(e,t,r){var n=this;if(this.orderParamsOption.isManualQueryPrice=!0,this.selectedComponentValue[t]=this.getStringValue(e),this.isPackage)if(r&&r.target)r.target.changeSku(e,t);else for(var o=0;o<this.children.length;o++){if(this.children[o]._commodityKeys)if(this.children[o]._commodityKeys.find(function(e){return e.code===t})){this.children[o].changeSku(e,t);break}}else{var i={};if(this.commodity){var a=Ae(0,this._commodityKeys,this.defaultValues,i,this.commodity,this.selectedComponentValue),c=Object.keys(this.selectedComponentValue),s=a.find(function(e){var t=e.value;return c.every(function(e){return n.getStringValue(t[e])===n.selectedComponentValue[e]})});s&&(this.selectedCardIndex=s.cardIndex);var u=Object.keys(i);u&&u.length<3&&(i=this.groupStaticModule(i))}else i=this.groupStaticModule(i);this._displayComponents=i}}},{key:"setParent",value:function(e){this.parent=e}},{key:"selected",get:function(){if(this.parent)return!!this.planInstanceIsRequired||Boolean(this._rawGood.accessories.defaultChecked)},set:function(e){this.parent&&!this.planInstanceIsRequired&&(this._rawGood.accessories.defaultChecked=e)}},{key:"getSelectedGoods",value:function(){return this.isPackage?this.children.filter(function(e){return e.selected}):null}}]);var e,t,r,n,o}(),He=new P;const Xe=function(){var e=N(ae.mark(function e(t){var r;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,ue.then(function(){var e=N(ae.mark(function e(n){var o,i,a;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o="https://alioth.alicdn.com/promotion-commodity-".concat(t),!He.getGood(t)){e.next=1;break}i=He.getGood(t),e.next=3;break;case 1:return e.next=2,n.Request.get(o,null,{withCredentials:!1,xsrfCookieName:""});case 2:(i=e.sent).scm="20140722.M_".concat(i.id,"._.V_1"),i.staticLoaded=!0,i&&"plan"===i.comType&&i.actPromotionCommodityDTOList&&(a=i.actPromotionCommodityDTOList.find(function(e){return"POSTPAY"===e.chargeType}),i.children=i.actPromotionCommodityDTOList,i.hasPostPay=!!a,i.children=_e({goodsList:i.children,planCode:i.commodityCode})),He.setGood(t,i);case 3:return i&&(r=new Qe({good:i,planCode:i.commodityCode})),e.abrupt("return",{});case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();new P;const $e=N(ae.mark(function e(){var t;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=2,ue.then(function(){var e=N(ae.mark(function e(r){var n;return ae.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.Request.get("https://bridge.aliyun.com/abs/home/queryUserBaseInfo");case 1:n=e.sent,t=n&&n.data;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e,null,[[1,3]])}));var ze=Fe,Je=Xe,We=$e,Ze=function(e,t){if(e&&Array.isArray(e)){var r=e.find(function(e){return e.attrCode===t});return null==r?void 0:r.attrValue}},et=function(){return et=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},et.apply(this,arguments)};var tt=function(e){var t=e.animate,r=void 0===t||t,n=e.animateBegin,o=e.backgroundColor,i=void 0===o?"#f5f6f7":o,a=e.backgroundOpacity,c=void 0===a?1:a,s=e.baseUrl,l=void 0===s?"":s,d=e.children,p=e.foregroundColor,f=void 0===p?"#eee":p,m=e.foregroundOpacity,h=void 0===m?1:m,v=e.gradientRatio,y=void 0===v?2:v,P=e.gradientDirection,g=void 0===P?"left-right":P,b=e.uniqueKey,_=e.interval,x=void 0===_?.25:_,w=e.rtl,k=void 0!==w&&w,O=e.speed,C=void 0===O?1.2:O,E=e.style,I=void 0===E?{}:E,R=e.title,S=void 0===R?"Loading...":R,j=e.beforeMask,T=void 0===j?null:j,A=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),D=b||Math.random().toString(36).substring(6),L=D+"-diff",N=D+"-animated-diff",M=D+"-aria",U=k?{transform:"scaleX(-1)"}:null,V="0; "+x+"; 1",q=C+"s",B="top-bottom"===g?"rotate(90)":void 0;return u.createElement("svg",et({"aria-labelledby":M,role:"img",style:et(et({},I),U)},A),S?u.createElement("title",{id:M},S):null,T&&u.isValidElement(T)?T:null,u.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+l+"#"+L+")",style:{fill:"url("+l+"#"+N+")"}}),u.createElement("defs",null,u.createElement("clipPath",{id:L},d),u.createElement("linearGradient",{id:N,gradientTransform:B},u.createElement("stop",{offset:"0%",stopColor:i,stopOpacity:c},r&&u.createElement("animate",{attributeName:"offset",values:-y+"; "+-y+"; 1",keyTimes:V,dur:q,repeatCount:"indefinite",begin:n})),u.createElement("stop",{offset:"50%",stopColor:f,stopOpacity:h},r&&u.createElement("animate",{attributeName:"offset",values:-y/2+"; "+-y/2+"; "+(1+y/2),keyTimes:V,dur:q,repeatCount:"indefinite",begin:n})),u.createElement("stop",{offset:"100%",stopColor:i,stopOpacity:c},r&&u.createElement("animate",{attributeName:"offset",values:"0; 0; "+(1+y),keyTimes:V,dur:q,repeatCount:"indefinite",begin:n})))))},rt=function(e){return e.children?u.createElement(tt,et({},e)):u.createElement(nt,et({},e))},nt=function(e){return u.createElement(rt,et({viewBox:"0 0 476 124"},e),u.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),u.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),u.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),u.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),u.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),u.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const ot=rt,it={card:"_074b45446924567e795f61a0b5b254e0_card","skeleton-name":"_074b45446924567e795f61a0b5b254e0_skeleton-name","product-name":"_074b45446924567e795f61a0b5b254e0_product-name"},at={speed:1.5,width:160,height:32,viewBox:"0 0 160 32",backgroundColor:"#f0f0f0",foregroundColor:"#e0e0e0"},ct=u.memo(()=>u.createElement(ot,s({},at),u.createElement("rect",{x:"0",y:"6",rx:"4",ry:"4",width:"140",height:"22"})));ct.displayName="ProductNameSkeleton";r.exports=({card:e})=>{const[t,r]=u.useState(null),[n,o]=u.useState(!!(null==e?void 0:e.goodId));u.useEffect(()=>{if(!(null==e?void 0:e.goodId))return;let t=!1;return o(!0),Je(e.goodId).then(e=>{t||(r(e),o(!1))}).catch(()=>{t||o(!1)}),()=>{t=!0}},[null==e?void 0:e.goodId]);const i=(null==t?void 0:t.name)||(null==e?void 0:e.productName),a=u.useMemo(()=>t?{"data-tracker-container":!0,"data-tracker-scm":t.scm,"data-tracker-mcm-code":t.mcm_code,"data-tracker-mcm-id":t.mcm_id}:{},[t]);return e?u.createElement("div",s({className:it.card},a),n?u.createElement("div",{className:it["skeleton-name"]},u.createElement(ct,null)):u.createElement("h3",{className:[it["product-name"],e.className,e.customizedStyle].filter(Boolean).join(" ")},i)):null}});
biu.define({name:"@ali/hmod-adc-pd-coding-plan-card",version:"0.0.19",dependencies:{react:"^16.8.1","react-dom":"script:ReactDOM"}},function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,s=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{c(n.next(e))}catch(t){i(t)}},o=e=>{try{c(n.throw(e))}catch(t){i(t)}},c=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);c((n=n.apply(e,t)).next())});const u=e("react"),l=e("react-dom");function d(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=d(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function f(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=d(e))&&(r&&(r+=" "),r+=t);return r}const p="_9a1d73bbcd1a80626a31035a12410804_icon",m="_9a1d73bbcd1a80626a31035a12410804_spin";function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v=["role","spin","component","className","style","children"];function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n){var r;return r=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==h(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var w=function(e){var t=e.role,n=void 0===t?"img":t,r=e.spin,i=e.component,a=e.className,o=e.style;e.children;var c=E(e,v);return u.createElement("span",y({role:n,className:f(p,P({},m,r),a),style:b({},o)},c),i)};function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}w.displayName="AdcIcon";var _=function(e){return u.createElement(w,k({spin:!1,component:u.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"arrow-up"},u.createElement("g",{clipPath:"url(#0ccca)"},u.createElement("g",null,u.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M14.99999875,7.914250634155273L8.70717875,14.207090634155273L7.29296875,12.792860634155273L16.00007875,4.0857658386552735L24.70716875,12.792860634155273L23.29296875,14.207090634155273L16.99999875,7.9141006341552735L16.99999875,27.999990634155274L14.99999875,27.999990634155274L14.99999875,7.914250634155273Z"}))))},e))};function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}var x=function(e){return u.createElement(w,O({spin:!1,component:u.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"chevron-double-down"},u.createElement("g",{clipPath:"url(#4d73a)"},u.createElement("g",null,u.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M15.999327880859376,14.5857366796875L6.706387880859375,5.2928466796875L5.292175292859375,6.7070566796875L15.999327880859376,17.414146679687498L26.706427880859376,6.7070566796875L25.292127880859375,5.2928466796875L15.999327880859376,14.5857366796875ZM15.999327880859376,24.5857466796875L6.706387880859375,15.2928466796875L5.292175292859375,16.7070466796875L15.999327880859376,27.4141466796875L26.706427880859376,16.7070466796875L25.292127880859375,15.2928466796875L15.999327880859376,24.5857466796875Z"}))))},e))};function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}var S=function(e){return u.createElement(w,C({spin:!1,component:u.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"check-circle"},u.createElement("g",null,u.createElement("g",null,u.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M29,16C29,8.8203,23.1797,3,16,3C8.8203,3,3,8.8203,3,16C3,23.1797,8.8203,29,16,29C23.1797,29,29,23.1797,29,16ZM5,16C5,9.92487,9.92487,5,16,5C22.0751,5,27,9.92487,27,16C27,22.0751,22.0751,27,16,27C9.92487,27,5,22.0751,5,16ZM14,21.4142L22.7071,12.70712L21.2929,11.29291L14,18.5858L10.70712,15.2929L9.29291,16.7071L14,21.4142Z"}))))},e))};function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e){var t=function(e,t){if("object"!=I(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==I(t)?t:t+""}function T(e,t,n){return(t=D(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t,n,r,i,a,o){try{var c=e[a](o),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(r,i)}function N(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){A(a,r,i,o,c,"next",e)}function c(e){A(a,r,i,o,c,"throw",e)}o(void 0)})}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,c=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(l){u=!0,i=l}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}(e,t)||L(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M,q={exports:{}},B={exports:{}};(M=B).exports=function(e,t){this.v=e,this.k=t},M.exports.__esModule=!0,M.exports.default=M.exports;var z=B.exports,G={exports:{}},W={exports:{}};!function(e){function t(n,r,i,a){var o=Object.defineProperty;try{o({},"",{})}catch(c){o=0}e.exports=t=function(e,n,r,i){function a(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?o?o(e,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[n]=r:(a("next",0),a("throw",1),a("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(W);var J=W.exports;!function(e){var t=J;function n(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var r,i,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",c=a.toStringTag||"@@toStringTag";function s(e,n,a,o){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return t(s,"_invoke",function(e,t,n){var a,o,c,s=0,l=n||[],d=!1,f={p:0,n:0,v:r,a:p,f:p.bind(r,4),d:function(e,t){return a=e,o=0,c=r,f.n=t,u}};function p(e,t){for(o=e,c=t,i=0;!d&&s&&!n&&i<l.length;i++){var n,a=l[i],p=f.p,m=a[2];e>3?(n=m===t)&&(c=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=r):a[0]<=p&&((n=e<2&&p<a[1])?(o=0,f.v=t,f.n=a[1]):p<m&&(n=e<3||a[0]>t||t>m)&&(a[4]=e,a[5]=t,f.n=m,o=0))}if(n||e>1)return u;throw d=!0,t}return function(n,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),o=l,c=m;(i=o<2?r:c)||!d;){a||(o?o<3?(o>1&&(f.n=-1),p(o,c)):f.n=c:f.v=c);try{if(s=2,a){if(o||(n="next"),i=a[n]){if(!(i=i.call(a,c)))throw TypeError("iterator result is not an object");if(!i.done)return i;c=i.value,o<2&&(o=0)}else 1===o&&(i=a.return)&&i.call(a),o<2&&(c=TypeError("The iterator does not provide a '"+n+"' method"),o=1);a=r}else if((i=(d=f.n<0)?c:e.call(t,f))!==u)break}catch(h){a=r,o=1,c=h}finally{s=1}}return{value:i,done:d}}}(e,a,o),!0),s}var u={};function l(){}function d(){}function f(){}i=Object.getPrototypeOf;var p=[][o]?i(i([][o]())):(t(i={},o,function(){return this}),i),m=f.prototype=l.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,t(e,c,"GeneratorFunction")),e.prototype=Object.create(m),e}return d.prototype=f,t(m,"constructor",f),t(f,"constructor",d),d.displayName="GeneratorFunction",t(f,c,"GeneratorFunction"),t(m),t(m,c,"Generator"),t(m,o,function(){return this}),t(m,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:s,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(G);var V=G.exports,$={exports:{}},K={exports:{}},Y={exports:{}};!function(e){var t=z,n=J;e.exports=function e(r,i){function a(e,n,o,c){try{var s=r[e](n),u=s.value;return u instanceof t?i.resolve(u.v).then(function(e){a("next",e,o,c)},function(e){a("throw",e,o,c)}):i.resolve(u).then(function(e){s.value=e,o(s)},function(e){return a("throw",e,o,c)})}catch(l){c(l)}}var o;this.next||(n(e.prototype),n(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(e,t,n){function r(){return new i(function(t,r){a(e,n,t,r)})}return o=o?o.then(r,r):r()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(Y);var F=Y.exports;!function(e){var t=V,n=F;e.exports=function(e,r,i,a,o){return new n(t().w(e,r,i,a),o||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(K);var Q=K.exports;!function(e){var t=Q;e.exports=function(e,n,r,i,a){var o=t(e,n,r,i,a);return o.next().then(function(e){return e.done?e.value:o.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}($);var H=$.exports,X={exports:{}};!function(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(X);var Z=X.exports,ee={exports:{}},te={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(te);var ne=te.exports;!function(e){var t=ne.default;e.exports=function(e){if(null!=e){var n=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(ee);var re=ee.exports;!function(e){var t=z,n=V,r=H,i=Q,a=F,o=Z,c=re;function s(){var u=n(),l=u.m(s),d=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function f(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function m(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,i,a){return t.resultName=i,n(r.d,c(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=s=function(){return{wrap:function(e,t,n,r){return u.w(m(e),t,n,r&&r.reverse())},isGeneratorFunction:f,mark:u.m,awrap:function(e,n){return new t(e,n)},AsyncIterator:a,async:function(e,t,n,a,o){return(f(t)?i:r)(m(e),t,n,a,o)},keys:o,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}(q);var ie=(0,q.exports)(),ae=ie;try{regeneratorRuntime=ie}catch(Fi){"object"==typeof globalThis?globalThis.regeneratorRuntime=ie:Function("r","regeneratorRuntime = r")(ie)}const oe=U(ae);var ce=null;function se(){return ue.apply(this,arguments)}function ue(){return(ue=N(oe.mark(function e(){return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!ce){e.next=2;break}return e.abrupt("return",ce);case 2:if(!window.__MONITOR__){e.next=5;break}return ce=new window.__MONITOR__({biz:"adc-core"}),e.abrupt("return",ce);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function le(e){return de.apply(this,arguments)}function de(){return(de=N(oe.mark(function e(t){var n;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,se();case 3:(n=e.sent)&&n.report({level:"warn",message:t});case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function fe(){return(fe=N(oe.mark(function e(t){var n;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,se();case 3:(n=e.sent)&&n.report({level:"error",message:t});case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function pe(e){return me.apply(this,arguments)}function me(){return(me=N(oe.mark(function e(t){var n;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,se();case 2:(n=e.sent)&&n.report(t);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}var he=Symbol("flag"),ve=new Map;function ye(e,t){var n;ve.has(e)||ve.set(e,[]),null===(n=ve.get(e))||void 0===n||n.push(t)}function ge(e,t){return t[he]={once:!0},ye(e,t)}function be(e,t){if(ve.has(e))if(t){var n,r=ve.get(e).indexOf(t);if(-1!==r)null===(n=ve.get(e))||void 0===n||n.splice(r,1)}else ve.delete(e)}function Pe(e,t,n){if(t=[e.name,t].join(":"),ve.has(t)){var r=ve.get(t);r.forEach(function(r){try{r({data:n})}catch(i){pe({type:"event-emit-error",app:e.name,event:t,error:i.message})}}),ve.set(t,r.filter(function(e){var t=e[he];return!t||!t.once}))}}function Ee(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D(r.key),r)}}function _e(e,t,n){return t&&ke(e.prototype,t),n&&ke(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Oe=/\.aliyun\.com$/.test(location.hostname);function xe(e){return new Promise(function(t,n){var r=document.createElement("script");r.src=e,Oe&&(r.crossOrigin=""),r.onload=t,r.onerror=function(t){pe({type:"script-load-error",url:e}),n(t)},document.body.appendChild(r)})}var Ce=null;function Se(){return Ie.apply(this,arguments)}function Ie(){return(Ie=N(oe.mark(function e(){return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.biu){e.next=2;break}return e.abrupt("return");case 2:return Ce||(Ce=xe("https://cloud-assets.alicdn.com/alicdn/code/npm/@ali/biu-loader/latest/index.js")),e.next=5,Ce;case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}var De=function(e){if(!window.biu){var t="\u9875\u9762\u4e2d\u672a\u5f15\u5165 biu-loader";throw function(e){fe.apply(this,arguments)}(t),new Error(t)}return window.biu.require(e)},Te=function(){try{return"pre"===new URL(location.href).searchParams.get("adc-app-env")}catch(e){return!1}}(),Ae=[],Ne=null,Re=new Map;function Le(e){return je.apply(this,arguments)}function je(){return je=N(oe.mark(function e(t){var n,r;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="@ali/aliyun-com-adc-app-".concat(t),e.next=3,Se();case 3:if(!(r=De(n))){e.next=6;break}return e.abrupt("return",r);case 6:if(!Re.has(t)){e.next=11;break}return e.next=9,Re.get(t);case 9:e.next=14;break;case 11:return Ne?-1===Ae.indexOf(t)&&Ae.push(t):(Ae=[t],Ne=Promise.resolve().then(function(){var e;e=Te?Promise.all(Ae.map(function(){var e=N(oe.mark(function e(t){var n;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://aliyun-com-air-cloud-assets-er.pre-air-er.taobao.com/adc/app/v2/".concat(t,".js"),e.next=3,xe(n);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}())):Promise.all(Ae.map(function(){var e=N(oe.mark(function e(t){var n;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://cloud-assets.alicdn.com/adc/app/v2/".concat(t,".js"),e.next=3,xe(n);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));var t=Ee(Ae);return t.forEach(function(e){Re.set(e,Ne)}),Ne=null,e.then(function(){t.forEach(function(e){Re.delete(e)})}).catch(function(){t.forEach(function(e){Re.delete(e)})})})),e.next=14,Ne;case 14:return e.abrupt("return",De(n));case 15:case"end":return e.stop()}},e)})),je.apply(this,arguments)}var Ue=function(){return _e(function e(t){we(this,e),T(this,"_subscribe",void 0),t&&(this._subscribe=t)},[{key:"subscribe",value:function(e){var t;return this._subscribe&&(t=this._subscribe({next:function(t){e(t)}})),{unsubscribe:function(){t&&t()}}}}])}(),Me="__property_change__",qe="__app_register__",Be="__app_unregister__",ze=function(){return _e(function e(t){we(this,e),T(this,"$options",void 0),T(this,"$listeners",void 0),T(this,"$subscriptions",void 0),T(this,"$isDestructed",!1),this.$options=t,this.$listeners=new Map,this.$subscriptions=[],We(this)},[{key:"name",get:function(){return this.$options.name}},{key:"priority",get:function(){return"number"==typeof this.$options.priority?this.$options.priority:10}},{key:"destructor",value:(e=N(oe.mark(function e(){return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.$isDestructed=!0,this.$listeners.forEach(function(e,t){e.forEach(function(e){be(t,e)})}),this.$listeners.clear(),this.$subscriptions.forEach(function(e){e.unsubscribe()}),this.$subscriptions=[];case 5:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"$emit",value:function(e,t){this.$isDestructed||Pe(this,e,t)}},{key:"$on",value:function(e,t){var n;if(!this.$isDestructed)return this.$listeners.has(e)||this.$listeners.set(e,[]),null===(n=this.$listeners.get(e))||void 0===n||n.push(t),ye(e,t)}},{key:"$once",value:function(e,t){var n;if(!this.$isDestructed)return this.$listeners.has(e)||this.$listeners.set(e,[]),null===(n=this.$listeners.get(e))||void 0===n||n.push(t),ge(e,t)}},{key:"$off",value:function(e,t){if(!this.$isDestructed){var n=this.$listeners.get(e);if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}return be(e,t)}}},{key:"$watch",value:function(e,t){var n=this;if(!this.$isDestructed){var r=Ze(e,t);return new Ue(function(e){var t=r.subscribe(function(t){e.next(t)});return n.$subscriptions.push(t),function(){t.unsubscribe();var e=n.$subscriptions.indexOf(t);-1!==e&&n.$subscriptions.splice(e,1)}})}}},{key:"$nextProperty",value:function(e,t){this.$isDestructed||Pe(this,Me+e,t)}}]);var e}(),Ge=new Map;function We(e){return Je.apply(this,arguments)}function Je(){return(Je=N(oe.mark(function e(t){var n;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ge.has(t.name)){e.next=17;break}if(n=Ge.get(t.name),!(t.priority<n.priority)){e.next=11;break}return e.next=8,n.destructor();case 8:Pe(n,Be),e.next=17;break;case 11:return le("\u5e94\u7528 ".concat(t.name," \u91cd\u590d\u6ce8\u518c\uff1a")),e.next=16,t.destructor();case 16:return e.abrupt("return");case 17:Ge.set(t.name,t),Pe(t,qe);case 19:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ve(e){return Ge.has(e)}function $e(e){return Ke.apply(this,arguments)}function Ke(){return Ke=N(oe.mark(function e(t){var n,r,i,a=arguments;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:{},Ge.has(t)){e.next=17;break}if(!1!==n.loadIfNotExists){e.next=6;break}return e.abrupt("return",new Promise(function(e){ge([t,qe].join(":"),function(){var n=Ge.get(t);e(n)})}));case 6:return e.next=8,Le(t);case 8:if(r=e.sent){e.next=12;break}throw pe({type:"app-load-fail",app:t}),new Error("\u5e94\u7528 ".concat(t," \u52a0\u8f7d\u5931\u8d25"));case 12:if(Ge.has(t)){e.next=17;break}if(new r({name:t}),Ge.has(t)){e.next=17;break}throw pe({type:"app-unregister",app:t}),new Error("\u8981\u8c03\u7528\u7684\u5e94\u7528 ".concat(t," \u672a\u6ce8\u518c\uff0c\u53ef\u80fd\u7684\u539f\u56e0\u662f\u5e94\u7528\u5185\u90e8\u5b9e\u4f8b\u5316\u65f6\u5199\u6b7b\u4e86\u5e94\u7528\u540d"));case 17:return i=Ge.get(t),e.abrupt("return",i);case 19:case"end":return e.stop()}},e)})),Ke.apply(this,arguments)}function Ye(){return Ye=N(oe.mark(function e(t){var n=arguments;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t&&(t=[t]),!1!==(n.length>1&&void 0!==n[1]?n[1]:{}).register){e.next=7;break}return e.next=5,t.map(function(e){return Le(e)});case 5:e.next=9;break;case 7:return e.next=9,t.map(function(e){return $e(e)});case 9:case"end":return e.stop()}},e)})),Ye.apply(this,arguments)}function Fe(e,t){return Qe.apply(this,arguments)}function Qe(){return(Qe=N(oe.mark(function e(t,n){var r;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$e(t);case 2:return r=e.sent,e.abrupt("return",r[n]);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function He(e,t){return Xe.apply(this,arguments)}function Xe(){return Xe=N(oe.mark(function e(t,n){var r,i,a,o=arguments;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:[],e.next=3,$e(t);case 3:if((i=e.sent)[n]){e.next=7;break}throw pe({type:"method-nofound",app:t,method:n}),new Error("\u5e94\u7528 ".concat(t," \u4e0a\u4e0d\u5b58\u5728\u65b9\u6cd5 ").concat(n));case 7:return e.prev=7,a=i[n].apply(i,Ee(r)),e.abrupt("return",a);case 12:e.prev=12,e.t0=e.catch(7),pe({type:"bridge-call-error",app:t,method:n,params:r,error:e.t0.message});case 15:case"end":return e.stop()}},e,null,[[7,12]])})),Xe.apply(this,arguments)}function Ze(e,t){return new Ue(function(n){Ve(e)?Fe(e,t).then(function(e){n.next(e)}):$e(e);var r="".concat(e,":").concat(Me).concat(t),i=function(e){n.next(e.data)};ye(r,i);var a="".concat(e,":").concat(qe),o=function(){Fe(e,t).then(function(e){n.next(e)})};return ye(a,o),function(){be(r,i),be(a,o)}})}var et=[],tt=document.body;function nt(e,t){if("string"==typeof e){var n=new URL(e);e={protocol:n.protocol,hostname:n.hostname,pathname:n.pathname}}e.protocol&&!/:$/.test(e.protocol)&&(e.protocol+=":"),e.pathname&&(e.pathname=e.pathname.replace(/\/$/g,""));var r=function(n){var r=function(e,t){if(!e)return null;if(e.composedPath)return e.composedPath().find(function(e){return e&&-1!==t.indexOf(e.tagName)});for(var n=e.target;n&&-1===t.indexOf(n.tagName)&&n!==tt;)n=n.parentElement;return n?n===tt?null:n:null}(n,["A"]);if(r&&"A"===r.tagName){var i=r.href;if(!i)return;var a=new URL(i);if(Object.keys(e).some(function(t){var n=a[t];return"pathname"===t&&(n=n.replace(/\/$/g,"")),n!==e[t]}))return;return t(r,a)}};return et.push(r),function(){var e=et.indexOf(r);-1!==e&&et.splice(e,1)}}var rt="__ADC_CORE__",it=Symbol("__ADC_CORE_DEBUG__");window[rt]||(!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=function(e){var t=e.target;if(t){var n=t.tagName;if(n){var r=window.$$customElementInfos;r&&r[n.toLowerCase()]&&e.originalEvent&&(e=e.originalEvent),et.some(function(t){return t(e)})&&e.preventDefault()}}};e.addEventListener(t,n)}(window),nt({protocol:"adc"},function(e,t){var n=j(t.pathname.replace(/^\/\//,"").split("/"),2),r=n[0],i=n[1],a={};return t.searchParams.forEach(function(e,t){a[t]=e}),He(r,i,[a]),!0}),window[rt]={event:{on:ye,once:ge,off:be},bridge:{get:Fe,call:He,watch:Ze},uriScheme:{register:nt},App:ze,getApp:function(e,t){return $e(e,t).then(function(e){return function(e){return new Proxy({},{get:function(t,n){if("on"===n)return function(t,n){return ye(t=[e.name,t].join(":"),n)};if("off"===n)return function(t,n){return be(t=[e.name,t].join(":"),n)};if(/\$$/.test(n))return n=n.replace(/\$$/,""),Ze(e.name,n);var r=e[n];return"function"==typeof r?function(){return r.apply(void 0,arguments)}:r}})}(e)})},hasApp:Ve,preloadApp:function(e){return Ye.apply(this,arguments)}},window[it]={apps:Ge,registerApp:We,loadApp:Le,PROPERTY_CHANGE_EVENT_PREFIX:Me,APP_REGISTER_EVENT:qe,APP_UNREGISTER_EVENT:Be,listeners:ve,listenFlag:he,emit:Pe});const at=window[rt];at.event;var ot=at.bridge;at.uriScheme,at.App,at.getApp,at.hasApp,at.preloadApp;const ct={common:{tips:"\u6e29\u99a8\u63d0\u793a",goToSubmit:"\u524d\u5f80\u63d0\u4ea4",addToCart:"\u52a0\u5165\u8d2d\u7269\u8f66",directPurchase:"\u76f4\u63a5\u8d2d\u4e70",changeToEnterpriseCert:"\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1"},certify:{personalOnlyPrice:"\u5f53\u524d\u4ef7\u683c\u9650\u4e2a\u4eba\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4e2a\u4eba\u8d26\u53f7\u8d2d\u4e70\u6216\u76f4\u63a5\u8d2d\u4e70\u3002",enterpriseOnlyPriceMobile:"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u6309\u4e2a\u4eba\u7528\u6237\u4ef7\u683c\u76f4\u63a5\u8d2d\u4e70",enterpriseOnlyPrice:"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u5c06\u8be5\u8d26\u53f7\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u3002"},queryPrice:{ramNoPermission:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u63a7\u5236\u53f0\u6388\u6743\uff0c\u9700\u8981\u6388\u6743\u7684Action\u4e3a\uff1abss:QueryPrice",fcNoPermission:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u8d39\u7528\u4e2d\u5fc3\u6388\u6743\uff0c\u9700\u6388\u6743\u7684\u6743\u9650\u70b9code\u4e3a\uff1aqueryprice"},systemDisk:{cloudEfficiency:"\u9ad8\u6548\u4e91\u76d8",cloudEssd:"ESSD\u4e91\u76d8",cloudSsd:"SSD\u4e91\u76d8",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"\u4f01\u4e1a\u4e13\u4eab",newUserOnly:"\u65b0\u4eba\u4e13\u4eab",personalUserOnly:"\u4e2a\u4eba\u4e13\u4eab"},timeUnit:{oneYear:"1\u5e74",twoYears:"2\u5e74",threeYears:"3\u5e74"},activity:{riskControlTip:"\u7cfb\u7edf\u68c0\u6d4b\u5230\u60a8\u7684\u8d26\u53f7\u65e0\u6cd5\u53c2\u52a0\u6b64\u4f18\u60e0\u6d3b\u52a8\uff0c\u60a8\u53ef\u63d0\u4ea4\u6750\u6599\u8fdb\u884c\u7533\u8bc9\uff0c\u7533\u8bc9\u901a\u8fc7\u540e\u53ef\u53c2\u52a0\u6d3b\u52a8"},errors:{fetchGoodByIdError:"fetchGoodById\u51fa\u73b0\u9519\u8bef",getUserInfoError:"getUserInfo\u51fa\u73b0\u9519\u8bef",fetchGoodsError:"fetchGoods\u51fa\u73b0\u9519\u8bef"}};var st=function(e,t){return new URLSearchParams(e).get(t)},ut=function(){var e=!!navigator.userAgent.toLowerCase().match(/(android|iphone|ipod|windows\sphone)/gm);return{isMobile:e||window.innerWidth<1056,isPhone:e}},lt=window.__LOWCODE_ENV__||{},dt=location.hostname.indexOf("alibabacloud.com")>0||"alibabacloud"===(null==lt?void 0:lt.tenant);location.hostname.indexOf("pre-");var ft={en:"en-US",zh:"zh-CN",tc:"zh-TW",de:"de-DE",ja:"ja-JP",ko:"ko-KR",fr:"fr-FR",id:"id-ID",th:"th-TH",vi:"vi-VN",ru:"ru-RU",es:"es-ES",tr:"tr-TR",it:"it-IT"};function pt(){var e="";e=dt?"https://alioth-intl.alicdn.com":"https://alioth.alicdn.com";var t=Pt();return t&&"zh-CN"!==t&&"zh_CN"!==t&&(e="".concat(e,"/").concat(t)),e}function mt(){var e=lt;return null!=e&&e.language?null==e?void 0:e.language:function(){var e;if(window.kloud&&null!==(e=window.kloud)&&void 0!==e&&e.lang)return ft[window.kloud.lang]}()}var ht=function(){return _e(function e(){we(this,e),T(this,"cache",void 0),window.__good_cache_data||(window.__good_cache_data={}),this.cache=window.__good_cache_data},[{key:"setDelivery",value:function(e,t,n){n?this.cache["_delivery_".concat(e,"_").concat(n)]=t:this.cache["_delivery_".concat(e)]=t}},{key:"getDelivery",value:function(e,t){return t?this.cache["_delivery_".concat(e,"_").concat(t)]:this.cache["_delivery_".concat(e)]}},{key:"setGood",value:function(e,t,n){n?this.cache["_good_".concat(e,"_").concat(n)]=t:this.cache["_good_".concat(e)]=t}},{key:"getGood",value:function(e,t){return t?this.cache["_good_".concat(e,"_").concat(t)]:this.cache["_good_".concat(e)]}}])}();function vt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return yt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var gt={"zh-CN":ct,"en-US":{common:{tips:"Tips",goToSubmit:"Go to Submit",addToCart:"Add to Cart",directPurchase:"Direct Purchase",changeToEnterpriseCert:"Change to Enterprise Certification"},certify:{personalOnlyPrice:"This price is exclusive for individual customers. You are logged in with an enterprise account. Please switch to a personal account to purchase or purchase directly.",enterpriseOnlyPriceMobile:"This price is exclusive for enterprise customers. You are logged in with a personal account. Please switch to an enterprise account to purchase or purchase at personal user price.",enterpriseOnlyPrice:"This price is exclusive for enterprise customers. You are logged in with a personal account. Please switch to an enterprise account to purchase or change this account to enterprise certification."},queryPrice:{ramNoPermission:"You do not have permission to query prices. Please contact the main account to authorize in the console. The Action to authorize is: bss:QueryPrice",fcNoPermission:"You do not have permission to query prices. Please contact the main account to authorize in the Cost Center. The permission code to authorize is: queryprice"},systemDisk:{cloudEfficiency:"Cloud Efficiency",cloudEssd:"ESSD Cloud Disk",cloudSsd:"SSD Cloud Disk",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"Enterprise Exclusive",newUserOnly:"New User Exclusive",personalUserOnly:"Personal Exclusive"},timeUnit:{oneYear:"1 Year",twoYears:"2 Years",threeYears:"3 Years"},activity:{riskControlTip:"The system detected that your account cannot participate in this promotional activity. You can submit materials for appeal. After the appeal is approved, you can participate in the activity."},errors:{fetchGoodByIdError:"fetchGoodById error occurred",getUserInfoError:"getUserInfo error occurred",fetchGoodsError:"fetchGoods error occurred"}},"zh-TW":{common:{tips:"\u6eab\u99a8\u63d0\u793a",goToSubmit:"\u524d\u5f80\u63d0\u4ea4",addToCart:"\u52a0\u5165\u8cfc\u7269\u8eca",directPurchase:"\u76f4\u63a5\u8cfc\u8cb7",changeToEnterpriseCert:"\u8b8a\u66f4\u70ba\u4f01\u696d\u8a8d\u8b49"},certify:{personalOnlyPrice:"\u7576\u524d\u50f9\u683c\u9650\u500b\u4eba\u5ba2\u6236\u5c08\u4eab\uff0c\u60a8\u767b\u9304\u7684\u5e33\u865f\u70ba\u4f01\u696d\u8a8d\u8b49\u5e33\u865f\uff0c\u8acb\u66f4\u63db\u500b\u4eba\u5e33\u865f\u8cfc\u8cb7\u6216\u76f4\u63a5\u8cfc\u8cb7\u3002",enterpriseOnlyPriceMobile:"\u7576\u524d\u50f9\u683c\u9650\u4f01\u696d\u5ba2\u6236\u5c08\u4eab\uff0c\u60a8\u767b\u9304\u7684\u5e33\u865f\u70ba\u500b\u4eba\u5e33\u865f\uff0c\u8acb\u66f4\u63db\u4f01\u696d\u5e33\u865f\u8cfc\u8cb7\uff0c\u6216\u6309\u500b\u4eba\u7528\u6236\u50f9\u683c\u76f4\u63a5\u8cfc\u8cb7",enterpriseOnlyPrice:"\u7576\u524d\u50f9\u683c\u9650\u4f01\u696d\u5ba2\u6236\u5c08\u4eab\uff0c\u60a8\u767b\u9304\u7684\u5e33\u865f\u70ba\u500b\u4eba\u8a8d\u8b49\u5e33\u865f\uff0c\u8acb\u66f4\u63db\u4f01\u696d\u5e33\u865f\u8cfc\u8cb7\uff0c\u6216\u5c07\u8a72\u5e33\u865f\u8b8a\u66f4\u70ba\u4f01\u696d\u8a8d\u8b49\u3002"},queryPrice:{ramNoPermission:"\u60a8\u6c92\u6709\u6b0a\u9650\u8a62\u50f9\uff0c\u8acb\u806f\u7e6b\u4e3b\u5e33\u865f\u524d\u5f80\u63a7\u5236\u53f0\u6388\u6b0a\uff0c\u9700\u8981\u6388\u6b0a\u7684Action\u70ba\uff1abss:QueryPrice",fcNoPermission:"\u60a8\u6c92\u6709\u6b0a\u9650\u8a62\u50f9\uff0c\u8acb\u806f\u7e6b\u4e3b\u5e33\u865f\u524d\u5f80\u8cbb\u7528\u4e2d\u5fc3\u6388\u6b0a\uff0c\u9700\u6388\u6b0a\u7684\u6b0a\u9650\u9edecode\u70ba\uff1aqueryprice"},systemDisk:{cloudEfficiency:"\u9ad8\u6548\u96f2\u76e4",cloudEssd:"ESSD\u96f2\u76e4",cloudSsd:"SSD\u96f2\u76e4",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"\u4f01\u696d\u5c08\u4eab",newUserOnly:"\u65b0\u4eba\u5c08\u4eab",personalUserOnly:"\u500b\u4eba\u5c08\u4eab"},timeUnit:{oneYear:"1\u5e74",twoYears:"2\u5e74",threeYears:"3\u5e74"},activity:{riskControlTip:"\u7cfb\u7d71\u6aa2\u6e2c\u5230\u60a8\u7684\u5e33\u865f\u7121\u6cd5\u53c3\u52a0\u6b64\u512a\u60e0\u6d3b\u52d5\uff0c\u60a8\u53ef\u63d0\u4ea4\u6750\u6599\u9032\u884c\u7533\u8a34\uff0c\u7533\u8a34\u901a\u904e\u5f8c\u53ef\u53c3\u52a0\u6d3b\u52d5"},errors:{fetchGoodByIdError:"fetchGoodById\u51fa\u73fe\u932f\u8aa4",getUserInfoError:"getUserInfo\u51fa\u73fe\u932f\u8aa4",fetchGoodsError:"fetchGoods\u51fa\u73fe\u932f\u8aa4"}},"de-DE":{common:{tips:"Hinweis",goToSubmit:"Zur Einreichung",addToCart:"In den Warenkorb",directPurchase:"Direkt kaufen",changeToEnterpriseCert:"Zu Unternehmenszertifizierung wechseln"},certify:{personalOnlyPrice:"Dieser Preis ist exklusiv f\xfcr Privatkunden. Sie sind mit einem Unternehmenskonto angemeldet. Bitte wechseln Sie zu einem Privatkonto zum Kaufen oder kaufen Sie direkt.",enterpriseOnlyPriceMobile:"Dieser Preis ist exklusiv f\xfcr Unternehmenskunden. Sie sind mit einem Privatkonto angemeldet. Bitte wechseln Sie zu einem Unternehmenskonto zum Kaufen oder kaufen Sie zum Privatkundenpreis direkt.",enterpriseOnlyPrice:"Dieser Preis ist exklusiv f\xfcr Unternehmenskunden. Sie sind mit einem Privatkonto angemeldet. Bitte wechseln Sie zu einem Unternehmenskonto zum Kaufen oder \xe4ndern Sie dieses Konto in eine Unternehmenszertifizierung."},queryPrice:{ramNoPermission:"Sie haben keine Berechtigung zur Preisabfrage. Bitte kontaktieren Sie das Hauptkonto zur Autorisierung in der Konsole. Die zu autorisierende Action ist: bss:QueryPrice",fcNoPermission:"Sie haben keine Berechtigung zur Preisabfrage. Bitte kontaktieren Sie das Hauptkonto zur Autorisierung im Kostencenter. Der zu autorisierende Berechtigungscode ist: queryprice"},systemDisk:{cloudEfficiency:"Cloud Efficiency",cloudEssd:"ESSD Cloud Disk",cloudSsd:"SSD Cloud Disk",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"Nur f\xfcr Unternehmen",newUserOnly:"Nur f\xfcr neue Benutzer",personalUserOnly:"Nur f\xfcr Privatpersonen"},timeUnit:{oneYear:"1 Jahr",twoYears:"2 Jahre",threeYears:"3 Jahre"},activity:{riskControlTip:"Das System hat erkannt, dass Ihr Konto nicht an dieser Werbeaktion teilnehmen kann. Sie k\xf6nnen Materialien zur Beschwerde einreichen. Nach Genehmigung der Beschwerde k\xf6nnen Sie an der Aktivit\xe4t teilnehmen."},errors:{fetchGoodByIdError:"Fehler bei fetchGoodById aufgetreten",getUserInfoError:"Fehler bei getUserInfo aufgetreten",fetchGoodsError:"Fehler bei fetchGoods aufgetreten"}},"ja-JP":{common:{tips:"\u3054\u6ce8\u610f",goToSubmit:"\u9001\u4fe1\u3078",addToCart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",directPurchase:"\u76f4\u63a5\u8cfc\u5165",changeToEnterpriseCert:"\u4f01\u696d\u8a8d\u8a3c\u306b\u5909\u66f4"},certify:{personalOnlyPrice:"\u3053\u306e\u4fa1\u683c\u306f\u500b\u4eba\u9867\u5ba2\u5c02\u7528\u3067\u3059\u3002\u73fe\u5728\u4f01\u696d\u8a8d\u8a3c\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u307e\u3059\u3002\u500b\u4eba\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u5207\u308a\u66ff\u3048\u3066\u8cfc\u5165\u3059\u308b\u304b\u3001\u76f4\u63a5\u8cfc\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002",enterpriseOnlyPriceMobile:"\u3053\u306e\u4fa1\u683c\u306f\u4f01\u696d\u9867\u5ba2\u5c02\u7528\u3067\u3059\u3002\u73fe\u5728\u500b\u4eba\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u307e\u3059\u3002\u4f01\u696d\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u5207\u308a\u66ff\u3048\u3066\u8cfc\u5165\u3059\u308b\u304b\u3001\u500b\u4eba\u30e6\u30fc\u30b6\u30fc\u4fa1\u683c\u3067\u76f4\u63a5\u8cfc\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002",enterpriseOnlyPrice:"\u3053\u306e\u4fa1\u683c\u306f\u4f01\u696d\u9867\u5ba2\u5c02\u7528\u3067\u3059\u3002\u73fe\u5728\u500b\u4eba\u8a8d\u8a3c\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u307e\u3059\u3002\u4f01\u696d\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u5207\u308a\u66ff\u3048\u3066\u8cfc\u5165\u3059\u308b\u304b\u3001\u3053\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f01\u696d\u8a8d\u8a3c\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002"},queryPrice:{ramNoPermission:"\u4fa1\u683c\u7167\u4f1a\u306e\u6a29\u9650\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u30e1\u30a4\u30f3\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u9023\u7d61\u3057\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u8a8d\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u8a8d\u8a3c\u304c\u5fc5\u8981\u306aAction\u306f\uff1abss:QueryPrice",fcNoPermission:"\u4fa1\u683c\u7167\u4f1a\u306e\u6a29\u9650\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u30e1\u30a4\u30f3\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u9023\u7d61\u3057\u3066\u30b3\u30b9\u30c8\u30bb\u30f3\u30bf\u30fc\u3067\u8a8d\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u8a8d\u8a3c\u304c\u5fc5\u8981\u306a\u6a29\u9650\u30b3\u30fc\u30c9\u306f\uff1aqueryprice"},systemDisk:{cloudEfficiency:"\u30af\u30e9\u30a6\u30c9\u52b9\u7387\u30c7\u30a3\u30b9\u30af",cloudEssd:"ESSD\u30af\u30e9\u30a6\u30c9\u30c7\u30a3\u30b9\u30af",cloudSsd:"SSD\u30af\u30e9\u30a6\u30c9\u30c7\u30a3\u30b9\u30af",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"\u4f01\u696d\u5c02\u7528",newUserOnly:"\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u5c02\u7528",personalUserOnly:"\u500b\u4eba\u5c02\u7528"},timeUnit:{oneYear:"1\u5e74",twoYears:"2\u5e74",threeYears:"3\u5e74"},activity:{riskControlTip:"\u30b7\u30b9\u30c6\u30e0\u304c\u691c\u51fa\u3057\u305f\u3068\u3053\u308d\u3001\u304a\u5ba2\u69d8\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u3053\u306e\u30d7\u30ed\u30e2\u30fc\u30b7\u30e7\u30f3\u6d3b\u52d5\u306b\u53c2\u52a0\u3067\u304d\u307e\u305b\u3093\u3002\u7533\u3057\u7acb\u3066\u8cc7\u6599\u3092\u63d0\u51fa\u3067\u304d\u307e\u3059\u3002\u7533\u3057\u7acb\u3066\u304c\u627f\u8a8d\u3055\u308c\u308b\u3068\u3001\u6d3b\u52d5\u306b\u53c2\u52a0\u3067\u304d\u307e\u3059\u3002"},errors:{fetchGoodByIdError:"fetchGoodById\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",getUserInfoError:"getUserInfo\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",fetchGoodsError:"fetchGoods\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f"}},"ko-KR":{common:{tips:"\uc548\ub0b4",goToSubmit:"\uc81c\ucd9c\ud558\uae30",addToCart:"\uc7a5\ubc14\uad6c\ub2c8\uc5d0 \ucd94\uac00",directPurchase:"\uc9c1\uc811 \uad6c\ub9e4",changeToEnterpriseCert:"\uae30\uc5c5 \uc778\uc99d\uc73c\ub85c \ubcc0\uacbd"},certify:{personalOnlyPrice:"\uc774 \uac00\uaca9\uc740 \uac1c\uc778 \uace0\uac1d \uc804\uc6a9\uc785\ub2c8\ub2e4. \ud604\uc7ac \uae30\uc5c5 \uc778\uc99d \uacc4\uc815\uc73c\ub85c \ub85c\uadf8\uc778\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uac1c\uc778 \uacc4\uc815\uc73c\ub85c \uc804\ud658\ud558\uc5ec \uad6c\ub9e4\ud558\uac70\ub098 \uc9c1\uc811 \uad6c\ub9e4\ud558\uc138\uc694.",enterpriseOnlyPriceMobile:"\uc774 \uac00\uaca9\uc740 \uae30\uc5c5 \uace0\uac1d \uc804\uc6a9\uc785\ub2c8\ub2e4. \ud604\uc7ac \uac1c\uc778 \uacc4\uc815\uc73c\ub85c \ub85c\uadf8\uc778\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uae30\uc5c5 \uacc4\uc815\uc73c\ub85c \uc804\ud658\ud558\uc5ec \uad6c\ub9e4\ud558\uac70\ub098 \uac1c\uc778 \uc0ac\uc6a9\uc790 \uac00\uaca9\uc73c\ub85c \uc9c1\uc811 \uad6c\ub9e4\ud558\uc138\uc694.",enterpriseOnlyPrice:"\uc774 \uac00\uaca9\uc740 \uae30\uc5c5 \uace0\uac1d \uc804\uc6a9\uc785\ub2c8\ub2e4. \ud604\uc7ac \uac1c\uc778 \uc778\uc99d \uacc4\uc815\uc73c\ub85c \ub85c\uadf8\uc778\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uae30\uc5c5 \uacc4\uc815\uc73c\ub85c \uc804\ud658\ud558\uc5ec \uad6c\ub9e4\ud558\uac70\ub098 \uc774 \uacc4\uc815\uc744 \uae30\uc5c5 \uc778\uc99d\uc73c\ub85c \ubcc0\uacbd\ud558\uc138\uc694."},queryPrice:{ramNoPermission:"\uac00\uaca9 \uc870\ud68c \uad8c\ud55c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4. \uba54\uc778 \uacc4\uc815\uc5d0 \uc5f0\ub77d\ud558\uc5ec \ucf58\uc194\uc5d0\uc11c \uad8c\ud55c\uc744 \ubd80\uc5ec\ud558\uc138\uc694. \uad8c\ud55c\uc744 \ubd80\uc5ec\ud574\uc57c \ud558\ub294 Action\uc740: bss:QueryPrice",fcNoPermission:"\uac00\uaca9 \uc870\ud68c \uad8c\ud55c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4. \uba54\uc778 \uacc4\uc815\uc5d0 \uc5f0\ub77d\ud558\uc5ec \ube44\uc6a9 \uc13c\ud130\uc5d0\uc11c \uad8c\ud55c\uc744 \ubd80\uc5ec\ud558\uc138\uc694. \uad8c\ud55c\uc744 \ubd80\uc5ec\ud574\uc57c \ud558\ub294 \uad8c\ud55c \ucf54\ub4dc\ub294: queryprice"},systemDisk:{cloudEfficiency:"\ud074\ub77c\uc6b0\ub4dc \ud6a8\uc728 \ub514\uc2a4\ud06c",cloudEssd:"ESSD \ud074\ub77c\uc6b0\ub4dc \ub514\uc2a4\ud06c",cloudSsd:"SSD \ud074\ub77c\uc6b0\ub4dc \ub514\uc2a4\ud06c",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"\uae30\uc5c5 \uc804\uc6a9",newUserOnly:"\uc2e0\uaddc \uc0ac\uc6a9\uc790 \uc804\uc6a9",personalUserOnly:"\uac1c\uc778 \uc804\uc6a9"},timeUnit:{oneYear:"1\ub144",twoYears:"2\ub144",threeYears:"3\ub144"},activity:{riskControlTip:"\uc2dc\uc2a4\ud15c\uc5d0\uc11c \uadc0\ud558\uc758 \uacc4\uc815\uc774 \uc774 \ud504\ub85c\ubaa8\uc158 \ud65c\ub3d9\uc5d0 \ucc38\uc5ec\ud560 \uc218 \uc5c6\uc74c\uc744 \uac10\uc9c0\ud588\uc2b5\ub2c8\ub2e4. \uc774\uc758 \uc81c\uae30 \uc790\ub8cc\ub97c \uc81c\ucd9c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\uc758 \uc81c\uae30\uac00 \uc2b9\uc778\ub418\uba74 \ud65c\ub3d9\uc5d0 \ucc38\uc5ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."},errors:{fetchGoodByIdError:"fetchGoodById \uc624\ub958 \ubc1c\uc0dd",getUserInfoError:"getUserInfo \uc624\ub958 \ubc1c\uc0dd",fetchGoodsError:"fetchGoods \uc624\ub958 \ubc1c\uc0dd"}},"fr-FR":{common:{tips:"Conseil",goToSubmit:"Aller \xe0 la soumission",addToCart:"Ajouter au panier",directPurchase:"Achat direct",changeToEnterpriseCert:"Changer en certification entreprise"},certify:{personalOnlyPrice:"Ce prix est exclusif aux clients individuels. Vous \xeates connect\xe9 avec un compte entreprise. Veuillez passer \xe0 un compte personnel pour acheter ou acheter directement.",enterpriseOnlyPriceMobile:"Ce prix est exclusif aux clients entreprise. Vous \xeates connect\xe9 avec un compte personnel. Veuillez passer \xe0 un compte entreprise pour acheter ou acheter au prix utilisateur personnel.",enterpriseOnlyPrice:"Ce prix est exclusif aux clients entreprise. Vous \xeates connect\xe9 avec un compte personnel. Veuillez passer \xe0 un compte entreprise pour acheter ou changer ce compte en certification entreprise."},queryPrice:{ramNoPermission:"Vous n'avez pas la permission de consulter les prix. Veuillez contacter le compte principal pour autoriser dans la console. L'Action \xe0 autoriser est : bss:QueryPrice",fcNoPermission:"Vous n'avez pas la permission de consulter les prix. Veuillez contacter le compte principal pour autoriser dans le Centre des co\xfbts. Le code de permission \xe0 autoriser est : queryprice"},systemDisk:{cloudEfficiency:"Disque Cloud Efficiency",cloudEssd:"Disque Cloud ESSD",cloudSsd:"Disque Cloud SSD",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"Exclusif entreprise",newUserOnly:"Exclusif nouveaux utilisateurs",personalUserOnly:"Exclusif personnel"},timeUnit:{oneYear:"1 an",twoYears:"2 ans",threeYears:"3 ans"},activity:{riskControlTip:"Le syst\xe8me a d\xe9tect\xe9 que votre compte ne peut pas participer \xe0 cette activit\xe9 promotionnelle. Vous pouvez soumettre des documents pour faire appel. Une fois l'appel approuv\xe9, vous pouvez participer \xe0 l'activit\xe9."},errors:{fetchGoodByIdError:"Erreur fetchGoodById survenue",getUserInfoError:"Erreur getUserInfo survenue",fetchGoodsError:"Erreur fetchGoods survenue"}},"ru-RU":{common:{tips:"\u0421\u043e\u0432\u0435\u0442",goToSubmit:"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435",addToCart:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443",directPurchase:"\u041f\u0440\u044f\u043c\u0430\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0430",changeToEnterpriseCert:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e"},certify:{personalOnlyPrice:"\u042d\u0442\u0430 \u0446\u0435\u043d\u0430 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u0412\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u043d\u0430 \u043b\u0438\u0447\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438\u043b\u0438 \u043a\u0443\u043f\u0438\u0442\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e.",enterpriseOnlyPriceMobile:"\u042d\u0442\u0430 \u0446\u0435\u043d\u0430 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u0412\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u043b\u0438\u0447\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438\u043b\u0438 \u043a\u0443\u043f\u0438\u0442\u0435 \u043f\u043e \u0446\u0435\u043d\u0435 \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.",enterpriseOnlyPrice:"\u042d\u0442\u0430 \u0446\u0435\u043d\u0430 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u0412\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u043b\u0438\u0447\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u0441\u044c \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e."},queryPrice:{ramNoPermission:"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0446\u0435\u043d. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438. \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438: bss:QueryPrice",fcNoPermission:"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0446\u0435\u043d. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0426\u0435\u043d\u0442\u0440\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432. \u041a\u043e\u0434 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438: queryprice"},systemDisk:{cloudEfficiency:"\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a Efficiency",cloudEssd:"\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a ESSD",cloudSsd:"\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a SSD",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"\u0422\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0439",newUserOnly:"\u0422\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439",personalUserOnly:"\u0422\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0430\u0441\u0442\u043d\u044b\u0445 \u043b\u0438\u0446"},timeUnit:{oneYear:"1 \u0433\u043e\u0434",twoYears:"2 \u0433\u043e\u0434\u0430",threeYears:"3 \u0433\u043e\u0434\u0430"},activity:{riskControlTip:"\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0430, \u0447\u0442\u043e \u0432\u0430\u0448 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u043e\u0439 \u0430\u043a\u0446\u0438\u0438. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0430\u0442\u044c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0434\u043b\u044f \u0430\u043f\u0435\u043b\u043b\u044f\u0446\u0438\u0438. \u041f\u043e\u0441\u043b\u0435 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u044f \u0430\u043f\u0435\u043b\u043b\u044f\u0446\u0438\u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0430\u043a\u0446\u0438\u0438."},errors:{fetchGoodByIdError:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 fetchGoodById",getUserInfoError:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 getUserInfo",fetchGoodsError:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 fetchGoods"}},"es-ES":{common:{tips:"Consejo",goToSubmit:"Ir a enviar",addToCart:"A\xf1adir al carrito",directPurchase:"Compra directa",changeToEnterpriseCert:"Cambiar a certificaci\xf3n empresarial"},certify:{personalOnlyPrice:"Este precio es exclusivo para clientes individuales. Ha iniciado sesi\xf3n con una cuenta empresarial. Por favor, cambie a una cuenta personal para comprar o compre directamente.",enterpriseOnlyPriceMobile:"Este precio es exclusivo para clientes empresariales. Ha iniciado sesi\xf3n con una cuenta personal. Por favor, cambie a una cuenta empresarial para comprar o compre al precio de usuario personal.",enterpriseOnlyPrice:"Este precio es exclusivo para clientes empresariales. Ha iniciado sesi\xf3n con una cuenta personal. Por favor, cambie a una cuenta empresarial para comprar o cambie esta cuenta a certificaci\xf3n empresarial."},queryPrice:{ramNoPermission:"No tiene permiso para consultar precios. Por favor, contacte con la cuenta principal para autorizar en la consola. La Acci\xf3n a autorizar es: bss:QueryPrice",fcNoPermission:"No tiene permiso para consultar precios. Por favor, contacte con la cuenta principal para autorizar en el Centro de Costes. El c\xf3digo de permiso a autorizar es: queryprice"},systemDisk:{cloudEfficiency:"Disco Cloud Efficiency",cloudEssd:"Disco Cloud ESSD",cloudSsd:"Disco Cloud SSD",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"Exclusivo para empresas",newUserOnly:"Exclusivo para nuevos usuarios",personalUserOnly:"Exclusivo para particulares"},timeUnit:{oneYear:"1 a\xf1o",twoYears:"2 a\xf1os",threeYears:"3 a\xf1os"},activity:{riskControlTip:"El sistema ha detectado que su cuenta no puede participar en esta actividad promocional. Puede enviar materiales para apelar. Una vez aprobada la apelaci\xf3n, puede participar en la actividad."},errors:{fetchGoodByIdError:"Error en fetchGoodById",getUserInfoError:"Error en getUserInfo",fetchGoodsError:"Error en fetchGoods"}},"id-ID":{common:{tips:"Tips",goToSubmit:"Pergi ke kirim",addToCart:"Tambahkan ke keranjang",directPurchase:"Beli langsung",changeToEnterpriseCert:"Ubah ke sertifikasi perusahaan"},certify:{personalOnlyPrice:"Harga ini eksklusif untuk pelanggan individu. Anda masuk dengan akun perusahaan. Silakan beralih ke akun pribadi untuk membeli atau beli langsung.",enterpriseOnlyPriceMobile:"Harga ini eksklusif untuk pelanggan perusahaan. Anda masuk dengan akun pribadi. Silakan beralih ke akun perusahaan untuk membeli atau beli dengan harga pengguna pribadi.",enterpriseOnlyPrice:"Harga ini eksklusif untuk pelanggan perusahaan. Anda masuk dengan akun pribadi. Silakan beralih ke akun perusahaan untuk membeli atau ubah akun ini menjadi sertifikasi perusahaan."},queryPrice:{ramNoPermission:"Anda tidak memiliki izin untuk mengkueri harga. Silakan hubungi akun utama untuk memberikan otorisasi di konsol. Tindakan yang perlu diotorisasi adalah: bss:QueryPrice",fcNoPermission:"Anda tidak memiliki izin untuk mengkueri harga. Silakan hubungi akun utama untuk memberikan otorisasi di Pusat Biaya. Kode izin yang perlu diotorisasi adalah: queryprice"},systemDisk:{cloudEfficiency:"Cloud Efficiency Disk",cloudEssd:"ESSD Cloud Disk",cloudSsd:"SSD Cloud Disk",cloudEssdEntry:"ESSD Entry",cloudAuto:"ESSD AutoPL"},crowdTag:{enterpriseUserOnly:"Eksklusif Perusahaan",newUserOnly:"Eksklusif Pengguna Baru",personalUserOnly:"Eksklusif Pribadi"},timeUnit:{oneYear:"1 tahun",twoYears:"2 tahun",threeYears:"3 tahun"},activity:{riskControlTip:"Sistem mendeteksi bahwa akun Anda tidak dapat berpartisipasi dalam aktivitas promosi ini. Anda dapat mengirimkan materi untuk banding. Setelah banding disetujui, Anda dapat berpartisipasi dalam aktivitas."},errors:{fetchGoodByIdError:"Terjadi kesalahan fetchGoodById",getUserInfoError:"Terjadi kesalahan getUserInfo",fetchGoodsError:"Terjadi kesalahan fetchGoods"}},zh_CN:ct},bt=null;function Pt(){return function(){if(null===bt){var e=mt();bt=e&&e in gt?e:"zh-CN"}return bt}()}function Et(e,t){var n,r=gt[Pt()]||gt["zh-CN"],i=vt(e.split("."));try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!r||"object"!==I(r)||!(a in r))return void 0!==t?t:e;r=r[a]}}catch(o){i.e(o)}finally{i.f()}return"string"==typeof r?r:void 0!==t?t:e}var wt=function(){return{RAM_USER_HAS_NOT_FOR_PRICE:Et("queryPrice.ramNoPermission"),FC_USER_HAS_NOT_FOR_PRICE:Et("queryPrice.fcNoPermission")}},kt=function(){return{cloud_efficiency:Et("systemDisk.cloudEfficiency"),cloud_essd:Et("systemDisk.cloudEssd"),cloud_ssd:Et("systemDisk.cloudSsd"),cloud_essd_entry:Et("systemDisk.cloudEssdEntry"),cloud_auto:Et("systemDisk.cloudAuto")}},_t=function(){return{"12:Month":Et("timeUnit.oneYear"),"24:Month":Et("timeUnit.twoYears"),"36:Month":Et("timeUnit.threeYears")}};wt(),kt(),Et("crowdTag.enterpriseUserOnly"),Et("crowdTag.newUserOnly"),Et("crowdTag.personalUserOnly"),_t();var Ot="\xa5",xt="".concat(Ot,"***"),Ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(void 0===e)return"";var n=Number(e);return(Math.round(n*Math.pow(10,t-2))/Math.pow(10,t)).toFixed(t)},St=function(e){var t=e.unit,n=e.digital,r=e.money,i=e.unitCurrency,a=void 0===i?Ot:i,o=e.noPermission,c=void 0!==o&&o,s=e.ignorePermission,u=void 0!==s&&s,l=e.defaultCondition,d=void 0===l?function(){}:l;return c&&!u?xt:[void 0,null].includes(r)||d()?"":function(e){var t=e.currency,n=void 0===t?Ot:t,r=e.money,i=void 0===r?"":r,a=e.unit,o=void 0===a?"":a;return"".concat(n).concat(i).concat(o)}({money:Ct(r,n),unit:t,currency:a})},It=function(e){var t=e.articleItemResults,n=0,r=0,i=0;return t.forEach(function(e){e.price&&2!==e.chargeType&&e.price.discountedPrice>-1&&(n||(n=0),r||(r=0),n+=e.price.discountedPrice||0,r+=e.price.totalPrice||0,i+=e.price.discount||0)}),{discountedPrice:n,totalPrice:r,discount:i}},Dt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,i=t.code,a=t.price,o=t.priceAdjustTime,c=(null==t?void 0:t.depreciateInfo)||{},s=n,u=null==e?void 0:e.isPackage,l=null==e?void 0:e.isPostPay,d=null==e?void 0:e.isResourcePackage;if(!(u||a&&void 0!==a.discountedPrice))return{};l&&a.unit&&(s=a.unit.replace("\u5143","")),d&&(s="");var f=null,p=null,m=0,h=null;if(u){var v=t.articleItemResults,y=It({articleItemResults:void 0===v?[]:v});f=y.discountedPrice,p=y.totalPrice,m=y.discount}else p=a.totalPrice,f=a.discountedPrice,m=a.discount,h=a.channelPrice;var g=St({ignorePermission:!0,noPermission:!!i,money:p,unit:s,digital:r,unitCurrency:null==a?void 0:a.unitCurrency}),b=St({noPermission:!!i,money:f,unit:s,digital:r,unitCurrency:null==a?void 0:a.unitCurrency}),P=St({noPermission:i&&h,money:h,unit:s,digital:r,unitCurrency:null==a?void 0:a.unitCurrency}),E=St({ignorePermission:!0,money:c.listPrice,unit:s,digital:r,unitCurrency:null==a?void 0:a.unitCurrency,defaultCondition:function(){return c.listPrice<=0}}),w=a.cheapStandAmount,k=St({ignorePermission:!0,money:w,unit:s,digital:r,unitCurrency:null==a?void 0:a.unitCurrency,defaultCondition:function(){return w<=0}}),_=void 0!==c.cheapRate&&null!==c.cheapRate?"".concat(Math.round(1e4*c.cheapRate)/100,"%"):"",O=St({ignorePermission:!0,money:m,unit:s,digital:r,unitCurrency:null==a?void 0:a.unitCurrency,defaultCondition:function(){return m<=0}}),x=wt();return{dailyPrice:g,promotionPrice:b,discount:O,hasDiscount:m>0,queryFailCode:i||"",codeContent:x[i],channelPrice:P,listPrice:E,cheapStandAmount:k,cheapRate:_,isContractActivity:c.isContractActivity||!1,priceAdjustTime:o}},Tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot;if(!e)return{};var n=(e.indexOf(t),t),r=e.split(n),i=(r[1]||r[0]).split("/"),a=i[0].split("."),o="";return i&&i.length>0&&i.splice(0,1),i&&i.length>0&&(o=i.join("/")),{symbol:t,integer:a[0]||"0",decimal:a[1]||"00",unit:o}};function At(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot;if(!e)return"";var n=j(e.match(/^(\D*)(\d+)(\.\d+)?(.*)$/),5),r=n[1],i=n[2],a=void 0===i?"":i,o=n[3],c=void 0===o?".00":o,s=n[4],u=void 0===s?"":s,l=u;if(/\//.test(l)){var d=(l=u.replace(/\s/g,"").replace(/^\//,"")).split("/");d.length>2&&(d.length=2),l=d.join("/")}var f="";return a&&(f=(r||t)+a+c),l&&(f+="/".concat(l)),/\/\u5143/.test(f)&&(f=f.replace(/\/\u5143/,"")),f}function Nt(){return Rt.apply(this,arguments)}function Rt(){return(Rt=N(oe.mark(function e(){return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.$ACE){e.next=2;break}return e.abrupt("return",window.$ACE);case 2:return e.next=4,jt("//g.alicdn.com/??aliyun/util/".concat("1.2.30","/index.js"));case 4:return e.abrupt("return",window.$ACE);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}window.$ACE_LOADER=Nt;const Lt={then:function(e){return Nt().then(e)}};function jt(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=N(oe.mark(function e(t){var n,r;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=document.getElementsByTagName("head")[0],(r=document.createElement("script")).setAttribute("type","text/javascript"),r.setAttribute("src",t),n.appendChild(r),e.abrupt("return",new Promise(function(e){r.onload=function(){e()}}));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Mt(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var qt=function(e){return e.DailyDiscount="dailyDiscount",e.NinetyNinePrice="99Price",e.DoubleDiscount="doubleDiscount",e}({}),Bt=function(e){return e.DoubleDiscount="doubleDiscount",e}({});function zt(e){return Gt.apply(this,arguments)}function Gt(){return Gt=N(oe.mark(function e(t){var n,r,i,a,o,c,s,l,d,f,p,m,h,v,y,g,b,P,E,w,k,_,O,x,C,S,I,D,T,A,R,L,j,U=arguments;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=U.length>2?U[2]:void 0,o=!(U.length>3&&void 0!==U[3])||U[3],c=U.length>4?U[4]:void 0,(i=U.length>1&&void 0!==U[1]?U[1]:{})||(i={}),s=t.isBuy,l=t.buyUrl,d=(null===(n=i)||void 0===n?void 0:n.btnType)||"pay",f=(null===(r=i)||void 0===r?void 0:r.orderParams)||{},1!==s||!l){e.next=1;break}return window.open(l,"_blank")||setTimeout(function(){window.open(l,"_blank")},50),e.abrupt("return");case 1:if(dt){e.next=11;break}if(p=t._promationPriceResult,m=(void 0===p?{}:p).needCertifiedType,"individual_business"===(h=null==a?void 0:a.certifyAccountType)&&(h="enterprise"),!o||!m||"all"===m||h===m||!c&&!window.__ALIYUN_EXPERIENCE_ELEMENT__){e.next=4;break}return v="enterprise"===m,y=ut().isMobile,g=Et("certify.personalOnlyPrice"),v&&(g=Et(y?"certify.enterpriseOnlyPriceMobile":"certify.enterpriseOnlyPrice")),e.prev=2,b=c||window.__ALIYUN_EXPERIENCE_ELEMENT__,P=b.Dialog,E=b.Button,w=P.show({v2:!0,title:Et("common.tips"),content:g,footer:u.createElement("div",{className:"marketing-goods-dialog-footer"},v&&!y&&u.createElement("a",{href:"https://account.console.aliyun.com/v2/?#/authc/home",target:"_blank",style:{marginRight:10}},u.createElement(E,{type:"primary"},Et("common.changeToEnterpriseCert"))),u.createElement(E,{type:v&&y?"primary":"secondary",onClick:function(){w.hide(),zt(t,i,a,!1,c)}},Et("cart"===d?"common.addToCart":"common.directPurchase")))}),e.abrupt("return");case 3:e.prev=3,e.catch(2);case 4:if(k=t._promationPriceResult.promotionResults,!((_=Object.keys(k))&&_.length>0)){e.next=11;break}return e.prev=5,O=[],_.forEach(function(e){var t,n=k[e],r=null==n||null===(t=n.promotionOption)||void 0===t||null===(t=t.activityExtInfo)||void 0===t?void 0:t.activityId;r&&O.push(r)}),O=Array.from(new Set(O)),x=c||window.__ALIYUN_EXPERIENCE_ELEMENT__,C=x.Dialog,S=x.Button,e.next=6,Lt;case 6:return I=e.sent,e.next=7,I.get("Promotion");case 7:return D=e.sent,T=D.Verify,A=st(window.location.search,"preVerify"),e.next=8,Promise.all(O.map(function(e){return T.queryRisk(e,"1"===A)}));case 8:if(!(e.sent.some(function(e){return!e.status})&&C&&S)){e.next=9;break}return R=C.show({v2:!0,title:Et("common.tips"),content:u.createElement("span",null,Et("activity.riskControlTip")),footer:u.createElement("div",{className:"marketing-goods-dialog-footer"},u.createElement(S,{type:"primary",onClick:function(){R.hide(),window.open("https://smartservice.console.aliyun.com/service/self-service-center/search?id=27874&mode=toolPage&trackFrom=topic-MICRO_APP","_blank")}},Et("common.goToSubmit")))}),e.abrupt("return");case 9:e.next=11;break;case 10:e.prev=10,e.catch(5);case 11:if(t.product){e.next=12;break}return e.next=12,t.init();case 12:if(!(L=t.children)||!L.length){e.next=13;break}return e.next=13,Promise.all(L.map(function(){var e=N(oe.mark(function e(t){var n;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=0,t&&t.selectedCardIndex&&(n=t.selectedCardIndex),!t||t.product){e.next=1;break}return e.next=1,t.init();case 1:t&&t.product&&t.product.setSKU(n);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 13:if(j={id:t?"".concat(0,".",t.goodsId,".").concat(t.goodsId):null,bizChannel:"",fromApp:"",orderParams:f,buttons:[d],moduleVersion:3},!t.isPackage){e.next=15;break}return t.product.setPackageName(t.name),t.product.setPackageGoods(L),e.next=14,t.product.startPackagePopUpBuy(j);case 14:e.next=16;break;case 15:return t.product.setSKU(t.selectedCardIndex),e.next=16,t.product.popUpBuy(j);case 16:case"end":return e.stop()}},e,null,[[2,3],[5,10]])})),Gt.apply(this,arguments)}var Wt=function(e){return e.FlashSale="flash_sale_activity_id",e.LowPrice="low_price_activity_id",e}({}),Jt=function(e){return e[e.PostPay=2]="PostPay",e[e.PrePay=1]="PrePay",e}({});function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var $t=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).settlement;if(e){var t=null==e?void 0:e.settlementCurrency;if(t)return"USD"===t?"$":Ot}return Ot},Kt=function(e){var t=e.good,n=e.order,r=void 0===n?0:n,i=t.commodityCode,a=t.goodsId,o=t.id;return"".concat(i,".").concat(a||o,".").concat(r)},Yt=function(e){var t=e.goodsList,n=void 0===t?[]:t,r=e.planCode,i=void 0===r?"":r;return n.map(function(e,t){return new _n({good:e,planCode:i,order:t})})},Ft=function(e){var t=e.articleItemResults,n=e.activityChannel,r=e.promotionPriceData,i=(null==t?void 0:t.length)>0?t[0]:{};if(n&&i&&i.price){var a,o=(null==r||null===(a=r.articleItemResults)||void 0===a?void 0:a.length)>0?null==r?void 0:r.articleItemResults[0]:{},c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},(null==i?void 0:i.price)||{});i.price=null==o?void 0:o.price,i.price.channelPrice=null==c?void 0:c.discountedPrice,i.price.channelTotalPrice=null==c?void 0:c.discountedTotalPrice,i.price.channelDiscount=null==c?void 0:c.discount}if(i&&i.price){var s,u,l=i.depreciateInfo,d=void 0===l?{}:l;if(d){var f=d.isContractActivity,p=d.contractActivity;if(f){var m=(void 0===p?{}:p).finalFee;i.price.cheapStandAmount=m||i.price.totalPrice}else i.price.cheapStandAmount=d.cheapStandAmount||d.originalStandAmount;i.price.listPrice=d.listPrice,i.price.unitCurrency=$t(i)}var h=function(e){if(e){var t=Object.entries(e).find(function(e){var t,n=e[1];return(null==n||null===(t=n.promotionOption)||void 0===t?void 0:t.levelCategory)===Bt.DoubleDiscount});if(t){var n=t[1].promotionOption,r=void 0===n?{}:n;return{doubleDiscount:r.discount,remainDiscountQuota:r.remainDiscountQuota}}}}(null==r?void 0:r.promotionResults);h&&(i.price.doubleDiscount=h.doubleDiscount,i.price.remainDiscountQuota=h.remainDiscountQuota),i.price.activityDiscount=null!=h&&h.doubleDiscount&&null!=i&&null!==(s=i.price)&&void 0!==s&&s.discount?i.price.discount-h.doubleDiscount:null==i||null===(u=i.price)||void 0===u?void 0:u.discount}return i},Qt=function(e){var t=(null==e?void 0:e.articleItemResults)||[],n={discountedPrice:0,totalPrice:0,discount:0,unitCurrency:Ot},r=It({articleItemResults:t}),i=r.discountedPrice,a=r.totalPrice,o=r.discount;return n.discount=o||0,n.discountedPrice=i||0,n.totalPrice=a||0,n.totalPrice&&(n.listPrice=n.totalPrice),n.discount&&(n.activityDiscount=n.discount),t.length>0&&(n.unitCurrency=$t(t[0])),n},Ht=function(e,t){var n=e.filter(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).price,t=void 0===e?{}:e;return t&&t.discountedPrice>=0&&t.unitPrice>0}),r=[];return n&&n.length>0&&n.forEach(function(e,n){var i=Ft({articleItemResults:[e]}),a=i.name,o=i.depreciateInfo,c=i.price;r.push({id:"".concat(n,"-").concat(a),name:a,depreciateInfo:o||{},price:c,priceAdjustTime:t})}),r},Xt=function(){var e=N(oe.mark(function e(t,n){var r,i,a;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object.keys(t),i=Object.keys(n),r&&r.length>0?r.forEach(function(e){i.forEach(function(t){e===t&&(a=e)})}):a=i&&i.length>0?i[0]:"",e.abrupt("return",{labelItemKey:a,hasPromotion:i&&i.length>0});case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}();const Zt=function(e){var t=e||{},n=t.enterpriseUserOnly,r=t.personalUserOnly;return t.newUserOnly?{type:"newUser",text:Et("crowdTag.newUserOnly")}:n?{type:"enterprise",text:Et("crowdTag.enterpriseUserOnly")}:r?{type:"personal",text:Et("crowdTag.personalUserOnly")}:null},en=function(e,t,n){var r=e,i=_t();"12:Month"===t?r=i["12:Month"]:"24:Month"===t?r=i["24:Month"]:"36:Month"===t&&(r=i["36:Month"]);var a=kt();return"systemdisk"===n&&a[t]&&(r=a[t]),r=r.replace(/([0-9]+)\s+/g,"$1")},tn=function(e,t){var n=e[t];return"systemdisk"===t?n=n.systemdiskCategory||n.systemDiskCategory:"vm_bandwidth"!==t&&"bandwidth"!==t||(n.internetMaxBandwidthOut||n.internetMaxBandwidthOut>-1)&&(n=n.internetMaxBandwidthOut),n},nn=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.defaultValues,r=t.isPackage,i=t.selectedCardIndex,a=t.children;return r?(e=[],a.forEach(function(t,n){t.defaultValues.forEach(function(r){if(r.cardIndex===t.selectedCardIndex){var i=r.orderParams;i.uniqLabel=t.uniqKey||Kt({good:t,order:n}),e.push(i)}})})):(n.forEach(function(n){n.cardIndex===i&&((e=n.orderParams).uniqLabel=t.uniqKey||Kt({good:t}))}),!e&&n[0]&&((e=n[0].orderParams).uniqLabel=t.uniqKey||Kt({good:t}))),e};function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var on,cn=function(e){return"number"==typeof e?"".concat(e):e},sn=function(e,t,n,r,i,a){var o,c=[],s=[];if(e<t.length){var u=i[o=t[e].code];if(n.forEach(function(e){var t=e.value,n=e.orderParams;if(t){var r=Object.keys(t);if(!r||r.length<1)return!1;var i,a,s=tn(t,o);if("instance_type"!==o)i=null==n||null===(a=n.components)||void 0===a?void 0:a.find(function(e){return e.componentCode===o});i&&i.instanceProperty?function(e,t,n,r){var i=e.instanceProperty[0];if(i&&i.name&&!n.find(function(e){return e.value===t})){var a=en(i.name,t,r);n.push({text:a,label:a,value:cn(t)})}}(i,s,c,o):function(e,t,n,r){e&&e.options&&e.options.length>0&&e.options.forEach(function(e){var i=e.value||e.defaultValue;if(!i||cn(i)===cn(t)){var a=function(e){var t="";return"string"==typeof e.text?t=e.text:e.text&&e.text.title&&(t=e.text.title),t}(e);if("instance_type"===r){var o=a.split(" ");o&&o.length>0&&(a=o[0])}var c=n.find(function(e){return cn(e.value)===cn(t)});if(a||(a=t),a&&!c){var s=en("".concat(a).concat(e.unit||""),t,r);n.push({text:s,label:s,value:cn(i)})}}})}(u,s,c,o)}}),c&&c.length>0){var l=function(e,t,n,r){var i=0;return e&&e.forEach(function(e){e.code===t&&n.forEach(function(t,n){var a=r[e.code];cn(t.value)===a&&(i=n)})}),i}(t,o,c,a),d=c[l];a[o]=cn(d.value),n.forEach(function(e){var t=e.value;if(t){var n=Object.keys(t);if(!n||n.length<1)return!1;var r=tn(t,o);cn(d.value)===cn(r)&&s.push(e)}})}if(e<10){var f=s.length>0?s:n;sn(e+1,t,f,r,i,a)}}return o&&s.length>0&&(r[o]=c),s},un=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=window.location.search,n=!1;return(e||/preVerify=true/.test(t)||/prePrice=1/.test(t))&&(n=!0),dt?n?"https://pre-page.alibabacloud.com":"https://page.alibabacloud.com":n?"https://pre-t.aliyun.com/abs":"https://t.aliyun.com/abs"}(),ln=(on="1"===new URLSearchParams(window.location.search).get("prePrice"),dt?on?"https://pre-page.alibabacloud.com":"https://page.alibabacloud.com":on?"https://pre-page.aliyun.com":"https://page.aliyun.com"),dn={QUERY_PRICE:"".concat(un,"/promotion/queryPrice"),QUERY_PRICE_BATCH:"".concat(un,"/promotion/queryPriceBatch"),QUERY_PRICE_BATCH_STEALTH:"".concat(un,"/promotion/queryPriceBatchStealth")},fn={GET_STOCK_STATUS:"".concat(ln,"/promotion/checkInventory")},pn=function(e,t){var n=function(e){for(var t=null,n=0,r=[Wt.FlashSale,Wt.LowPrice];n<r.length;n++){var i=r[n];if(e[i]){t=i;break}}return t}(t),r=null;if(n&&(r=t[n]),r)switch(n){case Wt.FlashSale:return e.orderParams.flash_sale_activity_id=r,e.orderParams.no_coupons=!0,void(e.orderParams.watchActivityIdList=r);case Wt.LowPrice:return void(e.orderParams.watchActivityIdList=r);default:return}},mn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){if(null!=e&&e.orderParams||(e.orderParams={}),"object"===Object.prototype.toString.call(e.orderParams).slice(8,-1).toLowerCase()){var n=t.isManualQueryPrice,r=void 0!==n&&n;e.orderParams.pricing_trigger_type=r?"manual":"default"}return e}},hn=function(e){var t,n=e.goodsId,r=e.orderParams,i=void 0===r?{}:r,a=e.planId,o=e.activityId,c=e.orderParamsOption,s=e.isBatch,u=void 0!==s&&s;Array.isArray(i)?(o&&i.forEach(function(e){pn(e,o)}),i.forEach(function(e){mn(e,c)}),t=i):(o&&pn(i,o),mn(i,c),t=[i]);var l={commodityId:n,commodities:t};return a&&(l.planId=a),u&&(l.bizOccasion="queryPrice"),l};const vn=function(){var e=N(oe.mark(function e(t){var n,r,i,a,o,c,s,u,l,d,f,p,m,h;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.goodsId,r=t.orderParams,i=void 0===r?{}:r,a=t.planId,o=t.activityChannel,c=t.stealth,s=t.activityId,u=t.orderParamsOption,d=hn({goodsId:n,orderParams:i,planId:a,activityId:s,orderParamsOption:void 0===u?{}:u}),f=dn.QUERY_PRICE,o?(f=dn.QUERY_PRICE_BATCH,c&&(f=dn.QUERY_PRICE_BATCH_STEALTH),p=JSON.stringify(d),(p=JSON.parse(p)).commodities.forEach(function(e){e&&e.orderParams&&(e.orderParams.no_coupons=!0,e.orderParams.aliyunActivityChannel=o)}),(m=[]).push(p),m.push(d),l=JSON.stringify(m)):(c&&(f="".concat(un,"/promotion/queryPriceStealth")),l=JSON.stringify(d)),e.next=1,Lt.then(function(){var e=N(oe.mark(function e(t){return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.Request.post(f,{param:l});case 1:h=e.sent;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:return e.abrupt("return",h);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var yn=function(){var e=N(oe.mark(function e(t){var n,r,i,a,o;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.goodsId,r=t.planId,i=nn(t),a=hn({goodsId:n,orderParams:i,planId:r,activityId:void 0,orderParamsOption:{}}),e.next=1,Lt.then(function(){var e=N(oe.mark(function e(t){return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.Request.post(fn.GET_STOCK_STATUS,{param:JSON.stringify(a)});case 1:o=e.sent;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:return e.abrupt("return",o);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),gn=function(e){var t=e;if(e){var n=t.split(" ");if(n&&n.length>0&&"string"==typeof n[0]){var r=[];n[0].split("-").forEach(function(e){r.push(1*e)}),t=r.join(".")}}return t},bn=function(){var e=N(oe.mark(function e(t){var n,r,i,a,o,c,s,u,l,d,f,p,m,h,v,y,g,b,P,E,w,k;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.data,r=t.activityChannel,i=t.planId,Array.isArray(n.data)&&r?(c=null===(s=n.data[0])||void 0===s?void 0:s.data,o=null===(u=n.data[1])||void 0===u?void 0:u.data,a=n.data[0].code||200):(o=n.data,a=n.code),d=(null==(l=c||o)?void 0:l.promotionResults)||{},f=(null==l?void 0:l.promotionLabelInfo)||{},e.next=1,Xt(f,d);case 1:return p=e.sent,m=p.labelItemKey,h=p.hasPromotion,v=null==l?void 0:l.articleItemResults,y={},i?(g=Qt(l),y={price:g,hasPromotion:h,articleItemResults:v,promotionResults:d}):(P=Ft({articleItemResults:v,activityChannel:r,promotionPriceData:o}),E=gn((null==P||null===(b=P.depreciateInfo)||void 0===b?void 0:b.startTime)||""),y={price:P.price,promotionResults:d,promotionLabelInfo:f,depreciateInfo:(null==P?void 0:P.depreciateInfo)||{},labelItemKey:m,hasPromotion:h,priceAdjustTime:E,watchActivityResultList:null==P?void 0:P.watchActivityResultList},(w=P.chargeType===Jt.PostPay)&&(y.isPostPay=w,y.postPayModules=Ht(P.moduleResults,E))),k=wt(),200!==a&&-1!==Object.keys(k).indexOf(a)&&(y.code=a),e.abrupt("return",y);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();const Pn=function(){var e=N(oe.mark(function e(t){var n,r,i,a;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.planId,r=t.activityChannel,e.next=1,vn(t);case 1:return i=e.sent,e.next=2,bn({data:i,activityChannel:r,planId:n});case 2:return a=e.sent,e.abrupt("return",a);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var En=["refresh"];function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _n=function(){return _e(function e(t){var n,r=this,i=t.good,a=t.planCode,o=t.order,c=void 0===o?0:o;we(this,e),T(this,"sku",[]),T(this,"scm",void 0),T(this,"title",void 0),T(this,"name",void 0),T(this,"description",void 0),T(this,"productCode",void 0),T(this,"commodityCode",void 0),T(this,"goodsId",void 0),T(this,"mcm_code",void 0),T(this,"mcm_id",void 0),T(this,"selectSkuId",0),T(this,"children",void 0),T(this,"parent",void 0),T(this,"_rawGood",void 0),T(this,"price",void 0),T(this,"postPayPrice",void 0),T(this,"commodityType",void 0),T(this,"isBuy",void 0),T(this,"buyUrl",void 0),T(this,"productDetailLink",void 0),T(this,"commodityDetailUrl",void 0),T(this,"isPackage",!1),T(this,"packagecode",void 0),T(this,"planId",void 0),T(this,"goodsType",void 0),T(this,"planItemId",void 0),T(this,"defaultValues",[]),T(this,"product",void 0),T(this,"_commodityKeys",void 0),T(this,"_checkedFeatureList",void 0),T(this,"_promationPriceResult",void 0),T(this,"commodity",void 0),T(this,"selectedCardIndex",0),T(this,"selectedComponentValue",{}),T(this,"isPostPay",void 0),T(this,"hasPostPay",void 0),T(this,"activityId",void 0),T(this,"isResourcePackage",void 0),T(this,"uniqKey",void 0),T(this,"planInstanceIsRequired",void 0),T(this,"orderParamsOption",{isManualQueryPrice:!1}),T(this,"_displayComponents",void 0),T(this,"_promotionTags",void 0),T(this,"_staticLoaded",void 0),T(this,"_staticLabels",void 0),T(this,"getTimeUnit",function(e){var t=e.orderParams,n="";if(!e.isPostPay){var i=_t(),a=t?i["".concat(t.duration,":").concat(t.pricingCycle)]:"";n=r.formatTime(a,t)}return n}),i&&i.defaultValues&&i.defaultValues.forEach(function(e){var t=e.values;t&&t.forEach(function(e){r.sku.push({config:e.value})})}),this.uniqKey=Kt({good:i,order:c}),this._rawGood={commodityCode:i.commodityCode,specCode:i.itemCode,productCode:i.productCode,accessories:{commodityCode:i.commodityCode,specCode:i.itemCode,productCode:i.productCode,commodity:i.modules?i.modules.commodity:void 0},title:i.itemName,name:i.itemName,sku:this.sku,goodsId:i.id,id:i.id,itemId:i.itemId,actPromotionCommodityAttributeList:i.actPromotionCommodityAttributeList},a&&this._rawGood&&(this._rawGood.accessories.planCode=a),this._staticLoaded=i.staticLoaded||i.defaultValues&&i.defaultValues.length>-1,this.scm=i.scm,this.productCode=i.productCode,this.commodityCode=i.commodityCode,this.goodsId=i.id,this.mcm_code="".concat(this.productCode,".").concat(this.commodityCode),this.mcm_id="".concat(0,".",i.id,".").concat(i.id),this.selectSkuId=0,this.children=i.children||[],this.children.forEach(function(t){t instanceof e&&(t.setParent(r),t.selected=!0)}),this.title=i.itemName,this.name=i.itemName,this.description=i.description;var s,u,l=i.defaultValues||[];this.setDefaultValues(i.defaultValues),this.commodity=(s=i.modules,u=null,s&&s.commodity?u=s.commodity:s&&s.domainParams&&(u=s.domainParams),u),this.price=i.price;var d=i.actPromotionCommodityAttributeList,f=Tn(d,"post_pay_expenses_item");this.postPayPrice=f&&JSON.parse(f);var p=Tn(d,"market_commodity_labels");this._staticLabels=p&&p.split(",")||[],this.commodityType=i.commodityType,this.isBuy=i.isBuy,this.buyUrl=i.buyUrl,this.productDetailLink=i.productDetailLink,this.commodityDetailUrl=i.commodityDetailUrl,this.hasPostPay=i.hasPostPay;var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("plan"===e.comType){var n=e.actPromotionCommodityAttributeList,r=Tn(void 0===n?[]:n,"ntm_plan_id"),i=r&&Number(r)||void 0,a=e.commodityCode;return t&&(t.accessories.goodsType="startPackage",t.accessories.planCode=e.commodityCode),{goodsType:"startPackage",isPackage:!0,packagecode:a,planId:i,_rawGood:t}}if("plan_commodity"===e.comType){var o=e.actPromotionCommodityAttributeList.find(function(e){return"planItemId"===e.attrCode}),c=(null==o?void 0:o.attrValue)&&1*o.attrValue||null;t&&(t.accessories.planItemId=c);var s="boolean"!=typeof e.planInstanceIsRequired||e.planInstanceIsRequired;return t.accessories.defaultChecked=!0,{_rawGood:t,planInstanceIsRequired:s}}return!1}(i,this._rawGood);if(Object.assign(this,m),this._commodityKeys=this.resetCommodityKeys((null===(n=l[0])||void 0===n?void 0:n.selectedCommodityKeys)||[]),!this.isPackage){var h={};if(this.commodity){sn(0,this._commodityKeys,this.defaultValues,h,this.commodity,this.selectedComponentValue);var v=Object.keys(h);v&&v.length<3&&(h=this.groupStaticModule(h))}else h=this.groupStaticModule(h);this._displayComponents=h}var y=j([Wt.FlashSale,Wt.LowPrice].map(function(e){return Tn(d,e)}),2),g=y[0],b=y[1];(g||b)&&(this.activityId=T(T({},Wt.FlashSale,g),Wt.LowPrice,b));var P=this.getPromationCommodity(i,"commodity_sub_type");P&&(this.isResourcePackage="resourcePackageCommodity"===P)},[{key:"getPromationCommodity",value:function(e,t){var n=e.actPromotionCommodityAttributeList,r=void 0===n?[]:n,i=r&&r.find(function(e){return e.attrCode===t});return i&&i.attrValue}},{key:"setDefaultValues",value:function(e){var t,n=[];e&&(e.forEach(function(e,t){if(0===t){var r=e.values;r&&r.forEach(function(e,t){n.push(kn(kn({},e),{},{cardIndex:t}))})}}),this.defaultValues=n,this._checkedFeatureList=null===(t=e[0])||void 0===t?void 0:t.checkedFeatureList)}},{key:"init",value:(i=N(oe.mark(function e(){var t=this;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Lt.then(function(){var e=N(oe.mark(function e(n){var r,i;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,n.get("GoodsService");case 1:r=e.sent,i=r.getProduct(t._rawGood),t.product=i;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"setSku",value:function(e){this.selectSkuId=e}},{key:"handlePopUpBuy",value:(r=N(oe.mark(function e(t,n,r,i){var a,o,c=this;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!dt){e.next=5;break}if(void 0!==i){e.next=2;break}return e.next=1,ot.call("account","getUserInfo");case 1:(o=e.sent)&&"SIN"===o.channelId&&(a=!0);case 2:if(!1!==i&&a){e.next=3;break}return window.location.href="https://account.alibabacloud.com/login/login.htm?oauth_callback=".concat(encodeURIComponent(window.location.href)),e.abrupt("return");case 3:return e.next=4,zt(this,t,r,!0,n);case 4:return e.abrupt("return");case 5:return!window.__ALIYUN_EXPERIENCE_REACT__&&window.React&&(window.__ALIYUN_EXPERIENCE_REACT__=window.React),!window.__ALIYUN_EXPERIENCE_REACT_DOM__&&window.ReactDOM&&(window.__ALIYUN_EXPERIENCE_REACT_DOM__=window.ReactDOM),e.next=6,Lt.then(function(){var e=N(oe.mark(function e(r){var i,a,o,s,u;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.get("Account");case 1:return i=e.sent,e.next=2,Dn();case 2:if(a=e.sent){e.next=3;break}return i.toLogin(),e.abrupt("return");case 3:if(!a||null!==a.certifyAccountType){e.next=4;break}return o=c._promationPriceResult,s=(void 0===o?{}:o).needCertifiedType,u={title:Et("common.tips")},"personal"!==s&&"enterprise"!==s||(u.subjectType=s),i.toCertificate(u),e.abrupt("return");case 4:return e.next=5,zt(c,t,a,!0,n);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 6:case"end":return e.stop()}},e,this)})),function(e,t,n,i){return r.apply(this,arguments)})},{key:"addCart",value:(n=N(oe.mark(function e(){var t,n,r,i,a=arguments;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},n=a.length>1?a[1]:void 0,r=a.length>2?a[2]:void 0,i=a.length>3?a[3]:void 0,e.next=1,this.handlePopUpBuy({orderParams:null==t?void 0:t.orderParams,btnType:"cart"},n,r,i);case 1:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"resetCommodityKeys",value:function(e){var t,n=this.commodity,r=[],i=this.defaultValues;(n&&i&&i.length>0&&i.forEach(function(t){if(t.orderParams){var i=t.orderParams.components;i&&(i.forEach(function(t){e.find(function(e){return t.componentCode===e})&&n[t.componentCode]&&(r.find(function(e){return e.code===t.componentCode})||r.push({code:t.componentCode,name:n[t.componentCode].name}))}),["order_time","ord_time","order_num"].forEach(function(t){e.find(function(e){return e===t})&&n[t]&&(r.find(function(e){return e.code===t})||r.push({code:t,name:n[t].name}))}))}}),!n||r&&r.length<3)&&((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){e&&e.checked&&r.length<3&&r.push({code:e.code,name:e.name})});return r}},{key:"groupStaticModule",value:function(e){var t,n=this,r=kn({},e);return((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){if(e&&e.checked){var t=n._checkedFeatureList.options.find(function(t){return t.value===e.code});t&&(r[e.code]=[{text:t.text,label:t.label,value:t.text}])}}),r}},{key:"getTitle",value:function(){return this.title}},{key:"getDescription",value:function(){return this.description}},{key:"hasLoaded",value:function(){return this._staticLoaded}},{key:"getDisplayComponents",value:function(){var e=this;if(!this.isPackage){var t=this._commodityKeys,n=this._displayComponents,r=[];return t.forEach(function(t){n[t.code]&&r.push({label:t,options:n[t.code],target:e})}),r}var i=[];return this.children.forEach(function(e){var t=e.getDisplayComponents();t&&(i=[].concat(Ee(i),Ee(t)))}),i.splice(0,3)}},{key:"formatTime",value:function(e,t){return!this.isPackage&&t?e?"/".concat(e):"/".concat(t.duration).concat(t.pricingCycleTitle):""}},{key:"setFormatPriceResult",value:function(e){var t,n,r=this,i=e.price,a=nn(this),o=i.labelItemKey,c=i.promotionLabelInfo,s=i.promotionResults,u=i.hasPromotion,l=i.depreciateInfo,d=void 0===l?{}:l,f=i.articleItemResults,p=i.isPostPay,m=i.postPayModules,h=i.watchActivityResultList,v=this.getTimeUnit({orderParams:a,isPostPay:p}),y=Dt({isPackage:this.isPackage,isResourcePackage:this.isResourcePackage},i,v),g=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(0===Object.keys(n).length||!r)return{};var i=n,a={tags:[]},o=(null===(e=i[r])||void 0===e?void 0:e.display)||[],c=(null==i||null===(t=i.common)||void 0===t?void 0:t.display)||[];return a.tags=[].concat(Ee(o),Ee(c)),a}(c,o),b=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(0!==Object.keys(n).length){var i,a,o=(null==n||null===(e=n.common)||void 0===e?void 0:e.biz)||[],c=(null==n||null===(t=n.common)||void 0===t?void 0:t.extraInfo)||{},s=!1,u=!0,l=!0;try{var d=c.promotionBizLabels;for(var f in d)if(d.hasOwnProperty(f)){var p=d[f];if(p.promotionId===r){i=p.orderNumLimit;break}}s=c.sameIdLimit,a=c.userTimes,o.forEach(function(e){"NO_COUPON"===e?u=!1:"NO_REFUND"===e&&(l=!1)})}catch(m){}return{orderNumLimit:i,isSameIdLimt:s,userTimes:a,isCoupon:u,isRefund:l}}}(c,o);this._promotionTags=null==g?void 0:g.tags;var P=o&&(null==s?void 0:s[o])||void 0,E=null==c||null===(t=c.common)||void 0===t?void 0:t.extraInfo,w=E||{},k=w.enterpriseUserOnly,_=w.personalUserOnly;p&&m&&m.length>0?(this.isPostPay=!0,m.forEach(function(e){e.code=i.code,e.formatPrice=Dt({isPostPay:p,isResourcePackage:r.isResourcePackage},e,"",3)})):this.isPostPay=!1;var O=k?"enterprise":_?"personal":"all";i&&i.price&&v&&(i.price.pricingCycle=v.replace(/^\//,""));var x=[];return this.isPackage&&(x=function(e){var t=e.good,n=e.priceRes,r=t.children,i=n.articleItemResults,a=[];return r.forEach(function(e,r){var o=null==i?void 0:i.find(function(t){return t.tag===(e.uniqKey||Kt({good:e,order:r}))});if(o){var c={tag:o.tag};o.code=n.code;var s=o.price,u=o.depreciateInfo,l=o.chargeType,d=o.moduleResults;s.unitCurrency=$t(o);var f=l===Jt.PostPay,p=e.defaultValues.find(function(t){return t.cardIndex===e.selectedCardIndex}).orderParams,m=t.getTimeUnit({isPostPay:f,orderParams:p}),h=Dt({isPackage:e.isPackage,isResourcePackage:e.isResourcePackage},o,m);if(c.price=s,c.formatPrice=h,c.isPostPay=f,f){var v=gn((null==u?void 0:u.startTime)||""),y=Ht(d,v);y&&y.length>0&&y.forEach(function(t){t.code=null==n?void 0:n.code,t.formatPrice=Dt({isPostPay:f,isResourcePackage:e.isResourcePackage},t,"",2)}),c.postPayModules=y}a.push(c)}else a.push(null)}),a}({good:this,priceRes:i})),this._promationPriceResult={promotionResults:s,price:null==i?void 0:i.price,promotionTags:this._promotionTags,depreciateInfo:d,formatPrice:y,promotionResult:P,hasPromotion:u,discountRule:b,is99Price:(null==P||null===(n=P.promotionOption)||void 0===n||null===(n=n.activityExtInfo)||void 0===n?void 0:n.discountScene)===qt.NinetyNinePrice||!1,articleItemResults:f,needCertifiedType:O,isPostPay:p,postPayModules:m,crowdTag:Zt(E),watchActivityResultList:h,articlePriceResults:x},this._promationPriceResult}},{key:"checkStaticPrice",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.price,n=e.commodityType,r=e.commodity,i=e.postPayPrice;if("notcommonbuy_notselfcreate"===n||!r&&t&&t.length>0){var a={},o={};if(t.forEach(function(e){"daily_price"===e.code?o.totalPrice=e.value:"promotion_price"===e.code&&(o.discountedPrice=e.value)}),a={price:o,formatPrice:{promotionPrice:At(o.discountedPrice),dailyPrice:At(o.totalPrice)}},i&&i.length>0){var c=[];i.forEach(function(e){var t=e.daily_price,n=e.promotion_price,r=e.groupId,i=e.expenses_name,a=At(t),o=At(n),s={totalPrice:e.daily_price,dailyPrice:a,promotionPrice:o,discountedPrice:e.promotion_price};c.push({id:r,name:i,price:s,formatPrice:{promotionPrice:At(s.discountedPrice),dailyPrice:At(s.totalPrice)}})}),a=an(an({},a),{},{isPostPay:!0,postPayModules:c})}return a}return!1}(this);return!!e&&(this.isPostPay=!!e.isPostPay,kn(kn({},e),{},{promotionTags:this._staticLabels}))}},{key:"getPrice",value:(t=N(oe.mark(function e(){var t,n,r,i,a,o,c,s=arguments;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:{},!(n=this.checkStaticPrice())){e.next=1;break}return e.abrupt("return",n);case 1:return r=t.activityChannel,i=t.stealth,a=t.needActivityId,o=nn(this),e.next=2,Sn({goodsId:this.goodsId,orderParams:o,planId:this.planId,activityChannel:r,stealth:i,activityId:a?this.activityId:void 0,orderParamsOption:this.orderParamsOption});case 2:return c=e.sent,e.abrupt("return",this.setFormatPriceResult({price:c}));case 3:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"getComboPrice",value:(e=N(oe.mark(function e(t){var n,r,i,a,o,c,s,u,l,d,f,p,m,h,v,y,g,b,P,E,w,k,_,O,x;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(r=t||{}).refresh,a=Mt(r,En),o=this._promationPriceResult,!i){e.next=2;break}return e.next=1,this.getPrice(a);case 1:o=e.sent;case 2:if(this.isPackage){e.next=3;break}return e.abrupt("return",o);case 3:return c=nn(this),s=this.getTimeUnit({orderParams:c,isPostPay:o.isPostPay}),u=this.children||[],l=null===(n=o.articleItemResults)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.code,d=o.articleItemResults.filter(function(e){var t=e.key,n=u.find(function(e){return e.uniqKey===t});return n&&n.selected}),f=It({articleItemResults:d}),p=f.discountedPrice,m=f.totalPrice,h=f.discount,y={unit:s,digital:2},g=[{noPermission:l,money:p},{noPermission:l,money:v=m||0},{ignorePermission:!0,money:m},{ignorePermission:!0,money:h,defaultCondition:function(){return h<=0}}].map(function(e){return e=Object.assign(y,e),St(e)}),b=j(g,4),P=b[0],E=b[1],w=b[2],k=b[3],_={promotionPrice:P,listPrice:E,dailyPrice:w,activityDiscount:k},O=Object.assign(o.formatPrice||{},_),x=Object.assign(o.price||{},{discountedPrice:p,listPrice:v,totalPrice:m,discount:h,activityDiscount:h}),e.abrupt("return",kn(kn({},o),{},{price:x,formatPrice:O}));case 4:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"getStringValue",value:function(e){return"number"==typeof e?"".concat(e):e}},{key:"changeSku",value:function(e,t,n){var r=this;if(this.orderParamsOption.isManualQueryPrice=!0,this.selectedComponentValue[t]=this.getStringValue(e),this.isPackage)if(n&&n.target)n.target.changeSku(e,t);else for(var i=0;i<this.children.length;i++){if(this.children[i]._commodityKeys)if(this.children[i]._commodityKeys.find(function(e){return e.code===t})){this.children[i].changeSku(e,t);break}}else{var a={};if(this.commodity){var o=sn(0,this._commodityKeys,this.defaultValues,a,this.commodity,this.selectedComponentValue),c=Object.keys(this.selectedComponentValue),s=o.find(function(e){var t=e.value;return c.every(function(e){return r.getStringValue(t[e])===r.selectedComponentValue[e]})});s&&(this.selectedCardIndex=s.cardIndex);var u=Object.keys(a);u&&u.length<3&&(a=this.groupStaticModule(a))}else a=this.groupStaticModule(a);this._displayComponents=a}}},{key:"setParent",value:function(e){this.parent=e}},{key:"selected",get:function(){if(this.parent)return!!this.planInstanceIsRequired||Boolean(this._rawGood.accessories.defaultChecked)},set:function(e){this.parent&&!this.planInstanceIsRequired&&(this._rawGood.accessories.defaultChecked=e)}},{key:"getSelectedGoods",value:function(){return this.isPackage?this.children.filter(function(e){return e.selected}):null}}]);var e,t,n,r,i}(),On=new ht;const xn=function(){var e=N(oe.mark(function e(t){var n;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Lt.then(function(){var e=N(oe.mark(function e(r){var i,a,o,c,s;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=pt(),a="".concat(i,"/promotion-commodity-").concat(t),o=Pt(),!On.getGood(t,o)){e.next=1;break}c=On.getGood(t,o),e.next=3;break;case 1:return e.next=2,r.Request.get(a,null,{withCredentials:!1,xsrfCookieName:""});case 2:(c=e.sent).scm="20140722.M_".concat(c.id,"._.V_1"),c.staticLoaded=!0,c&&"plan"===c.comType&&c.actPromotionCommodityDTOList&&(s=c.actPromotionCommodityDTOList.find(function(e){return"POSTPAY"===e.chargeType}),c.children=c.actPromotionCommodityDTOList,c.hasPostPay=!!s,c.children=Yt({goodsList:c.children,planCode:c.commodityCode})),On.setGood(t,c,o);case 3:return c&&(n=new _n({good:c,planCode:c.commodityCode})),e.abrupt("return",{});case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:return e.abrupt("return",n);case 4:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();new ht;const Cn=N(oe.mark(function e(){var t;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=2,Lt.then(function(){var e=N(oe.mark(function e(n){var r;return oe.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,n.Request.get("https://bridge.aliyun.com/abs/home/queryUserBaseInfo");case 1:r=e.sent,t=r&&r.data;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e,null,[[1,3]])}));var Sn=Pn,In=xn,Dn=Cn,Tn=function(e,t){if(e&&Array.isArray(e)){var n=e.find(function(e){return e.attrCode===t});return null==n?void 0:n.attrValue}};var An=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t";try{var n=document.body.clientWidth,r=e.currentTarget.getBoundingClientRect();(r&&r.left&&n-r.left<=200||r&&r.left&&r.left<=150)&&(t="tl")}catch(i){}return t},Nn=window.__LOWCODE_ENV__||{};location.hostname.indexOf("alibabacloud.com")>0||null==Nn||Nn.tenant;function Rn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ln(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ln(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jn={};function Un(e,t){jn[e]=t}function Mn(e,t){var n,r=jn["zh-CN"]||jn["zh-CN"]||{},i=Rn(e.split("."));try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!r||"object"!==I(r)||!(a in r))return e;r=r[a]}}catch(o){i.e(o)}finally{i.f()}return"function"==typeof r?r(t||{}):"string"==typeof r&&t?r.replace(/\{(\w+)\}/g,function(e,n){return void 0!==t[n]?String(t[n]):e}):r||e}Un("zh-CN",{common:{refresh:"\u5237\u65b0",select:"\u8bf7\u9009\u62e9"},action:{buy:"\u7acb\u5373\u8d2d\u4e70",addToCart:"\u52a0\u5165\u8d2d\u7269\u8f66",activate:"\u7acb\u5373\u5f00\u901a"},price:{querying:"\u8be2\u4ef7\u4e2d",queryingWithEllipsis:"\u8be2\u4ef7\u4e2d...",clickToGetPrice:"\u70b9\u51fb\u7acb\u5373\u8d2d\u4e70\uff0c\u83b7\u53d6\u6700\u65b0\u4ef7\u683c",from:"\u8d77",dailyPrice:"\u65e5\u5e38\u4ef7",catalogue:"\u5b98\u7f51\u76ee\u5f55\u4ef7",discounted:"\u5b98\u7f51\u6298\u6263\u4ef7",contractDiscounted:"\u4f01\u4e1a\u5408\u540c\u6298\u6263\u4ef7",catalogueTip:"\u5546\u54c1\u7684\u5217\u8868\u4ef7\u683c\u3002",discountedTip:"\u5546\u54c1\u5b9e\u9645\u5728\u5b98\u7f51\u552e\u5356\u7684\u4ef7\u683c\uff0c\u901a\u5e38\u4f1a\u5728\u76ee\u5f55\u4ef7\u57fa\u7840\u4e0a\u53e0\u52a0\u4e00\u5b9a\u6298\u6263\u3002",contractDiscountedTip:"\u6839\u636e\u5408\u540c\u6298\u6263\u4f18\u60e0\u540e\u7684\u4ef7\u683c\uff0c\u5373\u5728\u76ee\u5f55\u4ef7\u57fa\u7840\u4e0a\u53e0\u52a0\u9500\u552e\u5408\u540c\u4e2d\u6240\u7ea6\u5b9a\u7684\u6298\u6263\u3002",price:"\u4ef7\u683c",prePayOnlyTip:"\u6b64\u4ef7\u683c\u4ec5\u4e3a\u9884\u4ed8\u8d39\u4ef7\u683c\uff0c\u5957\u9910\u5185\u7684\u6309\u91cf\u8ba1\u8d39\u9879\u6309\u7167\u5b9e\u9645\u7528\u91cf\u6536\u8d39",catalogueWithPrice:function(e){return"\u5b98\u7f51\u76ee\u5f55\u4ef7\uff08".concat(e.price,"\uff09")},cheapRateLabel:function(e){return"\u8f83".concat(e.time,"\u524d\u964d").concat(e.rate)},cheapRateAlt:"\u5b98\u7f51\u964d\u4ef7"},discount:{learnMore:"\u4e86\u89e3\u4f18\u60e0",detail:"\u4f18\u60e0\u660e\u7ec6",activityRules:"\u6d3b\u52a8\u89c4\u5219",activityDiscount:"\u6d3b\u52a8\u4f18\u60e0",doubleDiscount:"\u6298\u4e0a\u6298\u4f18\u60e0",doubleDiscountWithQuota:function(e){return"\u6298\u4e0a\u6298\u4f18\u60e0\uff08\u53ef\u7528\u989d\u5ea6".concat(e.quota,"\uff09")},reduce:"\u51cf",save:function(e){return"\u8282\u7701:".concat(e.amount)},purchaseLimit:"\u9650\u8d2d",unlimited:"\u4e0d\u9650\u8d2d",purchaseLimitWithCount:function(e){return"".concat(e.count,"\u4ef6")},refund:"\u9000\u6b3e",refundable:"\u53ef\u9000\u6b3e",nonRefundable:"\u6d3b\u52a8\u5546\u54c1\u7981\u6b62\u9000\u6b3e",accountLimit:"\u8d26\u53f7\u9650\u5236",noLimit:"\u65e0\u9650\u5236",accountLimitWithTimes:function(e){return"\u540c\u8ba4\u8bc1\u8d26\u53f7\u4ec5\u53ef\u8d2d\u4e70".concat(e.times,"\u6b21\uff08\u5982\u540c\u4e2a\u4eba\u8eab\u4efd\u8bc1\u3001\u4f01\u4e1a\u6267\u7167\u8ba4\u8bc1\u3001\u540c\u624b\u673a\u53f7\u7b49\uff09")},couponOverlay:"\u662f\u5426\u53ef\u53e0\u52a0\u4f18\u60e0\u5238",canOverlay:"\u53ef\u53e0\u52a0",cannotOverlay:"\u4e0d\u53ef\u53e0\u52a0"},error:{cannotJoin99Plan:"\u65e0\u6cd5\u53c2\u52a099\u8ba1\u5212",cannotJoin99PlanInstanceOverflowPrefix:"\u6bcf\u4e2a\u7528\u6237\u4ec5\u6709\u4e00\u53f0\u5b9e\u4f8b\u53ef\u4eab\u53d799\u8ba1\u5212\u6743\u76ca\uff0c\u60a8\u540d\u4e0b\u5df2\u6709\u5b9e\u4f8b\u5728\u4eab\u53d7\u6b64\u6743\u76ca\uff0c\u60a8\u53ef\u524d\u5f80\u5f53\u524d\u8d26\u53f7\u6216\u60a8\u540d\u4e0b\u5176\u4ed6\u8d26\u53f7\u7684",cannotJoin99PlanInstanceOverflowSuffix:"\u67e5\u770b\u3002",cannotJoin99PlanInvalidOrderPrefix:"\u6bcf\u4e2a\u7528\u6237\u4ec5\u6709\u4e00\u53f0\u5b9e\u4f8b\u53ef\u4eab\u53d799\u8ba1\u5212\u6743\u76ca\uff0c\u60a8\u5df2\u6709\u672a\u652f\u4ed8\u8ba2\u5355\u4eab\u53d7\u6b64\u6743\u76ca\uff0c",cannotJoin99PlanInvalidCrowdMessage:"\u62b1\u6b49\uff0c\u60a8\u6682\u4e0d\u7b26\u5408\u672c\u6b21\u6d3b\u52a8\u53c2\u4e0e\u4eba\u7fa4\u8981\u6c42",console:"\u63a7\u5236\u53f0",viewOrders:"\u70b9\u51fb\u67e5\u770b"},plan:{plan99:"99\u8ba1\u5212"}}),Un("en-US",{common:{refresh:"Refresh",select:"Please select"},action:{buy:"Buy Now",addToCart:"Add to Cart",activate:"Activate Now"},price:{querying:"Querying",queryingWithEllipsis:"Querying...",clickToGetPrice:"Click to buy now and get the latest price",from:"from",dailyPrice:"Daily Price",catalogue:"Catalogue Price",discounted:"Discounted Price",contractDiscounted:"Contract Discounted Price",catalogueTip:"The list price of the product.",discountedTip:"The actual selling price on the official website, usually with a discount applied to the catalogue price.",contractDiscountedTip:"The price after applying the contract discount, i.e., the discount specified in the sales contract applied to the catalogue price.",price:"Price",prePayOnlyTip:"This price is for prepaid items only. Pay-as-you-go items in the package are charged based on actual usage.",catalogueWithPrice:function(e){return"Catalogue Price (".concat(e.price,")")},cheapRateLabel:function(e){return"Reduced ".concat(e.rate," compared to ").concat(e.time," ago")},cheapRateAlt:"Official Price Reduction"},discount:{learnMore:"Learn More",detail:"Discount Details",activityRules:"Activity Rules",activityDiscount:"Activity Discount",doubleDiscount:"Double Discount",doubleDiscountWithQuota:function(e){return"Double Discount (Available quota: ".concat(e.quota,")")},reduce:"Reduce",save:function(e){return"Save: ".concat(e.amount)},purchaseLimit:"Purchase Limit",unlimited:"Unlimited",purchaseLimitWithCount:function(e){return"".concat(e.count," items")},refund:"Refund",refundable:"Refundable",nonRefundable:"No Refunds for Promotional Items",accountLimit:"Account Restrictions",noLimit:"No Limit",accountLimitWithTimes:function(e){return"Each verified account is limited to ".concat(e.times," purchases (e.g., accounts verified with the same personal ID, business license, phone number, etc.")},couponOverlay:"Coupon Stackability",canOverlay:"Stackable",cannotOverlay:"Non-stackable"},error:{cannotJoin99Plan:"Cannot Join 99 Plan",cannotJoin99PlanInstanceOverflowPrefix:"Each user can only have one instance enjoying the 99 Plan benefits. You already have an instance enjoying this benefit. You can check in the",cannotJoin99PlanInstanceOverflowSuffix:"of the current account or other accounts under your name.",cannotJoin99PlanInvalidOrderPrefix:"Each user can only have one instance enjoying the 99 Plan benefits. You have an unpaid order enjoying this benefit.",cannotJoin99PlanInvalidCrowdMessage:"Sorry, you do not meet the participant requirements for this activity.",console:"Console",viewOrders:"Click to view"},plan:{plan99:"99 Plan"}}),Un("zh-TW",{common:{refresh:"\u91cd\u65b0\u6574\u7406",select:"\u8acb\u9078\u64c7"},action:{buy:"\u7acb\u5373\u8cfc\u8cb7",addToCart:"\u52a0\u5165\u8cfc\u7269\u8eca",activate:"\u7acb\u5373\u958b\u901a"},price:{querying:"\u8a62\u50f9\u4e2d",queryingWithEllipsis:"\u8a62\u50f9\u4e2d...",clickToGetPrice:"\u9ede\u64ca\u7acb\u5373\u8cfc\u8cb7\uff0c\u7372\u53d6\u6700\u65b0\u50f9\u683c",from:"\u8d77",dailyPrice:"\u65e5\u5e38\u50f9",catalogue:"\u5b98\u7db2\u76ee\u9304\u50f9",discounted:"\u5b98\u7db2\u6298\u6263\u50f9",contractDiscounted:"\u4f01\u696d\u5408\u7d04\u6298\u6263\u50f9",catalogueTip:"\u5546\u54c1\u7684\u5217\u8868\u50f9\u683c\u3002",discountedTip:"\u5546\u54c1\u5be6\u969b\u5728\u5b98\u7db2\u552e\u8ce3\u7684\u50f9\u683c\uff0c\u901a\u5e38\u6703\u5728\u76ee\u9304\u50f9\u57fa\u790e\u4e0a\u758a\u52a0\u4e00\u5b9a\u6298\u6263\u3002",contractDiscountedTip:"\u6839\u64da\u5408\u7d04\u6298\u6263\u512a\u60e0\u5f8c\u7684\u50f9\u683c\uff0c\u5373\u5728\u76ee\u9304\u50f9\u57fa\u790e\u4e0a\u758a\u52a0\u92b7\u552e\u5408\u7d04\u4e2d\u6240\u7d04\u5b9a\u7684\u6298\u6263\u3002",price:"\u50f9\u683c",prePayOnlyTip:"\u6b64\u50f9\u683c\u50c5\u70ba\u9810\u4ed8\u8cbb\u50f9\u683c\uff0c\u5957\u9910\u5167\u7684\u6309\u91cf\u8a08\u8cbb\u9805\u6309\u7167\u5be6\u969b\u7528\u91cf\u6536\u8cbb",catalogueWithPrice:function(e){return"\u5b98\u7db2\u76ee\u9304\u50f9\uff08".concat(e.price,"\uff09")},cheapRateLabel:function(e){return"\u8f03".concat(e.time,"\u524d\u964d").concat(e.rate)},cheapRateAlt:"\u5b98\u7db2\u964d\u50f9"},discount:{learnMore:"\u4e86\u89e3\u512a\u60e0",detail:"\u512a\u60e0\u660e\u7d30",activityRules:"\u6d3b\u52d5\u898f\u5247",activityDiscount:"\u6d3b\u52d5\u512a\u60e0",doubleDiscount:"\u6298\u4e0a\u6298\u512a\u60e0",doubleDiscountWithQuota:function(e){return"\u6298\u4e0a\u6298\u512a\u60e0\uff08\u53ef\u7528\u984d\u5ea6".concat(e.quota,"\uff09")},reduce:"\u6e1b",save:function(e){return"\u7bc0\u7701:".concat(e.amount)},purchaseLimit:"\u9650\u8cfc",unlimited:"\u4e0d\u9650\u8cfc",purchaseLimitWithCount:function(e){return"".concat(e.count,"\u4ef6")},refund:"\u9000\u6b3e",refundable:"\u53ef\u9000\u6b3e",nonRefundable:"\u6d3b\u52d5\u5546\u54c1\u7981\u6b62\u9000\u6b3e",accountLimit:"\u5e33\u865f\u9650\u5236",noLimit:"\u7121\u9650\u5236",accountLimitWithTimes:function(e){return"\u540c\u8a8d\u8b49\u5e33\u865f\u50c5\u53ef\u8cfc\u8cb7".concat(e.times,"\u6b21\uff08\u5982\u540c\u500b\u4eba\u8eab\u4efd\u8b49\u3001\u4f01\u696d\u57f7\u7167\u8a8d\u8b49\u3001\u540c\u624b\u6a5f\u865f\u7b49\uff09")},couponOverlay:"\u662f\u5426\u53ef\u758a\u52a0\u512a\u60e0\u5238",canOverlay:"\u53ef\u758a\u52a0",cannotOverlay:"\u4e0d\u53ef\u758a\u52a0"},error:{cannotJoin99Plan:"\u7121\u6cd5\u53c3\u52a099\u8a08\u5283",cannotJoin99PlanInstanceOverflowPrefix:"\u6bcf\u500b\u7528\u6236\u50c5\u6709\u4e00\u53f0\u5be6\u4f8b\u53ef\u4eab\u53d799\u8a08\u5283\u6b0a\u76ca\uff0c\u60a8\u540d\u4e0b\u5df2\u6709\u5be6\u4f8b\u5728\u4eab\u53d7\u6b64\u6b0a\u76ca\uff0c\u60a8\u53ef\u524d\u5f80\u7576\u524d\u5e33\u865f\u6216\u60a8\u540d\u4e0b\u5176\u4ed6\u5e33\u865f\u7684",cannotJoin99PlanInstanceOverflowSuffix:"\u67e5\u770b\u3002",cannotJoin99PlanInvalidOrderPrefix:"\u6bcf\u500b\u7528\u6236\u50c5\u6709\u4e00\u53f0\u5be6\u4f8b\u53ef\u4eab\u53d799\u8a08\u5283\u6b0a\u76ca\uff0c\u60a8\u5df2\u6709\u672a\u652f\u4ed8\u8a02\u55ae\u4eab\u53d7\u6b64\u6b0a\u76ca\uff0c",cannotJoin99PlanInvalidCrowdMessage:"\u62b1\u6b49\uff0c\u60a8\u66ab\u4e0d\u7b26\u5408\u672c\u6b21\u6d3b\u52d5\u53c3\u8207\u4eba\u7fa4\u8981\u6c42",console:"\u63a7\u5236\u53f0",viewOrders:"\u9ede\u64ca\u67e5\u770b"},plan:{plan99:"99\u8a08\u5283"}}),Un("de-DE",{common:{refresh:"Aktualisieren",select:"Bitte ausw\xe4hlen"},action:{buy:"Jetzt kaufen",addToCart:"In den Warenkorb",activate:"Jetzt aktivieren"},price:{querying:"Preisanfrage l\xe4uft",queryingWithEllipsis:"Preisanfrage l\xe4uft...",clickToGetPrice:"Klicken Sie auf Jetzt kaufen, um den neuesten Preis zu erhalten",from:"ab",dailyPrice:"Tagespreis",catalogue:"Katalogpreis",discounted:"Rabattpreis",contractDiscounted:"Vertragsrabattpreis",catalogueTip:"Der Listenpreis des Produkts.",discountedTip:"Der tats\xe4chliche Verkaufspreis auf der offiziellen Website, normalerweise mit einem Rabatt auf den Katalogpreis.",contractDiscountedTip:"Der Preis nach Anwendung des Vertragsrabatts, d. h. der im Verkaufsvertrag vereinbarte Rabatt auf den Katalogpreis.",price:"Preis",prePayOnlyTip:"Dieser Preis gilt nur f\xfcr Vorauszahlungen. Pay-as-you-go-Artikel im Paket werden basierend auf der tats\xe4chlichen Nutzung berechnet.",catalogueWithPrice:function(e){return"Katalogpreis (".concat(e.price,")")},cheapRateLabel:function(e){return"Geringer ".concat(e.rate," im Vergleich zu vor ").concat(e.time)},cheapRateAlt:"Offizielle Preissenkung"},discount:{learnMore:"Mehr erfahren",detail:"Rabattdetails",activityRules:"Aktivit\xe4tsregeln",activityDiscount:"Aktivit\xe4tsrabatt",doubleDiscount:"Doppelrabatt",doubleDiscountWithQuota:function(e){return"Doppelrabatt (Verf\xfcgbares Kontingent: ".concat(e.quota,")")},reduce:"Reduzieren",save:function(e){return"Sparen: ".concat(e.amount)},purchaseLimit:"Kaufbeschr\xe4nkung",unlimited:"Unbegrenzt",purchaseLimitWithCount:function(e){return"".concat(e.count," Artikel")},refund:"R\xfcckerstattung",refundable:"R\xfcckerstattungsf\xe4hig",nonRefundable:"Aktivit\xe4tsartikel sind nicht r\xfcckerstattungsf\xe4hig",accountLimit:"Kontolimit",noLimit:"Kein Limit",accountLimitWithTimes:function(e){return"Dasselbe authentifizierte Konto kann nur ".concat(e.times," Mal kaufen (z. B. derselbe Personalausweis, Gesch\xe4ftslizenz, Telefonnummer usw.)")},couponOverlay:"K\xf6nnen Gutscheine gestapelt werden",canOverlay:"Kann gestapelt werden",cannotOverlay:"Kann nicht gestapelt werden"},error:{cannotJoin99Plan:"Kann nicht am 99-Plan teilnehmen",cannotJoin99PlanInstanceOverflowPrefix:"Jeder Benutzer kann nur eine Instanz mit 99-Plan-Vorteilen haben. Sie haben bereits eine Instanz mit diesem Vorteil. Sie k\xf6nnen in der",cannotJoin99PlanInstanceOverflowSuffix:"des aktuellen Kontos oder anderer Konten unter Ihrem Namen nachsehen.",cannotJoin99PlanInvalidOrderPrefix:"Jeder Benutzer kann nur eine Instanz mit 99-Plan-Vorteilen haben. Sie haben eine unbezahlte Bestellung mit diesem Vorteil.",cannotJoin99PlanInvalidCrowdMessage:"Entschuldigung, Sie erf\xfcllen die Teilnahmevoraussetzungen f\xfcr diese Aktivit\xe4t nicht.",console:"Konsole",viewOrders:"Zum Anzeigen klicken"},plan:{plan99:"99-Plan"}}),Un("ja-JP",{common:{refresh:"\u66f4\u65b0",select:"\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"},action:{buy:"\u4eca\u3059\u3050\u8cfc\u5165",addToCart:"\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0",activate:"\u4eca\u3059\u3050\u6709\u52b9\u5316"},price:{querying:"\u4fa1\u683c\u7167\u4f1a\u4e2d",queryingWithEllipsis:"\u4fa1\u683c\u7167\u4f1a\u4e2d...",clickToGetPrice:"\u4eca\u3059\u3050\u8cfc\u5165\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u6700\u65b0\u4fa1\u683c\u3092\u53d6\u5f97",from:"\u304b\u3089",dailyPrice:"\u65e5\u5e38\u4fa1\u683c",catalogue:"\u30ab\u30bf\u30ed\u30b0\u4fa1\u683c",discounted:"\u5272\u5f15\u4fa1\u683c",contractDiscounted:"\u5951\u7d04\u5272\u5f15\u4fa1\u683c",catalogueTip:"\u5546\u54c1\u306e\u30ea\u30b9\u30c8\u4fa1\u683c\u3002",discountedTip:"\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u306e\u5b9f\u969b\u306e\u8ca9\u58f2\u4fa1\u683c\u3002\u901a\u5e38\u3001\u30ab\u30bf\u30ed\u30b0\u4fa1\u683c\u306b\u4e00\u5b9a\u306e\u5272\u5f15\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002",contractDiscountedTip:"\u5951\u7d04\u5272\u5f15\u3092\u9069\u7528\u3057\u305f\u5f8c\u306e\u4fa1\u683c\u3002\u3064\u307e\u308a\u3001\u30ab\u30bf\u30ed\u30b0\u4fa1\u683c\u306b\u8ca9\u58f2\u5951\u7d04\u3067\u5408\u610f\u3055\u308c\u305f\u5272\u5f15\u3092\u9069\u7528\u3057\u305f\u4fa1\u683c\u3002",price:"\u4fa1\u683c",prePayOnlyTip:"\u3053\u306e\u4fa1\u683c\u306f\u524d\u6255\u3044\u4fa1\u683c\u306e\u307f\u3067\u3059\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u5185\u306e\u5f93\u91cf\u8ab2\u91d1\u9805\u76ee\u306f\u5b9f\u969b\u306e\u4f7f\u7528\u91cf\u306b\u57fa\u3065\u3044\u3066\u8ab2\u91d1\u3055\u308c\u307e\u3059",catalogueWithPrice:function(e){return"\u30ab\u30bf\u30ed\u30b0\u4fa1\u683c\uff08".concat(e.price,"\uff09")},cheapRateLabel:function(e){return"".concat(e.time,"\u524d\u3068\u6bd4\u8f03\u3057\u3066").concat(e.rate,"\u5024\u4e0b\u3052")},cheapRateAlt:"\u516c\u5f0f\u4fa1\u683c\u5024\u4e0b\u3052"},discount:{learnMore:"\u8a73\u7d30\u3092\u898b\u308b",detail:"\u5272\u5f15\u8a73\u7d30",activityRules:"\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u30eb\u30fc\u30eb",activityDiscount:"\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u5272\u5f15",doubleDiscount:"\u4e8c\u91cd\u5272\u5f15",doubleDiscountWithQuota:function(e){return"\u4e8c\u91cd\u5272\u5f15\uff08\u5229\u7528\u53ef\u80fd\u306a\u30af\u30a9\u30fc\u30bf\uff1a".concat(e.quota,"\uff09")},reduce:"\u6e1b",save:function(e){return"\u7bc0\u7d04: ".concat(e.amount)},purchaseLimit:"\u8cfc\u5165\u5236\u9650",unlimited:"\u7121\u5236\u9650",purchaseLimitWithCount:function(e){return"".concat(e.count,"\u70b9")},refund:"\u8fd4\u91d1",refundable:"\u8fd4\u91d1\u53ef\u80fd",nonRefundable:"\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u5546\u54c1\u306f\u8fd4\u91d1\u4e0d\u53ef",accountLimit:"\u30a2\u30ab\u30a6\u30f3\u30c8\u5236\u9650",noLimit:"\u5236\u9650\u306a\u3057",accountLimitWithTimes:function(e){return"\u540c\u3058\u8a8d\u8a3c\u30a2\u30ab\u30a6\u30f3\u30c8\u306f".concat(e.times,"\u56de\u306e\u307f\u8cfc\u5165\u53ef\u80fd\uff08\u540c\u3058\u500b\u4ebaID\u3001\u4f01\u696d\u30e9\u30a4\u30bb\u30f3\u30b9\u8a8d\u8a3c\u3001\u540c\u3058\u96fb\u8a71\u756a\u53f7\u306a\u3069\uff09")},couponOverlay:"\u30af\u30fc\u30dd\u30f3\u3092\u91cd\u306d\u3066\u4f7f\u7528\u3067\u304d\u308b\u304b",canOverlay:"\u91cd\u306d\u3066\u4f7f\u7528\u53ef\u80fd",cannotOverlay:"\u91cd\u306d\u3066\u4f7f\u7528\u4e0d\u53ef"},error:{cannotJoin99Plan:"99\u30d7\u30e9\u30f3\u306b\u53c2\u52a0\u3067\u304d\u307e\u305b\u3093",cannotJoin99PlanInstanceOverflowPrefix:"\u5404\u30e6\u30fc\u30b6\u30fc\u306f99\u30d7\u30e9\u30f3\u306e\u7279\u5178\u3092\u53d7\u3051\u3089\u308c\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30921\u3064\u3060\u3051\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3059\u3067\u306b\u3053\u306e\u7279\u5178\u3092\u53d7\u3051\u3066\u3044\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u3042\u308a\u307e\u3059\u3002\u73fe\u5728\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u307e\u305f\u306f\u304a\u540d\u524d\u306e\u4ed6\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e",cannotJoin99PlanInstanceOverflowSuffix:"\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002",cannotJoin99PlanInvalidOrderPrefix:"\u5404\u30e6\u30fc\u30b6\u30fc\u306f99\u30d7\u30e9\u30f3\u306e\u7279\u5178\u3092\u53d7\u3051\u3089\u308c\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30921\u3064\u3060\u3051\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u7279\u5178\u3092\u53d7\u3051\u3066\u3044\u308b\u672a\u6255\u3044\u306e\u6ce8\u6587\u304c\u3042\u308a\u307e\u3059\u3002",cannotJoin99PlanInvalidCrowdMessage:"\u7533\u3057\u8a33\u3054\u3056\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u306e\u53c2\u52a0\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u307e\u305b\u3093",console:"\u30b3\u30f3\u30bd\u30fc\u30eb",viewOrders:"\u30af\u30ea\u30c3\u30af\u3057\u3066\u8868\u793a"},plan:{plan99:"99\u30d7\u30e9\u30f3"}}),Un("ko-KR",{common:{refresh:"\uc0c8\ub85c\uace0\uce68",select:"\uc120\ud0dd\ud574 \uc8fc\uc138\uc694"},action:{buy:"\uc9c0\uae08 \uad6c\ub9e4",addToCart:"\uc7a5\ubc14\uad6c\ub2c8\uc5d0 \ucd94\uac00",activate:"\uc9c0\uae08 \ud65c\uc131\ud654"},price:{querying:"\uac00\uaca9 \uc870\ud68c \uc911",queryingWithEllipsis:"\uac00\uaca9 \uc870\ud68c \uc911...",clickToGetPrice:"\uc9c0\uae08 \uad6c\ub9e4\ub97c \ud074\ub9ad\ud558\uc5ec \ucd5c\uc2e0 \uac00\uaca9 \ud655\uc778",from:"\ubd80\ud130",dailyPrice:"\uc77c\uc0c1 \uac00\uaca9",catalogue:"\uce74\ud0c8\ub85c\uadf8 \uac00\uaca9",discounted:"\ud560\uc778 \uac00\uaca9",contractDiscounted:"\uacc4\uc57d \ud560\uc778 \uac00\uaca9",catalogueTip:"\uc81c\ud488\uc758 \ubaa9\ub85d \uac00\uaca9\uc785\ub2c8\ub2e4.",discountedTip:"\uacf5\uc2dd \uc6f9\uc0ac\uc774\ud2b8\uc5d0\uc11c \uc2e4\uc81c \ud310\ub9e4\ub418\ub294 \uac00\uaca9\uc73c\ub85c, \uc77c\ubc18\uc801\uc73c\ub85c \uce74\ud0c8\ub85c\uadf8 \uac00\uaca9\uc5d0 \uc77c\uc815 \ud560\uc778\uc774 \uc801\uc6a9\ub429\ub2c8\ub2e4.",contractDiscountedTip:"\uacc4\uc57d \ud560\uc778\uc744 \uc801\uc6a9\ud55c \ud6c4\uc758 \uac00\uaca9\uc73c\ub85c, \uc989 \uce74\ud0c8\ub85c\uadf8 \uac00\uaca9\uc5d0 \ud310\ub9e4 \uacc4\uc57d\uc5d0\uc11c \uc57d\uc815\ud55c \ud560\uc778\uc744 \uc801\uc6a9\ud55c \uac00\uaca9\uc785\ub2c8\ub2e4.",price:"\uac00\uaca9",prePayOnlyTip:"\uc774 \uac00\uaca9\uc740 \uc120\ubd88 \uac00\uaca9\ub9cc \ud574\ub2f9\ud558\uba70, \ud328\ud0a4\uc9c0 \ub0b4 \uc885\ub7c9\uc81c \ud56d\ubaa9\uc740 \uc2e4\uc81c \uc0ac\uc6a9\ub7c9\uc5d0 \ub530\ub77c \uc694\uae08\uc774 \ubd80\uacfc\ub429\ub2c8\ub2e4",catalogueWithPrice:function(e){return"\uce74\ud0c8\ub85c\uadf8 \uac00\uaca9 (".concat(e.price,")")},cheapRateLabel:function(e){return"".concat(e.time," \uc804 \ub300\ube44 ").concat(e.rate," \ud558\ub77d")},cheapRateAlt:"\uacf5\uc2dd \uac00\uaca9 \ud558\ub77d"},discount:{learnMore:"\uc790\uc138\ud788 \ubcf4\uae30",detail:"\ud560\uc778 \uc0c1\uc138",activityRules:"\uc774\ubca4\ud2b8 \uaddc\uce59",activityDiscount:"\uc774\ubca4\ud2b8 \ud560\uc778",doubleDiscount:"\uc774\uc911 \ud560\uc778",doubleDiscountWithQuota:function(e){return"\uc774\uc911 \ud560\uc778 (\uc0ac\uc6a9 \uac00\ub2a5\ud55c \ud560\ub2f9\ub7c9: ".concat(e.quota,")")},reduce:"\uac10\uc18c",save:function(e){return"\uc808\uc57d: ".concat(e.amount)},purchaseLimit:"\uad6c\ub9e4 \uc81c\ud55c",unlimited:"\uc81c\ud55c \uc5c6\uc74c",purchaseLimitWithCount:function(e){return"".concat(e.count,"\uac1c")},refund:"\ud658\ubd88",refundable:"\ud658\ubd88 \uac00\ub2a5",nonRefundable:"\uc774\ubca4\ud2b8 \uc0c1\ud488\uc740 \ud658\ubd88 \ubd88\uac00",accountLimit:"\uacc4\uc815 \uc81c\ud55c",noLimit:"\uc81c\ud55c \uc5c6\uc74c",accountLimitWithTimes:function(e){return"\ub3d9\uc77c\ud55c \uc778\uc99d \uacc4\uc815\uc740 ".concat(e.times,"\ud68c\ub9cc \uad6c\ub9e4 \uac00\ub2a5\ud569\ub2c8\ub2e4 (\ub3d9\uc77c\ud55c \uac1c\uc778 \uc2e0\ubd84\uc99d, \uae30\uc5c5 \ub77c\uc774\uc120\uc2a4 \uc778\uc99d, \ub3d9\uc77c\ud55c \uc804\ud654\ubc88\ud638 \ub4f1)")},couponOverlay:"\ucfe0\ud3f0 \uc911\ubcf5 \uc0ac\uc6a9 \uac00\ub2a5 \uc5ec\ubd80",canOverlay:"\uc911\ubcf5 \uc0ac\uc6a9 \uac00\ub2a5",cannotOverlay:"\uc911\ubcf5 \uc0ac\uc6a9 \ubd88\uac00"},error:{cannotJoin99Plan:"99 \ud50c\ub79c\uc5d0 \ucc38\uc5ec\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",cannotJoin99PlanInstanceOverflowPrefix:"\uac01 \uc0ac\uc6a9\uc790\ub294 99 \ud50c\ub79c \ud61c\ud0dd\uc744 \ubc1b\uc744 \uc218 \uc788\ub294 \uc778\uc2a4\ud134\uc2a4\ub97c \ud558\ub098\ub9cc \uac00\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubbf8 \uc774 \ud61c\ud0dd\uc744 \ubc1b\uace0 \uc788\ub294 \uc778\uc2a4\ud134\uc2a4\uac00 \uc788\uc2b5\ub2c8\ub2e4. \ud604\uc7ac \uacc4\uc815 \ub610\ub294 \uadc0\ud558 \uc774\ub984\uc758 \ub2e4\ub978 \uacc4\uc815\uc758",cannotJoin99PlanInstanceOverflowSuffix:"\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.",cannotJoin99PlanInvalidOrderPrefix:"\uac01 \uc0ac\uc6a9\uc790\ub294 99 \ud50c\ub79c \ud61c\ud0dd\uc744 \ubc1b\uc744 \uc218 \uc788\ub294 \uc778\uc2a4\ud134\uc2a4\ub97c \ud558\ub098\ub9cc \uac00\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ud61c\ud0dd\uc744 \ubc1b\uace0 \uc788\ub294 \ubbf8\uacb0\uc81c \uc8fc\ubb38\uc774 \uc788\uc2b5\ub2c8\ub2e4.",cannotJoin99PlanInvalidCrowdMessage:"\uc8c4\uc1a1\ud569\ub2c8\ub2e4. \uc774\ubc88 \uc774\ubca4\ud2b8 \ucc38\uc5ec \ub300\uc0c1 \uc694\uac74\uc744 \ucda9\uc871\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",console:"\ucf58\uc194",viewOrders:"\ud074\ub9ad\ud558\uc5ec \ubcf4\uae30"},plan:{plan99:"99 \ud50c\ub79c"}}),Un("fr-FR",{common:{refresh:"Actualiser",select:"Veuillez s\xe9lectionner"},action:{buy:"Acheter maintenant",addToCart:"Ajouter au panier",activate:"Activer maintenant"},price:{querying:"Demande de prix en cours",queryingWithEllipsis:"Demande de prix en cours...",clickToGetPrice:"Cliquez sur Acheter maintenant pour obtenir le dernier prix",from:"\xe0 partir de",dailyPrice:"Prix quotidien",catalogue:"Prix catalogue",discounted:"Prix r\xe9duit",contractDiscounted:"Prix avec remise contractuelle",catalogueTip:"Le prix catalogue du produit.",discountedTip:"Le prix r\xe9el de vente sur le site officiel, g\xe9n\xe9ralement avec une remise appliqu\xe9e au prix catalogue.",contractDiscountedTip:"Le prix apr\xe8s application de la remise contractuelle, c'est-\xe0-dire la remise convenue dans le contrat de vente appliqu\xe9e au prix catalogue.",price:"Prix",prePayOnlyTip:"Ce prix s'applique uniquement aux paiements anticip\xe9s. Les articles \xe0 la demande dans le package sont factur\xe9s en fonction de l'utilisation r\xe9elle.",catalogueWithPrice:function(e){return"Prix catalogue (".concat(e.price,")")},cheapRateLabel:function(e){return"R\xe9duit de ".concat(e.rate," par rapport \xe0 il y a ").concat(e.time)},cheapRateAlt:"R\xe9duction de prix officielle"},discount:{learnMore:"En savoir plus",detail:"D\xe9tails de la remise",activityRules:"R\xe8gles de l'activit\xe9",activityDiscount:"Remise d'activit\xe9",doubleDiscount:"Double remise",doubleDiscountWithQuota:function(e){return"Double remise (Quota disponible: ".concat(e.quota,")")},reduce:"R\xe9duire",save:function(e){return"\xc9conomiser: ".concat(e.amount)},purchaseLimit:"Limite d'achat",unlimited:"Illimit\xe9",purchaseLimitWithCount:function(e){return"".concat(e.count," articles")},refund:"Remboursement",refundable:"Remboursable",nonRefundable:"Les articles d'activit\xe9 ne sont pas remboursables",accountLimit:"Limite de compte",noLimit:"Aucune limite",accountLimitWithTimes:function(e){return"Le m\xeame compte authentifi\xe9 ne peut acheter que ".concat(e.times," fois (par exemple, m\xeame carte d'identit\xe9, licence d'entreprise, m\xeame num\xe9ro de t\xe9l\xe9phone, etc.)")},couponOverlay:"Les coupons peuvent-ils \xeatre cumul\xe9s",canOverlay:"Peut \xeatre cumul\xe9",cannotOverlay:"Ne peut pas \xeatre cumul\xe9"},error:{cannotJoin99Plan:"Impossible de rejoindre le plan 99",cannotJoin99PlanInstanceOverflowPrefix:"Chaque utilisateur ne peut avoir qu'une seule instance b\xe9n\xe9ficiant des avantages du plan 99. Vous avez d\xe9j\xe0 une instance b\xe9n\xe9ficiant de cet avantage. Vous pouvez v\xe9rifier dans la",cannotJoin99PlanInstanceOverflowSuffix:"du compte actuel ou d'autres comptes sous votre nom.",cannotJoin99PlanInvalidOrderPrefix:"Chaque utilisateur ne peut avoir qu'une seule instance b\xe9n\xe9ficiant des avantages du plan 99. Vous avez une commande impay\xe9e b\xe9n\xe9ficiant de cet avantage.",cannotJoin99PlanInvalidCrowdMessage:"D\xe9sol\xe9, vous ne r\xe9pondez pas aux exigences de participation \xe0 cette activit\xe9.",console:"Console",viewOrders:"Cliquer pour voir"},plan:{plan99:"Plan 99"}}),Un("ru-RU",{common:{refresh:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",select:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435"},action:{buy:"\u041a\u0443\u043f\u0438\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441",addToCart:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443",activate:"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441"},price:{querying:"\u0417\u0430\u043f\u0440\u043e\u0441 \u0446\u0435\u043d\u044b",queryingWithEllipsis:"\u0417\u0430\u043f\u0440\u043e\u0441 \u0446\u0435\u043d\u044b...",clickToGetPrice:'\u041d\u0430\u0436\u043c\u0438\u0442\u0435 "\u041a\u0443\u043f\u0438\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441", \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0446\u0435\u043d\u0443',from:"\u043e\u0442",dailyPrice:"\u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0446\u0435\u043d\u0430",catalogue:"\u0426\u0435\u043d\u0430 \u043f\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443",discounted:"\u0426\u0435\u043d\u0430 \u0441\u043e \u0441\u043a\u0438\u0434\u043a\u043e\u0439",contractDiscounted:"\u0426\u0435\u043d\u0430 \u0441\u043e \u0441\u043a\u0438\u0434\u043a\u043e\u0439 \u043f\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0443",catalogueTip:"\u0426\u0435\u043d\u0430 \u0442\u043e\u0432\u0430\u0440\u0430 \u043f\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443.",discountedTip:"\u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0446\u0435\u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0438 \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435, \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e \u0441\u043a\u0438\u0434\u043a\u043e\u0439 \u043e\u0442 \u0446\u0435\u043d\u044b \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430.",contractDiscountedTip:"\u0426\u0435\u043d\u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043a\u0438\u0434\u043a\u0438 \u043f\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0443, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043a\u0438\u0434\u043a\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0430\u044f \u0432 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0435 \u043a\u0443\u043f\u043b\u0438-\u043f\u0440\u043e\u0434\u0430\u0436\u0438, \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u043d\u0430\u044f \u043a \u0446\u0435\u043d\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430.",price:"\u0426\u0435\u043d\u0430",prePayOnlyTip:"\u042d\u0442\u0430 \u0446\u0435\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u043f\u0440\u0435\u0434\u043e\u043f\u043b\u0430\u0442\u0435. \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441 \u043e\u043f\u043b\u0430\u0442\u043e\u0439 \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.",catalogueWithPrice:function(e){return"\u0426\u0435\u043d\u0430 \u043f\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 (".concat(e.price,")")},cheapRateLabel:function(e){return"\u0421\u043d\u0438\u0436\u0435\u043d\u043e \u043d\u0430 ".concat(e.rate," \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 ").concat(e.time," \u043d\u0430\u0437\u0430\u0434")},cheapRateAlt:"\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b"},discount:{learnMore:"\u0423\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435",detail:"\u0414\u0435\u0442\u0430\u043b\u0438 \u0441\u043a\u0438\u0434\u043a\u0438",activityRules:"\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0430\u043a\u0446\u0438\u0438",activityDiscount:"\u0421\u043a\u0438\u0434\u043a\u0430 \u043f\u043e \u0430\u043a\u0446\u0438\u0438",doubleDiscount:"\u0414\u0432\u043e\u0439\u043d\u0430\u044f \u0441\u043a\u0438\u0434\u043a\u0430",doubleDiscountWithQuota:function(e){return"\u0414\u0432\u043e\u0439\u043d\u0430\u044f \u0441\u043a\u0438\u0434\u043a\u0430 (\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u043a\u0432\u043e\u0442\u0430: ".concat(e.quota,")")},reduce:"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c",save:function(e){return"\u0421\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c: ".concat(e.amount)},purchaseLimit:"\u041b\u0438\u043c\u0438\u0442 \u043f\u043e\u043a\u0443\u043f\u043a\u0438",unlimited:"\u0411\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439",purchaseLimitWithCount:function(e){return"".concat(e.count," \u0448\u0442.")},refund:"\u0412\u043e\u0437\u0432\u0440\u0430\u0442",refundable:"\u0412\u043e\u0437\u0432\u0440\u0430\u0442\u043d\u044b\u0439",nonRefundable:"\u0422\u043e\u0432\u0430\u0440\u044b \u043f\u043e \u0430\u043a\u0446\u0438\u0438 \u043d\u0435 \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0443",accountLimit:"\u041b\u0438\u043c\u0438\u0442 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430",noLimit:"\u0411\u0435\u0437 \u043b\u0438\u043c\u0438\u0442\u0430",accountLimitWithTimes:function(e){return"\u041e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u043a\u0443\u043f\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e ".concat(e.times," \u0440\u0430\u0437 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u043e\u0442 \u0436\u0435 \u043f\u0430\u0441\u043f\u043e\u0440\u0442, \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u0442\u043e\u0442 \u0436\u0435 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438 \u0442.\u0434.)")},couponOverlay:"\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0443\u043f\u043e\u043d\u044b",canOverlay:"\u041c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c",cannotOverlay:"\u041d\u0435\u043b\u044c\u0437\u044f \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c"},error:{cannotJoin99Plan:"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c\u0441\u044f \u043a \u043f\u043b\u0430\u043d\u0443 99",cannotJoin99PlanInstanceOverflowPrefix:"\u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u043c\u0438 \u043f\u043b\u0430\u043d\u0430 99. \u0423 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441 \u044d\u0442\u0438\u043c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u043c. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432",cannotJoin99PlanInstanceOverflowSuffix:"\u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432 \u043f\u043e\u0434 \u0432\u0430\u0448\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c.",cannotJoin99PlanInvalidOrderPrefix:"\u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u043c\u0438 \u043f\u043b\u0430\u043d\u0430 99. \u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043a\u0430\u0437 \u0441 \u044d\u0442\u0438\u043c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u043c.",cannotJoin99PlanInvalidCrowdMessage:"\u0418\u0437\u0432\u0438\u043d\u0438\u0442\u0435, \u0432\u044b \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0434\u043b\u044f \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u0432 \u044d\u0442\u043e\u0439 \u0430\u043a\u0446\u0438\u0438.",console:"\u041a\u043e\u043d\u0441\u043e\u043b\u044c",viewOrders:"\u041d\u0430\u0436\u043c\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c"},plan:{plan99:"\u041f\u043b\u0430\u043d 99"}}),Un("es-ES",{common:{refresh:"Actualizar",select:"Por favor seleccione"},action:{buy:"Comprar ahora",addToCart:"A\xf1adir al carrito",activate:"Activar ahora"},price:{querying:"Consultando precio",queryingWithEllipsis:"Consultando precio...",clickToGetPrice:"Haga clic en Comprar ahora para obtener el \xfaltimo precio",from:"desde",dailyPrice:"Precio diario",catalogue:"Precio de cat\xe1logo",discounted:"Precio con descuento",contractDiscounted:"Precio con descuento por contrato",catalogueTip:"El precio de lista del producto.",discountedTip:"El precio real de venta en el sitio web oficial, generalmente con un descuento aplicado al precio de cat\xe1logo.",contractDiscountedTip:"El precio despu\xe9s de aplicar el descuento por contrato, es decir, el descuento especificado en el contrato de venta aplicado al precio de cat\xe1logo.",price:"Precio",prePayOnlyTip:"Este precio es solo para prepago. Los elementos de pago por uso en el paquete se cobran seg\xfan el uso real.",catalogueWithPrice:function(e){return"Precio de cat\xe1logo (".concat(e.price,")")},cheapRateLabel:function(e){return"Reducido ".concat(e.rate," en comparaci\xf3n con hace ").concat(e.time)},cheapRateAlt:"Reducci\xf3n de precio oficial"},discount:{learnMore:"Saber m\xe1s",detail:"Detalles del descuento",activityRules:"Reglas de la actividad",activityDiscount:"Descuento de actividad",doubleDiscount:"Doble descuento",doubleDiscountWithQuota:function(e){return"Doble descuento (Cuota disponible: ".concat(e.quota,")")},reduce:"Reducir",save:function(e){return"Ahorrar: ".concat(e.amount)},purchaseLimit:"L\xedmite de compra",unlimited:"Ilimitado",purchaseLimitWithCount:function(e){return"".concat(e.count," art\xedculos")},refund:"Reembolso",refundable:"Reembolsable",nonRefundable:"Los art\xedculos de actividad no son reembolsables",accountLimit:"L\xedmite de cuenta",noLimit:"Sin l\xedmite",accountLimitWithTimes:function(e){return"La misma cuenta autenticada solo puede comprar ".concat(e.times," veces (por ejemplo, misma tarjeta de identidad, licencia comercial, mismo n\xfamero de tel\xe9fono, etc.)")},couponOverlay:"\xbfSe pueden combinar cupones",canOverlay:"Se puede combinar",cannotOverlay:"No se puede combinar"},error:{cannotJoin99Plan:"No se puede unir al plan 99",cannotJoin99PlanInstanceOverflowPrefix:"Cada usuario solo puede tener una instancia disfrutando de los beneficios del plan 99. Ya tiene una instancia disfrutando de este beneficio. Puede verificar en la",cannotJoin99PlanInstanceOverflowSuffix:"de la cuenta actual u otras cuentas bajo su nombre.",cannotJoin99PlanInvalidOrderPrefix:"Cada usuario solo puede tener una instancia disfrutando de los beneficios del plan 99. Tiene un pedido sin pagar disfrutando de este beneficio.",cannotJoin99PlanInvalidCrowdMessage:"Lo sentimos, no cumple con los requisitos de participaci\xf3n para esta actividad.",console:"Consola",viewOrders:"Haga clic para ver"},plan:{plan99:"Plan 99"}}),Un("id-ID",{common:{refresh:"Muat ulang",select:"Silakan pilih"},action:{buy:"Beli sekarang",addToCart:"Tambahkan ke keranjang",activate:"Aktifkan sekarang"},price:{querying:"Meminta harga",queryingWithEllipsis:"Meminta harga...",clickToGetPrice:"Klik Beli sekarang untuk mendapatkan harga terbaru",from:"mulai dari",dailyPrice:"Harga harian",catalogue:"Harga katalog",discounted:"Harga diskon",contractDiscounted:"Harga diskon kontrak",catalogueTip:"Harga daftar produk.",discountedTip:"Harga jual aktual di situs web resmi, biasanya dengan diskon yang diterapkan pada harga katalog.",contractDiscountedTip:"Harga setelah menerapkan diskon kontrak, yaitu diskon yang ditentukan dalam kontrak penjualan yang diterapkan pada harga katalog.",price:"Harga",prePayOnlyTip:"Harga ini hanya untuk pembayaran di muka. Item pay-as-you-go dalam paket dikenakan biaya berdasarkan penggunaan aktual.",catalogueWithPrice:function(e){return"Harga katalog (".concat(e.price,")")},cheapRateLabel:function(e){return"Turun ".concat(e.rate," dibandingkan dengan ").concat(e.time," yang lalu")},cheapRateAlt:"Penurunan harga resmi"},discount:{learnMore:"Pelajari lebih lanjut",detail:"Detail diskon",activityRules:"Aturan aktivitas",activityDiscount:"Diskon aktivitas",doubleDiscount:"Diskon ganda",doubleDiscountWithQuota:function(e){return"Diskon ganda (Kuota tersedia: ".concat(e.quota,")")},reduce:"Kurangi",save:function(e){return"Hemat: ".concat(e.amount)},purchaseLimit:"Batas pembelian",unlimited:"Tidak terbatas",purchaseLimitWithCount:function(e){return"".concat(e.count," item")},refund:"Pengembalian dana",refundable:"Dapat dikembalikan",nonRefundable:"Item aktivitas tidak dapat dikembalikan",accountLimit:"Batas akun",noLimit:"Tidak ada batas",accountLimitWithTimes:function(e){return"Akun terautentikasi yang sama hanya dapat membeli ".concat(e.times," kali (misalnya, KTP yang sama, lisensi bisnis, nomor telepon yang sama, dll.)")},couponOverlay:"Apakah kupon dapat ditumpuk",canOverlay:"Dapat ditumpuk",cannotOverlay:"Tidak dapat ditumpuk"},error:{cannotJoin99Plan:"Tidak dapat bergabung dengan paket 99",cannotJoin99PlanInstanceOverflowPrefix:"Setiap pengguna hanya dapat memiliki satu instance yang menikmati manfaat paket 99. Anda sudah memiliki instance yang menikmati manfaat ini. Anda dapat memeriksa di",cannotJoin99PlanInstanceOverflowSuffix:"dari akun saat ini atau akun lain di bawah nama Anda.",cannotJoin99PlanInvalidOrderPrefix:"Setiap pengguna hanya dapat memiliki satu instance yang menikmati manfaat paket 99. Anda memiliki pesanan yang belum dibayar yang menikmati manfaat ini.",cannotJoin99PlanInvalidCrowdMessage:"Maaf, Anda tidak memenuhi persyaratan partisipasi untuk aktivitas ini.",console:"Konsol",viewOrders:"Klik untuk melihat"},plan:{plan99:"Paket 99"}});const qn="f77e9f013515ec5322c1ac3273600828_cheap-rate-label";function Bn(e){var t=e.price,n=(void 0===t?{}:t).formatPrice,r=void 0===n?{}:n;return u.createElement(u.Fragment,null,r.priceAdjustTime&&r.cheapRate&&!r.isContractActivity?u.createElement("span",{className:qn},u.createElement("img",{alt:Mn("price.cheapRateAlt"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAxCAMAAABnGeD7AAAAgVBMVEUAAAD/aQD/agD/agD/agD/agD/agD/agD/agD/agD/agD/YQD/agD/agD/agD/aQD/aQD/aQD/agD/aAD/agD/agD/aQD/agD/agD/agD/aQD/awD/awD/agD/agD/agD/agD/aQD/aQD/agD/agD/agD/bwD/aQD/awD/aAD/agCMkg2CAAAAKnRSTlMAm/T8imEQ1KZoSgXm2MAxIx8VCMq7raCBZSsc7enFtZKFXU5EOQtyPjZBWQr0AAABE0lEQVQ4y4XU63KCMBQE4G0iIoIochVv9dp23/8Bq4MxIJzw/WR2SLJnEgATv/QSuOV8iM8pHNYZnyIvhOyek09+DVmaNSEVuJbbszGB7MKXErKC439aaRPaQDQzGbWC5EYjhmhBQ25gQkNtIfjl27dYtqah1hD4fKscpzd2d3HTlidkfmgdhcyZlp5i0JXji9VsKYTRs2WHQVu21Riy5viGpjTkmSVsO8CafxkLdhzN9xsyjilw1XRTS8Cjk57joaLIXqWSshMaYU7JzLbnC5E4bI0q4pDFFC1Lxb4oQcdcDxXzYTNQTM+JXYF8v9xvVRj3i7H6NR1SCJLIFiMxNe1XkJia1B+cAlJfMKJSAUaF+PQPsBtq4JwapgIAAAAASUVORK5CYII="}),Mn("price.cheapRateLabel",{time:r.priceAdjustTime,rate:r.cheapRate})):"")}const zn=u.memo(Bn),Gn="_5e2390c31fa18b28a3d0fcd72bf150b3_discount-ballon-btn",Wn="_5e2390c31fa18b28a3d0fcd72bf150b3_discount-ballon-balloon",Jn="_5e2390c31fa18b28a3d0fcd72bf150b3_discount-ballon",Vn="_5e2390c31fa18b28a3d0fcd72bf150b3_article-item-result",$n="_5e2390c31fa18b28a3d0fcd72bf150b3_article-result-wrap",Kn="_5e2390c31fa18b28a3d0fcd72bf150b3_article-item-result-price",Yn="_5e2390c31fa18b28a3d0fcd72bf150b3_article-item-result-price-highlight",Fn="_5e2390c31fa18b28a3d0fcd72bf150b3_ballon-head-price",Qn="_5e2390c31fa18b28a3d0fcd72bf150b3_list-price",Hn="_5e2390c31fa18b28a3d0fcd72bf150b3_ballon-head-price-row",Xn="_5e2390c31fa18b28a3d0fcd72bf150b3_discounted-price",Zn="_5e2390c31fa18b28a3d0fcd72bf150b3_highlight",er="_5e2390c31fa18b28a3d0fcd72bf150b3_discount-ballon-rule",tr="_5e2390c31fa18b28a3d0fcd72bf150b3_post-pay-discount-ballon-head",nr="_5e2390c31fa18b28a3d0fcd72bf150b3_discount-expand";function rr(e){var t=e.module,n=e.refreshBallon,r=e.refreshIndex,i=j(u.useState(!1),2),a=i[0],o=i[1],c=t.name,s=t.formatPrice,l=void 0===s?{}:s,d=t.id,f=l.promotionPrice,p=l.isContractActivity;u.useEffect(function(){n()},[a]);return u.createElement("div",{className:"".concat(tr," ").concat(a?nr:""),key:"".concat(d,"-").concat(r)},u.createElement("h3",null,c,u.createElement("span",{className:Zn},f,u.createElement("i",{className:"ace-icon ace-icon-arrow-down",onClick:function(){o(!a)}}))),function(){var e=t.formatPrice,n=void 0===e?{}:e,r=t.price,i=r.discount,a=r.discountedPrice,o=r.cheapStandAmount,c=void 0===o?0:o,s=r.listPrice,l=void 0===s?0:s,d=r.unitPrice,f=!1;c>0?a<c&&i>.04&&(f=!0):i>.04&&(f=!0);var m=l||d,h=c>0||l>0;return u.createElement("div",{className:Fn},m?u.createElement("div",{className:Qn},Mn("price.catalogueWithPrice",{price:n.listPrice||n.dailyPrice})):null,h?u.createElement("div",{className:Hn},Mn(p?"price.contractDiscounted":"price.discounted")," ",u.createElement("span",null,n.cheapStandAmount||n.dailyPrice)):null,f?u.createElement("div",{className:Hn},Mn("discount.activityDiscount")," ",u.createElement("span",null,Mn("discount.reduce")," ",n.discount)):null)}())}const ir={balloon:"_5a211f2e887f13ad8235a9e7b2fa9a5e_balloon",trigger:"_5a211f2e887f13ad8235a9e7b2fa9a5e_trigger",popup:"_5a211f2e887f13ad8235a9e7b2fa9a5e_popup",fadeIn:"_5a211f2e887f13ad8235a9e7b2fa9a5e_fadeIn","popup-hidden":"_5a211f2e887f13ad8235a9e7b2fa9a5e_popup-hidden",content:"_5a211f2e887f13ad8235a9e7b2fa9a5e_content",close:"_5a211f2e887f13ad8235a9e7b2fa9a5e_close",arrow:"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow","arrow-t":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-t","arrow-tl":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-tl","arrow-tr":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-tr","arrow-b":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-b","arrow-bl":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-bl","arrow-br":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-br","arrow-l":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-l","arrow-lt":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-lt","arrow-lb":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-lb","arrow-r":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-r","arrow-rt":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-rt","arrow-rb":"_5a211f2e887f13ad8235a9e7b2fa9a5e_arrow-rb"};function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cr=[0,0],sr=function(e){var t=e.trigger,n=e.children,r=e.align,i=void 0===r?"t":r,a=e.triggerType,o=void 0===a?"hover":a,c=e.closable,s=void 0!==c&&c,d=e.visible,f=e.defaultVisible,p=void 0!==f&&f,m=e.onVisibleChange,h=e.className,v=void 0===h?"":h,y=e.popupStyle,g=void 0===y?{}:y,b=e.popupClassName,P=void 0===b?"":b,E=e.offset,w=void 0===E?cr:E,k=e.delay,_=void 0===k?0:k,O=e.autoAdjust,x=void 0===O||O,C=e.onTriggerMouseEnter,S=j(u.useState(p),2),I=S[0],D=S[1],T=j(u.useState({top:0,left:0}),2),A=T[0],N=T[1],R=j(u.useState(!1),2),L=R[0],U=R[1],M=u.useRef(null),q=u.useRef(null),B=u.useRef(null),z=u.useRef(null),G=u.useRef(!1),W=void 0!==d,J=W?d:I,V=function(e){W||D(e),null==m||m(e)};u.useEffect(function(){return function(){B.current&&clearTimeout(B.current)}},[]);var $=u.useCallback(function(e){for(var t=0,n=0,r=e;r&&r!==document.body;)t+=r.offsetTop,n+=r.offsetLeft,r=r.offsetParent;return{top:t,left:n,width:e.offsetWidth,height:e.offsetHeight}},[]),K=u.useCallback(function(e,t){if(!M.current)return{top:0,left:0};var n=$(M.current),r=0,a=0;switch(i){case"t":r=n.top-t-8,a=n.left+n.width/2-e/2;break;case"r":r=n.top+n.height/2-t/2,a=n.left+n.width+8;break;case"b":default:r=n.top+n.height+8,a=n.left+n.width/2-e/2;break;case"l":r=n.top+n.height/2-t/2,a=n.left-e-8;break;case"tl":r=n.top-t-8,a=n.left;break;case"tr":r=n.top-t-8,a=n.left+n.width-e;break;case"bl":r=n.top+n.height+8,a=n.left;break;case"br":r=n.top+n.height+8,a=n.left+n.width-e;break;case"lt":r=n.top,a=n.left-e-8;break;case"lb":r=n.top+n.height-t,a=n.left-e-8;break;case"rt":r=n.top,a=n.left+n.width+8;break;case"rb":r=n.top+n.height-t,a=n.left+n.width+8}return{top:r+=w[1],left:a+=w[0]}},[i,w,$]);u.useEffect(function(){if(!J||!M.current)return N(function(e){return 0===e.top&&0===e.left?e:{top:0,left:0}}),void U(!1);if(U(!1),!x){var e=requestAnimationFrame(function(){if(M.current&&q.current){var e=q.current.getBoundingClientRect(),t=e.width,n=e.height,r=K(t,n);N(r),U(!0)}else U(!0)});return function(){return cancelAnimationFrame(e)}}var t=requestAnimationFrame(function(){if(M.current&&q.current){var e=q.current.getBoundingClientRect(),t=e.width,n=e.height,r=K(t,n),i=r.top,a=r.left,o=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,window.innerWidth),c=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,window.innerHeight),s=0,u=0,l=a+t;l>o?s=o-l-8:a<0&&(s=8-a);var d=i+n;d>c?u=c-d-8:i<0&&(u=8-i),0===s&&0===u||(a+=s,i+=u),N(function(e){return e.top===i&&e.left===a?e:{top:i,left:a}}),0!==s||0!==u?z.current=requestAnimationFrame(function(){if(z.current=null,q.current){var e=q.current.getBoundingClientRect(),t=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop,r=e.left+t,i=e.top+n,a=e.width,o=e.height,c=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,window.innerWidth),s=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,window.innerHeight),u=0,l=0;r+a>c?u=c-(r+a)-8:r<0&&(u=8-r),i+o>s?l=s-(i+o)-8:i<0&&(l=8-i),0===u&&0===l||N(function(e){return{top:e.top+l,left:e.left+u}}),U(!0)}else U(!0)}):U(!0)}else U(!0)});return function(){t&&cancelAnimationFrame(t),z.current&&(cancelAnimationFrame(z.current),z.current=null)}},[J,x,K]);var Y=function(e){G.current||(G.current=!0,e&&C&&C(e),"hover"===o&&(_>0?(B.current&&clearTimeout(B.current),B.current=setTimeout(function(){V(!0)},_)):V(!0)))},F=function(){G.current=!1,"hover"===o&&(B.current&&(clearTimeout(B.current),B.current=null),V(!1))};u.useEffect(function(){if("click"===o&&J){var e=function(e){M.current&&q.current&&!M.current.contains(e.target)&&!q.current.contains(e.target)&&V(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}},[o,J]);var Q,H,X=J?u.createElement("div",{ref:q,className:"".concat(ir.popup," ").concat(P," ").concat(L?"":ir["popup-hidden"]),style:or({top:"".concat(A.top,"px"),left:"".concat(A.left,"px")},g),onMouseEnter:Y,onMouseLeave:F},u.createElement("div",{className:(Q=ir.arrow,H=ir["arrow-".concat(i)],"".concat(Q," ").concat(H||""))}),s&&u.createElement("span",{className:ir.close,onClick:function(e){e.stopPropagation(),V(!1)}},"\xd7"),u.createElement("div",{className:ir.content},n)):null;return u.createElement(u.Fragment,null,u.createElement("div",{className:"".concat(ir.balloon," ").concat(v)},u.createElement("div",{ref:M,onMouseEnter:function(e){return Y(e)},onMouseLeave:F,onClick:function(e){"click"===o&&(e.stopPropagation(),V(!J))},className:ir.trigger},t)),J&&"undefined"!=typeof document&&l.createPortal(X,document.body))};const ur=u.memo(sr);function lr(e){var t,n,r,i,a,o,c=e.className,s=e.price,l=e.good,d=j(u.useState("t"),2),f=d[0],p=d[1],m=j(u.useState(0),2),h=m[0],v=m[1],y=s.discountRule,g=s.price,b=s.promotionResult,P=s.articleItemResults,E=void 0===P?[]:P,w=s.formatPrice,k=void 0===w?{}:w,_=s.isPostPay,O=s.postPayModules,x=k.isContractActivity,C=k.queryFailCode,S=y||{},I=S.isRefund,D=S.isSameIdLimt,T=S.userTimes,A=S.isCoupon,N=S.orderNumLimit,R=function(){v(h+1)};return n=(t=g||{}).discountedPrice,r=t.totalPrice,!(i=t.channelPrice)&&(!l.isPackage&&!y&&!b||l.isPackage&&n===r||C||i)?null:u.createElement(ur,{align:f,trigger:u.createElement("span",{className:"".concat(Gn," ").concat(c||"")},Mn("discount.learnMore")),triggerType:"hover",closable:!1,popupStyle:{minWidth:230,marginTop:9},className:Wn,onTriggerMouseEnter:function(e){p(An(e,f))}},(a=(g||{}).unitCurrency,o=void 0===a?"\uffe5":a,u.createElement("div",{className:Jn},u.createElement("div",{className:"discount-ballon-head"},u.createElement("h3",null,Mn("discount.detail")),_?u.createElement("div",{className:"post-pay-discount-ballon"},null==O?void 0:O.map(function(e){return u.createElement(rr,{module:e,key:e.id,refreshIndex:h,refreshBallon:R})})):function(){var e=g||{},t=e.discount,n=void 0===t?0:t,r=e.discountedPrice,i=void 0===r?0:r,a=e.totalPrice,o=e.cheapStandAmount,c=void 0===o?0:o,s=e.listPrice,l=void 0===s?0:s,d=e.unitPrice,f=e.activityDiscount,p=void 0===f?0:f,m=e.doubleDiscount,h=e.remainDiscountQuota,v=e.unitCurrency,y=void 0===v?"\uffe5":v,b=!1;return c>0?i<c&&n>.4&&(b=!0):n>0&&(b=!0),u.createElement("div",{className:Fn},l||d?u.createElement("div",{className:Qn},Mn("price.catalogueWithPrice",{price:"".concat(y).concat(Ct(l||d))})):null,c>0||l>0?u.createElement("div",{className:Hn},Mn(x?"price.contractDiscounted":"price.discounted")," ",u.createElement("span",null,y,Ct(c||a))):null,b&&p?u.createElement("div",{className:Hn},Mn("discount.activityDiscount")," ",u.createElement("span",null,Mn("discount.reduce"),y,Ct(p))):null,b&&m?u.createElement("div",{className:Hn},h?Mn("discount.doubleDiscountWithQuota",{quota:"".concat(y).concat(Ct(h))}):Mn("discount.doubleDiscount"),u.createElement("span",null," ",Mn("discount.reduce"),y,Ct(m))):null,i!==c?u.createElement("div",{className:Xn},Mn("price.price"),u.createElement("span",{className:Zn},y,Ct(i))):null)}()),l.isPackage&&E&&E.length>0?u.createElement("div",{className:$n},E.map(function(e,t){return u.createElement("div",{className:Vn,key:"articleItemResult".concat(t)},e.articleItemName,u.createElement("span",{className:Kn},e.price.discount?Mn("discount.save",{amount:"".concat(o).concat(Ct(e.price.discount))}):"",u.createElement("span",{className:Yn},"".concat(o).concat(Ct(e.price.discountedPrice)))))})):"",l.isPackage?"":u.createElement("div",{className:er},u.createElement("h3",null,Mn("discount.activityRules")),u.createElement("div",null,u.createElement("p",null,Mn("discount.purchaseLimit"),"\uff1a",N?Mn("discount.purchaseLimitWithCount",{count:N}):Mn("discount.unlimited")),u.createElement("p",null,Mn("discount.refund"),"\uff1a",Mn(I?"discount.refundable":"discount.nonRefundable")),u.createElement("p",null,Mn("discount.accountLimit"),":"," ",D?Mn("discount.accountLimitWithTimes",{times:T}):Mn("discount.noLimit")),u.createElement("p",null,Mn("discount.couponOverlay"),"\uff1a",Mn(A?"discount.canOverlay":"discount.cannotOverlay")))))))}const dr=u.memo(lr),fr="_8cb62e427ba5bad8cd7daa20c1b5df23_discounted-price",pr="_8cb62e427ba5bad8cd7daa20c1b5df23_highlight",mr="_8cb62e427ba5bad8cd7daa20c1b5df23_pricing-tip-btn",hr="_8cb62e427ba5bad8cd7daa20c1b5df23_help-filled";function vr(e){var t=j(u.useState("t"),2),n=t[0],r=t[1],i=e.isLogin,a=e.price,o=void 0===a?{}:a,c=e.isChannelPrice,s=e.className,l=e.good,d=void 0===l?{}:l,f=d.hasPostPay,p=d.isPackage,m=o.formatPrice,h=void 0===m?{}:m,v=o.price,y=h.promotionPrice,g=h.hasDiscount,b=h.queryFailCode,P=h.codeContent,E=h.channelPrice;if(!y)return null;var w=Tt(c?void 0===E?"":E:y,null==v?void 0:v.unitCurrency);return u.createElement("span",{className:"".concat(fr," ").concat(s||"")},v&&!b?u.createElement(u.Fragment,null,u.createElement("span",{className:"".concat(pr)},w.symbol,u.createElement("strong",null,w.integer),".",w.decimal),w.unit?"/".concat(w.unit):"",!i&&g?Mn("price.from"):"",p&&f&&u.createElement(ur,{align:"t",trigger:u.createElement("span",{className:mr},u.createElement("i",{className:"".concat(hr," aliyun-icon aliyun-icon-help_filled")})),triggerType:"hover",closable:!1},u.createElement("div",{className:"discount-ballon"},u.createElement("div",{className:"discount-ballon-rule"},u.createElement("p",null,Mn("price.prePayOnlyTip")))))):"",v&&b?u.createElement(ur,{align:n,trigger:u.createElement("span",{className:pr},w.symbol,u.createElement("strong",null,w.integer)),triggerType:"hover",closable:!1,onTriggerMouseEnter:function(e){r(An(e,n))}},P):"")}const yr=u.memo(vr),gr="f8e845a0324b62e8c6b2003b975444c5_low-price-tip-wrapper",br="f8e845a0324b62e8c6b2003b975444c5_low-price-trigger",Pr="f8e845a0324b62e8c6b2003b975444c5_low-price-trigger-text";var Er={InstanceOverflow:"PRO-99PRICE_INSTANCE_OVERFLOW",InvaildOrderCount:"PRO-99PRICE_INVALID_ORDER_COUNT",InvalidCrowd:"CROWD-NOT_IN_RANGE"},wr="https://home.console.aliyun.com/home/dashboard/ProductAndService",kr="https://usercenter2.aliyun.com/order/list?pageIndex=1&pageSize=20&orderStatus=UNPAID",_r=function(e){var t=Mn("error.cannotJoin99Plan");switch(e){case Er.InstanceOverflow:return u.createElement("span",null,u.createElement("em",null,t,"\uff1a"),Mn("error.cannotJoin99PlanInstanceOverflowPrefix")," ",u.createElement("a",{href:wr,target:"_blank",rel:"noopener noreferrer"},Mn("error.console"))," ",Mn("error.cannotJoin99PlanInstanceOverflowSuffix"));case Er.InvaildOrderCount:return u.createElement("span",null,u.createElement("em",null,t,"\uff1a"),Mn("error.cannotJoin99PlanInvalidOrderPrefix")," ",u.createElement("a",{href:kr,target:"_blank",rel:"noopener noreferrer"},Mn("error.viewOrders")));case Er.InvalidCrowd:return u.createElement("span",null,u.createElement("em",null,t,"\uff1a"),Mn("error.cannotJoin99PlanInvalidCrowdMessage"));default:return null}},Or=T(T(T({},Er.InstanceOverflow,_r(Er.InstanceOverflow)),Er.InvaildOrderCount,_r(Er.InvaildOrderCount)),Er.InvalidCrowd,_r(Er.InvalidCrowd)),xr=function(e){var t=e.children,n=e.className;return u.createElement("div",{className:"".concat(gr," ").concat(n)},t)},Cr=function(e){var t=e.price,n=e.good,r=e.triggerClassName,i=void 0===r?"":r,a=e.balloonClassName,o=void 0===a?"":a;if(!t||!t.price||!n)return null;var c=t.is99Price,s=n.activityId?n.activityId.low_price_activity_id:null;if(!s||c)return null;var l=(t.watchActivityResultList||[]).filter(function(e){return String(e.activityId)===String(s)}).find(function(e){return[Er.InstanceOverflow,Er.InvaildOrderCount,Er.InvalidCrowd].includes(e.errorCode)});if(!l)return null;var d=l.errorCode,f=Or[d];return u.createElement(ur,{align:"t",closable:!1,trigger:u.createElement("span",{className:"".concat(br," ").concat(i)},u.createElement("span",{className:Pr},Mn("error.cannotJoin99Plan")))},u.createElement(xr,{className:o},f))};const Sr="_33034547f15b5079e205f7945e37a745_origin-price",Ir="_33034547f15b5079e205f7945e37a745_price-tip",Dr="_33034547f15b5079e205f7945e37a745_origin-price-label",Tr="_33034547f15b5079e205f7945e37a745_price-tip-desc",Ar="_33034547f15b5079e205f7945e37a745_price-tip-label",Nr="_33034547f15b5079e205f7945e37a745_price-tip-desc-contract";function Rr(e){var t,n=e.price,r=void 0===n?{}:n,i=e.isChannelPrice,a=e.className,o=r.formatPrice,c=void 0===o?{}:o,s=r.unitCurrency,l=void 0===s?"\uffe5":s,d=c.dailyPrice,f=c.promotionPrice,p=c.channelPrice,m=c.queryFailCode,h=c.cheapStandAmount;return m&&!i?t="".concat(l,"***"):i?p&&f&&(t=f):t=h&&!m?h:d,t?u.createElement("span",{className:"".concat(Sr," ").concat(a||"")},function(e){var t,n,r=e.price,i=void 0===r?{}:r,a=e.label,o=i.formatPrice,c=void 0===o?{}:o,s=c.isContractActivity,l=c.channelPrice,d=j(u.useState("t"),2),f=d[0],p=d[1];return a?u.createElement(u.Fragment,null,a):l?Mn("price.dailyPrice"):(s?(t=Mn("price.contractDiscounted"),n=Mn("price.contractDiscountedTip")):(t=Mn("price.discounted"),n=Mn("price.discountedTip")),u.createElement(u.Fragment,null,u.createElement(ur,{align:f,trigger:u.createElement("span",{className:Dr},t),triggerType:"hover",closable:!1,onTriggerMouseEnter:function(e){p(An(e,f))}},u.createElement("div",{className:Ir},u.createElement("div",{className:"".concat(Tr," ").concat(s?Nr:null)},u.createElement("span",{className:Ar},t,":"),n),u.createElement("div",{className:"".concat(Tr," ").concat(s?Nr:null)},u.createElement("span",{className:Ar},Mn("price.catalogue"),":"),Mn("price.catalogueTip"))))))}(e),": ",t):null}const Lr=u.memo(Rr),jr="a2fb90a853eaaa0887cdc7d643044f9e_post-pay-discounted-price",Ur="a2fb90a853eaaa0887cdc7d643044f9e_highlight";function Mr(e){var t=e.isLogin,n=e.modulePrice,r=e.showHidePriceReason,i=void 0!==r&&r,a=e.className,o=n.name,c=n.formatPrice,s=void 0===c?{}:c,l=s.promotionPrice,d=s.hasDiscount,f=s.queryFailCode,p=s.codeContent;if(!l)return null;var m=Tt(l),h=u.createElement("span",{className:Ur},m.symbol,u.createElement("strong",null,m.integer)),v=function(){return f&&!i?h:f&&i?u.createElement(ur,{align:"t",trigger:h,triggerType:"hover",closable:!1},p):u.createElement(u.Fragment,null,u.createElement("span",{className:"".concat(Ur)},m.symbol,u.createElement("strong",null,m.integer),".",m.decimal),u.createElement("span",null,m.unit?"/".concat(m.unit):"",!t&&d?Mn("price.from"):""))};return u.createElement("span",{className:"".concat(jr," ").concat(a||"")},u.createElement("span",null,o),u.createElement(v,null))}const qr=u.memo(Mr),Br="_8714d9cda1afa6e7dad6c1ad9f2db23f_post-pay-price-item",zr="_8714d9cda1afa6e7dad6c1ad9f2db23f_fist-post-pay-price-item",Gr="_8714d9cda1afa6e7dad6c1ad9f2db23f_fist-post-pay-price";function Wr(e){var t=e.isLogin,n=e.postPayModules,r=e.children,i=e.className;return u.createElement("ul",{className:"".concat(i||"")},n.map(function(e,n){var i=0===n;return u.createElement("li",{key:e.id||"post-pay-".concat(n)},u.createElement("p",{className:i?zr:Br},u.createElement(qr,{modulePrice:e,isLogin:t,showHidePriceReason:i,className:i&&r?Gr:""}),i?r:null),u.createElement("p",null,u.createElement(Lr,{price:e}),u.createElement(zn,{price:e})))}))}const Jr=u.memo(Wr);Mn("price.catalogue"),Mn("price.discounted"),Mn("price.contractDiscounted"),Mn("price.catalogueTip"),Mn("price.discountedTip"),Mn("price.contractDiscountedTip");
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var Vr=function(){return Vr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Vr.apply(this,arguments)};var $r=function(e){var t=e.animate,n=void 0===t||t,r=e.animateBegin,i=e.backgroundColor,a=void 0===i?"#f5f6f7":i,o=e.backgroundOpacity,c=void 0===o?1:o,s=e.baseUrl,l=void 0===s?"":s,d=e.children,f=e.foregroundColor,p=void 0===f?"#eee":f,m=e.foregroundOpacity,h=void 0===m?1:m,v=e.gradientRatio,y=void 0===v?2:v,g=e.gradientDirection,b=void 0===g?"left-right":g,P=e.uniqueKey,E=e.interval,w=void 0===E?.25:E,k=e.rtl,_=void 0!==k&&k,O=e.speed,x=void 0===O?1.2:O,C=e.style,S=void 0===C?{}:C,I=e.title,D=void 0===I?"Loading...":I,T=e.beforeMask,A=void 0===T?null:T,N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),R=P||Math.random().toString(36).substring(6),L=R+"-diff",j=R+"-animated-diff",U=R+"-aria",M=_?{transform:"scaleX(-1)"}:null,q="0; "+w+"; 1",B=x+"s",z="top-bottom"===b?"rotate(90)":void 0;return u.createElement("svg",Vr({"aria-labelledby":U,role:"img",style:Vr(Vr({},S),M)},N),D?u.createElement("title",{id:U},D):null,A&&u.isValidElement(A)?A:null,u.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+l+"#"+L+")",style:{fill:"url("+l+"#"+j+")"}}),u.createElement("defs",null,u.createElement("clipPath",{id:L},d),u.createElement("linearGradient",{id:j,gradientTransform:z},u.createElement("stop",{offset:"0%",stopColor:a,stopOpacity:c},n&&u.createElement("animate",{attributeName:"offset",values:-y+"; "+-y+"; 1",keyTimes:q,dur:B,repeatCount:"indefinite",begin:r})),u.createElement("stop",{offset:"50%",stopColor:p,stopOpacity:h},n&&u.createElement("animate",{attributeName:"offset",values:-y/2+"; "+-y/2+"; "+(1+y/2),keyTimes:q,dur:B,repeatCount:"indefinite",begin:r})),u.createElement("stop",{offset:"100%",stopColor:a,stopOpacity:c},n&&u.createElement("animate",{attributeName:"offset",values:"0; 0; "+(1+y),keyTimes:q,dur:B,repeatCount:"indefinite",begin:r})))))},Kr=function(e){return e.children?u.createElement($r,Vr({},e)):u.createElement(Yr,Vr({},e))},Yr=function(e){return u.createElement(Kr,Vr({viewBox:"0 0 476 124"},e),u.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),u.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),u.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),u.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),u.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),u.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const Fr=Kr,Qr="f3f6da21df0cf93f72e1d3768cf8c575_wrapper",Hr="f3f6da21df0cf93f72e1d3768cf8c575_cards-wrapper",Xr="f3f6da21df0cf93f72e1d3768cf8c575_hide-features",Zr="f3f6da21df0cf93f72e1d3768cf8c575_cards-wrapper-grid",ei="f3f6da21df0cf93f72e1d3768cf8c575_card",ti="f3f6da21df0cf93f72e1d3768cf8c575_card-content",ni="f3f6da21df0cf93f72e1d3768cf8c575_active",ri="f3f6da21df0cf93f72e1d3768cf8c575_card-bg-static",ii="f3f6da21df0cf93f72e1d3768cf8c575_card-bg-hover",ai="f3f6da21df0cf93f72e1d3768cf8c575_card-tag",oi="f3f6da21df0cf93f72e1d3768cf8c575_check-icon",ci="f3f6da21df0cf93f72e1d3768cf8c575_subscribe-btn",si="f3f6da21df0cf93f72e1d3768cf8c575_btn-arrow",ui="f3f6da21df0cf93f72e1d3768cf8c575_sold-out",li="f3f6da21df0cf93f72e1d3768cf8c575_card-inner",di="f3f6da21df0cf93f72e1d3768cf8c575_skeleton-name",fi="f3f6da21df0cf93f72e1d3768cf8c575_product-name",pi="f3f6da21df0cf93f72e1d3768cf8c575_highlight-wrap",mi="f3f6da21df0cf93f72e1d3768cf8c575_show",hi="f3f6da21df0cf93f72e1d3768cf8c575_highlight-text",vi="f3f6da21df0cf93f72e1d3768cf8c575_price-block",yi="f3f6da21df0cf93f72e1d3768cf8c575_discounted-ballon-text",gi="f3f6da21df0cf93f72e1d3768cf8c575_discounted-price-text",bi="f3f6da21df0cf93f72e1d3768cf8c575_price-bottom",Pi="f3f6da21df0cf93f72e1d3768cf8c575_price-bottom-text",Ei="f3f6da21df0cf93f72e1d3768cf8c575_discounted-price-container",wi="f3f6da21df0cf93f72e1d3768cf8c575_post-pay-price-list",ki="f3f6da21df0cf93f72e1d3768cf8c575_price-post-pay-learn-discount",_i="f3f6da21df0cf93f72e1d3768cf8c575_expanded",Oi="f3f6da21df0cf93f72e1d3768cf8c575_collapse-btn",xi="f3f6da21df0cf93f72e1d3768cf8c575_icon-arrow-down",Ci="f3f6da21df0cf93f72e1d3768cf8c575_low-price-tip-trigger",Si="f3f6da21df0cf93f72e1d3768cf8c575_price-row",Ii="f3f6da21df0cf93f72e1d3768cf8c575_currency",Di="f3f6da21df0cf93f72e1d3768cf8c575_sale-price",Ti="f3f6da21df0cf93f72e1d3768cf8c575_price-unit",Ai="f3f6da21df0cf93f72e1d3768cf8c575_discount-link",Ni="f3f6da21df0cf93f72e1d3768cf8c575_original-price",Ri="f3f6da21df0cf93f72e1d3768cf8c575_original-price-strikethrough",Li="f3f6da21df0cf93f72e1d3768cf8c575_divider",ji="f3f6da21df0cf93f72e1d3768cf8c575_feature-list",Ui="f3f6da21df0cf93f72e1d3768cf8c575_feature-item",Mi="f3f6da21df0cf93f72e1d3768cf8c575_feature-label",qi="f3f6da21df0cf93f72e1d3768cf8c575_feature-desc",Bi="f3f6da21df0cf93f72e1d3768cf8c575_subscribe-btn-disabled",zi="f3f6da21df0cf93f72e1d3768cf8c575_sold-out-tip",Gi=()=>u.createElement(Fr,{speed:1.5,width:200,height:68,viewBox:"0 0 200 68",backgroundColor:"#f0f0f0",foregroundColor:"#e0e0e0"},u.createElement("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"100",height:"44"}),u.createElement("rect",{x:"0",y:"52",rx:"4",ry:"4",width:"130",height:"16"})),Wi=({isLogin:e,postPayModules:t,children:n})=>{const r=u.useRef(null),[i,a]=u.useState(!1),[o,c]=u.useState(!1),[s,l]=u.useState(0);u.useEffect(()=>{const e=r.current;e&&(null==t?void 0:t.length)>1?(a(!0),l(e.scrollHeight)):(a(!1),l(0))},[t]);return u.createElement(u.Fragment,null,u.createElement("div",{ref:r,className:`${wi} ${o?_i:""}`,style:{"--price-dom-expand-height":`${s}px`}},u.createElement(Jr,{postPayModules:t,isLogin:e},n)),i&&u.createElement("p",{className:`${Oi} ${o?_i:""}`},u.createElement(x,{className:xi,onClick:()=>c(e=>!e)})))},Ji=({card:e,loading:t,price:n,goodData:r,displayPrice:i,isLogin:a,showCheapRate:o,hideOriginalPriceRow:c})=>u.createElement("div",{className:vi},t?u.createElement(Gi,null):n&&r?n.isPostPay&&n.postPayModules?u.createElement(Wi,{isLogin:a,postPayModules:n.postPayModules},u.createElement(dr,{good:r,price:i,className:ki})):u.createElement(u.Fragment,null,u.createElement("div",{className:Ei},u.createElement(yr,{isLogin:a,price:i,isChannelPrice:!1,good:r,className:gi}),u.createElement(dr,{good:r,price:i,className:yi})),!c&&u.createElement("div",{className:bi},u.createElement(Lr,{price:i,isChannelPrice:!1,className:Pi}),o&&u.createElement(zn,{price:i}),!o&&u.createElement(Cr,{price:i,good:r,triggerClassName:Ci}))):(null!=e.currencyUnit||null!=e.salePrice)&&u.createElement(u.Fragment,null,u.createElement("div",{className:Si},e.currencyUnit&&u.createElement("span",{className:Ii},e.currencyUnit),null!=e.salePrice&&u.createElement("span",{className:Di},e.salePrice),e.salePriceUnit&&u.createElement("span",{className:Ti},e.salePriceUnit),e.discountLink&&u.createElement("a",{className:Ai,href:e.discountLink,target:"_blank",rel:"noopener noreferrer"},"\u4e86\u89e3\u4f18\u60e0")),e.originalPrice&&u.createElement("p",{className:`${Ni}${e.originalPriceStrikethrough?` ${Ri}`:""}`},e.originalPrice))),Vi=()=>u.createElement(Fr,{speed:1.5,width:160,height:32,viewBox:"0 0 160 32",backgroundColor:"#f0f0f0",foregroundColor:"#e0e0e0"},u.createElement("rect",{x:"0",y:"6",rx:"4",ry:"4",width:"140",height:"22"})),$i=()=>u.createElement(Fr,{speed:1.5,width:180,height:30,viewBox:"0 0 180 30",backgroundColor:"#f0f0f0",foregroundColor:"#e0e0e0"},u.createElement("rect",{x:"0",y:"6",rx:"4",ry:"4",width:"140",height:"22"}));function Ki(e,t){if(!e||"object"!=typeof e)return e;const n=JSON.parse(JSON.stringify(e)),r=n.formatPrice;if(!r||"object"!=typeof r)return n;return["promotionPrice","dailyPrice","channelPrice","cheapStandAmount","listPrice","activityDiscount"].forEach(e=>{"string"==typeof r[e]&&r[e]&&(r[e]=(e=>{if("string"!=typeof e||!e)return e;const n=e.indexOf("/");return-1===n?e+t:e.slice(0,n)+t})(r[e]))}),n}const Yi=({card:e,specialSetting:n,active:r})=>{var l,d,f,p,m;const h=(e.features||[]).slice(0,3),{showHighlightText:v=!1,showFeatures:y=!0}=n||{},[g,b]=u.useState(null),[P,E]=u.useState(null),[w,k]=u.useState(!1),[O,x]=u.useState(!1),[C,I]=u.useState(!!e.goodId),D=u.useRef(null),T=u.useRef(null);u.useEffect(()=>{Lt.then(e=>s(t,null,function*(){const t=yield e.get("Account"),n=yield t.isLogin();k(n)})).catch(()=>{})},[]);const A=e=>s(t,null,function*(){try{const t=yield yn(e).catch(()=>null);if(t)return x(!(null==t?void 0:t.data)),!(null==t?void 0:t.data)}catch(t){}return!1});u.useEffect(()=>{if(e.goodId)return I(!0),In(e.goodId).then(t=>(b(t),T.current=t,Promise.all([t.getPrice({}),e.enableSoldOutTip?A(t):Promise.resolve(null)]))).then(([n])=>{var r;E(n),e.enableSoldOutTip&&T.current&&(r=T.current,D.current&&clearInterval(D.current),D.current=setInterval(()=>s(t,null,function*(){(yield A(r))&&(clearInterval(D.current),D.current=null)}),6e4)),I(!1)}).catch(()=>{I(!1)}),()=>{D.current&&(clearInterval(D.current),D.current=null)}},[e.goodId]);const N=(null==g?void 0:g.name)||e.productName,R=u.useMemo(()=>g?{"data-tracker-container":!0,"data-tracker-scm":g.scm,"data-tracker-mcm-code":g.mcm_code,"data-tracker-mcm-id":g.mcm_id}:{},[g]),L=u.useMemo(()=>{var t;const n=null==(t=e.overwrittenPriceUnit)?void 0:t.trim();if(!P||!n)return P;try{return Ki(P,n)}catch(r){return P}},[P,e.overwrittenPriceUnit]),j=!(!(null==(l=null==L?void 0:L.formatPrice)?void 0:l.priceAdjustTime)||!(null==(d=null==L?void 0:L.formatPrice)?void 0:d.cheapRate)||(null==(f=null==L?void 0:L.formatPrice)?void 0:f.isContractActivity)),U=u.useMemo(()=>function(e,t){if(!e.hideOriginalPriceWhenNoDiscount||!t)return!1;const n=t.formatPrice;if(!n||n.queryFailCode)return!1;const r=t.price;if(!r||"object"!=typeof r)return!1;if(r.channelPrice)return!1;const i=Number(r.discountedPrice);if(!Number.isFinite(i))return!1;const a=Number(r.cheapStandAmount),o=Number.isFinite(a)&&a>0?a:Number(r.totalPrice);return!(!Number.isFinite(o)||o<=0)&&i===o}(e,L),[e.hideOriginalPriceWhenNoDiscount,L]),M=null==(p=e.buttonText)?void 0:p.trim(),q=null==(m=e.buttonLink)?void 0:m.trim(),B=!!M;return u.createElement("div",((e,t)=>{for(var n in t||(t={}))a.call(t,n)&&c(e,n,t[n]);if(i)for(var n of i(t))o.call(t,n)&&c(e,n,t[n]);return e})({className:`${ei} ${r?ni:""} ${O?ui:""}`},R),u.createElement("div",{className:li},u.createElement("div",{className:ri}),e.hoverBgImage&&u.createElement("img",{className:ii,src:e.hoverBgImage,alt:"","aria-hidden":"true"}),u.createElement("div",{className:ti},C?u.createElement("div",{className:di},u.createElement(Vi,null)):u.createElement("h3",{className:fi,title:N},N),e.highlightText&&(v&&C?u.createElement($i,null):u.createElement("div",{className:`${pi} ${v?mi:""}`},u.createElement("p",{className:hi},e.highlightText))),u.createElement(Ji,{card:e,loading:C,price:P,goodData:g,displayPrice:L,isLogin:w,showCheapRate:j,hideOriginalPriceRow:U}),y&&u.createElement("div",{className:Li}),y&&h.length>0&&u.createElement("ul",{className:ji},h.map((e,t)=>u.createElement("li",{key:t,className:Ui},u.createElement(S,{className:oi}),u.createElement("span",{className:Mi},e.featureLabel),u.createElement("span",{className:qi,title:e.featureDesc},e.featureDesc)))),B&&u.createElement(u.Fragment,null,u.createElement("div",{className:zi},e.enableSoldOutTip&&e.soldOutText&&O?e.soldOutText:""),q?u.createElement("a",{className:ci,href:q,target:"_blank",rel:"noopener noreferrer"},u.createElement("span",null,M),u.createElement(_,{className:si})):g?u.createElement("a",{className:`${ci} ${O&&Bi}`,href:"#",onClick:n=>s(t,null,function*(){if(n.preventDefault(),e.enableSoldOutTip){if(yield A(T.current))return}g.handlePopUpBuy()})},u.createElement("span",null,M),u.createElement(_,{className:si})):u.createElement("span",{className:ci},u.createElement("span",null,M),u.createElement(_,{className:si}))))),e.tagImage&&u.createElement("img",{className:ai,src:e.tagImage,alt:"","aria-hidden":"true"}))};n.exports=({cards:e=[],specialSetting:t={}})=>{const{cardsNumberInRow:n=2,showFeatures:r=!0}=t||{},i=(a=e,o=n,!Array.isArray(a)||!Number.isInteger(o)||o<=0?[]:Array.from({length:Math.ceil(a.length/o)},(e,t)=>a.slice(t*o,t*o+o)));var a,o;return u.createElement("div",{className:Qr},i.map((i,a)=>u.createElement("div",{key:a,className:`\n              ${Hr} \n              ${e.length>2&&n>2?Zr:""} \n              ${r?"":Xr}\n            `,style:{"--cards-wrapper-gird-template-columns":`repeat(${Math.min(n,e.length)},1fr)`}},i.map((e,n)=>u.createElement(Yi,{key:n,card:e,specialSetting:t,active:!(!t||!t.hightLightWhichCard||t.hightLightWhichCard-1!==n)})))))}});
biu.define({name:"@ali/hmod-adc-pd-coding-plan-product-card",version:"0.0.6",dependencies:{react:"^16.8.1"}},function(e,t,a){"use strict";var r=Object.defineProperty,l=Object.defineProperties,n=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(e,t,a)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;const f=e("react"),u={cardGroup:"_5bea61f1af1643a5621f7c8f94fb9622_cardGroup",card:"_5bea61f1af1643a5621f7c8f94fb9622_card",button:"_5bea61f1af1643a5621f7c8f94fb9622_button",buttonText:"_5bea61f1af1643a5621f7c8f94fb9622_buttonText",btnIcon:"_5bea61f1af1643a5621f7c8f94fb9622_btnIcon",cardBody:"_5bea61f1af1643a5621f7c8f94fb9622_cardBody",cardImagePc:"_5bea61f1af1643a5621f7c8f94fb9622_cardImagePc",cardImageMobile:"_5bea61f1af1643a5621f7c8f94fb9622_cardImageMobile",mediaWrap:"_5bea61f1af1643a5621f7c8f94fb9622_mediaWrap",videoBlock:"_5bea61f1af1643a5621f7c8f94fb9622_videoBlock",videoBlockH5Playing:"_5bea61f1af1643a5621f7c8f94fb9622_videoBlockH5Playing",media:"_5bea61f1af1643a5621f7c8f94fb9622_media",videoController:"_5bea61f1af1643a5621f7c8f94fb9622_videoController",videoControllerButton:"_5bea61f1af1643a5621f7c8f94fb9622_videoControllerButton",videoControllerPlay:"_5bea61f1af1643a5621f7c8f94fb9622_videoControllerPlay",videoControllerPause:"_5bea61f1af1643a5621f7c8f94fb9622_videoControllerPause",cardTextHead:"_5bea61f1af1643a5621f7c8f94fb9622_cardTextHead",tagWrap:"_5bea61f1af1643a5621f7c8f94fb9622_tagWrap",tag:"_5bea61f1af1643a5621f7c8f94fb9622_tag",tagIcon:"_5bea61f1af1643a5621f7c8f94fb9622_tagIcon",cardDesc:"_5bea61f1af1643a5621f7c8f94fb9622_cardDesc"},d=()=>f.createElement("svg",{className:u.btnIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",fill:"currentColor",width:"1em",height:"1em"},f.createElement("defs",null,f.createElement("clipPath",{id:"master_svg0_141_014931"},f.createElement("rect",{x:"0",y:"0",width:"18",height:"18",rx:"0"}))),f.createElement("g",{clipPath:"url(#master_svg0_141_014931)"},f.createElement("g",{transform:"matrix(0.7071067690849304,0.7071067690849304,-0.7071067690849304,0.7071067690849304,3.584181380591744,-7.03921269432611)"},f.createElement("path",{d:"M14.624622172546387,2.959923096694946L11.084177172546386,6.500363096694946L10.288683891546386,5.704873096694946L15.186432172546386,0.8071339126949463L20.08417217254639,5.704873096694946L19.288682172546388,6.500363096694946L15.749622172546387,2.9613030966949463L15.749622172546387,14.256283096694947L14.624622172546387,14.256283096694947L14.624622172546387,2.959923096694946Z"})))),m=()=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",version:"1.1",width:"20",height:"20",viewBox:"0 0 20 20"},f.createElement("g",null,f.createElement("g",null,f.createElement("path",{d:"M18.125,10C18.125,5.5126863,14.487314,1.875,10,1.875C5.5126863,1.875,1.875,5.5126863,1.875,10C1.875,14.487314,5.5126863,18.125,10,18.125C14.487314,18.125,18.125,14.487314,18.125,10ZM3.125,10C3.125,6.203042,6.203042,3.125,10,3.125C13.796958,3.125,16.875,6.203042,16.875,10C16.875,13.796958,13.796958,16.875,10,16.875C6.203042,16.875,3.125,13.796958,3.125,10ZM8.7500091,13.383892L14.191951,7.9419508L13.308067,7.0580673L8.7500091,11.6161261L6.6919508,9.558067300000001L5.808067299999999,10.4419508L8.7500091,13.383892Z",fillRule:"evenodd",fill:"#1366EC",fillOpacity:"1"}))));function b({title:e,link:t}){return f.createElement("a",{className:u.button,href:null!=t?t:"",target:"_blank",rel:"noopener noreferrer"},f.createElement("div",{className:u.buttonText},null!=e?e:""),f.createElement(d,null))}const v=(e,t="")=>{if(!e)return t;const a=e.startsWith("https://")||e.startsWith("http://"),r=e.startsWith("#")||e.startsWith("linear-gradient");return a?`url(${e})`:r?e:t};function g({isPlaying:e,onToggle:t,isPauseButtonVisible:a=!0,isPlayButtonVisible:r=!1,className:l=""}){const n=e?a:r;return f.createElement("button",{type:"button",className:`${u.videoController} ${u.videoControllerButton} ${e?u.videoControllerPause:u.videoControllerPlay} ${l}`,onClick:e=>{e.stopPropagation(),t()},"aria-label":e?"\u6682\u505c":"\u64ad\u653e",style:{opacity:n?1:0}})}function p({caseItem:e,className:t="",preferPoster:a=!1,isH5:r=!1}){var l,n;const c=f.useRef(null),o=f.useRef(null),[i,s]=f.useState(!1),[d,m]=f.useState(!1),[b,p]=f.useState(!1);f.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);const _=null!=e?e:{},E=function(e){var t,a,r;const l=null!=e?e:{},n=null!=(t=l.video)?t:"",c=null!=(a=l.image)?a:"",o=null!=(r=l.videoPoster)?r:void 0;return n?{type:"video",src:n,poster:o}:{type:"image",src:c}}(e),{pcBgValue:y,mobileBgValue:h}=_;if(!E.src)return null;const P="video"===E.type&&!a,C=v(y,"#f8f8f8"),w=v(h,"#f8f8f8"),B=()=>{o.current&&(clearTimeout(o.current),o.current=null)},N=()=>{B(),o.current=setTimeout(()=>p(!0),2e3)},T=()=>{var e;const t=c.current;t&&(i?(t.pause(),s(!1),m(!1)):(null==(e=t.play())||e.catch(()=>{}),s(!0)))};return f.createElement("div",{className:`${u.mediaWrap} ${t}`,style:{"--card-pc-bg-value":C,"--card-mobile-bg-value":w}},P&&f.createElement("div",{className:`${u.videoBlock} ${d?u.videoBlockHover:""} ${r?u.videoBlockH5Playing:""}`,onMouseEnter:()=>{m(!0),p(!1),B(),i&&N()},onMouseMove:()=>{p(!1),i&&N()},onMouseLeave:()=>{m(!1),p(!1),B()},onClick:()=>{r&&T()}},f.createElement("video",{ref:c,className:u.media,src:E.src,poster:E.poster||"",playsInline:!0,loop:!0,muted:!0,onPlay:()=>s(!0),onPause:()=>s(!1)}),f.createElement(g,{isPlaying:i,onToggle:T,isPauseButtonVisible:!r&&(d&&!b),isPlayButtonVisible:r?!i:d})),!P&&"video"===E.type&&E.poster&&f.createElement("img",{className:u.media,src:E.poster,alt:null!=(l=_.title)?l:""}),!P&&!("video"===E.type&&E.poster)&&f.createElement("img",{className:u.media,src:E.src,alt:null!=(n=_.title)?n:""}))}function _(e){const{title:t,tags:a,description:r,link:l,linkTitle:n,cardHeight:c}=e,o=a&&a.length>0;return l?f.createElement("div",{className:u.card,"data-card":!0,style:c?{height:c}:void 0},f.createElement("div",{className:u.cardBody},f.createElement(p,{caseItem:e,className:u.cardImagePc}),f.createElement(p,{caseItem:e,className:u.cardImageMobile,isH5:!0}),t&&f.createElement("div",{className:u.cardTextHead,dangerouslySetInnerHTML:{__html:t}}),o&&f.createElement("div",{className:u.tagWrap},a.map((e,t)=>f.createElement("span",{key:t,className:u.tag},f.createElement("div",{className:u.tagIcon},f.createElement(m,null)),e||""))),r&&f.createElement("div",{className:u.cardDesc,dangerouslySetInnerHTML:{__html:r}})),f.createElement(b,{title:n,link:l})):null}a.exports=function(e){const t=(null==e?void 0:e.list)||[],a=t.length>0,r=f.useRef(null),[d,m]=f.useState(void 0),b=f.useRef(null),v=f.useCallback(()=>{if(!r.current)return;if(window.innerWidth<=1055)return void m(void 0);const e=r.current.querySelectorAll("[data-card]");if(0===e.length)return;let t=0;e.forEach(e=>{const a=e.getBoundingClientRect().height;t=Math.max(t,a)}),t>0&&m(t)},[]),g=f.useCallback(()=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{m(void 0),requestAnimationFrame(()=>{v()})},150)},[v]);f.useEffect(()=>{const e=setTimeout(v,0);return window.addEventListener("resize",g),()=>{clearTimeout(e),b.current&&clearTimeout(b.current),window.removeEventListener("resize",g)}},[g,v]),f.useEffect(()=>{const e=setTimeout(v,100);return()=>clearTimeout(e)},[t,v]);const p=f.useMemo(()=>t.slice(0,3).map((e,t)=>{return f.createElement(_,(a=((e,t)=>{for(var a in t||(t={}))o.call(t,a)&&s(e,a,t[a]);if(c)for(var a of c(t))i.call(t,a)&&s(e,a,t[a]);return e})({key:`card-${t}-${e.title}`},e),l(a,n({cardHeight:d}))));var a}),[t,d]);return a?f.createElement("div",{ref:r,className:u.cardGroup},p):null}});
biu.define({name:"@ali/hmod-adc-pd-coding-plan-simple-card",version:"0.0.6",dependencies:{react:"^16.8.1","ace-element":"script:__ALIYUN_EXPERIENCE_ELEMENT__"}},function(e,t,r){"use strict";var n=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const s=e("react"),l=e("ace-element");function u(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=u(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function d(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=u(e))&&(n&&(n+=" "),n+=t);return n}const p="_9a1d73bbcd1a80626a31035a12410804_icon",f="_9a1d73bbcd1a80626a31035a12410804_spin";function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v=["role","spin","component","className","style","children"];function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){var n;return n=function(e,t){if("object"!=m(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==m(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var _=function(e){var t=e.role,r=void 0===t?"img":t,n=e.spin,i=e.component,o=e.className,a=e.style;e.children;var c=P(e,v);return s.createElement("span",h({role:r,className:d(p,g({},f,n),o),style:b({},a)},c),i)};function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(this,arguments)}_.displayName="AdcIcon";var w=function(e){return s.createElement(_,E({spin:!1,component:s.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",focusable:"false",color:"currentColor",fill:"currentColor",className:"","data-icon":"arrow-up"},s.createElement("g",{clipPath:"url(#0ccca)"},s.createElement("g",null,s.createElement("path",{fillOpacity:1,fillRule:"evenodd",d:"M14.99999875,7.914250634155273L8.70717875,14.207090634155273L7.29296875,12.792860634155273L16.00007875,4.0857658386552735L24.70716875,12.792860634155273L23.29296875,14.207090634155273L16.99999875,7.9141006341552735L16.99999875,27.999990634155274L14.99999875,27.999990634155274L14.99999875,7.914250634155273Z"}))))},e))};function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e){var t=function(e,t){if("object"!=x(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==x(t)?t:t+""}function O(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e,t,r,n,i,o,a){try{var c=e[o](a),s=c.value}catch(l){return void r(l)}c.done?t(s):Promise.resolve(s).then(n,i)}function I(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){C(o,n,i,a,c,"next",e)}function c(e){C(o,n,i,a,c,"throw",e)}a(void 0)})}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){if(e){if("string"==typeof e)return N(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(e,t):void 0}}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],s=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(u){l=!0,i=u}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var j,D={exports:{}},T={exports:{}};(j=T).exports=function(e,t){this.v=e,this.k=t},j.exports.__esModule=!0,j.exports.default=j.exports;var L=T.exports,M={exports:{}},U={exports:{}};!function(e){function t(r,n,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(c){a=0}e.exports=t=function(e,r,n,i){function o(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(U);var B=U.exports;!function(e){var t=B;function r(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var n,i,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.toStringTag||"@@toStringTag";function s(e,r,o,a){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return t(s,"_invoke",function(e,t,r){var o,a,c,s=0,u=r||[],d=!1,p={p:0,n:0,v:n,a:f,f:f.bind(n,4),d:function(e,t){return o=e,a=0,c=n,p.n=t,l}};function f(e,t){for(a=e,c=t,i=0;!d&&s&&!r&&i<u.length;i++){var r,o=u[i],f=p.p,m=o[2];e>3?(r=m===t)&&(c=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=n):o[0]<=f&&((r=e<2&&f<o[1])?(a=0,p.v=t,p.n=o[1]):f<m&&(r=e<3||o[0]>t||t>m)&&(o[4]=e,o[5]=t,p.n=m,a=0))}if(r||e>1)return l;throw d=!0,t}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),a=u,c=m;(i=a<2?n:c)||!d;){o||(a?a<3?(a>1&&(p.n=-1),f(a,c)):p.n=c:p.v=c);try{if(s=2,o){if(a||(r="next"),i=o[r]){if(!(i=i.call(o,c)))throw TypeError("iterator result is not an object");if(!i.done)return i;c=i.value,a<2&&(a=0)}else 1===a&&(i=o.return)&&i.call(o),a<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),a=1);o=n}else if((i=(d=p.n<0)?c:e.call(t,p))!==l)break}catch(v){o=n,a=1,c=v}finally{s=1}}return{value:i,done:d}}}(e,o,a),!0),s}var l={};function u(){}function d(){}function p(){}i=Object.getPrototypeOf;var f=[][a]?i(i([][a]())):(t(i={},a,function(){return this}),i),m=p.prototype=u.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,t(e,c,"GeneratorFunction")),e.prototype=Object.create(m),e}return d.prototype=p,t(m,"constructor",p),t(p,"constructor",d),d.displayName="GeneratorFunction",t(p,c,"GeneratorFunction"),t(m),t(m,c,"Generator"),t(m,a,function(){return this}),t(m,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:s,m:v}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(M);var V=M.exports,F={exports:{}},Q={exports:{}},q={exports:{}};!function(e){var t=L,r=B;e.exports=function e(n,i){function o(e,r,a,c){try{var s=n[e](r),l=s.value;return l instanceof t?i.resolve(l.v).then(function(e){o("next",e,a,c)},function(e){o("throw",e,a,c)}):i.resolve(l).then(function(e){s.value=e,a(s)},function(e){return o("throw",e,a,c)})}catch(u){c(u)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,r){function n(){return new i(function(t,n){o(e,r,t,n)})}return a=a?a.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}(q);var K=q.exports;!function(e){var t=V,r=K;e.exports=function(e,n,i,o,a){return new r(t().w(e,n,i,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}(Q);var G=Q.exports;!function(e){var t=G;e.exports=function(e,r,n,i,o){var a=t(e,r,n,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports}(F);var Y=F.exports,X={exports:{}};!function(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports}(X);var J=X.exports,z={exports:{}},H={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(H);var W=H.exports;!function(e){var t=W.default;e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}(z);var $=z.exports;!function(e){var t=L,r=V,n=Y,i=G,o=K,a=J,c=$;function s(){var l=r(),u=l.m(s),d=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function m(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,f[e],t)},delegateYield:function(e,i,o){return t.resultName=i,r(n.d,c(e),o)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=s=function(){return{wrap:function(e,t,r,n){return l.w(m(e),t,r,n&&n.reverse())},isGeneratorFunction:p,mark:l.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:o,async:function(e,t,r,o,a){return(p(t)?i:n)(m(e),t,r,o,a)},keys:a,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}(D);var Z=(0,D.exports)(),ee=Z;try{regeneratorRuntime=Z}catch(gr){"object"==typeof globalThis?globalThis.regeneratorRuntime=Z:Function("r","regeneratorRuntime = r")(Z)}const te=A(ee);function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function ie(e,t,r){return t&&ne(e.prototype,t),r&&ne(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var oe=function(e,t){return new URLSearchParams(e).get(t)},ae=function(){var e=!!navigator.userAgent.toLowerCase().match(/(android|iphone|ipod|windows\sphone)/gm);return{isMobile:e||window.innerWidth<1056,isPhone:e}},ce=function(){return ie(function e(){re(this,e),O(this,"cache",void 0),window.__good_cache_data||(window.__good_cache_data={}),this.cache=window.__good_cache_data},[{key:"setDelivery",value:function(e,t){this.cache["_delivery_".concat(e)]=t}},{key:"getDelivery",value:function(e){return this.cache["_delivery_".concat(e)]}},{key:"setGood",value:function(e,t){this.cache["_good_".concat(e)]=t}},{key:"getGood",value:function(e){return this.cache["_good_".concat(e)]}}])}();function se(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||R(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var le={RAM_USER_HAS_NOT_FOR_PRICE:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u63a7\u5236\u53f0\u6388\u6743\uff0c\u9700\u8981\u6388\u6743\u7684Action\u4e3a\uff1abss:QueryPrice",FC_USER_HAS_NOT_FOR_PRICE:"\u60a8\u6ca1\u6709\u6743\u9650\u8be2\u4ef7\uff0c\u8bf7\u8054\u7cfb\u4e3b\u8d26\u53f7\u524d\u5f80\u8d39\u7528\u4e2d\u5fc3\u6388\u6743\uff0c\u9700\u6388\u6743\u7684\u6743\u9650\u70b9code\u4e3a\uff1aqueryprice"},ue={cloud_efficiency:"\u9ad8\u6548\u4e91\u76d8",cloud_essd:"ESSD\u4e91\u76d8",cloud_ssd:"SSD\u4e91\u76d8",cloud_essd_entry:"ESSD Entry",cloud_auto:"ESSD AutoPL"},de="\u4f01\u4e1a\u4e13\u4eab",pe="\u65b0\u4eba\u4e13\u4eab",fe="\u4e2a\u4eba\u4e13\u4eab",me={"12:Month":"1\u5e74","24:Month":"2\u5e74","36:Month":"3\u5e74"},ve="".concat("\xa5","***"),he=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(void 0===e)return"";var r=Number(e);return(Math.round(r*Math.pow(10,t-2))/Math.pow(10,t)).toFixed(t)},ye=function(e){var t=e.unit,r=e.digital,n=e.money,i=e.noPermission,o=void 0!==i&&i,a=e.ignorePermission,c=void 0!==a&&a,s=e.defaultCondition,l=void 0===s?function(){}:s;return o&&!c?ve:[void 0,null].includes(n)||l()?"":function(e){var t=e.currency,r=void 0===t?"\xa5":t,n=e.money,i=void 0===n?"":n,o=e.unit,a=void 0===o?"":o;return"".concat(r).concat(i).concat(a)}({money:he(n,r),unit:t})},be=function(e){var t=e.articleItemResults,r=0,n=0,i=0;return t.forEach(function(e){e.price&&2!==e.chargeType&&e.price.discountedPrice>-1&&(r||(r=0),n||(n=0),r+=e.price.discountedPrice||0,n+=e.price.totalPrice||0,i+=e.price.discount||0)}),{discountedPrice:r,totalPrice:n,discount:i}},ge=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,i=t.code,o=t.price,a=t.priceAdjustTime,c=(null==t?void 0:t.depreciateInfo)||{},s=r,l=null==e?void 0:e.isPackage,u=null==e?void 0:e.isPostPay,d=null==e?void 0:e.isResourcePackage;if(!(l||o&&void 0!==o.discountedPrice))return{};u&&o.unit&&(s=o.unit.replace("\u5143","")),d&&(s="");var p=null,f=null,m=0,v=null;if(l){var h=t.articleItemResults,y=be({articleItemResults:void 0===h?[]:h});p=y.discountedPrice,f=y.totalPrice,m=y.discount}else f=o.totalPrice,p=o.discountedPrice,m=o.discount,v=o.channelPrice;var b=ye({ignorePermission:!0,noPermission:!!i,money:f,unit:s,digital:n}),g=ye({noPermission:!!i,money:p,unit:s,digital:n}),P=ye({noPermission:i&&v,money:v,unit:s,digital:n}),_=ye({ignorePermission:!0,money:c.listPrice,unit:s,digital:n,defaultCondition:function(){return c.listPrice<=0}}),E=o.cheapStandAmount,w=ye({ignorePermission:!0,money:E,unit:s,digital:n,defaultCondition:function(){return E<=0}}),x=void 0!==c.cheapRate&&null!==c.cheapRate?"".concat(Math.round(1e4*c.cheapRate)/100,"%"):"";return{dailyPrice:b,promotionPrice:g,discount:ye({ignorePermission:!0,money:m,unit:s,digital:n,defaultCondition:function(){return m<=0}}),hasDiscount:m>0,queryFailCode:i||"",codeContent:le[i],channelPrice:P,listPrice:_,cheapStandAmount:w,cheapRate:x,isContractActivity:c.isContractActivity||!1,priceAdjustTime:a}},Pe=function(e){if(!e)return{};var t=e.indexOf("\uffe5")>-1?"\uffe5":"\xa5",r=e.split(t),n=(r[1]||r[0]).split("/"),i=n[0].split("."),o="";return n&&n.length>0&&n.splice(0,1),n&&n.length>0&&(o=n.join("/")),{symbol:"\uffe5",integer:i[0]||"0",decimal:i[1]||"00",unit:o}};function _e(e){if(!e)return"";var t=S(e.match(/^(\D*)(\d+)(\.\d+)?(.*)$/),5),r=t[1],n=t[2],i=void 0===n?"":n,o=t[3],a=void 0===o?".00":o,c=t[4],s=void 0===c?"":c,l=s;if(/\//.test(l)){var u=(l=s.replace(/\s/g,"").replace(/^\//,"")).split("/");u.length>2&&(u.length=2),l=u.join("/")}var d="";return i&&(d=(r||"\uffe5")+i+a),l&&(d+="/".concat(l)),/\/\u5143/.test(d)&&(d=d.replace(/\/\u5143/,"")),d}function Ee(){return we.apply(this,arguments)}function we(){return(we=I(te.mark(function e(){return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.$ACE){e.next=2;break}return e.abrupt("return",window.$ACE);case 2:return e.next=4,ke("//g.alicdn.com/??aliyun/util/".concat("1.2.30","/index.js"));case 4:return e.abrupt("return",window.$ACE);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}window.$ACE_LOADER=Ee;const xe={then:function(e){return Ee().then(e)}};function ke(e){return Oe.apply(this,arguments)}function Oe(){return(Oe=I(te.mark(function e(t){var r,n;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=document.getElementsByTagName("head")[0],(n=document.createElement("script")).setAttribute("type","text/javascript"),n.setAttribute("src",t),r.appendChild(n),e.abrupt("return",new Promise(function(e){n.onload=function(){e()}}));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ce(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Ie=function(e){return e.DailyDiscount="dailyDiscount",e.NinetyNinePrice="99Price",e.DoubleDiscount="doubleDiscount",e}({}),Ne=function(e){return e.DoubleDiscount="doubleDiscount",e}({});function Re(e){return Se.apply(this,arguments)}function Se(){return Se=I(te.mark(function e(t){var r,n,i,o,a,c,l,u,d,p,f,m,v,h,y,b,g,P,_,E,w,x,k,O,C,N,R,S,A,j,D,T=arguments;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=T.length>1&&void 0!==T[1]?T[1]:{},n=T.length>2?T[2]:void 0,i=!(T.length>3&&void 0!==T[3])||T[3],o=T.length>4?T[4]:void 0,a=t.isBuy,c=t.buyUrl,l=r.btnType||"pay",u=r.orderParams||{},1!==a||!c){e.next=1;break}return window.open(c,"_blank")||setTimeout(function(){window.open(c,"_blank")},50),e.abrupt("return");case 1:if(d=t._promationPriceResult,p=(void 0===d?{}:d).needCertifiedType,"individual_business"===(f=null==n?void 0:n.certifyAccountType)&&(f="enterprise"),!i||!p||"all"===p||f===p||!o&&!window.__ALIYUN_EXPERIENCE_ELEMENT__){e.next=4;break}return m="enterprise"===p,v=ae().isMobile,h="\u5f53\u524d\u4ef7\u683c\u9650\u4e2a\u4eba\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4e2a\u4eba\u8d26\u53f7\u8d2d\u4e70\u6216\u76f4\u63a5\u8d2d\u4e70\u3002",m&&(h=v?"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u6309\u4e2a\u4eba\u7528\u6237\u4ef7\u683c\u76f4\u63a5\u8d2d\u4e70":"\u5f53\u524d\u4ef7\u683c\u9650\u4f01\u4e1a\u5ba2\u6237\u4e13\u4eab\uff0c\u60a8\u767b\u5f55\u7684\u8d26\u53f7\u4e3a\u4e2a\u4eba\u8ba4\u8bc1\u8d26\u53f7\uff0c\u8bf7\u66f4\u6362\u4f01\u4e1a\u8d26\u53f7\u8d2d\u4e70\uff0c\u6216\u5c06\u8be5\u8d26\u53f7\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1\u3002"),e.prev=2,y=o||window.__ALIYUN_EXPERIENCE_ELEMENT__,b=y.Dialog,g=y.Button,P=b.show({v2:!0,title:"\u6e29\u99a8\u63d0\u793a",content:h,footer:s.createElement("div",{className:"marketing-goods-dialog-footer"},m&&!v&&s.createElement("a",{href:"https://account.console.aliyun.com/v2/?#/authc/home",target:"_blank",style:{marginRight:10}},s.createElement(g,{type:"primary"},"\u53d8\u66f4\u4e3a\u4f01\u4e1a\u8ba4\u8bc1")),s.createElement(g,{type:m&&v?"primary":"secondary",onClick:function(){P.hide(),Re(t,r,n,!1,o)}},"cart"===l?"\u52a0\u5165\u8d2d\u7269\u8f66":"\u76f4\u63a5\u8d2d\u4e70"))}),e.abrupt("return");case 3:e.prev=3,e.catch(2);case 4:if(_=t._promationPriceResult.promotionResults,!((E=Object.keys(_))&&E.length>0)){e.next=11;break}return e.prev=5,w=[],E.forEach(function(e){var t,r=_[e],n=null==r||null===(t=r.promotionOption)||void 0===t||null===(t=t.activityExtInfo)||void 0===t?void 0:t.activityId;n&&w.push(n)}),w=Array.from(new Set(w)),x=o||window.__ALIYUN_EXPERIENCE_ELEMENT__,k=x.Dialog,O=x.Button,e.next=6,xe;case 6:return C=e.sent,e.next=7,C.get("Promotion");case 7:return N=e.sent,R=N.Verify,S=oe(window.location.search,"preVerify"),e.next=8,Promise.all(w.map(function(e){return R.queryRisk(e,"1"===S)}));case 8:if(!(e.sent.some(function(e){return!e.status})&&k&&O)){e.next=9;break}return A=k.show({v2:!0,title:"\u6e29\u99a8\u63d0\u793a",content:s.createElement("span",null,"\u7cfb\u7edf\u68c0\u6d4b\u5230\u60a8\u7684\u8d26\u53f7\u65e0\u6cd5\u53c2\u52a0\u6b64\u4f18\u60e0\u6d3b\u52a8\uff0c\u60a8\u53ef\u63d0\u4ea4\u6750\u6599\u8fdb\u884c\u7533\u8bc9\uff0c\u7533\u8bc9\u901a\u8fc7\u540e\u53ef\u53c2\u52a0\u6d3b\u52a8"),footer:s.createElement("div",{className:"marketing-goods-dialog-footer"},s.createElement(O,{type:"primary",onClick:function(){A.hide(),window.open("https://smartservice.console.aliyun.com/service/self-service-center/search?id=27874&mode=toolPage&trackFrom=topic-MICRO_APP","_blank")}},"\u524d\u5f80\u63d0\u4ea4"))}),e.abrupt("return");case 9:e.next=11;break;case 10:e.prev=10,e.catch(5);case 11:if(t.product){e.next=12;break}return e.next=12,t.init();case 12:if(!(j=t.children)||!j.length){e.next=13;break}return e.next=13,Promise.all(j.map(function(){var e=I(te.mark(function e(t){var r;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=0,t&&t.selectedCardIndex&&(r=t.selectedCardIndex),!t||t.product){e.next=1;break}return e.next=1,t.init();case 1:t&&t.product&&t.product.setSKU(r);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 13:if(D={id:t?"".concat(0,".",t.goodsId,".").concat(t.goodsId):null,bizChannel:"",fromApp:"",orderParams:u,buttons:[l],moduleVersion:3},!t.isPackage){e.next=15;break}return t.product.setPackageName(t.name),t.product.setPackageGoods(j),e.next=14,t.product.startPackagePopUpBuy(D);case 14:e.next=16;break;case 15:return t.product.setSKU(t.selectedCardIndex),e.next=16,t.product.popUpBuy(D);case 16:case"end":return e.stop()}},e,null,[[2,3],[5,10]])})),Se.apply(this,arguments)}var Ae=function(e){return e.FlashSale="flash_sale_activity_id",e.LowPrice="low_price_activity_id",e}({}),je=function(e){return e[e.PostPay=2]="PostPay",e[e.PrePay=1]="PrePay",e}({});function De(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Te=function(e){var t=e.good,r=e.order,n=void 0===r?0:r,i=t.commodityCode,o=t.goodsId,a=t.id;return"".concat(i,".").concat(o||a,".").concat(n)},Le=function(e){var t=e.goodsList,r=void 0===t?[]:t,n=e.planCode,i=void 0===n?"":n;return r.map(function(e,t){return new ct({good:e,planCode:i,order:t})})},Me=function(e){var t=e.articleItemResults,r=e.activityChannel,n=e.promotionPriceData,i=(null==t?void 0:t.length)>0?t[0]:{};if(r&&i&&i.price){var o,a=(null==n||null===(o=n.articleItemResults)||void 0===o?void 0:o.length)>0?null==n?void 0:n.articleItemResults[0]:{},c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?De(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):De(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},(null==i?void 0:i.price)||{});i.price=null==a?void 0:a.price,i.price.channelPrice=null==c?void 0:c.discountedPrice,i.price.channelTotalPrice=null==c?void 0:c.discountedTotalPrice,i.price.channelDiscount=null==c?void 0:c.discount}if(i&&i.price){var s,l,u=i.depreciateInfo,d=void 0===u?{}:u;if(d){var p=d.isContractActivity,f=d.contractActivity;if(p){var m=(void 0===f?{}:f).finalFee;i.price.cheapStandAmount=m||i.price.totalPrice}else i.price.cheapStandAmount=d.cheapStandAmount||d.originalStandAmount;i.price.listPrice=d.listPrice}var v=function(e){if(e){var t=Object.entries(e).find(function(e){var t,r=e[1];return(null==r||null===(t=r.promotionOption)||void 0===t?void 0:t.levelCategory)===Ne.DoubleDiscount});if(t){var r=t[1].promotionOption,n=void 0===r?{}:r;return{doubleDiscount:n.discount,remainDiscountQuota:n.remainDiscountQuota}}}}(null==n?void 0:n.promotionResults);v&&(i.price.doubleDiscount=v.doubleDiscount,i.price.remainDiscountQuota=v.remainDiscountQuota),i.price.activityDiscount=null!=v&&v.doubleDiscount&&null!=i&&null!==(s=i.price)&&void 0!==s&&s.discount?i.price.discount-v.doubleDiscount:null==i||null===(l=i.price)||void 0===l?void 0:l.discount}return i},Ue=function(e){var t=(null==e?void 0:e.articleItemResults)||[],r={discountedPrice:0,totalPrice:0,discount:0},n=be({articleItemResults:t}),i=n.discountedPrice,o=n.totalPrice,a=n.discount;return r.discount=a||0,r.discountedPrice=i||0,r.totalPrice=o||0,r.totalPrice&&(r.listPrice=r.totalPrice),r.discount&&(r.activityDiscount=r.discount),r},Be=function(e,t){var r=e.filter(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).price,t=void 0===e?{}:e;return t&&t.discountedPrice>=0&&t.unitPrice>0}),n=[];return r&&r.length>0&&r.forEach(function(e,r){var i=Me({articleItemResults:[e]}),o=i.name,a=i.depreciateInfo,c=i.price;n.push({id:"".concat(r,"-").concat(o),name:o,depreciateInfo:a||{},price:c,priceAdjustTime:t})}),n},Ve=function(){var e=I(te.mark(function e(t,r){var n,i,o;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object.keys(t),i=Object.keys(r),n&&n.length>0?n.forEach(function(e){i.forEach(function(t){e===t&&(o=e)})}):o=i&&i.length>0?i[0]:"",e.abrupt("return",{labelItemKey:o,hasPromotion:i&&i.length>0});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}();const Fe=function(e){var t=e||{},r=t.enterpriseUserOnly,n=t.personalUserOnly;return t.newUserOnly?{type:"newUser",text:pe}:r?{type:"enterprise",text:de}:n?{type:"personal",text:fe}:null},Qe=function(e,t,r){var n=e;return"12:Month"===t?n="1\u5e74":"24:Month"===t?n="2\u5e74":"36:Month"===t&&(n="3\u5e74"),"systemdisk"===r&&ue[t]&&(n=ue[t]),n=n.replace(/([0-9]+)\s+/g,"$1")},qe=function(e,t){var r=e[t];return"systemdisk"===t?r=r.systemdiskCategory||r.systemDiskCategory:"vm_bandwidth"!==t&&"bandwidth"!==t||(r.internetMaxBandwidthOut||r.internetMaxBandwidthOut>-1)&&(r=r.internetMaxBandwidthOut),r},Ke=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.defaultValues,n=t.isPackage,i=t.selectedCardIndex,o=t.children;return n?(e=[],o.forEach(function(t,r){t.defaultValues.forEach(function(n){if(n.cardIndex===t.selectedCardIndex){var i=n.orderParams;i.uniqLabel=t.uniqKey||Te({good:t,order:r}),e.push(i)}})})):(r.forEach(function(r){r.cardIndex===i&&((e=r.orderParams).uniqLabel=t.uniqKey||Te({good:t}))}),!e&&r[0]&&((e=r[0].orderParams).uniqLabel=t.uniqKey||Te({good:t}))),e};function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Xe=function(e){return"number"==typeof e?"".concat(e):e},Je=function(e,t,r,n,i,o){var a,c=[],s=[];if(e<t.length){var l=i[a=t[e].code];if(r.forEach(function(e){var t=e.value,r=e.orderParams;if(t){var n=Object.keys(t);if(!n||n.length<1)return!1;var i,o,s=qe(t,a);if("instance_type"!==a)i=null==r||null===(o=r.components)||void 0===o?void 0:o.find(function(e){return e.componentCode===a});i&&i.instanceProperty?function(e,t,r,n){var i=e.instanceProperty[0];if(i&&i.name&&!r.find(function(e){return e.value===t})){var o=Qe(i.name,t,n);r.push({text:o,label:o,value:Xe(t)})}}(i,s,c,a):function(e,t,r,n){e&&e.options&&e.options.length>0&&e.options.forEach(function(e){var i=e.value||e.defaultValue;if(!i||Xe(i)===Xe(t)){var o=function(e){var t="";return"string"==typeof e.text?t=e.text:e.text&&e.text.title&&(t=e.text.title),t}(e);if("instance_type"===n){var a=o.split(" ");a&&a.length>0&&(o=a[0])}var c=r.find(function(e){return Xe(e.value)===Xe(t)});if(o||(o=t),o&&!c){var s=Qe("".concat(o).concat(e.unit||""),t,n);r.push({text:s,label:s,value:Xe(i)})}}})}(l,s,c,a)}}),c&&c.length>0){var u=function(e,t,r,n){var i=0;return e&&e.forEach(function(e){e.code===t&&r.forEach(function(t,r){var o=n[e.code];Xe(t.value)===o&&(i=r)})}),i}(t,a,c,o),d=c[u];o[a]=Xe(d.value),r.forEach(function(e){var t=e.value;if(t){var r=Object.keys(t);if(!r||r.length<1)return!1;var n=qe(t,a);Xe(d.value)===Xe(n)&&s.push(e)}})}if(e<10){var p=s.length>0?s:r;Je(e+1,t,p,n,i,o)}}return a&&s.length>0&&(n[a]=c),s},ze="1"===oe(window.location.search,"prePrice")?"https://pre-t.aliyun.com":"https://t.aliyun.com",He={QUERY_PRICE:"".concat(ze,"/abs/promotion/queryPrice"),QUERY_PRICE_BATCH:"".concat(ze,"/abs/promotion/queryPriceBatch"),QUERY_PRICE_BATCH_STEALTH:"".concat(ze,"/abs/promotion/queryPriceBatchStealth")},We=function(e,t){var r=function(e){for(var t=null,r=0,n=[Ae.FlashSale,Ae.LowPrice];r<n.length;r++){var i=n[r];if(e[i]){t=i;break}}return t}(t),n=null;if(r&&(n=t[r]),n)switch(r){case Ae.FlashSale:return e.orderParams.flash_sale_activity_id=n,e.orderParams.no_coupons=!0,void(e.orderParams.watchActivityIdList=n);case Ae.LowPrice:return void(e.orderParams.watchActivityIdList=n);default:return}},$e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){if(null!=e&&e.orderParams||(e.orderParams={}),"object"===Object.prototype.toString.call(e.orderParams).slice(8,-1).toLowerCase()){var r=t.isManualQueryPrice,n=void 0!==r&&r;e.orderParams.pricing_trigger_type=n?"manual":"default"}return e}},Ze=function(e){var t,r=e.goodsId,n=e.orderParams,i=void 0===n?{}:n,o=e.planId,a=e.activityId,c=e.orderParamsOption,s=e.isBatch,l=void 0!==s&&s;Array.isArray(i)?(a&&i.forEach(function(e){We(e,a)}),i.forEach(function(e){$e(e,c)}),t=i):(a&&We(i,a),$e(i,c),t=[i]);var u={commodityId:r,commodities:t};return o&&(u.planId=o),l&&(u.bizOccasion="queryPrice"),u};const et=function(){var e=I(te.mark(function e(t){var r,n,i,o,a,c,s,l,u,d,p,f,m,v;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.goodsId,n=t.orderParams,i=void 0===n?{}:n,o=t.planId,a=t.activityChannel,c=t.stealth,s=t.activityId,l=t.orderParamsOption,d=Ze({goodsId:r,orderParams:i,planId:o,activityId:s,orderParamsOption:void 0===l?{}:l}),p=He.QUERY_PRICE,a?(p=He.QUERY_PRICE_BATCH,c&&(p=He.QUERY_PRICE_BATCH_STEALTH),f=JSON.stringify(d),(f=JSON.parse(f)).commodities.forEach(function(e){e&&e.orderParams&&(e.orderParams.no_coupons=!0,e.orderParams.aliyunActivityChannel=a)}),(m=[]).push(f),m.push(d),u=JSON.stringify(m)):(c&&(p="".concat(ze,"/abs/promotion/queryPriceStealth")),u=JSON.stringify(d)),e.next=1,xe.then(function(){var e=I(te.mark(function e(t){return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.Request.post(p,{param:u});case 1:v=e.sent;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:return e.abrupt("return",v);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var tt=function(e){var t=e;if(e){var r=t.split(" ");if(r&&r.length>0&&"string"==typeof r[0]){var n=[];r[0].split("-").forEach(function(e){n.push(1*e)}),t=n.join(".")}}return t},rt=function(){var e=I(te.mark(function e(t){var r,n,i,o,a,c,s,l,u,d,p,f,m,v,h,y,b,g,P,_,E;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,n=t.activityChannel,i=t.planId,Array.isArray(r.data)&&n?(c=null===(s=r.data[0])||void 0===s?void 0:s.data,a=null===(l=r.data[1])||void 0===l?void 0:l.data,o=r.data[0].code||200):(a=r.data,o=r.code),d=(null==(u=c||a)?void 0:u.promotionResults)||{},p=(null==u?void 0:u.promotionLabelInfo)||{},e.next=1,Ve(p,d);case 1:return f=e.sent,m=f.labelItemKey,v=f.hasPromotion,h=null==u?void 0:u.articleItemResults,y={},i?(b=Ue(u),y={price:b,hasPromotion:v,articleItemResults:h,promotionResults:d}):(P=Me({articleItemResults:h,activityChannel:n,promotionPriceData:a}),_=tt((null==P||null===(g=P.depreciateInfo)||void 0===g?void 0:g.startTime)||""),y={price:P.price,promotionResults:d,promotionLabelInfo:p,depreciateInfo:(null==P?void 0:P.depreciateInfo)||{},labelItemKey:m,hasPromotion:v,priceAdjustTime:_,watchActivityResultList:null==P?void 0:P.watchActivityResultList},(E=P.chargeType===je.PostPay)&&(y.isPostPay=E,y.postPayModules=Be(P.moduleResults,_))),200!==o&&-1!==Object.keys(le).indexOf(o)&&(y.code=o),e.abrupt("return",y);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();const nt=function(){var e=I(te.mark(function e(t){var r,n,i,o;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.planId,n=t.activityChannel,e.next=1,et(t);case 1:return i=e.sent,e.next=2,rt({data:i,activityChannel:n,planId:r});case 2:return o=e.sent,e.abrupt("return",o);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var it=["refresh"];function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ct=function(){return ie(function e(t){var r,n=this,i=t.good,o=t.planCode,a=t.order,c=void 0===a?0:a;re(this,e),O(this,"sku",[]),O(this,"scm",void 0),O(this,"title",void 0),O(this,"name",void 0),O(this,"description",void 0),O(this,"productCode",void 0),O(this,"commodityCode",void 0),O(this,"goodsId",void 0),O(this,"mcm_code",void 0),O(this,"mcm_id",void 0),O(this,"selectSkuId",0),O(this,"children",void 0),O(this,"parent",void 0),O(this,"_rawGood",void 0),O(this,"price",void 0),O(this,"postPayPrice",void 0),O(this,"commodityType",void 0),O(this,"isBuy",void 0),O(this,"buyUrl",void 0),O(this,"productDetailLink",void 0),O(this,"commodityDetailUrl",void 0),O(this,"isPackage",!1),O(this,"packagecode",void 0),O(this,"planId",void 0),O(this,"goodsType",void 0),O(this,"planItemId",void 0),O(this,"defaultValues",[]),O(this,"product",void 0),O(this,"_commodityKeys",void 0),O(this,"_checkedFeatureList",void 0),O(this,"_promationPriceResult",void 0),O(this,"commodity",void 0),O(this,"selectedCardIndex",0),O(this,"selectedComponentValue",{}),O(this,"isPostPay",void 0),O(this,"hasPostPay",void 0),O(this,"activityId",void 0),O(this,"isResourcePackage",void 0),O(this,"uniqKey",void 0),O(this,"planInstanceIsRequired",void 0),O(this,"orderParamsOption",{isManualQueryPrice:!1}),O(this,"_displayComponents",void 0),O(this,"_promotionTags",void 0),O(this,"_staticLoaded",void 0),O(this,"_staticLabels",void 0),O(this,"getTimeUnit",function(e){var t=e.orderParams,r="";if(!e.isPostPay){var i=t?me["".concat(t.duration,":").concat(t.pricingCycle)]:"";r=n.formatTime(i,t)}return r}),i&&i.defaultValues&&i.defaultValues.forEach(function(e){var t=e.values;t&&t.forEach(function(e){n.sku.push({config:e.value})})}),this.uniqKey=Te({good:i,order:c}),this._rawGood={commodityCode:i.commodityCode,specCode:i.itemCode,productCode:i.productCode,accessories:{commodityCode:i.commodityCode,specCode:i.itemCode,productCode:i.productCode,commodity:i.modules?i.modules.commodity:void 0},title:i.itemName,name:i.itemName,sku:this.sku,goodsId:i.id,id:i.id,itemId:i.itemId,actPromotionCommodityAttributeList:i.actPromotionCommodityAttributeList},o&&this._rawGood&&(this._rawGood.accessories.planCode=o),this._staticLoaded=i.staticLoaded||i.defaultValues&&i.defaultValues.length>-1,this.scm=i.scm,this.productCode=i.productCode,this.commodityCode=i.commodityCode,this.goodsId=i.id,this.mcm_code="".concat(this.productCode,".").concat(this.commodityCode),this.mcm_id="".concat(0,".",i.id,".").concat(i.id),this.selectSkuId=0,this.children=i.children||[],this.children.forEach(function(t){t instanceof e&&(t.setParent(n),t.selected=!0)}),this.title=i.itemName,this.name=i.itemName,this.description=i.description;var s,l,u=i.defaultValues||[];this.setDefaultValues(i.defaultValues),this.commodity=(s=i.modules,l=null,s&&s.commodity?l=s.commodity:s&&s.domainParams&&(l=s.domainParams),l),this.price=i.price;var d=i.actPromotionCommodityAttributeList,p=mt(d,"post_pay_expenses_item");this.postPayPrice=p&&JSON.parse(p);var f=mt(d,"market_commodity_labels");this._staticLabels=f&&f.split(",")||[],this.commodityType=i.commodityType,this.isBuy=i.isBuy,this.buyUrl=i.buyUrl,this.productDetailLink=i.productDetailLink,this.commodityDetailUrl=i.commodityDetailUrl,this.hasPostPay=i.hasPostPay;var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("plan"===e.comType){var r=e.actPromotionCommodityAttributeList,n=mt(void 0===r?[]:r,"ntm_plan_id"),i=n&&Number(n)||void 0,o=e.commodityCode;return t&&(t.accessories.goodsType="startPackage",t.accessories.planCode=e.commodityCode),{goodsType:"startPackage",isPackage:!0,packagecode:o,planId:i,_rawGood:t}}if("plan_commodity"===e.comType){var a=e.actPromotionCommodityAttributeList.find(function(e){return"planItemId"===e.attrCode}),c=(null==a?void 0:a.attrValue)&&1*a.attrValue||null;t&&(t.accessories.planItemId=c);var s="boolean"!=typeof e.planInstanceIsRequired||e.planInstanceIsRequired;return t.accessories.defaultChecked=!0,{_rawGood:t,planInstanceIsRequired:s}}return!1}(i,this._rawGood);if(Object.assign(this,m),this._commodityKeys=this.resetCommodityKeys((null===(r=u[0])||void 0===r?void 0:r.selectedCommodityKeys)||[]),!this.isPackage){var v={};if(this.commodity){Je(0,this._commodityKeys,this.defaultValues,v,this.commodity,this.selectedComponentValue);var h=Object.keys(v);h&&h.length<3&&(v=this.groupStaticModule(v))}else v=this.groupStaticModule(v);this._displayComponents=v}var y=S([Ae.FlashSale,Ae.LowPrice].map(function(e){return mt(d,e)}),2),b=y[0],g=y[1];(b||g)&&(this.activityId=O(O({},Ae.FlashSale,b),Ae.LowPrice,g));var P=this.getPromationCommodity(i,"commodity_sub_type");P&&(this.isResourcePackage="resourcePackageCommodity"===P)},[{key:"getPromationCommodity",value:function(e,t){var r=e.actPromotionCommodityAttributeList,n=void 0===r?[]:r,i=n&&n.find(function(e){return e.attrCode===t});return i&&i.attrValue}},{key:"setDefaultValues",value:function(e){var t,r=[];e&&(e.forEach(function(e,t){if(0===t){var n=e.values;n&&n.forEach(function(e,t){r.push(at(at({},e),{},{cardIndex:t}))})}}),this.defaultValues=r,this._checkedFeatureList=null===(t=e[0])||void 0===t?void 0:t.checkedFeatureList)}},{key:"init",value:(i=I(te.mark(function e(){var t=this;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,xe.then(function(){var e=I(te.mark(function e(r){var n,i;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.get("GoodsService");case 1:n=e.sent,i=n.getProduct(t._rawGood),t.product=i;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"setSku",value:function(e){this.selectSkuId=e}},{key:"handlePopUpBuy",value:(n=I(te.mark(function e(t,r){var n=this;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return!window.__ALIYUN_EXPERIENCE_REACT__&&window.React&&(window.__ALIYUN_EXPERIENCE_REACT__=window.React),!window.__ALIYUN_EXPERIENCE_REACT_DOM__&&window.ReactDOM&&(window.__ALIYUN_EXPERIENCE_REACT_DOM__=window.ReactDOM),e.next=1,xe.then(function(){var e=I(te.mark(function e(i){var o,a,c,s,l;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,i.get("Account");case 1:return o=e.sent,e.next=2,ft();case 2:if(a=e.sent){e.next=3;break}return o.toLogin(),e.abrupt("return");case 3:if(!a||null!==a.certifyAccountType){e.next=4;break}return c=n._promationPriceResult,s=(void 0===c?{}:c).needCertifiedType,l={title:"\u6e29\u99a8\u63d0\u793a"},"personal"!==s&&"enterprise"!==s||(l.subjectType=s),o.toCertificate(l),e.abrupt("return");case 4:return e.next=5,Re(n,t,a,!0,r);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})},{key:"addCart",value:(r=I(te.mark(function e(){var t,r,n=arguments;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},r=n.length>1?n[1]:void 0,e.next=1,this.handlePopUpBuy({orderParams:null==t?void 0:t.orderParams,btnType:"cart"},r);case 1:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"resetCommodityKeys",value:function(e){var t,r=this.commodity,n=[],i=this.defaultValues;(r&&i&&i.length>0&&i.forEach(function(t){if(t.orderParams){var i=t.orderParams.components;i&&(i.forEach(function(t){e.find(function(e){return t.componentCode===e})&&r[t.componentCode]&&(n.find(function(e){return e.code===t.componentCode})||n.push({code:t.componentCode,name:r[t.componentCode].name}))}),["order_time","ord_time","order_num"].forEach(function(t){e.find(function(e){return e===t})&&r[t]&&(n.find(function(e){return e.code===t})||n.push({code:t,name:r[t].name}))}))}}),!r||n&&n.length<3)&&((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){e&&e.checked&&n.length<3&&n.push({code:e.code,name:e.name})});return n}},{key:"groupStaticModule",value:function(e){var t,r=this,n=at({},e);return((null===(t=this._checkedFeatureList)||void 0===t?void 0:t.list)||[]).forEach(function(e){if(e&&e.checked){var t=r._checkedFeatureList.options.find(function(t){return t.value===e.code});t&&(n[e.code]=[{text:t.text,label:t.label,value:t.text}])}}),n}},{key:"getTitle",value:function(){return this.title}},{key:"getDescription",value:function(){return this.description}},{key:"hasLoaded",value:function(){return this._staticLoaded}},{key:"getDisplayComponents",value:function(){var e=this;if(!this.isPackage){var t=this._commodityKeys,r=this._displayComponents,n=[];return t.forEach(function(t){r[t.code]&&n.push({label:t,options:r[t.code],target:e})}),n}var i=[];return this.children.forEach(function(e){var t=e.getDisplayComponents();t&&(i=[].concat(se(i),se(t)))}),i.splice(0,3)}},{key:"formatTime",value:function(e,t){return!this.isPackage&&t?e?"/".concat(e):"/".concat(t.duration).concat(t.pricingCycleTitle):""}},{key:"setFormatPriceResult",value:function(e){var t,r,n=this,i=e.price,o=Ke(this),a=i.labelItemKey,c=i.promotionLabelInfo,s=i.promotionResults,l=i.hasPromotion,u=i.depreciateInfo,d=void 0===u?{}:u,p=i.articleItemResults,f=i.isPostPay,m=i.postPayModules,v=i.watchActivityResultList,h=this.getTimeUnit({orderParams:o,isPostPay:f}),y=ge({isPackage:this.isPackage,isResourcePackage:this.isResourcePackage},i,h),b=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0===Object.keys(r).length||!n)return{};var i=r,o={tags:[]},a=(null===(e=i[n])||void 0===e?void 0:e.display)||[],c=(null==i||null===(t=i.common)||void 0===t?void 0:t.display)||[];return o.tags=[].concat(se(a),se(c)),o}(c,a),g=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(0!==Object.keys(r).length){var i,o,a=(null==r||null===(e=r.common)||void 0===e?void 0:e.biz)||[],c=(null==r||null===(t=r.common)||void 0===t?void 0:t.extraInfo)||{},s=!1,l=!0,u=!0;try{var d=c.promotionBizLabels;for(var p in d)if(d.hasOwnProperty(p)){var f=d[p];if(f.promotionId===n){i=f.orderNumLimit;break}}s=c.sameIdLimit,o=c.userTimes,a.forEach(function(e){"NO_COUPON"===e?l=!1:"NO_REFUND"===e&&(u=!1)})}catch(m){}return{orderNumLimit:i,isSameIdLimt:s,userTimes:o,isCoupon:l,isRefund:u}}}(c,a);this._promotionTags=null==b?void 0:b.tags;var P=a&&(null==s?void 0:s[a])||void 0,_=null==c||null===(t=c.common)||void 0===t?void 0:t.extraInfo,E=_||{},w=E.enterpriseUserOnly,x=E.personalUserOnly;f&&m&&m.length>0?(this.isPostPay=!0,m.forEach(function(e){e.code=i.code,e.formatPrice=ge({isPostPay:f,isResourcePackage:n.isResourcePackage},e,"",3)})):this.isPostPay=!1;var k=w?"enterprise":x?"personal":"all";i&&i.price&&h&&(i.price.pricingCycle=h.replace(/^\//,""));var O=[];return this.isPackage&&(O=function(e){var t=e.good,r=e.priceRes,n=t.children,i=r.articleItemResults,o=[];return n.forEach(function(e,n){var a=null==i?void 0:i.find(function(t){return t.tag===(e.uniqKey||Te({good:e,order:n}))});if(a){var c={tag:a.tag};a.code=r.code;var s=a.price,l=a.depreciateInfo,u=a.chargeType,d=a.moduleResults,p=u===je.PostPay,f=e.defaultValues.find(function(t){return t.cardIndex===e.selectedCardIndex}).orderParams,m=t.getTimeUnit({isPostPay:p,orderParams:f}),v=ge({isPackage:e.isPackage,isResourcePackage:e.isResourcePackage},a,m);if(c.price=s,c.formatPrice=v,c.isPostPay=p,p){var h=tt((null==l?void 0:l.startTime)||""),y=Be(d,h);y&&y.length>0&&y.forEach(function(t){t.code=null==r?void 0:r.code,t.formatPrice=ge({isPostPay:p,isResourcePackage:e.isResourcePackage},t,"",2)}),c.postPayModules=y}o.push(c)}else o.push(null)}),o}({good:this,priceRes:i})),this._promationPriceResult={promotionResults:s,price:null==i?void 0:i.price,promotionTags:this._promotionTags,depreciateInfo:d,formatPrice:y,promotionResult:P,hasPromotion:l,discountRule:g,is99Price:(null==P||null===(r=P.promotionOption)||void 0===r||null===(r=r.activityExtInfo)||void 0===r?void 0:r.discountScene)===Ie.NinetyNinePrice||!1,articleItemResults:p,needCertifiedType:k,isPostPay:f,postPayModules:m,crowdTag:Fe(_),watchActivityResultList:v,articlePriceResults:O},this._promationPriceResult}},{key:"checkStaticPrice",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.price,r=e.commodityType,n=e.commodity,i=e.postPayPrice;if("notcommonbuy_notselfcreate"===r||!n&&t&&t.length>0){var o={},a={};if(t.forEach(function(e){"daily_price"===e.code?a.totalPrice=e.value:"promotion_price"===e.code&&(a.discountedPrice=e.value)}),o={price:a,formatPrice:{promotionPrice:_e(a.discountedPrice),dailyPrice:_e(a.totalPrice)}},i&&i.length>0){var c=[];i.forEach(function(e){var t=e.daily_price,r=e.promotion_price,n=e.groupId,i=e.expenses_name,o=_e(t),a=_e(r),s={totalPrice:e.daily_price,dailyPrice:o,promotionPrice:a,discountedPrice:e.promotion_price};c.push({id:n,name:i,price:s,formatPrice:{promotionPrice:_e(s.discountedPrice),dailyPrice:_e(s.totalPrice)}})}),o=Ye(Ye({},o),{},{isPostPay:!0,postPayModules:c})}return o}return!1}(this);return!!e&&(this.isPostPay=!!e.isPostPay,at(at({},e),{},{promotionTags:this._staticLabels}))}},{key:"getPrice",value:(t=I(te.mark(function e(){var t,r,n,i,o,a,c,s=arguments;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:{},!(r=this.checkStaticPrice())){e.next=1;break}return e.abrupt("return",r);case 1:return n=t.activityChannel,i=t.stealth,o=t.needActivityId,a=Ke(this),e.next=2,dt({goodsId:this.goodsId,orderParams:a,planId:this.planId,activityChannel:n,stealth:i,activityId:o?this.activityId:void 0,orderParamsOption:this.orderParamsOption});case 2:return c=e.sent,e.abrupt("return",this.setFormatPriceResult({price:c}));case 3:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"getComboPrice",value:(e=I(te.mark(function e(t){var r,n,i,o,a,c,s,l,u,d,p,f,m,v,h,y,b,g,P,_,E,w,x,k,O;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(n=t||{}).refresh,o=Ce(n,it),a=this._promationPriceResult,!i){e.next=2;break}return e.next=1,this.getPrice(o);case 1:a=e.sent;case 2:if(this.isPackage){e.next=3;break}return e.abrupt("return",a);case 3:return c=Ke(this),s=this.getTimeUnit({orderParams:c,isPostPay:a.isPostPay}),l=this.children||[],u=null===(r=a.articleItemResults)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.code,d=a.articleItemResults.filter(function(e){var t=e.key,r=l.find(function(e){return e.uniqKey===t});return r&&r.selected}),p=be({articleItemResults:d}),f=p.discountedPrice,m=p.totalPrice,v=p.discount,y={unit:s,digital:2},b=[{noPermission:u,money:f},{noPermission:u,money:h=m||0},{ignorePermission:!0,money:m},{ignorePermission:!0,money:v,defaultCondition:function(){return v<=0}}].map(function(e){return e=Object.assign(y,e),ye(e)}),g=S(b,4),P=g[0],_=g[1],E=g[2],w=g[3],x={promotionPrice:P,listPrice:_,dailyPrice:E,activityDiscount:w},k=Object.assign(a.formatPrice||{},x),O=Object.assign(a.price||{},{discountedPrice:f,listPrice:h,totalPrice:m,discount:v,activityDiscount:v}),e.abrupt("return",at(at({},a),{},{price:O,formatPrice:k}));case 4:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"getStringValue",value:function(e){return"number"==typeof e?"".concat(e):e}},{key:"changeSku",value:function(e,t,r){var n=this;if(this.orderParamsOption.isManualQueryPrice=!0,this.selectedComponentValue[t]=this.getStringValue(e),this.isPackage)if(r&&r.target)r.target.changeSku(e,t);else for(var i=0;i<this.children.length;i++){if(this.children[i]._commodityKeys)if(this.children[i]._commodityKeys.find(function(e){return e.code===t})){this.children[i].changeSku(e,t);break}}else{var o={};if(this.commodity){var a=Je(0,this._commodityKeys,this.defaultValues,o,this.commodity,this.selectedComponentValue),c=Object.keys(this.selectedComponentValue),s=a.find(function(e){var t=e.value;return c.every(function(e){return n.getStringValue(t[e])===n.selectedComponentValue[e]})});s&&(this.selectedCardIndex=s.cardIndex);var l=Object.keys(o);l&&l.length<3&&(o=this.groupStaticModule(o))}else o=this.groupStaticModule(o);this._displayComponents=o}}},{key:"setParent",value:function(e){this.parent=e}},{key:"selected",get:function(){if(this.parent)return!!this.planInstanceIsRequired||Boolean(this._rawGood.accessories.defaultChecked)},set:function(e){this.parent&&!this.planInstanceIsRequired&&(this._rawGood.accessories.defaultChecked=e)}},{key:"getSelectedGoods",value:function(){return this.isPackage?this.children.filter(function(e){return e.selected}):null}}]);var e,t,r,n,i}(),st=new ce;const lt=function(){var e=I(te.mark(function e(t){var r;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,xe.then(function(){var e=I(te.mark(function e(n){var i,o,a;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i="https://alioth.alicdn.com/promotion-commodity-".concat(t),!st.getGood(t)){e.next=1;break}o=st.getGood(t),e.next=3;break;case 1:return e.next=2,n.Request.get(i,null,{withCredentials:!1,xsrfCookieName:""});case 2:(o=e.sent).scm="20140722.M_".concat(o.id,"._.V_1"),o.staticLoaded=!0,o&&"plan"===o.comType&&o.actPromotionCommodityDTOList&&(a=o.actPromotionCommodityDTOList.find(function(e){return"POSTPAY"===e.chargeType}),o.children=o.actPromotionCommodityDTOList,o.hasPostPay=!!a,o.children=Le({goodsList:o.children,planCode:o.commodityCode})),st.setGood(t,o);case 3:return o&&(r=new ct({good:o,planCode:o.commodityCode})),e.abrupt("return",{});case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();new ce;const ut=I(te.mark(function e(){var t;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=2,xe.then(function(){var e=I(te.mark(function e(r){var n;return te.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,r.Request.get("https://bridge.aliyun.com/abs/home/queryUserBaseInfo");case 1:n=e.sent,t=n&&n.data;case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e,null,[[1,3]])}));var dt=nt,pt=lt,ft=ut,mt=function(e,t){if(e&&Array.isArray(e)){var r=e.find(function(e){return e.attrCode===t});return null==r?void 0:r.attrValue}};var vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t";try{var r=document.body.clientWidth,n=e.currentTarget.getBoundingClientRect();n&&n.left&&r-n.left<=200?t="tl":n&&n.left&&n.left<=150&&(t="tr")}catch(i){}return t};const ht="f77e9f013515ec5322c1ac3273600828_cheap-rate-label";function yt(e){var t=e.price,r=(void 0===t?{}:t).formatPrice,n=void 0===r?{}:r;return s.createElement(s.Fragment,null,n.priceAdjustTime&&n.cheapRate&&!n.isContractActivity?s.createElement("span",{className:ht},s.createElement("img",{alt:"\u5b98\u7f51\u964d\u4ef7",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAxCAMAAABnGeD7AAAAgVBMVEUAAAD/aQD/agD/agD/agD/agD/agD/agD/agD/agD/agD/YQD/agD/agD/agD/aQD/aQD/aQD/agD/aAD/agD/agD/aQD/agD/agD/agD/aQD/awD/awD/agD/agD/agD/agD/aQD/aQD/agD/agD/agD/bwD/aQD/awD/aAD/agCMkg2CAAAAKnRSTlMAm/T8imEQ1KZoSgXm2MAxIx8VCMq7raCBZSsc7enFtZKFXU5EOQtyPjZBWQr0AAABE0lEQVQ4y4XU63KCMBQE4G0iIoIochVv9dp23/8Bq4MxIJzw/WR2SLJnEgATv/QSuOV8iM8pHNYZnyIvhOyek09+DVmaNSEVuJbbszGB7MKXErKC439aaRPaQDQzGbWC5EYjhmhBQ25gQkNtIfjl27dYtqah1hD4fKscpzd2d3HTlidkfmgdhcyZlp5i0JXji9VsKYTRs2WHQVu21Riy5viGpjTkmSVsO8CafxkLdhzN9xsyjilw1XRTS8Cjk57joaLIXqWSshMaYU7JzLbnC5E4bI0q4pDFFC1Lxb4oQcdcDxXzYTNQTM+JXYF8v9xvVRj3i7H6NR1SCJLIFiMxNe1XkJia1B+cAlJfMKJSAUaF+PQPsBtq4JwapgIAAAAASUVORK5CYII="}),"\u8f83",n.priceAdjustTime,"\u524d\u964d",n.cheapRate):"")}const bt=s.memo(yt),gt="_4a298d96a29f0b79d7d44e9386e75a5b_discount-ballon-btn",Pt="_4a298d96a29f0b79d7d44e9386e75a5b_discount-ballon",_t="_4a298d96a29f0b79d7d44e9386e75a5b_article-item-result",Et="_4a298d96a29f0b79d7d44e9386e75a5b_article-result-wrap",wt="_4a298d96a29f0b79d7d44e9386e75a5b_article-item-result-price",xt="_4a298d96a29f0b79d7d44e9386e75a5b_article-item-result-price-highlight",kt="_4a298d96a29f0b79d7d44e9386e75a5b_ballon-head-price",Ot="_4a298d96a29f0b79d7d44e9386e75a5b_list-price",Ct="_4a298d96a29f0b79d7d44e9386e75a5b_ballon-head-price-row",It="_4a298d96a29f0b79d7d44e9386e75a5b_discounted-price",Nt="_4a298d96a29f0b79d7d44e9386e75a5b_highlight",Rt="_4a298d96a29f0b79d7d44e9386e75a5b_discount-ballon-rule",St="_4a298d96a29f0b79d7d44e9386e75a5b_post-pay-discount-ballon-head",At="_4a298d96a29f0b79d7d44e9386e75a5b_discount-expand";function jt(e){var t=e.module,r=e.refreshBallon,n=e.refreshIndex,i=S(s.useState(!1),2),o=i[0],a=i[1],c=t.name,l=t.formatPrice,u=void 0===l?{}:l,d=t.id,p=u.promotionPrice,f=u.isContractActivity;s.useEffect(function(){r()},[o]);return s.createElement("div",{className:"".concat(St," ").concat(o?At:""),key:"".concat(d,"-").concat(n)},s.createElement("h3",null,c,s.createElement("span",{className:Nt},p,s.createElement("i",{className:"ace-icon ace-icon-arrow-down",onClick:function(){a(!o)}}))),function(){var e=t.formatPrice,r=void 0===e?{}:e,n=t.price,i=n.discount,o=n.discountedPrice,a=n.cheapStandAmount,c=void 0===a?0:a,l=n.listPrice,u=void 0===l?0:l,d=n.unitPrice,p=!1;c>0?o<c&&i>.04&&(p=!0):i>.04&&(p=!0);var m=u||d,v=c>0||u>0;return s.createElement("div",{className:kt},m?s.createElement("div",{className:Ot},"\u5b98\u7f51\u76ee\u5f55\u4ef7\uff08",r.listPrice||r.dailyPrice,"\uff09"):null,v?s.createElement("div",{className:Ct},f?"\u4f01\u4e1a\u5408\u540c\u6298\u6263\u4ef7":"\u5b98\u7f51\u6298\u6263\u4ef7"," ",s.createElement("span",null,r.cheapStandAmount||r.dailyPrice)):null,p?s.createElement("div",{className:Ct},"\u6d3b\u52a8\u4f18\u60e0 ",s.createElement("span",null,"\u51cf ",r.discount)):null)}())}function Dt(e){var t,r,n,i,o=e.className,a=e.price,c=e.good,u=S(s.useState("t"),2),d=u[0],p=u[1],f=S(s.useState(0),2),m=f[0],v=f[1],h=a.discountRule,y=a.price,b=a.promotionResult,g=a.articleItemResults,P=void 0===g?[]:g,_=a.formatPrice,E=void 0===_?{}:_,w=a.isPostPay,x=a.postPayModules,k=E.isContractActivity,O=E.queryFailCode,C=h||{},I=C.isRefund,N=C.isSameIdLimt,R=C.userTimes,A=C.isCoupon,j=C.orderNumLimit,D=function(){v(m+1)};return r=(t=y||{}).discountedPrice,n=t.totalPrice,!(i=t.channelPrice)&&(!c.isPackage&&!h&&!b||c.isPackage&&r===n||O||i)?null:s.createElement(l.Balloon,{v2:!0,align:d,trigger:s.createElement("span",{onMouseEnter:function(e){p(vt(e,d))},className:"".concat(gt," ").concat(o||"")},"\u4e86\u89e3\u4f18\u60e0"),shouldUpdatePosition:!0,triggerType:"hover",closable:!1,popupStyle:{minWidth:230}},function(){return s.createElement("div",{className:Pt},s.createElement("div",{className:"discount-ballon-head"},s.createElement("h3",null,"\u4f18\u60e0\u660e\u7ec6"),w?s.createElement("div",{className:"post-pay-discount-ballon"},null==x?void 0:x.map(function(e){return s.createElement(jt,{module:e,key:e.id,refreshIndex:m,refreshBallon:D})})):(t=(e=y||{}).discount,r=void 0===t?0:t,n=e.discountedPrice,i=void 0===n?0:n,o=e.totalPrice,a=e.cheapStandAmount,l=void 0===a?0:a,u=e.listPrice,d=void 0===u?0:u,p=e.unitPrice,f=e.activityDiscount,v=void 0===f?0:f,h=e.doubleDiscount,b=e.remainDiscountQuota,g=!1,l>0?i<l&&r>.4&&(g=!0):r>0&&(g=!0),s.createElement("div",{className:kt},d||p?s.createElement("div",{className:Ot},"\u5b98\u7f51\u76ee\u5f55\u4ef7\uff08\uffe5",he(d||p),"\uff09"):null,l>0||d>0?s.createElement("div",{className:Ct},k?"\u4f01\u4e1a\u5408\u540c\u6298\u6263\u4ef7":"\u5b98\u7f51\u6298\u6263\u4ef7"," ",s.createElement("span",null,"\uffe5",he(l||o))):null,g&&v?s.createElement("div",{className:Ct},"\u6d3b\u52a8\u4f18\u60e0 ",s.createElement("span",null,"\u51cf\uffe5",he(v))):null,g&&h?s.createElement("div",{className:Ct},"\u6298\u4e0a\u6298\u4f18\u60e0",b?"\uff08\u53ef\u7528\u989d\u5ea6\uffe5".concat(he(b),"\uff09"):"",s.createElement("span",null,"\u51cf\uffe5",he(h))):null,i!==l?s.createElement("div",{className:It},"\u4ef7\u683c",s.createElement("span",{className:Nt},"\uffe5",he(i))):null))),c.isPackage&&P&&P.length>0?s.createElement("div",{className:Et},P.map(function(e,t){return s.createElement("div",{className:_t,key:"articleItemResult".concat(t)},e.articleItemName,s.createElement("span",{className:wt},e.price.discount?"\u8282\u7701:\uffe5".concat(he(e.price.discount)):"",s.createElement("span",{className:xt},"\uffe5".concat(he(e.price.discountedPrice)))))})):"",c.isPackage?"":s.createElement("div",{className:Rt},s.createElement("h3",null,"\u6d3b\u52a8\u89c4\u5219"),s.createElement("div",null,s.createElement("p",null,"\u9650\u8d2d\uff1a",j?"".concat(j,"\u4ef6"):"\u4e0d\u9650\u8d2d"),s.createElement("p",null,"\u9000\u6b3e\uff1a",I?"\u53ef\u9000\u6b3e":"\u6d3b\u52a8\u5546\u54c1\u7981\u6b62\u9000\u6b3e"),s.createElement("p",null,"\u8d26\u53f7\u9650\u5236:"," ",N?"\n              \u540c\u8ba4\u8bc1\u8d26\u53f7\u4ec5\u53ef\u8d2d\u4e70".concat(R,"\u6b21\uff08\u5982\u540c\u4e2a\u4eba\u8eab\u4efd\u8bc1\u3001\u4f01\u4e1a\u6267\u7167\u8ba4\u8bc1\u3001\u540c\u624b\u673a\u53f7\u7b49\uff09\n            "):"\u65e0\u9650\u5236"),s.createElement("p",null,"\u662f\u5426\u53ef\u53e0\u52a0\u4f18\u60e0\u5238\uff1a",A?"\u53ef\u53e0\u52a0":"\u4e0d\u53ef\u53e0\u52a0"))));var e,t,r,n,i,o,a,l,u,d,p,f,v,h,b,g}())}const Tt=s.memo(Dt),Lt="_8cb62e427ba5bad8cd7daa20c1b5df23_discounted-price",Mt="_8cb62e427ba5bad8cd7daa20c1b5df23_highlight",Ut="_8cb62e427ba5bad8cd7daa20c1b5df23_pricing-tip-btn",Bt="_8cb62e427ba5bad8cd7daa20c1b5df23_help-filled";function Vt(e){var t=S(s.useState("t"),2),r=t[0],n=t[1],i=e.isLogin,o=e.price,a=void 0===o?{}:o,c=e.isChannelPrice,u=e.className,d=e.good,p=void 0===d?{}:d,f=p.hasPostPay,m=p.isPackage,v=a.formatPrice,h=void 0===v?{}:v,y=a.price,b=h.promotionPrice,g=h.hasDiscount,P=h.queryFailCode,_=h.codeContent,E=h.channelPrice;if(!b)return null;var w=Pe(c?void 0===E?"":E:b);return s.createElement("span",{className:"".concat(Lt," ").concat(u||"")},y&&!P?s.createElement(s.Fragment,null,s.createElement("span",{className:"".concat(Mt)},w.symbol,s.createElement("strong",null,w.integer),".",w.decimal),w.unit?"/".concat(w.unit):"",!i&&g?"\u8d77":"",m&&f&&s.createElement(l.Balloon,{v2:!0,align:"t",trigger:s.createElement("span",{className:Ut},s.createElement("i",{className:"".concat(Bt," aliyun-icon aliyun-icon-help_filled")})),triggerType:"hover",closable:!1},s.createElement("div",{className:"discount-ballon"},s.createElement("div",{className:"discount-ballon-rule"},s.createElement("p",null,"\u6b64\u4ef7\u683c\u4ec5\u4e3a\u9884\u4ed8\u8d39\u4ef7\u683c\uff0c\u5957\u9910\u5185\u7684\u6309\u91cf\u8ba1\u8d39\u9879\u6309\u7167\u5b9e\u9645\u7528\u91cf\u6536\u8d39"))))):"",y&&P?s.createElement(l.Balloon,{v2:!0,align:r,trigger:s.createElement("span",{className:Mt,onMouseEnter:function(e){n(vt(e,r))}},w.symbol,s.createElement("strong",null,w.integer)),triggerType:"hover",closable:!1},_):"")}const Ft=s.memo(Vt);var Qt="\u5b98\u7f51\u76ee\u5f55\u4ef7",qt="\u5b98\u7f51\u6298\u6263\u4ef7",Kt="\u4f01\u4e1a\u5408\u540c\u6298\u6263\u4ef7",Gt="\u5546\u54c1\u7684\u5217\u8868\u4ef7\u683c\u3002",Yt="\u5546\u54c1\u5b9e\u9645\u5728\u5b98\u7f51\u552e\u5356\u7684\u4ef7\u683c\uff0c\u901a\u5e38\u4f1a\u5728\u76ee\u5f55\u4ef7\u57fa\u7840\u4e0a\u53e0\u52a0\u4e00\u5b9a\u6298\u6263\u3002",Xt="\u6839\u636e\u5408\u540c\u6298\u6263\u4f18\u60e0\u540e\u7684\u4ef7\u683c\uff0c\u5373\u5728\u76ee\u5f55\u4ef7\u57fa\u7840\u4e0a\u53e0\u52a0\u9500\u552e\u5408\u540c\u4e2d\u6240\u7ea6\u5b9a\u7684\u6298\u6263\u3002";const Jt="d8a3311b31b97b8c6eb9e079bf104ed1_origin-price",zt="d8a3311b31b97b8c6eb9e079bf104ed1_origin-price-label",Ht="d8a3311b31b97b8c6eb9e079bf104ed1_price-tip-desc",Wt="d8a3311b31b97b8c6eb9e079bf104ed1_price-tip-label",$t="d8a3311b31b97b8c6eb9e079bf104ed1_price-tip-desc-contract";function Zt(e){var t,r=e.price,n=void 0===r?{}:r,i=e.isChannelPrice,o=e.className,a=n.formatPrice,c=void 0===a?{}:a,u=c.dailyPrice,d=c.promotionPrice,p=c.channelPrice,f=c.queryFailCode,m=c.cheapStandAmount;return f&&!i?t="\uffe5***":i?p&&d&&(t=d):t=m&&!f?m:u,t?s.createElement("span",{className:"".concat(Jt," ").concat(o||"")},function(e){var t,r,n=e.price,i=void 0===n?{}:n,o=e.label,a=i.formatPrice,c=void 0===a?{}:a,u=c.isContractActivity,d=c.channelPrice,p=S(s.useState("t"),2),f=p[0],m=p[1];return o?s.createElement(s.Fragment,null,o):d?"\u65e5\u5e38\u4ef7":(u?(t=Kt,r=Xt):(t=qt,r=Yt),s.createElement(s.Fragment,null,s.createElement(l.Balloon,{v2:!0,align:f,trigger:s.createElement("span",{onMouseEnter:function(e){m(vt(e,f))},className:zt},t),triggerType:"hover",closable:!1},s.createElement("div",{className:"".concat(Ht," ").concat(u?$t:null)},s.createElement("span",{className:Wt},t,":"),r),s.createElement("div",{className:"".concat(Ht," ").concat(u?$t:null)},s.createElement("span",{className:Wt},Qt,":"),Gt))))}(e),": ",t):null}const er=s.memo(Zt),tr="f8e845a0324b62e8c6b2003b975444c5_low-price-tip-wrapper",rr="f8e845a0324b62e8c6b2003b975444c5_low-price-trigger",nr="f8e845a0324b62e8c6b2003b975444c5_low-price-trigger-text";var ir={InstanceOverflow:"PRO-99PRICE_INSTANCE_OVERFLOW",InvaildOrderCount:"PRO-99PRICE_INVALID_ORDER_COUNT",InvalidCrowd:"CROWD-NOT_IN_RANGE"},or="https://home.console.aliyun.com/home/dashboard/ProductAndService",ar="https://usercenter2.aliyun.com/order/list?pageIndex=1&pageSize=20&orderStatus=UNPAID",cr=O(O(O({},ir.InstanceOverflow,s.createElement("span",null,s.createElement("em",null,"\u65e0\u6cd5\u53c2\u52a099\u8ba1\u5212\uff1a"),"\u6bcf\u4e2a\u7528\u6237\u4ec5\u6709\u4e00\u53f0\u5b9e\u4f8b\u53ef\u4eab\u53d799\u8ba1\u5212\u6743\u76ca\uff0c\u60a8\u540d\u4e0b\u5df2\u6709\u5b9e\u4f8b\u5728\u4eab\u53d7\u6b64\u6743\u76ca\uff0c\u60a8\u53ef\u524d\u5f80\u5f53\u524d\u8d26\u53f7\u6216\u60a8\u540d\u4e0b\u5176\u4ed6\u8d26\u53f7\u7684 ",s.createElement("a",{href:or,target:"_blank"},"\u63a7\u5236\u53f0")," \u67e5\u770b\u3002")),ir.InvaildOrderCount,s.createElement("span",null,s.createElement("em",null,"\u65e0\u6cd5\u53c2\u52a099\u8ba1\u5212\uff1a"),"\u6bcf\u4e2a\u7528\u6237\u4ec5\u6709\u4e00\u53f0\u5b9e\u4f8b\u53ef\u4eab\u53d799\u8ba1\u5212\u6743\u76ca\uff0c\u60a8\u5df2\u6709\u672a\u652f\u4ed8\u8ba2\u5355\u4eab\u53d7\u6b64\u6743\u76ca\uff0c ",s.createElement("a",{href:ar,target:"_blank"},"\u70b9\u51fb\u67e5\u770b"))),ir.InvalidCrowd,s.createElement("span",null,s.createElement("em",null,"\u65e0\u6cd5\u53c2\u52a099\u8ba1\u5212\uff1a"),"\u62b1\u6b49\uff0c\u60a8\u6682\u4e0d\u7b26\u5408\u672c\u6b21\u6d3b\u52a8\u53c2\u4e0e\u4eba\u7fa4\u8981\u6c42")),sr=function(e){var t=e.children,r=e.className;return s.createElement("div",{className:"".concat(tr," ").concat(r)},t)},lr=function(e){var t=e.price,r=e.good,n=e.triggerClassName,i=void 0===n?"":n,o=e.balloonClassName,a=void 0===o?"":o;if(!t||!t.price||!r)return null;var c=t.is99Price,u=r.activityId?r.activityId.low_price_activity_id:null;if(!u||c)return null;var d=(t.watchActivityResultList||[]).filter(function(e){return String(e.activityId)===String(u)}).find(function(e){return[ir.InstanceOverflow,ir.InvaildOrderCount,ir.InvalidCrowd].includes(e.errorCode)});if(!d)return null;var p=d.errorCode,f=cr[p];return s.createElement(l.Balloon,{v2:!0,align:"t",closable:!1,trigger:s.createElement("span",{className:"".concat(rr," ").concat(i)},s.createElement("span",{className:nr},"\u65e0\u6cd5\u53c2\u52a099\u8ba1\u5212"))},s.createElement(sr,{className:a},f))};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var ur=function(){return ur=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ur.apply(this,arguments)};var dr=function(e){var t=e.animate,r=void 0===t||t,n=e.animateBegin,i=e.backgroundColor,o=void 0===i?"#f5f6f7":i,a=e.backgroundOpacity,c=void 0===a?1:a,l=e.baseUrl,u=void 0===l?"":l,d=e.children,p=e.foregroundColor,f=void 0===p?"#eee":p,m=e.foregroundOpacity,v=void 0===m?1:m,h=e.gradientRatio,y=void 0===h?2:h,b=e.gradientDirection,g=void 0===b?"left-right":b,P=e.uniqueKey,_=e.interval,E=void 0===_?.25:_,w=e.rtl,x=void 0!==w&&w,k=e.speed,O=void 0===k?1.2:k,C=e.style,I=void 0===C?{}:C,N=e.title,R=void 0===N?"Loading...":N,S=e.beforeMask,A=void 0===S?null:S,j=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),D=P||Math.random().toString(36).substring(6),T=D+"-diff",L=D+"-animated-diff",M=D+"-aria",U=x?{transform:"scaleX(-1)"}:null,B="0; "+E+"; 1",V=O+"s",F="top-bottom"===g?"rotate(90)":void 0;return s.createElement("svg",ur({"aria-labelledby":M,role:"img",style:ur(ur({},I),U)},j),R?s.createElement("title",{id:M},R):null,A&&s.isValidElement(A)?A:null,s.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+u+"#"+T+")",style:{fill:"url("+u+"#"+L+")"}}),s.createElement("defs",null,s.createElement("clipPath",{id:T},d),s.createElement("linearGradient",{id:L,gradientTransform:F},s.createElement("stop",{offset:"0%",stopColor:o,stopOpacity:c},r&&s.createElement("animate",{attributeName:"offset",values:-y+"; "+-y+"; 1",keyTimes:B,dur:V,repeatCount:"indefinite",begin:n})),s.createElement("stop",{offset:"50%",stopColor:f,stopOpacity:v},r&&s.createElement("animate",{attributeName:"offset",values:-y/2+"; "+-y/2+"; "+(1+y/2),keyTimes:B,dur:V,repeatCount:"indefinite",begin:n})),s.createElement("stop",{offset:"100%",stopColor:o,stopOpacity:c},r&&s.createElement("animate",{attributeName:"offset",values:"0; 0; "+(1+y),keyTimes:B,dur:V,repeatCount:"indefinite",begin:n})))))},pr=function(e){return e.children?s.createElement(dr,ur({},e)):s.createElement(fr,ur({},e))},fr=function(e){return s.createElement(pr,ur({viewBox:"0 0 476 124"},e),s.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),s.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),s.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),s.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),s.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),s.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const mr=pr,vr={wrapper:"c0acea7b9facbe2d91952dd5931f3f36_wrapper","cards-wrapper":"c0acea7b9facbe2d91952dd5931f3f36_cards-wrapper",card:"c0acea7b9facbe2d91952dd5931f3f36_card","card-inner":"c0acea7b9facbe2d91952dd5931f3f36_card-inner","card-content":"c0acea7b9facbe2d91952dd5931f3f36_card-content","skeleton-name":"c0acea7b9facbe2d91952dd5931f3f36_skeleton-name","product-name":"c0acea7b9facbe2d91952dd5931f3f36_product-name","highlight-wrap":"c0acea7b9facbe2d91952dd5931f3f36_highlight-wrap","highlight-text-wrap":"c0acea7b9facbe2d91952dd5931f3f36_highlight-text-wrap","highlight-text":"c0acea7b9facbe2d91952dd5931f3f36_highlight-text","price-block":"c0acea7b9facbe2d91952dd5931f3f36_price-block","discounted-price-container":"c0acea7b9facbe2d91952dd5931f3f36_discounted-price-container","discounted-price-text":"c0acea7b9facbe2d91952dd5931f3f36_discounted-price-text","discount-ballon-text":"c0acea7b9facbe2d91952dd5931f3f36_discount-ballon-text","price-bottom":"c0acea7b9facbe2d91952dd5931f3f36_price-bottom","price-bottom-text":"c0acea7b9facbe2d91952dd5931f3f36_price-bottom-text","price-row":"c0acea7b9facbe2d91952dd5931f3f36_price-row",currency:"c0acea7b9facbe2d91952dd5931f3f36_currency","sale-price":"c0acea7b9facbe2d91952dd5931f3f36_sale-price","price-unit":"c0acea7b9facbe2d91952dd5931f3f36_price-unit","discount-link":"c0acea7b9facbe2d91952dd5931f3f36_discount-link","original-price":"c0acea7b9facbe2d91952dd5931f3f36_original-price","subscribe-btn":"c0acea7b9facbe2d91952dd5931f3f36_subscribe-btn","btn-arrow":"c0acea7b9facbe2d91952dd5931f3f36_btn-arrow","wrapper-len-1":"c0acea7b9facbe2d91952dd5931f3f36_wrapper-len-1","wrapper-len-2":"c0acea7b9facbe2d91952dd5931f3f36_wrapper-len-2"},hr=()=>s.createElement(mr,{speed:1.5,width:160,height:40,viewBox:"0 0 160 32",backgroundColor:"#f0f0f0",foregroundColor:"#e0e0e0"},s.createElement("rect",{x:"0",y:"6",rx:"4",ry:"4",width:"140",height:"22"})),yr=()=>s.createElement(mr,{speed:1.5,width:200,height:86,viewBox:"0 0 200 68",backgroundColor:"#f0f0f0",foregroundColor:"#e0e0e0"},s.createElement("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"100",height:"44"}),s.createElement("rect",{x:"0",y:"52",rx:"4",ry:"4",width:"130",height:"16"})),br=({card:e})=>{var t,r,n;const[l,u]=s.useState(null),[d,p]=s.useState(null),[f,m]=s.useState(!1),[v,h]=s.useState(!!e.goodId),y=e&&e.highlightText?e.highlightText.slice(0,2):[];s.useEffect(()=>{e.goodId&&(h(!0),pt(e.goodId).then(e=>(u(e),e.getPrice({}))).then(e=>{p(e),h(!1)}).catch(()=>{h(!1)}))},[e.goodId]);const b=(null==l?void 0:l.name)||e.productName,g=s.useMemo(()=>l?{"data-tracker-container":!0,"data-tracker-scm":l.scm,"data-tracker-mcm-code":l.mcm_code,"data-tracker-mcm-id":l.mcm_id}:{},[l]),P=!(!(null==(t=null==d?void 0:d.formatPrice)?void 0:t.priceAdjustTime)||!(null==(r=null==d?void 0:d.formatPrice)?void 0:r.cheapRate)||(null==(n=null==d?void 0:d.formatPrice)?void 0:n.isContractActivity));return s.createElement("div",((e,t)=>{for(var r in t||(t={}))o.call(t,r)&&c(e,r,t[r]);if(i)for(var r of i(t))a.call(t,r)&&c(e,r,t[r]);return e})({className:vr.card},g),s.createElement("div",{className:vr["card-inner"]},s.createElement("div",{className:vr["card-content"]},v?s.createElement("div",{className:vr["skeleton-name"]},s.createElement(hr,null)):s.createElement("h3",{className:vr["product-name"],title:b},b),y&&y.length>0&&s.createElement("div",{className:vr["highlight-wrap"],style:{"--highlight-len-width":100/y.length+"%"}},y.map((e,t)=>s.createElement("div",{className:vr["highlight-text-wrap"]},s.createElement("p",{key:t,className:vr["highlight-text"]},e)))),s.createElement("div",{className:vr["price-block"]},v?s.createElement(yr,null):d&&l?s.createElement(s.Fragment,null,s.createElement("div",{className:vr["discounted-price-container"]},s.createElement(Ft,{isLogin:f,price:d,isChannelPrice:!1,good:l,className:vr["discounted-price-text"]}),s.createElement(Tt,{good:l,price:d,className:vr["discount-ballon-text"]})),s.createElement("div",{className:vr["price-bottom"]},s.createElement(er,{price:d,isChannelPrice:!1,className:vr["price-bottom-text"]}),P&&s.createElement(bt,{price:d}),!P&&s.createElement(lr,{price:d,good:l,triggerClassName:vr["low-price-tip-trigger"]}))):(null!=e.currencyUnit||null!=e.salePrice)&&s.createElement(s.Fragment,null,s.createElement("div",{className:vr["price-row"]},e.currencyUnit&&s.createElement("span",{className:vr.currency},e.currencyUnit),null!=e.salePrice&&s.createElement("span",{className:vr["sale-price"]},e.salePrice),e.salePriceUnit&&s.createElement("span",{className:vr["price-unit"]},e.salePriceUnit),e.discountLink&&s.createElement("a",{className:vr["discount-link"],href:e.discountLink,target:"_blank",rel:"noopener noreferrer"},"\u4e86\u89e3\u4f18\u60e0")),e.originalPrice&&s.createElement("p",{className:vr["original-price"]},e.originalPrice))),e.buttonLink?s.createElement("a",{className:vr["subscribe-btn"],href:e.buttonLink,target:"_blank",rel:"noopener noreferrer"},s.createElement("span",null,e.buttonText),s.createElement(w,{className:vr["btn-arrow"]})):l?s.createElement("a",{className:vr["subscribe-btn"],href:"#",onClick:e=>{e.preventDefault(),l.handlePopUpBuy()}},s.createElement("span",null,e.buttonText),s.createElement(w,{className:vr["btn-arrow"]})):s.createElement("span",{className:vr["subscribe-btn"]},s.createElement("span",null,e.buttonText),s.createElement(w,{className:vr["btn-arrow"]})))))};r.exports=({cards:e=[]})=>s.createElement("div",{className:`${vr.wrapper} ${vr[`wrapper-len-${e.length}`]}`},s.createElement("div",{className:vr["cards-wrapper"]},e.map((e,t)=>s.createElement(br,{key:t,card:e}))))});
