@alicloud/console-components-search 0.2.29 → 0.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/index.css +11 -2
  2. package/dist/index.js +4344 -5303
  3. package/doc-dist/0.js +1 -1923
  4. package/doc-dist/1.js +2083 -16
  5. package/doc-dist/10.js +1 -1
  6. package/doc-dist/11.js +1 -1
  7. package/doc-dist/12.js +1 -1
  8. package/doc-dist/13.js +1 -1
  9. package/doc-dist/14.js +1 -1
  10. package/doc-dist/15.js +1 -1
  11. package/doc-dist/16.js +1 -1
  12. package/doc-dist/17.js +6 -0
  13. package/doc-dist/2.js +27 -0
  14. package/doc-dist/4.js +84 -1
  15. package/doc-dist/5.js +1 -8
  16. package/doc-dist/6.js +8 -1
  17. package/doc-dist/{6.css → 7.css} +0 -0
  18. package/doc-dist/7.js +1 -1
  19. package/doc-dist/{6.os.css → 7.os.css} +0 -0
  20. package/doc-dist/8.js +1 -1
  21. package/doc-dist/9.js +1 -1
  22. package/doc-dist/deps/main.css +1 -1
  23. package/doc-dist/deps/main.js +27 -26
  24. package/doc-dist/deps/main.os.css +1 -1
  25. package/doc-dist/index.css +1 -1
  26. package/doc-dist/index.js +4 -4
  27. package/doc-dist/index.os.css +1 -1
  28. package/doc-dist/log-deps-build.log +8 -3
  29. package/es/ComplexSearch/InputPrefix.js +1 -2
  30. package/es/ComplexSearch/index.js +23 -20
  31. package/es/search.js +5 -3
  32. package/es/searchTagList/PureTag.js +1 -2
  33. package/es/searchTagList/index.js +2 -2
  34. package/es/style.js +8 -12
  35. package/es/types/IRcSearchOptions.type.js +0 -1
  36. package/es/types/IRcSearchProps.type.js +0 -1
  37. package/es/types/IRcSearchTagItemProps.type.js +0 -1
  38. package/es/types/IRcSearchTagListProps.type.js +0 -1
  39. package/lib/ComplexSearch/InputPrefix.d.ts +1 -0
  40. package/lib/ComplexSearch/InputPrefix.js +1 -3
  41. package/lib/ComplexSearch/index.d.ts +2 -2
  42. package/lib/ComplexSearch/index.js +22 -23
  43. package/lib/constants.js +1 -1
  44. package/lib/index.js +10 -10
  45. package/lib/search.js +5 -3
  46. package/lib/searchTagList/PureTag.js +1 -3
  47. package/lib/searchTagList/index.js +2 -2
  48. package/lib/style.js +9 -13
  49. package/lib/types/IRcSearchOptions.type.js +1 -5
  50. package/lib/types/IRcSearchProps.type.js +1 -5
  51. package/lib/types/IRcSearchTagItemProps.type.js +1 -5
  52. package/lib/types/IRcSearchTagListProps.type.js +1 -5
  53. package/lib/utils.js +1 -1
  54. package/package.json +1 -1
  55. package/doc-dist/3.js +0 -104
package/doc-dist/4.js CHANGED
@@ -2,5 +2,88 @@
2
2
  if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
3
  window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
