@micromag/viewer-build 0.2.286
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/build/asset-manifest.json +53 -0
- package/build/index.html +1 -0
- package/build/static/css/main.e57f66bd.chunk.css +2 -0
- package/build/static/css/main.e57f66bd.chunk.css.map +1 -0
- package/build/static/js/0.01163aa6.chunk.js +2 -0
- package/build/static/js/0.01163aa6.chunk.js.map +1 -0
- package/build/static/js/1.a3777b79.chunk.js +2 -0
- package/build/static/js/1.a3777b79.chunk.js.map +1 -0
- package/build/static/js/10.f9dd6afb.chunk.js +2 -0
- package/build/static/js/10.f9dd6afb.chunk.js.map +1 -0
- package/build/static/js/11.34b8c9a7.chunk.js +2 -0
- package/build/static/js/11.34b8c9a7.chunk.js.map +1 -0
- package/build/static/js/12.2dce3474.chunk.js +2 -0
- package/build/static/js/12.2dce3474.chunk.js.map +1 -0
- package/build/static/js/13.bde03245.chunk.js +2 -0
- package/build/static/js/13.bde03245.chunk.js.map +1 -0
- package/build/static/js/14.91002aaf.chunk.js +2 -0
- package/build/static/js/14.91002aaf.chunk.js.map +1 -0
- package/build/static/js/15.32007c2f.chunk.js +2 -0
- package/build/static/js/15.32007c2f.chunk.js.map +1 -0
- package/build/static/js/16.ff749cb1.chunk.js +2 -0
- package/build/static/js/16.ff749cb1.chunk.js.map +1 -0
- package/build/static/js/17.9104f132.chunk.js +2 -0
- package/build/static/js/17.9104f132.chunk.js.map +1 -0
- package/build/static/js/18.5efbf108.chunk.js +2 -0
- package/build/static/js/18.5efbf108.chunk.js.map +1 -0
- package/build/static/js/2.21428e7d.chunk.js +2 -0
- package/build/static/js/2.21428e7d.chunk.js.map +1 -0
- package/build/static/js/5.0f581947.chunk.js +3 -0
- package/build/static/js/5.0f581947.chunk.js.LICENSE.txt +118 -0
- package/build/static/js/5.0f581947.chunk.js.map +1 -0
- package/build/static/js/6.c35da869.chunk.js +3 -0
- package/build/static/js/6.c35da869.chunk.js.LICENSE.txt +1 -0
- package/build/static/js/6.c35da869.chunk.js.map +1 -0
- package/build/static/js/7.183f653f.chunk.js +2 -0
- package/build/static/js/7.183f653f.chunk.js.map +1 -0
- package/build/static/js/8.18b5d6e9.chunk.js +2 -0
- package/build/static/js/8.18b5d6e9.chunk.js.map +1 -0
- package/build/static/js/9.f1fd57b4.chunk.js +2 -0
- package/build/static/js/9.f1fd57b4.chunk.js.map +1 -0
- package/build/static/js/main.5d81dd2e.chunk.js +2 -0
- package/build/static/js/main.5d81dd2e.chunk.js.map +1 -0
- package/build/static/js/runtime-main.61dd3d02.js +2 -0
- package/build/static/js/runtime-main.61dd3d02.js.map +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(this["webpackJsonp@micromag/viewer-build"]=this["webpackJsonp@micromag/viewer-build"]||[]).push([[8],{536:function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(e)}t.exports=r},539:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},540:function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(e,n)}t.exports=r},547:function(t,e){t.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}},548:function(t,e,r){var n=r(568),o=r(539);t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?o(t):e}},563:function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},564:function(t,e,r){var n=r(565);function o(e,r,i){return"undefined"!==typeof Reflect&&Reflect.get?t.exports=o=Reflect.get:t.exports=o=function(t,e,r){var o=n(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(r):i.value}},o(e,r,i||e)}t.exports=o},565:function(t,e,r){var n=r(536);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t}},566:function(t,e,r){var n=r(540);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}},567:function(t,e,r){var n=r(536),o=r(547),i=r(548);t.exports=function(t){var e=o();return function(){var r,o=n(t);if(e){var a=n(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return i(this,r)}}},568:function(t,e){function r(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},569:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},570:function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},665:function(t,e,r){var n=r(563);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},678:function(t,e,r){var n,o=r(665),i=r(539),a=r(564),c=r(536),u=r(566),s=r(567),f=r(569),l=r(570),h=r(287);window,t.exports=(n=r(0),function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}([function(t,e,r){"use strict";var n=r(4),o="object"==typeof self&&self&&self.Object===Object&&self,i=n.a||o||Function("return this")();e.a=i},function(t,e,r){t.exports=r(9)()},function(t,r,n){"use strict";(function(t){var o=n(4),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=a&&a.exports===i&&o.a.process,u=function(){try{return a&&a.require&&a.require("util").types||c&&c.binding&&c.binding("util")}catch(t){}}();r.a=u}).call(this,n(6)(t))},function(t,e){t.exports=n},function(t,e,r){"use strict";(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.a=r}).call(this,r(11))},function(t,r,n){"use strict";(function(t){var o=n(0),i=n(7),a=e&&!e.nodeType&&e,c=a&&"object"==typeof t&&t&&!t.nodeType&&t,u=c&&c.exports===a?o.a.Buffer:void 0,s=(u?u.isBuffer:void 0)||i.a;r.a=s}).call(this,n(6)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,r){"use strict";e.a=function(){return!1}},function(t,r,n){"use strict";(function(t){var o=n(0),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=a&&a.exports===i?o.a.Buffer:void 0,u=c?c.allocUnsafe:void 0;r.a=function(t,e){if(e)return t.slice();var r=t.length,n=u?u(r):new t.constructor(r);return t.copy(n),n}}).call(this,n(6)(t))},function(t,e,r){"use strict";var n=r(10);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";r.r(e),r.d(e,"CKEditor",(function(){return Lr})),r.d(e,"CKEditorContext",(function(){return Nr}));var n=r(3),d=r.n(n),p=r(1),y=r.n(p),v=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},_=r(0),b=function(){return _.a.Date.now()},g=/\s/,m=function(t){for(var e=t.length;e--&&g.test(t.charAt(e)););return e},j=/^\s+/,w=function(t){return t?t.slice(0,m(t)+1).replace(j,""):t},x=_.a.Symbol,O=Object.prototype,E=O.hasOwnProperty,P=O.toString,k=x?x.toStringTag:void 0,C=function(t){var e=E.call(t,k),r=t[k];try{t[k]=void 0;var n=!0}catch(t){}var o=P.call(t);return n&&(e?t[k]=r:delete t[k]),o},A=Object.prototype.toString,S=function(t){return A.call(t)},R=x?x.toStringTag:void 0,T=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?C(t):S(t)},W=function(t){return null!=t&&"object"==typeof t},D=function(t){return"symbol"==typeof t||W(t)&&"[object Symbol]"==T(t)},I=/^[-+]0x[0-9a-f]+$/i,z=/^0b[01]+$/i,F=/^0o[0-7]+$/i,M=parseInt,U=function(t){if("number"==typeof t)return t;if(D(t))return NaN;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=w(t);var r=z.test(t);return r||F.test(t)?M(t.slice(2),r?2:8):I.test(t)?NaN:+t},N=Math.max,L=Math.min,B=function(t,e,r){var n,o,i,a,c,u,s=0,f=!1,l=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var r=n,i=o;return n=o=void 0,s=e,a=t.apply(i,r)}function p(t){return s=t,c=setTimeout(_,e),f?d(t):a}function y(t){var r=t-u;return void 0===u||r>=e||r<0||l&&t-s>=i}function _(){var t=b();if(y(t))return g(t);c=setTimeout(_,function(t){var r=e-(t-u);return l?L(r,i-(t-s)):r}(t))}function g(t){return c=void 0,h&&n?d(t):(n=o=void 0,a)}function m(){var t=b(),r=y(t);if(n=arguments,o=this,u=t,r){if(void 0===c)return p(u);if(l)return clearTimeout(c),c=setTimeout(_,e),d(u)}return void 0===c&&(c=setTimeout(_,e)),a}return e=U(e)||0,v(r)&&(f=!!r.leading,i=(l="maxWait"in r)?N(U(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),m.cancel=function(){void 0!==c&&clearTimeout(c),s=0,n=u=o=c=void 0},m.flush=function(){return void 0===c?a:g(b())},m},H=function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return v(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),B(t,e,{leading:n,maxWait:e,trailing:o})},Q=function(){this.__data__=[],this.size=0},q=function(t,e){return t===e||t!=t&&e!=e},V=function(t,e){for(var r=t.length;r--;)if(q(t[r][0],e))return r;return-1},$=Array.prototype.splice,K=function(t){var e=this.__data__,r=V(e,t);return!(r<0)&&(r==e.length-1?e.pop():$.call(e,r,1),--this.size,!0)},G=function(t){var e=this.__data__,r=V(e,t);return r<0?void 0:e[r][1]},J=function(t){return V(this.__data__,t)>-1},Y=function(t,e){var r=this.__data__,n=V(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function X(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}X.prototype.clear=Q,X.prototype.delete=K,X.prototype.get=G,X.prototype.has=J,X.prototype.set=Y;var Z,tt=X,et=function(){this.__data__=new tt,this.size=0},rt=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},nt=function(t){return this.__data__.get(t)},ot=function(t){return this.__data__.has(t)},it=function(t){if(!v(t))return!1;var e=T(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},at=_.a["__core-js_shared__"],ct=(Z=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"",ut=function(t){return!!ct&&ct in t},st=Function.prototype.toString,ft=function(t){if(null!=t){try{return st.call(t)}catch(t){}try{return t+""}catch(t){}}return""},lt=/^\[object .+?Constructor\]$/,ht=Function.prototype,dt=Object.prototype,pt=ht.toString,yt=dt.hasOwnProperty,vt=RegExp("^"+pt.call(yt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=function(t){return!(!v(t)||ut(t))&&(it(t)?vt:lt).test(ft(t))},bt=function(t,e){return null==t?void 0:t[e]},gt=function(t,e){var r=bt(t,e);return _t(r)?r:void 0},mt=gt(_.a,"Map"),jt=gt(Object,"create"),wt=function(){this.__data__=jt?jt(null):{},this.size=0},xt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ot=Object.prototype.hasOwnProperty,Et=function(t){var e=this.__data__;if(jt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Ot.call(e,t)?e[t]:void 0},Pt=Object.prototype.hasOwnProperty,kt=function(t){var e=this.__data__;return jt?void 0!==e[t]:Pt.call(e,t)},Ct=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=jt&&void 0===e?"__lodash_hash_undefined__":e,this};function At(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}At.prototype.clear=wt,At.prototype.delete=xt,At.prototype.get=Et,At.prototype.has=kt,At.prototype.set=Ct;var St=At,Rt=function(){this.size=0,this.__data__={hash:new St,map:new(mt||tt),string:new St}},Tt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},Wt=function(t,e){var r=t.__data__;return Tt(e)?r["string"==typeof e?"string":"hash"]:r.map},Dt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e},It=function(t){return Wt(this,t).get(t)},zt=function(t){return Wt(this,t).has(t)},Ft=function(t,e){var r=Wt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Mt.prototype.clear=Rt,Mt.prototype.delete=Dt,Mt.prototype.get=It,Mt.prototype.has=zt,Mt.prototype.set=Ft;var Ut=Mt,Nt=function(t,e){var r=this.__data__;if(r instanceof tt){var n=r.__data__;if(!mt||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Ut(n)}return r.set(t,e),this.size=r.size,this};function Lt(t){var e=this.__data__=new tt(t);this.size=e.size}Lt.prototype.clear=et,Lt.prototype.delete=rt,Lt.prototype.get=nt,Lt.prototype.has=ot,Lt.prototype.set=Nt;var Bt=Lt,Ht=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t},Qt=function(){try{var t=gt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),qt=function(t,e,r){"__proto__"==e&&Qt?Qt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},Vt=Object.prototype.hasOwnProperty,$t=function(t,e,r){var n=t[e];Vt.call(t,e)&&q(n,r)&&(void 0!==r||e in t)||qt(t,e,r)},Kt=function(t,e,r,n){var o=!r;r||(r={});for(var i=-1,a=e.length;++i<a;){var c=e[i],u=n?n(r[c],t[c],c,r,t):void 0;void 0===u&&(u=t[c]),o?qt(r,c,u):$t(r,c,u)}return r},Gt=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Jt=function(t){return W(t)&&"[object Arguments]"==T(t)},Yt=Object.prototype,Xt=Yt.hasOwnProperty,Zt=Yt.propertyIsEnumerable,te=Jt(function(){return arguments}())?Jt:function(t){return W(t)&&Xt.call(t,"callee")&&!Zt.call(t,"callee")},ee=Array.isArray,re=r(5),ne=/^(?:0|[1-9]\d*)$/,oe=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&ne.test(t))&&t>-1&&t%1==0&&t<e},ie=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},ae={};ae["[object Float32Array]"]=ae["[object Float64Array]"]=ae["[object Int8Array]"]=ae["[object Int16Array]"]=ae["[object Int32Array]"]=ae["[object Uint8Array]"]=ae["[object Uint8ClampedArray]"]=ae["[object Uint16Array]"]=ae["[object Uint32Array]"]=!0,ae["[object Arguments]"]=ae["[object Array]"]=ae["[object ArrayBuffer]"]=ae["[object Boolean]"]=ae["[object DataView]"]=ae["[object Date]"]=ae["[object Error]"]=ae["[object Function]"]=ae["[object Map]"]=ae["[object Number]"]=ae["[object Object]"]=ae["[object RegExp]"]=ae["[object Set]"]=ae["[object String]"]=ae["[object WeakMap]"]=!1;var ce=function(t){return W(t)&&ie(t.length)&&!!ae[T(t)]},ue=function(t){return function(e){return t(e)}},se=r(2),fe=se.a&&se.a.isTypedArray,le=fe?ue(fe):ce,he=Object.prototype.hasOwnProperty,de=function(t,e){var r=ee(t),n=!r&&te(t),o=!r&&!n&&Object(re.a)(t),i=!r&&!n&&!o&&le(t),a=r||n||o||i,c=a?Gt(t.length,String):[],u=c.length;for(var s in t)!e&&!he.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||oe(s,u))||c.push(s);return c},pe=Object.prototype,ye=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||pe)},ve=function(t,e){return function(r){return t(e(r))}},_e=ve(Object.keys,Object),be=Object.prototype.hasOwnProperty,ge=function(t){if(!ye(t))return _e(t);var e=[];for(var r in Object(t))be.call(t,r)&&"constructor"!=r&&e.push(r);return e},me=function(t){return null!=t&&ie(t.length)&&!it(t)},je=function(t){return me(t)?de(t):ge(t)},we=function(t,e){return t&&Kt(e,je(e),t)},xe=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e},Oe=Object.prototype.hasOwnProperty,Ee=function(t){if(!v(t))return xe(t);var e=ye(t),r=[];for(var n in t)("constructor"!=n||!e&&Oe.call(t,n))&&r.push(n);return r},Pe=function(t){return me(t)?de(t,!0):Ee(t)},ke=function(t,e){return t&&Kt(e,Pe(e),t)},Ce=r(8),Ae=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e},Se=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i},Re=function(){return[]},Te=Object.prototype.propertyIsEnumerable,We=Object.getOwnPropertySymbols,De=We?function(t){return null==t?[]:(t=Object(t),Se(We(t),(function(e){return Te.call(t,e)})))}:Re,Ie=function(t,e){return Kt(t,De(t),e)},ze=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},Fe=ve(Object.getPrototypeOf,Object),Me=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)ze(e,De(t)),t=Fe(t);return e}:Re,Ue=function(t,e){return Kt(t,Me(t),e)},Ne=function(t,e,r){var n=e(t);return ee(t)?n:ze(n,r(t))},Le=function(t){return Ne(t,je,De)},Be=function(t){return Ne(t,Pe,Me)},He=gt(_.a,"DataView"),Qe=gt(_.a,"Promise"),qe=gt(_.a,"Set"),Ve=gt(_.a,"WeakMap"),$e=ft(He),Ke=ft(mt),Ge=ft(Qe),Je=ft(qe),Ye=ft(Ve),Xe=T;(He&&"[object DataView]"!=Xe(new He(new ArrayBuffer(1)))||mt&&"[object Map]"!=Xe(new mt)||Qe&&"[object Promise]"!=Xe(Qe.resolve())||qe&&"[object Set]"!=Xe(new qe)||Ve&&"[object WeakMap]"!=Xe(new Ve))&&(Xe=function(t){var e=T(t),r="[object Object]"==e?t.constructor:void 0,n=r?ft(r):"";if(n)switch(n){case $e:return"[object DataView]";case Ke:return"[object Map]";case Ge:return"[object Promise]";case Je:return"[object Set]";case Ye:return"[object WeakMap]"}return e});var Ze=Xe,tr=Object.prototype.hasOwnProperty,er=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&tr.call(t,"index")&&(r.index=t.index,r.input=t.input),r},rr=_.a.Uint8Array,nr=function(t){var e=new t.constructor(t.byteLength);return new rr(e).set(new rr(t)),e},or=function(t,e){var r=e?nr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)},ir=/\w*$/,ar=function(t){var e=new t.constructor(t.source,ir.exec(t));return e.lastIndex=t.lastIndex,e},cr=x?x.prototype:void 0,ur=cr?cr.valueOf:void 0,sr=function(t){return ur?Object(ur.call(t)):{}},fr=function(t,e){var r=e?nr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)},lr=function(t,e,r){var n=t.constructor;switch(e){case"[object ArrayBuffer]":return nr(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return or(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return fr(t,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return ar(t);case"[object Set]":return new n;case"[object Symbol]":return sr(t)}},hr=Object.create,dr=function(){function t(){}return function(e){if(!v(e))return{};if(hr)return hr(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),pr=function(t){return"function"!=typeof t.constructor||ye(t)?{}:dr(Fe(t))},yr=function(t){return W(t)&&"[object Map]"==Ze(t)},vr=se.a&&se.a.isMap,_r=vr?ue(vr):yr,br=function(t){return W(t)&&"[object Set]"==Ze(t)},gr=se.a&&se.a.isSet,mr=gr?ue(gr):br,jr={};jr["[object Arguments]"]=jr["[object Array]"]=jr["[object ArrayBuffer]"]=jr["[object DataView]"]=jr["[object Boolean]"]=jr["[object Date]"]=jr["[object Float32Array]"]=jr["[object Float64Array]"]=jr["[object Int8Array]"]=jr["[object Int16Array]"]=jr["[object Int32Array]"]=jr["[object Map]"]=jr["[object Number]"]=jr["[object Object]"]=jr["[object RegExp]"]=jr["[object Set]"]=jr["[object String]"]=jr["[object Symbol]"]=jr["[object Uint8Array]"]=jr["[object Uint8ClampedArray]"]=jr["[object Uint16Array]"]=jr["[object Uint32Array]"]=!0,jr["[object Error]"]=jr["[object Function]"]=jr["[object WeakMap]"]=!1;var wr=function t(e,r,n,o,i,a){var c,u=1&r,s=2&r,f=4&r;if(n&&(c=i?n(e,o,i,a):n(e)),void 0!==c)return c;if(!v(e))return e;var l=ee(e);if(l){if(c=er(e),!u)return Ae(e,c)}else{var h=Ze(e),d="[object Function]"==h||"[object GeneratorFunction]"==h;if(Object(re.a)(e))return Object(Ce.a)(e,u);if("[object Object]"==h||"[object Arguments]"==h||d&&!i){if(c=s||d?{}:pr(e),!u)return s?Ue(e,ke(c,e)):Ie(e,we(c,e))}else{if(!jr[h])return i?e:{};c=lr(e,h,u)}}a||(a=new Bt);var p=a.get(e);if(p)return p;a.set(e,c),mr(e)?e.forEach((function(o){c.add(t(o,r,n,o,e,a))})):_r(e)&&e.forEach((function(o,i){c.set(i,t(o,r,n,i,e,a))}));var y=l?void 0:(f?s?Be:Le:s?Pe:je)(e);return Ht(y||e,(function(o,i){y&&(o=e[i=o]),$t(c,i,t(o,r,n,i,e,a))})),c},xr=function(t,e){return wr(t,5,e="function"==typeof e?e:void 0)},Or=Function.prototype,Er=Object.prototype,Pr=Or.toString,kr=Er.hasOwnProperty,Cr=Pr.call(Object),Ar=function(t){if(!W(t)||"[object Object]"!=T(t))return!1;var e=Fe(t);if(null===e)return!0;var r=kr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Pr.call(r)==Cr},Sr=function(t){return W(t)&&1===t.nodeType&&!Ar(t)};function Rr(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,r=[t],n=new Set;r.length>0;){var o=r.shift();if(!(n.has(o)||Tr(o)||e.has(o)))if(n.add(o),o[Symbol.iterator])try{var i,a=h(o);try{for(a.s();!(i=a.n()).done;){var c=i.value;r.push(c)}}catch(s){a.e(s)}finally{a.f()}}catch(t){}else for(var u in o)"defaultValue"!==u&&r.push(o[u])}return n}function Tr(t){var e=Object.prototype.toString.call(t),r=typeof t;return"number"===r||"boolean"===r||"string"===r||"symbol"===r||"function"===r||"[object Date]"===e||"[object RegExp]"===e||"[object Module]"===e||null==t||t instanceof EventTarget||t instanceof Event}function Wr(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(t===e&&"object"==typeof(r=t)&&null!==r)return!0;var o,i=Rr(t,n),a=Rr(e,n),c=h(i);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(a.has(u))return!0}}catch(s){c.e(s)}finally{c.f()}return!1}var Dr=function(){function t(e){var r=this;if(f(this,t),this.crashes=[],this.state="initializing",this._crashNumberLimit="number"==typeof e.crashNumberLimit?e.crashNumberLimit:3,this._now=Date.now,this._minimumNonErrorTimePeriod="number"==typeof e.minimumNonErrorTimePeriod?e.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=function(t){var e=t.error||t.reason;e instanceof Error&&r._handleError(e,t)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}return l(t,[{key:"setCreator",value:function(t){this._creator=t}},{key:"setDestructor",value:function(t){this._destructor=t}},{key:"destroy",value:function(){this._stopErrorHandling(),this._listeners={}}},{key:"on",value:function(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}},{key:"off",value:function(t,e){this._listeners[t]=this._listeners[t].filter((function(t){return t!==e}))}},{key:"_fire",value:function(t){for(var e=this._listeners[t]||[],r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i,a=h(e);try{for(a.s();!(i=a.n()).done;)i.value.apply(this,[null].concat(n))}catch(c){a.e(c)}finally{a.f()}}},{key:"_startErrorHandling",value:function(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}},{key:"_stopErrorHandling",value:function(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}},{key:"_handleError",value:function(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e.filename,lineno:e.lineno,colno:e.colno,date:this._now()});var r=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:r}),r?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}},{key:"_shouldReactToError",value:function(t){return t.is&&t.is("CKEditorError")&&void 0!==t.context&&null!==t.context&&"ready"===this.state&&this._isErrorComingFromThisItem(t)}},{key:"_shouldRestart",value:function(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}]),t}(),Ir=function(t){u(r,t);var e=s(r);function r(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(this,r),(n=e.call(this,o))._editor=null,n._throttledSave=H(n._save.bind(i(n)),"number"==typeof o.saveInterval?o.saveInterval:5e3),n._creator=function(e,r){return t.create(e,r)},n._destructor=function(t){return t.destroy()},n}return l(r,[{key:"editor",get:function(){return this._editor}},{key:"_item",get:function(){return this._editor}},{key:"_restart",value:function(){var t=this;return Promise.resolve().then((function(){return t.state="initializing",t._fire("stateChange"),t._destroy()})).catch((function(t){console.error("An error happened during the editor destroying.",t)})).then((function(){if("string"==typeof t._elementOrData)return t.create(t._data,t._config,t._config.context);var e=Object.assign({},t._config,{initialData:t._data});return t.create(t._elementOrData,e,e.context)})).then((function(){t._fire("restart")}))}},{key:"create",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._elementOrData,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._config,o=arguments.length>2?arguments[2]:void 0;return Promise.resolve().then((function(){return a(c(r.prototype),"_startErrorHandling",t).call(t),t._elementOrData=e,t._config=t._cloneEditorConfiguration(n)||{},t._config.context=o,t._creator(e,t._config)})).then((function(e){t._editor=e,e.model.document.on("change:data",t._throttledSave),t._lastDocumentVersion=e.model.document.version,t._data=t._getData(),t.state="ready",t._fire("stateChange")}))}},{key:"destroy",value:function(){var t=this;return Promise.resolve().then((function(){return t.state="destroyed",t._fire("stateChange"),a(c(r.prototype),"destroy",t).call(t),t._destroy()}))}},{key:"_destroy",value:function(){var t=this;return Promise.resolve().then((function(){t._stopErrorHandling(),t._throttledSave.flush();var e=t._editor;return t._editor=null,t._destructor(e)}))}},{key:"_save",value:function(){var t=this._editor.model.document.version;if(t!==this._lastDocumentVersion)try{this._data=this._getData(),this._lastDocumentVersion=t}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}},{key:"_setExcludedProperties",value:function(t){this._excludedProps=t}},{key:"_getData",value:function(){var t,e={},r=h(this._editor.model.document.getRootNames());try{for(r.s();!(t=r.n()).done;){var n=t.value;e[n]=this._editor.data.get({rootName:n})}}catch(o){r.e(o)}finally{r.f()}return e}},{key:"_isErrorComingFromThisItem",value:function(t){return Wr(this._editor,t.context,this._excludedProps)}},{key:"_cloneEditorConfiguration",value:function(t){return xr(t,(function(t,e){return Sr(t)||"context"===e?t:void 0}))}}]),r}(Dr),zr=new Array(256).fill().map((function(t,e){return("0"+e.toString(16)).slice(-2)})),Fr=function(t){u(r,t);var e=s(r);function r(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(this,r),(n=e.call(this,o))._watchdogs=new Map,n._watchdogConfig=o,n._context=null,n._contextProps=new Set,n._actionQueue=new Mr,n._creator=function(e){return t.create(e)},n._destructor=function(t){return t.destroy()},n._actionQueue.onEmpty((function(){"initializing"===n.state&&(n.state="ready",n._fire("stateChange"))})),n}return l(r,[{key:"context",get:function(){return this._context}},{key:"create",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._actionQueue.enqueue((function(){return t._contextConfig=e,t._create()}))}},{key:"getItem",value:function(t){return this._getWatchdog(t)._item}},{key:"getItemState",value:function(t){return this._getWatchdog(t).state}},{key:"add",value:function(t){var e=this,r=Array.isArray(t)?t:[t];return this._actionQueue.enqueue((function(){if("destroyed"===e.state)throw new Error("Cannot add items to destroyed watchdog.");if(!e._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");return Promise.all(r.map((function(t){var r;if(e._watchdogs.has(t.id))throw new Error("Item with the given id is already added: '".concat(t.id,"'."));if("editor"===t.type)return(r=new Ir(e._watchdogConfig)).setCreator(t.creator),r._setExcludedProperties(e._contextProps),t.destructor&&r.setDestructor(t.destructor),e._watchdogs.set(t.id,r),r.on("error",(function(n,o){var i=o.error,a=o.causesRestart;e._fire("itemError",{itemId:t.id,error:i}),a&&e._actionQueue.enqueue((function(){return new Promise((function(n){r.on("restart",function e(){r.off("restart",e),this._fire("itemRestart",{itemId:t.id}),n()}.bind(e))}))}))})),r.create(t.sourceElementOrData,t.config,e._context);throw new Error("Not supported item type: '".concat(t.type,"'."))})))}))}},{key:"remove",value:function(t){var e=this,r=Array.isArray(t)?t:[t];return this._actionQueue.enqueue((function(){return Promise.all(r.map((function(t){var r=e._getWatchdog(t);return e._watchdogs.delete(t),r.destroy()})))}))}},{key:"destroy",value:function(){var t=this;return this._actionQueue.enqueue((function(){return t.state="destroyed",t._fire("stateChange"),a(c(r.prototype),"destroy",t).call(t),t._destroy()}))}},{key:"_restart",value:function(){var t=this;return this._actionQueue.enqueue((function(){return t.state="initializing",t._fire("stateChange"),t._destroy().catch((function(t){console.error("An error happened during destroying the context or items.",t)})).then((function(){return t._create()})).then((function(){return t._fire("restart")}))}))}},{key:"_create",value:function(){var t=this;return Promise.resolve().then((function(){return t._startErrorHandling(),t._creator(t._contextConfig)})).then((function(e){return t._context=e,t._contextProps=Rr(t._context),Promise.all(Array.from(t._watchdogs.values()).map((function(e){return e._setExcludedProperties(t._contextProps),e.create(void 0,void 0,t._context)})))}))}},{key:"_destroy",value:function(){var t=this;return Promise.resolve().then((function(){t._stopErrorHandling();var e=t._context;return t._context=null,t._contextProps=new Set,Promise.all(Array.from(t._watchdogs.values()).map((function(t){return t.destroy()}))).then((function(){return t._destructor(e)}))}))}},{key:"_getWatchdog",value:function(t){var e=this._watchdogs.get(t);if(!e)throw new Error("Item with the given id was not registered: ".concat(t,"."));return e}},{key:"_isErrorComingFromThisItem",value:function(t){var e,r=h(this._watchdogs.values());try{for(r.s();!(e=r.n()).done;)if(e.value._isErrorComingFromThisItem(t))return!1}catch(n){r.e(n)}finally{r.f()}return Wr(this._context,t.context)}}]),r}(Dr),Mr=function(){function t(){f(this,t),this._promiseQueue=Promise.resolve(),this._onEmptyCallbacks=[]}return l(t,[{key:"onEmpty",value:function(t){this._onEmptyCallbacks.push(t)}},{key:"enqueue",value:function(t){var e,r=this,n=this._promiseQueue.then(t).then((function(){r._promiseQueue===e&&r._onEmptyCallbacks.forEach((function(t){return t()}))}));return e=this._promiseQueue=n.catch((function(){})),n}}]),t}(),Ur=d.a.createContext("contextWatchdog"),Nr=function(t){u(r,t);var e=s(r);function r(t,n){var o;return f(this,r),(o=e.call(this,t,n)).contextWatchdog=null,o.props.isLayoutReady&&o._initializeContextWatchdog(o.props.config),o}return l(r,[{key:"shouldComponentUpdate",value:function(t){return t.id!==this.props.id&&(this.contextWatchdog&&this.contextWatchdog.destroy(),this._initializeContextWatchdog(t.config)),t.isLayoutReady&&!this.contextWatchdog?(this._initializeContextWatchdog(t.config),!0):this.props.children!==t.children}},{key:"render",value:function(){return d.a.createElement(Ur.Provider,{value:this.contextWatchdog},this.props.children)}},{key:"componentWillUnmount",value:function(){this._destroyContext()}},{key:"_initializeContextWatchdog",value:function(t){var e=this;this.contextWatchdog=new Fr(this.props.context),this.contextWatchdog.create(t).catch((function(t){e.props.onError(t,{phase:"initialization",willContextRestart:!1})})),this.contextWatchdog.on("error",(function(t,r){e.props.onError(r.error,{phase:"runtime",willContextRestart:r.causesRestart})})),this.contextWatchdog.on("stateChange",(function(){"ready"===e.contextWatchdog.state&&e.props.onReady&&e.props.onReady(e.contextWatchdog.context)}))}},{key:"_destroyContext",value:function(){this.contextWatchdog&&(this.contextWatchdog.destroy(),this.contextWatchdog=null)}}]),r}(d.a.Component);Nr.defaultProps={isLayoutReady:!0,onError:function(t,e){return console.error(t,e)}},Nr.propTypes={id:y.a.string,isLayoutReady:y.a.bool,context:y.a.func,config:y.a.object,onReady:y.a.func,onError:y.a.func};var Lr=function(t){u(r,t);var e=s(r);function r(t){var n;return f(this,r),(n=e.call(this,t)).domContainer=d.a.createRef(),n.watchdog=null,n}return l(r,[{key:"editor",get:function(){return this.watchdog?this.watchdog.editor:null}},{key:"shouldComponentUpdate",value:function(t){return!!this.editor&&(t.id!==this.props.id?(this._destroyEditor(),!0):(this._shouldUpdateEditor(t)&&this.editor.setData(t.data),"disabled"in t&&(this.editor.isReadOnly=t.disabled),!1))}},{key:"componentDidMount",value:function(){this._initializeEditor()}},{key:"componentDidUpdate",value:function(){this._initializeEditor()}},{key:"componentWillUnmount",value:function(){this._destroyEditor()}},{key:"render",value:function(){return d.a.createElement("div",{ref:this.domContainer})}},{key:"_initializeEditor",value:function(){var t=this;this.context instanceof Fr?this.watchdog=new Br(this.context):this.watchdog=new Ir(this.editor),this.watchdog.setCreator((function(e,r){return t._createEditor(e,r)})),this.watchdog.on("error",(function(e,r){var n=r.error,o=r.causesRestart;t.props.onError(n,{phase:"runtime",willEditorRestart:o})})),this.watchdog.create(this.domContainer.current,this._getConfig()).catch((function(e){return t.props.onError(e,{phase:"initialization",willEditorRestart:!1})}))}},{key:"_createEditor",value:function(t,e){var r=this;return this.props.editor.create(t,e).then((function(t){"disabled"in r.props&&(t.isReadOnly=r.props.disabled);var e=t.model.document,n=t.editing.view.document;return e.on("change:data",(function(e){r.props.onChange&&r.props.onChange(e,t)})),n.on("focus",(function(e){r.props.onFocus&&r.props.onFocus(e,t)})),n.on("blur",(function(e){r.props.onBlur&&r.props.onBlur(e,t)})),setTimeout((function(){r.props.onReady&&r.props.onReady(r.editor)})),t}))}},{key:"_destroyEditor",value:function(){this.watchdog&&(this.watchdog.destroy(),this.watchdog=null)}},{key:"_shouldUpdateEditor",value:function(t){return this.props.data!==t.data&&this.editor.getData()!==t.data}},{key:"_getConfig",value:function(){return this.props.data&&this.props.config.initialData&&console.warn("Editor data should be provided either using `config.initialData` or `data` properties. The config property is over the data value and the first one will be used when specified both."),o(o({},this.props.config),{},{initialData:this.props.config.initialData||this.props.data||""})}}]),r}(d.a.Component),Br=function(){function e(t){f(this,e),this._contextWatchdog=t,this._id=function(){var t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0;return"e"+zr[t>>0&255]+zr[t>>8&255]+zr[t>>16&255]+zr[t>>24&255]+zr[e>>0&255]+zr[e>>8&255]+zr[e>>16&255]+zr[e>>24&255]+zr[r>>0&255]+zr[r>>8&255]+zr[r>>16&255]+zr[r>>24&255]+zr[n>>0&255]+zr[n>>8&255]+zr[n>>16&255]+zr[n>>24&255]}()}return l(e,[{key:"setCreator",value:function(t){this._creator=t}},{key:"create",value:function(t,e){return this._contextWatchdog.add({sourceElementOrData:t,config:e,creator:this._creator,id:this._id,type:"editor"})}},{key:"on",value:function(t,e){var r=this;this._contextWatchdog.on("itemError",(function(t,n){var o=n.itemId,i=n.causesRestart,a=n.error;o===r._id&&e(null,{error:a,causesRestart:i})}))}},{key:"destroy",value:function(){this._contextWatchdog.remove(this._id)}},{key:"editor",get:function(){try{return this._contextWatchdog.getItem(this._id)}catch(t){return null}}}]),e}();Lr.contextType=Ur,Lr.propTypes={editor:y.a.func.isRequired,data:y.a.string,config:y.a.object,onChange:y.a.func,onReady:y.a.func,onFocus:y.a.func,onBlur:y.a.func,onError:y.a.func,disabled:y.a.bool,onInit:function(t,e){if(t[e])return new Error('The "onInit" property is not supported anymore by the CKEditor component. Use the "onReady" property instead.')}},Lr.defaultProps={config:{},onError:function(t,e){return console.error(t,e)}}}]))}}]);
|
|
2
|
+
//# sourceMappingURL=8.18b5d6e9.chunk.js.map
|