@wangeditor-next/core 1.7.42 → 1.7.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/src/upload/interface.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
5
|
import { UppyFile } from '@uppy/core';
|
|
6
|
+
import { IDomEditor } from '../editor/interface';
|
|
6
7
|
type FilesType = {
|
|
7
8
|
[key: string]: UppyFile<{}, {}>;
|
|
8
9
|
};
|
|
@@ -23,14 +24,14 @@ interface IBaseUploadConfig {
|
|
|
23
24
|
onError: (file: UppyFile<{}, {}>, error: any, res: any) => void;
|
|
24
25
|
allowedFileTypes?: string[];
|
|
25
26
|
customInsert?: (res: any, insertFn: InsertFn) => void;
|
|
26
|
-
customUpload?: (files: File, insertFn: InsertFn) => void;
|
|
27
|
+
customUpload?: (files: File, insertFn: InsertFn, editor: IDomEditor) => void;
|
|
27
28
|
customBrowseAndUpload?: (insertFn: InsertFn) => void;
|
|
28
29
|
uppyConfig?: Record<string, any>;
|
|
29
30
|
xhrConfig?: Record<string, any>;
|
|
30
31
|
}
|
|
31
32
|
interface IUploadConfigWithCustomUpload extends IBaseUploadConfig {
|
|
32
33
|
server?: string;
|
|
33
|
-
customUpload: (files: File, insertFn: InsertFn) => void;
|
|
34
|
+
customUpload: (files: File, insertFn: InsertFn, editor: IDomEditor) => void;
|
|
34
35
|
}
|
|
35
36
|
interface IUploadConfigWithoutCustomUpload extends IBaseUploadConfig {
|
|
36
37
|
server: string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("slate"),require("lodash.clonedeep"),require("lodash.foreach"),require("dom7"),require("nanoid"),require("lodash.toarray"),require("lodash.debounce"),require("lodash.throttle"),require("is-hotkey"),require("snabbdom"),require("lodash.camelcase"),require("@uppy/core"),require("@uppy/xhr-upload")):"function"==typeof define&&define.amd?define(["exports","slate","lodash.clonedeep","lodash.foreach","dom7","nanoid","lodash.toarray","lodash.debounce","lodash.throttle","is-hotkey","snabbdom","lodash.camelcase","@uppy/core","@uppy/xhr-upload"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WangEditorCore={},e.require$$1,e.cloneDeep,e.forEach,e.$,null,e.toArray,e.debounce,e.throttle,e.isHotkey,e.snabbdom,e.camelCase,e.Uppy,e.XHRUpload)}(this,function(e,t,n,r,o,i,a,s,u,l,c,f,d,h){"use strict";var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v,m,y={};function b(){if(m)return v;m=1;var e=function(e){return e&&e.Math===Math&&e};return v=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof p&&p)||e("object"==typeof v&&v)||function(){return this}()||Function("return this")()}var w,x,E,S,O,C,k,T,N={};function R(){return x?w:(x=1,w=function(e){try{return!!e()}catch(e){return!0}})}function L(){if(S)return E;S=1;var e=R();return E=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function M(){if(C)return O;C=1;var e=R();return O=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function P(){if(T)return k;T=1;var e=M(),t=Function.prototype.call;return k=e?t.bind(t):function(){return t.apply(t,arguments)},k}var D,A,j,I,$,F,_,B,W,H,U,V,z,K,q,J,G,Y,X,Q,Z,ee,te,ne,re,oe,ie,ae,se,ue,le,ce,fe,de,he,pe,ge,ve,me,ye,be,we={};function xe(){if(D)return we;D=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return we.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,we}function Ee(){return j?A:(j=1,A=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Se(){if($)return I;$=1;var e=M(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return I=e?r:function(e){return function(){return n.apply(e,arguments)}},I}function Oe(){if(_)return F;_=1;var e=Se(),t=e({}.toString),n=e("".slice);return F=function(e){return n(t(e),8,-1)}}function Ce(){if(W)return B;W=1;var e=Se(),t=R(),n=Oe(),r=Object,o=e("".split);return B=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?o(e,""):r(e)}:r}function ke(){return U?H:(U=1,H=function(e){return null==e})}function Te(){if(z)return V;z=1;var e=ke(),t=TypeError;return V=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function Ne(){if(q)return K;q=1;var e=Ce(),t=Te();return K=function(n){return e(t(n))}}function Re(){if(G)return J;G=1;var e="object"==typeof document&&document.all;return J=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function Le(){if(X)return Y;X=1;var e=Re();return Y=function(t){return"object"==typeof t?null!==t:e(t)}}function Me(){if(Z)return Q;Z=1;var e=b(),t=Re();return Q=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},Q}function Pe(){if(te)return ee;te=1;var e=Se();return ee=e({}.isPrototypeOf)}function De(){if(re)return ne;re=1;var e=b().navigator,t=e&&e.userAgent;return ne=t?String(t):""}function Ae(){if(ie)return oe;ie=1;var e,t,n=b(),r=De(),o=n.process,i=n.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),oe=t}function je(){if(se)return ae;se=1;var e=Ae(),t=R(),n=b().String;return ae=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Ie(){if(le)return ue;le=1;var e=je();return ue=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function $e(){if(fe)return ce;fe=1;var e=Me(),t=Re(),n=Pe(),r=Ie(),o=Object;return ce=r?function(e){return"symbol"==typeof e}:function(r){var i=e("Symbol");return t(i)&&n(i.prototype,o(r))}}function Fe(){if(he)return de;he=1;var e=String;return de=function(t){try{return e(t)}catch(e){return"Object"}}}function _e(){if(ge)return pe;ge=1;var e=Re(),t=Fe(),n=TypeError;return pe=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Be(){if(me)return ve;me=1;var e=_e(),t=ke();return ve=function(n,r){var o=n[r];return t(o)?void 0:e(o)}}function We(){if(be)return ye;be=1;var e=P(),t=Re(),n=Le(),r=TypeError;return ye=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!n(s=e(a,o)))return s;if(t(a=o.valueOf)&&!n(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!n(s=e(a,o)))return s;throw new r("Can't convert object to primitive value")}}var He,Ue,Ve,ze,Ke,qe,Je,Ge,Ye,Xe,Qe,Ze,et,tt,nt,rt,ot,it,at,st,ut,lt,ct,ft,dt={exports:{}};function ht(){return Ue?He:(Ue=1,He=!1)}function pt(){if(ze)return Ve;ze=1;var e=b(),t=Object.defineProperty;return Ve=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function gt(){if(Ke)return dt.exports;Ke=1;var e=ht(),t=b(),n=pt(),r="__core-js_shared__",o=dt.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),dt.exports}function vt(){if(Je)return qe;Je=1;var e=gt();return qe=function(t,n){return e[t]||(e[t]=n||{})}}function mt(){if(Ye)return Ge;Ye=1;var e=Te(),t=Object;return Ge=function(n){return t(e(n))}}function yt(){if(Qe)return Xe;Qe=1;var e=Se(),t=mt(),n=e({}.hasOwnProperty);return Xe=Object.hasOwn||function(e,r){return n(t(e),r)}}function bt(){if(et)return Ze;et=1;var e=Se(),t=0,n=Math.random(),r=e(1.1.toString);return Ze=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function wt(){if(nt)return tt;nt=1;var e=b(),t=vt(),n=yt(),r=bt(),o=je(),i=Ie(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return tt=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function xt(){if(ot)return rt;ot=1;var e=P(),t=Le(),n=$e(),r=Be(),o=We(),i=wt(),a=TypeError,s=i("toPrimitive");return rt=function(i,u){if(!t(i)||n(i))return i;var l,c=r(i,s);if(c){if(void 0===u&&(u="default"),l=e(c,i,u),!t(l)||n(l))return l;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(i,u)}}function Et(){if(at)return it;at=1;var e=xt(),t=$e();return it=function(n){var r=e(n,"string");return t(r)?r:r+""}}function St(){if(ut)return st;ut=1;var e=b(),t=Le(),n=e.document,r=t(n)&&t(n.createElement);return st=function(e){return r?n.createElement(e):{}}}function Ot(){if(ct)return lt;ct=1;var e=L(),t=R(),n=St();return lt=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Ct(){if(ft)return N;ft=1;var e=L(),t=P(),n=xe(),r=Ee(),o=Ne(),i=Et(),a=yt(),s=Ot(),u=Object.getOwnPropertyDescriptor;return N.f=e?u:function(e,l){if(e=o(e),l=i(l),s)try{return u(e,l)}catch(e){}if(a(e,l))return r(!t(n.f,e,l),e[l])},N}var kt,Tt,Nt,Rt,Lt,Mt,Pt,Dt={};function At(){if(Tt)return kt;Tt=1;var e=L(),t=R();return kt=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function jt(){if(Rt)return Nt;Rt=1;var e=Le(),t=String,n=TypeError;return Nt=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function It(){if(Lt)return Dt;Lt=1;var e=L(),t=Ot(),n=At(),r=jt(),o=Et(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Dt.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&c in n&&!n[c]){var i=s(e,t);i&&i[c]&&(e[t]=n.value,n={configurable:l in n?n[l]:i[l],enumerable:u in n?n[u]:i[u],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[n]=s.value),e},Dt}function $t(){if(Pt)return Mt;Pt=1;var e=L(),t=It(),n=Ee();return Mt=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}var Ft,_t,Bt,Wt,Ht,Ut,Vt,zt,Kt,qt,Jt,Gt,Yt,Xt,Qt,Zt={exports:{}};function en(){if(_t)return Ft;_t=1;var e=L(),t=yt(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&r(n,"name").configurable);return Ft={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function tn(){if(Wt)return Bt;Wt=1;var e=Se(),t=Re(),n=gt(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),Bt=n.inspectSource}function nn(){if(Ut)return Ht;Ut=1;var e=b(),t=Re(),n=e.WeakMap;return Ht=t(n)&&/native code/.test(String(n))}function rn(){if(zt)return Vt;zt=1;var e=vt(),t=bt(),n=e("keys");return Vt=function(e){return n[e]||(n[e]=t(e))}}function on(){return qt?Kt:(qt=1,Kt={})}function an(){if(Gt)return Jt;Gt=1;var e,t,n,r=nn(),o=b(),i=Le(),a=$t(),s=yt(),u=gt(),l=rn(),c=on(),f="Object already initialized",d=o.TypeError,h=o.WeakMap;if(r||u.state){var p=u.state||(u.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new d(f);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},n=function(e){return p.has(e)}}else{var g=l("state");c[g]=!0,e=function(e,t){if(s(e,g))throw new d(f);return t.facade=e,a(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},n=function(e){return s(e,g)}}return Jt={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}}function sn(){if(Yt)return Zt.exports;Yt=1;var e=Se(),t=R(),n=Re(),r=yt(),o=L(),i=en().CONFIGURABLE,a=tn(),s=an(),u=s.enforce,l=s.get,c=String,f=Object.defineProperty,d=e("".slice),h=e("".replace),p=e([].join),g=o&&!t(function(){return 8!==f(function(){},"length",{value:8}).length}),v=String(String).split("String"),m=Zt.exports=function(e,t,n){"Symbol("===d(c(t),0,7)&&(t="["+h(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||i&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&r(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);return r(a,"source")||(a.source=p(v,"string"==typeof t?t:"")),e};return Function.prototype.toString=m(function(){return n(this)&&l(this).source||a(this)},"toString"),Zt.exports}function un(){if(Qt)return Xt;Qt=1;var e=Re(),t=It(),n=sn(),r=pt();return Xt=function(o,i,a,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:i;if(e(a)&&n(a,l,s),s.global)u?o[i]=a:r(i,a);else{try{s.unsafe?o[i]&&(u=!0):delete o[i]}catch(e){}u?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o}}var ln,cn,fn,dn,hn,pn,gn,vn,mn,yn,bn,wn,xn,En,Sn,On,Cn,kn={};function Tn(){if(dn)return fn;dn=1;var e=function(){if(cn)return ln;cn=1;var e=Math.ceil,t=Math.floor;return ln=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},ln}();return fn=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function Nn(){if(pn)return hn;pn=1;var e=Tn(),t=Math.max,n=Math.min;return hn=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)}}function Rn(){if(vn)return gn;vn=1;var e=Tn(),t=Math.min;return gn=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Ln(){if(yn)return mn;yn=1;var e=Rn();return mn=function(t){return e(t.length)}}function Mn(){if(wn)return bn;wn=1;var e=Ne(),t=Nn(),n=Ln(),r=function(r){return function(o,i,a){var s=e(o),u=n(s);if(0===u)return!r&&-1;var l,c=t(a,u);if(r&&i!=i){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((r||c in s)&&s[c]===i)return r||c||0;return!r&&-1}};return bn={includes:r(!0),indexOf:r(!1)}}function Pn(){if(En)return xn;En=1;var e=Se(),t=yt(),n=Ne(),r=Mn().indexOf,o=on(),i=e([].push);return xn=function(e,a){var s,u=n(e),l=0,c=[];for(s in u)!t(o,s)&&t(u,s)&&i(c,s);for(;a.length>l;)t(u,s=a[l++])&&(~r(c,s)||i(c,s));return c}}function Dn(){return On?Sn:(On=1,Sn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function An(){if(Cn)return kn;Cn=1;var e=Pn(),t=Dn().concat("length","prototype");return kn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},kn}var jn,In,$n,Fn,_n,Bn,Wn,Hn,Un,Vn,zn,Kn,qn,Jn,Gn,Yn,Xn,Qn,Zn,er,tr,nr,rr,or,ir,ar,sr,ur,lr={};function cr(){return jn||(jn=1,lr.f=Object.getOwnPropertySymbols),lr}function fr(){if($n)return In;$n=1;var e=Me(),t=Se(),n=An(),r=cr(),o=jt(),i=t([].concat);return In=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=r.f;return a?i(t,a(e)):t},In}function dr(){if(_n)return Fn;_n=1;var e=yt(),t=fr(),n=Ct(),r=It();return Fn=function(o,i,a){for(var s=t(i),u=r.f,l=n.f,c=0;c<s.length;c++){var f=s[c];e(o,f)||a&&e(a,f)||u(o,f,l(i,f))}},Fn}function hr(){if(Wn)return Bn;Wn=1;var e=R(),t=Re(),n=/#|\.prototype\./,r=function(n,r){var u=i[o(n)];return u===s||u!==a&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return Bn=r}function pr(){if(Un)return Hn;Un=1;var e=b(),t=Ct().f,n=$t(),r=un(),o=pt(),i=dr(),a=hr();return Hn=function(s,u){var l,c,f,d,h,p=s.target,g=s.global,v=s.stat;if(l=g?e:v?e[p]||o(p,{}):e[p]&&e[p].prototype)for(c in u){if(d=u[c],f=s.dontCallGetSet?(h=t(l,c))&&h.value:l[c],!a(g?c:p+(v?".":"#")+c,s.forced)&&void 0!==f){if(typeof d==typeof f)continue;i(d,f)}(s.sham||f&&f.sham)&&n(d,"sham",!0),r(l,c,d,s)}}}function gr(){if(zn)return Vn;zn=1;var e=Oe();return Vn=Array.isArray||function(t){return"Array"===e(t)}}function vr(){if(qn)return Kn;qn=1;var e=TypeError;return Kn=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function mr(){if(Gn)return Jn;Gn=1;var e=L(),t=It(),n=Ee();return Jn=function(r,o,i){e?t.f(r,o,n(0,i)):r[o]=i}}function yr(){if(Xn)return Yn;Xn=1;var e={};return e[wt()("toStringTag")]="z",Yn="[object z]"===String(e)}function br(){if(Zn)return Qn;Zn=1;var e=yr(),t=Re(),n=Oe(),r=wt()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Qn=e?n:function(e){var a,s,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(a=o(e),r))?s:i?n(a):"Object"===(u=n(a))&&t(a.callee)?"Arguments":u}}function wr(){if(tr)return er;tr=1;var e=Se(),t=R(),n=Re(),r=br(),o=Me(),i=tn(),a=function(){},s=o("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=e(u.exec),c=!u.test(a),f=function(e){if(!n(e))return!1;try{return s(a,[],e),!0}catch(e){return!1}},d=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(u,i(e))}catch(e){return!0}};return d.sham=!0,er=!s||t(function(){var e;return f(f.call)||!f(Object)||!f(function(){e=!0})||e})?d:f}function xr(){if(rr)return nr;rr=1;var e=gr(),t=wr(),n=Le(),r=wt()("species"),o=Array;return nr=function(i){var a;return e(i)&&(a=i.constructor,(t(a)&&(a===o||e(a.prototype))||n(a)&&null===(a=a[r]))&&(a=void 0)),void 0===a?o:a}}function Er(){if(ir)return or;ir=1;var e=xr();return or=function(t,n){return new(e(t))(0===n?0:n)}}function Sr(){if(sr)return ar;sr=1;var e=R(),t=wt(),n=Ae(),r=t("species");return ar=function(t){return n>=51||!e(function(){var e=[];return(e.constructor={})[r]=function(){return{foo:1}},1!==e[t](Boolean).foo})}}!function(){if(ur)return y;ur=1;var e=pr(),t=R(),n=gr(),r=Le(),o=mt(),i=Ln(),a=vr(),s=mr(),u=Er(),l=Sr(),c=wt(),f=Ae(),d=c("isConcatSpreadable"),h=f>=51||!t(function(){var e=[];return e[d]=!1,e.concat()[0]!==e}),p=function(e){if(!r(e))return!1;var t=e[d];return void 0!==t?!!t:n(e)};e({target:"Array",proto:!0,arity:1,forced:!h||!l("concat")},{concat:function(e){var t,n,r,l,c,f=o(this),d=u(f,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(p(c=-1===t?f:arguments[t]))for(l=i(c),a(h+l),n=0;n<l;n++,h++)n in c&&s(d,h,c[n]);else a(h+1),s(d,h++,c);return d.length=h,d}})}();var Or,Cr,kr,Tr={};function Nr(){if(Cr)return Or;Cr=1;var e=Pn(),t=Dn();return Or=Object.keys||function(n){return e(n,t)}}!function(){if(kr)return Tr;kr=1;var e=pr(),t=mt(),n=Nr();e({target:"Object",stat:!0,forced:R()(function(){n(1)})},{keys:function(e){return n(t(e))}})}();var Rr,Lr,Mr,Pr={};!function(){if(Mr)return Pr;Mr=1;var e=yr(),t=un(),n=function(){if(Lr)return Rr;Lr=1;var e=yr(),t=br();return Rr=e?{}.toString:function(){return"[object "+t(this)+"]"}}();e||t(Object.prototype,"toString",n,{unsafe:!0})}();var Dr,Ar,jr,Ir,$r,Fr,_r,Br,Wr,Hr,Ur,Vr,zr,Kr,qr,Jr={};function Gr(){return Ar?Dr:(Ar=1,Dr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function Yr(){if(Ir)return jr;Ir=1;var e=St()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return jr=t===Object.prototype?void 0:t}function Xr(){if(Fr)return $r;Fr=1;var e=Oe(),t=Se();return $r=function(n){if("Function"===e(n))return t(n)}}function Qr(){if(Br)return _r;Br=1;var e=Xr(),t=_e(),n=M(),r=e(e.bind);return _r=function(e,o){return t(e),void 0===o?e:n?r(e,o):function(){return e.apply(o,arguments)}},_r}function Zr(){if(Hr)return Wr;Hr=1;var e=Qr(),t=Se(),n=Ce(),r=mt(),o=Ln(),i=Er(),a=t([].push),s=function(t){var s=1===t,u=2===t,l=3===t,c=4===t,f=6===t,d=7===t,h=5===t||f;return function(p,g,v,m){for(var y,b,w=r(p),x=n(w),E=o(x),S=e(g,v),O=0,C=m||i,k=s?C(p,E):u||d?C(p,0):void 0;E>O;O++)if((h||O in x)&&(b=S(y=x[O],O,w),t))if(s)k[O]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return O;case 2:a(k,y)}else switch(t){case 4:return!1;case 7:a(k,y)}return f?-1:l||c?c:k}};return Wr={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}function eo(){if(Vr)return Ur;Vr=1;var e=R();return Ur=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}}!function(){if(qr)return Jr;qr=1;var e=b(),t=Gr(),n=Yr(),r=function(){if(Kr)return zr;Kr=1;var e=Zr().forEach,t=eo()("forEach");return zr=t?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)},zr}(),o=$t(),i=function(e){if(e&&e.forEach!==r)try{o(e,"forEach",r)}catch(t){e.forEach=r}};for(var a in t)t[a]&&i(e[a]&&e[a].prototype);i(n)}();var to,no,ro={},oo={};function io(){if(to)return oo;
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("slate"),require("lodash.clonedeep"),require("lodash.foreach"),require("dom7"),require("nanoid"),require("lodash.toarray"),require("lodash.debounce"),require("lodash.throttle"),require("is-hotkey"),require("snabbdom"),require("lodash.camelcase"),require("@uppy/core"),require("@uppy/xhr-upload")):"function"==typeof define&&define.amd?define(["exports","slate","lodash.clonedeep","lodash.foreach","dom7","nanoid","lodash.toarray","lodash.debounce","lodash.throttle","is-hotkey","snabbdom","lodash.camelcase","@uppy/core","@uppy/xhr-upload"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WangEditorCore={},e.require$$1,e.cloneDeep,e.forEach,e.$,null,e.toArray,e.debounce,e.throttle,e.isHotkey,e.snabbdom,e.camelCase,e.Uppy,e.XHRUpload)}(this,function(e,t,n,r,o,i,a,s,u,l,c,f,d,h){"use strict";var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v,m,y={};function b(){if(m)return v;m=1;var e=function(e){return e&&e.Math===Math&&e};return v=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof p&&p)||e("object"==typeof v&&v)||function(){return this}()||Function("return this")()}var w,x,E,S,O,C,k,T,N={};function R(){return x?w:(x=1,w=function(e){try{return!!e()}catch(e){return!0}})}function L(){if(S)return E;S=1;var e=R();return E=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function M(){if(C)return O;C=1;var e=R();return O=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function P(){if(T)return k;T=1;var e=M(),t=Function.prototype.call;return k=e?t.bind(t):function(){return t.apply(t,arguments)},k}var D,A,j,I,$,F,_,B,W,H,U,V,z,K,q,J,G,Y,X,Q,Z,ee,te,ne,re,oe,ie,ae,se,ue,le,ce,fe,de,he,pe,ge,ve,me,ye,be,we={};function xe(){if(D)return we;D=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return we.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,we}function Ee(){return j?A:(j=1,A=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Se(){if($)return I;$=1;var e=M(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return I=e?r:function(e){return function(){return n.apply(e,arguments)}},I}function Oe(){if(_)return F;_=1;var e=Se(),t=e({}.toString),n=e("".slice);return F=function(e){return n(t(e),8,-1)}}function Ce(){if(W)return B;W=1;var e=Se(),t=R(),n=Oe(),r=Object,o=e("".split);return B=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?o(e,""):r(e)}:r}function ke(){return U?H:(U=1,H=function(e){return null==e})}function Te(){if(z)return V;z=1;var e=ke(),t=TypeError;return V=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function Ne(){if(q)return K;q=1;var e=Ce(),t=Te();return K=function(n){return e(t(n))}}function Re(){if(G)return J;G=1;var e="object"==typeof document&&document.all;return J=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function Le(){if(X)return Y;X=1;var e=Re();return Y=function(t){return"object"==typeof t?null!==t:e(t)}}function Me(){if(Z)return Q;Z=1;var e=b(),t=Re();return Q=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},Q}function Pe(){if(te)return ee;te=1;var e=Se();return ee=e({}.isPrototypeOf)}function De(){if(re)return ne;re=1;var e=b().navigator,t=e&&e.userAgent;return ne=t?String(t):""}function Ae(){if(ie)return oe;ie=1;var e,t,n=b(),r=De(),o=n.process,i=n.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),oe=t}function je(){if(se)return ae;se=1;var e=Ae(),t=R(),n=b().String;return ae=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Ie(){if(le)return ue;le=1;var e=je();return ue=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function $e(){if(fe)return ce;fe=1;var e=Me(),t=Re(),n=Pe(),r=Ie(),o=Object;return ce=r?function(e){return"symbol"==typeof e}:function(r){var i=e("Symbol");return t(i)&&n(i.prototype,o(r))}}function Fe(){if(he)return de;he=1;var e=String;return de=function(t){try{return e(t)}catch(e){return"Object"}}}function _e(){if(ge)return pe;ge=1;var e=Re(),t=Fe(),n=TypeError;return pe=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Be(){if(me)return ve;me=1;var e=_e(),t=ke();return ve=function(n,r){var o=n[r];return t(o)?void 0:e(o)}}function We(){if(be)return ye;be=1;var e=P(),t=Re(),n=Le(),r=TypeError;return ye=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!n(s=e(a,o)))return s;if(t(a=o.valueOf)&&!n(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!n(s=e(a,o)))return s;throw new r("Can't convert object to primitive value")}}var He,Ue,Ve,ze,Ke,qe,Je,Ge,Ye,Xe,Qe,Ze,et,tt,nt,rt,ot,it,at,st,ut,lt,ct,ft,dt={exports:{}};function ht(){return Ue?He:(Ue=1,He=!1)}function pt(){if(ze)return Ve;ze=1;var e=b(),t=Object.defineProperty;return Ve=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function gt(){if(Ke)return dt.exports;Ke=1;var e=ht(),t=b(),n=pt(),r="__core-js_shared__",o=dt.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.45.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"}),dt.exports}function vt(){if(Je)return qe;Je=1;var e=gt();return qe=function(t,n){return e[t]||(e[t]=n||{})}}function mt(){if(Ye)return Ge;Ye=1;var e=Te(),t=Object;return Ge=function(n){return t(e(n))}}function yt(){if(Qe)return Xe;Qe=1;var e=Se(),t=mt(),n=e({}.hasOwnProperty);return Xe=Object.hasOwn||function(e,r){return n(t(e),r)}}function bt(){if(et)return Ze;et=1;var e=Se(),t=0,n=Math.random(),r=e(1.1.toString);return Ze=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function wt(){if(nt)return tt;nt=1;var e=b(),t=vt(),n=yt(),r=bt(),o=je(),i=Ie(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return tt=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function xt(){if(ot)return rt;ot=1;var e=P(),t=Le(),n=$e(),r=Be(),o=We(),i=wt(),a=TypeError,s=i("toPrimitive");return rt=function(i,u){if(!t(i)||n(i))return i;var l,c=r(i,s);if(c){if(void 0===u&&(u="default"),l=e(c,i,u),!t(l)||n(l))return l;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(i,u)}}function Et(){if(at)return it;at=1;var e=xt(),t=$e();return it=function(n){var r=e(n,"string");return t(r)?r:r+""}}function St(){if(ut)return st;ut=1;var e=b(),t=Le(),n=e.document,r=t(n)&&t(n.createElement);return st=function(e){return r?n.createElement(e):{}}}function Ot(){if(ct)return lt;ct=1;var e=L(),t=R(),n=St();return lt=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Ct(){if(ft)return N;ft=1;var e=L(),t=P(),n=xe(),r=Ee(),o=Ne(),i=Et(),a=yt(),s=Ot(),u=Object.getOwnPropertyDescriptor;return N.f=e?u:function(e,l){if(e=o(e),l=i(l),s)try{return u(e,l)}catch(e){}if(a(e,l))return r(!t(n.f,e,l),e[l])},N}var kt,Tt,Nt,Rt,Lt,Mt,Pt,Dt={};function At(){if(Tt)return kt;Tt=1;var e=L(),t=R();return kt=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function jt(){if(Rt)return Nt;Rt=1;var e=Le(),t=String,n=TypeError;return Nt=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function It(){if(Lt)return Dt;Lt=1;var e=L(),t=Ot(),n=At(),r=jt(),o=Et(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Dt.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&c in n&&!n[c]){var i=s(e,t);i&&i[c]&&(e[t]=n.value,n={configurable:l in n?n[l]:i[l],enumerable:u in n?n[u]:i[u],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[n]=s.value),e},Dt}function $t(){if(Pt)return Mt;Pt=1;var e=L(),t=It(),n=Ee();return Mt=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}var Ft,_t,Bt,Wt,Ht,Ut,Vt,zt,Kt,qt,Jt,Gt,Yt,Xt,Qt,Zt={exports:{}};function en(){if(_t)return Ft;_t=1;var e=L(),t=yt(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&r(n,"name").configurable);return Ft={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function tn(){if(Wt)return Bt;Wt=1;var e=Se(),t=Re(),n=gt(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),Bt=n.inspectSource}function nn(){if(Ut)return Ht;Ut=1;var e=b(),t=Re(),n=e.WeakMap;return Ht=t(n)&&/native code/.test(String(n))}function rn(){if(zt)return Vt;zt=1;var e=vt(),t=bt(),n=e("keys");return Vt=function(e){return n[e]||(n[e]=t(e))}}function on(){return qt?Kt:(qt=1,Kt={})}function an(){if(Gt)return Jt;Gt=1;var e,t,n,r=nn(),o=b(),i=Le(),a=$t(),s=yt(),u=gt(),l=rn(),c=on(),f="Object already initialized",d=o.TypeError,h=o.WeakMap;if(r||u.state){var p=u.state||(u.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new d(f);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},n=function(e){return p.has(e)}}else{var g=l("state");c[g]=!0,e=function(e,t){if(s(e,g))throw new d(f);return t.facade=e,a(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},n=function(e){return s(e,g)}}return Jt={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}}function sn(){if(Yt)return Zt.exports;Yt=1;var e=Se(),t=R(),n=Re(),r=yt(),o=L(),i=en().CONFIGURABLE,a=tn(),s=an(),u=s.enforce,l=s.get,c=String,f=Object.defineProperty,d=e("".slice),h=e("".replace),p=e([].join),g=o&&!t(function(){return 8!==f(function(){},"length",{value:8}).length}),v=String(String).split("String"),m=Zt.exports=function(e,t,n){"Symbol("===d(c(t),0,7)&&(t="["+h(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||i&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&r(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);return r(a,"source")||(a.source=p(v,"string"==typeof t?t:"")),e};return Function.prototype.toString=m(function(){return n(this)&&l(this).source||a(this)},"toString"),Zt.exports}function un(){if(Qt)return Xt;Qt=1;var e=Re(),t=It(),n=sn(),r=pt();return Xt=function(o,i,a,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:i;if(e(a)&&n(a,l,s),s.global)u?o[i]=a:r(i,a);else{try{s.unsafe?o[i]&&(u=!0):delete o[i]}catch(e){}u?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o}}var ln,cn,fn,dn,hn,pn,gn,vn,mn,yn,bn,wn,xn,En,Sn,On,Cn,kn={};function Tn(){if(dn)return fn;dn=1;var e=function(){if(cn)return ln;cn=1;var e=Math.ceil,t=Math.floor;return ln=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},ln}();return fn=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function Nn(){if(pn)return hn;pn=1;var e=Tn(),t=Math.max,n=Math.min;return hn=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)}}function Rn(){if(vn)return gn;vn=1;var e=Tn(),t=Math.min;return gn=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Ln(){if(yn)return mn;yn=1;var e=Rn();return mn=function(t){return e(t.length)}}function Mn(){if(wn)return bn;wn=1;var e=Ne(),t=Nn(),n=Ln(),r=function(r){return function(o,i,a){var s=e(o),u=n(s);if(0===u)return!r&&-1;var l,c=t(a,u);if(r&&i!=i){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((r||c in s)&&s[c]===i)return r||c||0;return!r&&-1}};return bn={includes:r(!0),indexOf:r(!1)}}function Pn(){if(En)return xn;En=1;var e=Se(),t=yt(),n=Ne(),r=Mn().indexOf,o=on(),i=e([].push);return xn=function(e,a){var s,u=n(e),l=0,c=[];for(s in u)!t(o,s)&&t(u,s)&&i(c,s);for(;a.length>l;)t(u,s=a[l++])&&(~r(c,s)||i(c,s));return c}}function Dn(){return On?Sn:(On=1,Sn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function An(){if(Cn)return kn;Cn=1;var e=Pn(),t=Dn().concat("length","prototype");return kn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},kn}var jn,In,$n,Fn,_n,Bn,Wn,Hn,Un,Vn,zn,Kn,qn,Jn,Gn,Yn,Xn,Qn,Zn,er,tr,nr,rr,or,ir,ar,sr,ur,lr={};function cr(){return jn||(jn=1,lr.f=Object.getOwnPropertySymbols),lr}function fr(){if($n)return In;$n=1;var e=Me(),t=Se(),n=An(),r=cr(),o=jt(),i=t([].concat);return In=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=r.f;return a?i(t,a(e)):t},In}function dr(){if(_n)return Fn;_n=1;var e=yt(),t=fr(),n=Ct(),r=It();return Fn=function(o,i,a){for(var s=t(i),u=r.f,l=n.f,c=0;c<s.length;c++){var f=s[c];e(o,f)||a&&e(a,f)||u(o,f,l(i,f))}},Fn}function hr(){if(Wn)return Bn;Wn=1;var e=R(),t=Re(),n=/#|\.prototype\./,r=function(n,r){var u=i[o(n)];return u===s||u!==a&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return Bn=r}function pr(){if(Un)return Hn;Un=1;var e=b(),t=Ct().f,n=$t(),r=un(),o=pt(),i=dr(),a=hr();return Hn=function(s,u){var l,c,f,d,h,p=s.target,g=s.global,v=s.stat;if(l=g?e:v?e[p]||o(p,{}):e[p]&&e[p].prototype)for(c in u){if(d=u[c],f=s.dontCallGetSet?(h=t(l,c))&&h.value:l[c],!a(g?c:p+(v?".":"#")+c,s.forced)&&void 0!==f){if(typeof d==typeof f)continue;i(d,f)}(s.sham||f&&f.sham)&&n(d,"sham",!0),r(l,c,d,s)}}}function gr(){if(zn)return Vn;zn=1;var e=Oe();return Vn=Array.isArray||function(t){return"Array"===e(t)}}function vr(){if(qn)return Kn;qn=1;var e=TypeError;return Kn=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function mr(){if(Gn)return Jn;Gn=1;var e=L(),t=It(),n=Ee();return Jn=function(r,o,i){e?t.f(r,o,n(0,i)):r[o]=i}}function yr(){if(Xn)return Yn;Xn=1;var e={};return e[wt()("toStringTag")]="z",Yn="[object z]"===String(e)}function br(){if(Zn)return Qn;Zn=1;var e=yr(),t=Re(),n=Oe(),r=wt()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Qn=e?n:function(e){var a,s,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(a=o(e),r))?s:i?n(a):"Object"===(u=n(a))&&t(a.callee)?"Arguments":u}}function wr(){if(tr)return er;tr=1;var e=Se(),t=R(),n=Re(),r=br(),o=Me(),i=tn(),a=function(){},s=o("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=e(u.exec),c=!u.test(a),f=function(e){if(!n(e))return!1;try{return s(a,[],e),!0}catch(e){return!1}},d=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(u,i(e))}catch(e){return!0}};return d.sham=!0,er=!s||t(function(){var e;return f(f.call)||!f(Object)||!f(function(){e=!0})||e})?d:f}function xr(){if(rr)return nr;rr=1;var e=gr(),t=wr(),n=Le(),r=wt()("species"),o=Array;return nr=function(i){var a;return e(i)&&(a=i.constructor,(t(a)&&(a===o||e(a.prototype))||n(a)&&null===(a=a[r]))&&(a=void 0)),void 0===a?o:a}}function Er(){if(ir)return or;ir=1;var e=xr();return or=function(t,n){return new(e(t))(0===n?0:n)}}function Sr(){if(sr)return ar;sr=1;var e=R(),t=wt(),n=Ae(),r=t("species");return ar=function(t){return n>=51||!e(function(){var e=[];return(e.constructor={})[r]=function(){return{foo:1}},1!==e[t](Boolean).foo})}}!function(){if(ur)return y;ur=1;var e=pr(),t=R(),n=gr(),r=Le(),o=mt(),i=Ln(),a=vr(),s=mr(),u=Er(),l=Sr(),c=wt(),f=Ae(),d=c("isConcatSpreadable"),h=f>=51||!t(function(){var e=[];return e[d]=!1,e.concat()[0]!==e}),p=function(e){if(!r(e))return!1;var t=e[d];return void 0!==t?!!t:n(e)};e({target:"Array",proto:!0,arity:1,forced:!h||!l("concat")},{concat:function(e){var t,n,r,l,c,f=o(this),d=u(f,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(p(c=-1===t?f:arguments[t]))for(l=i(c),a(h+l),n=0;n<l;n++,h++)n in c&&s(d,h,c[n]);else a(h+1),s(d,h++,c);return d.length=h,d}})}();var Or,Cr,kr,Tr={};function Nr(){if(Cr)return Or;Cr=1;var e=Pn(),t=Dn();return Or=Object.keys||function(n){return e(n,t)}}!function(){if(kr)return Tr;kr=1;var e=pr(),t=mt(),n=Nr();e({target:"Object",stat:!0,forced:R()(function(){n(1)})},{keys:function(e){return n(t(e))}})}();var Rr,Lr,Mr,Pr={};!function(){if(Mr)return Pr;Mr=1;var e=yr(),t=un(),n=function(){if(Lr)return Rr;Lr=1;var e=yr(),t=br();return Rr=e?{}.toString:function(){return"[object "+t(this)+"]"}}();e||t(Object.prototype,"toString",n,{unsafe:!0})}();var Dr,Ar,jr,Ir,$r,Fr,_r,Br,Wr,Hr,Ur,Vr,zr,Kr,qr,Jr={};function Gr(){return Ar?Dr:(Ar=1,Dr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function Yr(){if(Ir)return jr;Ir=1;var e=St()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return jr=t===Object.prototype?void 0:t}function Xr(){if(Fr)return $r;Fr=1;var e=Oe(),t=Se();return $r=function(n){if("Function"===e(n))return t(n)}}function Qr(){if(Br)return _r;Br=1;var e=Xr(),t=_e(),n=M(),r=e(e.bind);return _r=function(e,o){return t(e),void 0===o?e:n?r(e,o):function(){return e.apply(o,arguments)}},_r}function Zr(){if(Hr)return Wr;Hr=1;var e=Qr(),t=Se(),n=Ce(),r=mt(),o=Ln(),i=Er(),a=t([].push),s=function(t){var s=1===t,u=2===t,l=3===t,c=4===t,f=6===t,d=7===t,h=5===t||f;return function(p,g,v,m){for(var y,b,w=r(p),x=n(w),E=o(x),S=e(g,v),O=0,C=m||i,k=s?C(p,E):u||d?C(p,0):void 0;E>O;O++)if((h||O in x)&&(b=S(y=x[O],O,w),t))if(s)k[O]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return O;case 2:a(k,y)}else switch(t){case 4:return!1;case 7:a(k,y)}return f?-1:l||c?c:k}};return Wr={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}function eo(){if(Vr)return Ur;Vr=1;var e=R();return Ur=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}}!function(){if(qr)return Jr;qr=1;var e=b(),t=Gr(),n=Yr(),r=function(){if(Kr)return zr;Kr=1;var e=Zr().forEach,t=eo()("forEach");return zr=t?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)},zr}(),o=$t(),i=function(e){if(e&&e.forEach!==r)try{o(e,"forEach",r)}catch(t){e.forEach=r}};for(var a in t)t[a]&&i(e[a]&&e[a].prototype);i(n)}();var to,no,ro={},oo={};function io(){if(to)return oo;
|
|
2
2
|
/*!
|
|
3
3
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
4
4
|
*
|