4
 
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[4,7,8],{127:function(e,t){},129:function(e,t){},164:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.node||e;if((({leadingComments:e})=>!!e&&e.some(e=>/[@#]__PURE__/.test(e.value)))(t))return;s(t,"leading","#__PURE__")};var n=r(65);const{addComment:s}=n},673:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({name:e,development:t}){return(0,s.declare)((r,s)=>{const{pure:h,throwIfNamespace:g=!0,filter:x,runtime:E=(t?"automatic":"classic"),importSource:j=u.importSource,pragma:v=u.pragma,pragmaFrag:w=u.pragmaFrag}=s;var{useSpread:S=!1,useBuiltIns:_=!1}=s;if("classic"===E){if("boolean"!=typeof S)throw new Error("transform-react-jsx currently only accepts a boolean option for useSpread (defaults to false)");if("boolean"!=typeof _)throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");if(S&&_)throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread but not both")}const N={JSXOpeningElement(e,t){const r=[];(function(e){const t=function(e){let t=e.scope;do{if(t.path.isFunctionParent()&&!t.path.isArrowFunctionExpression())return t.path}while(t=t.parent);return null}(e);if(null===t)return!0;if(!t.isMethod())return!0;if("constructor"!==t.node.kind)return!0;return r=t.parentPath.parentPath,!(null!==r.node.superClass);var r})(e)&&r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__self"),i.types.jsxExpressionContainer(i.types.thisExpression()))),r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__source"),i.types.jsxExpressionContainer(function(e,t){const r=e.node.loc;if(!r)return e.scope.buildUndefinedNode();if(!t.fileNameIdentifier){const{filename:r=""}=t,n=e.scope.generateUidIdentifier("_jsxFileName"),s=e.hub.getScope();s&&s.push({id:n,init:i.types.stringLiteral(r)}),t.fileNameIdentifier=n}return function(e,t,r){const n=null!=t?i.types.numericLiteral(t):i.types.nullLiteral(),s=null!=r?i.types.numericLiteral(r+1):i.types.nullLiteral(),o=i.types.objectProperty(i.types.identifier("fileName"),e),a=i.types.objectProperty(i.types.identifier("lineNumber"),n),u=i.types.objectProperty(i.types.identifier("columnNumber"),s);return i.types.objectExpression([o,a,u])}(i.types.cloneNode(t.fileNameIdentifier),r.start.line,r.start.column)}(e,t)))),e.pushContainer("attributes",r)}};return{name:e,inherits:n.default,visitor:{JSXNamespacedName(e){if(g)throw e.buildCodeFrameError("Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set `throwIfNamespace: false` to bypass this warning.")},JSXSpreadChild(e){throw e.buildCodeFrameError("Spread children are not supported in React.")},Program:{enter(e,r){const{file:n}=r;let a=E,b=j,h=v,g=w,x=!!s.importSource,S=!!s.pragma,_=!!s.pragmaFrag;if(n.ast.comments)for(const t of n.ast.comments){const e=l.exec(t.value);e&&(b=e[1],x=!0);const r=c.exec(t.value);r&&(a=r[1]);const n=p.exec(t.value);n&&(h=n[1],S=!0);const s=d.exec(t.value);s&&(g=s[1],_=!0)}if(f(r,"runtime",a),"classic"===a){if(x)throw e.buildCodeFrameError("importSource cannot be set when runtime is classic.");const t=y(h),n=y(g);f(r,"id/createElement",()=>i.types.cloneNode(t)),f(r,"id/fragment",()=>i.types.cloneNode(n)),f(r,"defaultPure",h===u.pragma)}else{if("automatic"!==a)throw e.buildCodeFrameError('Runtime must be either "classic" or "automatic".');{if(S||_)throw e.buildCodeFrameError("pragma and pragmaFrag cannot be set when runtime is automatic.");const n=(n,s)=>f(r,n,function(e,r,n,s){return()=>{const a=function(e,r){switch(r){case"Fragment":return`${e}/${t?"jsx-dev-runtime":"jsx-runtime"}`;case"jsxDEV":return e+"/jsx-dev-runtime";case"jsx":case"jsxs":return e+"/jsx-runtime";case"createElement":return e}}(s,n);if((0,o.isModule)(r)){let t=m(e,"imports/"+n);return t?i.types.cloneNode(t):(t=(0,o.addNamed)(r,n,a,{importedInterop:"uncompiled",importPosition:"after"}),f(e,"imports/"+n,t),t)}{let t=m(e,"requires/"+a);return t?t=i.types.cloneNode(t):(t=(0,o.addNamespace)(r,a,{importedInterop:"uncompiled"}),f(e,"requires/"+a,t)),i.types.memberExpression(t,i.types.identifier(n))}}}(r,e,s,b));n("id/jsx",t?"jsxDEV":"jsx"),n("id/jsxs",t?"jsxDEV":"jsxs"),n("id/createElement","createElement"),n("id/fragment","Fragment"),f(r,"defaultPure",b===u.importSource)}}t&&e.traverse(N,r)}},JSXElement:{exit(e,r){let n;n="classic"===m(r,"runtime")||function(e){const t=e.get("openingElement"),r=t.node.attributes;let n=!1;for(let s=0;s<r.length;s++){const e=r[s];if(n&&i.types.isJSXAttribute(e)&&"key"===e.name.name)return!0;i.types.isJSXSpreadAttribute(e)&&(n=!0)}return!1}(e)?function(e,t){const r=e.get("openingElement");return P(t,"createElement",[J(r),L(t,e,r.get("attributes")),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=e.get("openingElement"),s=[J(n)],o=[],a=Object.create(null);for(const t of n.get("attributes"))if(t.isJSXAttribute()&&i.types.isJSXIdentifier(t.node.name)){const{name:r}=t.node.name;switch(r){case"__source":case"__self":if(a[r])throw b(e,r);case"key":{const e=I(t.node.value);if(null===e)throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');a[r]=e;break}default:o.push(t)}}else o.push(t);const u=i.types.react.buildChildren(e.node);let l;l=o.length||u.length?function(e,t){const r=e.reduce(k,[]);(null==t?void 0:t.length)>0&&r.push(C(t));return i.types.objectExpression(r)}(o,u):i.types.objectExpression([]);var c,p,d;s.push(l),t?s.push(null!=(c=a.key)?c:e.scope.buildUndefinedNode(),i.types.booleanLiteral(u.length>1),null!=(p=a.__source)?p:e.scope.buildUndefinedNode(),null!=(d=a.__self)?d:e.scope.buildUndefinedNode()):void 0!==a.key&&s.push(a.key);return P(r,u.length>1?"jsxs":"jsx",s)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXFragment:{exit(e,r){let n;n="classic"===m(r,"runtime")?function(e,t){if(x&&!x(e.node,t))return;return P(t,"createElement",[m(t,"id/fragment")(),i.types.nullLiteral(),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=[m(r,"id/fragment")()],s=i.types.react.buildChildren(e.node);n.push(i.types.objectExpression(s.length>0?[C(s)]:[])),t&&n.push(e.scope.buildUndefinedNode(),i.types.booleanLiteral(s.length>1));return P(r,s.length>1?"jsxs":"jsx",n)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXAttribute(e){i.types.isJSXElement(e.node.value)&&(e.node.value=i.types.jsxExpressionContainer(e.node.value))}}};function P(e,t,r){const n=i.types.callExpression(m(e,"id/"+t)(),r);return(null!=h?h:m(e,"defaultPure"))&&(0,a.default)(n),n}function I(e){return i.types.isJSXExpressionContainer(e)?e.expression:e}function k(e,t){if(i.types.isJSXSpreadAttribute(t.node)){const r=t.node.argument;return i.types.isObjectExpression(r)?e.push(...r.properties):e.push(i.types.spreadElement(r)),e}const r=I("key"!==t.node.name.name?t.node.value||i.types.booleanLiteral(!0):t.node.value);if("key"===t.node.name.name&&null===r)throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');var n;i.types.isStringLiteral(r)&&!i.types.isJSXExpressionContainer(t.node.value)&&(r.value=r.value.replace(/\n\s+/g," "),null==(n=r.extra)||delete n.raw);return i.types.isJSXNamespacedName(t.node.name)?t.node.name=i.types.stringLiteral(t.node.name.namespace.name+":"+t.node.name.name.name):i.types.isValidIdentifier(t.node.name.name,!1)?t.node.name.type="Identifier":t.node.name=i.types.stringLiteral(t.node.name.name),e.push(i.types.inherits(i.types.objectProperty(t.node.name,r),t.node)),e}function C(e){let t;if(1===e.length)t=e[0];else{if(!(e.length>1))return;t=i.types.arrayExpression(e)}return i.types.objectProperty(i.types.identifier("children"),t)}function J(e){const t=function e(t,r){if(i.types.isJSXIdentifier(t)){if("this"===t.name&&i.types.isReferenced(t,r))return i.types.thisExpression();if(!i.types.isValidIdentifier(t.name,!1))return i.types.stringLiteral(t.name);t.type="Identifier"}else{if(i.types.isJSXMemberExpression(t))return i.types.memberExpression(e(t.object,t),e(t.property,t));if(i.types.isJSXNamespacedName(t))return i.types.stringLiteral(`${t.namespace.name}:${t.name.name}`)}return t}(e.node.name,e.node);let r;return i.types.isIdentifier(t)?r=t.name:i.types.isLiteral(t)&&(r=t.value),i.types.react.isCompatTag(r)?i.types.stringLiteral(r):t}function L(e,t,r){const n=m(e,"runtime");if("automatic"!==n){const t=[],n=r.reduce(k,[]);if(S)n.length&&t.push(i.types.objectExpression(n));else{let e=0;n.forEach((r,s)=>{i.types.isSpreadElement(r)&&(s>e&&t.push(i.types.objectExpression(n.slice(e,s))),t.push(r.argument),e=s+1)}),n.length>e&&t.push(i.types.objectExpression(n.slice(e)))}if(!t.length)return i.types.nullLiteral();if(1===t.length)return t[0];i.types.isObjectExpression(t[0])||t.unshift(i.types.objectExpression([]));const s=_?i.types.memberExpression(i.types.identifier("Object"),i.types.identifier("assign")):e.addHelper("extends");return i.types.callExpression(s,t)}const s=[],o=Object.create(null);for(const a of r){const e=i.types.isJSXAttribute(a)&&i.types.isJSXIdentifier(a.name)&&a.name.name;if("automatic"===n&&("__source"===e||"__self"===e)){if(o[e])throw b(t,e);o[e]=!0}k(s,a)}return 1===s.length&&i.types.isSpreadElement(s[0])?s[0].argument:s.length>0?i.types.objectExpression(s):i.types.nullLiteral()}})};var n=r(674),s=r(86),i=r(76),o=r(261),a=r(164);const u={importSource:"react",runtime:"automatic",pragma:"React.createElement",pragmaFrag:"React.Fragment"},l=/^\s*\*?\s*@jsxImportSource\s+([^\s]+)\s*$/m,c=/^\s*\*?\s*@jsxRuntime\s+([^\s]+)\s*$/m,p=/^\s*\*?\s*@jsx\s+([^\s]+)\s*$/m,d=/^\s*\*?\s*@jsxFrag\s+([^\s]+)\s*$/m,m=(e,t)=>e.get("@babel/plugin-react-jsx/"+t),f=(e,t,r)=>e.set("@babel/plugin-react-jsx/"+t,r);function y(e){return e.split(".").map(e=>i.types.identifier(e)).reduce((e,t)=>i.types.memberExpression(e,t))}function b(e,t){const r="transform-react-jsx-"+t.slice(2);return e.buildCodeFrameError(`Duplicate ${t} prop found. You are most likely using the deprecated ${r} Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.`)}},674:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(86),s=(0,n.declare)(e=>(e.assertVersion(7),{name:"syntax-jsx",manipulateOptions(e,t){t.plugins.some(e=>"typescript"===(Array.isArray(e)?e[0]:e))||t.plugins.push("jsx")}}));t.default=s},679:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(673),s=(0,n.default)({name:"transform-react-jsx",development:!1});t.default=s},86:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.declare=function(e){return(t,r,i)=>{var o;let a;for(const e of Object.keys(n)){var u;t[e]||(a=null!=(u=a)?u:s(t),a[e]=n[e](a))}return e(null!=(o=a)?o:t,r||{},i)}};const n={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const r=Error.stackTraceLimit;"number"==typeof r&&r<25&&(Error.stackTraceLimit=25);let n;n="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof r&&(Error.stackTraceLimit=r);throw Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)},targets:()=>()=>({}),assumption:()=>()=>{}};function s(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||i(t,"version")&&i(t,"transform")&&i(t,"template")&&i(t,"types")||(t=null)),Object.assign({},t,e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}}]);
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[4],{335:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasOwnDecorators=o,t.hasDecorators=function(e){return o(e)||e.body.body.some(o)},t.buildDecoratedClass=function(e,t,r,n){const{node:a,scope:i}=t,o=i.generateUidIdentifier("initialize"),l=a.id&&t.isDeclaration(),c=t.isInStrictMode(),{superClass:u}=a;a.type="ClassDeclaration",a.id||(a.id=s.types.cloneNode(e));let f;u&&(f=i.generateUidIdentifierBasedOnNode(a.superClass,"super"),a.superClass=f);const m=d(a),y=s.types.arrayExpression(r.filter(e=>!e.node.abstract).map(p.bind(n,a.id,f)));let b=s.template.expression.ast`
6
+ ${function(e){try{return e.addHelper("decorate")}catch(t){throw"BABEL_HELPER_UNKNOWN"===t.code&&(t.message+="\n '@babel/plugin-transform-decorators' in non-legacy mode requires '@babel/core' version ^7.0.2 and you appear to be using an older version."),t}}(n)}(
7
+ ${m||s.types.nullLiteral()},
8
+ function (${o}, ${u?s.types.cloneNode(f):null}) {
9
+ ${a}
10
+ return { F: ${s.types.cloneNode(a.id)}, d: ${y} };
11
+ },
12
+ ${u}
13
+ )
14
+ `,h="arguments.1.body.body.0";c||b.arguments[1].body.directives.push(s.types.directive(s.types.directiveLiteral("use strict")));l&&(b=s.template.ast`let ${e} = ${b}`,h="declarations.0.init."+h);return{instanceNodes:[s.template.statement.ast`${s.types.cloneNode(o)}(this)`],wrapClass:e=>(e.replaceWith(b),e.get(h))}};var s=r(76),n=i(r(143)),a=i(r(191));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return!(!e.decorators||!e.decorators.length)}function l(e,t){return t?s.types.objectProperty(s.types.identifier(e),t):null}function d(e){let t;return e.decorators&&e.decorators.length>0&&(t=s.types.arrayExpression(e.decorators.map(e=>e.expression))),e.decorators=void 0,t}function c(e){return e.computed?e.key:s.types.isIdentifier(e.key)?s.types.stringLiteral(e.key.name):s.types.stringLiteral(String(e.key.value))}function p(e,t,r){const{node:i,scope:o}=r,p=r.isClassMethod();if(r.isPrivate())throw r.buildCodeFrameError(`Private ${p?"methods":"fields"} in decorated classes are not supported yet.`);new n.default({methodPath:r,methodNode:i,objectRef:e,isStatic:i.static,superRef:t,scope:o,file:this,refToPreserve:e},!0).replace();const u=[l("kind",s.types.stringLiteral(p?i.kind:"field")),l("decorators",d(i)),l("static",i.static&&s.types.booleanLiteral(!0)),l("key",c(i))].filter(Boolean);if(p){const e=i.computed?null:i.key;s.types.toExpression(i),u.push(l("value",(0,a.default)({node:i,id:e,scope:o})||i))}else i.value?u.push((f="value",m=s.template.statements.ast`return ${i.value}`,s.types.objectMethod("method",s.types.identifier(f),[],s.types.blockStatement(m)))):u.push(l("value",o.buildUndefinedNode()));var f,m;return r.remove(),s.types.objectExpression(u)}},829:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(91),n=d(r(830)),a=r(76),i=r(831),o=d(r(836)),l=d(r(837));function d(e){return e&&e.__esModule?e:{default:e}}function c(e){switch(e.parent.type){case"TSTypeReference":case"TSQualifiedName":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;case"ExportSpecifier":return"type"===e.parentPath.parent.exportKind;default:return!1}}const p=new WeakSet,u=new WeakMap;function f(e,t){const r=e.find(e=>e.isProgram()).node;return!e.scope.hasOwnBinding(t)&&(!!u.get(r).has(t)||(console.warn(`The exported identifier "${t}" is not declared in Babel's scope tracker\nas a JavaScript value binding, and "@babel/plugin-transform-typescript"\nnever encountered it as a TypeScript type declaration.\nIt will be treated as a JavaScript value.\n\nThis problem is likely caused by another plugin injecting\n"${t}" without registering it in the scope tracker. If you are the author\n of that plugin, please use "scope.registerDeclaration(declarationPath)".`),!1))}function m(e,t){u.get(e.path.node).add(t)}var y=(0,s.declare)((e,t)=>{e.assertVersion(7);const r=/\*?\s*@jsx((?:Frag)?)\s+([^\s]+)/,{allowNamespaces:s=!0,jsxPragma:d="React.createElement",jsxPragmaFrag:y="React.Fragment",onlyRemoveTypeImports:b=!1}=t;var{allowDeclareFields:h=!1}=t;const g={field(e){const{node:t}=e;if(!h&&t.declare)throw e.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(t.declare){if(t.value)throw e.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");t.decorators||e.remove()}else if(t.definite){if(t.value)throw e.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");h||t.decorators||e.remove()}else h||t.value||t.decorators||a.types.isClassPrivateProperty(t)||e.remove();t.accessibility&&(t.accessibility=null),t.abstract&&(t.abstract=null),t.readonly&&(t.readonly=null),t.optional&&(t.optional=null),t.typeAnnotation&&(t.typeAnnotation=null),t.definite&&(t.definite=null),t.declare&&(t.declare=null)},method({node:e}){e.accessibility&&(e.accessibility=null),e.abstract&&(e.abstract=null),e.optional&&(e.optional=null)},constructor(e,t){e.node.accessibility&&(e.node.accessibility=null);const r=[];for(const s of e.node.params)"TSParameterProperty"!==s.type||p.has(s.parameter)||(p.add(s.parameter),r.push(s.parameter));if(r.length){const s=r.map(t=>{let r;if(a.types.isIdentifier(t))r=t;else{if(!a.types.isAssignmentPattern(t)||!a.types.isIdentifier(t.left))throw e.buildCodeFrameError("Parameter properties can not be destructuring patterns.");r=t.left}return a.template.statement.ast`
15
+ this.${a.types.cloneNode(r)} = ${a.types.cloneNode(r)}`});(0,i.injectInitialization)(t,e,s)}}};return{name:"transform-typescript",inherits:n.default,visitor:{Pattern:v,Identifier:v,RestElement:v,Program(e,t){const{file:s}=t;let n=null,i=null;if(u.has(e.node)||u.set(e.node,new Set),s.ast.comments)for(const a of s.ast.comments){const e=r.exec(a.value);e&&(e[1]?i=e[2]:n=e[2])}let o=n||d;o&&([o]=o.split("."));let l=i||y;l&&([l]=l.split("."));for(let r of e.get("body"))if(a.types.isImportDeclaration(r)){if("type"===r.node.importKind){r.remove();continue}if(!b){if(0===r.node.specifiers.length)continue;let t=!0;const s=[];for(const n of r.node.specifiers){const a=r.scope.getBinding(n.local.name);a&&E({binding:a,programPath:e,pragmaImportName:o,pragmaFragImportName:l})?s.push(a.path):t=!1}if(t)r.remove();else for(const e of s)e.remove()}}else if(r.isExportDeclaration()&&(r=r.get("declaration")),r.isVariableDeclaration({declare:!0}))for(const t of Object.keys(r.getBindingIdentifiers()))m(e.scope,t);else(r.isTSTypeAliasDeclaration()||r.isTSDeclareFunction()||r.isTSInterfaceDeclaration()||r.isClassDeclaration({declare:!0})||r.isTSEnumDeclaration({declare:!0})||r.isTSModuleDeclaration({declare:!0})&&r.get("id").isIdentifier())&&m(e.scope,r.node.id.name)},ExportNamedDeclaration(e){"type"!==e.node.exportKind?!e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every(({local:t})=>f(e,t.name))&&e.remove():e.remove()},ExportSpecifier(e){!e.parent.source&&f(e,e.node.local.name)&&e.remove()},ExportDefaultDeclaration(e){a.types.isIdentifier(e.node.declaration)&&f(e,e.node.declaration.name)&&e.remove()},TSDeclareFunction(e){e.remove()},TSDeclareMethod(e){e.remove()},VariableDeclaration(e){e.node.declare&&e.remove()},VariableDeclarator({node:e}){e.definite&&(e.definite=null)},TSIndexSignature(e){e.remove()},ClassDeclaration(e){const{node:t}=e;t.declare&&e.remove()},Class(e){const{node:t}=e;t.typeParameters&&(t.typeParameters=null),t.superTypeParameters&&(t.superTypeParameters=null),t.implements&&(t.implements=null),t.abstract&&(t.abstract=null),e.get("body.body").forEach(t=>{t.isClassMethod()||t.isClassPrivateMethod()?"constructor"===t.node.kind?g.constructor(t,e):g.method(t,e):(t.isClassProperty()||t.isClassPrivateProperty())&&g.field(t,e)})},Function(e){const{node:t,scope:r}=e;t.typeParameters&&(t.typeParameters=null),t.returnType&&(t.returnType=null);const s=t.params;s.length>0&&a.types.isIdentifier(s[0],{name:"this"})&&s.shift();const n=e.get("params");for(const a of n)"TSParameterProperty"===a.type&&(a.replaceWith(a.get("parameter")),r.registerBinding("param",a))},TSModuleDeclaration(e){(0,l.default)(e,a.types,s)},TSInterfaceDeclaration(e){e.remove()},TSTypeAliasDeclaration(e){e.remove()},TSEnumDeclaration(e){(0,o.default)(e,a.types)},TSImportEqualsDeclaration(e){throw e.buildCodeFrameError("`import =` is not supported by @babel/plugin-transform-typescript\nPlease consider using `import <moduleName> from '<moduleName>';` alongside Typescript's --allowSyntheticDefaultImports option.")},TSExportAssignment(e){throw e.buildCodeFrameError("`export =` is not supported by @babel/plugin-transform-typescript\nPlease consider using `export <value>;`.")},TSTypeAssertion(e){e.replaceWith(e.node.expression)},TSAsExpression(e){let{node:t}=e;do{t=t.expression}while(a.types.isTSAsExpression(t));e.replaceWith(t)},TSNonNullExpression(e){e.replaceWith(e.node.expression)},CallExpression(e){e.node.typeParameters=null},OptionalCallExpression(e){e.node.typeParameters=null},NewExpression(e){e.node.typeParameters=null},JSXOpeningElement(e){e.node.typeParameters=null},TaggedTemplateExpression(e){e.node.typeParameters=null}}};function v({node:e}){e.typeAnnotation&&(e.typeAnnotation=null),a.types.isIdentifier(e)&&e.optional&&(e.optional=null)}function E({binding:e,programPath:t,pragmaImportName:r,pragmaFragImportName:s}){for(const a of e.referencePaths)if(!c(a))return!1;if(e.identifier.name!==r&&e.identifier.name!==s)return!0;let n=!1;return t.traverse({"JSXElement|JSXFragment"(e){n=!0,e.stop()}}),!n}});t.default=y},830:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(91);function n(e,t){const r=[];e.forEach((e,s)=>{const n=Array.isArray(e)?e[0]:e;n===t&&r.unshift(s)});for(const s of r)e.splice(s,1)}var a=(0,s.declare)((e,{isTSX:t})=>(e.assertVersion(7),{name:"syntax-typescript",manipulateOptions(e,r){const{plugins:s}=r;n(s,"flow"),n(s,"jsx"),r.plugins.push("typescript","classProperties"),r.plugins.push("objectRestSpread"),t&&r.plugins.push("jsx")}}));t.default=a},831:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClassFeaturePlugin=function({name:e,feature:t,loose:r,manipulateOptions:c,api:f={assumption:()=>{}}}){const m=f.assumption("setPublicClassFields"),y=f.assumption("privateFieldsAsProperties"),b=f.assumption("constantSuper"),h=f.assumption("noDocumentAll");if(!0===r){const t=[];void 0!==m&&t.push('"setPublicClassFields"'),void 0!==y&&t.push('"privateFieldsAsProperties"'),0!==t.length&&console.warn(`[${e}]: You are using the "loose: true" option and you are explicitly setting a value for the `+t.join(" and ")+` assumption${t.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:\n\t"assumptions": {\n\t\t"setPublicClassFields": true,\n\t\t"privateFieldsAsProperties": true\n\t}`)}return{name:e,manipulateOptions:c,pre(){(0,d.enableFeature)(this.file,t,r),(!this.file.get(u)||this.file.get(u)<p)&&this.file.set(u,p)},visitor:{Class(e,r){if(this.file.get(u)!==p)return;(0,d.verifyUsedFeatures)(e,this.file);const a=(0,d.isLoose)(this.file,t);let c,f=(0,o.hasOwnDecorators)(e.node);const g=[],v=[],E=[],P=new Set,w=e.get("body");for(const t of w.get("body")){if((0,d.verifyUsedFeatures)(t,this.file),t.node.computed&&E.push(t),t.isPrivate()){const{name:e}=t.node.key.id,r="get "+e,s="set "+e;if("get"===t.node.kind){if(P.has(r)||P.has(e)&&!P.has(s))throw t.buildCodeFrameError("Duplicate private field");P.add(r).add(e)}else if("set"===t.node.kind){if(P.has(s)||P.has(e)&&!P.has(r))throw t.buildCodeFrameError("Duplicate private field");P.add(s).add(e)}else{if(P.has(e)&&!P.has(r)&&!P.has(s)||P.has(e)&&(P.has(r)||P.has(s)))throw t.buildCodeFrameError("Duplicate private field");P.add(e)}}if(t.isClassMethod({kind:"constructor"})?c=t:(v.push(t),(t.isProperty()||t.isPrivate())&&g.push(t)),f||(f=(0,o.hasOwnDecorators)(t.node)),null!=t.isStaticBlock&&t.isStaticBlock())throw t.buildCodeFrameError('Incorrect plugin order, `@babel/plugin-proposal-class-static-block` should be placed before class features plugins\n{\n "plugins": [\n "@babel/plugin-proposal-class-static-block",\n "@babel/plugin-proposal-private-property-in-object",\n "@babel/plugin-proposal-private-methods",\n "@babel/plugin-proposal-class-properties",\n ]\n}')}if(!g.length&&!f)return;let N;e.isClassExpression()||!e.node.id?((0,n.default)(e),N=e.scope.generateUidIdentifier("class")):N=s.types.cloneNode(e.node.id);const x=(0,i.buildPrivateNamesMap)(g),S=(0,i.buildPrivateNamesNodes)(x,null!=y?y:a,r);let D,k,I,j;(0,i.transformPrivateNamesUsage)(N,e,x,{privateFieldsAsProperties:null!=y?y:a,noDocumentAll:h},r),f?(k=D=[],({instanceNodes:I,wrapClass:j}=(0,o.buildDecoratedClass)(N,e,v,this.file))):(D=(0,l.extractComputedKeys)(N,e,E,this.file),({staticNodes:k,instanceNodes:I,wrapClass:j}=(0,i.buildFieldsInitNodes)(N,e.node.superClass,g,x,r,null!=m?m:a,null!=y?y:a,null!=b?b:a))),I.length>0&&(0,l.injectInitialization)(e,c,I,(e,t)=>{if(!f)for(const r of g)r.node.static||r.traverse(e,t)}),e=j(e),e.insertBefore([...S,...D]),e.insertAfter(k)},PrivateName(e){if(this.file.get(u)===p&&!e.parentPath.isPrivate({key:e.node}))throw e.buildCodeFrameError(`Unknown PrivateName "${e}"`)},ExportDefaultDeclaration(e){if(this.file.get(u)!==p)return;const t=e.get("declaration");t.isClassDeclaration()&&(0,o.hasDecorators)(t.node)&&(t.node.id?(0,a.default)(e):t.node.type="ClassExpression")}}}},Object.defineProperty(t,"injectInitialization",{enumerable:!0,get:function(){return l.injectInitialization}}),Object.defineProperty(t,"FEATURES",{enumerable:!0,get:function(){return d.FEATURES}});var s=r(76),n=c(r(191)),a=c(r(189)),i=r(832),o=r(335),l=r(834),d=r(835);function c(e){return e&&e.__esModule?e:{default:e}}const p="7.13.10".split(".").reduce((e,t)=>1e5*e+ +t,0),u="@babel/plugin-class-features/version"},832:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildPrivateNamesMap=function(e){const t=new Map;for(const r of e){const e=r.isPrivate(),s=!r.isProperty(),n=!r.node.static;if(e){const{name:e}=r.node.key.id,a=t.has(e)?t.get(e):{id:r.scope.generateUidIdentifier(e),static:!n,method:s};"get"===r.node.kind?a.getId=r.scope.generateUidIdentifier("get_"+e):"set"===r.node.kind?a.setId=r.scope.generateUidIdentifier("set_"+e):"method"===r.node.kind&&(a.methodId=r.scope.generateUidIdentifier(e)),t.set(e,a)}}return t},t.buildPrivateNamesNodes=function(e,t,r){const n=[];for(const[a,i]of e){const{static:e,method:o,getId:l,setId:d}=i,c=l||d,p=s.types.cloneNode(i.id);t?n.push(s.template.statement.ast`
16
+ var ${p} = ${r.addHelper("classPrivateFieldLooseKey")}("${a}")
17
+ `):o&&!e?c?n.push(s.template.statement.ast`var ${p} = new WeakMap();`):n.push(s.template.statement.ast`var ${p} = new WeakSet();`):e||n.push(s.template.statement.ast`var ${p} = new WeakMap();`)}return n},t.transformPrivateNamesUsage=function(e,t,r,{privateFieldsAsProperties:s,noDocumentAll:n},i){if(!r.size)return;const o=t.get("body"),l=s?y:m;(0,a.default)(o,u,Object.assign({privateNamesMap:r,classRef:e,file:i},l,{noDocumentAll:n})),o.traverse(f,{privateNamesMap:r,classRef:e,file:i,privateFieldsAsProperties:s})},t.buildFieldsInitNodes=function(e,t,r,n,a,i,l,d){const c=[],p=[];let u=!1;for(const f of r){o.assertFieldTransformed(f);const r=f.node.static,m=!r,y=f.isPrivate(),S=!y,k=f.isProperty(),I=!k;if(r||I&&y){const r=D(f,e,t,a,d);u=u||r}switch(!0){case r&&y&&k&&l:u=!0,c.push(b(s.types.cloneNode(e),f,n));break;case r&&y&&k&&!l:u=!0,c.push(g(f,n));break;case r&&S&&k&&i:u=!0,c.push(P(s.types.cloneNode(e),f));break;case r&&S&&k&&!i:u=!0,c.push(w(s.types.cloneNode(e),f,a));break;case m&&y&&k&&l:p.push(b(s.types.thisExpression(),f,n));break;case m&&y&&k&&!l:p.push(h(s.types.thisExpression(),f,n));break;case m&&y&&I&&l:p.unshift(v(s.types.thisExpression(),f,n)),c.push(x(f,n,l));break;case m&&y&&I&&!l:p.unshift(E(s.types.thisExpression(),f,n)),c.push(x(f,n,l));break;case r&&y&&I&&!l:u=!0,c.unshift(g(f,n)),c.unshift(x(f,n,l));break;case r&&y&&I&&l:u=!0,c.unshift(N(s.types.cloneNode(e),f,a,n)),c.unshift(x(f,n,l));break;case m&&S&&k&&i:p.push(P(s.types.thisExpression(),f));break;case m&&S&&k&&!i:p.push(w(s.types.thisExpression(),f,a));break;default:throw new Error("Unreachable.")}}return{staticNodes:c.filter(Boolean),instanceNodes:p.filter(Boolean),wrapClass(t){for(const e of r)e.remove();return u?(t.isClassExpression()?(t.scope.push({id:e}),t.replaceWith(s.types.assignmentExpression("=",s.types.cloneNode(e),t.node))):t.node.id||(t.node.id=e),t):t}}};var s=r(76),n=c(r(143)),a=l(r(311)),i=l(r(312)),o=c(r(833));function l(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var r={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;a&&(a.get||a.set)?Object.defineProperty(r,n,a):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function p(e){const t=Object.assign({},e,{Class(e){const{privateNamesMap:s}=this,n=e.get("body.body"),a=new Map(s),i=[];for(const t of n){if(!t.isPrivate())continue;const{name:e}=t.node.key.id;a.delete(e),i.push(e)}i.length&&(e.get("body").traverse(r,Object.assign({},this,{redeclared:i})),e.traverse(t,Object.assign({},this,{privateNamesMap:a})),e.skipKey("body"))}}),r=s.traverse.visitors.merge([Object.assign({},e),n.environmentVisitor]);return t}const u=p({PrivateName(e,{noDocumentAll:t}){const{privateNamesMap:r,redeclared:s}=this,{node:n,parentPath:a}=e;if(!a.isMemberExpression({property:n})&&!a.isOptionalMemberExpression({property:n}))return;const{name:i}=n.id;r.has(i)&&(s&&s.includes(i)||this.handle(a,t))}}),f=p({BinaryExpression(e){const{operator:t,left:r,right:n}=e.node;if("in"!==t)return;if(!e.get("left").isPrivateName())return;const{privateFieldsAsProperties:a,privateNamesMap:i,redeclared:o}=this,{name:l}=r.id;if(!i.has(l))return;if(o&&o.includes(l))return;if(a){const{id:t}=i.get(l);return void e.replaceWith(s.template.expression.ast`
18
+ Object.prototype.hasOwnProperty.call(${n}, ${s.types.cloneNode(t)})
19
+ `)}const{id:d,static:c}=i.get(l);c?e.replaceWith(s.template.expression.ast`${n} === ${this.classRef}`):e.replaceWith(s.template.expression.ast`${s.types.cloneNode(d)}.has(${n})`)}}),m={memoise(e,t){const{scope:r}=e,{object:s}=e.node,n=r.maybeGenerateMemoised(s);n&&this.memoiser.set(s,n,t)},receiver(e){const{object:t}=e.node;return this.memoiser.has(t)?s.types.cloneNode(this.memoiser.get(t)):s.types.cloneNode(t)},get(e){const{classRef:t,privateNamesMap:r,file:n}=this,{name:a}=e.node.property.id,{id:i,static:o,method:l,methodId:d,getId:c,setId:p}=r.get(a),u=c||p;if(o){const r=l&&!u?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return s.types.callExpression(n.addHelper(r),[this.receiver(e),s.types.cloneNode(t),s.types.cloneNode(i)])}if(l){if(u){if(!c&&p){if(n.availableHelper("writeOnlyError"))return s.types.sequenceExpression([this.receiver(e),s.types.callExpression(n.addHelper("writeOnlyError"),[s.types.stringLiteral("#"+a)])]);console.warn("@babel/helpers is outdated, update it to silence this warning.")}return s.types.callExpression(n.addHelper("classPrivateFieldGet"),[this.receiver(e),s.types.cloneNode(i)])}return s.types.callExpression(n.addHelper("classPrivateMethodGet"),[this.receiver(e),s.types.cloneNode(i),s.types.cloneNode(d)])}return s.types.callExpression(n.addHelper("classPrivateFieldGet"),[this.receiver(e),s.types.cloneNode(i)])},boundGet(e){return this.memoise(e,1),s.types.callExpression(s.types.memberExpression(this.get(e),s.types.identifier("bind")),[this.receiver(e)])},set(e,t){const{classRef:r,privateNamesMap:n,file:a}=this,{name:i}=e.node.property.id,{id:o,static:l,method:d,setId:c,getId:p}=n.get(i),u=p||c;if(l){const n=d&&!u?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return s.types.callExpression(a.addHelper(n),[this.receiver(e),s.types.cloneNode(r),s.types.cloneNode(o),t])}return d?c?s.types.callExpression(a.addHelper("classPrivateFieldSet"),[this.receiver(e),s.types.cloneNode(o),t]):s.types.sequenceExpression([this.receiver(e),t,s.types.callExpression(a.addHelper("readOnlyError"),[s.types.stringLiteral("#"+i)])]):s.types.callExpression(a.addHelper("classPrivateFieldSet"),[this.receiver(e),s.types.cloneNode(o),t])},destructureSet(e){const{classRef:t,privateNamesMap:r,file:n}=this,{name:a}=e.node.property.id,{id:i,static:o}=r.get(a);if(o){try{var l=n.addHelper("classStaticPrivateFieldDestructureSet")}catch(d){throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \nplease update @babel/helpers to the latest version.")}return s.types.memberExpression(s.types.callExpression(l,[this.receiver(e),s.types.cloneNode(t),s.types.cloneNode(i)]),s.types.identifier("value"))}return s.types.memberExpression(s.types.callExpression(n.addHelper("classPrivateFieldDestructureSet"),[this.receiver(e),s.types.cloneNode(i)]),s.types.identifier("value"))},call(e,t){return this.memoise(e,1),(0,i.default)(this.get(e),this.receiver(e),t,!1)},optionalCall(e,t){return this.memoise(e,1),(0,i.default)(this.get(e),this.receiver(e),t,!0)}},y={get(e){const{privateNamesMap:t,file:r}=this,{object:n}=e.node,{name:a}=e.node.property.id;return s.template.expression`BASE(REF, PROP)[PROP]`({BASE:r.addHelper("classPrivateFieldLooseBase"),REF:s.types.cloneNode(n),PROP:s.types.cloneNode(t.get(a).id)})},boundGet(e){return s.types.callExpression(s.types.memberExpression(this.get(e),s.types.identifier("bind")),[s.types.cloneNode(e.node.object)])},simpleSet(e){return this.get(e)},destructureSet(e){return this.get(e)},call(e,t){return s.types.callExpression(this.get(e),t)},optionalCall(e,t){return s.types.optionalCallExpression(this.get(e),t,!0)}};function b(e,t,r){const{id:n}=r.get(t.node.key.id.name),a=t.node.value||t.scope.buildUndefinedNode();return s.template.statement.ast`
20
+ Object.defineProperty(${e}, ${s.types.cloneNode(n)}, {
21
+ // configurable is false by default
22
+ // enumerable is false by default
23
+ writable: true,
24
+ value: ${a}
25
+ });
26
+ `}function h(e,t,r){const{id:n}=r.get(t.node.key.id.name),a=t.node.value||t.scope.buildUndefinedNode();return s.template.statement.ast`${s.types.cloneNode(n)}.set(${e}, {
27
+ // configurable is always false for private elements
28
+ // enumerable is always false for private elements
29
+ writable: true,
30
+ value: ${a},
31
+ })`}function g(e,t){const r=t.get(e.node.key.id.name),{id:n,getId:a,setId:i,initAdded:o}=r,l=a||i;if(!e.isProperty()&&(o||!l))return;if(l)return t.set(e.node.key.id.name,Object.assign({},r,{initAdded:!0})),s.template.statement.ast`
32
+ var ${s.types.cloneNode(n)} = {
33
+ // configurable is false by default
34
+ // enumerable is false by default
35
+ // writable is false by default
36
+ get: ${a?a.name:e.scope.buildUndefinedNode()},
37
+ set: ${i?i.name:e.scope.buildUndefinedNode()}
38
+ }
39
+ `;const d=e.node.value||e.scope.buildUndefinedNode();return s.template.statement.ast`
40
+ var ${s.types.cloneNode(n)} = {
41
+ // configurable is false by default
42
+ // enumerable is false by default
43
+ writable: true,
44
+ value: ${d}
45
+ };
46
+ `}function v(e,t,r){const n=r.get(t.node.key.id.name),{methodId:a,id:i,getId:o,setId:l,initAdded:d}=n;if(d)return;if(a)return s.template.statement.ast`
47
+ Object.defineProperty(${e}, ${i}, {
48
+ // configurable is false by default
49
+ // enumerable is false by default
50
+ // writable is false by default
51
+ value: ${a.name}
52
+ });
53
+ `;const c=o||l;return c?(r.set(t.node.key.id.name,Object.assign({},n,{initAdded:!0})),s.template.statement.ast`
54
+ Object.defineProperty(${e}, ${i}, {
55
+ // configurable is false by default
56
+ // enumerable is false by default
57
+ // writable is false by default
58
+ get: ${o?o.name:t.scope.buildUndefinedNode()},
59
+ set: ${l?l.name:t.scope.buildUndefinedNode()}
60
+ });
61
+ `):void 0}function E(e,t,r){const n=r.get(t.node.key.id.name),{id:a,getId:i,setId:o,initAdded:l}=n;if(l)return;const d=i||o;return d?(r.set(t.node.key.id.name,Object.assign({},n,{initAdded:!0})),s.template.statement.ast`
62
+ ${a}.set(${e}, {
63
+ get: ${i?i.name:t.scope.buildUndefinedNode()},
64
+ set: ${o?o.name:t.scope.buildUndefinedNode()}
65
+ });
66
+ `):s.template.statement.ast`${a}.add(${e})`}function P(e,t){const{key:r,computed:n}=t.node,a=t.node.value||t.scope.buildUndefinedNode();return s.types.expressionStatement(s.types.assignmentExpression("=",s.types.memberExpression(e,r,n||s.types.isLiteral(r)),a))}function w(e,t,r){const{key:n,computed:a}=t.node,i=t.node.value||t.scope.buildUndefinedNode();return s.types.expressionStatement(s.types.callExpression(r.addHelper("defineProperty"),[e,a||s.types.isLiteral(n)?n:s.types.stringLiteral(n.name),i]))}function N(e,t,r,n){const a=n.get(t.node.key.id.name),{id:i,methodId:o,getId:l,setId:d,initAdded:c}=a;if(c)return;const p=l||d;return p?(n.set(t.node.key.id.name,Object.assign({},a,{initAdded:!0})),s.template.statement.ast`
67
+ Object.defineProperty(${e}, ${i}, {
68
+ // configurable is false by default
69
+ // enumerable is false by default
70
+ // writable is false by default
71
+ get: ${l?l.name:t.scope.buildUndefinedNode()},
72
+ set: ${d?d.name:t.scope.buildUndefinedNode()}
73
+ })
74
+ `):s.template.statement.ast`
75
+ Object.defineProperty(${e}, ${i}, {
76
+ // configurable is false by default
77
+ // enumerable is false by default
78
+ // writable is false by default
79
+ value: ${o.name}
80
+ });
81
+ `}function x(e,t,r=!1){const n=t.get(e.node.key.id.name),{id:a,methodId:i,getId:o,setId:l,getterDeclared:d,setterDeclared:c,static:p}=n,{params:u,body:f,generator:m,async:y}=e.node,b=s.types.functionExpression(i,u,f,m,y),h=o&&!d&&0===u.length,g=l&&!c&&u.length>0;return h?(t.set(e.node.key.id.name,Object.assign({},n,{getterDeclared:!0})),s.types.variableDeclaration("var",[s.types.variableDeclarator(o,b)])):g?(t.set(e.node.key.id.name,Object.assign({},n,{setterDeclared:!0})),s.types.variableDeclaration("var",[s.types.variableDeclarator(l,b)])):p&&!r?s.types.variableDeclaration("var",[s.types.variableDeclarator(s.types.cloneNode(a),s.types.functionExpression(a,u,f,m,y))]):s.types.variableDeclaration("var",[s.types.variableDeclarator(s.types.cloneNode(i),b)])}const S=s.traverse.visitors.merge([{ThisExpression(e,t){t.needsClassRef=!0,e.replaceWith(s.types.cloneNode(t.classRef))}},n.environmentVisitor]);function D(e,t,r,a,i){const o={classRef:t,needsClassRef:!1},l=new n.default({methodPath:e,constantSuper:i,superRef:r,file:a,refToPreserve:t,getObjectRef:()=>(o.needsClassRef=!0,e.node.static?t:s.types.memberExpression(t,s.types.identifier("prototype")))});return l.replace(),e.isProperty()&&e.traverse(S,o),o.needsClassRef}},833:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertFieldTransformed=function(e){if(e.node.declare)throw e.buildCodeFrameError("TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.\nIf you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:\n - @babel/plugin-proposal-class-properties\n - @babel/plugin-proposal-private-methods\n - @babel/plugin-proposal-decorators")}},834:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectInitialization=function(e,t,r,n){if(!r.length)return;const o=!!e.node.superClass;if(!t){const r=s.types.classMethod("constructor",s.types.identifier("constructor"),[],s.types.blockStatement([]));o&&(r.params=[s.types.restElement(s.types.identifier("args"))],r.body.body.push(s.template.statement.ast`super(...args)`)),[t]=e.get("body").unshiftContainer("body",r)}n&&n(i,{scope:t.scope});if(o){const e=[];t.traverse(a,e);let n=!0;for(const t of e)n?(t.insertAfter(r),n=!1):t.insertAfter(r.map(e=>s.types.cloneNode(e)))}else t.get("body").unshiftContainer("body",r)},t.extractComputedKeys=function(e,t,r,n){const a=[],i={classBinding:t.node.id&&t.scope.getBinding(t.node.id.name),file:n};for(const d of r){const e=d.get("key");e.isReferencedIdentifier()?o(e,i):e.traverse(l,i);const r=d.node;if(!e.isConstantExpression()){const e=t.scope.generateUidIdentifierBasedOnNode(r.key);t.scope.push({id:e,kind:"let"}),a.push(s.types.expressionStatement(s.types.assignmentExpression("=",s.types.cloneNode(e),r.key))),r.key=s.types.cloneNode(e)}}return a};var s=r(76),n=r(143);const a=s.traverse.visitors.merge([{Super(e){const{node:t,parentPath:r}=e;r.isCallExpression({callee:t})&&this.push(r)}},n.environmentVisitor]),i={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e){this.scope.hasOwnBinding(e.node.name)&&(this.scope.rename(e.node.name),e.skip())}};function o(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){const r=t.file.addHelper("classNameTDZError"),n=s.types.callExpression(r,[s.types.stringLiteral(e.node.name)]);e.replaceWith(s.types.sequenceExpression([n,e.node])),e.skip()}}const l={ReferencedIdentifier:o}},835:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enableFeature=function(e,t,r){d(e,t)&&!u(e,t)||(e.set(i,e.get(i)|t),"#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"===r?(p(e,t,!0),e.set(l,e.get(l)|t)):"#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"===r?(p(e,t,!1),e.set(l,e.get(l)|t)):p(e,t,r));let s,n;for(const[i,o]of a){if(!d(e,i))continue;const t=c(e,i);if(!u(e,i)){if(s===!t)throw new Error("'loose' mode configuration must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled).");s=t,n=o}}if(void 0!==s)for(const[i,o]of a)d(e,i)&&c(e,i)!==s&&(p(e,i,s),console.warn(`Though the "loose" option was set to "${!s}" in your @babel/preset-env config, it will not be used for ${o} since the "loose" mode option was set to "${s}" for ${n}.\nThe "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding\n\t["${o}", { "loose": ${s} }]\nto the "plugins" section of your Babel config.`))},t.isLoose=c,t.verifyUsedFeatures=function(e,t){if((0,s.hasOwnDecorators)(e.node)){if(!d(t,n.decorators))throw e.buildCodeFrameError('Decorators are not enabled.\nIf you are using ["@babel/plugin-proposal-decorators", { "legacy": true }], make sure it comes *before* "@babel/plugin-proposal-class-properties" and enable loose mode, like so:\n\t["@babel/plugin-proposal-decorators", { "legacy": true }]\n\t["@babel/plugin-proposal-class-properties", { "loose": true }]');if(e.isPrivate())throw e.buildCodeFrameError(`Private ${e.isClassMethod()?"methods":"fields"} in decorated classes are not supported yet.`)}if(e.isPrivate()&&e.isMethod()&&!d(t,n.privateMethods))throw e.buildCodeFrameError("Class private methods are not enabled.");if(e.isPrivateName()&&e.parentPath.isBinaryExpression({operator:"in",left:e.node})&&!d(t,n.privateIn))throw e.buildCodeFrameError("Private property in checks are not enabled.");if(e.isProperty()&&!d(t,n.fields))throw e.buildCodeFrameError("Class fields are not enabled.")},t.FEATURES=void 0;var s=r(335);const n=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16});t.FEATURES=n;const a=new Map([[n.fields,"@babel/plugin-proposal-class-properties"],[n.privateMethods,"@babel/plugin-proposal-private-methods"],[n.privateIn,"@babel/plugin-proposal-private-private-property-in-object"]]),i="@babel/plugin-class-features/featuresKey",o="@babel/plugin-class-features/looseKey",l="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";function d(e,t){return!!(e.get(i)&t)}function c(e,t){return!!(e.get(o)&t)}function p(e,t,r){r?e.set(o,e.get(o)|t):e.set(o,e.get(o)&~t),e.set(l,e.get(l)&~t)}function u(e,t){return!!(e.get(l)&t)}},836:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{node:r}=e;if(r.const)throw e.buildCodeFrameError("'const' enums are not supported.");if(r.declare)return void e.remove();const s=r.id.name,a=function(e,t,r){const s=function(e,t){const r=Object.create(null);let s=-1;return e.node.members.map(a=>{const i=t.isIdentifier(a.id)?a.id.name:a.id.value,o=a.initializer;let l;if(o){const e=function(e,t){return r(e);function r(e){switch(e.type){case"StringLiteral":return e.value;case"UnaryExpression":return function({argument:e,operator:t}){const s=r(e);if(void 0===s)return;switch(t){case"+":return s;case"-":return-s;case"~":return~s;default:return}}(e);case"BinaryExpression":return function(e){const t=r(e.left);if(void 0===t)return;const s=r(e.right);if(void 0===s)return;switch(e.operator){case"|":return t|s;case"&":return t&s;case">>":return t>>s;case">>>":return t>>>s;case"<<":return t<<s;case"^":return t^s;case"*":return t*s;case"/":return t/s;case"+":return t+s;case"-":return t-s;case"%":return t%s;default:return}}(e);case"NumericLiteral":return e.value;case"ParenthesizedExpression":return r(e.expression);case"Identifier":return t[e.name];case"TemplateLiteral":if(1===e.quasis.length)return e.quasis[0].value.cooked;default:return}}}(o,r);void 0!==e?(r[i]=e,"number"==typeof e?(l=t.numericLiteral(e),s=e):((0,n.default)("string"==typeof e),l=t.stringLiteral(e),s=void 0)):(l=o,s=void 0)}else{if(void 0===s)throw e.buildCodeFrameError("Enum member must have initializer.");s++,l=t.numericLiteral(s),r[i]=s}return[i,l]})}(e,t),a=s.map(([e,s])=>{return n=t.isStringLiteral(s),a={ENUM:t.cloneNode(r),NAME:e,VALUE:s},(n?o:l)(a);var n,a});return i({ID:t.cloneNode(r),ASSIGNMENTS:a})}(e,t,r.id);switch(e.parent.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":if(e.insertAfter(a),function e(t){if(t.isExportDeclaration())return e(t.parentPath);return!!t.getData(s)||(t.setData(s,!0),!1)}(e.parentPath))e.remove();else{const s=t.isProgram(e.parent);e.scope.registerDeclaration(e.replaceWith(function(e,t,r){return t.variableDeclaration(r,[t.variableDeclarator(e)])}(r.id,t,s?"var":"let"))[0])}break;default:throw new Error("Unexpected enum parent '"+e.parent.type)}};var s,n=(s=r(114),s&&s.__esModule?s:{default:s}),a=r(76);const i=(0,a.template)("\n (function (ID) {\n ASSIGNMENTS;\n })(ID || (ID = {}));\n"),o=(0,a.template)('\n ENUM["NAME"] = VALUE;\n'),l=(0,a.template)('\n ENUM[ENUM["NAME"] = VALUE] = "NAME";\n')},837:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(e.node.declare||"StringLiteral"===e.node.id.type)return void e.remove();if(!r)throw e.hub.file.buildCodeFrameError(e.node.id,"Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");const o=e.node.id.name,l=function e(t,r,o,l){const d=new Set,c=o.id,p=t.scope.generateUid(c.name),u=o.body.body;for(let s=0;s<u.length;s++){const o=u[s];switch(o.type){case"TSModuleDeclaration":{const a=e(t,r,o),i=o.id.name;d.has(i)?u[s]=a:(d.add(i),u.splice(s++,1,n(r,i),a));continue}case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":d.add(o.id.name);continue;case"VariableDeclaration":for(const e in r.getBindingIdentifiers(o))d.add(e);continue;default:continue;case"ExportNamedDeclaration":}switch(o.declaration.type){case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":{const e=o.declaration.id.name;d.add(e),u.splice(s++,1,o.declaration,r.expressionStatement(r.assignmentExpression("=",a(r,p,e),r.identifier(e))));break}case"VariableDeclaration":{const e=i(o.declaration,p,t.hub);u.splice(s,e.length,...e),s+=e.length-1;break}case"TSModuleDeclaration":{const a=e(t,r,o.declaration,r.identifier(p)),i=o.declaration.id.name;d.has(i)?u[s]=a:(d.add(i),u.splice(s++,1,n(r,i),a))}}}let f=r.objectExpression([]);if(l){const e=r.memberExpression(l,c);f=s.template.expression.ast`
82
+ ${r.cloneNode(e)} ||
83
+ (${r.cloneNode(e)} = ${f})
84
+ `}return s.template.statement.ast`
85
+ (function (${r.identifier(p)}) {
86
+ ${u}
87
+ })(${c} || (${r.cloneNode(c)} = ${f}));
88
+ `}(e,t,t.cloneDeep(e.node)),d=e.scope.hasOwnBinding(o);"ExportNamedDeclaration"===e.parent.type?d?e.parentPath.replaceWith(l):(e.parentPath.insertAfter(l),e.replaceWith(n(t,o)),e.scope.registerDeclaration(e.parentPath)):d?e.replaceWith(l):e.scope.registerDeclaration(e.replaceWithMultiple([n(t,o),l])[0])};var s=r(76);function n(e,t){return e.variableDeclaration("let",[e.variableDeclarator(e.identifier(t))])}function a(e,t,r){return e.memberExpression(e.identifier(t),e.identifier(r))}function i(e,t,r){if("const"!==e.kind)throw r.file.buildCodeFrameError(e,"Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");const{declarations:n}=e;if(n.every(e=>s.types.isIdentifier(e.id))){for(const r of e.declarations)r.init=s.types.assignmentExpression("=",a(s.types,t,r.id.name),r.init);return[e]}const i=s.types.getBindingIdentifiers(e),o=[];for(const l in i)o.push(s.types.assignmentExpression("=",a(s.types,t,l),s.types.cloneNode(i[l])));return[e,s.types.expressionStatement(s.types.sequenceExpression(o))]}},845:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(91),n=r(829),a=r(195);function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(n);const l=new a.OptionValidator("@babel/preset-typescript");var d=s.declare((e,t)=>{e.assertVersion(7);const{allExtensions:r,allowNamespaces:s,isTSX:n,jsxPragma:a,jsxPragmaFrag:i,onlyRemoveTypeImports:d}=function(e={}){let{allowNamespaces:t=!0,jsxPragma:r,onlyRemoveTypeImports:s}=e;const n=l.validateStringOption("jsxPragmaFrag",e.jsxPragmaFrag,"React.Fragment"),a=l.validateBooleanOption("allExtensions",e.allExtensions,!1),i=l.validateBooleanOption("isTSX",e.isTSX,!1);return i&&l.invariant(a,"isTSX:true requires allExtensions:true"),{allExtensions:a,allowNamespaces:t,isTSX:i,jsxPragma:r,jsxPragmaFrag:n,onlyRemoveTypeImports:s}}(t),c=e=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,isTSX:e,jsxPragma:a,jsxPragmaFrag:i,onlyRemoveTypeImports:d});return{overrides:r?[{plugins:[[o.default,c(n)]]}]:[{test:/\.ts$/,plugins:[[o.default,c(!1)]]},{test:/\.tsx$/,plugins:[[o.default,c(!0)]]}]}});t.default=d},91:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.declare=function(e){return(t,r,a)=>{var i;let o;for(const e of Object.keys(s)){var l;t[e]||(o=null!=(l=o)?l:n(t),o[e]=s[e](o))}return e(null!=(i=o)?i:t,r||{},a)}};const s={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const r=Error.stackTraceLimit;"number"==typeof r&&r<25&&(Error.stackTraceLimit=25);let s;s="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof r&&(Error.stackTraceLimit=r);throw Object.assign(s,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)},targets:()=>()=>({}),assumption:()=>()=>{}};function n(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||a(t,"version")&&a(t,"transform")&&a(t,"template")&&a(t,"types")||(t=null)),Object.assign({},t,e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}}]);
6
89
  }})
