mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2024-11-25 01:03:59 +01:00
36 lines
535 KiB
JavaScript
36 lines
535 KiB
JavaScript
|
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,i){for(var a,s,l=0,c=[];l<r.length;l++)s=r[l],o[s]&&c.push.apply(c,o[s]),o[s]=0;for(a in i)e[a]=i[a];for(n&&n(r,i);c.length;)c.shift().call(null,t)};var r={},o={0:0};return t.e=function(e,n){if(0===o[e])return n.call(null,t);if(void 0!==o[e])o[e].push(n);else{o[e]=[n];var r=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.src=t.p+""+e+".bundle.js",r.appendChild(i)}},t.m=e,t.c=r,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){l.default.render(a.default.createElement(u.default,{appState:e}),document.getElementById("main"))}var i=n(1),a=r(i),s=n(22),l=r(s);n(372),n(373);var c=n(175),u=r(c),d=n(109),p=r(d),f=new p.default({renderFunction:o});f.render()},function(e,t,n){"use strict";e.exports=n(41)},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,l){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,a,s,l],d=0;c=new Error(t.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(189),i=r(o),a=n(187),s=r(a),l=n(112),c=r(l);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(112),i=r(o);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";var r=n(18),o=r;e.exports=o},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(186),i=r(o);t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,a,s=n(e),l=1;l<arguments.length;l++){r=Object(arguments[l]);for(var c in r)o.call(r,c)&&(s[c]=r[c]);if(Object.getOwnPropertySym
|
||
|
Copyright (c) 2016 Jed Watson.
|
||
|
Licensed under the MIT License (MIT), see
|
||
|
http://jedwatson.github.io/classnames
|
||
|
*/
|
||
|
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(r=[],o=function(){return n}.apply(t,r),!(void 0!==o&&(e.exports=o)))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[n.length-1];return"function"==typeof o?e.apply(void 0,n):function(t){return e.apply(void 0,n.concat([t]))}}}function i(e,t){return null==e.bsClass?(0,m.default)(!1):void 0,e.bsClass+(t?"-"+t:"")}function a(e){var t,n=(t={},t[i(e)]=!0,t);if(e.bsSize){var r=y.SIZE_MAP[e.bsSize]||e.bsSize;n[i(e,r)]=!0}return e.bsStyle&&(n[i(e,e.bsStyle)]=!0),n}function s(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function l(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function c(e){var t={};return(0,f.default)(e).forEach(function(e){var n=e[0],r=e[1];l(n)||(t[n]=r)}),[s(e),t]}function u(e,t){var n={};t.forEach(function(e){n[e]=!0});var r={};return(0,f.default)(e).forEach(function(e){var t=e[0],o=e[1];l(t)||n[t]||(r[t]=o)}),[s(e),r]}function d(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];x(n,e)}t.__esModule=!0,t._curry=t.bsSizes=t.bsStyles=t.bsClass=void 0;var p=n(111),f=r(p),h=n(8),b=r(h);t.prefix=i,t.getClassSet=a,t.splitBsProps=c,t.splitBsPropsAndOmit=u,t.addStyle=d;var g=n(86),m=r(g),v=n(1),y=n(88),x=(t.bsClass=o(function(e,t){var n=t.propTypes||(t.propTypes={}),r=t.defaultProps||(t.defaultProps={});return n.bsClass=v.PropTypes.string,r.bsClass=e,t}),t.bsStyles=o(function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var r=n.STYLES||[],o=n.propTypes||{};e.forEach(function(e){r.indexOf(e)===-1&&r.push(e)});var i=v.PropTypes.oneOf(r);if(n.STYLES=i._values=r,n.propTypes=(0,b.default)({},o,{bsStyle:i}),void 0!==t){var a=n.defaultProps||(n.defaultProps={});a.bsStyle=t}return n}));t.bsSizes=o(function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var r=n.SIZES||[],o=n.propTypes||{};e.forEach(function(e){r.indexOf(e)===-1&&r.push(e)});var i=[];r.forEach(function(e){var t=y.SIZE_MAP[e];t&&t!==e&&i.push(t),i.push(e)});var a=v.PropTypes.oneOf(i);return a._values=i,n.SIZES=r,n.propTypes=(0,b.default)({},o,{bsSize:a}),void 0!==t&&(n.defaultProps||(n.defaultProps={}),n.defaultProps.bsSize=t),n}),t._curry=o},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(188),i=r(o);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){e.exports={default:n(198),__esModule:!0}},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=null;e.exports={debugTool:r}},function(e,t,n){var r=n(26),o=n(15),i=n(70),a=n(36),s="prototype",l=function(e,t,n){var c,u,d,p=e&l.F,f=e&l.G,h=e&l.S,b=e&l.P,g=e&l.B,m=e&l.W,v=f?o:o[t]||(o[t]={}),y=v[s],x=f?r:h?r[t]:(r[t]||{})[s];f&&(n=t);for(c in n)u=!p&&x&&void 0!==x[c],u&&c in v||(d=u?x[c]:n[c],v[c]=f&&"function"!=typeof x[c]?n[c]:g&&u?i(d,r):m&&x[c]==d?fu
|
||
|
default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(i.default.findDOMNode(e))};var o=n(22),i=r(o),a=n(56),s=r(a);e.exports=t.default},function(e,t){"use strict";function n(e){function t(t,n,r,o,i,a){var s=o||"<<anonymous>>",l=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+l+"` was not specified "+("in `"+s+"`.")):null;for(var c=arguments.length,u=Array(c>6?c-6:0),d=6;d<c;d++)u[d-6]=arguments[d];return e.apply(void 0,[n,r,s,i,l].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}t.__esModule=!0,t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(16),s=r(a),l=n(44),c=(r(l),function(){function e(t){if((0,i.default)(this,e),this.constructor===e)throw new TypeError("Can not construct abstract class.");if(this.transform===e.prototype.transform)throw new TypeError("Please implement abstract method 'transform()'.");this.name=t}return(0,s.default)(e,[{key:"transform",value:function(e){throw new TypeError("Do not call abstract method foo from child.")}}]),e}());t.default=c},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(203);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=!0},function(e,t,n){var r=n(34),o=n(219),i=n(72),a=n(77)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n(113)("iframe"),r=i.length,o="<",a=">";for(t.style.display="none",n(209).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+a+"document.F=Object"+o+"/script"+a),e.close(),c=e.F;r--;)delete c[l][i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(27).f,o=n(30),i=n(21)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(78)("keys"),o=n(55);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(26),o="__core-js_shared__",i=r[o]||(r[o]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(45);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(26),o=n(15),i=n(73),a=n(82),s=n(27).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(21)},function(e,t){"use strict";e.exports=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}},function(e,t,n){"use strict";var r=n(129),o=n(252),i=n(247),a=n(248),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var l="",c=t;if("string"==typeof t){if(void 0===n)return e.style[r(t)]||i(e).getPropertyValue(o(t));(c={})[t]=n}for(var u in c)s.call(c,u)&&(c[u]||0===c[u]?l+=o(u)+":"+c[u]+";":a(e,o(u)));e.style.cssText+=";"+l}},function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var a=0;a
|
||
|
* Checks if an event is supported in the current execution environment.
|
||
|
*
|
||
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
|
* `reset`, `load`, `error`, and `select`.
|
||
|
*
|
||
|
* Borrows from Modernizr.
|
||
|
*
|
||
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
|
* @param {?boolean} capture Check if the capture phase is supported.
|
||
|
* @return {boolean} True if the event is supported.
|
||
|
* @internal
|
||
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
|
*/
|
||
|
function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(14);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){"use strict";var r=(n(9),n(18)),o=(n(6),r);e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=null;return n.forEach(function(e){if(null==o){var n=e.apply(void 0,t);null!=n&&(o=n)}}),o}for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,a.default)(e)}t.__esModule=!0,t.default=o;var i=n(67),a=r(i)},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var o=n(43),i=n(108),a=(n(170),n(49));n(2),n(6);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?o("85"):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=r},function(e,t,n){"use strict";function r(e,t){}var o=(n(6),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}});e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.View=void 0;var o=n(17),i=r(o),a=n(5),s=r(a),l=n(4),c=r(l),u=n(3),d=r(u),p=n(16),f=r(p),h=n(253),b=n(183),g=r(b),m=n(184),v=r(m),y=n(182),x=r(y),w=function(){function e(t){(0,d.default)(this,e),this.renderFunction=t.renderFunction,this.mainView=k.UPLOAD,this.fileBuffer,this.pdfPages=[],this.transformations=[new g.default,new v.default,new x.default],this.render=this.render.bind(this),this.storeFileBuffer=this.storeFileBuffer.bind(this),this.storePdfPages=this.storePdfPages.bind(this)}return(0,f.default)(e,[{key:"render",value:function(){this.renderFunction(this)}},{key:"storeFileBuffer",value:function(e){this.fileBuffer=e,this.mainView=k.LOADING,this.render()}},{key:"storePdfPages",value:function(e){this.pdfPages=e,this.fileBuffer=null,this.mainView=k.PDF_VIEW,this.render()}}]),e}();t.default=w;var k=t.View=function(e){function t(){return(0,d.default)(this,t),(0,s.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,c.default)(t,e),t}(h.Enum);k.initEnum(["UPLOAD","LOADING","PDF_VIEW"])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),a=function e(t){(0,i.default)(this,e),this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this.text=t.text};t.default=a},function(e,t,n){e.exports={default:n(197),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(192),i=r(o),a=n(191),s=r(a),l="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===l(i.default)?function(e){return"undefined"==typeof e?"undefined":l(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":l(e)}},f
|
||
|
* Programatically add the following
|
||
|
*/
|
||
|
for(o=97;o<123;o++)n[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)n[o-48]=o;for(o=1;o<13;o++)n["f"+o]=o+111;for(o=0;o<10;o++)n["numpad "+o]=o+96;var i=t.names=t.title={};for(o in n)i[n[o]]=o;for(var a in r)n[a]=r[a]},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){b&&f&&(b=!1,f.length?h=f.concat(h):g=-1,h.length&&s())}function s(){if(!b){var e=o(a);b=!0;for(var t=h.length;t;){for(f=h,h=[];++g<t;)f&&f[g].run();g=-1,t=h.length}f=null,b=!1,i(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var u,d,p=e.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(e){u=n}try{d="function"==typeof clearTimeout?clearTimeout:r}catch(e){d=r}}();var f,h=[],b=!1,g=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new l(e,t)),1!==h.length||b||o(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default={propTypes:{prefixCls:r.PropTypes.string,strokeWidth:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),strokeColor:r.PropTypes.string,trailWidth:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),trailColor:r.PropTypes.string,strokeLinecap:r.PropTypes.oneOf(["round","square"]),style:r.PropTypes.object,className:r.PropTypes.string},getDefaultProps:function(){return{prefixCls:"rc-progress",strokeWidth:1,strokeColor:"#2db7f5",trailWidth:1,trailColor:"#D9D9D9",strokeLinecap:"round",className:""}},componentDidUpdate:function(){var e=Date.now();this.path.style.transitionDuration="0.3s, 0.3s",this.prevTimeStamp&&e-this.prevTimeStamp<100&&(this.path.style.transitionDuration="0s, 0s"),this.prevTimeStamp=Date.now()}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(8),i=r(o),a=n(10),s=r(a),l=n(3),c=r(l),u=n(5),d=r(u),p=n(4),f=r(p),h=n(12),b=r(h),g=n(1),m=r(g),v=n(106),y=r(v),x=n(60),w=r(x),k=n(13),_={vertical:m.default.PropTypes.bool,justified:m.default.PropTypes.bool,block:(0,y.default)(m.default.PropTypes.bool,function(e){var t=e.block,n=e.vertical;return t&&!n?new Error("`block` requires `vertical` to be set to have any effect"):null})},A={block:!1,justified:!1,vertical:!1},E=function(e){function t(){return(0,c.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.block,r=t.justified,o=t.vertical,a=t.className,l=(0,s.default)(t,["block","justified","vertical","className"]),c=(0,k.splitBsProps)(l),u=c[0],d=c[1],p=(0,i.default)({},(0,k.getClassSet)(u),(e={},e[(0,k.prefix)(u)]=!o,e[(0,k.prefix)(u,"vertical")]=o,e[(0,k.prefix)(u,"justified")]=r,e[(0,k.prefix)(w.default.defaultProps,"block")]=n,e));return m.default.createElement("div",(0,i.default)({},d,{className:(0,b.default)(a,p)}))},t}(m.default.Component);E.propTypes=_,E.defaultProps=A,t.default=(0,k.bsClass)("btn-group",E),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(10),i=r(o),a=n(8),s=r(a),l=n(3),c=r(l),u=n(5),d=r(u),p=n(
|
||
|
function t(e,n){i(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),o=void 0;return o=e.in?e.transitionAppear?_:E:e.unmountOnExit?k:_,r.state={status:o},r.nextCallback=null,r}return s(t,e),u(t,[{key:"componentDidMount",value:function(){this.props.transitionAppear&&this.props.in&&this.performEnter(this.props)}},{key:"componentWillReceiveProps",value:function(e){e.in&&this.props.unmountOnExit?this.state.status===k&&this.setState({status:_}):this._needsUpdate=!0}},{key:"componentDidUpdate",value:function(){var e=this.state.status;return this.props.unmountOnExit&&e===_?void(this.props.in?this.performEnter(this.props):this.setState({status:k})):void(this._needsUpdate&&(this._needsUpdate=!1,this.props.in?e===C?this.performEnter(this.props):e===_&&this.performEnter(this.props):e!==A&&e!==E||this.performExit(this.props)))}},{key:"componentWillUnmount",value:function(){this.cancelNextCallback()}},{key:"performEnter",value:function(e){var t=this;this.cancelNextCallback();var n=h.default.findDOMNode(this);e.onEnter(n),this.safeSetState({status:A},function(){t.props.onEntering(n),t.onTransitionEnd(n,function(){t.safeSetState({status:E},function(){t.props.onEntered(n)})})})}},{key:"performExit",value:function(e){var t=this;this.cancelNextCallback();var n=h.default.findDOMNode(this);e.onExit(n),this.safeSetState({status:C},function(){t.props.onExiting(n),t.onTransitionEnd(n,function(){t.safeSetState({status:_},function(){t.props.onExited(n)})})})}},{key:"cancelNextCallback",value:function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)}},{key:"safeSetState",value:function(e,t){this.setState(e,this.setNextCallback(t))}},{key:"setNextCallback",value:function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback}},{key:"onTransitionEnd",value:function(e,t){this.setNextCallback(t),e?((0,v.default)(e,w,this.nextCallback),setTimeout(this.nextCallback,this.props.timeout)):setTimeout(this.nextCallback,0)}},{key:"render",value:function(){var e=this.state.status;if(e===k)return null;var n=this.props,r=n.children,i=n.className,a=o(n,["children","className"]);Object.keys(t.propTypes).forEach(function(e){return delete a[e]});var s=void 0;e===_?s=this.props.exitedClassName:e===A?s=this.props.enteringClassName:e===E?s=this.props.enteredClassName:e===C&&(s=this.props.exitingClassName);var l=p.default.Children.only(r);return p.default.cloneElement(l,c({},a,{className:(0,x.default)(l.props.className,i,s)}))}}]),t}(p.default.Component);T.propTypes={in:p.default.PropTypes.bool,unmountOnExit:p.default.PropTypes.bool,transitionAppear:p.default.PropTypes.bool,timeout:p.default.PropTypes.number,exitedClassName:p.default.PropTypes.string,exitingClassName:p.default.PropTypes.string,enteredClassName:p.default.PropTypes.string,enteringClassName:p.default.PropTypes.string,onEnter:p.default.PropTypes.func,onEntering:p.default.PropTypes.func,onEntered:p.default.PropTypes.func,onExit:p.default.PropTypes.func,onExiting:p.default.PropTypes.func,onExited:p.default.PropTypes.func},T.displayName="Transition",T.defaultProps={in:!1,unmountOnExit:!1,transitionAppear:!1,timeout:5e3,onEnter:l,onEntering:l,onEntered:l,onExit:l,onExiting:l,onExited:l},t.default=T},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return e="function"==typeof e?e():e,a.default.findDOMNode(e)||t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(22),a=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,o){var a=e[t],l="undefined"==typeof a?"undefined":i(a);return s.default.isValidElement(a)?new Error("Invalid "+r+" `"+o+"` of type ReactElement "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===l&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+r+" `"+o+"`
|
||
|
o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(20);r(r.S+r.F,"Object",{assign:n(218)})},function(e,t,n){var r=n(20);r(r.S,"Object",{create:n(74)})},function(e,t,n){var r=n(20);r(r.S+r.F*!n(29),"Object",{defineProperty:n(27).f})},function(e,t,n){var r=n(54),o=n(119);n(221)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(20);r(r.S,"Object",{setPrototypeOf:n(222).set})},function(e,t){},function(e,t,n){"use strict";var r=n(26),o=n(30),i=n(29),a=n(20),s=n(122),l=n(217).KEY,c=n(35),u=n(78),d=n(76),p=n(55),f=n(21),h=n(82),b=n(81),g=n(216),m=n(208),v=n(211),y=n(34),x=n(28),w=n(80),k=n(48),_=n(74),A=n(220),E=n(117),C=n(27),T=n(37),P=E.f,S=C.f,O=A.f,M=r.Symbol,N=r.JSON,D=N&&N.stringify,R="prototype",I=f("_hidden"),L=f("toPrimitive"),j={}.propertyIsEnumerable,F=u("symbol-registry"),U=u("symbols"),B=u("op-symbols"),W=Object[R],z="function"==typeof M,V=r.QObject,H=!V||!V[R]||!V[R].findChild,q=i&&c(function(){return 7!=_(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(W,t);r&&delete W[t],S(e,t,n),r&&e!==W&&S(W,t,r)}:S,G=function(e){var t=U[e]=_(M[R]);return t._k=e,t},X=z&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},Y=function(e,t,n){return e===W&&Y(B,t,n),y(e),t=w(t,!0),y(n),o(U,t)?(n.enumerable?(o(e,I)&&e[I][t]&&(e[I][t]=!1),n=_(n,{enumerable:k(0,!1)})):(o(e,I)||S(e,I,k(1,{})),e[I][t]=!0),q(e,t,n)):S(e,t,n)},K=function(e,t){y(e);for(var n,r=m(t=x(t)),o=0,i=r.length;i>o;)Y(e,n=r[o++],t[n]);return e},Q=function(e,t){return void 0===t?_(e):K(_(e),t)},J=function(e){var t=j.call(this,e=w(e,!0));return!(this===W&&o(U,e)&&!o(B,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,I)&&this[I][e])||t)},$=function(e,t){if(e=x(e),t=w(t,!0),e!==W||!o(U,t)||o(B,t)){var n=P(e,t);return!n||!o(U,t)||o(e,I)&&e[I][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=O(x(e)),r=[],i=0;n.length>i;)o(U,t=n[i++])||t==I||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===W,r=O(n?B:x(e)),i=[],a=0;r.length>a;)!o(U,t=r[a++])||n&&!o(W,t)||i.push(U[t]);return i};z||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(B,n),o(this,I)&&o(this[I],e)&&(this[I][e]=!1),q(this,e,k(1,n))};return i&&H&&q(W,e,{configurable:!0,set:t}),G(e)},s(M[R],"toString",function(){return this._k}),E.f=$,C.f=Y,n(118).f=A.f=Z,n(47).f=J,n(75).f=ee,i&&!n(73)&&s(W,"propertyIsEnumerable",J,!0),h.f=function(e){return G(f(e))}),a(a.G+a.W+a.F*!z,{Symbol:M});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=T(f.store),ne=0;te.length>ne;)b(te[ne++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=M(e)},keyFor:function(e){if(X(e))return g(F,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!z,"Object",{create:Q,defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:$,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),N&&a(a.S+a.F*(!z||c(function(){var e=M();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!X(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&v(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,D.apply(N,r)}}}),M[R][L]||n(36)(M[R],L,M[R].valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){var r=n(20),o=n(121)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){var r=n(20),o=n(121)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){n(81)("asyncIterator")},function(e,t,n){n(81)("observable")},function(e,t,n){n(227);for(var r=n(26),o=n(36),i=n(46),a=n(21)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList
|
||
|
},function(e,t,n){t=e.exports=n(125)(),t.push([e.id,"a{cursor:pointer}.disabled{pointer-events:none;cursor:default;opacity:.6}.btn-round{border-radius:24px}",""])},function(e,t,n){"use strict";function r(){var e=void 0===arguments[0]?document:arguments[0];try{return e.activeElement}catch(e){}}var o=n(58);t.__esModule=!0,t.default=r;var i=n(56);o.interopRequireDefault(i);e.exports=t.default},function(e,t,n){"use strict";var r=n(59),o=function(){};r&&(o=function(){return document.addEventListener?function(e,t,n,r){return e.removeEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0}()),e.exports=o},function(e,t,n){"use strict";function r(e){return e.nodeName&&e.nodeName.toLowerCase()}function o(e){for(var t=(0,s.default)(e),n=e&&e.offsetParent;n&&"html"!==r(e)&&"static"===(0,c.default)(n,"position");)n=n.offsetParent;return n||t.documentElement}var i=n(58);t.__esModule=!0,t.default=o;var a=n(56),s=i.interopRequireDefault(a),l=n(84),c=i.interopRequireDefault(l);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e.nodeName&&e.nodeName.toLowerCase()}function o(e,t){var n,o={top:0,left:0};return"fixed"===(0,b.default)(e,"position")?n=e.getBoundingClientRect():(t=t||(0,c.default)(e),n=(0,s.default)(e),"html"!==r(t)&&(o=(0,s.default)(t)),o.top+=parseInt((0,b.default)(t,"borderTopWidth"),10)-(0,d.default)(t)||0,o.left+=parseInt((0,b.default)(t,"borderLeftWidth"),10)-(0,f.default)(t)||0),i._extends({},n,{top:n.top-o.top-(parseInt((0,b.default)(e,"marginTop"),10)||0),left:n.left-o.left-(parseInt((0,b.default)(e,"marginLeft"),10)||0)})}var i=n(58);t.__esModule=!0,t.default=o;var a=n(127),s=i.interopRequireDefault(a),l=n(244),c=i.interopRequireDefault(l),u=n(128),d=i.interopRequireDefault(u),p=n(246),f=i.interopRequireDefault(p),h=n(84),b=i.interopRequireDefault(h);e.exports=t.default},function(e,t,n){"use strict";var r=n(83);e.exports=function(e,t){var n=r(e);return void 0===t?n?"pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft:e.scrollLeft:void(n?n.scrollTo(t,"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop):e.scrollLeft=t)}},function(e,t,n){"use strict";var r=n(58),o=n(129),i=r.interopRequireDefault(o),a=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;t=(0,i.default)(t),"float"==t&&(t="styleFloat");var r=e.currentStyle[t]||null;if(null==r&&n&&n[t]&&(r=n[t]),s.test(r)&&!a.test(t)){var o=n.left,l=e.runtimeStyle,c=l&&l.left;c&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":r,r=n.pixelLeft+"px",n.left=o,c&&(l.left=c)}return r}}}},function(e,t){"use strict";e.exports=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)}},function(e,t,n){"use strict";function r(){var e,t="",n={O:"otransitionend",Moz:"transitionend",Webkit:"webkitTransitionEnd",ms:"MSTransitionEnd"},r=document.createElement("div");for(var o in n)if(c.call(n,o)&&void 0!==r.style[o+"TransitionProperty"]){t="-"+o.toLowerCase()+"-",e=n[o];break}return e||void 0===r.style.transitionProperty||(e="transitionend"),{end:e,prefix:t}}var o,i,a,s,l=n(59),c=Object.prototype.hasOwnProperty,u="transform",d={};l&&(d=r(),u=d.prefix+u,a=d.prefix+"transition-property",i=d.prefix+"transition-duration",s=d.prefix+"transition-delay",o=d.prefix+"transition-timing-function"),e.exports={transform:u,end:d.end,property:a,timing:o,delay:s,duration:i}},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(251),o=/^ms-/;e.exports=function(e){return r(e).replace(o,"-ms-")}},function(e,t){"use strict";functio
|
||
|
this._path.pop()),c="relative path";continue}this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._fragment="#",this._username=s._username,this._password=s._password,c="fragment"}break;case"relative slash":if("/"!==x&&"\\"!==x){"file"!==this._scheme&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password),c="relative path";continue}"\\"===x&&l("\\ is an invalid code point."),c="file"===this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!==x){l("Expected '/', got: "+x),c="authority ignore slashes";continue}c="authority second slash";break;case"authority second slash":if(c="authority ignore slashes","/"!==x){l("Expected '/', got: "+x);continue}break;case"authority ignore slashes":if("/"!==x&&"\\"!==x){c="authority";continue}l("Expected authority, got: "+x);break;case"authority":if("@"===x){m&&(l("@ already seen."),g+="%40"),m=!0;for(var _=0;_<g.length;_++){var A=g[_];if("\t"!==A&&"\n"!==A&&"\r"!==A)if(":"!==A||null!==this._password){var E=o(A);null!==this._password?this._password+=E:this._username+=E}else this._password="";else l("Invalid whitespace in authority.")}g=""}else{if(f===x||"/"===x||"\\"===x||"?"===x||"#"===x){u-=g.length,g="",c="host";continue}g+=x}break;case"file host":if(f===x||"/"===x||"\\"===x||"?"===x||"#"===x){2!==g.length||!h.test(g[0])||":"!==g[1]&&"|"!==g[1]?0===g.length?c="relative path start":(this._host=r.call(this,g),g="",c="relative path start"):c="relative path";continue}"\t"===x||"\n"===x||"\r"===x?l("Invalid whitespace in file host."):g+=x;break;case"host":case"hostname":if(":"!==x||v){if(f===x||"/"===x||"\\"===x||"?"===x||"#"===x){if(this._host=r.call(this,g),g="",c="relative path start",a)break e;continue}"\t"!==x&&"\n"!==x&&"\r"!==x?("["===x?v=!0:"]"===x&&(v=!1),g+=x):l("Invalid code point in host/hostname: "+x)}else if(this._host=r.call(this,g),g="",c="port","hostname"===a)break e;break;case"port":if(/[0-9]/.test(x))g+=x;else{if(f===x||"/"===x||"\\"===x||"?"===x||"#"===x||a){if(""!==g){var C=parseInt(g,10);C!==d[this._scheme]&&(this._port=C+""),g=""}if(a)break e;c="relative path start";continue}"\t"===x||"\n"===x||"\r"===x?l("Invalid code point in port: "+x):n.call(this)}break;case"relative path start":if("\\"===x&&l("'\\' not allowed in path."),c="relative path","/"!==x&&"\\"!==x)continue;break;case"relative path":if(f!==x&&"/"!==x&&"\\"!==x&&(a||"?"!==x&&"#"!==x))"\t"!==x&&"\n"!==x&&"\r"!==x&&(g+=o(x));else{"\\"===x&&l("\\ not allowed in relative path.");var T;(T=p[g.toLowerCase()])&&(g=T),".."===g?(this._path.pop(),"/"!==x&&"\\"!==x&&this._path.push("")):"."===g&&"/"!==x&&"\\"!==x?this._path.push(""):"."!==g&&("file"===this._scheme&&0===this._path.length&&2===g.length&&h.test(g[0])&&"|"===g[1]&&(g=g[0]+":"),this._path.push(g)),g="","?"===x?(this._query="?",c="query"):"#"===x&&(this._fragment="#",c="fragment")}break;case"query":a||"#"!==x?f!==x&&"\t"!==x&&"\n"!==x&&"\r"!==x&&(this._query+=i(x)):(this._fragment="#",c="fragment");break;case"fragment":f!==x&&"\t"!==x&&"\n"!==x&&"\r"!==x&&(this._fragment+=x)}u++}}function s(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function l(e,t){void 0===t||t instanceof l||(t=new l(String(t))),this._url=e,s.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");a.call(this,n,null,t)}var c=!1;try{if("function"==typeof URL&&"object"==typeof URL.prototype&&"origin"in URL.prototype){var u=new URL("b","http://a");u.pathname="c%20d",c="http://a/c%20d"===u.href}}catch(e){}if(!c){var d=Object.create(null);d.ftp=21,d.file=0,d.gopher=70,d.http=80,d.https=443,d.ws=80,d.wss=443;var p=Object.create(null);p["%2e"]=".",p[".%2e"]="..",p["%2e."]="..",p["%2e%2e"]="..";var f,h=/[a-zA-Z]/,b=/[a-zA-Z0-9\+\-\.]/;l.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";return""===this._username&&null===this._password||(e=this._username+(null!==this._password?":"+
|
||
|
this.fill()},eoFillStroke:function(){this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()},closeStroke:function(){this.closePath(),this.stroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},paintSolidColorImageMask:function(){var e=this.current,t=document.createElementNS(b,"svg:rect");t.setAttributeNS(null,"x","0"),t.setAttributeNS(null,"y","0"),t.setAttributeNS(null,"width","1px"),t.setAttributeNS(null,"height","1px"),t.setAttributeNS(null,"fill",e.fillColor),this._ensureTransformGroup().appendChild(t)},paintJpegXObject:function(e,n,r){var o=this.objs.get(e),i=document.createElementNS(b,"svg:image");i.setAttributeNS(m,"xlink:href",o.src),i.setAttributeNS(null,"width",o.width+"px"),i.setAttributeNS(null,"height",o.height+"px"),i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y",t(-r)),i.setAttributeNS(null,"transform","scale("+t(1/n)+" "+t(-1/r)+")"),this._ensureTransformGroup().appendChild(i)},paintImageXObject:function(e){var t=this.objs.get(e);return t?void this.paintInlineImageXObject(t):void c("Dependent image isn't ready yet")},paintInlineImageXObject:function(e,n){var r=e.width,o=e.height,i=p(e,this.forceDataSchema),a=document.createElementNS(b,"svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",t(r)),a.setAttributeNS(null,"height",t(o)),this.current.element=a,this.clip("nonzero");var s=document.createElementNS(b,"svg:image");s.setAttributeNS(m,"xlink:href",i),s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y",t(-o)),s.setAttributeNS(null,"width",t(r)+"px"),s.setAttributeNS(null,"height",t(o)+"px"),s.setAttributeNS(null,"transform","scale("+t(1/r)+" "+t(-1/o)+")"),n?n.appendChild(s):this._ensureTransformGroup().appendChild(s)},paintImageMaskXObject:function(e){var n=this.current,r=e.width,o=e.height,i=n.fillColor;n.maskId="mask"+w++;var a=document.createElementNS(b,"svg:mask");a.setAttributeNS(null,"id",n.maskId);var s=document.createElementNS(b,"svg:rect");s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y","0"),s.setAttributeNS(null,"width",t(r)),s.setAttributeNS(null,"height",t(o)),s.setAttributeNS(null,"fill",i),s.setAttributeNS(null,"mask","url(#"+n.maskId+")"),this.defs.appendChild(a),this._ensureTransformGroup().appendChild(s),this.paintInlineImageXObject(e,a)},paintFormXObjectBegin:function(e,n){if(l(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),l(n)&&4===n.length){var r=n[2]-n[0],o=n[3]-n[1],i=document.createElementNS(b,"svg:rect");i.setAttributeNS(null,"x",n[0]),i.setAttributeNS(null,"y",n[1]),i.setAttributeNS(null,"width",t(r)),i.setAttributeNS(null,"height",t(o)),this.current.element=i,this.clip("nonzero"),this.endPath()}},paintFormXObjectEnd:function(){},_initialize:function(e){var t=document.createElementNS(b,"svg:svg");t.setAttributeNS(null,"version","1.1"),t.setAttributeNS(null,"width",e.width+"px"),t.setAttributeNS(null,"height",e.height+"px"),t.setAttributeNS(null,"preserveAspectRatio","none"),t.setAttributeNS(null,"viewBox","0 0 "+e.width+" "+e.height);var n=document.createElementNS(b,"svg:defs");t.appendChild(n),this.defs=n;var r=document.createElementNS(b,"svg:g");return r.setAttributeNS(null,"transform",o(e.transform)),t.appendChild(r),this.svg=r,t},_ensureClipGroup:function(){if(!this.current.clipGroup){var e=document.createElementNS(b,"svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup},_ensureTransformGroup:function(){return this.tgrp||(this.tgrp=document.createElementNS(b,"svg:g"),this.tgrp.setAttributeNS(null,"transform",o(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}},h}();e.SVGGraphics=h}),function(e,t){t(e.pdfjsDisplayAnnotationLayer={},e.pdfjsSharedUtil,e.pdfjsDisplayDOMUtils)}(this,function(e,t,n){function r(){}var o=t.AnnotationBorderStyleType,i=t.AnnotationType,a=t.Util,s=n.addLinkAttributes,l=n.LinkTarget,c=n.getFilenameFromUrl,u=t.warn,d=n.CustomStyle,p=n.g
|
||
|
return{get isEnabled(){if(o("disableWebGL"))return!1;var e=!1;try{s(),e=!!f}catch(e){}return r(this,"isEnabled",e)},composeSMask:c,drawFigures:d,clear:p}}();e.WebGLUtils=i}),function(e,t){t(e.pdfjsDisplayPatternHelper={},e.pdfjsSharedUtil,e.pdfjsDisplayWebGL)}(this,function(e,t,n){function r(e){var t=c[e[0]];return t||s("Unknown IR type: "+e[0]),t.fromIR(e)}var o=t.Util,i=t.info,a=t.isArray,s=t.error,l=n.WebGLUtils,c={};c.RadialAxial={fromIR:function(e){var t=e[1],n=e[2],r=e[3],o=e[4],i=e[5],a=e[6];return{type:"Pattern",getPattern:function(e){var s;"axial"===t?s=e.createLinearGradient(r[0],r[1],o[0],o[1]):"radial"===t&&(s=e.createRadialGradient(r[0],r[1],i,o[0],o[1],a));for(var l=0,c=n.length;l<c;++l){var u=n[l];s.addColorStop(u[0],u[1])}return s}}}};var u=function(){function e(e,t,n,r,o,i,a,s){var l,c=t.coords,u=t.colors,d=e.data,p=4*e.width;c[n+1]>c[r+1]&&(l=n,n=r,r=l,l=i,i=a,a=l),c[r+1]>c[o+1]&&(l=r,r=o,o=l,l=a,a=s,s=l),c[n+1]>c[r+1]&&(l=n,n=r,r=l,l=i,i=a,a=l);var f=(c[n]+t.offsetX)*t.scaleX,h=(c[n+1]+t.offsetY)*t.scaleY,b=(c[r]+t.offsetX)*t.scaleX,g=(c[r+1]+t.offsetY)*t.scaleY,m=(c[o]+t.offsetX)*t.scaleX,v=(c[o+1]+t.offsetY)*t.scaleY;if(!(h>=v))for(var y,x,w,k,_,A,E,C,T,P=u[i],S=u[i+1],O=u[i+2],M=u[a],N=u[a+1],D=u[a+2],R=u[s],I=u[s+1],L=u[s+2],j=Math.round(h),F=Math.round(v),U=j;U<=F;U++){U<g?(T=U<h?0:h===g?1:(h-U)/(h-g),y=f-(f-b)*T,x=P-(P-M)*T,w=S-(S-N)*T,k=O-(O-D)*T):(T=U>v?1:g===v?0:(g-U)/(g-v),y=b-(b-m)*T,x=M-(M-R)*T,w=N-(N-I)*T,k=D-(D-L)*T),T=U<h?0:U>v?1:(h-U)/(h-v),_=f-(f-m)*T,A=P-(P-R)*T,E=S-(S-I)*T,C=O-(O-L)*T;for(var B=Math.round(Math.min(y,_)),W=Math.round(Math.max(y,_)),z=p*U+4*B,V=B;V<=W;V++)T=(y-V)/(y-_),T=T<0?0:T>1?1:T,d[z++]=x-(x-A)*T|0,d[z++]=w-(w-E)*T|0,d[z++]=k-(k-C)*T|0,d[z++]=255}}function t(t,n,r){var o,i,a=n.coords,l=n.colors;switch(n.type){case"lattice":var c=n.verticesPerRow,u=Math.floor(a.length/c)-1,d=c-1;for(o=0;o<u;o++)for(var p=o*c,f=0;f<d;f++,p++)e(t,r,a[p],a[p+1],a[p+c],l[p],l[p+1],l[p+c]),e(t,r,a[p+c+1],a[p+1],a[p+c],l[p+c+1],l[p+1],l[p+c]);break;case"triangles":for(o=0,i=a.length;o<i;o+=3)e(t,r,a[o],a[o+1],a[o+2],l[o],l[o+1],l[o+2]);break;default:s("illigal figure")}}function n(e,n,r,o,i,a,s){var c,u,d,p,f=1.1,h=3e3,b=2,g=Math.floor(e[0]),m=Math.floor(e[1]),v=Math.ceil(e[2])-g,y=Math.ceil(e[3])-m,x=Math.min(Math.ceil(Math.abs(v*n[0]*f)),h),w=Math.min(Math.ceil(Math.abs(y*n[1]*f)),h),k=v/x,_=y/w,A={coords:r,colors:o,offsetX:-g,offsetY:-m,scaleX:1/k,scaleY:1/_},E=x+2*b,C=w+2*b;if(l.isEnabled)c=l.drawFigures(x,w,a,i,A),u=s.getCanvas("mesh",E,C,!1),u.context.drawImage(c,b,b),c=u.canvas;else{u=s.getCanvas("mesh",E,C,!1);var T=u.context,P=T.createImageData(x,w);if(a){var S=P.data;for(d=0,p=S.length;d<p;d+=4)S[d]=a[0],S[d+1]=a[1],S[d+2]=a[2],S[d+3]=255}for(d=0;d<i.length;d++)t(P,i[d],A);T.putImageData(P,b,b),c=u.canvas}return{canvas:c,offsetX:g-b*k,offsetY:m-b*_,scaleX:k,scaleY:_}}return n}();c.Mesh={fromIR:function(e){var t=e[2],n=e[3],r=e[4],i=e[5],a=e[6],s=e[8];return{type:"Pattern",getPattern:function(e,l,c){var d;if(c)d=o.singularValueDecompose2dScale(e.mozCurrentTransform);else if(d=o.singularValueDecompose2dScale(l.baseTransform),a){var p=o.singularValueDecompose2dScale(a);d=[d[0]*p[0],d[1]*p[1]]}var f=u(i,d,t,n,r,c?null:s,l.cachedCanvases);return c||(e.setTransform.apply(e,l.baseTransform),a&&e.transform.apply(e,a)),e.translate(f.offsetX,f.offsetY),e.scale(f.scaleX,f.scaleY),e.createPattern(f.canvas,"no-repeat")}}}},c.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var d=function(){function e(e,t,n,r,o){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=r,this.baseTransform=o,this.type="Pattern",this.ctx=n}var t={COLORED:1,UNCOLORED:2},n=3e3;return e.prototype={createPatternCanvas:function(e){var t=this.operatorList,r=this.bbox,a=this.xstep,s=this.ystep,l=this.paintType,c=this.tilingType,u=this.color,d=this.canvasGraphicsFactory;i("TilingType: "+c);var p=r[0],f=r[1],h=r[2],b=r[3],g=[p,f],m=[p+a,f+s],v=m[0]-g[0],y
|
||
|
h.drawImage(i,0,0,b,g,0,0,v,y),i=a.canvas,b=v,g=y,m="prescale1"===m?"prescale2":"prescale1"}if(o.drawImage(i,0,0,b,g,0,-r,n,r),this.imageLayer){var x=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:e,left:x[0],top:x[1],width:n/s[0],height:r/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,n){var r=this.ctx,o=e.width,i=e.height,a=this.cachedCanvases.getCanvas("inlineImage",o,i),s=a.context;t(s,e);for(var l=0,c=n.length;l<c;l++){var u=n[l];if(r.save(),r.transform.apply(r,u.transform),r.scale(1,-1),r.drawImage(a.canvas,u.x,u.y,u.w,u.h,0,-1,1,1),this.imageLayer){var d=this.getCanvasPosition(u.x,u.y);this.imageLayer.appendImage({imgData:e,left:d[0],top:d[1],width:o,height:i})}r.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){k("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===H?void 0!==e.mozFillRule?(e.mozFillRule="evenodd",e.clip(),e.mozFillRule="nonzero"):e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this.cachedGetSinglePixelWidth){this.ctx.save();var t=this.ctx.mozCurrentTransformInverse;this.ctx.restore(),this.cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this.cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]}};for(var q in d)e.prototype[d[q]]=e.prototype[q];return e}();e.CanvasGraphics=F,e.createScratchCanvas=i}),function(e,t){t(e.pdfjsDisplayAPI={},e.pdfjsSharedUtil,e.pdfjsDisplayFontLoader,e.pdfjsDisplayCanvas,e.pdfjsDisplayMetadata,e.pdfjsDisplayDOMUtils)}(this,function(e,i,a,s,l,c,u){function d(e,t,n,r){var o=new Y;arguments.length>1&&E("getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument"),t&&(t instanceof K||(t=Object.create(t),t.length=e.length,t.initialData=e.initialData,t.abort||(t.abort=function(){})),e=Object.create(e),e.range=t),o.onPassword=n||null,o.onProgress=r||null;var i;"string"==typeof e?i={url:e}:O(e)?i={data:e}:e instanceof K?i={range:e}:("object"!=typeof e&&A("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object"),e.url||e.data||e.range||A("Invalid parameter object: need either .data, .range or .url"),i=e);var a={},s=null,l=null;for(var c in i)if("url"!==c||"undefined"==typeof window)if("range"!==c)if("worker"!==c)if("data"!==c||i[c]instanceof Uint8Array)a[c]=i[c];else{var u=i[c];"string"==typeof u?a[c]=D(u):"object"!=typeof u||null===u||isNaN(u.length)?O(u)?a[c]=new Uint8Array(u):A("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property."):a[c]=new Uint8Array(u)}else l=i[c];else s=i[c];else a[c]=new URL(i[c],window.location).href;a.rangeChunkSize=a.rangeChunkSize||z,l||(l=new $,o._worker=l);var d=o.docId;return l.promise.then(function(){if(o.destroyed)throw new Error("Loading aborted");return p(l,a,s,d).then(function(e){if(o.destroyed)throw new Error("Loading aborted");var t=new b(d,e,l.port),n=new Z(t,o,s);o._transport=n,t.send("Ready",null)})}).catch(o._capability.reject),o}function p(e,t,n,r){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(t.disableAutoFetch=W("disableAutoFetch"),t.disableStream=W("disableStream"),t.chunkedViewerLoading=!!n,n&&(t.length=n.length,t.initialData=n.initialData),e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,source:t,disableRange:W("disableRange"),maxImageSize:W("maxImageSize"),cMapUrl:W("cMapUrl"),cMapPacked:W("cMapPacked"),disableFontFace:W("disableFontFace"),disableCreateObjectURL:W("disableCreateObjectURL"),postMessageTransfers:W("postMessageTransfers")&&!H,docBaseUrl:t.docBaseUrl}).then(function(t){if(e.destroyed)throw new Error("Worker was destroyed");retu
|
||
|
strokeDasharray:g+"px "+g+"px",strokeDashoffset:(100-u)/100*g+"px",transition:"stroke-dashoffset 0.3s ease 0s, stroke 0.3s ease"};return s.default.createElement("svg",i({className:t+"-circle "+p,viewBox:"0 0 100 100",style:d},f),s.default.createElement("path",{className:t+"-circle-trail",d:b,stroke:l,strokeWidth:r||n,fillOpacity:"0"}),s.default.createElement("path",{className:t+"-circle-path",d:b,strokeLinecap:c,stroke:a,strokeWidth:n,fillOpacity:"0",ref:"path",style:m}))}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),s=r(a),l=n(136),c=r(l);t.default=s.default.createClass({displayName:"Line",mixins:[c.default],render:function(){var e=this,t=this.props,n=t.prefixCls,r=t.strokeWidth,a=t.trailWidth,l=t.strokeColor,c=t.trailColor,u=t.strokeLinecap,d=t.percent,p=t.style,f=t.className,h=o(t,["prefixCls","strokeWidth","trailWidth","strokeColor","trailColor","strokeLinecap","percent","style","className"]),b={strokeDasharray:"100px, 100px",strokeDashoffset:100-d+"px",transition:"stroke-dashoffset 0.3s ease 0s, stroke 0.3s linear"},g=r/2,m=100-r/2,v="M "+g+","+g+" L "+m+","+g,y="0 0 100 "+r;return s.default.createElement("svg",i({className:n+"-line "+f,viewBox:y,preserveAspectRatio:"none",style:p},h),s.default.createElement("path",{className:n+"-line-trail",d:v,strokeLinecap:u,stroke:c,strokeWidth:a||r,fillOpacity:"0"}),s.default.createElement("path",{className:n+"-line-path",d:v,strokeLinecap:u,stroke:l,strokeWidth:r,fillOpacity:"0",ref:function(t){e.path=t},style:b}))}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(269),i=r(o),a=n(268),s=r(a);t.default={Line:i.default,Circle:s.default},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(8),i=r(o),a=n(10),s=r(a),l=n(3),c=r(l),u=n(5),d=r(u),p=n(4),f=r(p),h=n(12),b=r(h),g=n(1),m=r(g),v=n(60),y=r(v),x=n(13),w=function(e){function t(){return(0,c.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),r=(0,x.splitBsProps)(n),o=r[0],a=r[1],l=(0,x.getClassSet)(o);return m.default.createElement("div",(0,i.default)({},a,{role:"toolbar",className:(0,b.default)(t,l)}))},t}(m.default.Component);t.default=(0,x.bsClass)("btn-toolbar",(0,x.bsSizes)(y.default.SIZES,w)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){e.offsetHeight}function i(e,t){var n=t["offset"+(0,E.default)(e)],r=P[e];return n+parseInt((0,y.default)(t,r[0]),10)+parseInt((0,y.default)(t,r[1]),10)}t.__esModule=!0;var a=n(8),s=r(a),l=n(10),c=r(l),u=n(3),d=r(u),p=n(5),f=r(p),h=n(4),b=r(h),g=n(12),m=r(g),v=n(84),y=r(v),x=n(1),w=r(x),k=n(163),_=r(k),A=n(287),E=r(A),C=n(31),T=r(C),P={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]},S={in:w.default.PropTypes.bool,unmountOnExit:w.default.PropTypes.bool,transitionAppear:w.default.PropTypes.bool,timeout:w.default.PropTypes.number,onEnter:w.default.PropTypes.func,onEntering:w.default.PropTypes.func,onEntered:w.default.PropTypes.func,onExit:w.default.PropTypes.func,onExiting:w.default.PropTypes.func,onExited:w.default.PropTypes.func,dimension:w.default.PropTypes.oneOfType([w.default.PropTypes.oneOf(["height","width"]),w.default.PropTypes.func]),getDimensionValue:w.default.PropTypes.func,role:w.default.PropTypes.string},O={in:!1,timeout:300,unmountOnExit:!1,transitionAppear:!1,dimension:"height",getDimensionValue:i},M=function(e){function t(n,r){(0,d.default)(this,t);var o=(0,f.default)(this,e.call(thi
|
||
|
beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},T=!1,P=null,S={eventTypes:C,extractEvents:function(e,t,n,r){return[c(e,t,n,r),p(e,t,n,r)]}};e.exports=S},function(e,t,n){"use strict";var r=n(141),o=n(14),i=(n(19),n(255),n(343)),a=n(262),s=n(265),l=(n(6),s(function(e){return a(e)})),c=!1,u="cssFloat";if(o.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){c=!0}void 0===document.documentElement.style.cssFloat&&(u="styleFloat")}var p={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];null!=o&&(n+=l(r)+":",n+=i(r,o,t)+";")}return n||null},setValueForStyles:function(e,t,n){var o=e.style;for(var a in t)if(t.hasOwnProperty(a)){var s=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=u),s)o[a]=s;else{var l=c&&r.shorthandPropertyExpansions[a];if(l)for(var d in l)o[d]="";else o[a]=""}}}};e.exports=p},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=_.getPooled(T.change,S,e,A(e));y.accumulateTwoPhaseDispatches(t),k.batchedUpdates(i,t)}function i(e){v.enqueueEvents(e),v.processEventQueue(!1)}function a(e,t){P=e,S=t,P.attachEvent("onchange",o)}function s(){P&&(P.detachEvent("onchange",o),P=null,S=null)}function l(e,t){if("topChange"===e)return t}function c(e,t,n){"topFocus"===e?(s(),a(t,n)):"topBlur"===e&&s()}function u(e,t){P=e,S=t,O=e.value,M=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(P,"value",R),P.attachEvent?P.attachEvent("onpropertychange",p):P.addEventListener("propertychange",p,!1)}function d(){P&&(delete P.value,P.detachEvent?P.detachEvent("onpropertychange",p):P.removeEventListener("propertychange",p,!1),P=null,S=null,O=null,M=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==O&&(O=t,o(e))}}function f(e,t){if("topInput"===e)return t}function h(e,t,n){"topFocus"===e?(d(),u(t,n)):"topBlur"===e&&d()}function b(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&P&&P.value!==O)return O=P.value,S}function g(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function m(e,t){if("topClick"===e)return t}var v=n(50),y=n(51),x=n(14),w=n(11),k=n(23),_=n(24),A=n(102),E=n(103),C=n(158),T={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},P=null,S=null,O=null,M=null,N=!1;x.canUseDOM&&(N=E("change")&&(!document.documentMode||document.documentMode>8));var D=!1;x.canUseDOM&&(D=E("input")&&(!document.documentMode||document.documentMode>11));var R={get:function(){return M.get.call(this)},set:function(e){O=""+e,M.set.call(this,e)}},I={eventTypes:T,extractEvents:function(e,t,n,o){var i,a,s=t?w.getNodeFromInstance(t):window;if(r(s)?N?i=l:a=c:C(s)?D?i=f:(i=b,a=h):g(s)&&(i=m),i){var u=i(e,t);if(u){var d=_.getPooled(T.change,u,n,o);return d.type="change",y.accumulateTwoPhaseDispatches(d),d}}a&&a(e,s,t)}};e.exports=I},function(e,t,n){"use strict";var r=n(7),o=n(38),i=n(14),a=n(258),s=n(18),l=(n(2),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM?void 0:r("56"),t?void 0:r("57"),"HTML"===e.nodeName?r("58"):void 0,"string"==typeof t){var n=a(t,s)[0];e.pa
|
||
|
h.setStart(n,o),h.setEnd(i,a);var b=h.collapsed;return{start:b?f:p,end:b?p:f}}function a(e,t){var n,r,o=document.selection.createRange().duplicate();void 0===t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[u()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=c(e,o),l=c(e,i);if(s&&l){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(d),n.extend(l.node,l.offset)):(d.setEnd(l.node,l.offset),n.addRange(d))}}}var l=n(14),c=n(349),u=n(156),d=l.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?o:i,setOffsets:d?a:s};e.exports=p},function(e,t,n){"use strict";var r=n(7),o=n(9),i=n(90),a=n(38),s=n(11),l=n(64),c=(n(2),n(105),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,i=" react-text: "+o+" ",c=" /react-text ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var u=n._ownerDocument,d=u.createComment(i),p=u.createComment(c),f=a(u.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(u.createTextNode(this._stringText))),a.queueChild(f,a(p)),s.precacheNode(this,d),this._closingComment=p,f}var h=l(this._stringText);return e.renderToStaticMarkup?h:"<!--"+i+"-->"+h+"<!--"+c+"-->"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=c},function(e,t,n){"use strict";function r(){this._rootNodeID&&u.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return c.asap(r,this),n}var i=n(7),a=n(9),s=n(95),l=n(11),c=n(23),u=(n(2),n(6),{getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?i("91"):void 0;var n=a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=s.getValue(t),r=n;if(null==n){var a=t.defaultValue,l=t.children;null!=l&&(null!=a?i("92"):void 0,Array.isArray(l)&&(l.length<=1?void 0:i("93"),l=l[0]),a=""+l),null==a&&(a=""),r=a}e._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=l.getNodeFromInstance(e),r=s.getValue(t);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==t.defaultValue&&(n.defaultValue=o)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=l.getNodeFromInstance(e);t.value=t.textContent}});e.exports=u},function(e,t,n){"use strict";function r(e,t){"_hostNode"in e?void 0:l("33"),"_hostNode"in t?void 0:l("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var o=0,i=t;i;i=i._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e?void 0:l("35"),"_hostNode"in t?void 0:l("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e?void 0:l("36"),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o<r.length;o++)t(r[o],"bubbled",n)}function s(e,t,n
|
||
|
}},{key:"componentWillUnmount",value:function(){document.body.onfocus=null}},{key:"onDragStart",value:function(e){this.props.onDragStart&&this.props.onDragStart.call(this,e)}},{key:"onDragEnter",value:function(e){e.preventDefault(),++this.enterCounter;var t=this.allFilesAccepted((0,b.default)(e,this.props.multiple));this.setState({isDragActive:t,isDragReject:!t}),this.props.onDragEnter&&this.props.onDragEnter.call(this,e)}},{key:"onDragOver",value:function(e){e.preventDefault(),e.stopPropagation();try{e.dataTransfer.dropEffect="copy"}catch(e){}return!1}},{key:"onDragLeave",value:function(e){e.preventDefault(),--this.enterCounter>0||(this.setState({isDragActive:!1,isDragReject:!1}),this.props.onDragLeave&&this.props.onDragLeave.call(this,e))}},{key:"onDrop",value:function e(t){var n=this,r=this.props,e=r.onDrop,o=r.onDropAccepted,i=r.onDropRejected,a=r.multiple,s=r.disablePreview,l=(0,b.default)(t,a),c=[],u=[];t.preventDefault(),this.enterCounter=0,this.isFileDialogActive=!1,l.forEach(function(e){!s&&(0,f.default)(e,"image/*")&&(e.preview=window.URL.createObjectURL(e)),n.fileAccepted(e)&&n.fileMatchSize(e)?c.push(e):u.push(e)}),e&&e.call(this,c,u,t),u.length>0&&i&&i.call(this,u,t),c.length>0&&o&&o.call(this,c,t),this.setState({isDragActive:!1,isDragReject:!1})}},{key:"onClick",value:function e(t){t.stopPropagation();var n=this.props,e=n.onClick,r=n.disableClick;r||(this.open(),e&&e.call(this,t))}},{key:"onFileDialogCancel",value:function e(){var e=this.props.onFileDialogCancel,t=this.fileInputEl,n=this.isFileDialogActive;e&&n&&setTimeout(function(){var r=t.files;r.length||(n=!1,e())},300)}},{key:"fileAccepted",value:function(e){return(0,f.default)(e,this.props.accept)}},{key:"fileMatchSize",value:function(e){return e.size<=this.props.maxSize&&e.size>=this.props.minSize}},{key:"allFilesAccepted",value:function(e){return e.every(this.fileAccepted)}},{key:"open",value:function(){this.isFileDialogActive=!0,this.fileInputEl.value=null,this.fileInputEl.click()}},{key:"render",value:function(){var e=this,t=this.props,n=t.accept,r=t.activeClassName,i=t.inputProps,a=t.multiple,s=t.name,c=t.rejectClassName,u=o(t,["accept","activeClassName","inputProps","multiple","name","rejectClassName"]),p=u.activeStyle,f=u.className,h=u.rejectStyle,b=u.style,m=o(u,["activeStyle","className","rejectStyle","style"]),v=this.state,y=v.isDragActive,x=v.isDragReject;f=f||"",y&&r&&(f+=" "+r),x&&c&&(f+=" "+c),f||b||p||h||(b={width:200,height:200,borderWidth:2,borderColor:"#666",borderStyle:"dashed",borderRadius:5},p={borderStyle:"solid",backgroundColor:"#eee"},h={borderStyle:"solid",backgroundColor:"#ffdddd"});var w=void 0;w=p&&y?l({},b,p):h&&x?l({},b,h):l({},b);var k={accept:n,type:"file",style:{display:"none"},multiple:g&&a,ref:function(t){return e.fileInputEl=t},onChange:this.onDrop};s&&s.length&&(k.name=s);var _=["acceptedFiles","disablePreview","disableClick","onDropAccepted","onDropRejected","onFileDialogCancel","maxSize","minSize"],A=l({},m);return _.forEach(function(e){return delete A[e]}),d.default.createElement("div",l({className:f,style:w},A,{onClick:this.onClick,onDragStart:this.onDragStart,onDragEnter:this.onDragEnter,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDrop:this.onDrop}),this.props.children,d.default.createElement("input",l({},i,k)))}}]),t}(d.default.Component);m.defaultProps={disablePreview:!1,disableClick:!1,multiple:!0,maxSize:1/0,minSize:0},m.propTypes={onClick:d.default.PropTypes.func,onDrop:d.default.PropTypes.func,onDropAccepted:d.default.PropTypes.func,onDropRejected:d.default.PropTypes.func,onDragStart:d.default.PropTypes.func,onDragEnter:d.default.PropTypes.func,onDragLeave:d.default.PropTypes.func,children:d.default.PropTypes.node,style:d.default.PropTypes.object,activeStyle:d.default.PropTypes.object,rejectStyle:d.default.PropTypes.object,className:d.default.PropTypes.string,activeClassName:d.default.PropTypes.string,rejectClassName:d.default.PropTypes.string,disablePreview:d.default.PropTypes.bool,disableClick:d.default.PropTypes.bool,onFileDialogCancel:d.default.PropTypes.func,inputProps:d.default.PropT
|
||
|
}for(var u=0;u<s.length;u++){var d=e(s,u,r,i,a+"["+u+"]",_);if(d instanceof Error)return d}return null}return i(t)}function c(){function e(e,t,n,r,i){var a=e[t];if(!w.isValidElement(a)){var s=k[r],l=v(a);return new o("Invalid "+s+" `"+i+"` of type "+("`"+l+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return i(e)}function u(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var s=k[i],l=e.name||C,c=x(t[n]);return new o("Invalid "+s+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("instance of `"+l+"`."))}return null}return i(t)}function d(e){function t(t,n,i,a,s){for(var l=t[n],c=0;c<e.length;c++)if(r(l,e[c]))return null;var u=k[a],d=JSON.stringify(e);return new o("Invalid "+u+" `"+s+"` of value `"+l+"` "+("supplied to `"+i+"`, expected one of "+d+"."))}return Array.isArray(e)?i(t):A.thatReturnsNull}function p(e){function t(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],l=v(s);if("object"!==l){var c=k[i];return new o("Invalid "+c+" `"+a+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."))}for(var u in s)if(s.hasOwnProperty(u)){var d=e(s,u,r,i,a+"."+u,_);if(d instanceof Error)return d}return null}return i(t)}function f(e){function t(t,n,r,i,a){for(var s=0;s<e.length;s++){var l=e[s];if(null==l(t,n,r,i,a,_))return null}var c=k[i];return new o("Invalid "+c+" `"+a+"` supplied to "+("`"+r+"`."))}return Array.isArray(e)?i(t):A.thatReturnsNull}function h(){function e(e,t,n,r,i){if(!g(e[t])){var a=k[r];return new o("Invalid "+a+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return i(e)}function b(e){function t(t,n,r,i,a){var s=t[n],l=v(s);if("object"!==l){var c=k[i];return new o("Invalid "+c+" `"+a+"` of type `"+l+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var d=e[u];if(d){var p=d(s,u,r,i,a+"."+u,_);if(p)return p}}return null}return i(t)}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||w.isValidElement(e))return!0;var t=E(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function m(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":m(t,e)?"symbol":t}function y(e){var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){return e.constructor&&e.constructor.name?e.constructor.name:C}var w=n(42),k=n(169),_=n(367),A=n(18),E=n(171),C=(n(6),"<<anonymous>>"),T={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:l,element:c(),instanceOf:u,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:b};o.prototype=Error.prototype,e.exports=T},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||s}function o(){}var i=n(9),a=n(107),s=n(108),l=n(49);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,e.exports=r},function(e,t){"use strict";e.exports="15.4.1"},function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o("143"),e}var o=n(43),i=n(42);n(2);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===s)return n(i,e,""===t?u+r(e,0):t),1;var f,h,b=0,g=""===t?u:t+d;if(Array.isArray(e))for(var m=0;m<e.length;m++)f=e[m],h=g+r(f,m),b+=o(f,h,n,i);
|