UNPKG

@cainiaofe/cn-ui-layout

Version:

- 安装 cone-cli | [Cone-CLI 使用指引](https://alidocs.dingtalk.com/i/nodes/xdqZp24KneBJzvGM6XezJvyb7RA0Nr1E) - `tnpm i -g @alife/cone-cli@latest` - 安装依赖包 - `cone install` - 启动研发 - `cone start`

6 lines 236 kB
!function e(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],n):"object"==typeof exports?exports["cn-ui-layout"]=n(require("react"),require("react-dom")):t["cn-ui-layout"]=n(t.React,t.ReactDOM)}(window,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function t(){return e.default}:function t(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./dist/",n(n.s=250)}([function(t,n){t.exports=e},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a}));var r,o=function(){return"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{}}(),i={debug:!1},a="undefined"!=typeof window&&void 0!==window.document}).call(this,n(31))},function(e,t,n){"use strict";var r=n(238),o,i,a={"en-US":n(64),"zh-CN":n(65)},c=t.a=new r.a({locale:a,packageName:"cn-ui-layout"})},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"a",(function(){return l})),n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"i",(function(){return v}));var r="CnLayout-layout-view",o="CnLayoutPage",i="CnLayoutHeader",a="CnLayoutAside",c="CnLayoutContent",u="CnLayoutSection",l="CnLayoutBlock",s="CnTile",f="CnLayoutCell",d="CnLayoutRow",p="CnLayoutCol",v={}},function(e,t,n){var r,o; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=c(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=c(t,r));return t}function c(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(o=function(){return i}.apply(t,r=[]))||(e.exports=o)}()},function(e,t,n){"use strict";n.d(t,"n",(function(){return f})),n.d(t,"k",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return b})),n.d(t,"j",(function(){return g})),n.d(t,"a",(function(){return w})),n.d(t,"d",(function(){return O})),n.d(t,"g",(function(){return j})),n.d(t,"l",(function(){return S})),n.d(t,"m",(function(){return E}));var r=n(2),o=n(3);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,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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=s(e,"string");return"symbol"==i(t)?t:t+""}function s(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)}function f(e){var t=e||{},n=t.items,r=t.initialValue,o={componentName:"ObjectSetter",props:{config:{items:n}}};return r&&(o.initialValue=r),o}function d(e){var t=e||{},n,r;return{componentName:"ArraySetter",props:{mode:"list",itemSetter:{componentName:"ObjectSetter",initialValue:t.initialValue,props:{config:{items:t.configure}}}}}}var p=function e(t){var n=t.cardProps,o=void 0===n?{}:n,i=t.children,a={componentName:"CnCard",title:r.a.get({id:"Card",dm:"\u5361\u7247"}),props:c({isCnCard:!0,_context:{type:"JSExpression",value:"this"},shape:"normal",title:r.a.get({id:"Title",dm:"\u6807\u9898"})},o)};return i?c(c({},a),{},{children:[i]}):a},v=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.title,o=t.headerBottomSlot,i=t.buttons,a=t.children;return{componentName:"CnCard",title:r.a.get({id:"Card",dm:"\u5361\u7247"}),props:{isCnCard:!0,_context:{type:"JSExpression",value:"this"},shape:"group",title:n,slotManager:{headerBottomSlot:o},buttons:i},children:a}},h=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.blockProps,i=t.blockChildren,a={componentName:o.a,title:r.a.get({id:"Block",dm:"\u5757"}),props:c({isCnLayoutBlock:!0,_context:{type:"JSExpression",value:"this"}},n)};return i?c(c({},a),{},{children:[i]}):a},m=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.blockProps,r=t.cardProps,o=t.cardChildren;return h({blockProps:n,blockChildren:p({cardProps:r,children:o})})},y=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.c;return{componentName:t,title:t===o.c?r.a.get({id:"ColumnContainer",dm:"\u5217\u5bb9\u5668"}):r.a.get({id:"RowContainer",dm:"\u884c\u5bb9\u5668"}),props:{},children:[]}};function b(){return[m({blockProps:{span:6}}),m({blockProps:{span:6}})]}var g=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.blockProps;return{componentName:o.g,title:r.a.get({id:"FreeLayoutContainer",dm:"\u81ea\u7531\u5e03\u5c40\u5bb9\u5668"}),props:{},children:[m({blockProps:n})]}},w=function e(){return{componentName:"CnLayoutAside",title:r.a.get({id:"Sidebar",dm:"\u4fa7\u8fb9\u680f"}),props:{},children:[O(g())]}},O=function e(t){return{componentName:"CnLayoutCell",title:r.a.get({id:"Container",dm:"\u5bb9\u5668"}),props:{},children:t||[]}};function j(){return{componentName:"CnLayoutHeader",title:r.a.get({id:"PageHeader",dm:"\u9875\u5934"}),props:{},children:[O()]}}function S(e){var t=e||{},n=t.outerConfig,o=t.items;return c({type:"group",title:r.a.get({id:"TERM.Grouping",dm:"\u5206\u7ec4"}),display:"accordion",items:o},n)}function E(e){var t,n;return{componentName:"MixedSetter",props:{setters:(e||{}).setters}}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s}));var r=n(16),o=n.n(r),i=n(54),a=n.n(i);function c(e){var t;return o()(e)?t=null==e?void 0:e.__designMode:"string"==typeof e&&(t=e),"design"===t}function u(e){if("function"==typeof e){var t;try{for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t=e.apply(void 0,r)}catch(e){}return t}}function l(e){return a()(window.cnLowCodeUtils,e)}function s(e){return Array.isArray(e)&&e.length>0}},function(e,t,n){var r=n(42),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";var r=n(88),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function a(e){return void 0===e}function c(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function u(e){return"[object ArrayBuffer]"===o.call(e)}function l(e){return"[object FormData]"===o.call(e)}function s(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)}function f(e){return"string"==typeof e}function d(e){return"number"==typeof e}function p(e){return null!==e&&"object"==typeof e}function v(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){return"[object Date]"===o.call(e)}function m(e){return"[object File]"===o.call(e)}function y(e){return"[object Blob]"===o.call(e)}function b(e){return"[object Function]"===o.call(e)}function g(e){return p(e)&&b(e.pipe)}function w(e){return"[object URLSearchParams]"===o.call(e)}function O(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function j(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function S(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function E(){var e={};function t(t,n){v(e[n])&&v(t)?e[n]=E(e[n],t):v(t)?e[n]=E({},t):i(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)S(arguments[n],t);return e}function P(e,t,n){return S(t,(function t(o,i){e[i]=n&&"function"==typeof o?r(o,n):o})),e}function x(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:i,isArrayBuffer:u,isBuffer:c,isFormData:l,isArrayBufferView:s,isString:f,isNumber:d,isObject:p,isPlainObject:v,isUndefined:a,isDate:h,isFile:m,isBlob:y,isFunction:b,isStream:g,isURLSearchParams:w,isStandardBrowserEnv:j,forEach:S,merge:E,extend:P,trim:O,stripBOM:x}},function(e,t,n){"use strict";function r(e){var t,n=e.hostname;return n?(-1!==n.indexOf("//")&&(t=n.split("//"),n=t[1]),-1!==n.indexOf("/")&&(n=n.split("/")[0]),-1!==n.indexOf(":")&&(n=n.split(":")[0])):n=window.location.hostname,n&&n.trim()}function o(e){var t=e.currentScriptSrc;if(t)return t;if(window.__CURRENT_SCRIPT_SRC__)t=window.__CURRENT_SCRIPT_SRC__;else if(window.__current_micro_config__&&window.__current_micro_config__.prefix)t=window.__current_micro_config__.prefix;else if(window.document.currentScript){var n;t=window.document.currentScript.src}return t&&t.trim()}n.d(t,"c",(function(){return Jr})),n.d(t,"d",(function(){return Gr})),n.d(t,"a",(function(){return Kr})),n.d(t,"b",(function(){return $r}));var i=/^\d+\.\d+\.\d+\.\d+$/;function a(e){void 0===e&&(e={});try{if("undefined"!=typeof window&&window.__CN_ENV__)return window.__CN_ENV__;0;var t=r(e);if(!t)return"prod";if("localhost"===t||"127.0.0.1"===t)return"daily";if(i.test(t))return"daily";var n=t.split("."),a=n[0]||"",c=n[n.length-1]||"";if("pre"===a||0===a.indexOf("pre-")||0===a.indexOf("pre2-"))return"pre";if("daily"===a||0===a.indexOf("daily-"))return"daily";if("test"===c)return"daily";if("net"===c)return"daily";var u=o(e);if(!u)return"prod";if(0===u.indexOf("https://g.alicdn.com"))return"prod";if(0===u.indexOf("https://dev.g.alicdn.com"))return"daily"}catch(e){}return"prod"}var c=n(39),u=new Set(["ase","art","bmp","blp","cd5","cit","cpt","cr2","cut","dds","dib","djvu","egt","exif","gif","gpl","grf","icns","ico","iff","jng","jpeg","jpg","jfif","jp2","jps","lbm","max","miff","mng","msp","nef","nitf","ota","pbm","pc1","pc2","pc3","pcf","pcx","pdn","pgm","PI1","PI2","PI3","pict","pct","pnm","pns","ppm","psb","psd","pdd","psp","px","pxm","pxr","qfx","raw","rle","sct","sgi","rgb","int","bw","tga","tiff","tif","vtf","xbm","xcf","xpm","3dv","amf","ai","awg","cgm","cdr","cmx","dxf","e2d","egt","eps","fs","gbr","odg","svg","stl","vrml","x3d","sxd","v2d","vnd","wmf","emf","art","xar","png","webp","jxr","hdp","wdp","cur","ecw","iff","lbm","liff","nrrd","pam","pcx","pgf","sgi","rgb","rgba","bw","int","inta","sid","ras","sun","tga","heic","heif"]),l=function(e){return u.has(Object(c.extname)(e).slice(1).toLowerCase())},s,f=new(n(99).EventEmitter),d=function(e,t){return(d=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 p(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}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var v=function(){return(v=Object.assign||function e(t){for(var n,r=1,o=arguments.length;r<o;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)};function h(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)for(var o=0,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 m(e,t,n,r){var o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(o<3?a(i):o>3?a(t,n,i):a(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function y(e,t){return function(n,r){t(n,r,e)}}function b(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c=r.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,s=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),f,d=!1,p=n.length-1;p>=0;p--){var v={};for(var h in r)v[h]="access"===h?{}:r[h];for(var h in r.access)v.access[h]=r.access[h];v.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,n[p])("accessor"===c?{get:s.get,set:s.set}:s[u],v);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(f=a(m.get))&&(s.get=f),(f=a(m.set))&&(s.set=f),(f=a(m.init))&&o.unshift(f)}else(f=a(m))&&("field"===c?o.unshift(f):s[u]=f)}l&&Object.defineProperty(l,r.name,s),d=!0}function g(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function w(e){return"symbol"==typeof e?e:"".concat(e)}function O(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function j(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function S(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?n(e.value):o(e.value).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function E(e,t){var n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return u([e,t])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=2&c[0]?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==c[0]&&2!==c[0])){n=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(6===c[0]&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(e){c=[6,e],o=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var P=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function x(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||P(t,e,n)}function _(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function C(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function A(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(C(arguments[t]));return e}function N(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}function k(e,t,n){if(n||2===arguments.length)for(var r=0,o=t.length,i;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function T(e){return this instanceof T?(this.v=e,this):new T(e)}function I(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(e){return function(t){return Promise.resolve(t).then(e,f)}}function c(e,t){r[e]&&(o[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))},t&&(o[e]=t(o[e])))}function u(e,t){try{l(r[e](t))}catch(e){d(i[0][3],e)}}function l(e){e.value instanceof T?Promise.resolve(e.value.v).then(s,f):d(i[0][2],e)}function s(e){u("next",e)}function f(e){u("throw",e)}function d(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function R(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:T(e[r](t)),done:!1}:o?o(t):t}:o}}function L(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=_(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise((function(r,i){o(r,i,(n=e[t](n)).done,n.value)}))}}function o(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function M(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var D=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function B(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&P(t,e,n);return D(t,e),t}function F(e){return e&&e.__esModule?e:{default:e}}function z(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function H(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function U(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function W(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var q="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function V(e){function t(t){e.error=e.hasError?new q(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,(function(e){return t(e),o()}))}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function J(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,n,r,o,i){return n?t?".jsx":".js":!r||o&&i?r+o+"."+i.toLowerCase()+"js":e})):e}var G=p,K=v,$=h,Y=m,X=y,Z=b,Q=g,ee=w,te=O,ne=j,re=S,oe=E,ie=P,ae=x,ce=_,ue=C,le=A,se=N,fe=k,de=T,pe=I,ve=R,he=L,me=M,ye=B,be=F,ge=z,we=H,Oe=U,je=W,Se=V,Ee=J,Pe=n(0),xe=n.n(Pe),_e=function e(t){return function(e,n){var r=Object(Pe.useRef)(!1);t((function(){return function(){r.current=!1}}),[]),t((function(){if(r.current)return e();r.current=!0}),n)}},Ce=_e,Ae=_e(Pe.useEffect),Ne=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},ke=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ne(arguments[t]));return e},Te=function e(t,n){var r=n.manual,o=n.ready,i=void 0===o||o,a=n.defaultParams,c=void 0===a?[]:a,u=n.refreshDeps,l=void 0===u?[]:u,s=n.refreshDepsAction,f=Object(Pe.useRef)(!1);return f.current=!1,Ae((function(){!r&&i&&(f.current=!0,t.run.apply(t,ke(c)))}),[i]),Ae((function(){f.current||r||(f.current=!0,s?s():t.refresh())}),ke(l)),{onBefore:function e(){if(!i)return{stopNow:!0}}}};Te.onInit=function(e){var t=e.ready,n=void 0===t||t,r;return{loading:!e.manual&&n}};var Ie=Te;function Re(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function Le(e,t){var n=Object(Pe.useRef)({deps:t,obj:void 0,initialized:!1}).current;return!1!==n.initialized&&Re(n.deps,t)||(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Me(e){var t=Object(Pe.useRef)(e);return t.current=e,t}var De=Me,Be=function e(t){return null!==t&&"object"==typeof t},Fe=function e(t){return"function"==typeof t},ze=function e(t){return"string"==typeof t},He=function e(t){return"boolean"==typeof t},Ue=function e(t){return"number"==typeof t},We=function e(t){return void 0===t},qe=!1,Ve=!1,Je,Ge=function e(t){var n=De(t);Object(Pe.useEffect)((function(){return function(){n.current()}}),[])},Ke=function(){return(Ke=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}).apply(this,arguments)},$e=new Map,Ye=function e(t,n,r){var o=$e.get(t);(null==o?void 0:o.timer)&&clearTimeout(o.timer);var i=void 0;n>-1&&(i=setTimeout((function(){$e.delete(t)}),n)),$e.set(t,Ke(Ke({},r),{timer:i}))},Xe=function e(t){return $e.get(t)},Ze=function e(t){var n;t?(Array.isArray(t)?t:[t]).forEach((function(e){return $e.delete(e)})):$e.clear()},Qe=new Map,et=function e(t){return Qe.get(t)},tt=function e(t,n){Qe.set(t,n),n.then((function(e){return Qe.delete(t),e})).catch((function(){Qe.delete(t)}))},nt={},rt=function e(t,n){nt[t]&&nt[t].forEach((function(e){return e(n)}))},ot=function e(t,n){return nt[t]||(nt[t]=[]),nt[t].push(n),function e(){var r=nt[t].indexOf(n);nt[t].splice(r,1)}},it=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},at=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(it(arguments[t]));return e},ct,ut=function e(t,n){var r=n.cacheKey,o=n.cacheTime,i=void 0===o?3e5:o,a=n.staleTime,c=void 0===a?0:a,u=n.setCache,l=n.getCache,s=Object(Pe.useRef)(),f=Object(Pe.useRef)(),d=function e(t,n){u?u(n):Ye(t,i,n),rt(t,n.data)},p=function e(t,n){return void 0===n&&(n=[]),l?l(n):Xe(t)};return Le((function(){if(r){var e=p(r);e&&Object.hasOwnProperty.call(e,"data")&&(t.state.data=e.data,t.state.params=e.params,(-1===c||(new Date).getTime()-e.time<=c)&&(t.state.loading=!1)),s.current=ot(r,(function(e){t.setState({data:e})}))}}),[]),Ge((function(){var e;null===(e=s.current)||void 0===e||e.call(s)})),r?{onBefore:function e(t){var n=p(r,t);return n&&Object.hasOwnProperty.call(n,"data")?-1===c||(new Date).getTime()-n.time<=c?{loading:!1,data:null==n?void 0:n.data,error:void 0,returnNow:!0}:{data:null==n?void 0:n.data,error:void 0}:{}},onRequest:function e(t,n){var o=et(r);return o&&o!==f.current||(o=t.apply(void 0,at(n)),f.current=o,tt(r,o)),{servicePromise:o}},onSuccess:function e(n,o){var i;r&&(null===(i=s.current)||void 0===i||i.call(s),d(r,{data:n,params:o,time:(new Date).getTime()}),s.current=ot(r,(function(e){t.setState({data:e})})))},onMutate:function e(n){var o;r&&(null===(o=s.current)||void 0===o||o.call(s),d(r,{data:n,params:t.state.params,time:(new Date).getTime()}),s.current=ot(r,(function(e){t.setState({data:e})})))}}:{}},lt=n(21),st=n.n(lt),ft=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},dt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ft(arguments[t]));return e},pt,vt=function e(t,n){var r=n.debounceWait,o=n.debounceLeading,i=n.debounceTrailing,a=n.debounceMaxWait,c=Object(Pe.useRef)(),u=Object(Pe.useMemo)((function(){var e={};return void 0!==o&&(e.leading=o),void 0!==i&&(e.trailing=i),void 0!==a&&(e.maxWait=a),e}),[o,i,a]);return Object(Pe.useEffect)((function(){if(r){var e=t.runAsync.bind(t);return c.current=st()((function(e){e()}),r,u),t.runAsync=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new Promise((function(n,r){var o;null===(o=c.current)||void 0===o||o.call(c,(function(){e.apply(void 0,dt(t)).then(n).catch(r)}))}))},function(){var n;null===(n=c.current)||void 0===n||n.cancel(),t.runAsync=e}}}),[r,u]),r?{onCancel:function e(){var t;null===(t=c.current)||void 0===t||t.cancel()}}:{}},ht,mt=function e(t,n){var r=n.loadingDelay,o=Object(Pe.useRef)();if(!r)return{};var i=function e(){o.current&&clearTimeout(o.current)};return{onBefore:function e(){return i(),o.current=setTimeout((function(){t.setState({loading:!0})}),r),{loading:!1}},onFinally:function e(){i()},onCancel:function e(){i()}}},yt,bt=!("undefined"==typeof window||!window.document||!window.document.createElement);function gt(){return!bt||"hidden"!==document.visibilityState}var wt=[];function Ot(e){return wt.push(e),function t(){var n=wt.indexOf(e);wt.splice(n,1)}}if(bt){var jt=function e(){if(gt())for(var t=0;t<wt.length;t++){var n;(0,wt[t])()}};window.addEventListener("visibilitychange",jt,!1)}var St=Ot,Et,Pt=function e(t,n){var r=n.pollingInterval,o=n.pollingWhenHidden,i=void 0===o||o,a=n.pollingErrorRetryCount,c=void 0===a?-1:a,u=Object(Pe.useRef)(),l=Object(Pe.useRef)(),s=Object(Pe.useRef)(0),f=function e(){var t;u.current&&clearTimeout(u.current),null===(t=l.current)||void 0===t||t.call(l)};return Ae((function(){r||f()}),[r]),r?{onBefore:function e(){f()},onError:function e(){s.current+=1},onSuccess:function e(){s.current=0},onFinally:function e(){-1===c||-1!==c&&s.current<=c?u.current=setTimeout((function(){i||gt()?t.refresh():l.current=St((function(){t.refresh()}))}),r):s.current=0},onCancel:function e(){f()}}:{}},xt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},_t=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(xt(arguments[t]));return e};function Ct(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,e.apply(void 0,_t(r)),setTimeout((function(){n=!1}),t))}}function At(){return!bt||void 0===navigator.onLine||navigator.onLine}var Nt=[];function kt(e){return Nt.push(e),function t(){var n=Nt.indexOf(e);Nt.splice(n,1)}}if(bt){var Tt=function e(){if(gt()&&At())for(var t=0;t<Nt.length;t++){var n;(0,Nt[t])()}};window.addEventListener("visibilitychange",Tt,!1),window.addEventListener("focus",Tt,!1)}var It=kt,Rt,Lt=function e(t,n){var r=n.refreshOnWindowFocus,o=n.focusTimespan,i=void 0===o?5e3:o,a=Object(Pe.useRef)(),c=function e(){var t;null===(t=a.current)||void 0===t||t.call(a)};return Object(Pe.useEffect)((function(){if(r){var e=Ct(t.refresh.bind(t),i);a.current=It((function(){e()}))}return function(){c()}}),[r,i]),Ge((function(){c()})),{}},Mt,Dt=function e(t,n){var r=n.retryInterval,o=n.retryCount,i=Object(Pe.useRef)(),a=Object(Pe.useRef)(0),c=Object(Pe.useRef)(!1);return o?{onBefore:function e(){c.current||(a.current=0),c.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function e(){a.current=0},onError:function e(){if(a.current+=1,-1===o||a.current<=o){var n=null!=r?r:Math.min(1e3*Math.pow(2,a.current),3e4);i.current=setTimeout((function(){c.current=!0,t.refresh()}),n)}else a.current=0},onCancel:function e(){a.current=0,i.current&&clearTimeout(i.current)}}:{}},Bt=n(112),Ft=n.n(Bt),zt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Ht=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(zt(arguments[t]));return e},Ut,Wt=function e(t,n){var r=n.throttleWait,o=n.throttleLeading,i=n.throttleTrailing,a=Object(Pe.useRef)(),c={};return void 0!==o&&(c.leading=o),void 0!==i&&(c.trailing=i),Object(Pe.useEffect)((function(){if(r){var e=t.runAsync.bind(t);return a.current=Ft()((function(e){e()}),r,c),t.runAsync=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new Promise((function(n,r){var o;null===(o=a.current)||void 0===o||o.call(a,(function(){e.apply(void 0,Ht(t)).then(n).catch(r)}))}))},function(){var n;t.runAsync=e,null===(n=a.current)||void 0===n||n.cancel()}}}),[r,o,i]),r?{onCancel:function e(){var t;null===(t=a.current)||void 0===t||t.cancel()}}:{}};function qt(e){var t=Object(Pe.useRef)(e);t.current=Object(Pe.useMemo)((function(){return e}),[e]);var n=Object(Pe.useRef)();return n.current||(n.current=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(this,e)}),n.current}var Vt=qt,Jt,Gt=function e(t){Object(Pe.useEffect)((function(){null==t||t()}),[])},Kt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},$t,Yt=function e(){var t,n=Kt(Object(Pe.useState)({}),2)[1];return Object(Pe.useCallback)((function(){return n({})}),[])},Xt=function(){return(Xt=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}).apply(this,arguments)},Zt=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?n(e.value):o(e.value).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Qt=function(e,t){var n={label:0,sent:function e(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,o=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){n=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(6===a[0]&&n.label<i[1]){n.label=i[1],i=a;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(a);break}i[2]&&n.ops.pop(),n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e],o=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},en=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)for(var o=0,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},tn=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},nn=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(tn(arguments[t]));return e},rn,on=function(){function e(e,t,n,r){void 0===r&&(r={}),this.serviceRef=e,this.options=t,this.subscribe=n,this.initState=r,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Xt(Xt(Xt({},this.state),{loading:!t.manual}),r)}return e.prototype.setState=function(e){void 0===e&&(e={}),this.state=Xt(Xt({},this.state),e),this.subscribe()},e.prototype.runPluginHandler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.pluginImpls.map((function(n){var r;return null===(r=n[e])||void 0===r?void 0:r.call.apply(r,nn([n],t))})).filter(Boolean);return Object.assign.apply(Object,nn([{}],r))},e.prototype.runAsync=function(){for(var e,t,n,r,o,i,a,c,u,l,s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];return Zt(this,void 0,void 0,(function(){var f,d,p,v,h,m,y,b,g,w,O;return Qt(this,(function(j){switch(j.label){case 0:if(this.count+=1,f=this.count,d=this.runPluginHandler("onBefore",s),p=d.stopNow,v=void 0!==p&&p,h=d.returnNow,m=void 0!==h&&h,y=en(d,["stopNow","returnNow"]),v)return[2,new Promise((function(){}))];if(this.setState(Xt({loading:!0,params:s},y)),m)return[2,Promise.resolve(y.data)];null===(t=(e=this.options).onBefore)||void 0===t||t.call(e,s),j.label=1;case 1:return j.trys.push([1,3,,4]),(b=this.runPluginHandler("onRequest",this.serviceRef.current,s).servicePromise)||(b=(O=this.serviceRef).current.apply(O,nn(s))),[4,b];case 2:return g=j.sent(),f!==this.count?[2,new Promise((function(){}))]:(this.setState({data:g,error:void 0,loading:!1}),null===(r=(n=this.options).onSuccess)||void 0===r||r.call(n,g,s),this.runPluginHandler("onSuccess",g,s),null===(i=(o=this.options).onFinally)||void 0===i||i.call(o,s,g,void 0),f===this.count&&this.runPluginHandler("onFinally",s,g,void 0),[2,g]);case 3:if(w=j.sent(),f!==this.count)return[2,new Promise((function(){}))];throw this.setState({error:w,loading:!1}),null===(c=(a=this.options).onError)||void 0===c||c.call(a,w,s),this.runPluginHandler("onError",w,s),null===(l=(u=this.options).onFinally)||void 0===l||l.call(u,s,void 0,w),f===this.count&&this.runPluginHandler("onFinally",s,void 0,w),w;case 4:return[2]}}))}))},e.prototype.run=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.runAsync.apply(this,nn(t)).catch((function(t){e.options.onError||console.error(t)}))},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,nn(this.state.params||[]))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,nn(this.state.params||[]))},e.prototype.mutate=function(e){var t=Fe(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})},e}(),an=function(){return(an=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}).apply(this,arguments)},cn=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)for(var o=0,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},un=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},ln=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(un(arguments[t]));return e};function sn(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);var r=t.manual,o=void 0!==r&&r,i=cn(t,["manual"]),a=an({manual:o},i),c=De(e),u=Yt(),l=Le((function(){var e=n.map((function(e){var t;return null===(t=null==e?void 0:e.onInit)||void 0===t?void 0:t.call(e,a)})).filter(Boolean);return new on(c,a,u,Object.assign.apply(Object,ln([{}],e)))}),[]);return l.options=a,l.pluginImpls=n.map((function(e){return e(l,a)})),Gt((function(){if(!o){var e=l.state.params||t.defaultParams||[];l.run.apply(l,ln(e))}})),Ge((function(){l.cancel()})),{loading:l.state.loading,data:l.state.data,error:l.state.error,params:l.state.params||[],cancel:Vt(l.cancel.bind(l)),refresh:Vt(l.refresh.bind(l)),refreshAsync:Vt(l.refreshAsync.bind(l)),run:Vt(l.run.bind(l)),runAsync:Vt(l.runAsync.bind(l)),mutate:Vt(l.mutate.bind(l))}}var fn=sn,dn=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},pn=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dn(arguments[t]));return e};function vn(e,t,n){return fn(e,t,pn(n||[],[vt,mt,Pt,Lt,Wt,Ie,ut,Dt]))}var hn,mn=vn,yn=n(20),bn=n.n(yn),gn=n(56),wn=n.n(gn);function On(e){return void 0===e}function jn(e,t){var n=void 0,r;return e.extend instanceof Object?t.extend instanceof Object&&(n=bn()({},e.extend,t.extend)):t.extend instanceof Object&&(n=t.extend),bn()({},e,t,{extend:n})}function Sn(e,t,n){var r=e.request,o=void 0===r?{}:r,i=e.config,a=void 0===i?{}:i,c=new Date,u=n.errorCode,l=n.errorMsg,s=n.extend,f=n.reportResponse,d=o.__recordInfo__;d||(d={startTime:"-"});var p="-";!0===f&&(p=JSON.stringify(e));var v="-";s&&(v=JSON.stringify(s)),t.logApi({success:!1,url:a.url,httpCode:o.status,time:"-"===d.startTime?"-":c.getTime()-d.startTime,requestType:"XHR",method:a.method,params:JSON.stringify(a.data),header:JSON.stringify(a.headers),response:p,code:u,msg:l,c1:"cn-request-auto",c2:v})}function En(e){var t=window.document.cookie,n=t.indexOf(e),r="";if(-1!=n){n=n+e.length+1;var o=t.indexOf(";",n);-1==o&&(o=t.length),r=t.substring(n,o)}return r}var Pn=function e(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"ontouchstart"in document.documentElement||window.__cn_error_feedback_is_mobile},xn=n(238),_n,Cn,An,Nn,kn,Tn,In,Rn,Ln,Mn,Dn,Bn,Fn={"de-DE":n(100),"en-US":n(101),"es-ES":n(102),"fr-FR":n(103),"it-IT":n(104),"ja-JP":n(105),"ko-KR":n(106),"ms-MY":n(107),"pt-PT":n(108),"ru-RU":n(109),"zh-CN":n(110),"zh-HK":n(111)},zn=new xn.a({locale:Fn,packageName:"cn-error-feedback"}),Hn=n(22),Un=n.n(Hn),Wn="CnErrorFeedback",qn="cn-error-feedback",Vn=[{label:zn.get({id:"PermissionError",dm:"\u6743\u9650\u9519\u8bef"}),value:"permissionError",img:"https://img.alicdn.com/imgextra/i1/O1CN01Ruj55h26GskugbPlp_!!6000000007635-2-tps-1666-938.png"},{label:zn.get({id:"OperationError",dm:"\u64cd\u4f5c\u9519\u8bef"}),value:"operationError",img:"https://img.alicdn.com/imgextra/i2/O1CN01NDVJV71PTgLU9UyXl_!!6000000001842-2-tps-840-472.png"},{label:zn.get({id:"BusinessError",dm:"\u4e1a\u52a1\u9519\u8bef"}),value:"bizError",img:"https://img.alicdn.com/imgextra/i4/O1CN01Wa1FjC27o98eTaTfA_!!6000000007843-2-tps-840-472.png"},{label:zn.get({id:"31255242825928705.CNTM",dm:"\u7cfb\u7edf\u9519\u8bef"}),value:"sysError",img:"https://img.alicdn.com/imgextra/i1/O1CN010eo5gI1GkKCEYZlXh_!!6000000000660-2-tps-840-108.png"}],Jn=[{label:zn.get({id:"PopupWindow",dm:"\u5f39\u7a97"}),value:"dialog"},{label:zn.get({id:"Hint",dm:"\u63d0\u793a"}),value:"tips"}],Gn=[{label:zn.get({id:"31255240133185536.CNTM",dm:"\u8b66\u544a"}),value:"warning"},{label:zn.get({id:"ReportAnError",dm:"\u62a5\u9519"}),value:"error"}],Kn={warning:{icon:"icon-exclamation-t-fill",color:"#FFCD00"},error:{icon:"icon-error-r-fill",color:"#E55346"}},$n=[{label:zn.get({id:"Hyperlink",dm:"\u8d85\u94fe\u63a5"}),value:"hyperlink"},{label:"iframe",value:"iframe"},{label:zn.get({id:"Text",dm:"\u6587\u672c"}),value:"text"}],Yn={errorContentInfo:{displayMode:"dialog",errorTitle:zn.get({id:"NoPermissionForTheTimeBeing_1608534244",dm:"\u6682\u65e0\u6743\u9650"}),errorLevel:"warning",confirmTexts:zn.get({id:"ApplyForPermission",dm:"\u7533\u8bf7\u6743\u9650"}),confirmUrl:""},enableSolution:!0,errorSolution:{enableSolution:!0,solutionType:"hyperlink",text:zn.get({id:"ViewHelp",dm:"\u67e5\u770b\u5e2e\u52a9"}),manualUrl:""}},Xn={errorContentInfo:{displayMode:"dialog",errorTitle:zn.get({id:"FailedToCreateLogisticsOrder",dm:"\u521b\u5efa\u7269\u6d41\u5355\u5931\u8d25"}),errorLevel:"error",confirmTexts:zn.get({id:"ImmediateProcessing",dm:"\u7acb\u5373\u5904\u7406"}),confirmUrl:""},enableSolution:!1},Zn={errorContentInfo:{displayMode:"dialog",errorTitle:zn.get({id:"FailureToInitiateWithdrawalAndChange_888654548",dm:"\u9000\u6539\u53d1\u8d77\u5931\u8d25"}),errorLevel:"error",confirmTexts:zn.get({id:"ImmediateProcessing",dm:"\u7acb\u5373\u5904\u7406"}),confirmUrl:""},enableSolution:!1},Qn={errorContentInfo:{displayMode:"tips",errorTitle:"",errorLevel:"warning"},enableSolution:!1},er=[{label:zn.get({id:"Chinese",dm:"\u4e2d\u6587"}),value:"zh_CN"},{label:zn.get({id:"English",dm:"\u82f1\u8bed"}),value:"en_US"},{label:zn.get({id:"Russian",dm:"\u4fc4\u8bed"}),value:"ru_RU"},{label:zn.get({id:"Japanese",dm:"\u65e5\u8bed"}),value:"ja_JP"},{label:zn.get({id:"Hebrew",dm:"\u5e0c\u4f2f\u6765\u8bed"}),value:"iw_IL"}],tr=n(180),nr=function e(){},rr=function e(t){if(void 0===t&&(t={}),!window.CNUI||!window.CNUI.CnDialog)return console.error("CnErrorFeedback: CNUI is not defined, please import CNUI first"),null;var n=window.CNUI||{},r=n.CnDialog,o=n.CnMessage,i=n.CnDrawer,a=n.CnButton,c=n.CnIcon,u=function e(t){var n=t.config,u=void 0===n?{}:n,l=t.onClose,s=void 0===l?nr:l,f=u,d=f.errorContentInfo,p=void 0===d?{}:d,v=p.errorTitle,h=p.errorLevel,m=void 0===h?"warning":h,y=p.confirmTexts,b=p.confirmUrl,g=f.errorSolution,w=void 0===g?{}:g,O=w.enableSolution,j=void 0!==O&&O,S=w.solutionType,E=w.textReason,P=w.textSolution,x=w.text,_=w.manualUrl,C=f.errorMsg,A=f.errorCode,N=Object(Pe.useState)(!1),k=N[0],T=N[1],I=Object(Pe.useState)(!1),R=I[0],L=I[1],M=Object(Pe.useState)(!0),D=M[0],B=M[1],F=Object(Pe.useState)(),z=F[0],H=F[1],U=Object(Pe.useState)(!1),W=U[0],q=U[1],V=function e(){return!R&&(L(!0),T(!1))};Object(Pe.useEffect)((function(){setTimeout((function(){return T(j&&"iframe"===S)}))}),[]);var J=Object(Pe.useCallback)((function(){T(!1)}),[]),G=function e(t){try{var n,r,i,a;if(W)return;(null===(n=window)||void 0===n||null===(r=n.trace)||void 0===r?void 0:r.logCustom)&&(null===(i=window)||void 0===i||null===(a=i.trace)||void 0===a||a.logCustom({p1:"errorCodeFeedback",c8:C,c9:A,c10:t})),H(t),q(!0),o.show(zn.get({id:"ThankYouForYourFeedback",dm:"\u8c22\u8c22\u60a8\u7684\u53cd\u9988\uff01"}))}catch(e){}};return xe.a.createElement(xe.a.Fragment,null,xe.a.createElement(r,{className:"cn-error-feedback-dialog",visible:D,okProps:{children:y,visible:!!y},onOk:function e(){b&&window.open(b),B(!1)},afterClose:s,onClose:function e(){return B(!1)},onCancel:function e(){return B(!1)},footer:xe.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:6}},xe.a.createElement("span",null,zn.get({id:"IsItHelpful",dm:"\u662f\u5426\u6709\u5e2e\u52a9"})),xe.a.createElement(c,{onClick:function e(){G("good")},style:{margin:"0 16px",cursor:"pointer"},type:"good"===z?"icon-good-fill":"icon-good"}),xe.a.createElement(c,{onClick:function e(){G("bad")},style:{rotate:"180deg",cursor:"pointer"},type:"bad"===z?"icon-good-fill":"icon-good"}))},xe.a.createElement("div",{className:"error-message-content"},xe.a.createElement("div",{className:"title",style:{display:"flex",alignItems:"center"}},xe.a.createElement(c,{type:Kn[m].icon,size:"xl",style:{color:Kn[m].color}}),xe.a.createElement("div",{style:{fontSize:18,color:"#333",fontWeight:500,marginLeft:4}},v)),xe.a.createElement("div",{className:"content",style:{color:"#333",fontSize:12,lineHeight:"18px",marginTop:16,paddingLeft:28}},xe.a.createElement("p",null,C),j&&S&&("text"===S?xe.a.createElement("div",null,xe.a.createElement("p",null,E),xe.a.createElement("p",null,P)):xe.a.createElement(a,{type:"primary",text:!0,onClick:function e(){"hyperlink"===S?window.open(_):(T(!0),L(!0))}},x))))),xe.a.createElement(i,{visible:k,popupContainer:document.body,title:zn.get({id:"Solution",dm:"\u89e3\u51b3\u65b9\u6848"}),size:"large",footer:!0,style:{display:R?"block":"none"},hasMask:R,okProps:{visible:!1},cache:!0,onOk:J,onClose:J,onCancel:J},_&&xe.a.createElement("iframe",{onError:V,onLoad:V,style:{border:"none",height:"83vh"},width:"100%",src:_})))},l=t,s=l.errorContentInfo,f=void 0===s?{}:s,d=f.displayMode,p=f.errorTitle,v=f.errorLevel,h=void 0===v?"warning":v,m=l.errorMsg;switch(d){case"dialog":var y=document.createElement("div"),b=function e(){var t;Un.a.unmountComponentAtNode(y),null===(t=y.parentNode)||void 0===t||t.removeChild(y)};return document.body.append(y),Un.a.render(xe.a.createElement(u,{config:t,onClose:b}),y),{close:b};case"tips":return o[h]({title:p,content:m}),{close:o.hide};default:return null}},or=function e(){},ir=function e(t){if(void 0===t&&(t={}),!window.CNUIM||!window.CNUIM.CnDialog)return console.error("CnErrorFeedback: CNUIM is not defined, please import CNUIM first"),null;var n=window.CNUIM||{},r=n.CnDialog,o=n.CnMessage,i=n.CnDrawer,a=n.CnButton,c=n.CnIcon,u=function e(t){var n=t.config,u=void 0===n?{}:n,l=t.onClose,s=void 0===l?or:l,f=u,d=f.errorContentInfo,p=void 0===d?{}:d,v=p.errorTitle,h=p.errorLevel,m=void 0===h?"warning":h,y=p.confirmTexts,b=p.confirmUrl,g=f.errorSolution,w=void 0===g?{}:g,O=w.enableSolution,j=void 0!==O&&O,S=w.solutionType,E=w.textReason,P=w.textSolution,x=w.text,_=w.manualUrl,C=f.errorMsg,A=f.errorCode,N=Object(Pe.useState)(!1),k=N[0],T=N[1],I=Object(Pe.useState)(!1),R=I[0],L=I[1],M=Object(Pe.useState)(!0),D=M[0],B=M[1],F=Object(Pe.useState)(),z=F[0],H=F[1],U=Object(Pe.useState)(!1),W=U[0],q=U[1],V=function e(){return!R&&(L(!0),T(!1))};Object(Pe.useEffect)((function(){}),[]);var J=Object(Pe.useCallback)((function(){T(!1)}),[]),G=function e(t){try{var n,r,i,a;if(W)return;(null===(n=window)||void 0===n||null===(r=n.trace)||void 0===r?void 0:r.logCustom)&&(null===(i=window)||void 0===i||null===(a=i.trace)||void 0===a||a.logCustom({p1:"errorCodeFeedback",c8:C,c9:A,c10:t})),H(t),q(!0),o.show(zn.get({id:"ThankYouForYourFeedback",dm:"\u8c22\u8c22\u60a8\u7684\u53cd\u9988\uff01"}))}catch(e){}};return xe.a.createElement(xe.a.Fragment,null,xe.a.createElement(r,{visible:D,okProps:{children:y,visible:!!y},footerActions:["ok"],onOk:function e(){b&&window.open(b),B(!1)},afterClose:s,onClose:function e(){return B(!1)},onCancel:function e(){return B(!1)}},xe.a.createElement("div",{className:"error-message-content"},xe.a.createElement("div",{className:"title",style:{display:"flex",alignItems:"center"}},xe.a.createElement(c,{type:Kn[m].icon,size:"xl