/*! For license information please see 344.js.LICENSE.txt */ (self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[344],{50917:(t,e,n)=>{var r;r=function(t,e,r){var i=[];function o(t){i.push(t)}function a(t){this.selector=t;for(var e=0;e{"use strict";n.d(e,{Z:()=>w});n(43666),n(29157);var r=n(93379),i=n.n(r),o=n(34051),a={insert:"head",singleton:!1};i()(o.Z,a);o.Z.locals;let s=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function c(t){for(var e="",n=0;n{function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}(function(){var _p={r:function(t){if(_p[t].inited)return _p[t].value;if("function"!=typeof _p[t].value)return _p[t].inited=!0,_p[t].value;var e={exports:{}},n=_p[t].value(null,e.exports,e);if(_p[t].inited=!0,_p[t].value=n,void 0!==n)return n;for(var r in e.exports)if(e.exports.hasOwnProperty(r))return _p[t].inited=!0,_p[t].value=e.exports,e.exports}};_p[0]={value:function(t){function e(t){var e=parseFloat(t,10);return/ms/.test(t)?e:/s/.test(t)?1e3*e:/min/.test(t)?60*e*1e3:e}var n=_p.r(8),r=_p.r(1),i=_p.r(11).createClass("Animator",{constructor:function(t,e,n){if(1==arguments.length){var r=arguments[0];this.beginValue=r.beginValue,this.finishValue=r.finishValue,this.setter=r.setter}else this.beginValue=t,this.finishValue=e,this.setter=n},start:function(t,n,r,i,o){2===arguments.length&&"object"==_typeof(n)&&(r=n.easing,i=n.delay,o=n.callback,n=n.duration),4===arguments.length&&"function"==typeof i&&(o=i,i=0);var a=this.create(t,n,r,o);return(i=e(i))>0?setTimeout((function(){a.play()}),i):a.play(),a},create:function(t,o,a,s){var c;return o=o&&e(o)||i.DEFAULT_DURATION,"string"==typeof(a=a||i.DEFAULT_EASING)&&(a=r[a]),c=new n(this,t,o,a),"function"==typeof s&&c.on("finish",s),c},reverse:function(){return new i(this.finishValue,this.beginValue,this.setter)}});i.DEFAULT_DURATION=300,i.DEFAULT_EASING="linear";var o=_p.r(61);return _p.r(11).extendClass(o,{animate:function(t,e,n,r,i){var o=this._KityAnimateQueue=this._KityAnimateQueue||[],a=t.create(this,e,n,i);return a.on("finish",(function(){o.shift(),o.length&&setTimeout(o[0].t.play.bind(o[0].t),o[0].d)})),o.push({t:a,d:r}),1==o.length&&setTimeout(a.play.bind(a),r),this},timeline:function(){return this._KityAnimateQueue[0].t},stop:function(){var t=this._KityAnimateQueue;if(t)for(;t.length;)t.shift().t.stop();return this}}),i}},_p[1]={value:function(t,e,n){var r={linear:function(t,e,n,r){return n*(t/r)+e},swing:function(t,e,n,i){return r.easeOutQuad(t,e,n,i)},ease:function(t,e,n,i){return r.easeInOutCubic(t,e,n,i)},easeInQuad:function(t,e,n,r){return n*(t/=r)*t+e},easeOutQuad:function(t,e,n,r){return-n*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,r){return n*(t/=r)*t*t+e},easeOutCubic:function(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,n,r){return n*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,n,r){return-n*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,n,r){return n*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,n,r){return n*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,n,r){return-n*Math.cos(t/r*(Math.PI/2))+n+e},easeOutSine:function(t,e,n,r){return n*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,n,r){return-n/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,n,r){return 0===t?e:n*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,n,r){return t==r?e+n:n*(1-Math.pow(2,-10*t/r))+e},easeInOutExpo:function(t,e,n,r){return 0===t?e:t==r?e+n:(t/=r/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,n,r){return-n*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,n,r){return n*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,n,r){return(t/=r/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,n,r){var i=1.70158,o=0,a=n;return 0===t?e:1==(t/=r)?e+n:(o||(o=.3*r),a200&&(n=1e3/60),t.dur=n,t.elapsed+=n,t.time=e,t.action.call(null,t),t.index++}e.requestFrame=function(t){var e=function(t){var e={index:0,time:+new Date,elapsed:0,action:t,next:function(){a(e)}};return e}(t);return a(e),e},e.releaseFrame=function(t){var e=o.indexOf(t);~e&&o.splice(e,1),0===o.length&&i(n)}}},_p[3]={value:function(t){var e=_p.r(0),n=_p.r(35),r=_p.r(47),i=_p.r(61),o=_p.r(11).createClass("MotionAnimator",{base:e,constructor:function(t,e){var i=this;this.callBase({beginValue:0,finishValue:1,setter:function(t,e){var o=i.motionPath instanceof r?i.motionPath.getPathData():i.motionPath,a=n.pointAtPath(o,e);t.setTranslate(a.x,a.y),this.doRotate&&t.setRotate(a.tan.getAngle())}}),this.doRotate=e,this.motionPath=t}});return _p.r(11).extendClass(i,{motion:function(t,e,n,r,i){return this.animate(new o(t),e,n,r,i)}}),o}},_p[4]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("OpacityAnimator",{base:e,constructor:function(t){this.callBase({beginValue:function(t){return t.getOpacity()},finishValue:t,setter:function(t,e){t.setOpacity(e)}})}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxOpacity:function(t,e,r,i,o){return this.animate(new n(t),e,r,i,o)},fadeTo:function(){return this.fxOpacity.apply(this,arguments)},fadeIn:function(){return this.fxOpacity.apply(this,[1].concat([].slice.call(arguments)))},fadeOut:function(){return this.fxOpacity.apply(this,[0].concat([].slice.call(arguments)))}}),n}},_p[5]={value:function(t){var e=_p.r(0),n=_p.r(35),r=_p.r(11).createClass("OpacityAnimator",{base:e,constructor:function(t){this.callBase({beginValue:function(t){return this.beginPath=t.getPathData(),0},finishValue:1,setter:function(e,r){e.setPathData(n.pathTween(this.beginPath,t,r))}})}}),i=_p.r(47);return _p.r(11).extendClass(i,{fxPath:function(t,e,n,i,o){return this.animate(new r(t),e,n,i,o)}}),r}},_p[6]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("RotateAnimator",{base:e,constructor:function(t){this.callBase({beginValue:0,finishValue:t,setter:function(t,e,n){var r=n.getDelta();t.rotate(r)}})}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxRotate:function(t,e,r,i,o){return this.animate(new n(t),e,r,i,o)}}),n}},_p[7]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("ScaleAnimator",{base:e,constructor:function(t,e){this.callBase({beginValue:0,finishValue:1,setter:function(n,r,i){var o=i.getDelta(),a=Math.pow(t,o),s=Math.pow(e,o);n.scale(s,a)}})}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxScale:function(t,e,r,i,o,a){return this.animate(new n(t,e),r,i,o,a)}}),n}},_p[8]={value:function(t){var e=_p.r(34),n=_p.r(12),r=_p.r(2);function i(t,e,n){for(var r in this.timeline=t,this.target=t.target,this.type=e,n)n.hasOwnProperty(r)&&(this[r]=n[r])}var o=_p.r(11).createClass("Timeline",{mixins:[e],constructor:function(t,e,n,r){this.callMixin(),this.target=e,this.time=0,this.duration=n,this.easing=r,this.animator=t,this.beginValue=t.beginValue,this.finishValue=t.finishValue,this.setter=t.setter,this.status="ready"},nextFrame:function(t){"playing"==this.status&&(this.time+=t.dur,this.setValue(this.getValue()),this.time>=this.duration&&this.timeUp(),t.next())},getPlayTime:function(){return this.rollbacking?this.duration-this.time:this.time},getTimeProportion:function(){return this.getPlayTime()/this.duration},getValueProportion:function(){return this.easing(this.getPlayTime(),0,1,this.duration)},getValue:function(){return function(t,e,r){return n.paralle(t,e,(function(t,e){return t+(e-t)*r}))}(this.beginValue,this.finishValue,this.getValueProportion())},setValue:function(t){this.lastValue=this.currentValue,this.currentValue=t,this.setter.call(this.target,this.target,t,this)},getDelta:function(){return this.lastValue=void 0===this.lastValue?this.beginValue:this.lastValue,t=this.lastValue,e=this.currentValue,n.paralle(t,e,(function(t,e){return e-t}));var t,e},play:function(){var t=this.status;switch(this.status="playing",t){case"ready":n.isFunction(this.beginValue)&&(this.beginValue=this.beginValue.call(this.target,this.target)),n.isFunction(this.finishValue)&&(this.finishValue=this.finishValue.call(this.target,this.target)),this.time=0,this.setValue(this.beginValue),this.frame=r.requestFrame(this.nextFrame.bind(this));break;case"finished":case"stoped":this.time=0,this.frame=r.requestFrame(this.nextFrame.bind(this));break;case"paused":this.frame.next()}return this.fire("play",new i(this,"play",{lastStatus:t})),this},pause:function(){return this.status="paused",this.fire("pause",new i(this,"pause")),r.releaseFrame(this.frame),this},stop:function(){return this.status="stoped",this.setValue(this.finishValue),this.rollbacking=!1,this.fire("stop",new i(this,"stop")),r.releaseFrame(this.frame),this},timeUp:function(){this.repeatOption?(this.time=0,this.rollback?this.rollbacking?(this.decreaseRepeat(),this.rollbacking=!1):(this.rollbacking=!0,this.fire("rollback",new i(this,"rollback"))):this.decreaseRepeat(),this.repeatOption?this.fire("repeat",new i(this,"repeat")):this.finish()):this.finish()},finish:function(){this.setValue(this.finishValue),this.status="finished",this.fire("finish",new i(this,"finish")),r.releaseFrame(this.frame)},decreaseRepeat:function(){!0!==this.repeatOption&&this.repeatOption--},repeat:function(t,e){return this.repeatOption=t,this.rollback=e,this}});return o.requestFrame=r.requestFrame,o.releaseFrame=r.releaseFrame,o}},_p[9]={value:function(t){var e=_p.r(0),n=_p.r(11).createClass("TranslateAnimator",{base:e,constructor:function(t,e){this.callBase({x:0,y:0},{x:t,y:e},(function(t,e,n){var r=n.getDelta();t.translate(r.x,r.y)}))}}),r=_p.r(61);return _p.r(11).extendClass(r,{fxTranslate:function(t,e,r,i,o,a){return this.animate(new n(t,e),r,i,o,a)}}),n}},_p[10]={value:function(){return function(){var t,e=navigator.userAgent.toLowerCase(),n=window.opera;t={platform:function(t){return{win32:"Win",macintel:"Mac"}[t.platform.toLowerCase()]||"Lux"}(navigator),lb:function(t){return!!~t.indexOf("lbbrowser")&&(~t.indexOf("msie")?"ie":"chrome")}(e),sg:/se[\s\S]+metasr/.test(e),bd:!!~e.indexOf("bidubrowser"),edge:!!~e.indexOf("edge"),chrome:!1,opera:!!n&&n.version,webkit:e.indexOf(" applewebkit/")>-1,mac:e.indexOf("macintosh")>-1},t.ie=!t.lb&&/(msie\s|trident.*rv:)([\w.]+)/.test(e),t.gecko="Gecko"==navigator.product&&!t.webkit&&!t.opera&&!t.ie;var r=0;if(t.ie&&(r=1*(e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2]||0),t.ie11Compat=11==document.documentMode,t.ie9Compat=9==document.documentMode),t.gecko){var i=e.match(/rv:([\d\.]+)/);i&&(r=1e4*(i=i[1].split("."))[0]+100*(i[1]||0)+1*(i[2]||0))}return!/chrome\/(\d+\.\d)/i.test(e)||t.bd||t.opera||t.lb||t.sg||t.edge||(t.chrome=+RegExp.$1),/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(e)&&!/chrome/i.test(e)&&(t.safari=+(RegExp.$1||RegExp.$2)),t.opera&&(r=parseFloat(n.version())),t.webkit&&(r=parseFloat(e.match(/ applewebkit\/(\d+)/)[1])),t.bd&&(r=parseFloat(e.match(/bidubrowser\/(\d+)/)[1])),t.opera&&(r=parseFloat(e.match(/opr\/(\d+)/)[1])),t.edge&&(r=parseFloat(e.match(/edge\/(\d+)/)[1])),t.version=r,t.isCompatible=!t.mobile&&(t.ie&&r>=6||t.gecko&&r>=10801||t.opera&&r>=9.5||t.air&&r>=1||t.webkit&&r>=522||!1),t}()}},_p[11]={value:function value(require,exports){function Class(){}function checkBaseConstructorCall(t,e){var n=t.toString();if(!/this\.callBase/.test(n))throw new Error(e+" : 类构造函数没有调用父类的构造函数!为了安全,请调用父类的构造函数")}exports.Class=Class,Class.__KityClassName="Class",Class.prototype.base=function(t){var e=arguments.callee.caller,n=e.__KityMethodClass.__KityBaseClass.prototype[t];return n.apply(this,Array.prototype.slice.call(arguments,1))},Class.prototype.callBase=function(){var t=arguments.callee.caller,e=t.__KityMethodClass.__KityBaseClass.prototype[t.__KityMethodName];return e.apply(this,arguments)},Class.prototype.mixin=function(t){var e=arguments.callee.caller,n=e.__KityMethodClass.__KityMixins;if(!n)return this;var r=n[t];return r.apply(this,Array.prototype.slice.call(arguments,1))},Class.prototype.callMixin=function(){var t=arguments.callee.caller,e=t.__KityMethodName,n=t.__KityMethodClass.__KityMixins;if(!n)return this;var r=n[e];if("constructor"==e){for(var i=0,o=r.length;i=o||void 0===i)return i}},getValue:function(t,e){return void 0!==t?t:e},flatten:function(e){var n,r=[],i=e.length;for(n=0;nn||i>o?new r:new r(e,i,n-e,o-i)},expand:function(t,e,n,i){if(arguments.length<1)return new r(this);arguments.length<2&&(e=t),arguments.length<3&&(n=t),arguments.length<4&&(i=e);var o=this.left-i,a=this.top-t,s=this.width+e+i,c=this.height+t+n;return new r(o,a,s,c)},valueOf:function(){return[this.x,this.y,this.width,this.height]},toString:function(){return this.valueOf().join(" ")},isEmpty:function(){return!this.width||!this.height}});return r.parse=function(t){return"string"==typeof t?r.parse(t.split(/[\s,]+/).map(parseFloat)):t instanceof Array?new r(t[0],t[1],t[2],t[3]):"x"in t?new r(t):null},r}},_p[27]={value:function(t,e,n){return _p.r(11).createClass("Circle",{base:_p.r(33),constructor:function(t,e,n){this.callBase(t,t,e,n)},getRadius:function(){return this.getRadiusX()},setRadius:function(t){return this.callBase(t,t)}})}},_p[28]={value:function(t,e,n){var r=_p.r(11),i=_p.r(61),o=r.createClass("Clip",{base:i,mixins:[_p.r(62)],constructor:function(t){this.callBase("clipPath",t)},clip:function(t){return t.getNode().setAttribute("clip-path",this),this}});return r.extendClass(i,{clipWith:function(t){return t instanceof i&&(t=new o(t.getPaper()).addShape(t)),t.clip(this),this}}),o}},_p[29]={value:function(t,e,n){var r=_p.r(12),i=_p.r(65),o={},a=_p.r(11).createClass("Color",{constructor:function(){var t=null;"string"==typeof arguments[0]?null===(t=o.parseToValue(arguments[0]))&&(t={r:0,g:0,b:0,h:0,s:0,l:0,a:1}):(t={r:0|arguments[0],g:0|arguments[1],b:0|arguments[2],a:void 0===arguments[3]?1:parseFloat(arguments[3])},t=o.overflowFormat(t),t=r.extend(t,o.rgbValueToHslValue(t))),this._color=t},set:function(t,e){if(!a._MAX_VALUE[t])throw new Error("Color set(): Illegal parameter");return"a"!==t&&(e=Math.floor(e)),"h"==t&&(e=(e+360)%360),this._color[t]=Math.max(a._MIN_VALUE[t],Math.min(a._MAX_VALUE[t],e)),-1!=="rgb".indexOf(t)?this._color=r.extend(this._color,o.rgbValueToHslValue(this._color)):-1!=="hsl".indexOf(t)&&(this._color=r.extend(this._color,o.hslValueToRGBValue(this._color))),this},inc:function(t,e){return e=this.get(t)+e,"h"==t?e=(e+360)%360:(e=Math.min(a._MAX_VALUE[t],e),e=Math.max(a._MIN_VALUE[t],e)),this.clone().set(t,e)},dec:function(t,e){return this.inc(t,-e)},clone:function(){return new a(this.toRGBA())},get:function(t){return a._MAX_VALUE[t]?this._color[t]:null},getValues:function(){return r.clone(this._color)},valueOf:function(){return this.getValues()},toRGB:function(){return o.toString(this._color,"rgb")},toRGBA:function(){return o.toString(this._color,"rgba")},toHEX:function(){return o.toString(this._color,"hex")},toHSL:function(){return o.toString(this._color,"hsl")},toHSLA:function(){return o.toString(this._color,"hsla")},toString:function(){return 1===this._color.a?this.toRGB():this.toRGBA()}});return r.extend(a,{_MAX_VALUE:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},_MIN_VALUE:{r:0,g:0,b:0,h:0,s:0,l:0,a:0},R:"r",G:"g",B:"b",H:"h",S:"s",L:"l",A:"a",parse:function(t){var e;return r.isString(t)&&(e=o.parseToValue(t)),r.isObject(t)&&"r"in t&&(e=t),null===e?new a:new a(e.r,e.g,e.b,e.a)},createHSL:function(t,e,n){return a.createHSLA(t,e,n,1)},createHSLA:function(t,e,n,r){var i=null;return i=["hsla("+t,e+="%",n+="%",r+")"],a.parse(i.join(", "))},createRGB:function(t,e,n){return a.createRGBA(t,e,n,1)},createRGBA:function(t,e,n,r){return new a(t,e,n,r)}}),r.extend(o,{parseToValue:function(t){var e={};if(t=i.EXTEND_STANDARD[t]||i.COLOR_STANDARD[t]||t,/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t))e=o.hexToValue(t);else if(/^(rgba?)/i.test(t))e=o.rgbaToValue(t);else{if(!/^(hsla?)/i.test(t))return null;e=o.hslaToValue(t)}return o.overflowFormat(e)},hexToValue:function(t){var e={};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t)?(t=RegExp.$1.split(""),r.each(["r","g","b"],(function(n,r){3===t.length?e[n]=o.toNumber(t[r]+t[r]):e[n]=o.toNumber(t[2*r]+t[2*r+1])})),(e=r.extend(e,o.rgbValueToHslValue(e))).a=1,e):null},rgbaToValue:function(t){var e={},n=!1;return/^(rgba?)/i.test(t)?(n=4===RegExp.$1.length,t=t.replace(/^rgba?/i,"").replace(/\s+/g,"").replace(/[^0-9,.]/g,"").split(","),r.each(["r","g","b"],(function(n,r){e[n]=0|t[r]})),(e=r.extend(e,o.rgbValueToHslValue(e))).a=n?parseFloat(t[3]):1,e):null},hslaToValue:function(t){var e={},n=!1;return/^(hsla?)/i.test(t)?(n=4===RegExp.$1.length,t=t.replace(/^hsla?/i,"").replace(/\s+/g,"").replace(/[^0-9,.]/g,"").split(","),e.h=0|t[0],e.s=0|t[1],e.l=0|t[2],e=r.extend(e,o.hslValueToRGBValue(e)),(e=o.hslValueToRGBValue(e)).a=n?parseFloat(t[3]):1,e):null},hslValueToRGBValue:function(t){function e(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+6*(e-t)*n:2*n<1?e:3*n<2?t+6*(2/3-n)*(e-t):t}var n=null,i=null,o={};return(t=r.extend({},t)).h=t.h/360,t.s=t.s/100,t.l=t.l/100,0===t.s?o.r=o.g=o.b=t.l:(n=t.l<.5?t.l*(1+t.s):t.l+t.s-t.l*t.s,i=2*t.l-n,o.r=e(i,n,t.h+1/3),o.g=e(i,n,t.h),o.b=e(i,n,t.h-1/3)),o.r=Math.min(Math.round(255*o.r),255),o.g=Math.min(Math.round(255*o.g),255),o.b=Math.min(Math.round(255*o.b),255),o},rgbValueToHslValue:function(t){var e,n,i={};return(t=r.extend({},t)).r=t.r/255,t.g=t.g/255,t.b=t.b/255,(e=Math.max(t.r,t.g,t.b))===(n=Math.min(t.r,t.g,t.b))?i.h=0:e===t.r?t.g>=t.b?i.h=60*(t.g-t.b)/(e-n):i.h=60*(t.g-t.b)/(e-n)+360:e===t.g?i.h=60*(t.b-t.r)/(e-n)+120:e===t.b&&(i.h=60*(t.r-t.g)/(e-n)+240),i.l=(e+n)/2,0===i.l||e===n?i.s=0:i.l>0&&i.l<=.5?i.s=(e-n)/(e+n):i.s=(e-n)/(2-e-n),i.h=Math.round(i.h),i.s=Math.round(100*i.s),i.l=Math.round(100*i.l),i},toString:function(t,e){var n=[];return t=r.extend({},t),-1!==e.indexOf("hsl")&&(t.s+="%",t.l+="%"),"hex"!==e?(r.each(e.split(""),(function(e){n.push(t[e])})),(e+"("+n.join(", ")+")").toLowerCase()):(n.push(o.toHexValue(+t.r)),n.push(o.toHexValue(+t.g)),n.push(o.toHexValue(+t.b)),("#"+n.join("")).toLowerCase())},toNumber:function(t){return 0|Number("0x"+t)},toHexValue:function(t){var e=t.toString(16);return 1===e.length?"0"+e:e},overflowFormat:function(t){var e=r.extend({},t);return r.each("rgba".split(""),(function(t){e.hasOwnProperty(t)&&(e[t]=Math.min(a._MAX_VALUE[t],e[t]),e[t]=Math.max(a._MIN_VALUE[t],e[t]))})),e}}),a}},_p[30]={value:function(t,e,n){function r(){return this.container.removeItem(this),this}return _p.r(11).createClass("Container",{getItems:function(){return this.items||(this.items=[])},getItem:function(t){return this.getItems()[t]},getFirstItem:function(){return this.getItem(0)},getLastItem:function(){return this.getItem(this.getItems().length-1)},indexOf:function(t){return this.getItems().indexOf(t)},eachItem:function(t){var e,n=this.getItems(),r=n.length;for(e=0;e=0&&e=1e3&&delete s[c.shift()],c.push(a),s[a]=t.apply(e,o),n?n(s[a]):s[a])}}function h(t,e,n,r,i,o,a,s,c,u){var l,f,d,p,g,m,v,b,y,w,x,A,_,S,k,N,L,C,P,E,I,M,T,O,R,D,B,F,j,q=Math,z=q.PI,V=Math.abs,U=120*z/180,H=z/180*(+i||0),G=[],W=function(t,e,n){return{x:t*q.cos(n)-e*q.sin(n),y:t*q.sin(n)+e*q.cos(n)}};if(u?(w=u[0],x=u[1],b=u[2],y=u[3]):(t=(l=W(t,e,-H)).x,e=l.y,s=(l=W(s,c,-H)).x,c=l.y,q.cos(z/180*i),q.sin(z/180*i),(f=(d=(t-s)/2)*d/(n*n)+(p=(e-c)/2)*p/(r*r))>1&&(n*=f=q.sqrt(f),r*=f),g=n*n,m=r*r,b=(v=(o==a?-1:1)*q.sqrt(V((g*m-g*p*p-m*d*d)/(g*p*p+m*d*d))))*n*p/r+(t+s)/2,y=v*-r*d/n+(e+c)/2,w=q.asin(((e-y)/r).toFixed(9)),x=q.asin(((c-y)/r).toFixed(9)),(w=tx&&(w-=2*z),!a&&x>w&&(x-=2*z)),V(A=x-w)>U&&(_=x,S=s,k=c,x=w+U*(a&&x>w?1:-1),G=h(s=b+n*q.cos(x),c=y+r*q.sin(x),n,r,i,0,a,S,k,[x,_,b,y])),A=x-w,N=q.cos(w),L=q.sin(w),C=q.cos(x),P=q.sin(x),R=[s+(I=4/3*n*(E=q.tan(A/4)))*P,c-(M=4/3*r*E)*C],D=[s,c],(O=[t+I*L,e-M*N])[0]=2*(T=[t,e])[0]-O[0],O[1]=2*T[1]-O[1],u)return[O,R,D].concat(G);for(B=[],F=0,j=(G=[O,R,D].concat(G).join().split(",")).length;F2&&(e.push([n].concat(i.splice(0,2))),o="l",n="m"==n?"l":"L"),"r"==o)e.push([n].concat(i));else for(;i.length>=c[o]&&(e.push([n].concat(i.splice(0,c[o]))),c[o]););})),e.isUniform=!0,e.toString=o.pathToString,e})),o.pathToAbsolute=l((function(t){var e,n,r,i,a,s,c,u,l=t.isUniform?t:o.parsePathString(o.pathToString(t)),h=[],f=0,d=0,p=0,g=0,m=0;for("M"==l[0][0]&&(p=f=+l[0][1],g=d=+l[0][2],m++,h[0]=["M",f,d]),r=m,s=l.length;r1)return o.subPath(t,1,n).concat(o.subPath(t,e-1));t.isCurve||(t=o.pathToCurve(t));var i,a,s,c,u,l,h,f,d,g=p(t),m=g.totalLength,v=m*e,b=m*(n||0),y=[];for(i=0,a=t.length;ic)l=h.slice(h.length-2);else{if(b>=s)d=!0,l=(f=o.subBezier(h,Math.min((v-s)/u,1),(b-s)/u)).slice(0,2),y.push(["M"].concat(f.slice(0,2))),y.push(["C"].concat(f.slice(2)));else if(v>=c)y.push(t[i].slice());else{if(!(v>=s))break;f=o.subBezier(h,(v-s)/u),y.push(["C"].concat(f.slice(2))),d=!1}l=h.slice(h.length-2)}}else l=t[i].slice(1),d&&y.push(t[i].slice());return y.isAbsolute=!0,y.isCurve=!0,y.isUniform=!0,y.toString=o.pathToString,y},o.pointAtPath=function(t,e){t.isCurve||(t=o.pathToCurve(t));var i=o.subPath(t,e),a="Z"==i[i.length-1][0]?i[i.length-2]:i[i.length-1];a=a.slice(1);var s=n.parse(a.slice(4)),c=n.parse(a.slice(2,4));return s.tan=r.fromPoints(c,s).normalize(),s},o.pathLength=l((function(t){return t.isCurve||(t=o.pathToCurve(t)),p(t).totalLength})),o.pathKeyPoints=l((function(t){var e,n,r;for(t.isCurve||(t=o.pathToCurve(t)),r=[],e=0,n=t.length;e2&&t.close(),this}})}},_p[54]={value:function(t,e,n){return _p.r(11).createClass("Polygon",{base:_p.r(53),constructor:function(t){this.callBase(t,!0)}})}},_p[55]={value:function(t,e,n){return _p.r(11).createClass("Polyline",{base:_p.r(53),constructor:function(t){this.callBase(t)}})}},_p[56]={value:function(t,e,n){var r=_p.r(36);return _p.r(11).createClass("RadialGradientBrush",{base:r,constructor:function(t){this.callBase("radialGradient",t),this.setCenter(.5,.5),this.setFocal(.5,.5),this.setRadius(.5)},setCenter:function(t,e){return this.node.setAttribute("cx",t),this.node.setAttribute("cy",e),this},getCenter:function(){return{x:+this.node.getAttribute("cx"),y:+this.node.getAttribute("cy")}},setFocal:function(t,e){return this.node.setAttribute("fx",t),this.node.setAttribute("fy",e),this},getFocal:function(){return{x:+this.node.getAttribute("fx"),y:+this.node.getAttribute("fy")}},setRadius:function(t){return this.node.setAttribute("r",t),this},getRadius:function(){return+this.node.getAttribute("r")}})}},_p[57]={value:function(t,e,n){var r={},i=_p.r(12),o=_p.r(51),a=_p.r(26);i.extend(r,{formatRadius:function(t,e,n){var r=Math.floor(Math.min(t/2,e/2));return Math.min(r,n)}});var s=_p.r(11).createClass("Rect",{base:_p.r(47),constructor:function(t,e,n,i,o){this.callBase(),this.x=n||0,this.y=i||0,this.width=t||0,this.height=e||0,this.radius=r.formatRadius(this.width,this.height,o||0),this.update()},update:function(){var t=this.x,e=this.y,n=this.width,r=this.height,i=this.radius,o=this.getDrawer().redraw();return i?(n-=2*i,r-=2*i,o.push("M",t+i,e),o.push("h",n),o.push("a",i,i,0,0,1,i,i),o.push("v",r),o.push("a",i,i,0,0,1,-i,i),o.push("h",-n),o.push("a",i,i,0,0,1,-i,-i),o.push("v",-r),o.push("a",i,i,0,0,1,i,-i),o.push("z")):(o.push("M",t,e),o.push("h",n),o.push("v",r),o.push("h",-n),o.push("z")),o.done(),this},setWidth:function(t){return this.width=t,this.update()},setHeight:function(t){return this.height=t,this.update()},setSize:function(t,e){return this.width=t,this.height=e,this.update()},setBox:function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this.update()},getBox:function(){return new a(this.x,this.y,this.width,this.height)},getRadius:function(){return this.radius},setRadius:function(t){return this.radius=r.formatRadius(this.width,this.height,t||0),this.update()},getPosition:function(){return new o(this.x,this.y)},setPosition:function(t,e){if(1==arguments.length){var n=o.parse(arguments[0]);e=n.y,t=n.x}return this.x=t,this.y=e,this.update()},getWidth:function(){return this.width},getHeight:function(){return this.height},getPositionX:function(){return this.x},getPositionY:function(){return this.y},setPositionX:function(t){return this.x=t,this.update()},setPositionY:function(t){return this.y=t,this.update()}});return s}},_p[58]={value:function(t,e,n){var r=_p.r(51);return _p.r(11).createClass("RegularPolygon",{base:_p.r(47),constructor:function(t,e,n,i){this.callBase(),this.radius=e||0,this.side=Math.max(t||3,3),arguments.length>2&&3==arguments.length&&(i=n.y,n=n.x),this.center=new r(n,i),this.draw()},getSide:function(){return this.side},setSide:function(t){return this.side=t,this.draw()},getRadius:function(){return this.radius},setRadius:function(t){return this.radius=t,this.draw()},draw:function(){var t,e=this.radius,n=this.side,i=2*Math.PI/n,o=this.getDrawer();for(o.clear(),o.moveTo(r.fromPolar(e,Math.PI/2,"rad").offset(this.center)),t=0;t<=n;t++)o.lineTo(r.fromPolar(e,i*t+Math.PI/2,"rad").offset(this.center));return o.close(),this}})}},_p[59]={value:function(t,e,n){var r=_p.r(68);return _p.r(11).createClass("Resource",{constructor:function(t,e){this.callBase(),this.node=r.createNode(t),e&&e.addResource(this)},toString:function(){return"url(#"+this.node.id+")"}})}},_p[60]={value:function(t,e,n){return _p.r(11).createClass({base:_p.r(69),constructor:function(t,e){this.callBase([t,e],360,0)},getInnerRadius:function(){return this.getSectionArray()[0]},getOuterRadius:function(){return this.getSectionArray()[1]},setInnerRadius:function(t){this.setSectionArray([t,this.getOuterRadius()])},setOuterRadius:function(t){this.setSectionArray([this.getInnerRadius(),t])}})}},_p[61]={value:function(t,e,n){var r=_p.r(68),i=_p.r(12),o=_p.r(34),a=_p.r(67),s=_p.r(32),c=_p.r(44),u=(_p.r(49),Array.prototype.slice),l=_p.r(26),h=_p.r(11).createClass("Shape",{mixins:[o,a,s],constructor:function(t){this.node=r.createNode(t),this.node.shape=this,this.transform={translate:null,rotate:null,scale:null,matrix:null},this.callMixin()},getId:function(){return this.node.id},setId:function(t){return this.node.id=t,this},getNode:function(){return this.node},getBoundaryBox:function(){var t;try{t=this.node.getBBox()}catch(e){t={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}return new l(t)},getRenderBox:function(t){var e=this.getBoundaryBox();return this.getTransform(t).transformBox(e)},getWidth:function(){return this.getRenderBox().width},getHeight:function(){return this.getRenderBox().height},getSize:function(){var t=this.getRenderBox();return delete t.x,delete t.y,t},setOpacity:function(t){return this.node.setAttribute("opacity",t),this},getOpacity:function(){var t=this.node.getAttribute("opacity");return t?+t:1},setVisible:function(t){return t?this.node.removeAttribute("display"):this.node.setAttribute("display","none"),this},getVisible:function(){this.node.getAttribute("display")},hasAncestor:function(t){for(var e=this.container;e;){if(e===t)return!0;e=e.container}return!1},getTransform:function(t){return c.getCTM(this,t)},clearTransform:function(){return this.node.removeAttribute("transform"),this.transform={translate:null,rotate:null,scale:null,matrix:null},this.trigger("shapeupdate",{type:"transform"}),this},_applyTransform:function(){var t=this.transform,e=[];return t.translate&&e.push(["translate(",t.translate,")"]),t.rotate&&e.push(["rotate(",t.rotate,")"]),t.scale&&e.push(["scale(",t.scale,")"]),t.matrix&&e.push(["matrix(",t.matrix,")"]),this.node.setAttribute("transform",i.flatten(e).join(" ")),this},setMatrix:function(t){return this.transform.matrix=t,this._applyTransform()},setTranslate:function(t){return this.transform.translate=null!==t&&u.call(arguments)||null,this._applyTransform()},setRotate:function(t){return this.transform.rotate=null!==t&&u.call(arguments)||null,this._applyTransform()},setScale:function(t){return this.transform.scale=null!==t&&u.call(arguments)||null,this._applyTransform()},translate:function(t,e){var n=this.transform.matrix||new c;return void 0===e&&(e=0),this.transform.matrix=n.translate(t,e),this._applyTransform()},rotate:function(t){var e=this.transform.matrix||new c;return this.transform.matrix=e.rotate(t),this._applyTransform()},scale:function(t,e){var n=this.transform.matrix||new c;return void 0===e&&(e=t),this.transform.matrix=n.scale(t,e),this._applyTransform()},skew:function(t,e){var n=this.transform.matrix||new c;return void 0===e&&(e=t),this.transform.matrix=n.skew(t,e),this._applyTransform()},stroke:function(t,e){return t&&t.stroke?t.stroke(this):t?(this.node.setAttribute("stroke",t.toString()),e&&this.node.setAttribute("stroke-width",e)):null===t&&this.node.removeAttribute("stroe"),this},fill:function(t){return t&&this.node.setAttribute("fill",t.toString()),null===t&&this.node.removeAttribute("fill"),this},setAttr:function(t,e){var n=this;return i.isObject(t)&&i.each(t,(function(t,e){n.setAttr(e,t)})),null==e||""===e?this.node.removeAttribute(t):this.node.setAttribute(t,e),this},getAttr:function(t){return this.node.getAttribute(t)}});return h}},_p[62]={value:function(t,e,n){var r=_p.r(30),i=_p.r(12),o=_p.r(11).createClass("ShapeContainer",{base:r,isShapeContainer:!0,handleAdd:function(t,e){var n=this.getShapeNode();n.insertBefore(t.node,n.childNodes[e]||null),t.trigger("add",{container:this}),t.notifyTreeModification&&t.notifyTreeModification("treeadd",this)},handleRemove:function(t,e){this.getShapeNode().removeChild(t.node),t.trigger("remove",{container:this}),t.notifyTreeModification&&t.notifyTreeModification("treeremove",this)},notifyTreeModification:function(t,e){this.eachItem((function(n,r){r.notifyTreeModification&&r.notifyTreeModification(t,e),r.trigger(t,{container:e})}))},getShape:function(t){return this.getItem(t)},addShape:function(t,e){return this.addItem(t,e)},put:function(t){return this.addShape(t),t},appendShape:function(t){return this.addShape(t)},prependShape:function(t){return this.addShape(t,0)},replaceShape:function(t,e){var n=this.indexOf(e);if(-1!==n)return this.removeShape(n),this.addShape(t,n),this},addShapeBefore:function(t,e){var n=this.indexOf(e);return this.addShape(t,n)},addShapeAfter:function(t,e){var n=this.indexOf(e);return this.addShape(t,-1===n?void 0:n+1)},addShapes:function(t){return this.addItems(t)},removeShape:function(t){return this.removeItem(t)},getShapes:function(){return this.getItems()},getShapesByType:function(t){var e=[];return function n(r){t.toLowerCase()==r.getType().toLowerCase()&&e.push(r),r.isShapeContainer&&i.each(r.getShapes(),(function(t){n(t)}))}(this),e},getShapeById:function(t){return this.getShapeNode().getElementById(t).shape},arrangeShape:function(t,e){return this.removeShape(t).addShape(t,e)},getShapeNode:function(){return this.shapeNode||this.node}}),a=_p.r(61);return _p.r(11).extendClass(a,{bringTo:function(t){return this.container.arrangeShape(this,t),this},bringFront:function(){return this.bringTo(this.container.indexOf(this)+1)},bringBack:function(){return this.bringTo(this.container.indexOf(this)-1)},bringTop:function(){return this.container.removeShape(this).addShape(this),this},bringRear:function(){return this.bringTo(0)},bringRefer:function(t,e){return t.container&&(this.remove&&this.remove(),t.container.addShape(this,t.container.indexOf(t)+(e||0))),this},bringAbove:function(t){return this.bringRefer(t)},bringBelow:function(t){return this.bringRefer(t,1)},replaceBy:function(t){return this.container&&(t.bringAbove(this),this.remove()),this}}),o}},_p[63]={value:function(t,e,n){var r=_p.r(44),i=_p.r(12),o=_p.r(51);return _p.r(11).createClass("ShapeEvent",{constructor:function(t){var e=null;i.isObject(t.target)?i.extend(this,t):(this.type=t.type,(e=t.target).correspondingUseElement&&(e=e.correspondingUseElement),this.originEvent=t,this.targetShape=e.shape||e.paper||t.currentTarget&&(t.currentTarget.shape||t.currentTarget.paper),t._kityParam&&i.extend(this,t._kityParam))},preventDefault:function(){var t=this.originEvent;return!t||(t.preventDefault?(t.preventDefault(),t.cancelable):(t.returnValue=!1,!0))},getPosition:function(t,e){if(!this.originEvent)return null;var n=this.originEvent.touches?this.originEvent.touches[e||0]:this.originEvent,i=this.targetShape,a=i.shapeNode||i.node,s=new o(n&&n.clientX||0,n&&n.clientY||0),c=r.transformPoint(s,a.getScreenCTM().inverse());return r.getCTM(i,t||"view").transformPoint(c)},stopPropagation:function(){var t=this.originEvent;if(!t)return!0;t.stopPropagation?t.stopPropagation():t.cancelBubble=!1}})}},_p[64]={value:function(t,e,n){return _p.r(11).createClass("ShapePoint",{base:_p.r(51),constructor:function(t,e){this.callBase(t,e)},setX:function(t){return this.setPoint(t,this.y)},setY:function(t){return this.setPoint(this.x,t)},setPoint:function(t,e){return this.x=t,this.y=e,this.update(),this},getPoint:function(){return this},update:function(){return this.container&&this.container.update&&this.container.update(),this}})}},_p[65]={value:{COLOR_STANDARD:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00"},EXTEND_STANDARD:{}}},_p[66]={value:function(t,e,n){var r={3:.2,5:.38196601125,6:.57735026919,8:.541196100146,10:.726542528005,12:.707106781187},i=_p.r(51);return _p.r(11).createClass("Star",{base:_p.r(47),constructor:function(t,e,n,r,o){this.callBase(),this.vertex=t||3,this.radius=e||0,this.shrink=n,this.offset=r||new i(0,0),this.angleOffset=o||0,this.draw()},getVertex:function(){return this.vertex},setVertex:function(t){return this.vertex=t,this.draw()},getRadius:function(){return this.radius},setRadius:function(t){return this.radius=t,this.draw()},getShrink:function(){return this.shrink},setShrink:function(t){return this.shrink=t,this.draw()},getOffset:function(){return this.offset},setOffset:function(t){return this.offset=t,this.draw()},getAngleOffset:function(){return this.angleOffset},setAngleOffset:function(t){return this.angleOffset=t,this.draw()},draw:function(){var t,e,n=this.radius,o=this.radius*(this.shrink||r[this.vertex]||.5),a=this.vertex,s=this.offset,c=180/a,u=this.angleOffset,l=this.getDrawer();for(l.clear(),l.moveTo(i.fromPolar(o,90)),t=1;t<=2*a;t++)e=90+c*t,t%2?l.lineTo(i.fromPolar(n,e+u).offset(s)):l.lineTo(i.fromPolar(o,e));l.close()}})}},_p[67]={value:function(t,e,n){var r=_p.r(11).createClass("ClassList",{constructor:function(t){this._node=t,this._list=t.className.toString().split(" ")},_update:function(){this._node.className=this._list.join(" ")},add:function(t){this._list.push(t),this._update()},remove:function(t){var e=this._list.indexOf(t);~e&&this._list.splice(e,1),this._update()},contains:function(t){return!!~this._list.indexOf(t)}});function i(t){return t.classList||(t.classList=new r(t)),t.classList}return _p.r(11).createClass("Styled",{addClass:function(t){return i(this.node).add(t),this},removeClass:function(t){return i(this.node).remove(t),this},hasClass:function(t){return i(this.node).contains(t)},setStyle:function(t){if(2==arguments.length)return this.node.style[arguments[0]]=arguments[1],this;for(var e in t)t.hasOwnProperty(e)&&(this.node.style[e]=t[e]);return this}})}},_p[68]={value:function(t,e,n){var r=document,i=0,o={createNode:function(t){var e=r.createElementNS(o.ns,t);return e.id="kity_"+t+"_"+i++,e},defaults:{stroke:"none",fill:"none"},xlink:"http://www.w3.org/1999/xlink",ns:"http://www.w3.org/2000/svg"};return o}},_p[69]={value:function(t,e,n){var r=_p.r(51);return _p.r(11).createClass("Sweep",{base:_p.r(47),constructor:function(t,e,n){this.callBase(),this.sectionArray=t||[],this.angle=e||0,this.angleOffset=n||0,this.draw()},getSectionArray:function(){return this.sectionArray},setSectionArray:function(t){return this.sectionArray=t,this.draw()},getAngle:function(){return this.angle},setAngle:function(t){return this.angle=t,this.draw()},getAngleOffset:function(){return this.angleOffset},setAngleOffset:function(t){return this.angleOffset=t,this.draw()},draw:function(){var t,e=this.sectionArray;for(t=0;t0?1:-1)*e/Math.PI}});return o.fromPoints=function(t,e){return new o(e.x-t.x,e.y-t.y)},o.fromPolar=function(){var t=r.fromPolar.apply(r,arguments);return new o(t.x,t.y)},_p.r(11).extendClass(r,{asVector:function(){return new o(this.x,this.y)}}),o}},_p[75]={value:function(t,e,n){var r=_p.r(62),i=_p.r(76);return _p.r(11).createClass("View",{mixins:[r,i],base:_p.r(75),constructor:function(){this.callBase("view")}})}},_p[76]={value:function(t,e,n){return _p.r(11).createClass("ViewBox",{getViewBox:function(){var t=this.node.getAttribute("viewBox");return null===t?{x:0,y:0,width:this.node.clientWidth||this.node.parentNode.clientWidth,height:this.node.clientHeight||this.node.parentNode.clientHeight}:{x:+(t=t.split(" "))[0],y:+t[1],width:+t[2],height:+t[3]}},setViewBox:function(t,e,n,r){return this.node.setAttribute("viewBox",[t,e,n,r].join(" ")),this}})}},_p[77]={value:function(t,e,n){var r={},i=_p.r(12);r.version="2.0.0",i.extend(r,{createClass:_p.r(11).createClass,extendClass:_p.r(11).extendClass,Utils:i,Browser:_p.r(10),Box:_p.r(26),Bezier:_p.r(24),BezierPoint:_p.r(25),Circle:_p.r(27),Clip:_p.r(28),Color:_p.r(29),Container:_p.r(30),Curve:_p.r(31),Ellipse:_p.r(33),Group:_p.r(37),Gradient:_p.r(36),HyperLink:_p.r(38),Image:_p.r(39),Line:_p.r(40),LinearGradient:_p.r(41),Mask:_p.r(43),Matrix:_p.r(44),Marker:_p.r(42),Palette:_p.r(45),Paper:_p.r(46),Path:_p.r(47),Pattern:_p.r(48),Pen:_p.r(49),Point:_p.r(51),PointContainer:_p.r(52),Polygon:_p.r(54),Polyline:_p.r(55),Pie:_p.r(50),RadialGradient:_p.r(56),Resource:_p.r(59),Rect:_p.r(57),RegularPolygon:_p.r(58),Ring:_p.r(60),Shape:_p.r(61),ShapePoint:_p.r(64),ShapeContainer:_p.r(62),Sweep:_p.r(69),Star:_p.r(66),Text:_p.r(70),TextSpan:_p.r(72),Use:_p.r(73),Vector:_p.r(74),g:_p.r(35),Animator:_p.r(0),Easing:_p.r(1),OpacityAnimator:_p.r(4),RotateAnimator:_p.r(6),ScaleAnimator:_p.r(7),Timeline:_p.r(8),TranslateAnimator:_p.r(9),PathAnimator:_p.r(5),MotionAnimator:_p.r(3),requestFrame:_p.r(2).requestFrame,releaseFrame:_p.r(2).releaseFrame,Filter:_p.r(21),GaussianblurFilter:_p.r(22),ProjectionFilter:_p.r(23),ColorMatrixEffect:_p.r(14),CompositeEffect:_p.r(15),ConvolveMatrixEffect:_p.r(16),Effect:_p.r(17),GaussianblurEffect:_p.r(18),OffsetEffect:_p.r(19)}),n.exports=r}};var moduleMapping={"expose-kity":13};function use(t){_p.r([moduleMapping[t]])}use("expose-kity")})()},29157:(t,e,n)=>{var r=n(34155);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}!function(){var t={r:function(e){if(t[e].inited)return t[e].value;if("function"!=typeof t[e].value)return t[e].inited=!0,t[e].value;var n={exports:{}},r=t[e].value(null,n.exports,n);if(t[e].inited=!0,t[e].value=r,void 0!==r)return r;for(var i in n.exports)if(n.exports.hasOwnProperty(i))return t[e].inited=!0,t[e].value=n.exports,n.exports}};t[0]={value:function(e,n,r){var i=t.r(17),o=t.r(11),a=(new i.Marker).pipe((function(){var t=new i.Circle(6);this.addShape(t),this.setRef(6,0).setViewBox(-7,-7,14,14).setWidth(7).setHeight(7),this.dot=t,this.node.setAttribute("markerUnits","userSpaceOnUse")}));o.register("arc",(function(t,e,n,r,o){var s,c,u,l=t.getLayoutBox(),h=e.getLayoutBox(),f=Math.abs,d=[],p=l.x>h.x?"right":"left";t.getMinder().getPaper().addResource(a),s=new i.Point(h.cx,h.cy),c="left"==p?new i.Point(l.right+2,l.cy):new i.Point(l.left-2,l.cy),u=i.Vector.fromPoints(s,c),d.push("M",s),d.push("A",f(u.x),f(u.y),0,0,u.x*u.y>0?0:1,c),n.setMarker(a),a.dot.fill(o),n.setPathData(d)}))}},t[1]={value:function(e,n,r){var i=t.r(17),o=t.r(11),a=(new i.Marker).pipe((function(){var t=new i.Circle(6);this.addShape(t),this.setRef(6,0).setViewBox(-7,-7,14,14).setWidth(7).setHeight(7),this.dot=t,this.node.setAttribute("markerUnits","userSpaceOnUse")}));o.register("arc_tp",(function(t,e,n,r,o){var s=t.getLayoutBox(),c=e.getLayoutBox(),u=t.getIndex(),l=e.getChildren()[u+1];t.getIndex()>0&&(c=e.getChildren()[u-1].getLayoutBox());var h,f,d=(Math.abs,[]);s.x,c.x,t.getMinder().getPaper().addResource(a),h=new i.Point(c.cx,c.cy),f=new i.Point(s.cx,s.cy);var p=Math.sqrt(Math.pow(h.x-f.x,2)+Math.pow(h.y-f.y,2));if(p=0==t.getIndex()?.4*p:p,i.Vector.fromPoints(h,f),d.push("M",h),d.push("A",p,p,0,0,1,f),n.setMarker(a),a.dot.fill(o),n.setPathData(d),l&&l.getConnection()){var g=l.getConnection(),m=l.getLayoutBox(),v=new i.Point(m.cx,m.cy),b=Math.sqrt(Math.pow(f.x-v.x,2)+Math.pow(f.y-v.y,2));(d=[]).push("M",f),d.push("A",b,b,0,0,1,v),g.setMarker(a),a.dot.fill(o),g.setPathData(d)}}))}},t[2]={value:function(e,n,r){t.r(17),t.r(11).register("bezier",(function(t,e,n){var r=e.getLayoutVertexOut(),i=t.getLayoutVertexIn(),o=e.getLayoutVectorOut().normalize(),a=Math.round,s=Math.abs,c=[];if(c.push("M",a(r.x),a(r.y)),s(o.x)>s(o.y)){var u=(i.x+r.x)/2;c.push("C",u,r.y,u,i.y,i.x,i.y)}else{var l=(i.y+r.y)/2;c.push("C",r.x,l,i.x,l,i.x,i.y)}n.setMarker(null),n.setPathData(c)}))}},t[3]={value:function(e,n,r){t.r(17),t.r(11).register("fish-bone-master",(function(t,e,n){var r=e.getLayoutVertexOut(),i=t.getLayoutVertexIn(),o=Math.abs,a=o(r.y-i.y),s=o(r.x-i.x),c=[];c.push("M",r.x,r.y),c.push("h",s-a),c.push("L",i.x,i.y),n.setMarker(null),n.setPathData(c)}))}},t[4]={value:function(e,n,r){t.r(17),t.r(11).register("l",(function(t,e,n){var r=e.getLayoutVertexOut(),i=t.getLayoutVertexIn(),o=e.getLayoutVectorOut(),a=[],s=Math.round,c=Math.abs;a.push("M",r.round()),c(o.x)>c(o.y)?a.push("H",s(i.x)):a.push("V",i.y),a.push("L",i),n.setPathData(a)}))}},t[5]={value:function(e,n,r){t.r(17),t.r(11).register("poly",(function(t,e,n,r){var i=e.getLayoutVertexOut(),o=t.getLayoutVertexIn(),a=e.getLayoutVectorOut().normalize(),s=Math.round,c=Math.abs,u=[];switch(u.push("M",s(i.x),s(i.y)),!0){case c(a.x)>c(a.y)&&a.x<0:u.push("h",-e.getStyle("margin-left")),u.push("v",o.y-i.y),u.push("H",o.x);break;case c(a.x)>c(a.y)&&a.x>=0:u.push("h",e.getStyle("margin-right")),u.push("v",o.y-i.y),u.push("H",o.x);break;case c(a.x)<=c(a.y)&&a.y<0:u.push("v",-e.getStyle("margin-top")),u.push("h",o.x-i.x),u.push("V",o.y);break;case c(a.x)<=c(a.y)&&a.y>=0:u.push("v",e.getStyle("margin-bottom")),u.push("h",o.x-i.x),u.push("V",o.y)}n.setMarker(null),n.setPathData(u)}))}},t[6]={value:function(e,n,r){var i=t.r(17);t.r(11).register("under",(function(t,e,n,r,o){var a,s,c,u,l=t.getLayoutBox(),h=e.getLayoutBox(),f=(Math.abs,[]),d=l.x>h.x?"right":"left",p=(t.getStyle("connect-radius"),l.bottom+3),g="sub"==e.getType()?h.bottom+3:h.cy;"right"==d?(a=new i.Point(h.right,g),s=new i.Point(l.left-10,p),c=new i.Point(l.right,p)):(a=new i.Point(h.left,g),s=new i.Point(l.right+10,p),c=new i.Point(l.left,p)),u=(a.x+s.x)/2,f.push("M",a),f.push("C",u,a.y,u,s.y,s),f.push("L",c),n.setMarker(null),n.setPathData(f)}))}},t[7]={value:function(e,n,r){var i,o=t.r(17),a=t.r(19);-1!=location.href.indexOf("boxv")&&(Object.defineProperty(o.Box.prototype,"visualization",{get:function(){return i?i.setBox(this):null}}),a.registerInitHook((function(){this.on("paperrender",(function(){(i=new o.Rect).fill("rgba(200, 200, 200, .5)"),i.stroke("orange"),this.getRenderContainer().addShape(i)}))})))}},t[8]={value:function(e,n,r){var i=t.r(19),o={enableAnimation:!0,layoutAnimationDuration:300,viewAnimationDuration:100,zoomAnimationDuration:300},a={};i.registerInitHook((function(){this.setDefaultOptions(o),this.getOption("enableAnimation")||this.disableAnimation()})),i.prototype.enableAnimation=function(){for(var t in o)o.hasOwnProperty(t)&&this.setOption(a[t])},i.prototype.disableAnimation=function(){for(var t in o)o.hasOwnProperty(t)&&(a[t]=this.getOption(t),this.setOption(t,0))}}},t[9]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19)),a=(t.r(21),t.r(13)),s=i.createClass("Command",{constructor:function(){this._isContentChange=!0,this._isSelectionChange=!1},execute:function(t,e){throw new Error("Not Implement: Command.execute()")},setContentChanged:function(t){this._isContentChange=!!t},isContentChanged:function(){return this._isContentChange},setSelectionChanged:function(t){this._isSelectionChange=!!t},isSelectionChanged:function(){return this._isContentChange},queryState:function(t){return 0},queryValue:function(t){return 0},isNeedUndo:function(){return!0}});s.STATE_NORMAL=0,s.STATE_ACTIVE=1,s.STATE_DISABLED=-1,i.extendClass(o,{_getCommand:function(t){return this._commands[t.toLowerCase()]},_queryCommand:function(t,e,n){var r=this._getCommand(t);if(r){var i=r["query"+e];if(i)return i.apply(r,[this].concat(n))}return 0},queryCommandState:function(t){return this._queryCommand(t,"State",[].slice.call(arguments,1))},queryCommandValue:function(t){return this._queryCommand(t,"Value",[].slice.call(arguments,1))},execCommand:function(t){if(!t)return null;t=t.toLowerCase();var e,n,r,i=[].slice.call(arguments,1),o=this;return r={command:e=this._getCommand(t),commandName:t.toLowerCase(),commandArgs:i},!(!e||!~this.queryCommandState(t))&&(this._hasEnterExecCommand?(n=e.execute.apply(e,[o].concat(i)),this._hasEnterExecCommand||this._interactChange()):(this._hasEnterExecCommand=!0,this._fire(new a("beforeExecCommand",r,!0))||(this._fire(new a("preExecCommand",r,!1)),n=e.execute.apply(e,[o].concat(i)),this._fire(new a("execCommand",r,!1)),e.isContentChanged()&&this._firePharse(new a("contentchange")),this._interactChange()),this._hasEnterExecCommand=!1),void 0===n?null:n)}}),r.exports=s}},t[10]={value:function(e,n,r){function i(t,e){e(t),t.children&&t.children.forEach((function(t){i(t,e)}))}return t.r(33),function(t){switch(t.version||(t.root?"1.4.0":"1.1.3")){case"1.1.3":!function(t){var e=t.data.currentstyle;delete t.data.currentstyle,"bottom"==e?(t.template="structure",t.theme="snow"):"default"==e&&(t.template="default",t.theme="classic"),i(t,(function(t){var e=t.data;"PriorityIcon"in e&&(e.priority=e.PriorityIcon,delete e.PriorityIcon),"ProgressIcon"in e&&(e.progress=1+(e.ProgressIcon-1<<1),delete e.ProgressIcon),delete e.point,delete e.layout}))}(t);case"1.2.0":case"1.2.1":!function(t){i(t,(function(t){var e=t.data;delete e.layout_bottom_offset,delete e.layout_default_offset,delete e.layout_filetree_offset}))}(t);case"1.3.0":case"1.3.1":case"1.3.2":case"1.3.3":case"1.3.4":case"1.3.5":!function(t){t.root={data:t.data,children:t.children},delete t.data,delete t.children}(t)}return t}}},t[11]={value:function(e,n,r){function i(t,e){l[t]=e}var o=t.r(17),a=t.r(33),s=t.r(20),c=t.r(19),u=t.r(21),l={};i("default",(function(t,e,n){n.setPathData(["M",e.getLayoutVertexOut(),"L",t.getLayoutVertexIn()])})),o.extendClass(u,{getConnect:function(){return this.data.connect||"default"},getConnectProvider:function(){return l[this.getConnect()]||l.default},getConnection:function(){return this._connection||null}}),o.extendClass(c,{getConnectContainer:function(){return this._connectContainer},createConnect:function(t){if(!t.isRoot()){var e=new o.Path;t._connection=e,this._connectContainer.addShape(e),this.updateConnect(t)}},removeConnect:function(t){var e=this;t.traverse((function(t){e._connectContainer.removeShape(t._connection),t._connection=null}))},updateConnect:function(t){var e=t._connection,n=t.parent;if(n&&e){if(n.isCollapsed())return void e.setVisible(!1);e.setVisible(!0);var r=t.getConnectProvider(),i=t.getStyle("connect-color")||"white",o=t.getStyle("connect-width")||2;e.stroke(i,o),r(t,n,e,o,i),o%2==0?e.setTranslate(.5,.5):e.setTranslate(0,0)}}}),s.register("Connect",{init:function(){this._connectContainer=(new o.Group).setId(a.uuid("minder_connect_group")),this.getRenderContainer().prependShape(this._connectContainer)},events:{nodeattach:function(t){this.createConnect(t.node)},nodedetach:function(t){this.removeConnect(t.node)},"layoutapply layoutfinish noderender":function(t){this.updateConnect(t.node)}}}),n.register=i}},t[12]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19)),a=(t.r(21),t.r(13)),s=t.r(10),c=t.r(25),u={};n.registerProtocol=function(t,e){for(var n in u[t]=e,u)u.hasOwnProperty(n)&&(u[n]=u[n],u[n].name=n)},n.getRegisterProtocol=function(t){return void 0===t?u:u[t]||null},i.extendClass(o,{setup:function(t){if("string"==typeof t&&(t=document.querySelector(t)),t){var e=t.getAttribute("minder-data-type");if(e in u){var n=t.textContent;t.textContent=null,this.renderTo(t),this.importData(e,n)}return this}},exportJson:function(){var t={root:function t(e){var n={};n.data=e.getData();var r=e.getChildren();n.children=[];for(var i=0;i200&&(e=0),function t(n,s){var c=n.getLayoutTransform().merge(s.clone()),u=n.getGlobalLayoutTransform()||new o.Matrix,l=n.getLayoutOffset();c.translate(l.x,l.y),c.m.e=Math.round(c.m.e),c.m.f=Math.round(c.m.f),n._layoutTimeline&&(n._layoutTimeline.stop(),n._layoutTimeline=null),e?n._layoutTimeline=new o.Animator(u,c,i).start(n,e,"ease").on("finish",(function(){setTimeout((function(){i(n,c),a.fire("layoutfinish",{node:n,matrix:c}),r()}),150)})):(i(n,c),a.fire("layoutfinish",{node:n,matrix:c}),r());for(var h=0;h=0&&((e=this.children.splice(n,1)[0]).parent=null,e.root=e)},clearChildren:function(){this.children=[]},getChild:function(t){return this.children[t]},getRenderContainer:function(){return this.rc},getCommonAncestor:function(t){return c.getCommonAncestor(this,t)},contains:function(t){return this==t||this.isAncestorOf(t)},clone:function(){var t=new c;return t.data=a.clone(this.data),this.children.forEach((function(e){t.appendChild(e.clone())})),t},compareTo:function(t){if(!a.comparePlainObject(this.data,t.data))return!1;if(!a.comparePlainObject(this.temp,t.temp))return!1;if(this.children.length!=t.children.length)return!1;for(var e=0;this.children[e];){if(!this.children[e].compareTo(t.children[e]))return!1;e++}return!0},getMinder:function(){return this.getRoot().minder}});c.getCommonAncestor=function(t,e){if(t instanceof Array)return c.getCommonAncestor.apply(this,t);switch(arguments.length){case 1:return t.parent||t;case 2:if(t.isAncestorOf(e))return t;if(e.isAncestorOf(t))return e;for(var n=t.parent;n&&!n.isAncestorOf(e);)n=n.parent;return n;default:return Array.prototype.reduce.call(arguments,(function(t,e){return c.getCommonAncestor(t,e)}),t)}},o.extendClass(s,{getRoot:function(){return this._root},setRoot:function(t){this._root=t,t.minder=this},getAllNode:function(){var t=[];return this.getRoot().traverse((function(e){t.push(e)})),t},getNodeById:function(t){return this.getNodesById([t])[0]},getNodesById:function(t){var e=this.getAllNode(),n=[];return e.forEach((function(e){-1!=t.indexOf(e.getData("id"))&&n.push(e)})),n},createNode:function(t,e,n){var r=new c(t);return this.fire("nodecreate",{node:r,parent:e,index:n}),this.appendNode(r,e,n),r},appendNode:function(t,e,n){return e&&e.insertChild(t,n),this.attachNode(t),this},removeNode:function(t){t.parent&&(t.parent.removeChild(t),this.detachNode(t),this.fire("noderemove",{node:t}))},attachNode:function(t){var e=this.getRenderContainer();t.traverse((function(t){t.attached=!0,e.addShape(t.getRenderContainer())})),e.addShape(t.getRenderContainer()),this.fire("nodeattach",{node:t})},detachNode:function(t){var e=this.getRenderContainer();t.traverse((function(t){t.attached=!1,e.removeShape(t.getRenderContainer())})),this.fire("nodedetach",{node:t})},getMinderTitle:function(){return this.getRoot().getText()}}),r.exports=c}},t[22]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(19);a.registerInitHook((function(t){this._defaultOptions={}})),i.extendClass(a,{setDefaultOptions:function(t){return o.extend(this._defaultOptions,t),this},getOption:function(t){return t?t in this._options?this._options[t]:this._defaultOptions[t]:o.extend({},this._defaultOptions,this._options)},setOption:function(t,e){this._options[t]=e}})}},t[23]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(19);a.registerInitHook((function(){this._initPaper()})),i.extendClass(a,{_initPaper:function(){this._paper=new i.Paper,this._paper._minder=this,this._paper.getNode().ondragstart=function(t){t.preventDefault()},this._paper.shapeNode.setAttribute("transform","translate(0.5, 0.5)"),this._addRenderContainer(),this.setRoot(this.createNode()),this._options.renderTo&&this.renderTo(this._options.renderTo)},_addRenderContainer:function(){this._rc=(new i.Group).setId(o.uuid("minder")),this._paper.addShape(this._rc)},renderTo:function(t){if("string"==typeof t&&(t=document.querySelector(t)),t){if("script"==t.tagName.toLowerCase()){var e=document.createElement("div");e.id=t.id,e.class=t.class,t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t),t=e}t.classList.add("km-view"),this._paper.renderTo(this._renderTarget=t),this._bindEvents(),this.fire("paperrender")}return this},getRenderContainer:function(){return this._rc},getPaper:function(){return this._paper},getRenderTarget:function(){return this._renderTarget}})}},t[24]={value:function(e,n,r){function i(t,e,n,r){return n=t.createNode(e.data,n,r),e.children.forEach((function(e,r){i(t,e,n,r)})),n}function o(t,e){var n=e.path.split("/");n.shift();var r,o=n.shift();if("root"==o){var a,s,c=n.indexOf("data");if(c>-1){o="data";var u=n.splice(c+1);e.dataPath=u}else o="node";for(r=t.getRoot();a=n.shift();)"children"!=a&&(void 0!==s&&(r=r.getChild(s)),s=+a);e.index=s,e.node=r}switch(e.express=[o,e.op].join(".")){case"theme.replace":t.useTheme(e.value);break;case"template.replace":t.useTemplate(e.value);break;case"node.add":i(t,e.value,e.node,e.index).renderTree(),t.layout();break;case"node.remove":t.removeNode(e.node.getChild(e.index)),t.layout();break;case"data.add":case"data.replace":case"data.remove":var l,h=e.node.data;for(n=e.dataPath.slice();h&&n.length>1;)(l=n.shift())in h?h=h[l]:"remove"!=e.op&&(h=h[l]={});h&&(h[l=n.shift()]=e.value),"expandState"==l?r.renderTree():r.render(),t.layout()}t.fire("patch",{patch:e})}var a=t.r(17),s=t.r(19);a.extendClass(s,{applyPatches:function(t){for(var e=0;e=0;--n)if(t[n].isAncestorOf(e))return!0;return!1}var n,r=this.getSelectedNodes().slice(0),i=[],o=r.indexOf(this.getRoot());for(~o&&!t&&r.splice(o,1),r.sort((function(t,e){return t.getLevel()-e.getLevel()}));n=r.pop();)e(r,n)||i.push(n);return i}}),i.extendClass(s,{isSelected:function(){var t=this.getMinder();return t&&-1!=t.getSelectedNodes().indexOf(this)}})}},t[29]={value:function(e,n,r){function i(t){var e=0;return"string"==typeof t?t.toLowerCase().split(/\+\s*/).forEach((function(t){switch(t){case"ctrl":case"cmd":e|=4096;break;case"alt":e|=8192;break;case"shift":e|=16384;break;default:e|=s[t]}})):((t.ctrlKey||t.metaKey)&&(e|=4096),t.altKey&&(e|=8192),t.shiftKey&&(e|=16384),e|=t.keyCode),e}var o=t.r(17),a=t.r(33),s=t.r(15),c=t.r(19),u=t.r(13);o.extendClass(u,{isShortcutKey:function(t){var e=this.originEvent;return!!e&&i(t)==i(e)}}),c.registerInitHook((function(){this._initShortcutKey()})),o.extendClass(c,{_initShortcutKey:function(){this._bindShortcutKeys()},_bindShortcutKeys:function(){var t=this._shortcutKeys={};this.on("keydown",(function(e){for(var n in t)if(t.hasOwnProperty(n)&&e.isShortcutKey(n)){var r=t[n];if(r.__statusCondition&&r.__statusCondition!=this.getStatus())return;r(),e.preventDefault()}}))},addShortcut:function(t,e){var n=this._shortcutKeys;t.split(/\|\s*/).forEach((function(t){var r,i=t.split("::");i.length>1&&(t=i[1],r=i[0],e.__statusCondition=r),n[t]=e}))},addCommandShortcutKeys:function(t,e){var n=this._commandShortcutKeys||(this._commandShortcutKeys={}),r={};e?r[t]=e:r=t;var i=this;a.each(r,(function(t,e){n[e]=t,i.addShortcut(t,(function(){-1!==i.queryCommandState(e)&&i.execCommand(e)}))}))},getCommandShortcutKey:function(t){var e=this._commandShortcutKeys;return e&&e[t]||null},supportClipboardEvent:!!window.ClipboardEvent})}},t[30]={value:function(e,n,r){var i=t.r(17),o=t.r(19),a=~window.location.href.indexOf("status"),s=~window.location.href.indexOf("trace");o.registerInitHook((function(){this._initStatus()})),i.extendClass(o,{_initStatus:function(){this._status="normal",this._rollbackStatus="normal"},setStatus:function(t,e){return"readonly"!=this._status||e?(t!=this._status&&(this._rollbackStatus=this._status,this._status=t,this.fire("statuschange",{lastStatus:this._rollbackStatus,currentStatus:this._status}),a&&(console.log(window.event.type,this._rollbackStatus,"->",this._status),s&&console.trace())),this):this},rollbackStatus:function(){this.setStatus(this._rollbackStatus)},getRollbackStatus:function(){return this._rollbackStatus},getStatus:function(){return this._status}})}},t[31]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(19),s=t.r(9),c=t.r(21),u=t.r(20),l={};n.register=function(t,e){l[t]=e},o.extend(a,{getTemplateList:function(){return l}}),i.extendClass(a,function(){var t=a.prototype.getTheme;return{useTemplate:function(t,e){this.setTemplate(t),this.refresh(e||800)},getTemplate:function(){return this._template||"default"},setTemplate:function(t){this._template=t||null},getTemplateSupport:function(t){var e=l[this.getTemplate()];return e&&e[t]},getTheme:function(e){return(this.getTemplateSupport("getTheme")||t).call(this,e)}}}()),i.extendClass(c,function(){var t=c.prototype.getLayout,e=c.prototype.getConnect;return{getLayout:function(){return(this.getMinder().getTemplateSupport("getLayout")||t).call(this,this)},getConnect:function(){return(this.getMinder().getTemplateSupport("getConnect")||e).call(this,this)}}}()),u.register("TemplateModule",{commands:{template:i.createClass("TemplateCommand",{base:s,execute:function(t,e){t.useTemplate(e),t.execCommand("camera")},queryValue:function(t){return t.getTemplate()||"default"}})}})}},t[32]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(19),s=t.r(21),c=t.r(20),u=t.r(9),l={left:function(t){return 3 in t&&t[3]||1 in t&&t[1]||t[0]},right:function(t){return 1 in t&&t[1]||t[0]},top:function(t){return t[0]},bottom:function(t){return 2 in t&&t[2]||t[0]}},h={};n.register=function(t,e){h[t]=e},o.extend(a,{getThemeList:function(){return h}}),i.extendClass(a,{useTheme:function(t){return this.setTheme(t),this.refresh(800),!0},setTheme:function(t){if(t&&!h[t])throw new Error("Theme "+t+" not exists!");var e=this._theme;this._theme=t||null;var n=this.getRenderTarget();return n&&(n.classList.remove("km-theme-"+e),t&&n.classList.add("km-theme-"+t),n.style.background=this.getStyle("background")),this.fire("themechange",{theme:t}),this},getTheme:function(t){return this._theme||this.getOption("defaultTheme")||"fresh-blue"},getThemeItems:function(t){return this.getTheme(t),h[this.getTheme(t)]},getStyle:function(t,e){var n,r,i,a,s=this.getThemeItems(e);if(t in s)return s[t];if((n=t.split("-")).length<2)return null;if(r=n.pop(),(t=n.join("-"))in s){if(i=s[t],o.isArray(i)&&(a=l[r]))return a(i);if(!isNaN(i))return i}return null},getNodeStyle:function(t,e){var n=this.getStyle(t.getType()+"-"+e,t);return null!==n?n:this.getStyle(e,t)}}),i.extendClass(s,{getStyle:function(t){return this.getMinder().getNodeStyle(this,t)}}),c.register("Theme",{defaultOptions:{defaultTheme:"fresh-blue"},commands:{theme:i.createClass("ThemeCommand",{base:u,execute:function(t,e){return t.useTheme(e)},queryValue:function(t){return t.getTheme()||"default"}})}}),a.registerInitHook((function(){this.setTheme()}))}},t[33]={value:function(e,n){var r=t.r(17),i={};n.extend=r.Utils.extend.bind(r.Utils),n.each=r.Utils.each.bind(r.Utils),n.uuid=function(t){return i[t]=i[t]?i[t]+1:1,t+i[t]},n.guid=function(){return(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36)},n.trim=function(t){return t.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g,"")},n.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},n.clone=function(t){return JSON.parse(JSON.stringify(t))},n.comparePlainObject=function(t,e){return JSON.stringify(t)==JSON.stringify(e)},n.encodeHtml=function(t,e){return t?t.replace(e||/[&<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g,(function(t,e){return e?t:{"<":"<","&":"&",'"':""",">":">","'":"'"}[t]})):""},n.clearWhiteSpace=function(t){return t.replace(/[\u200b\t\r\n]/g,"")},n.each(["String","Function","Array","Number","RegExp","Object"],(function(t){var e=Object.prototype.toString;n["is"+t]=function(n){return e.apply(n)=="[object "+t+"]"}}))}},t[34]={value:function(e,n,r){r.exports=window.kityminder=t.r(35)}},t[35]={value:function(e,n,r){var i={version:t.r(19).version};t.r(33),i.Minder=t.r(19),i.Command=t.r(9),i.Node=t.r(21),t.r(22),t.r(8),i.Event=t.r(13),i.data=t.r(12),t.r(10),i.KeyMap=t.r(15),t.r(29),t.r(30),t.r(23),t.r(28),t.r(14),t.r(16),i.Module=t.r(20),t.r(26),i.Render=t.r(27),i.Connect=t.r(11),i.Layout=t.r(18),i.Theme=t.r(32),i.Template=t.r(31),i.Promise=t.r(25),t.r(7),t.r(24),t.r(42),t.r(43),t.r(44),t.r(45),t.r(46),t.r(47),t.r(48),t.r(50),t.r(49),t.r(51),t.r(52),t.r(53),t.r(54),t.r(55),t.r(56),t.r(57),t.r(58),t.r(59),t.r(60),t.r(61),t.r(62),t.r(63),t.r(64),t.r(68),t.r(65),t.r(67),t.r(66),t.r(40),t.r(36),t.r(37),t.r(38),t.r(39),t.r(41),t.r(75),t.r(78),t.r(77),t.r(76),t.r(78),t.r(80),t.r(79),t.r(0),t.r(1),t.r(2),t.r(3),t.r(4),t.r(5),t.r(6),t.r(69),t.r(73),t.r(70),t.r(72),t.r(71),t.r(74),r.exports=i}},t[36]={value:function(e,n,r){var i=t.r(17),o=t.r(18);["left","right","top","bottom"].forEach((function(t){var e="left"==t||"right"==t?"x":"y",n="left"==t||"top"==t?-1:1,r={left:"right",right:"left",top:"bottom",bottom:"top",x:"y",y:"x"};o.register(t,i.createClass({base:o,doLayout:function(o,a){var s=o.getContentBox();if("x"==e?(o.setVertexOut(new i.Point(s[t],s.cy)),o.setLayoutVectorOut(new i.Vector(n,0))):(o.setVertexOut(new i.Point(s.cx,s[t])),o.setLayoutVectorOut(new i.Vector(0,n))),!a.length)return!1;a.forEach((function(o){var a=o.getContentBox();o.setLayoutTransform(new i.Matrix),"x"==e?(o.setVertexIn(new i.Point(a[r[t]],a.cy)),o.setLayoutVectorIn(new i.Vector(n,0))):(o.setVertexIn(new i.Point(a.cx,a[r[t]])),o.setLayoutVectorIn(new i.Vector(0,n)))})),this.align(a,r[t]),this.stack(a,r[e]);var c=this.getBranchBox(a),u=0,l=0;"x"==e?(u=s[t],u+=n*o.getStyle("margin-"+t),u+=n*a[0].getStyle("margin-"+r[t]),l=s.bottom,l-=s.height/2,l-=c.height/2,l-=c.y):(u=s.right,u-=s.width/2,u-=c.width/2,u-=c.x,l=s[t],l+=n*o.getStyle("margin-"+t),l+=n*a[0].getStyle("margin-"+r[t])),this.move(a,u,l)},getOrderHint:function(t){var n=[],r=t.getLayoutBox();return"x"==e?(n.push({type:"up",node:t,area:new i.Box({x:r.x,y:r.top-t.getStyle("margin-top")-5,width:r.width,height:t.getStyle("margin-top")}),path:["M",r.x,r.top-5,"L",r.right,r.top-5]}),n.push({type:"down",node:t,area:new i.Box({x:r.x,y:r.bottom+5,width:r.width,height:t.getStyle("margin-bottom")}),path:["M",r.x,r.bottom+5,"L",r.right,r.bottom+5]})):(n.push({type:"up",node:t,area:new i.Box({x:r.left-t.getStyle("margin-left")-5,y:r.top,width:t.getStyle("margin-left"),height:r.height}),path:["M",r.left-5,r.top,"L",r.left-5,r.bottom]}),n.push({type:"down",node:t,area:new i.Box({x:r.right+5,y:r.top,width:t.getStyle("margin-right"),height:r.height}),path:["M",r.right+5,r.top,"L",r.right+5,r.bottom]})),n}}))}))}},t[37]={value:function(e,n,r){var i=t.r(17),o=t.r(18);[-1,1].forEach((function(t){var e="filetree-"+(t>0?"down":"up");o.register(e,i.createClass({base:o,doLayout:function(e,n,r){var o=e.getContentBox();if(e.setVertexOut(new i.Point(o.left+20,t>0?o.bottom:o.top)),e.setLayoutVectorOut(new i.Vector(0,t)),n.length){n.forEach((function(t){var e=t.getContentBox();t.setLayoutTransform(new i.Matrix),t.setVertexIn(new i.Point(e.left,e.cy)),t.setLayoutVectorIn(new i.Vector(1,0))})),this.align(n,"left"),this.stack(n,"y");var a=0;a+=o.left,a+=20,a+=n[0].getStyle("margin-left");var s=0;t>0?(s+=o.bottom,s+=e.getStyle("margin-bottom"),s+=n[0].getStyle("margin-top")):(s-=this.getTreeBox(n).bottom,s+=o.top,s-=e.getStyle("margin-top"),s-=n[0].getStyle("margin-bottom")),this.move(n,a,s)}},getOrderHint:function(t){var e=[],n=t.getLayoutBox(),r=t.getLevel()>1?3:5;return e.push({type:"up",node:t,area:new i.Box({x:n.x,y:n.top-t.getStyle("margin-top")-r,width:n.width,height:t.getStyle("margin-top")}),path:["M",n.x,n.top-r,"L",n.right,n.top-r]}),e.push({type:"down",node:t,area:new i.Box({x:n.x,y:n.bottom+r,width:n.width,height:t.getStyle("margin-bottom")}),path:["M",n.x,n.bottom+r,"L",n.right,n.bottom+r]}),e}}))}))}},t[38]={value:function(e,n,r){var i=t.r(17),o=t.r(18);o.register("fish-bone-master",i.createClass("FishBoneMasterLayout",{base:o,doLayout:function(t,e,n){var r=[],o=[],a=e[0],s=t.getContentBox();if(t.setVertexOut(new i.Point(s.right,s.cy)),t.setLayoutVectorOut(new i.Vector(1,0)),a){var c=(a.getContentBox(),t.getStyle("margin-right")),u=a.getStyle("margin-left"),l=a.getStyle("margin-top"),h=a.getStyle("margin-bottom");e.forEach((function(t,e){t.setLayoutTransform(new i.Matrix);var n=t.getContentBox();e%2?(o.push(t),t.setVertexIn(new i.Point(n.left,n.top)),t.setLayoutVectorIn(new i.Vector(1,1))):(r.push(t),t.setVertexIn(new i.Point(n.left,n.bottom)),t.setLayoutVectorIn(new i.Vector(1,-1)))})),this.stack(r,"x"),this.stack(o,"x"),this.align(r,"bottom"),this.align(o,"top");var f=s.right+c+u,d=s.cy-h-t.getStyle("margin-top"),p=s.cy+l+t.getStyle("margin-bottom");this.move(r,f,d),this.move(o,f+u,p)}}}))}},t[39]={value:function(e,n,r){var i=t.r(17),o=t.r(18);o.register("fish-bone-slave",i.createClass("FishBoneSlaveLayout",{base:o,doLayout:function(t,e,n){var r=this,o=Math.abs,a=t.getContentBox(),s=t.getLayoutVectorIn();t.setLayoutVectorOut(s);var c=a.left+.382*a.width,u=new i.Point(c,s.y>0?a.bottom:a.top);t.setVertexOut(u);var l=e[0];if(l){var h=l.getContentBox();e.forEach((function(t,e){t.setLayoutTransform(new i.Matrix),t.setLayoutVectorIn(new i.Vector(1,0)),t.setVertexIn(new i.Point(h.left,h.cy))})),this.stack(e,"y"),this.align(e,"left");var f=0,d=0;f+=u.x,t.getLayoutVectorOut().y<0?(d-=this.getTreeBox(e).bottom,d+=t.getContentBox().top,d-=t.getStyle("margin-top"),d-=l.getStyle("margin-bottom")):(d+=t.getContentBox().bottom,d+=t.getStyle("margin-bottom"),d+=l.getStyle("margin-top")),this.move(e,f,d),2==n&&e.forEach((function(t){var e=t.getLayoutTransform(),n=t.getContentBox(),a=e.transformPoint(new i.Point(n.left,0));r.move([t],o(a.y-u.y),0)}))}}}))}},t[40]={value:function(e,n,r){var i=t.r(17),o=t.r(18),a=t.r(19);o.register("mind",i.createClass({base:o,doLayout:function(t,e){var n=Math.ceil(t.children.length/2),r=[],o=[];e.forEach((function(t){t.getIndex()=n.length))return n.splice(this.getIndex(),1),n.splice(t,0,this),this}}});var l=a.createClass("ArrangeUpCommand",{base:c,execute:function(t){var e=t.getSelectedNodes();e.sort(i);var n=e.map((function(t){return t.getIndex()}));e.forEach((function(t,e){t.arrange(n[e]-1)})),t.layout(300)},queryState:function(t){return t.getSelectedNode()?0:-1}}),h=a.createClass("ArrangeUpCommand",{base:c,execute:function(t){var e=t.getSelectedNodes();e.sort(o);var n=e.map((function(t){return t.getIndex()}));e.forEach((function(t,e){t.arrange(n[e]+1)})),t.layout(300)},queryState:function(t){return t.getSelectedNode()?0:-1}}),f=a.createClass("ArrangeCommand",{base:c,execute:function(t,e){var n=t.getSelectedNodes().slice();if(n.length&&s.getCommonAncestor(n)==n[0].parent){var r=n.map((function(t){return{index:t.getIndex(),node:t}})),i=Math.min.apply(Math,r.map((function(t){return t.index})))>=e;r.sort((function(t,e){return i?e.index-t.index:t.index-e.index})),r.forEach((function(t){t.node.arrange(e)})),t.layout(300)}},queryState:function(t){return t.getSelectedNode()?0:-1}});u.register("ArrangeModule",{commands:{arrangeup:l,arrangedown:h,arrange:f},contextmenu:[{command:"arrangeup"},{command:"arrangedown"},{divider:!0}],commandShortcutKeys:{arrangeup:"normal::alt+Up",arrangedown:"normal::alt+Down"}})}},t[43]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19),t.r(21),t.r(9)),a=t.r(20),s=t.r(61);a.register("basestylemodule",(function(){function t(t,e){return t.getData(e)||t.getStyle(e)}var e=this;return s.registerStyleHook((function(e,n){var r=t(e,"font-weight"),i=t(e,"font-style");[r,i].join("/"),n.eachItem((function(t,e){e.setFont({weight:r,style:i})}))})),{commands:{bold:i.createClass("boldCommand",{base:o,execute:function(t){var e=t.getSelectedNodes();1==this.queryState("bold")?e.forEach((function(t){t.setData("font-weight").render()})):e.forEach((function(t){t.setData("font-weight","bold").render()})),t.layout()},queryState:function(){var t=e.getSelectedNodes(),n=0;return 0===t.length?-1:(t.forEach((function(t){if(t&&t.getData("font-weight"))return n=1,!1})),n)}}),italic:i.createClass("italicCommand",{base:o,execute:function(t){var e=t.getSelectedNodes();1==this.queryState("italic")?e.forEach((function(t){t.setData("font-style").render()})):e.forEach((function(t){t.setData("font-style","italic").render()})),t.layout()},queryState:function(){var t=e.getSelectedNodes(),n=0;return 0===t.length?-1:(t.forEach((function(t){if(t&&t.getData("font-style"))return n=1,!1})),n)}})},commandShortcutKeys:{bold:"ctrl+b",italic:"ctrl+i"}}}))}},t[44]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(21)),a=t.r(9);t.r(20).register("ClipboardModule",(function(){function t(e,r){s.push(r),n.appendNode(r,e),r.render(),r.setLayoutOffset(null);var i=r.children.map((function(t){return t.clone()}));r.clearChildren();for(var o,a=0;o=i[a];a++)t(r,o)}function e(t){t.length&&(t.sort((function(t,e){return t.getIndex()-e.getIndex()})),r=t.map((function(t){return t.clone()})))}var n=this,r=[],s=[],c=i.createClass("CopyCommand",{base:a,execute:function(t){e(t.getSelectedAncestors(!0)),this.setContentChanged(!1)}}),u=i.createClass("CutCommand",{base:a,execute:function(t){var n=t.getSelectedAncestors();0!==n.length&&(e(n),t.select(o.getCommonAncestor(n),!0),n.slice().forEach((function(e){t.removeNode(e)})),t.layout(300))}}),l=i.createClass("PasteCommand",{base:a,execute:function(e){if(r.length){var n=e.getSelectedNodes();if(!n.length)return;for(var i,o=0;i=r[o];o++)for(var a,c=0;a=n[c];c++)t(a,i.clone());e.select(s,!0),s=[],e.layout(300)}},queryState:function(t){return t.getSelectedNode()?0:-1}});if(n.supportClipboardEvent&&!i.Browser.gecko){return{commands:{copy:c,cut:u,paste:l},clipBoardEvents:{copy:function(t){this.fire("beforeCopy",t)}.bind(n),cut:function(t){this.fire("beforeCut",t)}.bind(n),paste:function(t){this.fire("beforePaste",t)}.bind(n)},sendToClipboard:e}}return{commands:{copy:c,cut:u,paste:l},commandShortcutKeys:{copy:"normal::ctrl+c|",cut:"normal::ctrl+x",paste:"normal::ctrl+v"},sendToClipboard:e}}))}},t[45]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(21)),a=t.r(9),s=t.r(20),c=i.createClass("MoveToParentCommand",{base:a,execute:function(t,e,n){for(var r,i=0;ir&&"up"==t.type&&e--,t.node.setLayoutOffset(null),this._minder.execCommand("arrange",e),this._renderOrderHint(null)}else this._minder.fire("savescene");this._minder.layout(300),this._leaveDragMode(),this._minder.fire("contentchange")}},_enterDragMode:function(){return this._calcDragSources(),this._dragSources.length?(this._fadeDragSources(.5),this._calcDropTargets(),this._calcOrderHints(),this._dragMode=!0,this._minder.setStatus("dragtree"),!0):(this._startPosition=null,!1)},_calcDragSources:function(){this._dragSources=this._minder.getSelectedAncestors()},_fadeDragSources:function(t){var e=this._minder;this._dragSources.forEach((function(n){n.getRenderContainer().setOpacity(t,200),n.traverse((function(n){t<1?e.detachNode(n):e.attachNode(n)}),!0)}))},_calcDropTargets:function(){this._dropTargets=function t(e,n){var r,i=[];return i.push(n),n.getChildren().forEach((function(n){for(r=0;r.5*Math.min(r(e),r(n))||t.width+1>=Math.min(e.width,n.width)||t.height+1>=Math.min(e.height,n.height))})),this._renderDropHint(this._dropSucceedTarget),!!this._dropSucceedTarget},_orderTest:function(){return this._orderSucceedHint=this._boxTest(this._orderHints,(function(t){return t.area})),this._renderOrderHint(this._orderSucceedHint),!!this._orderSucceedHint},_renderDropHint:function(t){this._dropHinter.render(t)},_renderOrderHint:function(t){this._orderHinter.render(t)},preventDragMove:function(){this._startPosition=null}});s.register("DragTree",(function(){var t;return{init:function(){t=new h(this),window.addEventListener("mouseup",(function(){t.dragEnd()}))},events:{"normal.mousedown inputready.mousedown":function(e){e.originEvent.button||e.getTargetNode()&&e.getTargetNode()!=this.getRoot()&&t.dragStart(e.getPosition())},"normal.mousemove dragtree.mousemove":function(e){t.dragMove(e.getPosition())},"normal.mouseup dragtree.beforemouseup":function(e){t.dragEnd(),e.preventDefault()},statuschange:function(e){"textedit"==e.lastStatus&&"normal"==e.currentStatus&&t.preventDragMove()}},commands:{movetoparent:c}}}))}},t[46]={value:function(e,n,r){var i=t.r(17),o=t.r(33),a=t.r(15),s=t.r(21),c=t.r(9),u=t.r(20),l=t.r(27);u.register("Expand",(function(){var t=this,e="expandState",n="collapse";i.extendClass(s,{expand:function(){return this.setData(e,"expand"),this},collapse:function(){return this.setData(e,n),this},isExpanded:function(){return this.getData(e)!==n&&(this.isRoot()||this.parent.isExpanded())},isCollapsed:function(){return!this.isExpanded()}});var r=i.createClass("ExpandCommand",{base:c,execute:function(t,e){var n=t.getSelectedNode();if(n){for(e&&(n=n.parent);n.parent;)n.expand(),n=n.parent;n.renderTree(),t.layout(100)}},queryState:function(t){var e=t.getSelectedNode();return!e||e.isRoot()||e.isExpanded()?-1:0}}),u=i.createClass("ExpandToLevelCommand",{base:c,execute:function(t,e){t.getRoot().traverse((function(t){t.getLevel()n&&i>n/r?e=(t=n)/i:e>r&&(t=(e=r)*i),{width:0|t,height:0|e}}(i,o,t.getOption("maxImageWidth"),t.getOption("maxImageHeight"));r.setData("image",e),r.setData("imageTitle",e&&n),r.setData("imageSize",e&&a),r.render()})),t.fire("saveScene"),t.layout(300)}))},queryState:function(t){var e=t.getSelectedNodes(),n=0;return 0===e.length?-1:(e.forEach((function(t){if(t&&t.getData("image"))return n=0,!1})),n)},queryValue:function(t){var e=t.getSelectedNode();return{url:e.getData("image"),title:e.getData("imageTitle")}}})},renderers:{top:i.createClass("ImageRenderer",{base:s,create:function(t){return new i.Image(t.getData("image"))},shouldRender:function(t){return t.getData("image")},update:function(t,e,n){var r=e.getData("image"),o=e.getData("imageTitle"),a=e.getData("imageSize"),s=e.getStyle("space-top");if(a){o&&t.node.setAttributeNS("http://www.w3.org/1999/xlink","title",o);var c=n.cx-a.width/2,u=n.y-a.height-s;return t.setUrl(r).setX(0|c).setY(0|u).setWidth(0|a.width).setHeight(0|a.height),new i.Box(0|c,0|u,0|a.width,0|a.height)}}})}}}))}},t[51]={value:function(e,n,r){var i=(t.r(17),t.r(33),t.r(15),t.r(19),t.r(21),t.r(9),t.r(20));t.r(27),i.register("KeyboardModule",(function(){function t(t){var e,r=[];t.traverse((function(t){(e=t.getLayoutBox()).width&&e.height&&r.push({left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height,width:e.width,height:e.height,node:t})}));for(var i=0;io.right&&(!a.right||io.bottom&&(!a.down||i>1].getGlobalLayoutTransform()),t.select(i,!0),t.layout(600)},queryState:function(t){var e=t.getSelectedNodes();if(!e.length)return-1;var n=e[0].parent;if(!n)return-1;for(var r=1;r>>n|r<<32-n},e=function(t,e,u,l,h){var f=r+o[n][t]%16,d=r+(o[n][t]>>4);u=4+u%4,l=8+l%4,h=12+h%4,s[e%=4]+=s[u]+(c[f]^i[d%16]),a(h,e,16),s[l]+=s[h],a(u,l,12),s[e]+=s[u]+(c[d]^i[f%16]),a(h,e,8),s[l]+=s[h],a(u,l,7)},function(o,a){var l,h,f,d,p,g,m,v;for(a instanceof Array&&4===a.length||(a=[0,0,0,0]),h=t.slice(0),l=i.slice(0,8),n=0;n<4;n+=1)l[n]^=a[n];if(p=(f=16*o.length)%512>446||f%512==0?0:f,f%512==432)o+="老";else{for(o+="耀";o.length%32!=27;)o+="\0";o+=""}for(c=[],v=0;v=0;n--)r^=(r<<5)+e.charCodeAt(n)+(r>>2);return 2147483647&r},getResourceColor:function(t){var n,r=this._getResourceColorIndexMapping();return Object.prototype.hasOwnProperty.call(r,t)||(n=this._getNextResourceColorIndex(),r[t]=n),e[r[t]]||i.Color.createHSL(Math.floor(this.getHashCode(t)/2147483647*359),100,85)},getUsedResource:function(){var t,e=this._getResourceColorIndexMapping(),n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n},_getNextResourceColorIndex:function(){var t,n,r,i=this._getResourceColorIndexMapping();for(t in n=[],i)Object.prototype.hasOwnProperty.call(i,t)&&n.push(i[t]);for(r=0;ry)for(var w=b-y;w--;)m=(new i.Text).setAttr("text-rendering","inherit"),i.Browser.ie||i.Browser.edge?m.setVerticalAlign("top"):m.setAttr("dominant-baseline","text-before-edge"),t.addItem(m);for(g=0;v=a[g],m=t.getItem(g);g++)m.setContent(v),(i.Browser.ie||i.Browser.edge)&&m.fixPosition();this.setTextStyle(e,t);var x=e.getText()+["font-size","font-name","font-weight","font-style"].map(n).join("/");return e._currentTextHash==x&&e._currentTextGroupBox?e._currentTextGroupBox:(e._currentTextHash=x,function(){t.eachItem((function(t,e){var n=h+t*c*s;e.setY(n);var r=e.getBoundaryBox();d=d.merge(new i.Box(0,n,r.height&&r.width||1,c))}));var n=new i.Box(p(d.x),p(d.y),p(d.width),p(d.height));return e._currentTextGroupBox=n,n})},setTextStyle:function(t,e){h._styleHooks.forEach((function(n){n(t,e)}))}}),f=i.createClass({base:s,execute:function(t,e){var n=t.getSelectedNode();n&&(n.setText(e),n.render(),t.layout())},queryState:function(t){return 1==t.getSelectedNodes().length?0:-1},queryValue:function(t){var e=t.getSelectedNode();return e?e.getText():null}});o.extend(h,{_styleHooks:[],registerStyleHook:function(t){h._styleHooks.push(t)}}),i.extendClass(a,{getTextGroup:function(){return this.getRenderer("TextRenderer").getRenderShape()}}),c.register("text",{commands:{text:f},renderers:{center:h}}),r.exports=h}},t[62]={value:function(e,n,r){var i=t.r(17),o=(t.r(33),t.r(19),t.r(21),t.r(9)),a=t.r(20),s=(t.r(27),i.createClass("ViewDragger",{constructor:function(t){this._minder=t,this._enabled=!1,this._bind();var e=this;this._minder.getViewDragger=function(){return e},this.setEnabled(!1)},isEnabled:function(){return this._enabled},setEnabled:function(t){var e=this._minder.getPaper();e.setStyle("cursor",t?"pointer":"default"),e.setStyle("cursor",t?"-webkit-grab":"default"),this._enabled=t},timeline:function(){return this._moveTimeline},move:function(t,e){var n=(this._minder,this.getMovement().offset(t));this.moveTo(n,e)},moveTo:function(t,e){if(e){var n=this;return this._moveTimeline&&this._moveTimeline.stop(),this._moveTimeline=this._minder.getRenderContainer().animate(new i.Animator(this.getMovement(),t,(function(t,e){n.moveTo(e)})),e,"easeOutCubic").timeline(),this._moveTimeline.on("finish",(function(){n._moveTimeline=null})),this}this._minder.getRenderContainer().setTranslate(t.round()),this._minder.fire("viewchange")},getMovement:function(){var t=this._minder.getRenderContainer().transform.translate;return t?t[0]:new i.Point},getView:function(){var t=this._minder,e=t._lastClientSize||{width:t.getRenderTarget().clientWidth,height:t.getRenderTarget().clientHeight},n=this.getMovement(),r=new i.Box(0,0,e.width,e.height);return t.getPaper().getViewPortMatrix().inverse().translate(-n.x,-n.y).transformBox(r)},_bind:function(){function t(t){r&&(r=null,t.stopPropagation(),n&&(e.setEnabled(!1),n=!1,"hand"==e._minder.getStatus()&&e._minder.rollbackStatus()),e._minder.getPaper().setStyle("cursor","hand"==e._minder.getStatus()?"-webkit-grab":"default"),e._minder.fire("viewchanged"))}var e=this,n=!1,r=null,o=null;this._minder.on("normal.mousedown normal.touchstart inputready.mousedown inputready.touchstart readonly.mousedown readonly.touchstart",(function(t){2==t.originEvent.button&&t.originEvent.preventDefault(),(t.getTargetNode()==this.getRoot()||2==t.originEvent.button||t.originEvent.altKey)&&(r=t.getPosition("view"),n=!0)})).on("normal.mousemove normal.touchmove readonly.mousemove readonly.touchmove inputready.mousemove inputready.touchmove",(function(t){"touchmove"==t.type&&t.preventDefault(),n&&i.Vector.fromPoints(r,t.getPosition("view")).length()>10&&(this.setStatus("hand",!0),e._minder.getPaper().setStyle("cursor","-webkit-grabbing"))})).on("hand.beforemousedown hand.beforetouchstart",(function(t){e.isEnabled()&&(r=t.getPosition("view"),t.stopPropagation(),e._minder.getPaper().setStyle("cursor","-webkit-grabbing"))})).on("hand.beforemousemove hand.beforetouchmove",(function(t){if(r){o=t.getPosition("view");var n=i.Vector.fromPoints(r,o);e.move(n),t.stopPropagation(),t.preventDefault(),t.originEvent.preventDefault(),r=o}})).on("mouseup touchend",t),window.addEventListener("mouseup",t),this._minder.on("contextmenu",(function(t){t.preventDefault()}))}}));a.register("View",(function(){var t=i.createClass("ToggleHandCommand",{base:o,execute:function(t){"hand"!=t.getStatus()?t.setStatus("hand",!0):t.rollbackStatus(),this.setContentChanged(!1)},queryState:function(t){return"hand"==t.getStatus()?1:0},enableReadOnly:!0}),e=i.createClass("CameraCommand",{base:o,execute:function(t,e){e=e||t.getRoot();var n=t.getPaper().getViewPort(),r=e.getRenderContainer().getRenderBox("view"),o=n.center.x-r.x-r.width/2,a=n.center.y-r.y,s=t._viewDragger,c=t.getOption("viewAnimationDuration");s.move(new i.Point(o,a),c),this.setContentChanged(!1)},enableReadOnly:!0}),n=i.createClass("MoveCommand",{base:o,execute:function(t,e){var n=t._viewDragger,r=t._lastClientSize,o=t.getOption("viewAnimationDuration");switch(e){case"up":n.move(new i.Point(0,r.height/2),o);break;case"down":n.move(new i.Point(0,-r.height/2),o);break;case"left":n.move(new i.Point(r.width/2,0),o);break;case"right":n.move(new i.Point(-r.width/2,0),o)}},enableReadOnly:!0});return{init:function(){this._viewDragger=new s(this)},commands:{hand:t,camera:e,move:n},events:{statuschange:function(t){this._viewDragger.setEnabled("hand"==t.currentStatus)},mousewheel:function(t){var e,n;if(!(t=t.originEvent).ctrlKey&&!t.shiftKey){"wheelDeltaX"in t?(e=t.wheelDeltaX||0,n=t.wheelDeltaY||0):(e=0,n=t.wheelDelta),this._viewDragger.move({x:e/2.5,y:n/2.5});var r=this;clearTimeout(this._mousewheeltimer),this._mousewheeltimer=setTimeout((function(){r.fire("viewchanged")}),100),t.preventDefault()}},"normal.dblclick readonly.dblclick":function(t){t.kityEvent.targetShape instanceof i.Paper&&this.execCommand("camera",this.getRoot(),800)},"paperrender finishInitHook":function(){this.getRenderTarget()&&(this.execCommand("camera",null,0),this._lastClientSize={width:this.getRenderTarget().clientWidth,height:this.getRenderTarget().clientHeight})},resize:function(t){var e={width:this.getRenderTarget().clientWidth,height:this.getRenderTarget().clientHeight},n=this._lastClientSize;this._viewDragger.move(new i.Point((e.width-n.width)/2|0,(e.height-n.height)/2|0)),this._lastClientSize=e},"selectionchange layoutallfinish":function(t){var e=this.getSelectedNode(),n=this;if(i.Browser.edge&&this.fire("paperrender"),e){var r=this._viewDragger,o=r.timeline();if(o)return void o.on("finish",(function(){n.fire("selectionchange")}));var a=r.getView(),s=e.getLayoutBox(),c=0,u=0;s.right>a.right?c+=a.right-s.right-50:s.lefta.bottom&&(u+=a.bottom-s.bottom-50),s.top=100?"optimize-speed":"geometricPrecision";r.getRenderContainer().setAttr("text-rendering",t)}function e(e,r){if(e.getPaper().getViewPort(),r){t();var o=e.getOption("zoomAnimationDuration");if(e.getRoot().getComplex()>200||!o)e._zoomValue=r,e.zoom(r),e.fire("viewchange");else{var a=new i.Animator({beginValue:e._zoomValue,finishValue:r,setter:function(t,e){t.zoom(e)}});e._zoomValue=r,n&&n.pause(),(n=a.start(e,o,"easeInOutSine")).on("finish",(function(){e.fire("viewchange")}))}e.fire("zoom",{zoom:r})}}var n,r=this;i.extendClass(o,{zoom:function(t){var e=this.getPaper(),n=e.getViewPort();n.zoom=t/100,n.center={x:n.center.x,y:n.center.y},e.setViewPort(n),100==t&&function(t){var e=t.shapeNode,n=e.getCTM(),r=new i.Matrix(n.a,n.b,n.c,n.d,.5+(0|n.e),.5+(0|n.f));e.setAttribute("transform","matrix("+r.toString()+")")}(e)},getZoomValue:function(){return this._zoomValue}});var s=i.createClass("Zoom",{base:a,execute:e,queryValue:function(t){return t._zoomValue}}),c=i.createClass("ZoomInCommand",{base:a,execute:function(t){e(t,this.nextValue(t))},queryState:function(t){return+!this.nextValue(t)},nextValue:function(t){var e,n=t.getOption("zoom");for(e=0;et._zoomValue)return n[e];return 0},enableReadOnly:!0}),u=i.createClass("ZoomOutCommand",{base:a,execute:function(t){e(t,this.nextValue(t))},queryState:function(t){return+!this.nextValue(t)},nextValue:function(t){var e,n=t.getOption("zoom");for(e=n.length-1;e>=0;e--)if(n[e]100&&(clearTimeout(this._wheelZoomTimeout),this._wheelZoomTimeout=setTimeout((function(){n.getPaper()._zoom,e>0?n.execCommand("zoomin"):e<0&&n.execCommand("zoomout")}),100),t.originEvent.preventDefault())}}},commandShortcutKeys:{zoomin:"ctrl+=",zoomout:"ctrl+-"}}}))}},t[64]={value:function(e,n,r){t.r(12).registerProtocol("json",r.exports={fileDescription:"KityMinder 格式",fileExtension:".km",dataType:"text",mineType:"application/json",encode:function(t){return JSON.stringify(t)},decode:function(t){return JSON.parse(t)}})}},t[65]={value:function(e,n,r){function i(t){return o(t,1).join("\n")}function o(t,e){var n=[],r=function(t){for(var e="";t--;)e+="#";return e}(e=e||1);n.push(r+" "+t.data.text),n.push(f);var i=t.data.note;if(i){var a=/^#/.test(i);a&&(n.push(d),i=i.replace(/^#+/gm,(function(t){return r+t}))),n.push(i),a&&n.push(p),n.push(f)}return t.children&&t.children.forEach((function(t){n=n.concat(o(t,e+1))})),n}function a(t,e){var n={data:{text:t,note:""}};return e&&(e.children?e.children.push(n):e.children=[n]),n}function s(t,e){t.data.note+=e+"\n"}function c(t){var e=/^(#+)?\s*(.*)$/.exec(t);return{level:e[1]&&e[1].length||null,content:e[2],noteStart:t==d,noteClose:t==p,codeBlock:/^\s*```/.test(t)}}function u(t){if(/\S/.test(t.data.note)){for(var e=t.data.note.split("\n");e.length&&!/\S/.test(e[0]);)e.shift();for(;e.length&&!/\S/.test(e[e.length-1]);)e.pop();t.data.note=e.join("\n")}else t.data.note=null,delete t.data.note;t.children&&t.children.forEach(u)}var l=t.r(12),h=/\r\n|\r|\n/,f="",d="\x3c!--Note--\x3e",p="\x3c!--/Note--\x3e";l.registerProtocol("markdown",r.exports={fileDescription:"Markdown/GFM 格式",fileExtension:".md",mineType:"text/markdown",dataType:"text",encode:function(t){return i(t.root)},decode:function(t){return function(t){var e,n,r,i,o,l,f,d={};t=t.replace(/^(.+)\n={3,}/,(function(t,e){return"# "+e})),e=t.split(h);for(var p=0;pi+1?o&&s(o,n):(i=r.level,o=a(r.content,d[i-1]),d[i]=o));return u(d[1]),d[1]}(t)}})}},t[66]={value:function(e,n,r){function i(t,e){return new s((function(e,n){var r=document.createElement("img");r.onload=function(){e({element:this,x:t.x,y:t.y,width:t.width,height:t.height})},r.onerror=function(t){n(t)},r.crossOrigin="anonymous",r.src=t.url}))}var o=t.r(17),a=t.r(12),s=t.r(25),c=window.URL||window.webkitURL||window;a.registerProtocol("png",r.exports={fileDescription:"PNG 图片",fileExtension:".png",mineType:"image/png",dataType:"base64",encode:function(t,e,n){function r(t,e){t.save(),t.fillStyle=e,t.fillRect(0,0,f.width,f.height),t.restore()}function a(t,e,n,r,i,o){i&&o?t.drawImage(e,n+S,r+S,i,o):t.drawImage(e,n+S,r+S)}function u(t){return t.toDataURL("image/png")}function l(t){var e=t.map((function(t){return function(t,e){return s((function(e,n){var r=new XMLHttpRequest;r.open("GET",t.url+"?_="+Date.now(),!0),r.responseType="blob",r.onreadystatechange=function(){if(4===r.readyState&&200===r.status){var n=r.response,i=document.createElement("img");i.src=c.createObjectURL(n),i.onload=function(){c.revokeObjectURL(i.src),e({element:i,x:t.x,y:t.y,width:t.width,height:t.height})}}},r.send()}))}(t)}));return s.all(e)}function h(){return i({url:A}).then((function(t){return a(d,t.element,w,x,t.width,t.height),l(_)})).then((function(t){for(var e=0;ev.width?n.width:v.width,y=n&&n.height&&n.height>v.height?n.height:v.height,w=n&&n.width&&n.width>v.width?(n.width-v.width)/2:0,x=n&&n.height&&n.height>v.height?(n.height-v.height)/2:0,A=v.dataUrl,_=v.imagesInfo,S=20;return f.width=b+2*S,f.height=y+2*S,g?i({url:g[1]}).then((function(t){return r(d,d.createPattern(t.element,"repeat")),h()})):(r(d,m.toString()),h())}})}},t[67]={value:function(e,n,r){function i(t,e,n){t.style.visibility="hidden",function t(e,n,r){if(e&&"defs"!==e.tagName){if("transparent"===e.getAttribute("fill")&&e.setAttribute("fill","none"),e.getAttribute("marker-end")&&e.removeAttribute("marker-end"),n=n||0,r=r||0,e.getAttribute("transform")){var i=function(t,e){var n;try{n=e.getScreenCTM().inverse()}catch(t){throw new Error("Can not inverse source element' ctm.")}return n.multiply(t.getScreenCTM())}(e,e.parentElement);n-=i.e,r-=i.f,e.removeAttribute("transform")}switch(e.tagName.toLowerCase()){case"g":break;case"path":var o=e.getAttribute("d");return void(o&&(o=function(t,e){e instanceof Function||(e=function(){});for(var n=[],r=[],i=[],o=0,a=t.length;o0?"right":"left":t.parent.getLayout()},getConnect:function(t){return 1==t.getLevel()?"arc":"under"}})}},t[70]={value:function(e,n,r){t.r(31).register("filetree",{getLayout:function(t){return t.getData("layout")?t.getData("layout"):t.isRoot()?"bottom":"filetree-down"},getConnect:function(t){return 1==t.getLevel()?"poly":"l"}})}},t[71]={value:function(e,n,r){t.r(31).register("fish-bone",{getLayout:function(t){if(t.getData("layout"))return t.getData("layout");var e=t.getLevel();return 0===e?"fish-bone-master":1===e?"fish-bone-slave":t.getLayoutPointPreview().y>0?"filetree-up":"filetree-down"},getConnect:function(t){switch(t.getLevel()){case 1:return"fish-bone-master";case 2:return"line";default:return"l"}}})}},t[72]={value:function(e,n,r){t.r(31).register("right",{getLayout:function(t){return t.getData("layout")||"right"},getConnect:function(t){return 1==t.getLevel()?"arc":"bezier"}})}},t[73]={value:function(e,n,r){t.r(31).register("structure",{getLayout:function(t){return t.getData("layout")||"bottom"},getConnect:function(t){return"poly"}})}},t[74]={value:function(e,n,r){t.r(31).register("tianpan",{getLayout:function(t){return t.getData("layout")?t.getData("layout"):0===t.getLevel()?"tianpan":t.parent.getLayout()},getConnect:function(t){return"arc_tp"}})}},t[75]={value:function(e,n,r){var i=t.r(32);["classic","classic-compact"].forEach((function(t){var e="classic-compact"==t;i.register(t,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":e?[10,25]:[15,25],"root-margin":e?[15,25]:[30,100],"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":e?[5,15]:[6,20],"main-margin":e?[5,10]:20,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"white","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":[5,10],"sub-margin":e?[5,10]:[15,20],"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}))}},t[76]={value:function(e,n,r){t.r(32).register("fish",{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":[35,35],"root-margin":30,"root-radius":100,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":[6,20],"main-margin":[20,20],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":[10],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":3,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}},t[77]={value:function(e,n,r){function i(t,e,n){return s.Color.createHSL(t,e,n)}function o(t,e){return{background:"#fbfbfb","root-color":"white","root-background":i(t,37,60),"root-stroke":i(t,37,60),"root-font-size":16,"root-padding":e?[6,12]:[12,24],"root-margin":e?10:[30,100],"root-radius":5,"root-space":10,"main-color":"black","main-background":i(t,33,95),"main-stroke":i(t,37,60),"main-stroke-width":1,"main-font-size":14,"main-padding":[6,20],"main-margin":e?8:20,"main-radius":3,"main-space":5,"sub-color":"black","sub-background":"transparent","sub-stroke":"none","sub-font-size":12,"sub-padding":e?[3,5]:[5,10],"sub-margin":e?[4,8]:[15,20],"sub-radius":5,"sub-space":5,"connect-color":i(t,37,60),"connect-width":1,"connect-radius":5,"selected-stroke":i(t,26,30),"selected-stroke-width":"3","blur-selected-stroke":i(t,10,60),"marquee-background":i(t,100,80).set("a",.1),"marquee-stroke":i(t,37,60),"drop-hint-color":i(t,26,35),"drop-hint-width":5,"order-hint-area-color":i(t,100,30).set("a",.5),"order-hint-path-color":i(t,100,25),"order-hint-path-width":1,"text-selection-color":i(t,100,20),"line-height":1.5}}var a,s=t.r(17),c=t.r(32),u={red:0,soil:25,green:122,blue:204,purple:246,pink:334};for(a in u)c.register("fresh-"+a,o(u[a])),c.register("fresh-"+a+"-compat",o(u[a],!0))}},t[78]={value:function(e,n,r){var i=t.r(32);["snow","snow-compact"].forEach((function(t){var e="snow-compact"==t;i.register(t,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":24,"root-padding":e?[5,10]:[15,25],"root-margin":e?15:30,"root-radius":5,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":16,"main-padding":e?[4,10]:[6,20],"main-margin":e?[5,10]:[20,40],"main-radius":5,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","sub-color":"black","sub-background":"white","sub-stroke":"white","sub-font-size":12,"sub-padding":[5,10],"sub-margin":e?[5,10]:[10,20],"sub-radius":5,"sub-space":5,"connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}))}},t[79]={value:function(e,n,r){var i=t.r(32);["tianpan","tianpan-compact"].forEach((function(t){var e="tianpan-compact"==t;i.register(t,{background:'#3A4144 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=") repeat',"root-color":"#430","root-background":"#e9df98","root-stroke":"#e9df98","root-font-size":25,"root-padding":e?15:20,"root-margin":e?[15,25]:100,"root-radius":30,"root-space":10,"root-shadow":"rgba(0, 0, 0, .25)","root-shape":"circle","main-color":"#333","main-background":"#a4c5c0","main-stroke":"#a4c5c0","main-font-size":15,"main-padding":e?10:12,"main-margin":e?10:12,"main-radius":10,"main-space":5,"main-shadow":"rgba(0, 0, 0, .25)","main-shape":"circle","sub-color":"#333","sub-background":"#99ca6a","sub-stroke":"#a4c5c0","sub-font-size":13,"sub-padding":5,"sub-margin":e?6:10,"sub-tree-margin":30,"sub-radius":5,"sub-space":5,"sub-shadow":"rgba(0, 0, 0, .25)","sub-shape":"circle","connect-color":"white","connect-width":2,"main-connect-width":3,"connect-radius":5,"selected-background":"rgb(254, 219, 0)","selected-stroke":"rgb(254, 219, 0)","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.4})}))}},t[80]={value:function(e,n,r){t.r(32).register("wire",{background:"black",color:"#999",stroke:"none",padding:10,margin:20,"font-size":14,"connect-color":"#999","connect-width":1,"selected-background":"#999","selected-color":"black","marquee-background":"rgba(255,255,255,.3)","marquee-stroke":"white","drop-hint-color":"yellow","sub-drop-hint-width":2,"main-drop-hint-width":4,"root-drop-hint-width":4,"order-hint-area-color":"rgba(0, 255, 0, .5)","order-hint-path-color":"#0f0","order-hint-path-width":1,"text-selection-color":"rgb(27,171,255)","line-height":1.5})}};var e={"expose-kityminder":34};!function(n){t.r([e[n]])}("expose-kityminder")}()},15940:(t,e,n)=>{var r;r=function(t,e,r){var i=n(80423),o=n(83677);function a(t){return document.createElement(t)}function s(t,e){t.classList.add(e)}function c(t,e){t.classList.remove(e)}function u(t,e){t.appendChild(e)}var l=d.STATE_IDLE="idle",h="div";function f(t,e){return"object"!=typeof e&&(e=[].slice.apply(arguments,1)),String(t).replace(/\{(\w+)\}/g,(function(t,n){return e[n]||t}))}function d(t){if("string"==typeof t&&(t=document.querySelector(t)),!(t&&t instanceof HTMLElement))throw new Error("No container or not invalid container for hot box");var e=a(h);s(e,"hotbox"),u(t,e),this.$element=e,this.$container=t,this.isIME=!1,this.browser={sg:/se[\s\S]+metasr/.test(navigator.userAgent.toLowerCase())},this._parentFSM={},this.position={};var n,r={},c=null,f=l,d=[],g=this;function m(t,e){if(g.position=e,t==l)f!=l&&(d.shift().deactive(),d=[]),f=l;else if("back"==t)f!=l&&(f.deactive(),d.shift(),(f=d[0])?f.active():f="idle");else{f!=l&&f.deactive();var n=r[t];d.unshift(n),"function"==typeof g.position&&(e=g.position(e)),n.active(e),f=n}}this.control=function(t){if(!n)return(n=new(t=t||o)(g)).active(),e.onmousedown=function(t){t.stopPropagation(),t.preventDefault()},g;n.active()},this.state=function(t){if(!t)return f;if(t==l)throw new Error("Can not define or use the `idle` state.");return r[t]=r[t]||new p(this,t),"main"==t&&(c=r[t]),r[t]},this.active=m,this.dispatch=function(e){var n=e.type.toLowerCase();if(e.keyHash=i.hash(e),e.isKey=function(t){if(!t)return!1;for(var n=t.split(/\s*\|\s*/);n.length;)if(e.keyHash==i.hash(n.shift()))return!0;return!1},e[n]=!0,!(e.keyup&&g.activeKey&&e.isKey(g.activeKey)&&f==l&&c)){var r=f==l?c:f;if(r){var o=r.handleKeyEvent(e);return"function"==typeof g.onkeyevent&&(e.handleResult=o,g.onkeyevent(e,o)),o}return null}m("main",{x:t.clientWidth/2,y:t.clientHeight/2})},this.setParentFSM=function(t){g._parentFSM=t},this.getParentFSM=function(){return g._parentFSM},this.activeKey="space",this.actionKey="space"}function p(t,e){var n="selected",r="pressed",i="active",o=a(h),d=a(h),p=a(h),g=a("div"),m=a(h),v=a(h);s(o,"state"),s(o,e),s(d,"center"),s(p,"ring"),s(g,"ring-shape"),s(m,"top"),s(v,"bottom"),u(t.$element,o),u(o,g),u(o,d),u(o,p),u(o,m),u(o,v),this.name=e;var b={center:null,ring:[],top:[],bottom:[],behind:[]},y=[],w=null,x=null,A=!1,_=!0;function S(){return!0}function k(t,e){return t('{label}{key}',{label:e.label,key:e.key&&e.key.split("|")[0]})}function N(t){x&&x.$button&&c(x.$button,r),(x=t)&&x.$button&&s(x.$button,r)}function L(t){w&&w.$button&&w.$button&&c(w.$button,n),(w=t)&&w.$button&&s(w.$button,n)}function C(e){e&&(e.enable&&!e.enable()||(e.action&&e.action(e),t.active(e.next||l,t.position)),N(null),L(null))}this.button=function(t){var e=function(t){var e=a(h);s(e,"button");var n=t.render||k;switch(e.innerHTML=n(f,t),t.position){case"center":u(d,e);break;case"ring":u(p,e);break;case"top":u(m,e);break;case"bottom":u(v,e)}return{action:t.action,enable:t.enable||S,beforeShow:t.beforeShow,key:t.key,next:t.next,label:t.label,data:t.data||null,$button:e}}(t);"center"==t.position?b.center=e:b[t.position]&&b[t.position].push(e),y.push(e),_=!0},this.active=function(e){var n,r;(e=e||{x:t.$container.clientWidth/2,y:t.$container.clientHeight/2})&&(o.style.left=e.x+"px",o.style.top=e.y+"px"),y.forEach((function(t){var e=t.$button;e&&e.classList[t.enable()?"add":"remove"]("enabled"),t.beforeShow&&t.beforeShow()})),s(o,i),_&&(function(t){var e,n,r,i,o=b.ring,a=2*Math.PI/o.length;b.center&&(b.center.indexedPosition=[0,0]),g.style.marginLeft=g.style.marginTop=-t+"px",g.style.width=g.style.height=t+t+"px";for(var s=0;s2&&(a.push(r>0?"right":"left"),a.push(o+f(i))),f(i)>2&&(a.push(i>0?"down":"up"),a.push(o+f(r)));a.length;)s=a.shift(),u=a.shift(),(!c[s]||u{var r;r=function(t,e,r){var i=n(26479),o=4096,a=8192,s=16384;function c(t){return"string"==typeof t?(e=0,t.toLowerCase().split(/\s*\+\s*/).forEach((function(t){switch(t){case"ctrl":case"cmd":e|=o;break;case"alt":e|=a;break;case"shift":e|=s;break;default:e|=i[t]}})),e):function(t){var e=0;(t.ctrlKey||t.metaKey)&&(e|=o);t.altKey&&(e|=a);t.shiftKey&&(e|=s);-1==[16,17,18,91].indexOf(t.keyCode)&&(e|=t.keyCode);return e}(t);var e}e.hash=c,e.is=function(t,e){return t&&e&&c(t)==c(e)}}.call(e,n,e,t),void 0===r||(t.exports=r)},83677:(t,e,n)=>{var r;r=function(t,e,r){n(80423);var i="hotbox-focus";r.exports=function(t){var e,n=!0,r=!1,o=t.$container;function a(e){n&&t.dispatch(e)}function s(){e.select(),e.focus(),n=!0,o.classList.add(i)}function c(){e.blur(),n=!1,o.classList.remove(i)}(e=document.createElement("input")).classList.add("hotbox-key-receiver"),o.appendChild(e),r=!0,e.onkeyup=a,e.onkeypress=a,e.onkeydown=a,e.onfocus=s,e.onblur=c,r&&(e.oninput=function(t){e.value=null}),o.onmousedown=function(t){s(),t.preventDefault()},s(),this.handle=a,this.active=s,this.deactive=c}}.call(e,n,e,t),void 0===r||(t.exports=r)},26479:(t,e,n)=>{var r;r=function(t,e,n){var r={Shift:16,Control:17,Alt:18,CapsLock:20,BackSpace:8,Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Direction:{37:1,38:1,39:1,40:1},Delete:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(var i in r)r.hasOwnProperty(i)&&(r[i.toLowerCase()]=r[i]);var o="a".charCodeAt(0);"abcdefghijklmnopqrstuvwxyz".split("").forEach((function(t){r[t]=t.charCodeAt(0)-o+65}));var a=9;do{r[a.toString()]=a+48}while(a--);n.exports=r}.call(e,n,e,t),void 0===r||(t.exports=r)},17959:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{ZP:()=>vn});var i=Uint8Array,o=Uint16Array,a=Uint32Array,s=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),c=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(t,e){for(var n=new o(31),r=0;r<31;++r)n[r]=e+=1<>>1|(21845&b)<<1;y=(61680&(y=(52428&y)>>>2|(13107&y)<<2))>>>4|(3855&y)<<4,v[b]=((65280&y)>>>8|(255&y)<<8)>>>1}var w=function(t,e,n){for(var r=t.length,i=0,a=new o(e);i>>u]=l}else for(s=new o(r),i=0;i>>15-t[i];return s},x=new i(288);for(b=0;b<144;++b)x[b]=8;for(b=144;b<256;++b)x[b]=9;for(b=256;b<280;++b)x[b]=7;for(b=280;b<288;++b)x[b]=8;var A=new i(32);for(b=0;b<32;++b)A[b]=5;var _=w(x,9,0),S=w(x,9,1),k=w(A,5,0),N=w(A,5,1),L=function(t){for(var e=t[0],n=1;ne&&(e=t[n]);return e},C=function(t,e,n){var r=e/8>>0;return(t[r]|t[r+1]<<8)>>>(7&e)&n},P=function(t,e){var n=e/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},E=function(t){return(t/8>>0)+(7&t&&1)},I=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var r=new(t instanceof o?o:t instanceof a?a:i)(n-e);return r.set(t.subarray(e,n)),r},M=function(t,e,n){var r=t.length,o=!e||n,a=!n||n.i;n||(n={}),e||(e=new i(3*r));var l=function(t){var n=e.length;if(t>n){var r=new i(Math.max(2*n,t));r.set(e),e=r}},h=n.f||0,d=n.p||0,p=n.b||0,m=n.l,v=n.d,b=n.m,y=n.n,x=8*r;do{if(!m){n.f=h=C(t,d,1);var A=C(t,d+1,3);if(d+=3,!A){var _=t[(z=E(d)+4)-4]|t[z-3]<<8,k=z+_;if(k>r){if(a)throw"unexpected EOF";break}o&&l(p+_),e.set(t.subarray(z,k),p),n.b=p+=_,n.p=d=8*k;continue}if(1==A)m=S,v=N,b=9,y=5;else{if(2!=A)throw"invalid block type";var M=C(t,d,31)+257,T=C(t,d+10,15)+4,O=M+C(t,d+5,31)+1;d+=14;for(var R=new i(O),D=new i(19),B=0;Bx)break;var q=w(D,F,1);for(B=0;B>>4)<16)R[B++]=z;else{var U=0,H=0;for(16==z?(H=3+C(t,d,3),d+=2,U=R[B-1]):17==z?(H=3+C(t,d,7),d+=3):18==z&&(H=11+C(t,d,127),d+=7);H--;)R[B++]=U}}var G=R.subarray(0,M),W=R.subarray(M);b=L(G),y=L(W),m=w(G,b,1),v=w(W,y,1)}if(d>x)throw"unexpected EOF"}o&&l(p+131072);for(var Y=(1<>>4;if((d+=15&U)>x)throw"unexpected EOF";if(!U)throw"invalid length/literal";if(Z<256)e[p++]=Z;else{if(256==Z){m=null;break}var K=Z-254;if(Z>264){var Q=s[B=Z-257];K=C(t,d,(1<>>4;if(!$)throw"invalid distance";d+=15&$;W=g[tt];if(tt>3){Q=c[tt];W+=P(t,d)&(1<x)throw"unexpected EOF";o&&l(p+131072);for(var et=p+K;p>0;t[r]|=n,t[r+1]|=n>>>8},O=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},R=function(t,e){for(var n=[],r=0;rp&&(p=s[r].s);var g=new o(p+1),m=D(n[f-1],g,0);if(m>e){r=0;var v=0,b=m-e,y=1<e))break;v+=y-(1<>>=b;v>0;){var x=s[r].s;g[x]=0&&v;--r){var A=s[r].s;g[A]==e&&(--g[A],++v)}m=e}return[new i(g),m]},D=function(t,e,n){return-1==t.s?Math.max(D(t.l,e,n+1),D(t.r,e,n+1)):e[t.s]=n},B=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new o(++e),r=0,i=t[0],a=1,s=function(t){n[r++]=t},c=1;c<=e;++c)if(t[c]==i&&c!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=t[c]}return[n.subarray(0,r),e]},F=function(t,e){for(var n=0,r=0;r>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o4&&!z[u[U-1]];--U);var H,G,W,Y,X=d+5<<3,J=F(i,x)+F(a,A)+l,Z=F(i,m)+F(a,y)+l+14+3*U+F(M,z)+(2*M[16]+3*M[17]+7*M[18]);if(X<=J&&X<=Z)return j(e,p,t.subarray(f,f+d));if(T(e,p,1+(Z15&&(T(e,p,tt[D]>>>5&127),p+=tt[D]>>>12)}}}else H=_,G=x,W=k,Y=A;for(D=0;D255){et=r[D]>>>18&31;O(e,p,H[et+257]),p+=G[et+257],et>7&&(T(e,p,r[D]>>>23&31),p+=s[et]);var nt=31&r[D];O(e,p,W[nt]),p+=Y[nt],nt>3&&(O(e,p,r[D]>>>5&8191),p+=c[nt])}else O(e,p,H[r[D]]),p+=G[r[D]];return O(e,p,H[256]),p+G[256]},z=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),V=new i(0),U=function(t,e,n,r,u,l){var h=t.length,f=new i(r+h+5*(1+Math.floor(h/7e3))+u),p=f.subarray(r,f.length-u),g=0;if(!e||h<8)for(var v=0;v<=h;v+=65535){var b=v+65535;b>>13,x=8191&y,A=(1<7e3||R>24576)&&G>423){g=q(t,p,0,C,P,M,O,R,B,v-B,g),R=T=O=0,B=v;for(var W=0;W<286;++W)P[W]=0;for(W=0;W<30;++W)M[W]=0}var Y=2,X=0,J=x,Z=U-H&32767;if(G>2&&F==L(v-Z))for(var K=Math.min(w,G)-1,Q=Math.min(32767,v),$=Math.min(258,G);Z<=Q&&--J&&U!=H;){if(t[v+Y]==t[v+Y-Z]){for(var tt=0;tt<$&&t[v+tt]==t[v+tt-Z];++tt);if(tt>Y){if(Y=tt,X=Z,tt>K)break;var et=Math.min(Z,tt-2),nt=0;for(W=0;Wnt&&(nt=it,H=rt)}}}Z+=(U=H)-(H=_[U])+32768&32767}if(X){C[R++]=268435456|d[Y]<<18|m[X];var ot=31&d[Y],at=31&m[X];O+=s[ot]+c[at],++P[257+ot],++M[at],D=v+Y,++T}else C[R++]=t[v],++P[t[v]]}}g=q(t,p,l,C,P,M,O,R,B,v-B,g),l||(g=j(p,g,V))}return I(f,0,r+E(g)+u)},H=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},G=function(t,e,n,r,i){return U(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!i)},W=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},Y=function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},X=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function J(t,e){void 0===e&&(e={});var n=H();n.p(t);var r=G(t,e,2,4);return Y(r,e),W(r,r.length-4,n.d()),r}function Z(t,e){return M((X(t),t.subarray(2,-4)),e)}var K=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this}();function Q(){K.console&&"function"==typeof K.console.log&&K.console.log.apply(K.console,arguments)}var $={log:Q,warn:function(t){K.console&&("function"==typeof K.console.warn?K.console.warn.apply(K.console,arguments):Q.call(null,arguments))},error:function(t){K.console&&("function"==typeof K.console.error?K.console.error.apply(K.console,arguments):Q(t))}};function tt(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){ot(r.response,e,n)},r.onerror=function(){$.error("could not download file")},r.send()}function et(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function nt(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var rt,it,ot=K.saveAs||("object"!==("undefined"==typeof window?"undefined":r(window))||window!==K?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=K.URL||K.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?et(i.href)?tt(t,e,n):nt(i,i.target="_blank"):nt(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){nt(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(et(t))tt(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){nt(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==r(e)&&($.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return tt(t,e,n);var o="application/octet-stream"===t.type,a=/constructor/i.test(K.HTMLElement)||K.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&a)&&"object"===("undefined"==typeof FileReader?"undefined":r(FileReader))){var c=new FileReader;c.onloadend=function(){var t=c.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var u=K.URL||K.webkitURL,l=u.createObjectURL(t);i?i.location=l:location.href=l,i=null,setTimeout((function(){u.revokeObjectURL(l)}),4e4)}});function at(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}function st(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n=ut(n,r,i,o,e[0],7,-680876936),o=ut(o,n,r,i,e[1],12,-389564586),i=ut(i,o,n,r,e[2],17,606105819),r=ut(r,i,o,n,e[3],22,-1044525330),n=ut(n,r,i,o,e[4],7,-176418897),o=ut(o,n,r,i,e[5],12,1200080426),i=ut(i,o,n,r,e[6],17,-1473231341),r=ut(r,i,o,n,e[7],22,-45705983),n=ut(n,r,i,o,e[8],7,1770035416),o=ut(o,n,r,i,e[9],12,-1958414417),i=ut(i,o,n,r,e[10],17,-42063),r=ut(r,i,o,n,e[11],22,-1990404162),n=ut(n,r,i,o,e[12],7,1804603682),o=ut(o,n,r,i,e[13],12,-40341101),i=ut(i,o,n,r,e[14],17,-1502002290),n=lt(n,r=ut(r,i,o,n,e[15],22,1236535329),i,o,e[1],5,-165796510),o=lt(o,n,r,i,e[6],9,-1069501632),i=lt(i,o,n,r,e[11],14,643717713),r=lt(r,i,o,n,e[0],20,-373897302),n=lt(n,r,i,o,e[5],5,-701558691),o=lt(o,n,r,i,e[10],9,38016083),i=lt(i,o,n,r,e[15],14,-660478335),r=lt(r,i,o,n,e[4],20,-405537848),n=lt(n,r,i,o,e[9],5,568446438),o=lt(o,n,r,i,e[14],9,-1019803690),i=lt(i,o,n,r,e[3],14,-187363961),r=lt(r,i,o,n,e[8],20,1163531501),n=lt(n,r,i,o,e[13],5,-1444681467),o=lt(o,n,r,i,e[2],9,-51403784),i=lt(i,o,n,r,e[7],14,1735328473),n=ht(n,r=lt(r,i,o,n,e[12],20,-1926607734),i,o,e[5],4,-378558),o=ht(o,n,r,i,e[8],11,-2022574463),i=ht(i,o,n,r,e[11],16,1839030562),r=ht(r,i,o,n,e[14],23,-35309556),n=ht(n,r,i,o,e[1],4,-1530992060),o=ht(o,n,r,i,e[4],11,1272893353),i=ht(i,o,n,r,e[7],16,-155497632),r=ht(r,i,o,n,e[10],23,-1094730640),n=ht(n,r,i,o,e[13],4,681279174),o=ht(o,n,r,i,e[0],11,-358537222),i=ht(i,o,n,r,e[3],16,-722521979),r=ht(r,i,o,n,e[6],23,76029189),n=ht(n,r,i,o,e[9],4,-640364487),o=ht(o,n,r,i,e[12],11,-421815835),i=ht(i,o,n,r,e[15],16,530742520),n=ft(n,r=ht(r,i,o,n,e[2],23,-995338651),i,o,e[0],6,-198630844),o=ft(o,n,r,i,e[7],10,1126891415),i=ft(i,o,n,r,e[14],15,-1416354905),r=ft(r,i,o,n,e[5],21,-57434055),n=ft(n,r,i,o,e[12],6,1700485571),o=ft(o,n,r,i,e[3],10,-1894986606),i=ft(i,o,n,r,e[10],15,-1051523),r=ft(r,i,o,n,e[1],21,-2054922799),n=ft(n,r,i,o,e[8],6,1873313359),o=ft(o,n,r,i,e[15],10,-30611744),i=ft(i,o,n,r,e[6],15,-1560198380),r=ft(r,i,o,n,e[13],21,1309151649),n=ft(n,r,i,o,e[4],6,-145523070),o=ft(o,n,r,i,e[11],10,-1120210379),i=ft(i,o,n,r,e[2],15,718787259),r=ft(r,i,o,n,e[9],21,-343485551),t[0]=wt(n,t[0]),t[1]=wt(r,t[1]),t[2]=wt(i,t[2]),t[3]=wt(o,t[3])}function ct(t,e,n,r,i,o){return e=wt(wt(e,t),wt(r,o)),wt(e<>>32-i,n)}function ut(t,e,n,r,i,o,a){return ct(e&n|~e&r,t,e,i,o,a)}function lt(t,e,n,r,i,o,a){return ct(e&r|n&~r,t,e,i,o,a)}function ht(t,e,n,r,i,o,a){return ct(e^n^r,t,e,i,o,a)}function ft(t,e,n,r,i,o,a){return ct(n^(e|~r),t,e,i,o,a)}function dt(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)st(r,pt(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(st(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,st(r,i),r}function pt(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}rt=K.atob.bind(K),it=K.btoa.bind(K);var gt="0123456789abcdef".split("");function mt(t){for(var e="",n=0;n<4;n++)e+=gt[t>>8*n+4&15]+gt[t>>8*n&15];return e}function vt(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function bt(t){return dt(t).map(vt).join("")}var yt="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function xt(t,e){var n,r,i,o;if(t!==n){for(var a=(i=t,o=1+(256/t.length>>0),new Array(o+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var u=0;for(c=0;c<256;c++){var l=s[c];u=(u+l+a.charCodeAt(c))%256,s[c]=s[u],s[u]=l}n=t,r=s}else s=r;var h=e.length,f=0,d=0,p="";for(c=0;c€/\f©þdSiz";var o=(e+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=bt(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=xt(this.encryptionKey,this.padding)}function St(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function kt(t){if("object"!==r(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in e[n]){var a=e[n][o];try{a[0].apply(t,r)}catch(n){K.console&&$.error("jsPDF PubSub Error",n.message,n)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Nt(t){if(!(this instanceof Nt))return new Nt(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function Lt(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Ct(t,e,n,r,i){if(!(this instanceof Ct))return new Ct(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,Lt.call(this,r,i)}function Pt(t,e,n,r,i){if(!(this instanceof Pt))return new Pt(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Lt.call(this,r,i)}function Et(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],o=arguments[2],a=arguments[3],s=[],c=1,u=16,l="S",h=null;"object"===r(t=t||{})&&(n=t.orientation,i=t.unit||i,o=t.format||o,a=t.compress||t.compressPdf||a,null!==(h=t.encryption||null)&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),c="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(u=t.floatPrecision),l=t.defaultPathOperation||"S"),s=t.filters||(!0===a?["FlateEncode"]:s),i=i||"mm",n=(""+(n||"P")).toLowerCase();var f=t.putOnlyUsedFonts||!1,d={},p={internal:{},__private__:{}};p.__private__.PubSub=kt;var g="1.3",m=p.__private__.getPdfVersion=function(){return g};p.__private__.setPdfVersion=function(t){g=t};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return v};var b=p.__private__.getPageFormat=function(t){return v[t]};o=o||"a4";var y={COMPAT:"compat",ADVANCED:"advanced"},w=y.COMPAT;function x(){this.saveGraphicsState(),et(new Gt(yt,0,0,-yt,0,qn()*yt).toString()+" cm"),this.setFontSize(this.getFontSize()/yt),l="n",w=y.ADVANCED}function A(){this.restoreGraphicsState(),l="S",w=y.COMPAT}var _=p.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};p.advancedAPI=function(t){var e=w===y.COMPAT;return e&&x.call(this),"function"!=typeof t||(t(this),e&&A.call(this)),this},p.compatAPI=function(t){var e=w===y.ADVANCED;return e&&A.call(this),"function"!=typeof t||(t(this),e&&x.call(this)),this},p.isAdvancedAPI=function(){return w===y.ADVANCED};var S,k=function(t){if(w!==y.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},N=p.roundToPrecision=p.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};S=p.hpf=p.__private__.hpf="number"==typeof u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,u)}:"smart"===u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,16)};var L=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return N(t,2)},C=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return N(t,3)},P=p.scale=p.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return w===y.COMPAT?t*yt:w===y.ADVANCED?t:void 0},E=function(t){return w===y.COMPAT?qn()-t:w===y.ADVANCED?t:void 0},I=function(t){return P(E(t))};p.__private__.setPrecision=p.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var M,T="00000000000000000000000000000000",O=p.__private__.getFileId=function(){return T},R=p.__private__.setFileId=function(t){return T=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():T.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==h&&(Ye=new _t(h.userPermissions,h.userPassword,h.ownerPassword,T)),T};p.setFileId=function(t){return R(t),this},p.getFileId=function(){return O()};var D=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,z(r),"'",z(i),"'"].join("");return["D:",t.getFullYear(),z(t.getMonth()+1),z(t.getDate()),z(t.getHours()),z(t.getMinutes()),z(t.getSeconds()),o].join("")},B=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,o,a,0)},F=p.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=D(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return M=e},j=p.__private__.getCreationDate=function(t){var e=M;return"jsDate"===t&&(e=B(M)),e};p.setCreationDate=function(t){return F(t),this},p.getCreationDate=function(t){return j(t)};var q,z=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},V=p.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},U=0,H=[],G=[],W=0,Y=[],X=[],J=!1,Z=G,Q=function(){U=0,W=0,G=[],H=[],Y=[],$t=Zt(),te=Zt()};p.__private__.setCustomOutputDestination=function(t){J=!0,Z=t};var tt=function(t){J||(Z=t)};p.__private__.resetCustomOutputDestination=function(){J=!1,Z=G};var et=p.__private__.out=function(t){return t=t.toString(),W+=t.length+1,Z.push(t),Z},nt=p.__private__.write=function(t){return et(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},rt=p.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},st=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return st};var ct=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(t){return ct=w===y.ADVANCED?t/yt:t,this};var ut,lt=p.__private__.getFontSize=p.getFontSize=function(){return w===y.COMPAT?ct:ct*yt},ht=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(t){return ht=t,this},p.__private__.getR2L=p.getR2L=function(){return ht};var ft,dt=p.__private__.setZoomMode=function(t){if(/^\d*\.?\d*%$/.test(t))ut=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');ut=t}else ut=parseInt(t,10)};p.__private__.getZoomMode=function(){return ut};var pt,gt=p.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');ft=t};p.__private__.getPageMode=function(){return ft};var mt=p.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');pt=t};p.__private__.getLayoutMode=function(){return pt},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,n){return dt(t),mt(e),gt(n),this};var vt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(vt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return vt[t]},p.__private__.getDocumentProperties=function(){return vt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in vt)vt.hasOwnProperty(e)&&t[e]&&(vt[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(vt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return vt[t]=e};var bt,yt,wt,xt,At,Lt={},It={},Mt=[],Tt={},Ot={},Rt={},Dt={},Bt=null,Ft=0,jt=[],qt=new kt(p),zt=t.hotfixes||[],Vt={},Ut={},Ht=[],Gt=function t(e,n,r,i,o,a){if(!(this instanceof t))return new t(e,n,r,i,o,a);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(a)&&(a=0),this._matrix=[e,n,r,i,o,a]};Object.defineProperty(Gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Gt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Gt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(t)},Gt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new Gt(e,n,r,i,o,a)},Gt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var c=Math.sqrt(n*n+r*r);return s/=c,t*(r/=c)>16&255,i=u>>8&255,o=255&u}if(void 0===i||void 0===a&&n===i&&i===o)if("string"==typeof n)e=n+" "+s[0];else if(2===t.precision)e=L(n/255)+" "+s[0];else e=C(n/255)+" "+s[0];else if(void 0===a||"object"===r(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)e=[n,i,o,s[1]].join(" ");else if(2===t.precision)e=[L(n/255),L(i/255),L(o/255),s[1]].join(" ");else e=[C(n/255),C(i/255),C(o/255),s[1]].join(" ")}else if("string"==typeof n)e=[n,i,o,a,s[2]].join(" ");else if(2===t.precision)e=[L(n),L(i),L(o),L(a),s[2]].join(" ");else e=[C(n),C(i),C(o),C(a),s[2]].join(" ");return e},re=p.__private__.getFilters=function(){return s},ie=p.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||re(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a=t.objectId,s=function(t){return t};if(null!==h&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==h&&(s=Ye.encryptor(a,0));var c={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],l=(c=void 0!==Et.API.processDataByFilters?Et.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=l.length)if(l.split("/").length-1==1)u.push({key:"Filter",value:l});else{u.push({key:"Filter",value:"["+l+"]"});for(var f=0;f>"),0!==c.data.length&&(et("stream"),et(s(c.data)),et("endstream"))},oe=p.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Kt(r,!0),et("<>"),et("endobj");var o=n.join("\n");return w===y.ADVANCED&&(o+="\nQ"),Kt(i,!0),ie({data:o,filters:re(),objectId:i}),et("endobj"),r},ae=p.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Ft;t++)jt[t].objId=Zt(),jt[t].contentsObjId=Zt();for(t=1;t<=Ft;t++)n.push(oe({number:t,data:X[t],objId:jt[t].objId,contentsObjId:jt[t].contentsObjId,mediaBox:jt[t].mediaBox,cropBox:jt[t].cropBox,bleedBox:jt[t].bleedBox,trimBox:jt[t].trimBox,artBox:jt[t].artBox,userUnit:jt[t].userUnit,rootDictionaryObjId:$t,resourceDictionaryObjId:te}));Kt($t,!0),et("<>"),et("endobj"),qt.publish("postPutPages")},se=function(t){qt.publish("putFont",{font:t,out:et,newObject:Jt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Jt(),et("<<"),et("/Type /Font"),et("/BaseFont /"+St(t.postScriptName)),et("/Subtype /Type1"),"string"==typeof t.encoding&&et("/Encoding /"+t.encoding),et("/FirstChar 32"),et("/LastChar 255"),et(">>"),et("endobj"))},ce=function(){for(var t in Lt)Lt.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&se(Lt[t])},ue=function(t){t.objectNumber=Jt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[S(t.x),S(t.y),S(t.x+t.width),S(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ie({data:n,additionalKeyValues:e,objectId:t.objectNumber}),et("endobj")},le=function(){for(var t in Vt)Vt.hasOwnProperty(t)&&ue(Vt[t])},he=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var o={offset:0,color:t[0].color};t.unshift(o)}if(1!=t[t.length-1].offset){var a={offset:1,color:t[t.length-1].color};t.push(a)}for(var s="",c=0,u=0;ut[c+1].offset;)c++;var l=t[c].offset,h=(n-l)/(t[c+1].offset-l),f=t[c].color,d=t[c+1].color;s+=V(Math.round((1-h)*f[0]+h*d[0]).toString(16))+V(Math.round((1-h)*f[1]+h*d[1]).toString(16))+V(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()},fe=function(t,e){e||(e=21);var n=Jt(),r=he(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),et("endobj"),t.objectNumber=Jt(),et("<< /ShadingType "+t.type),et("/ColorSpace /DeviceRGB");var o="/Coords ["+S(parseFloat(t.coords[0]))+" "+S(parseFloat(t.coords[1]))+" ";2===t.type?o+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3])):o+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3]))+" "+S(parseFloat(t.coords[4]))+" "+S(parseFloat(t.coords[5])),et(o+="]"),t.matrix&&et("/Matrix ["+t.matrix.toString()+"]"),et("/Function "+n+" 0 R"),et("/Extend [true true]"),et(">>"),et("endobj")},de=function(t,e){var n=Zt(),r=Jt();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(S).join(" ")+"]"}),i.push({key:"XStep",value:S(t.xStep)}),i.push({key:"YStep",value:S(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),et("endobj")},pe=function(t){var e;for(e in Tt)Tt.hasOwnProperty(e)&&(Tt[e]instanceof Ct?fe(Tt[e]):Tt[e]instanceof Pt&&de(Tt[e],t))},ge=function(t){for(var e in t.objectNumber=Jt(),et("<<"),t)switch(e){case"opacity":et("/ca "+L(t[e]));break;case"stroke-opacity":et("/CA "+L(t[e]))}et(">>"),et("endobj")},me=function(){var t;for(t in Rt)Rt.hasOwnProperty(t)&&ge(Rt[t])},ve=function(){for(var t in et("/XObject <<"),Vt)Vt.hasOwnProperty(t)&&Vt[t].objectNumber>=0&&et("/"+t+" "+Vt[t].objectNumber+" 0 R");qt.publish("putXobjectDict"),et(">>")},be=function(){Ye.oid=Jt(),et("<<"),et("/Filter /Standard"),et("/V "+Ye.v),et("/R "+Ye.r),et("/U <"+Ye.toHexString(Ye.U)+">"),et("/O <"+Ye.toHexString(Ye.O)+">"),et("/P "+Ye.P),et(">>"),et("endobj")},ye=function(){for(var t in et("/Font <<"),Lt)Lt.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&et("/"+t+" "+Lt[t].objectNumber+" 0 R");et(">>")},we=function(){if(Object.keys(Tt).length>0){for(var t in et("/Shading <<"),Tt)Tt.hasOwnProperty(t)&&Tt[t]instanceof Ct&&Tt[t].objectNumber>=0&&et("/"+t+" "+Tt[t].objectNumber+" 0 R");qt.publish("putShadingPatternDict"),et(">>")}},xe=function(t){if(Object.keys(Tt).length>0){for(var e in et("/Pattern <<"),Tt)Tt.hasOwnProperty(e)&&Tt[e]instanceof p.TilingPattern&&Tt[e].objectNumber>=0&&Tt[e].objectNumber>")}},Ae=function(){if(Object.keys(Rt).length>0){var t;for(t in et("/ExtGState <<"),Rt)Rt.hasOwnProperty(t)&&Rt[t].objectNumber>=0&&et("/"+t+" "+Rt[t].objectNumber+" 0 R");qt.publish("putGStateDict"),et(">>")}},_e=function(t){Kt(t.resourcesOid,!0),et("<<"),et("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),xe(t.objectOid),Ae(),ve(),et(">>"),et("endobj")},Se=function(){var t=[];ce(),me(),le(),pe(t),qt.publish("putResources"),t.forEach(_e),_e({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),qt.publish("postPutResources")},ke=function(){qt.publish("putAdditionalObjects");for(var t=0;t>8&&(c=!0);t=s.join("")}for(n=t.length;void 0===c&&0!==n;)t.charCodeAt(n-1)>>8&&(c=!0),n--;if(!c)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(u-(l<<8))}return String.fromCharCode.apply(void 0,s)},Ie=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return Ee(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Me=p.__private__.beginPage=function(t){X[++Ft]=[],jt[Ft]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Re(Ft),tt(X[q])},Te=function(t,e){var r,i,a;switch(n=e||n,"string"==typeof t&&(r=b(t.toLowerCase()),Array.isArray(r)&&(i=r[0],a=r[1])),Array.isArray(t)&&(i=t[0]*yt,a=t[1]*yt),isNaN(i)&&(i=o[0],a=o[1]),(i>14400||a>14400)&&($.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),a=Math.min(14400,a)),o=[i,a],n.substr(0,1)){case"l":a>i&&(o=[a,i]);break;case"p":i>a&&(o=[a,i])}Me(o),gn(dn),et(_n),0!==Pn&&et(Pn+" J"),0!==En&&et(En+" j"),qt.publish("addPage",{pageNumber:Ft})},Oe=function(t){t>0&&t<=Ft&&(X.splice(t,1),jt.splice(t,1),Ft--,q>Ft&&(q=Ft),this.setPage(q))},Re=function(t){t>0&&t<=Ft&&(q=t)},De=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return X.length-1},Be=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:Lt[bt].fontName,e=void 0!==e?e:Lt[bt].fontStyle,r=t.toLowerCase(),void 0!==It[r]&&void 0!==It[r][e]?i=It[r][e]:void 0!==It[t]&&void 0!==It[t][e]?i=It[t][e]:!1===n.disableWarning&&$.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=It.times[e])&&(i=It.times.normal),i},Fe=p.__private__.putInfo=function(){var t=Jt(),e=function(t){return t};for(var n in null!==h&&(e=Ye.encryptor(t,0)),et("<<"),et("/Producer ("+Ie(e("jsPDF "+Et.version))+")"),vt)vt.hasOwnProperty(n)&&vt[n]&&et("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+Ie(e(vt[n]))+")");et("/CreationDate ("+Ie(e(M))+")"),et(">>"),et("endobj")},je=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||$t;switch(Jt(),et("<<"),et("/Type /Catalog"),et("/Pages "+e+" 0 R"),ut||(ut="fullwidth"),ut){case"fullwidth":et("/OpenAction [3 0 R /FitH null]");break;case"fullheight":et("/OpenAction [3 0 R /FitV null]");break;case"fullpage":et("/OpenAction [3 0 R /Fit]");break;case"original":et("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ut;"%"===n.substr(n.length-1)&&(ut=parseInt(ut)/100),"number"==typeof ut&&et("/OpenAction [3 0 R /XYZ null null "+L(ut)+"]")}switch(pt||(pt="continuous"),pt){case"continuous":et("/PageLayout /OneColumn");break;case"single":et("/PageLayout /SinglePage");break;case"two":case"twoleft":et("/PageLayout /TwoColumnLeft");break;case"tworight":et("/PageLayout /TwoColumnRight")}ft&&et("/PageMode /"+ft),qt.publish("putCatalog"),et(">>"),et("endobj")},qe=p.__private__.putTrailer=function(){et("trailer"),et("<<"),et("/Size "+(U+1)),et("/Root "+U+" 0 R"),et("/Info "+(U-1)+" 0 R"),null!==h&&et("/Encrypt "+Ye.oid+" 0 R"),et("/ID [ <"+T+"> <"+T+"> ]"),et(">>")},ze=p.__private__.putHeader=function(){et("%PDF-"+g),et("%ºß¬à")},Ve=p.__private__.putXRef=function(){var t="0000000000";et("xref"),et("0 "+(U+1)),et("0000000000 65535 f ");for(var e=1;e<=U;e++)"function"==typeof H[e]?et((t+H[e]()).slice(-10)+" 00000 n "):void 0!==H[e]?et((t+H[e]).slice(-10)+" 00000 n "):et("0000000000 00000 n ")},Ue=p.__private__.buildDocument=function(){Q(),tt(G),qt.publish("buildDocument"),ze(),ae(),ke(),Se(),null!==h&&be(),Fe(),je();var t=W;return Ve(),qe(),et("startxref"),et(""+t),et("%%EOF"),tt(X[q]),G.join("\n")},He=p.__private__.getBlob=function(t){return new Blob([rt(t)],{type:"application/pdf"})},Ge=p.output=p.__private__.output=Pe((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return Ue();case"save":p.save(e.filename);break;case"arraybuffer":return rt(Ue());case"blob":return He(Ue());case"bloburi":case"bloburl":if(void 0!==K.URL&&"function"==typeof K.URL.createObjectURL)return K.URL&&K.URL.createObjectURL(He(Ue()))||void 0;$.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=Ue();try{n=it(r)}catch(t){n=it(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(K)){var i='