package/doc-dist/5.js CHANGED
@@ -2,12 +2,5 @@
2
2
  if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
3
  window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
4
 
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[5,7,8],{127:function(e,t){},129:function(e,t){},671:function(e,t,r){e.exports=r(672)},672:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],o=!0,n=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);o=!0);}catch(l){n=!0,i=l}finally{try{!o&&a.return&&a.return()}finally{if(n)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function n(e,t){var r=t.arguments,n=o(r,1),i=n[0],s=e.isStringLiteral(i)||e.isTemplateLiteral(i);return s?(e.removeComments(i),i):e.templateLiteral([e.templateElement({raw:"",cooked:""}),e.templateElement({raw:"",cooked:""},!0)],r)}t.getImportSource=n,t.createDynamicImportTransform=function(e){var t=e.template,r=e.types,o={static:{interop:t("Promise.resolve().then(() => INTEROP(require(SOURCE)))"),noInterop:t("Promise.resolve().then(() => require(SOURCE))")},dynamic:{interop:t("Promise.resolve(SOURCE).then(s => INTEROP(require(s)))"),noInterop:t("Promise.resolve(SOURCE).then(s => require(s))")}},i="function"==typeof WeakSet&&new WeakSet;return function(e,t){if(i){if(i.has(t))return;i.add(t)}var s,a=n(r,t.parent),l=(s=a,r.isStringLiteral(s)||r.isTemplateLiteral(s)&&0===s.expressions.length?o.static:o.dynamic),p=e.opts.noInterop?l.noInterop({SOURCE:a}):l.interop({SOURCE:a,INTEROP:e.addHelper("interopRequireWildcard")});t.parentPath.replaceWith(p)}}},678:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(86),n=r(260),i=r(76),s=r(671);const a=(0,i.template)("\n define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) {\n })\n"),l=(0,i.template)('\n define(["require"], function(REQUIRE) {\n })\n');function p(e,t){const{body:r,directives:o}=e.node;e.node.directives=[],e.node.body=[];const n=e.pushContainer("body",t)[0],i=n.get("expression.arguments").filter(e=>e.isFunctionExpression())[0].get("body");i.pushContainer("directives",o),i.pushContainer("body",r)}var c=(0,o.declare)((e,t)=>{var r,o;e.assertVersion(7);const{allowTopLevelThis:c,strict:u,strictMode:d,importInterop:f,noInterop:m}=t,y=null!=(r=e.assumption("constantReexports"))?r:t.loose,h=null!=(o=e.assumption("enumerableModuleMeta"))?o:t.loose;return{name:"transform-modules-amd",pre(){this.file.set("@babel/plugin-transform-modules-*","amd")},visitor:{CallExpression(e,t){if(!this.file.has("@babel/plugin-proposal-dynamic-import"))return;if(!e.get("callee").isImport())return;let{requireId:r,resolveId:o,rejectId:a}=t;r||(r=e.scope.generateUidIdentifier("require"),t.requireId=r),o&&a||(o=e.scope.generateUidIdentifier("resolve"),a=e.scope.generateUidIdentifier("reject"),t.resolveId=o,t.rejectId=a);let l=i.types.identifier("imported");m||(l=(0,n.wrapInterop)(e,l,"namespace")),e.replaceWith(i.template.expression.ast`
6
- new Promise((${o}, ${a}) =>
7
- ${r}(
8
- [${(0,s.getImportSource)(i.types,e.node)}],
9
- imported => ${i.types.cloneNode(o)}(${l}),
10
- ${i.types.cloneNode(a)}
11
- )
12
- )`)},Program:{exit(e,{requireId:r}){if(!(0,n.isModule)(e))return void(r&&p(e,l({REQUIRE:i.types.cloneNode(r)})));const o=[],s=[];r&&(o.push(i.types.stringLiteral("require")),s.push(i.types.cloneNode(r)));let b=(0,n.getModuleName)(this.file.opts,t);b&&(b=i.types.stringLiteral(b));const{meta:v,headers:E}=(0,n.rewriteModuleStatementsAndPrepareHeader)(e,{enumerableModuleMeta:h,constantReexports:y,strict:u,strictMode:d,allowTopLevelThis:c,importInterop:f,noInterop:m});(0,n.hasExports)(v)&&(o.push(i.types.stringLiteral("exports")),s.push(i.types.identifier(v.exportName)));for(const[t,a]of v.source){if(o.push(i.types.stringLiteral(t)),s.push(i.types.identifier(a.name)),!(0,n.isSideEffectImport)(a)){const t=(0,n.wrapInterop)(e,i.types.identifier(a.name),a.interop);if(t){const e=i.types.expressionStatement(i.types.assignmentExpression("=",i.types.identifier(a.name),t));e.loc=a.loc,E.push(e)}}E.push(...(0,n.buildNamespaceInitStatements)(v,a,y))}(0,n.ensureStatementsHoisted)(E),e.unshiftContainer("body",E),p(e,a({MODULE_NAME:b,AMD_ARGUMENTS:i.types.arrayExpression(o),IMPORT_NAMES:s}))}}}}});t.default=c},86:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.declare=function(e){return(t,r,i)=>{var s;let a;for(const e of Object.keys(o)){var l;t[e]||(a=null!=(l=a)?l:n(t),a[e]=o[e](a))}return e(null!=(s=a)?s:t,r||{},i)}};const o={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const r=Error.stackTraceLimit;"number"==typeof r&&r<25&&(Error.stackTraceLimit=25);let o;o="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof r&&(Error.stackTraceLimit=r);throw Object.assign(o,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)},targets:()=>()=>({}),assumption:()=>()=>{}};function n(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||i(t,"version")&&i(t,"transform")&&i(t,"template")&&i(t,"types")||(t=null)),Object.assign({},t,e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}}]);
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[5,8,9],{148:function(e,t){},151:function(e,t){},840:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({name:e,development:t}){return(0,s.declare)((r,s)=>{const{pure:u,throwIfNamespace:h=!0,filter:x,runtime:j=(t?"automatic":"classic"),importSource:E=l.importSource,pragma:v=l.pragma,pragmaFrag:_=l.pragmaFrag}=s;var{useSpread:w=!1,useBuiltIns:S=!1}=s;if("classic"===j){if("boolean"!=typeof w)throw new Error("transform-react-jsx currently only accepts a boolean option for useSpread (defaults to false)");if("boolean"!=typeof S)throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");if(w&&S)throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread but not both")}const N={JSXOpeningElement(e,t){for(const s of e.get("attributes")){if(!s.isJSXElement())continue;const{name:t}=s.node.name;if("__source"===t||"__self"===t)throw e.buildCodeFrameError("__source and __self should not be defined in props and are reserved for internal usage.")}const r=i.types.jsxAttribute(i.types.jsxIdentifier("__self"),i.types.jsxExpressionContainer(i.types.thisExpression())),n=i.types.jsxAttribute(i.types.jsxIdentifier("__source"),i.types.jsxExpressionContainer(function(e,t){const r=e.node.loc;if(!r)return e.scope.buildUndefinedNode();if(!t.fileNameIdentifier){const{filename:r=""}=t,n=e.scope.generateUidIdentifier("_jsxFileName"),s=e.hub.getScope();s&&s.push({id:n,init:i.types.stringLiteral(r)}),t.fileNameIdentifier=n}return function(e,t,r){const n=null!=t?i.types.numericLiteral(t):i.types.nullLiteral(),s=null!=r?i.types.numericLiteral(r+1):i.types.nullLiteral(),o=i.types.objectProperty(i.types.identifier("fileName"),e),a=i.types.objectProperty(i.types.identifier("lineNumber"),n),u=i.types.objectProperty(i.types.identifier("columnNumber"),s);return i.types.objectExpression([o,a,u])}(i.types.cloneNode(t.fileNameIdentifier),r.start.line,r.start.column)}(e,t)));e.pushContainer("attributes",[r,n])}};return{name:e,inherits:n.default,visitor:{JSXNamespacedName(e){if(h)throw e.buildCodeFrameError("Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set `throwIfNamespace: false` to bypass this warning.")},JSXSpreadChild(e){throw e.buildCodeFrameError("Spread children are not supported in React.")},Program:{enter(e,r){const{file:n}=r;let a=j,u=E,g=v,h=_,x=!!s.importSource,w=!!s.pragma,S=!!s.pragmaFrag;if(n.ast.comments)for(const t of n.ast.comments){const e=c.exec(t.value);e&&(u=e[1],x=!0);const r=p.exec(t.value);r&&(a=r[1]);const n=d.exec(t.value);n&&(g=n[1],w=!0);const s=f.exec(t.value);s&&(h=s[1],S=!0)}if(y(r,"runtime",a),"classic"===a){if(x)throw e.buildCodeFrameError("importSource cannot be set when runtime is classic.");const t=b(g),n=b(h);y(r,"id/createElement",()=>i.types.cloneNode(t)),y(r,"id/fragment",()=>i.types.cloneNode(n)),y(r,"defaultPure",g===l.pragma)}else{if("automatic"!==a)throw e.buildCodeFrameError('Runtime must be either "classic" or "automatic".');{if(w||S)throw e.buildCodeFrameError("pragma and pragmaFrag cannot be set when runtime is automatic.");const n=(n,s)=>y(r,n,function(e,r,n,s){return()=>{const a=function(e,r){switch(r){case"Fragment":return`${e}/${t?"jsx-dev-runtime":"jsx-runtime"}`;case"jsxDEV":return e+"/jsx-dev-runtime";case"jsx":case"jsxs":return e+"/jsx-runtime";case"createElement":return e}}(s,n);if((0,o.isModule)(r)){let t=m(e,"imports/"+n);return t?i.types.cloneNode(t):(t=(0,o.addNamed)(r,n,a,{importedInterop:"uncompiled",importPosition:"after"}),y(e,"imports/"+n,t),t)}{let t=m(e,"requires/"+a);return t?t=i.types.cloneNode(t):(t=(0,o.addNamespace)(r,a,{importedInterop:"uncompiled"}),y(e,"requires/"+a,t)),i.types.memberExpression(t,i.types.identifier(n))}}}(r,e,s,u));n("id/jsx",t?"jsxDEV":"jsx"),n("id/jsxs",t?"jsxDEV":"jsxs"),n("id/createElement","createElement"),n("id/fragment","Fragment"),y(r,"defaultPure",u===l.importSource)}}t&&e.traverse(N,r)}},JSXElement:{exit(e,r){let n;n="classic"===m(r,"runtime")||function(e){const t=e.get("openingElement"),r=t.node.attributes;let n=!1;for(let s=0;s<r.length;s++){const e=r[s];if(n&&i.types.isJSXAttribute(e)&&"key"===e.name.name)return!0;i.types.isJSXSpreadAttribute(e)&&(n=!0)}return!1}(e)?function(e,t){const r=e.get("openingElement");return O(t,"createElement",[L(r),X(t,e,r.node.attributes),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=e.get("openingElement"),s=[L(n)];let o=[];const a=Object.create(null);for(const t of n.get("attributes"))if(t.isJSXAttribute()&&i.types.isJSXIdentifier(t.node.name)){const{name:r}=t.node.name;switch(r){case"__source":case"__self":if(a[r])throw g(e,r);case"key":a[r]=P(t.node.value);break;default:o.push(t.node)}}else o.push(t.node);const u=i.types.react.buildChildren(e.node);o=o.length||u.length?function(e,t,r){const n=e.reduce(I,[]);(null==r?void 0:r.length)>0&&n.push(J(r));return i.types.objectExpression(n)}(o,0,u):i.types.objectExpression([]);var l,c,p;s.push(o),t?s.push(null!=(l=a.key)?l:e.scope.buildUndefinedNode(),i.types.booleanLiteral(u.length>1),null!=(c=a.__source)?c:e.scope.buildUndefinedNode(),null!=(p=a.__self)?p:i.types.thisExpression()):void 0!==a.key&&s.push(a.key);return O(r,u.length>1?"jsxs":"jsx",s)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXFragment:{exit(e,r){let n;n="classic"===m(r,"runtime")?function(e,t){if(x&&!x(e.node,t))return;return O(t,"createElement",[m(t,"id/fragment")(),i.types.nullLiteral(),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=[m(r,"id/fragment")()],s=i.types.react.buildChildren(e.node);n.push(i.types.objectExpression(s.length>0?[J(s)]:[])),t&&n.push(e.scope.buildUndefinedNode(),i.types.booleanLiteral(s.length>1));return O(r,s.length>1?"jsxs":"jsx",n)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXAttribute(e){i.types.isJSXElement(e.node.value)&&(e.node.value=i.types.jsxExpressionContainer(e.node.value))}}};function O(e,t,r){const n=i.types.callExpression(m(e,"id/"+t)(),r);return(null!=u?u:m(e,"defaultPure"))&&(0,a.default)(n),n}function P(e){return i.types.isJSXExpressionContainer(e)?e.expression:e}function I(e,t){if(i.types.isJSXSpreadAttribute(t)){const r=t.argument;return i.types.isObjectExpression(r)?e.push(...r.properties):e.push(i.types.spreadElement(r)),e}const r=P(t.value||i.types.booleanLiteral(!0));var n;i.types.isStringLiteral(r)&&!i.types.isJSXExpressionContainer(t.value)&&(r.value=r.value.replace(/\n\s+/g," "),null==(n=r.extra)||delete n.raw);return i.types.isJSXNamespacedName(t.name)?t.name=i.types.stringLiteral(t.name.namespace.name+":"+t.name.name.name):i.types.isValidIdentifier(t.name.name,!1)?t.name.type="Identifier":t.name=i.types.stringLiteral(t.name.name),e.push(i.types.inherits(i.types.objectProperty(t.name,r),t)),e}function J(e){let t;if(1===e.length)t=e[0];else{if(!(e.length>1))return;t=i.types.arrayExpression(e)}return i.types.objectProperty(i.types.identifier("children"),t)}function L(e){const t=function e(t,r){if(i.types.isJSXIdentifier(t)){if("this"===t.name&&i.types.isReferenced(t,r))return i.types.thisExpression();if(!i.types.isValidIdentifier(t.name,!1))return i.types.stringLiteral(t.name);t.type="Identifier"}else{if(i.types.isJSXMemberExpression(t))return i.types.memberExpression(e(t.object,t),e(t.property,t));if(i.types.isJSXNamespacedName(t))return i.types.stringLiteral(`${t.namespace.name}:${t.name.name}`)}return t}(e.node.name,e.node);let r;return i.types.isIdentifier(t)?r=t.name:i.types.isLiteral(t)&&(r=t.value),i.types.react.isCompatTag(r)?i.types.stringLiteral(r):t}function X(e,t,r){const n=m(e,"runtime");if("automatic"!==n){const t=[],n=r.reduce(I,[]);if(w)n.length&&t.push(i.types.objectExpression(n));else{let e=0;n.forEach((r,s)=>{i.types.isSpreadElement(r)&&(s>e&&t.push(i.types.objectExpression(n.slice(e,s))),t.push(r.argument),e=s+1)}),n.length>e&&t.push(i.types.objectExpression(n.slice(e)))}if(!t.length)return i.types.nullLiteral();if(1===t.length)return t[0];i.types.isObjectExpression(t[0])||t.unshift(i.types.objectExpression([]));const s=S?i.types.memberExpression(i.types.identifier("Object"),i.types.identifier("assign")):e.addHelper("extends");return i.types.callExpression(s,t)}const s=[],o=Object.create(null);for(const a of r){const e=i.types.isJSXAttribute(a)&&i.types.isJSXIdentifier(a.name)&&a.name.name;if("automatic"===n&&("__source"===e||"__self"===e)){if(o[e])throw g(t,e);o[e]=!0}I(s,a)}return 1===s.length&&i.types.isSpreadElement(s[0])?s[0].argument:s.length>0?i.types.objectExpression(s):i.types.nullLiteral()}})};var n=u(r(841)),s=r(91),i=r(76),o=r(309),a=u(r(842));function u(e){return e&&e.__esModule?e:{default:e}}const l={importSource:"react",runtime:"automatic",pragma:"React.createElement",pragmaFrag:"React.Fragment"},c=/\*?\s*@jsxImportSource\s+([^\s]+)/,p=/\*?\s*@jsxRuntime\s+([^\s]+)/,d=/\*?\s*@jsx\s+([^\s]+)/,f=/\*?\s*@jsxFrag\s+([^\s]+)/,m=(e,t)=>e.get("@babel/plugin-react-jsx/"+t),y=(e,t,r)=>e.set("@babel/plugin-react-jsx/"+t,r);function b(e){return e.split(".").map(e=>i.types.identifier(e)).reduce((e,t)=>i.types.memberExpression(e,t))}function g(e,t){const r="transform-react-jsx-"+t.slice(2);return e.buildCodeFrameError(`Duplicate ${t} prop found. You are most likely using the deprecated ${r} Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.`)}},841:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91),s=(0,n.declare)(e=>(e.assertVersion(7),{name:"syntax-jsx",manipulateOptions(e,t){t.plugins.some(e=>"typescript"===(Array.isArray(e)?e[0]:e))||t.plugins.push("jsx")}}));t.default=s},842:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.node||e;if((({leadingComments:e})=>!!e&&e.some(e=>/[@#]__PURE__/.test(e.value)))(t))return;n.addComment(t,"leading","#__PURE__")};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(66));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}},847:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,s=(n=r(840),n&&n.__esModule?n:{default:n});var i=(0,s.default)({name:"transform-react-jsx",development:!1});t.default=i},91:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.declare=function(e){return(t,r,i)=>{var o;let a;for(const e of Object.keys(n)){var u;t[e]||(a=null!=(u=a)?u:s(t),a[e]=n[e](a))}return e(null!=(o=a)?o:t,r||{},i)}};const n={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const r=Error.stackTraceLimit;"number"==typeof r&&r<25&&(Error.stackTraceLimit=25);let n;n="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof r&&(Error.stackTraceLimit=r);throw Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)},targets:()=>()=>({}),assumption:()=>()=>{}};function s(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||i(t,"version")&&i(t,"transform")&&i(t,"template")&&i(t,"types")||(t=null)),Object.assign({},t,e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}}]);
13
6
  }})
package/doc-dist/6.js CHANGED
@@ -2,5 +2,12 @@
2
2
  if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
3
  window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
4
 
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[6],{165:function(t,n,e){t.exports={list:"Overview-___index-scoped__list___1PdWk",item:"Overview-___index-scoped__item___2RSFm",active:"Overview-___index-scoped__active___2a9rn",widgetCtn:"Overview-___index-scoped__widgetCtn___xPSZF"}},286:function(t,n,e){"use strict";var r=e(287),o={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,n){var e,a,i,c,s,u,l=!1;n||(n={}),e=n.debug||!1;try{i=r(),c=document.createRange(),s=document.getSelection(),u=document.createElement("span"),u.textContent=t,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),n.format)if(r.preventDefault(),void 0===r.clipboardData){e&&console.warn("unable to use e.clipboardData"),e&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[n.format]||o.default;window.clipboardData.setData(a,t)}else r.clipboardData.clearData(),r.clipboardData.setData(n.format,t);n.onCopy&&(r.preventDefault(),n.onCopy(r.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),s.addRange(c);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");l=!0}catch(f){e&&console.error("unable to copy using execCommand: ",f),e&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",t),n.onCopy&&n.onCopy(window.clipboardData),l=!0}catch(f){e&&console.error("unable to copy using clipboardData: ",f),e&&console.error("falling back to prompt"),a=function(t){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,n)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,t)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),u&&document.body.removeChild(u),i()}return l}},287:function(t,n){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var n=document.activeElement,e=[],r=0;r<t.rangeCount;r++)e.push(t.getRangeAt(r));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||e.forEach((function(n){t.addRange(n)})),n&&n.focus()}}},680:function(t,n,e){"use strict";e.r(n);var r=e(3),o=e(12),a=e(0),i=e.n(a);let c={data:""},s=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||c,u=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,l=/\/\*[^]*?\*\/|\s\s+|\n/g,d=(t,n)=>{let e="",r="",o="";for(let a in t){let i=t[a];"@"==a[0]?"i"==a[1]?e=a+" "+i+";":r+="f"==a[1]?d(i,a):a+"{"+d(i,"k"==a[1]?"":n)+"}":"object"==typeof i?r+=d(i,n?n.replace(/([^,])+/g,t=>a.replace(/(^:.*)|([^,])+/g,n=>/&/.test(n)?n.replace(/&/g,t):t?t+" "+n:n)):a):null!=i&&(a=a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=d.p?d.p(a,i):a+":"+i+";")}return e+(n&&o?n+"{"+o+"}":o)+r},f={},p=t=>{if("object"==typeof t){let n="";for(let e in t)n+=e+p(t[e]);return n}return t},m=(t,n,e,r,o)=>{let a=p(t),i=f[a]||(f[a]=(t=>{let n=0,e=11;for(;n<t.length;)e=101*e+t.charCodeAt(n++)>>>0;return"go"+e})(a));if(!f[i]){let n=a!==t?t:(t=>{let n,e=[{}];for(;n=u.exec(t.replace(l,""));)n[4]?e.shift():n[3]?e.unshift(e[0][n[3]]=e[0][n[3]]||{}):e[0][n[1]]=n[2];return e[0]})(t);f[i]=d(o?{["@keyframes "+i]:n}:n,e?"":"."+i)}return((t,n,e)=>{-1==n.data.indexOf(t)&&(n.data=e?t+n.data:n.data+t)})(f[i],n,r),i},y=(t,n,e)=>t.reduce((t,r,o)=>{let a=n[o];if(a&&a.call){let t=a(e),n=t&&t.props&&t.props.className||/^go/.test(t)&&t;a=n?"."+n:t&&"object"==typeof t?t.props?"":d(t,""):!1===t?"":t}return t+r+(null==a?"":a)},"");function v(t){let n=this||{},e=t.call?t(n.p):t;return m(e.unshift?e.raw?y(e,[].slice.call(arguments,1),n.p):e.reduce((t,e)=>Object.assign(t,e&&e.call?e(n.p):e),{}):e,s(n.target),n.g,n.o,n.k)}v.bind({g:1});let g,b,h,x=v.bind({k:1});function O(t,n){let e=this||{};return function(){let r=arguments;function o(a,i){let c=Object.assign({},a),s=c.className||o.className;e.p=Object.assign({theme:b&&b()},c),e.o=/ *go\d+/.test(s),c.className=v.apply(e,r)+(s?" "+s:""),n&&(c.ref=i);let u=t;return t[0]&&(u=c.as||t,delete c.as),h&&u[0]&&h(c),g(u,c)}return n?n(o):o}}function E(){return E=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},E.apply(this,arguments)}function T(t,n){return n||(n=t.slice(0)),t.raw=n,t}var w,S=function(t,n){return function(t){return"function"==typeof t}(t)?t(n):t},_=function(){var t=0;return function(){return(++t).toString()}}();!function(t){t[t.ADD_TOAST=0]="ADD_TOAST",t[t.UPDATE_TOAST=1]="UPDATE_TOAST",t[t.UPSERT_TOAST=2]="UPSERT_TOAST",t[t.DISMISS_TOAST=3]="DISMISS_TOAST",t[t.REMOVE_TOAST=4]="REMOVE_TOAST",t[t.START_PAUSE=5]="START_PAUSE",t[t.END_PAUSE=6]="END_PAUSE"}(w||(w={}));var A=[],D={toasts:[],pausedAt:void 0},j=function(t){D=function t(n,e){switch(e.type){case w.ADD_TOAST:return E({},n,{toasts:[e.toast].concat(n.toasts).slice(0,20)});case w.UPDATE_TOAST:return E({},n,{toasts:n.toasts.map((function(t){return t.id===e.toast.id?E({},t,e.toast):t}))});case w.UPSERT_TOAST:var r=e.toast;return n.toasts.find((function(t){return t.id===r.id}))?t(n,{type:w.UPDATE_TOAST,toast:r}):t(n,{type:w.ADD_TOAST,toast:r});case w.DISMISS_TOAST:return E({},n,{toasts:n.toasts.map((function(t){return t.id===e.toastId||void 0===e.toastId?E({},t,{visible:!1}):t}))});case w.REMOVE_TOAST:return void 0===e.toastId?E({},n,{toasts:[]}):E({},n,{toasts:n.toasts.filter((function(t){return t.id!==e.toastId}))});case w.START_PAUSE:return E({},n,{pausedAt:e.time});case w.END_PAUSE:var o=e.time-(n.pausedAt||0);return E({},n,{pausedAt:void 0,toasts:n.toasts.map((function(t){return E({},t,{pauseDuration:t.pauseDuration+o})}))})}}(D,t),A.forEach((function(t){t(D)}))},C={blank:4e3,error:4e3,success:2e3,loading:3e4},R=function(t){return function(n,e){var r=function(t,n,e){return void 0===n&&(n="blank"),E({id:(null==e?void 0:e.id)||_(),createdAt:Date.now(),visible:!0,type:n,role:"status",ariaLive:"polite",message:t,pauseDuration:0},e)}(n,t,e);return j({type:w.UPSERT_TOAST,toast:r}),r.id}},P=function(t,n){return R("blank")(t,n)};P.error=R("error"),P.success=R("success"),P.loading=R("loading"),P.dismiss=function(t){j({type:w.DISMISS_TOAST,toastId:t}),setTimeout((function(){j({type:w.REMOVE_TOAST,toastId:t})}),1e3)},P.remove=function(t){return j({type:w.REMOVE_TOAST,toastId:t})},P.promise=function(t,n,e){var r=P.loading(n.loading,E({},e,null==e?void 0:e.loading));return t.then((function(t){return P.success(S(n.success,t),E({id:r},e,null==e?void 0:e.success)),t})).catch((function(t){P.error(S(n.error,t),E({id:r},e,null==e?void 0:e.error))})),t};var k=function(t){var n=function(t){void 0===t&&(t={});var n=Object(a.useState)(D),e=n[0],r=n[1];Object(a.useEffect)((function(){return A.push(r),function(){var t=A.indexOf(r);t>-1&&A.splice(t,1)}}),[e]);var o=e.toasts.map((function(n){var e,r,o;return E({},t,t[n.type],n,{duration:n.duration||(null==(e=t[n.type])?void 0:e.duration)||(null==(r=t)?void 0:r.duration)||C[n.type],style:E({},t.style,null==(o=t[n.type])?void 0:o.style,n.style)})}));return E({},e,{toasts:o})}(t),e=n.toasts,r=n.pausedAt,o=e.filter((function(t){return t.visible}));Object(a.useEffect)((function(){if(!r){var t=Date.now(),n=e.map((function(n){var e=(n.duration||0)+n.pauseDuration-(t-n.createdAt);if(!(e<0))return setTimeout((function(){return P.dismiss(n.id)}),e);n.visible&&P.dismiss(n.id)}));return function(){n.forEach((function(t){return t&&clearTimeout(t)}))}}}),[e,r]);var i=Object(a.useMemo)((function(){return{startPause:function(){j({type:w.START_PAUSE,time:Date.now()})},endPause:function(){r&&j({type:w.END_PAUSE,time:Date.now()})},updateHeight:function(t,n){return j({type:w.UPDATE_TOAST,toast:{id:t,height:n}})},calculateOffset:function(t,n){var e=n||{},r=e.reverseOrder,a=void 0!==r&&r,i=e.margin,c=void 0===i?8:i,s=o.findIndex((function(n){return n.id===t})),u=-1!==s?o.slice.apply(o,a?[s+1]:[0,s]).reduce((function(t,n){return t+(n.height||0)+c}),0):0;return u}}}),[o,r]);return{toasts:e,visibleToasts:o,handlers:i}};function I(){var t=T(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"]);return I=function(){return t},t}function U(){var t=T(["\n from {\n transform: scale(0) rotate(90deg);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1) rotate(90deg);\n\t opacity: 1;\n }\n"]);return U=function(){return t},t}function N(){var t=T(["\n from {\n transform: scale(0);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1);\n\t opacity: 1;\n }\n"]);return N=function(){return t},t}function M(){var t=T(["\n from {\n transform: scale(0) rotate(45deg);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1) rotate(45deg);\n\t opacity: 1;\n }\n"]);return M=function(){return t},t}var z=x(M()),K=x(N()),F=x(U()),L=O("div")(I(),(function(t){return t.primary||"#ff4b4b"}),z,K,(function(t){return t.secondary||"#fff"}),F);function H(){var t=T(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"]);return H=function(){return t},t}function V(){var t=T(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]);return V=function(){return t},t}var J=x(V()),Z=O("div")(H(),(function(t){return t.secondary||"#e0e0e0"}),(function(t){return t.primary||"#616161"}),J);function q(){var t=T(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"]);return q=function(){return t},t}function B(){var t=T(["\n 0% {\n\t\theight: 0;\n\t\twidth: 0;\n\t\topacity: 0;\n }\n\n 40% {\n\t\theight: 0;\n\t\twidth: 6px;\n\t\topacity: 1;\n }\n\n 100% {\n opacity: 1;\n\t\theight: 10px;\n }\n"]);return B=function(){return t},t}function W(){var t=T(["\n from {\n transform: scale(0) rotate(45deg);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1) rotate(45deg);\n\t opacity: 1;\n }\n"]);return W=function(){return t},t}var X=x(W()),Y=x(B()),$=O("div")(q(),(function(t){return t.primary||"#61d345"}),X,Y,(function(t){return t.secondary||"#fff"}));function G(){var t=T(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]);return G=function(){return t},t}function Q(){var t=T(["\n position: absolute;\n"]);return Q=function(){return t},t}var tt=O("div")(Q()),nt=O("div")(G()),et=function(t){var n=t.type,e=t.theme;return"blank"===n?null:Object(a.createElement)(nt,null,Object(a.createElement)(Z,Object.assign({},e)),"loading"!==n&&Object(a.createElement)(tt,null,"error"===n?Object(a.createElement)(L,Object.assign({},e)):Object(a.createElement)($,Object.assign({},e))))};function rt(){var t=T(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"]);return rt=function(){return t},t}function ot(){var t=T(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\n\nto {\n transform: scale(1);\n opacity: 1;\n}\n"]);return ot=function(){return t},t}var at=x(ot()),it=O("div")(rt(),at);function ct(){var t=T(["",""]);return ct=function(){return t},t}function st(){var t=T(["",""]);return st=function(){return t},t}function ut(){var t=T(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1;\n"]);return ut=function(){return t},t}function lt(){var t=T(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n margin: 16px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]);return lt=function(){return t},t}var dt=function(t){return"\n0% {transform: translate3d(0,"+-80*t+"px,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"},ft=function(t){return"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,"+-130*t+"px,-1px) scale(.5); opacity:0;}\n"},pt=O("div",a.forwardRef)(lt()),mt=O("div")(ut()),yt=Object(a.memo)((function(t){var n,e,r,o=t.toast,i=t.position,c=function(t,n){if(null==t)return{};var e,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)e=a[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,["toast","position"]),s=Object(a.useCallback)((function(t){t&&setTimeout((function(){var n=t.getBoundingClientRect();c.onHeight(n.height)}))}),[]),u=function(t,n){var e=t.includes("top"),r=e?{top:0}:{bottom:0},o=t.includes("left")?{left:0}:t.includes("right")?{right:0}:{left:0,pointerEvents:"none",right:0,justifyContent:"center"};return E({position:"fixed",transition:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+n*(e?1:-1)+"px)"},r,o)}(i,c.offset),l=null!=o&&o.height?function(t,n){var e=t.includes("top"),r=e?1:-1;return n?{animation:x(st(),dt(r))+" 0.35s cubic-bezier(.21,1.02,.73,1) forwards"}:{animation:x(ct(),ft(r))+" 0.8s forwards cubic-bezier(.06,.71,.55,1)",pointerEvents:"none"}}(i,o.visible):{opacity:0};return Object(a.createElement)("div",{style:E({display:"flex",zIndex:o.visible?9999:void 0},u)},Object(a.createElement)(pt,{ref:s,className:o.className,style:E({},l,o.style)},(n=o.icon,e=o.type,r=o.iconTheme,void 0!==n?"string"==typeof n?Object(a.createElement)(it,null,n):n:Object(a.createElement)(et,{theme:r,type:e})),Object(a.createElement)(mt,{role:o.role,"aria-live":o.ariaLive},S(o.message,o))))}));!function(t,n,e,r){d.p=n,g=t,b=e,h=r}(a.createElement);var vt=function(t){var n=t.reverseOrder,e=t.position,r=void 0===e?"top-center":e,o=t.containerStyle,i=t.toastOptions,c=k(i),s=c.toasts,u=c.handlers;return Object(a.createElement)("div",{style:E({position:"fixed",zIndex:9999},o),onMouseEnter:u.startPause,onMouseLeave:u.endPause},s.map((function(t){return Object(a.createElement)(yt,{key:t.id,onHeight:function(n){return u.updateHeight(t.id,n)},toast:t,offset:u.calculateOffset(t.id,{reverseOrder:n}),position:r})})))},gt=P,bt=e(18),ht=e(165),xt=e.n(ht),Ot=e(286),Et=e.n(Ot),Tt=function(t){var n=t.entryKeys,e=t.currentEntryKey,r=t.onChange,o=t.loadOpts;return i.a.createElement("ul",{className:xt.a.list},n.map((function(t){return i.a.createElement("li",{className:(t===e?xt.a.active:"")+" "+xt.a.item,onClick:function(){if("function"==typeof r&&r(t),t===e){var n=null!=o?o:{},a=n.servePath,i=n.consoleOSId,c=n.entryKey;if(!c)return;a=encodeURIComponent(a),i=encodeURIComponent(i),c=encodeURIComponent(c),Et()("https://xconsole.aliyun-inc.com/demo-playground?servePath=".concat(a,"&consoleOSId=").concat(i,"&entryKey=").concat(c)),gt("已将demo地址复制到剪贴板")}},key:t},t)})))},wt=["entryKey","onEntryKeyChange"],St=bt.b.map((function(t){var n=t.key;return n}));n.default=function(t){var n=t.entryKey,e=t.onEntryKeyChange,a=Object(o.a)(t,wt),c=a,s=c.loadOpts;return i.a.createElement("div",{className:xt.a.container},i.a.createElement(vt,{position:"bottom-right"}),i.a.createElement(Tt,{entryKeys:St,currentEntryKey:n,onChange:e,loadOpts:s}),i.a.createElement("hr",null),n&&i.a.createElement("div",{className:xt.a.widgetCtn},i.a.createElement(bt.a,Object(r.a)({},a,{key:n,entryKey:n}))))}}}]);
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[6,8,9],{148:function(e,t){},151:function(e,t){},838:function(e,t,r){e.exports=r(839)},839:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){var r=t.arguments,o=n(r,1),i=o[0],s=e.isStringLiteral(i)||e.isTemplateLiteral(i);return s?(e.removeComments(i),i):e.templateLiteral([e.templateElement({raw:"",cooked:""}),e.templateElement({raw:"",cooked:""},!0)],r)}t.getImportSource=o,t.createDynamicImportTransform=function(e){var t=e.template,r=e.types,n={static:{interop:t("Promise.resolve().then(() => INTEROP(require(SOURCE)))"),noInterop:t("Promise.resolve().then(() => require(SOURCE))")},dynamic:{interop:t("Promise.resolve(SOURCE).then(s => INTEROP(require(s)))"),noInterop:t("Promise.resolve(SOURCE).then(s => require(s))")}},i="function"==typeof WeakSet&&new WeakSet;return function(e,t){if(i){if(i.has(t))return;i.add(t)}var s,a=o(r,t.parent),l=(s=a,r.isStringLiteral(s)||r.isTemplateLiteral(s)&&0===s.expressions.length?n.static:n.dynamic),p=e.opts.noInterop?l.noInterop({SOURCE:a}):l.interop({SOURCE:a,INTEROP:e.addHelper("interopRequireWildcard")});t.parentPath.replaceWith(p)}}},846:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91),o=r(307),i=r(76),s=r(838);const a=(0,i.template)("\n define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) {\n })\n"),l=(0,i.template)('\n define(["require"], function(REQUIRE) {\n })\n');function p(e,t){const{body:r,directives:n}=e.node;e.node.directives=[],e.node.body=[];const o=e.pushContainer("body",t)[0],i=o.get("expression.arguments").filter(e=>e.isFunctionExpression())[0].get("body");i.pushContainer("directives",n),i.pushContainer("body",r)}var c=(0,n.declare)((e,t)=>{var r,n;e.assertVersion(7);const{allowTopLevelThis:c,strict:u,strictMode:d,noInterop:f}=t,m=null!=(r=e.assumption("constantReexports"))?r:t.loose,y=null!=(n=e.assumption("enumerableModuleMeta"))?n:t.loose;return{name:"transform-modules-amd",pre(){this.file.set("@babel/plugin-transform-modules-*","amd")},visitor:{CallExpression(e,t){if(!this.file.has("@babel/plugin-proposal-dynamic-import"))return;if(!e.get("callee").isImport())return;let{requireId:r,resolveId:n,rejectId:a}=t;r||(r=e.scope.generateUidIdentifier("require"),t.requireId=r),n&&a||(n=e.scope.generateUidIdentifier("resolve"),a=e.scope.generateUidIdentifier("reject"),t.resolveId=n,t.rejectId=a);let l=i.types.identifier("imported");f||(l=(0,o.wrapInterop)(e,l,"namespace")),e.replaceWith(i.template.expression.ast`
6
+ new Promise((${n}, ${a}) =>
7
+ ${r}(
8
+ [${(0,s.getImportSource)(i.types,e.node)}],
9
+ imported => ${i.types.cloneNode(n)}(${l}),
10
+ ${i.types.cloneNode(a)}
11
+ )
12
+ )`)},Program:{exit(e,{requireId:r}){if(!(0,o.isModule)(e))return void(r&&p(e,l({REQUIRE:i.types.cloneNode(r)})));const n=[],s=[];r&&(n.push(i.types.stringLiteral("require")),s.push(i.types.cloneNode(r)));let h=(0,o.getModuleName)(this.file.opts,t);h&&(h=i.types.stringLiteral(h));const{meta:b,headers:v}=(0,o.rewriteModuleStatementsAndPrepareHeader)(e,{enumerableModuleMeta:y,constantReexports:m,strict:u,strictMode:d,allowTopLevelThis:c,noInterop:f});(0,o.hasExports)(b)&&(n.push(i.types.stringLiteral("exports")),s.push(i.types.identifier(b.exportName)));for(const[t,a]of b.source){if(n.push(i.types.stringLiteral(t)),s.push(i.types.identifier(a.name)),!(0,o.isSideEffectImport)(a)){const t=(0,o.wrapInterop)(e,i.types.identifier(a.name),a.interop);if(t){const e=i.types.expressionStatement(i.types.assignmentExpression("=",i.types.identifier(a.name),t));e.loc=a.loc,v.push(e)}}v.push(...(0,o.buildNamespaceInitStatements)(b,a,m))}(0,o.ensureStatementsHoisted)(v),e.unshiftContainer("body",v),p(e,a({MODULE_NAME:h,AMD_ARGUMENTS:i.types.arrayExpression(n),IMPORT_NAMES:s}))}}}}});t.default=c},91:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.declare=function(e){return(t,r,i)=>{var s;let a;for(const e of Object.keys(n)){var l;t[e]||(a=null!=(l=a)?l:o(t),a[e]=n[e](a))}return e(null!=(s=a)?s:t,r||{},i)}};const n={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const r=Error.stackTraceLimit;"number"==typeof r&&r<25&&(Error.stackTraceLimit=25);let n;n="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof r&&(Error.stackTraceLimit=r);throw Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)},targets:()=>()=>({}),assumption:()=>()=>{}};function o(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||i(t,"version")&&i(t,"transform")&&i(t,"template")&&i(t,"types")||(t=null)),Object.assign({},t,e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}}]);
6
13
  }})
