@nocobase/plugin-multi-keyword-filter 2.1.0-beta.43 → 2.1.0-beta.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client/103.513149b773e262dc.js +10 -0
- package/dist/client/MultipleKeywordsInput.d.ts +4 -2
- package/dist/client/index.js +1 -1
- package/dist/client/interceptor.d.ts +1 -1
- package/dist/client-v2/103.8bcbf628d0af8457.js +10 -0
- package/dist/client-v2/MultipleKeywordsInput.d.ts +17 -0
- package/dist/client-v2/index.d.ts +9 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +10 -0
- package/dist/client-v2/plugin.d.ts +13 -0
- package/dist/externalVersion.js +5 -3
- package/dist/node_modules/qs/package.json +1 -1
- package/dist/shared/interceptor.d.ts +10 -0
- package/dist/shared/interceptor.js +71 -0
- package/dist/shared/normalizeKeywords.d.ts +10 -0
- package/dist/shared/normalizeKeywords.js +59 -0
- package/package.json +6 -4
- package/dist/client/103.864785436b4a1318.js +0 -10
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React, { FC } from 'react';
|
|
10
|
+
import { normalizeKeywords, type KeywordValue } from '../shared/normalizeKeywords';
|
|
11
|
+
export { normalizeKeywords };
|
|
12
|
+
export declare const MultipleKeywordsInput: FC<{
|
|
13
|
+
fieldInterface: string;
|
|
14
|
+
value?: KeywordValue[];
|
|
15
|
+
onChange?: (value: KeywordValue[], option?: unknown) => void;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export { default } from './plugin';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@ant-design/icons"),require("@nocobase/flow-engine"),require("@nocobase/client-v2"),require("react"),require("antd")):"function"==typeof define&&define.amd?define("@nocobase/plugin-multi-keyword-filter/client-v2",["@ant-design/icons","@nocobase/flow-engine","@nocobase/client-v2","react","antd"],t):"object"==typeof exports?exports["@nocobase/plugin-multi-keyword-filter/client-v2"]=t(require("@ant-design/icons"),require("@nocobase/flow-engine"),require("@nocobase/client-v2"),require("react"),require("antd")):e["@nocobase/plugin-multi-keyword-filter/client-v2"]=t(e["@ant-design/icons"],e["@nocobase/flow-engine"],e["@nocobase/client-v2"],e.react,e.antd)}(self,function(e,t,r,n,o){return function(){var i,a,l,c={792:function(e,t,r){"use strict";var n=r(894),o=r(20),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},20:function(e,t,r){"use strict";var n=r(460),o=r(894),i=r(710),a=o("%TypeError%"),l=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(c,l),p=o("%Object.defineProperty%",!0),f=o("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=u(n,c,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var s=function(){return u(n,l,arguments)};p?p(e.exports,"apply",{value:s}):e.exports.apply=s},866:function(e,t,r){"use strict";var n=r(894)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},710:function(e,t,r){"use strict";var n=r(894),o=r(356),i=r(866)(),a=r(906),l=n("%TypeError%"),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||c(t)!==t)throw new l("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var p=a(e,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(u=!1)}return(n||u||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},356:function(e,t,r){"use strict";var n=r(13)(),o=r(894),i=n&&o("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(e){i=!1}var a=o("%SyntaxError%"),l=o("%TypeError%"),c=r(906);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new l("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],f=!!c&&c(e,t);if(i)i(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===n&&f?f.enumerable:!n,value:r,writable:null===o&&f?f.writable:!o});else if(!p&&(n||o||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},13:function(e,t,r){"use strict";var n=r(894)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},552:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},o=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r},i=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a,l=this;if("function"!=typeof l||"[object Function]"!==t.apply(l))throw TypeError("Function.prototype.bind called on incompatible "+l);for(var c=o(arguments,1),u=r(0,l.length-c.length),p=[],f=0;f<u;f++)p[f]="$"+f;if(a=Function("binder","return function ("+i(p,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=l.apply(this,n(c,arguments));return Object(t)===t?t:this}return l.apply(e,n(c,arguments))}),l.prototype){var s=function(){};s.prototype=l.prototype,a.prototype=new s,s.prototype=null}return a}},460:function(e,t,r){"use strict";var n=r(552);e.exports=Function.prototype.bind||n},894:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,l=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},p=c?function(){try{return arguments.callee,u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,f=r(40)(),s=r(675)(),y=Object.getPrototypeOf||(s?function(e){return e.__proto__}:null),b={},d="u">typeof Uint8Array&&y?y(Uint8Array):n,g={"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f&&y?y([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":b,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&y?y(y([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&f&&y?y(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&f&&y?y(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&y?y(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet};if(y)try{null.error}catch(e){var m=y(y(e));g["%Error.prototype%"]=m}var h=function e(t){var r;if("%AsyncFunction%"===t)r=l("async function () {}");else if("%GeneratorFunction%"===t)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=l("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(r=y(o.prototype))}return g[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(460),w=r(204),S=O.call(Function.call,Array.prototype.concat),j=O.call(Function.apply,Array.prototype.splice),P=O.call(Function.call,String.prototype.replace),A=O.call(Function.call,String.prototype.slice),x=O.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,_=function(e){var t=A(e,0,1),r=A(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return P(e,E,function(e,t,r,o){n[n.length]=r?P(o,k,"$1"):t||e}),n},I=function(e,t){var r,n=e;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(g,n)){var i=g[n];if(i===b&&(i=h(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=_(e),n=r.length>0?r[0]:"",i=I("%"+n+"%",t),l=i.name,u=i.value,p=!1,f=i.alias;f&&(n=f[0],j(r,S([0,1],f)));for(var s=1,y=!0;s<r.length;s+=1){var b=r[s],d=A(b,0,1),m=A(b,-1);if(('"'===d||"'"===d||"`"===d||'"'===m||"'"===m||"`"===m)&&d!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==b&&y||(p=!0),n+="."+b,w(g,l="%"+n+"%"))u=g[l];else if(null!=u){if(!(b in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&s+1>=r.length){var h=c(u,b);u=(y=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:u[b]}else y=w(u,b),u=u[b];y&&!p&&(g[l]=u)}}return u}},906:function(e,t,r){"use strict";var n=r(894)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},675:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},40:function(e,t,r){"use strict";var n="u">typeof Symbol&&Symbol,o=r(674);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},674:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},204:function(e,t,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty;e.exports=r(460).call(n,o)},458:function(e,t,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=l&&c&&"function"==typeof c.get?c.get:null,p=l&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,d=Object.prototype.toString,g=Function.prototype.toString,m=String.prototype.match,h=String.prototype.slice,v=String.prototype.replace,O=String.prototype.toUpperCase,w=String.prototype.toLowerCase,S=RegExp.prototype.test,j=Array.prototype.concat,P=Array.prototype.join,A=Array.prototype.slice,x=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I?"object":"symbol")?Symbol.toStringTag:null,F=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-x(-e):x(e);if(n!==e){var o=String(n),i=h.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var C=r(445),D=C.custom,M=L(D)?D:null;function U(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function B(e){return"[object Array]"===G(e)&&(!R||!("object"==typeof e&&R in e))}function W(e){return"[object RegExp]"===G(e)&&(!R||!("object"==typeof e&&R in e))}function L(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,l){var c,d,O,S,x,k=n||{};if(q(k,"quoteStyle")&&"single"!==k.quoteStyle&&"double"!==k.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(q(k,"maxStringLength")&&("number"==typeof k.maxStringLength?k.maxStringLength<0&&k.maxStringLength!==1/0:null!==k.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var D=!q(k,"customInspect")||k.customInspect;if("boolean"!=typeof D&&"symbol"!==D)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(k,"indent")&&null!==k.indent&&" "!==k.indent&&!(parseInt(k.indent,10)===k.indent&&k.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(k,"numericSeparator")&&"boolean"!=typeof k.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var $=k.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(h.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}return U(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",r)}(t,k);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var Y=String(t);return $?T(t,Y):Y}if("bigint"==typeof t){var Z=String(t)+"n";return $?T(t,Z):Z}var ee=void 0===k.depth?5:k.depth;if(void 0===o&&(o=0),o>=ee&&ee>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var et=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=P.call(Array(e.indent+1)," ")}return{base:r,prev:P.call(Array(t+1),r)}}(k,o);if(void 0===l)l=[];else if(H(l,t)>=0)return"[Circular]";function er(t,r,n){if(r&&(l=A.call(l)).push(r),n){var i={depth:k.depth};return q(k,"quoteStyle")&&(i.quoteStyle=k.quoteStyle),e(t,i,o+1,l)}return e(t,k,o+1,l)}if("function"==typeof t&&!W(t)){var en=function(e){if(e.name)return e.name;var t=m.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),eo=X(t,er);return"[Function"+(en?": "+en:" (anonymous)")+"]"+(eo.length>0?" { "+P.call(eo,", ")+" }":"")}if(L(t)){var ei=I?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||I?ei:z(ei)}if((ea=t)&&"object"==typeof ea&&("u">typeof HTMLElement&&ea instanceof HTMLElement||"string"==typeof ea.nodeName&&"function"==typeof ea.getAttribute)){for(var ea,el,ec="<"+w.call(String(t.nodeName)),eu=t.attributes||[],ep=0;ep<eu.length;ep++){ec+=" "+eu[ep].name+"="+U((el=eu[ep].value,v.call(String(el),/"/g,""")),"double",k)}return ec+=">",t.childNodes&&t.childNodes.length&&(ec+="..."),ec+="</"+w.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ef=X(t,er);return et&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(ef)?"["+K(ef,et)+"]":"[ "+P.call(ef,", ")+" ]"}if("[object Error]"===G(c=t)&&(!R||!("object"==typeof c&&R in c))){var es=X(t,er);return"cause"in Error.prototype||!("cause"in t)||F.call(t,"cause")?0===es.length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.call(es,", ")+" }":"{ ["+String(t)+"] "+P.call(j.call("[cause]: "+er(t.cause),es),", ")+" }"}if("object"==typeof t&&D){if(M&&"function"==typeof t[M]&&C)return C(t,{depth:ee-o});else if("symbol"!==D&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ey=[];return a&&a.call(t,function(e,r){ey.push(er(r,t,!0)+" => "+er(e,t))}),J("Map",i.call(t),ey,et)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eb=[];return p&&p.call(t,function(e){eb.push(er(e,t))}),J("Set",u.call(t),eb,et)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if("[object Number]"===G(d=t)&&(!R||!("object"==typeof d&&R in d)))return z(er(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return z(er(E.call(t)));if("[object Boolean]"===G(O=t)&&(!R||!("object"==typeof O&&R in O)))return z(b.call(t));if("[object String]"===G(S=t)&&(!R||!("object"==typeof S&&R in S)))return z(er(String(t)));if("u">typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===G(x=t)&&(!R||!("object"==typeof x&&R in x)))&&!W(t)){var ed=X(t,er),eg=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,em=t instanceof Object?"":"null prototype",eh=!eg&&R&&Object(t)===t&&R in t?h.call(G(t),8,-1):em?"Object":"",ev=(eg||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eh||em?"["+P.call(j.call([],eh||[],em||[]),": ")+"] ":"");return 0===ed.length?ev+"{}":et?ev+"{"+K(ed,et)+"}":ev+"{ "+P.call(ed,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return $.call(e,t)}function G(e){return d.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function V(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+O.call(t.toString(16))}function z(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?K(r,n):P.call(r,", "))+"}"}function K(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+P.call(e,","+r)+"\n"+t.prev}function X(e,t){var r,n=B(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=q(e,i)?t(e[i],e):""}var a="function"==typeof k?k(e):[];if(I){r={};for(var l=0;l<a.length;l++)r["$"+a[l]]=a[l]}for(var c in e)if(q(e,c)&&(!n||String(Number(c))!==c||!(c<e.length)))if(I&&r["$"+c]instanceof Symbol)continue;else S.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e));if("function"==typeof k)for(var u=0;u<a.length;u++)F.call(e,a[u])&&o.push("["+t(a[u])+"]: "+t(e[a[u]],e));return o}},136:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},600:function(e,t,r){"use strict";var n=r(477),o=r(347);e.exports={formats:r(136),parse:o,stringify:n}},347:function(e,t,r){"use strict";var n=r(361),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,p=c.split(t.delimiter,u),f=-1,s=t.charset;if(t.charsetSentinel)for(y=0;y<p.length;++y)0===p[y].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[y]?s="utf-8":"utf8=%26%2310003%3B"===p[y]&&(s="iso-8859-1"),f=y,y=p.length);for(y=0;y<p.length;++y)if(y!==f){var y,b,d,g=p[y],m=g.indexOf("]="),h=-1===m?g.indexOf("="):m+1;-1===h?(b=t.decoder(g,a.decoder,s,"key"),d=t.strictNullHandling?null:""):(b=t.decoder(g.slice(0,h),a.decoder,s,"key"),d=n.maybeMap(l(g.slice(h+1),t),function(e){return t.decoder(e,a.decoder,s,"value")})),d&&t.interpretNumericEntities&&"iso-8859-1"===s&&(d=d.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(d=i(d)?[d]:d),o.call(r,b)?r[b]=n.combine(r[b],d):r[b]=d}return r},u=function(e,t,r,n){for(var o=n?t:l(t,r),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=parseInt(u,10);r.parseArrays||""!==u?!isNaN(p)&&c!==u&&String(p)===u&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[])[p]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o},p=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=l?i.slice(0,l.index):i,p=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;p.push(c)}for(var f=0;r.depth>0&&null!==(l=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(l[1])}return l&&p.push("["+i.slice(l.index)+"]"),u(p,t,r,n)}},f=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var o="string"==typeof e?c(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(o),l=0;l<a.length;++l){var u=a[l],s=p(u,o[u],r,"string"==typeof e);i=n.merge(i,s,r)}return!0===r.allowSparse?i:n.compact(i)}},477:function(e,t,r){"use strict";var n=r(921),o=r(361),i=r(136),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,p=function(e,t){u.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},b={},d=function e(t,r,i,a,l,u,f,s,d,g,m,h,v,O,w,S){for(var j,P,A=t,x=S,E=0,k=!1;void 0!==(x=x.get(b))&&!k;){var _=x.get(t);if(E+=1,void 0!==_)if(_===E)throw RangeError("Cyclic object value");else k=!0;void 0===x.get(b)&&(E=0)}if("function"==typeof s?A=s(r,A):A instanceof Date?A=m(A):"comma"===i&&c(A)&&(A=o.maybeMap(A,function(e){return e instanceof Date?m(e):e})),null===A){if(l)return f&&!O?f(r,y.encoder,w,"key",h):r;A=""}if("string"==typeof(j=A)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||o.isBuffer(A))return f?[v(O?r:f(r,y.encoder,w,"key",h))+"="+v(f(A,y.encoder,w,"value",h))]:[v(r)+"="+v(String(A))];var I=[];if(void 0===A)return I;if("comma"===i&&c(A))O&&f&&(A=o.maybeMap(A,f)),P=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(s))P=s;else{var R=Object.keys(A);P=d?R.sort(d):R}for(var F=a&&c(A)&&1===A.length?r+"[]":r,N=0;N<P.length;++N){var T=P[N],C="object"==typeof T&&void 0!==T.value?T.value:A[T];if(!u||null!==C){var D=c(A)?"function"==typeof i?i(F,T):F:F+(g?"."+T:"["+T+"]");S.set(t,E);var M=n();M.set(b,S),p(I,e(C,D,i,a,l,u,"comma"===i&&O&&c(A)?null:f,s,d,g,m,h,v,O,w,M))}}return I},g=function(e){if(!e)return y;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=y.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===e.allowDots?y.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}};e.exports=function(e,t){var r,o,i=e,a=g(t);"function"==typeof a.filter?i=(0,a.filter)("",i):c(a.filter)&&(r=a.filter);var u=[];if("object"!=typeof i||null===i)return"";o=t&&t.arrayFormat in l?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=l[o];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var s="comma"===f&&t&&t.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var y=n(),b=0;b<r.length;++b){var m=r[b];a.skipNulls&&null===i[m]||p(u,d(i[m],m,f,s,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,y))}var h=u.join(a.delimiter),v=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),h.length>0?v+h:""}},361:function(e,t,r){"use strict";var n=r(136),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},c=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),c=0;c<a.length;++c){var u=a[c],p=i[u];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(t.push({obj:i,prop:u}),r.push(p))}return l(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",u=0;u<l.length;++u){var p=l.charCodeAt(u);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===n.RFC1738&&(40===p||41===p)){c+=l.charAt(u);continue}if(p<128){c+=a[p];continue}if(p<2048){c+=a[192|p>>6]+a[128|63&p];continue}if(p<55296||p>=57344){c+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p];continue}u+=1,c+=a[240|(p=65536+((1023&p)<<10|1023&l.charCodeAt(u)))>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p]}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=c(t,n)),i(t)&&i(r))?(r.forEach(function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t},a)}}},921:function(e,t,r){"use strict";var n=r(894),o=r(792),i=r(458),a=n("%TypeError%"),l=n("%WeakMap%",!0),c=n("%Map%",!0),u=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),s=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),b=o("Map.prototype.has",!0),d=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},g=function(e,t){var r=d(e,t);return r&&r.value},m=function(e,t,r){var n=d(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(c){if(t)return s(t,n)}else if(r)return g(r,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(c){if(t)return b(t,n)}else if(r)return!!d(r,n);return!1},set:function(n,o){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),p(e,n,o)):c?(t||(t=new c),y(t,n,o)):(r||(r={key:{},next:null}),m(r,n,o))}};return n}},375:function(t){"use strict";t.exports=e},485:function(e){"use strict";e.exports=r},694:function(e){"use strict";e.exports=t},59:function(e){"use strict";e.exports=o},155:function(e){"use strict";e.exports=n},445:function(){}},u={};function p(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return c[e](r,r.exports,p),r.exports}p.m=c,p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var r in t)p.o(t,r)&&!p.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},p.f={},p.e=function(e){return Promise.all(Object.keys(p.f).reduce(function(t,r){return p.f[r](e,t),t},[]))},p.u=function(e){return""+e+".8bcbf628d0af8457.js"},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f={},p.l=function(e,t,r,n){if(f[e])return void f[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var c=a[l];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@nocobase/plugin-multi-keyword-filter/client-v2:"+r){o=c;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.setAttribute("data-rspack","@nocobase/plugin-multi-keyword-filter/client-v2:"+r),o.src=e),f[e]=[t];var u=function(t,r){o.onerror=o.onload=null,clearTimeout(s);var n=f[e];if(delete f[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),i&&document.head.appendChild(o)},p.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.g.importScripts&&(s=p.g.location+"");var f,s,y=p.g.document;if(!s&&y&&(y.currentScript&&"SCRIPT"===y.currentScript.tagName.toUpperCase()&&(s=y.currentScript.src),!s)){var b=y.getElementsByTagName("script");if(b.length)for(var d=b.length-1;d>-1&&(!s||!/^http(s?):/.test(s));)s=b[d--].src}if(!s)throw Error("Automatic publicPath is not supported in this browser");p.p=s.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i={889:0},p.f.j=function(e,t){var r=p.o(i,e)?i[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var n=new Promise(function(t,n){r=i[e]=[t,n]});t.push(r[2]=n);var o=p.p+p.u(e),a=Error();p.l(o,function(t){if(p.o(i,e)&&(0!==(r=i[e])&&(i[e]=void 0),r)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",a.name="ChunkLoadError",a.type=n,a.request=o,r[1](a)}},"chunk-"+e,e)}},a=function(e,t){var r,n,o=t[0],a=t[1],l=t[2],c=0;if(o.some(function(e){return 0!==i[e]})){for(r in a)p.o(a,r)&&(p.m[r]=a[r]);l&&l(p)}for(e&&e(t);c<o.length;c++)n=o[c],p.o(i,n)&&i[n]&&i[n][0](),i[n]=0},(l=self.webpackChunk_nocobase_plugin_multi_keyword_filter_client_v2=self.webpackChunk_nocobase_plugin_multi_keyword_filter_client_v2||[]).forEach(a.bind(null,0)),l.push=a.bind(null,l.push.bind(l));var g={};return!function(){"use strict";var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src&&(e=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")),!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@nocobase/plugin-multi-keyword-filter/dist/client-v2/")}if(!e){var n=window.__nocobase_modern_client_prefix__||"v",o="/"+(n=String(n).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var i=window.location.pathname||"/",a=i.indexOf(o);e=a>=0?i.slice(0,a+1):"/"}e&&(e=e.replace(RegExp("/"+n+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-multi-keyword-filter/dist/client-v2/"}p.p=e}(),!function(){"use strict";p.r(g),p.d(g,{default:function(){return F}});var e=p(375),t=p(485),r=p(59),n=p(155),o=p.n(n),i=p(600),a=p.n(i);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var u=function(e){var t,r,n,o,i=e.url||"",u=(function(e){if(Array.isArray(e))return e}(t=i.split("?"))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw r}}return o}}(t)||function(e){if(e){if("string"==typeof e)return l(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return(i+a().stringify(e.params,{strictNullHandling:!0,arrayFormat:"brackets"})).length<=2e3?e:(u&&(e.params=c({},a().parse(u,{strictNullHandling:!0}),e.params)),n=c({},(r=e.data)&&(void 0===r?"undefined":r&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&!Array.isArray(r)?e.data:{}),o=o={__params__:e.params,__method__:e.method},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),e.data=n,e.params={},e.method="post",e)},f=p(694),s=JSON.parse('{"UU":"@nocobase/plugin-multi-keyword-filter"}');function y(){var e=(0,f.useFlowEngine)();return function(t,r){var n,o;return e.context.t(t,(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},r),o=o={ns:[s.UU,"client"]},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n))}}function b(e){return"string"==typeof e?e.trim():e}function d(e){return String(b(e))}function m(e){return/^[+-]?\d+$/.test(e)}function h(e){return/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i.test(e)}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S=function(t){var i,a,l,c=t.fieldInterface,u=function(e,t){if(null==e)return{};var r,n,o,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(o=0,r=Reflect.ownKeys(Object(e));o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}(t,["fieldInterface"]),f=(0,n.useRef)(null),s=w((0,n.useState)(!1),2),g=s[0],v=s[1],S=w((0,n.useState)(!1),2),j=S[0],P=S[1],A=w((0,n.useState)([]),2),x=A[0],E=A[1],k=w((0,n.useState)([]),2),_=k[0],I=k[1],R=w((0,n.useState)([]),2),F=R[0],N=R[1],T=y(),C=function(e,r){var n;null==(n=t.onChange)||n.call(t,"integer"===c||"id"===c?e.map(d).filter(m):"number"===c?e.map(d).filter(h):"percent"===c?e.map(b).map(function(e){return parseFloat(String(e))}).filter(function(e){return!Number.isNaN(e)}):e.map(b).filter(function(e){return""!==e}),r)},D=function(e,t){var r=new Set;return e.forEach(function(e){t.forEach(function(t){var n=e[t];null!=n&&""!==n&&r.add(String(n))})}),Array.from(r).join("\n")},M=function(e){if(!e)return void r.message.warning(T("noValidKeywords"));var t=e.split("\n").filter(Boolean);C(t),r.message.success(T("importSuccess",{count:t.length}))};return o().createElement(o().Fragment,null,o().createElement(r.Space.Compact,{block:!0},o().createElement(r.Select,(i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({mode:"tags",tokenSeparators:["\n"],placeholder:T("keywordsInputPlaceholder"),allowClear:!0,suffixIcon:null,maxTagCount:"responsive",open:!!(null==(l=u.value)?void 0:l.length)&&void 0},u),a=a={onChange:function(e,t){C(e,t)}},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(a)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(a,e))}),i)),o().createElement(r.Tooltip,{title:T("importExcel")},o().createElement(r.Button,{onClick:function(){var e;null==(e=f.current)||e.click()},loading:g,icon:o().createElement(e.UploadOutlined,null)}))),o().createElement("input",{type:"file",ref:f,hidden:!0,accept:".xlsx,.xls",onChange:function(e){var t;return(t=function(){var t,n,o,i,a,l;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:c(0)}),l(a,"throw",{value:c(1)}),l(a,"return",{value:c(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function c(l){return function(c){var u=[l,c];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(c){var u,f,s,y;switch(c.label){case 0:if(!(n=null==(t=e.target.files)?void 0:t[0]))return[2];c.label=1;case 1:return c.trys.push([1,4,5,6]),v(!0),[4,p.e("103").then(p.bind(p,802))];case 2:return o=c.sent(),[4,(u=n,f=o,new Promise(function(e,t){var r=new FileReader;r.onload=function(r){try{var n,o=null==(n=r.target)?void 0:n.result,i=f.read(o,{type:"array"}),a=i.SheetNames[0],l=i.Sheets[a],c=f.utils.sheet_to_json(l,{defval:""});e(c)}catch(e){t(e)}},r.onerror=function(e){return t(e)},r.readAsArrayBuffer(u)}))];case 3:if(0===(i=c.sent()).length)return r.message.error(T("excelFileEmpty")),[2];return E(a=Object.keys(i[0])),N(i),1===a.length?M((s=i,y=a[0],s.map(function(e){return e[y]}).filter(function(e){return null!=e&&""!==e}).join("\n"))):P(!0),[3,6];case 4:return l=c.sent(),console.error(T("errorParsingExcel"),l),r.message.error(T("failedToParseExcel")),[3,6];case 5:return v(!1),e.target.value="",[7];case 6:return[2]}})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(e){O(i,n,o,a,l,"next",e)}function l(e){O(i,n,o,a,l,"throw",e)}a(void 0)})})()}}),o().createElement(r.Modal,{title:T("selectExcelColumns"),open:j,onOk:function(){0===_.length?r.message.warning(T("selectAtLeastOneColumn")):(M(D(F,_)),P(!1))},onCancel:function(){return P(!1)},okText:T("confirm"),cancelText:T("cancel")},o().createElement(r.Alert,{type:"info",description:o().createElement(r.Typography,null,o().createElement("ul",null,T("tips").split("\n").map(function(e){return o().createElement("li",{key:e},e)})))}),o().createElement(r.Select,{mode:"multiple",value:_,onChange:function(e){return I(e)},placeholder:T("selectColumnsPlaceholder"),options:x.map(function(e){return{label:e,value:e}})})))};function j(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}function P(e,t,r){return(P=k()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&x(o,r.prototype),o}).apply(null,arguments)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t="function"==typeof Map?new Map:void 0;return(E=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return P(e,arguments,A(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),x(r,e)})(e)}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var _=["input","phone","email","uuid","sequence","integer","number","id","percent","nanoid"];function I(t){var n=t.type,i=y(),a="等于任意一个"===i("equalsAny"),l=i("in"===n?"equalsAny":"notEqualsAny");return o().createElement("div",null,l," ",o().createElement(r.Tooltip,{title:o().createElement("div",null,i("providedByPlugin",{pluginName:i("pluginName")})," ",o().createElement("a",{href:"https://".concat(a?"docs-cn":"docs",".nocobase.com/handbook/multi-keyword-filter"),target:"_blank",rel:"noopener noreferrer"},o().createElement(e.LinkOutlined,null)))},o().createElement(e.QuestionCircleOutlined,null)))}function R(e,t){return{label:o().createElement(I,{type:t}),value:"in"===t?"$in":"$notIn",schema:{"x-component":"MultipleKeywordsInput","x-component-props":{fieldInterface:e}}}}var F=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,t;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return e=r,t=arguments,e=A(e),function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,k()?Reflect.construct(e,t||[],A(this).constructor):e.apply(this,t))}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&x(r,e),t=[{key:"load",value:function(){var e;return(e=function(){var e;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(a,"next",{value:c(0)}),l(a,"throw",{value:c(1)}),l(a,"return",{value:c(2)}),"function"==typeof Symbol&&l(a,Symbol.iterator,{value:function(){return this}}),a;function c(l){return function(c){var u=[l,c];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){return e=this,_.forEach(function(t){e.app.addFieldInterfaceOperator(t,R(t,"in")),e.app.addFieldInterfaceOperator(t,R(t,"notIn"))}),this.app.addComponents({MultipleKeywordsInput:S}),setTimeout(function(){e.app.apiClient.axios.interceptors.request.use(u)}),[2]})},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){j(i,n,o,a,l,"next",e)}function l(e){j(i,n,o,a,l,"throw",e)}a(void 0)})}).call(this)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(r.prototype,t),r}(E(t.Plugin))}(),g}()});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useT(): (str: string, options?: Record<string, unknown>) => string;
|
|
10
|
+
export declare function tExpr(key: string): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import { Application, Plugin } from '@nocobase/client-v2';
|
|
10
|
+
export declare class PluginFilterOperatorMultipleKeywordsClient extends Plugin<any, Application> {
|
|
11
|
+
load(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export default PluginFilterOperatorMultipleKeywordsClient;
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,10 +11,12 @@ module.exports = {
|
|
|
11
11
|
"antd": "5.24.2",
|
|
12
12
|
"react": "18.2.0",
|
|
13
13
|
"@ant-design/icons": "5.6.1",
|
|
14
|
-
"lodash": "4.18.1",
|
|
15
14
|
"@formily/react": "2.3.7",
|
|
16
|
-
"@nocobase/client": "2.1.0-beta.
|
|
15
|
+
"@nocobase/client": "2.1.0-beta.45",
|
|
17
16
|
"react-i18next": "11.18.6",
|
|
17
|
+
"@nocobase/flow-engine": "2.1.0-beta.45",
|
|
18
|
+
"@nocobase/client-v2": "2.1.0-beta.45",
|
|
18
19
|
"koa": "3.2.0",
|
|
19
|
-
"@nocobase/server": "2.1.0-beta.
|
|
20
|
+
"@nocobase/server": "2.1.0-beta.45",
|
|
21
|
+
"axios": "1.7.7"
|
|
20
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"qs","description":"A querystring parser that supports nesting and arrays, with a depth limit","homepage":"https://github.com/ljharb/qs","version":"6.11.2","repository":{"type":"git","url":"https://github.com/ljharb/qs.git"},"funding":{"url":"https://github.com/sponsors/ljharb"},"main":"lib/index.js","contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"keywords":["querystring","qs","query","url","parse","stringify"],"engines":{"node":">=0.6"},"dependencies":{"side-channel":"^1.0.4"},"devDependencies":{"@ljharb/eslint-config":"^21.0.1","aud":"^2.0.2","browserify":"^16.5.2","eclint":"^2.8.1","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","has-override-mistake":"^1.0.0","has-property-descriptors":"^1.0.0","has-symbols":"^1.0.3","iconv-lite":"^0.5.1","in-publish":"^2.0.1","mkdirp":"^0.5.5","mock-property":"^1.0.0","npmignore":"^0.3.0","nyc":"^10.3.2","object-inspect":"^1.12.3","qs-iconv":"^1.0.4","safe-publish-latest":"^2.0.0","safer-buffer":"^2.1.2","tape":"^5.6.3"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest && npm run dist","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run --silent readme && npm run --silent lint","test":"npm run tests-only","tests-only":"nyc tape 'test/**/*.js'","posttest":"aud --production","readme":"evalmd README.md","postlint":"eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)","lint":"eslint --ext=js,mjs .","dist":"mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js"},"license":"BSD-3-Clause","publishConfig":{"ignore":["!dist/*","bower.json","component.json",".github/workflows"]},"_lastModified":"2026-06-
|
|
1
|
+
{"name":"qs","description":"A querystring parser that supports nesting and arrays, with a depth limit","homepage":"https://github.com/ljharb/qs","version":"6.11.2","repository":{"type":"git","url":"https://github.com/ljharb/qs.git"},"funding":{"url":"https://github.com/sponsors/ljharb"},"main":"lib/index.js","contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"keywords":["querystring","qs","query","url","parse","stringify"],"engines":{"node":">=0.6"},"dependencies":{"side-channel":"^1.0.4"},"devDependencies":{"@ljharb/eslint-config":"^21.0.1","aud":"^2.0.2","browserify":"^16.5.2","eclint":"^2.8.1","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","has-override-mistake":"^1.0.0","has-property-descriptors":"^1.0.0","has-symbols":"^1.0.3","iconv-lite":"^0.5.1","in-publish":"^2.0.1","mkdirp":"^0.5.5","mock-property":"^1.0.0","npmignore":"^0.3.0","nyc":"^10.3.2","object-inspect":"^1.12.3","qs-iconv":"^1.0.4","safe-publish-latest":"^2.0.0","safer-buffer":"^2.1.2","tape":"^5.6.3"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest && npm run dist","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run --silent readme && npm run --silent lint","test":"npm run tests-only","tests-only":"nyc tape 'test/**/*.js'","posttest":"aud --production","readme":"evalmd README.md","postlint":"eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)","lint":"eslint --ext=js,mjs .","dist":"mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js"},"license":"BSD-3-Clause","publishConfig":{"ignore":["!dist/*","bower.json","component.json",".github/workflows"]},"_lastModified":"2026-06-08T04:32:11.558Z"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { InternalAxiosRequestConfig } from 'axios';
|
|
10
|
+
export declare const interceptor: (config: InternalAxiosRequestConfig<unknown>) => InternalAxiosRequestConfig<unknown>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
+
var interceptor_exports = {};
|
|
38
|
+
__export(interceptor_exports, {
|
|
39
|
+
interceptor: () => interceptor
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(interceptor_exports);
|
|
42
|
+
var import_qs = __toESM(require("qs"));
|
|
43
|
+
function isRecord(value) {
|
|
44
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
45
|
+
}
|
|
46
|
+
const interceptor = (config) => {
|
|
47
|
+
const url = config.url || "";
|
|
48
|
+
const [, queryString] = url.split("?");
|
|
49
|
+
const query = import_qs.default.stringify(config.params, {
|
|
50
|
+
strictNullHandling: true,
|
|
51
|
+
arrayFormat: "brackets"
|
|
52
|
+
});
|
|
53
|
+
if ((url + query).length <= 2e3) {
|
|
54
|
+
return config;
|
|
55
|
+
}
|
|
56
|
+
if (queryString) {
|
|
57
|
+
const queryParams = import_qs.default.parse(queryString, {
|
|
58
|
+
strictNullHandling: true
|
|
59
|
+
});
|
|
60
|
+
config.params = { ...queryParams, ...config.params };
|
|
61
|
+
}
|
|
62
|
+
const data = isRecord(config.data) ? config.data : {};
|
|
63
|
+
config.data = { ...data, __params__: config.params, __method__: config.method };
|
|
64
|
+
config.params = {};
|
|
65
|
+
config.method = "post";
|
|
66
|
+
return config;
|
|
67
|
+
};
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
interceptor
|
|
71
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export type KeywordValue = string | number;
|
|
10
|
+
export declare function normalizeKeywords(values: KeywordValue[], fieldInterface: string): KeywordValue[];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var normalizeKeywords_exports = {};
|
|
28
|
+
__export(normalizeKeywords_exports, {
|
|
29
|
+
normalizeKeywords: () => normalizeKeywords
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(normalizeKeywords_exports);
|
|
32
|
+
function trimKeyword(value) {
|
|
33
|
+
return typeof value === "string" ? value.trim() : value;
|
|
34
|
+
}
|
|
35
|
+
function toKeywordText(value) {
|
|
36
|
+
return String(trimKeyword(value));
|
|
37
|
+
}
|
|
38
|
+
function isIntegerKeyword(value) {
|
|
39
|
+
return /^[+-]?\d+$/.test(value);
|
|
40
|
+
}
|
|
41
|
+
function isNumberKeyword(value) {
|
|
42
|
+
return /^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i.test(value);
|
|
43
|
+
}
|
|
44
|
+
function normalizeKeywords(values, fieldInterface) {
|
|
45
|
+
if (fieldInterface === "integer" || fieldInterface === "id") {
|
|
46
|
+
return values.map(toKeywordText).filter(isIntegerKeyword);
|
|
47
|
+
}
|
|
48
|
+
if (fieldInterface === "number") {
|
|
49
|
+
return values.map(toKeywordText).filter(isNumberKeyword);
|
|
50
|
+
}
|
|
51
|
+
if (fieldInterface === "percent") {
|
|
52
|
+
return values.map(trimKeyword).map((item) => parseFloat(String(item))).filter((item) => !Number.isNaN(item));
|
|
53
|
+
}
|
|
54
|
+
return values.map(trimKeyword).filter((item) => item !== "");
|
|
55
|
+
}
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
normalizeKeywords
|
|
59
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-multi-keyword-filter",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.45",
|
|
4
4
|
"main": "dist/server/index.js",
|
|
5
5
|
"displayName": "Multi-keyword filter",
|
|
6
6
|
"displayName.zh-CN": "多关键词筛选",
|
|
@@ -13,19 +13,21 @@
|
|
|
13
13
|
],
|
|
14
14
|
"nocobase": {
|
|
15
15
|
"supportedVersions": [
|
|
16
|
-
"1.x"
|
|
16
|
+
"1.x",
|
|
17
|
+
"2.x"
|
|
17
18
|
],
|
|
18
19
|
"editionLevel": 0
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
22
|
"antd": "5.x",
|
|
22
|
-
"xlsx": "
|
|
23
|
+
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
26
|
"@nocobase/client": "2.x",
|
|
27
|
+
"@nocobase/client-v2": "2.x",
|
|
26
28
|
"@nocobase/server": "2.x",
|
|
27
29
|
"@nocobase/test": "2.x"
|
|
28
30
|
},
|
|
29
31
|
"license": "Apache-2.0",
|
|
30
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "42587115fc34c3eb01ef2b2549f1c998e5708318"
|
|
31
33
|
}
|