File without changes
package/doc-dist/7.js CHANGED
@@ -2,5 +2,5 @@
2
2
  if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
3
  window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
4
 
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[7,8],{127:function(c,o){},129:function(c,o){}}]);
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[7],{200:function(t,n,e){t.exports={list:"Overview-___index-scoped__list___1PdWk",item:"Overview-___index-scoped__item___2RSFm",active:"Overview-___index-scoped__active___2a9rn",widgetCtn:"Overview-___index-scoped__widgetCtn___xPSZF"}},337:function(t,n,e){"use strict";var r=e(338),o={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,n){var e,a,i,c,s,u,l=!1;n||(n={}),e=n.debug||!1;try{i=r(),c=document.createRange(),s=document.getSelection(),u=document.createElement("span"),u.textContent=t,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),n.format)if(r.preventDefault(),void 0===r.clipboardData){e&&console.warn("unable to use e.clipboardData"),e&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[n.format]||o.default;window.clipboardData.setData(a,t)}else r.clipboardData.clearData(),r.clipboardData.setData(n.format,t);n.onCopy&&(r.preventDefault(),n.onCopy(r.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),s.addRange(c);var f=document.execCommand("copy");if(!f)throw new Error("copy command was unsuccessful");l=!0}catch(d){e&&console.error("unable to copy using execCommand: ",d),e&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",t),n.onCopy&&n.onCopy(window.clipboardData),l=!0}catch(d){e&&console.error("unable to copy using clipboardData: ",d),e&&console.error("falling back to prompt"),a=function(t){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,n)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,t)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),u&&document.body.removeChild(u),i()}return l}},338:function(t,n){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var n=document.activeElement,e=[],r=0;r<t.rangeCount;r++)e.push(t.getRangeAt(r));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||e.forEach((function(n){t.addRange(n)})),n&&n.focus()}}},848:function(t,n,e){"use strict";e.r(n);var r=e(3),o=e(13),a=e(0),i=e.n(a);let c={data:""},s=t=>{if("undefined"!=typeof window){let n=t?t.querySelector("#_goober"):window._goober;return n||(n=(t||document.head).appendChild(document.createElement("style")),n.innerHTML=" ",n.id="_goober"),n.firstChild}return t||c},u=/(?:([A-Z0-9-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(})/gi,l=/\/\*[\s\S]*?\*\/|\s{2,}|\n/gm,f=(t,n)=>{let e,r="",o="",a="";for(let i in t){let c=t[i];"object"==typeof c?(e=n?n.replace(/([^,])+/g,t=>i.replace(/([^,])+/g,n=>/&/g.test(n)?n.replace(/&/g,t):t?t+" "+n:n)):i,o+="@"==i[0]?"f"==i[1]?f(c,i):i+"{"+f(c,"k"==i[1]?"":n)+"}":f(c,e)):"@"==i[0]&&"i"==i[1]?r=i+" "+c+";":a+=f.p?f.p(i.replace(/[A-Z]/g,"-$&").toLowerCase(),c):i.replace(/[A-Z]/g,"-$&").toLowerCase()+":"+c+";"}return a[0]?(e=n?n+"{"+a+"}":a,r+e+o):r+o},d={},p=t=>{let n="";for(let e in t)n+=e+("object"==typeof t[e]?p(t[e]):t[e]);return n},m=(t,n,e,r,o)=>{let a="object"==typeof t?p(t):t,i=d[a]||(d[a]=(t=>{let n=0,e=t.length,r=11;for(;n<e;)r=101*r+t.charCodeAt(n++)>>>0;return"go"+r})(a));if(!d[i]){let n="object"==typeof t?t:(t=>{let n,e=[{}];for(;n=u.exec(t.replace(l,""));)n[4]&&e.shift(),n[3]?e.unshift(e[0][n[3]]=e[0][n[3]]||{}):n[4]||(e[0][n[1]]=n[2]);return e[0]})(t);d[i]=f(o?{["@keyframes "+i]:n}:n,e?"":"."+i)}return((t,n,e)=>{-1==n.data.indexOf(t)&&(n.data=e?t+n.data:n.data+t)})(d[i],n,r),i},y=(t,n,e)=>t.reduce((t,r,o)=>{let a=n[o];if(a&&a.call){let t=a(e),n=t&&t.props&&t.props.className||/^go/.test(t)&&t;a=n?"."+n:t&&"object"==typeof t?t.props?"":f(t,""):t}return t+r+(null==a?"":a)},"");function v(t){let n=this||{},e=t.call?t(n.p):t;return m(e.unshift?e.raw?y(e,[].slice.call(arguments,1),n.p):e.reduce((t,e)=>e?Object.assign(t,e.call?e(n.p):e):t,{}):e,s(n.target),n.g,n.o,n.k)}v.bind({g:1});let g,b,h,x=v.bind({k:1});function O(t,n){let e=this||{};return function(){let r=arguments;function o(a,i){let c=Object.assign({},a),s=c.className||o.className;e.p=Object.assign({theme:b&&b()},c),e.o=/ *go\d+/g.test(s),c.className=v.apply(e,r)+(s?" "+s:""),n&&(c.ref=i);let u=c.as||t;return h&&u[0]&&h(c),g(u,c)}return n?n(o):o}}function E(){return E=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},E.apply(this,arguments)}function T(t,n){return n||(n=t.slice(0)),t.raw=n,t}var w,S=function(t,n){return function(t){return"function"==typeof t}(t)?t(n):t},_=function(){var t=0;return function(){return(++t).toString()}}();!function(t){t[t.ADD_TOAST=0]="ADD_TOAST",t[t.UPDATE_TOAST=1]="UPDATE_TOAST",t[t.UPSERT_TOAST=2]="UPSERT_TOAST",t[t.DISMISS_TOAST=3]="DISMISS_TOAST",t[t.REMOVE_TOAST=4]="REMOVE_TOAST",t[t.START_PAUSE=5]="START_PAUSE",t[t.END_PAUSE=6]="END_PAUSE"}(w||(w={}));var A=[],D={toasts:[],pausedAt:void 0},j=function(t){D=function t(n,e){switch(e.type){case w.ADD_TOAST:return E({},n,{toasts:[e.toast].concat(n.toasts).slice(0,20)});case w.UPDATE_TOAST:return E({},n,{toasts:n.toasts.map((function(t){return t.id===e.toast.id?E({},t,e.toast):t}))});case w.UPSERT_TOAST:var r=e.toast;return n.toasts.find((function(t){return t.id===r.id}))?t(n,{type:w.UPDATE_TOAST,toast:r}):t(n,{type:w.ADD_TOAST,toast:r});case w.DISMISS_TOAST:return E({},n,{toasts:n.toasts.map((function(t){return t.id===e.toastId||void 0===e.toastId?E({},t,{visible:!1}):t}))});case w.REMOVE_TOAST:return void 0===e.toastId?E({},n,{toasts:[]}):E({},n,{toasts:n.toasts.filter((function(t){return t.id!==e.toastId}))});case w.START_PAUSE:return E({},n,{pausedAt:e.time});case w.END_PAUSE:var o=e.time-(n.pausedAt||0);return E({},n,{pausedAt:void 0,toasts:n.toasts.map((function(t){return E({},t,{pauseDuration:t.pauseDuration+o})}))})}}(D,t),A.forEach((function(t){t(D)}))},C={blank:4e3,error:4e3,success:2e3,loading:3e4},R=function(t){return function(n,e){var r=function(t,n,e){return void 0===n&&(n="blank"),E({id:(null==e?void 0:e.id)||_(),createdAt:Date.now(),visible:!0,type:n,role:"status",ariaLive:"polite",message:t,pauseDuration:0},e)}(n,t,e);return j({type:w.UPSERT_TOAST,toast:r}),r.id}},P=function(t,n){return R("blank")(t,n)};P.error=R("error"),P.success=R("success"),P.loading=R("loading"),P.dismiss=function(t){j({type:w.DISMISS_TOAST,toastId:t}),setTimeout((function(){j({type:w.REMOVE_TOAST,toastId:t})}),1e3)},P.remove=function(t){return j({type:w.REMOVE_TOAST,toastId:t})},P.promise=function(t,n,e){var r=P.loading(n.loading,E({},e,null==e?void 0:e.loading));return t.then((function(t){return P.success(S(n.success,t),E({id:r},e,null==e?void 0:e.success)),t})).catch((function(t){P.error(S(n.error,t),E({id:r},e,null==e?void 0:e.error))})),t};var k=function(t){var n=function(t){void 0===t&&(t={});var n=Object(a.useState)(D),e=n[0],r=n[1];Object(a.useEffect)((function(){return A.push(r),function(){var t=A.indexOf(r);t>-1&&A.splice(t,1)}}),[e]);var o=e.toasts.map((function(n){var e,r,o;return E({},t,t[n.type],n,{duration:n.duration||(null==(e=t[n.type])?void 0:e.duration)||(null==(r=t)?void 0:r.duration)||C[n.type],style:E({},t.style,null==(o=t[n.type])?void 0:o.style,n.style)})}));return E({},e,{toasts:o})}(t),e=n.toasts,r=n.pausedAt,o=e.filter((function(t){return t.visible}));Object(a.useEffect)((function(){if(!r){var t=Date.now(),n=e.map((function(n){var e=(n.duration||0)+n.pauseDuration-(t-n.createdAt);if(!(e<0))return setTimeout((function(){return P.dismiss(n.id)}),e);n.visible&&P.dismiss(n.id)}));return function(){n.forEach((function(t){return t&&clearTimeout(t)}))}}}),[e,r]);var i=Object(a.useMemo)((function(){return{startPause:function(){j({type:w.START_PAUSE,time:Date.now()})},endPause:function(){r&&j({type:w.END_PAUSE,time:Date.now()})},updateHeight:function(t,n){return j({type:w.UPDATE_TOAST,toast:{id:t,height:n}})},calculateOffset:function(t,n){var e=n||{},r=e.reverseOrder,a=void 0!==r&&r,i=e.margin,c=void 0===i?8:i,s=o.findIndex((function(n){return n.id===t})),u=-1!==s?o.slice.apply(o,a?[s+1]:[0,s]).reduce((function(t,n){return t+(n.height||0)+c}),0):0;return u}}}),[o,r]);return{toasts:e,visibleToasts:o,handlers:i}};function I(){var t=T(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"]);return I=function(){return t},t}function U(){var t=T(["\n from {\n transform: scale(0) rotate(90deg);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1) rotate(90deg);\n\t opacity: 1;\n }\n"]);return U=function(){return t},t}function N(){var t=T(["\n from {\n transform: scale(0);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1);\n\t opacity: 1;\n }\n"]);return N=function(){return t},t}function M(){var t=T(["\n from {\n transform: scale(0) rotate(45deg);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1) rotate(45deg);\n\t opacity: 1;\n }\n"]);return M=function(){return t},t}var z=x(M()),K=x(N()),L=x(U()),H=O("div")(I(),(function(t){return t.primary||"#ff4b4b"}),z,K,(function(t){return t.secondary||"#fff"}),L);function V(){var t=T(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"]);return V=function(){return t},t}function Z(){var t=T(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]);return Z=function(){return t},t}var F=x(Z()),J=O("div")(V(),(function(t){return t.secondary||"#e0e0e0"}),(function(t){return t.primary||"#616161"}),F);function $(){var t=T(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"]);return $=function(){return t},t}function q(){var t=T(["\n 0% {\n\t\theight: 0;\n\t\twidth: 0;\n\t\topacity: 0;\n }\n\n 40% {\n\t\theight: 0;\n\t\twidth: 6px;\n\t\topacity: 1;\n }\n\n 100% {\n opacity: 1;\n\t\theight: 10px;\n }\n"]);return q=function(){return t},t}function B(){var t=T(["\n from {\n transform: scale(0) rotate(45deg);\n\t opacity: 0;\n }\n\n to {\n transform: scale(1) rotate(45deg);\n\t opacity: 1;\n }\n"]);return B=function(){return t},t}var W=x(B()),X=x(q()),Y=O("div")($(),(function(t){return t.primary||"#61d345"}),W,X,(function(t){return t.secondary||"#fff"}));function G(){var t=T(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]);return G=function(){return t},t}function Q(){var t=T(["\n position: absolute;\n"]);return Q=function(){return t},t}var tt=O("div")(Q()),nt=O("div")(G()),et=function(t){var n=t.type,e=t.theme;return"blank"===n?null:Object(a.createElement)(nt,null,Object(a.createElement)(J,Object.assign({},e)),"loading"!==n&&Object(a.createElement)(tt,null,"error"===n?Object(a.createElement)(H,Object.assign({},e)):Object(a.createElement)(Y,Object.assign({},e))))};function rt(){var t=T(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"]);return rt=function(){return t},t}function ot(){var t=T(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\n\nto {\n transform: scale(1);\n opacity: 1;\n}\n"]);return ot=function(){return t},t}var at=x(ot()),it=O("div")(rt(),at);function ct(){var t=T(["",""]);return ct=function(){return t},t}function st(){var t=T(["",""]);return st=function(){return t},t}function ut(){var t=T(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1;\n"]);return ut=function(){return t},t}function lt(){var t=T(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n margin: 16px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]);return lt=function(){return t},t}var ft=function(t){return"\n0% {transform: translate3d(0,"+-80*t+"px,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"},dt=function(t){return"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,"+-130*t+"px,-1px) scale(.5); opacity:0;}\n"},pt=O("div",a.forwardRef)(lt()),mt=O("div")(ut()),yt=Object(a.memo)((function(t){var n,e,r,o=t.toast,i=t.position,c=function(t,n){if(null==t)return{};var e,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)e=a[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,["toast","position"]),s=Object(a.useCallback)((function(t){t&&setTimeout((function(){var n=t.getBoundingClientRect();c.onHeight(n.height)}))}),[]),u=function(t,n){var e=t.includes("top"),r=e?{top:0}:{bottom:0},o=t.includes("left")?{left:0}:t.includes("right")?{right:0}:{left:0,pointerEvents:"none",right:0,justifyContent:"center"};return E({position:"fixed",transition:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+n*(e?1:-1)+"px)"},r,o)}(i,c.offset),l=null!=o&&o.height?function(t,n){var e=t.includes("top"),r=e?1:-1;return n?{animation:x(st(),ft(r))+" 0.35s cubic-bezier(.21,1.02,.73,1) forwards"}:{animation:x(ct(),dt(r))+" 0.8s forwards cubic-bezier(.06,.71,.55,1)",pointerEvents:"none"}}(i,o.visible):{opacity:0};return Object(a.createElement)("div",{style:E({display:"flex",zIndex:o.visible?9999:void 0},u)},Object(a.createElement)(pt,{ref:s,className:o.className,style:E({},l,o.style)},(n=o.icon,e=o.type,r=o.iconTheme,void 0!==n?"string"==typeof n?Object(a.createElement)(it,null,n):n:Object(a.createElement)(et,{theme:r,type:e})),Object(a.createElement)(mt,{role:o.role,"aria-live":o.ariaLive},S(o.message,o))))}));!function(t,n,e,r){f.p=n,g=t,b=e,h=r}(a.createElement);var vt=function(t){var n=t.reverseOrder,e=t.position,r=void 0===e?"top-center":e,o=t.containerStyle,i=t.toastOptions,c=k(i),s=c.toasts,u=c.handlers;return Object(a.createElement)("div",{style:E({position:"fixed",zIndex:9999},o),onMouseEnter:u.startPause,onMouseLeave:u.endPause},s.map((function(t){return Object(a.createElement)(yt,{key:t.id,onHeight:function(n){return u.updateHeight(t.id,n)},toast:t,offset:u.calculateOffset(t.id,{reverseOrder:n}),position:r})})))},gt=P,bt=e(20),ht=e(200),xt=e.n(ht),Ot=e(337),Et=e.n(Ot),Tt=function(t){var n=t.entryKeys,e=t.currentEntryKey,r=t.onChange,o=t.loadOpts;return i.a.createElement("ul",{className:xt.a.list},n.map((function(t){return i.a.createElement("li",{className:(t===e?xt.a.active:"")+" "+xt.a.item,onClick:function(){if("function"==typeof r&&r(t),t===e){var n=null!=o?o:{},a=n.servePath,i=n.consoleOSId,c=n.entryKey;if(!c)return;a=encodeURIComponent(a),i=encodeURIComponent(i),c=encodeURIComponent(c),Et()("https://xconsole.aliyun-inc.com/demo-playground?servePath=".concat(a,"&consoleOSId=").concat(i,"&entryKey=").concat(c)),gt("已将demo地址复制到剪贴板")}},key:t},t)})))},wt=bt.b.map((function(t){var n=t.key;return n}));n.default=function(t){var n=t.entryKey,e=t.onEntryKeyChange,a=Object(o.a)(t,["entryKey","onEntryKeyChange"]),c=a,s=c.loadOpts;return i.a.createElement("div",{className:xt.a.container},i.a.createElement(vt,{position:"bottom-right"}),i.a.createElement(Tt,{entryKeys:wt,currentEntryKey:n,onChange:e,loadOpts:s}),i.a.createElement("hr",null),n&&i.a.createElement("div",{className:xt.a.widgetCtn},i.a.createElement(bt.a,Object(r.a)({},a,{key:n,entryKey:n}))))}}}]);
6
6
  }})
File without changes
package/doc-dist/8.js CHANGED
@@ -2,5 +2,5 @@
2
2
  if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
3
  window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
4
 
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[8,7],{127:function(c,o){},129:function(c,o){}}]);
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[8,9],{148:function(c,o){},151:function(c,o){}}]);
6
6
  }})
package/doc-dist/9.js CHANGED
@@ -2,5 +2,5 @@
2
2
  if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
3
  window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
4
 
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[9],{683:function(e,n,a){"use strict";a.r(n);var l=a(0),o=a.n(l),t=a(285);n.default=e=>o.a.createElement(t.a,Object.assign({source:"# @alicloud/console-components-search\n\n基础搜索组件: 当前控制台的基础搜索主要针对列表页的搜索场景,此次基础搜索组件主要通过一个简约通用的框架满足控制台针对列表页不同场景下的搜索需求\n## install \n\n```bash\ntnpm i @alicloud/console-components-search --save-dev\n```\n\n\n## Demo\n\n\n[$XView](https://xconsole.aliyun-inc.com/demo-playground?consoleOSId=console-fe-test-rc-search-doc&servePath=https%3A%2F%2Fopensource-microapp.oss-cn-hangzhou.aliyuncs.com%2Fapp%2Fbreezr-docs%2Fconsole-fe-test-rc-search-doc%2F-latest%2F&entryKey=demo1 )\n\n\n## Usage\n\n```js\n/**\n * @title 场景1\n */\n\n import React from \"react\";\n import { Search } from \"@alicloud/console-components-search\";\n \n let options = [\n {\n label: '实例名称',\n dataIndex: 'name',\n template: 'input',\n templateProps: {\n placeholder: '按实例名称搜索',\n dataSource: []\n },\n groupName:\"test\"\n },\n {\n label: '网络类型',\n dataIndex: 'type',\n template: 'select',\n templateProps: {\n placeholder: '请选择网络类型',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n },\n groupName:\"test\"\n },\n {\n label: '付费类型',\n dataIndex: 'pay',\n template: 'multiple',\n templateProps: {\n placeholder: '请选择付费类型',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n },\n groupName:\"test2\"\n }\n]\n\nlet options2 = [\n {\n label: '实例名称',\n dataIndex: 'name',\n template: 'input',\n templateProps: {\n placeholder: '按实例名称搜索',\n dataSource: []\n },\n },\n {\n label: '网络类型',\n dataIndex: 'type',\n template: 'select',\n templateProps: {\n placeholder: '请选择网络类型',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n },\n },\n {\n label: '付费类型',\n dataIndex: 'pay',\n template: 'multiple',\n templateProps: {\n placeholder: '请选择付费类型',\n dataSource: [\n {label: 'A', value: 'a'},\n {label: 'B', value: 'b'},\n {label: 'C', value: 'c'},\n {label: 'D', value: 'd'},\n ]\n },\n }\n]\n\n\n const Demo1: React.FC<{}> = (props) => {\n \n return (\n <div>\n <Search\n defaultDataIndex=\"name\"\n options={options2}\n onSearch={(value, dataIndex) => {\n console.log(value, dataIndex)\n }}\n suggestions={[{label: '实例名称', children: ['222222']}, '33333333']}\n />\n <br/><br/>\n\n <div>搜索条件成组</div>\n <Search\n defaultDataIndex=\"name\"\n options={options}\n onSearch={(value, dataIndex) => {\n console.log(value, dataIndex)\n }}\n suggestions={[{label: '实例名称', children: ['222222']}, '33333333']}\n />\n </div>\n );\n };\n \n export default Demo1;\n \n```\n\n## API\n\n### Search\n\n基础搜索组件的参数\n[$XView](https://xconsole.aliyun-inc.com/demo-playground?servePath=https%3A%2F%2Fopensource-microapp.oss-cn-hangzhou.aliyuncs.com%2Fapp%2Fbreezr-docs%2Fconsole-fe-test-rc-search-doc%2F-latest%2F&consoleOSId=console-fe-test-rc-search-doc&entryKey=types%2FIRcSearchProps)\n\n### IRcSearchOptionsProps\n\n配置组件类别的options\n[$XView](http://localhost:3333/?entryKey=types%2FIRcSearchOptions&consoleOSId=console-fe-test-rc-search-doc)\n\n### SearchFilter\n\n[$XView](http://localhost:3333/?entryKey=types%2FIRcSearchTagListProps&consoleOSId=console-fe-test-rc-search-doc)\n\n### IRcSearchTagItemProps\n\n[$XView](http://localhost:3333/?entryKey=types%2FIRcSearchTagItemProps&consoleOSId=console-fe-test-rc-search-doc)"},e))}}]);
5
+ (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[9,8],{148:function(c,o){},151:function(c,o){}}]);
6
6
  }})
@@ -1 +1 @@
1
- body .xconsole-rcsearch-multi-pop.xconsole-rcsearch-multi-pop>ul{padding:8px}body .xconsole-rcsearch-multi-pop .next-select-menu-item{padding-left:0!important}body .xconsole-rcsearch-multi-pop .next-select-menu-item .next-menu-icon-selected{display:none}body .xconsole-rcsearch-multi-pop .next-menu-group-label{padding-left:0}body .xconsole-rc-search-popup{margin-top:4px}body .rc-search-prefix{--menu-padding-horizontal:24px}body .rc-search.isWind{--console-rc-search-label-color:#f7f7f7;--console-rc-search-label-hover-color:#ebebeb}body .rc-search.isWidget{--console-rc-search-close-btn-top:2px;--console-rc-search-close-btn-left:-3px;--icon-content-delete-filling:"\\E6A2"}body .rc-search-auto-complete [class*=select-menu-empty]{display:none}.rc-search-taglist:not(.isWind){margin-top:-4px}.rc-search-taglist:not(.isWind).rc-search-taglist:not(.isWind) [class*=-icon-close]:before{content:var(--icon-content-close)!important}.rc-search-taglist .search-tags-tag.search-tags-tag{margin-top:4px;font-weight:400;color:var(--color-text1-9,#333)!important}.rc-search-taglist .search-tags-tag.search-tags-tag .search-tags-tag-label{font-weight:500;color:var(--color-text1-6,grey);margin-right:8px}.rc-search-taglist .search-tags-tag.search-tags-tag[class*=tag-closable]>[class*=tag-close-btn]{margin-left:12px}.rc-search-taglist .search-tags-tag.search-tags-tag [class*=icon-close]:hover{color:grey!important}.rc-search-taglist .search-tags-tag:not(:last-child){margin-right:8px}.rc-search-taglist .search-tags-tag_empty{color:var(--color-text1-6,grey)}.rc-search-taglist .search-tags-tag-dot.rc-search-taglist .search-tags-tag-dot [class*=-badge-dot]{right:4px;top:0}
1
+ body .xconsole-rcsearch-multi-pop.xconsole-rcsearch-multi-pop>ul{padding:8px}body .xconsole-rcsearch-multi-pop .next-select-menu-item{padding-left:0!important}body .xconsole-rcsearch-multi-pop .next-select-menu-item .next-menu-icon-selected{display:none}body .xconsole-rcsearch-multi-pop .next-menu-group-label{padding-left:0}body .xconsole-rc-search-popup{margin-top:4px}body .rc-search-prefix{--menu-padding-horizontal:24px}body .rc-search.isWind{--console-rc-search-label-color:#f7f7f7;--console-rc-search-label-hover-color:#ebebeb}body .rc-search.isWidget{--console-rc-search-close-btn-top:2px;--console-rc-search-close-btn-left:-3px;--icon-content-delete-filling:"\\E6A2"}body .rc-search-auto-complete [class*=select-menu-empty]{display:none}.rc-search-taglist:not(.isWind){margin-top:-4px}.rc-search-taglist:not(.isWind) .search-tags-tag.search-tags-tag{font-weight:600}.rc-search-taglist:not(.isWind) .search-tags-tag.search-tags-tag [class*=-icon-close]:before{content:var(--icon-content-delete-filling)!important}.rc-search-taglist:not(.isWind) .search-tags-tag.search-tags-tag:hover [class*=-icon-close]:before,.rc-search-taglist:not(.isWind) .search-tags-tag.search-tags-tag [class*=icon-close]:hover{color:#181818!important}.rc-search-taglist .search-tags-tag.search-tags-tag{margin-top:4px;font-weight:400;color:var(--color-text1-9,#333)!important}.rc-search-taglist .search-tags-tag.search-tags-tag .search-tags-tag-label{font-weight:500;color:var(--color-text1-6,grey);margin-right:8px}.rc-search-taglist .search-tags-tag.search-tags-tag[class*=tag-closable]>[class*=tag-close-btn]{margin-left:12px}.rc-search-taglist .search-tags-tag.search-tags-tag [class*=icon-close]:hover{color:grey!important}.rc-search-taglist .search-tags-tag:not(:last-child){margin-right:8px}.rc-search-taglist .search-tags-tag_empty{color:var(--color-text1-6,grey)}.rc-search-taglist .search-tags-tag-dot.rc-search-taglist .search-tags-tag-dot [class*=-badge-dot]{right:4px;top:0}