1parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"KF9P":[function(require,module,exports) { 2var define; 3var t;!function(e){"function"==typeof t&&t.amd?t(["jquery"],e):e(jQuery)}(function(t){function e(e,s){var n,o,r,a=e.nodeName.toLowerCase();return"area"===a?(o=(n=e.parentNode).name,!(!e.href||!o||"map"!==n.nodeName.toLowerCase())&&(!!(r=t("img[usemap='#"+o+"']")[0])&&i(r))):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a&&e.href||s)&&i(e)}function i(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return(!s||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])},focusable:function(i){return e(i,!isNaN(t.attr(i,"tabindex")))},tabbable:function(i){var s=t.attr(i,"tabindex"),n=isNaN(s);return(n||s>=0)&&e(i,!n)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(e,i){function s(e,i,s,o){return t.each(n,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?r["inner"+i].call(this):this.each(function(){t(this).css(o,s(this,e)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?r["outer"+i].call(this,e):this.each(function(){t(this).css(o,s(this,e,!0,n)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(i,s){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),s&&s.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,s,n=t(this[0]);n.length&&n[0]!==document;){if(("absolute"===(i=n.css("position"))||"relative"===i||"fixed"===i)&&(s=parseInt(n.css("zIndex"),10),!isNaN(s)&&0!==s))return s;n=n.parent()}return 0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])}
3,call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}};var s=0,n=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove")}catch(r){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,r,a,l={},h=e.split(".")[0];return e=e.split(".")[1],n=h+"-"+e,s||(s=i,i=t.Widget),t.expr[":"][n.toLowerCase()]=function(e){return!!t.data(e,n)},t[h]=t[h]||{},o=t[h][e],r=t[h][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new r(t,e)},t.extend(r,o,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},n=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}()):void(l[e]=s)}),r.prototype=t.widget.extend(a,{widgetEventPrefix:o&&a.widgetEventPrefix||e},l,{constructor:r,namespace:h,widgetName:e,widgetFullName:n}),o?(t.each(o._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,r,i._proto)}),delete o._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r),r},t.widget.extend=function(e){for(var i,s,o=n.call(arguments,1),r=0,a=o.length;a>r;r++)for(i in o[r])s=o[r][i],o[r].hasOwnProperty(i)&&void 0!==s&&(e[i]=t.isPlainObject(s)?t.isPlainObject(e[i])?t.widget.extend({},e[i],s):t.widget.extend({},s):s);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var r="string"==typeof o,a=n.call(arguments,1),l=this;return o=!r&&a.length?t.widget.extend.apply(null,[o].concat(a)):o,r?this.each(function(){var i,n=t.data(this,s);return"instance"===o?(l=n,!1):n?t.isFunction(n[o])&&"_"!==o.charAt(0)?(i=n[o].apply(n,a))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):this.each(function(){var e=t.data(this,s);e?(e.option(o||{}),e._init&&e._init()):t.data(this,s,new i(o,this))}),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=s++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},s=e.split("."),e=s.shift(),s.length){for(n=r[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=i}return this._setOptions(r),this},_setOptions:function(t){var e;
3for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,r){function a(){return e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof r?o[r]:r).apply(o,arguments):void 0}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,u=l[2];u?n.delegate(u,h,a):i.bind(h,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,s){var n,o,r=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var r,a=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})&&(n={duration:n}),r=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),r&&t.effects&&t.effects.effect[a]?s[e](n):a!==e&&s[a]?s[a](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget;var o=!1;t(document).mouseup(function(){o=!1}),t.widget("ui.mouse",{version:"1.11.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!o){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,s=1===e.which,n=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(s&&!n&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),o=!0,!0))}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button?this._mouseUp(e):e.which?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),o=!1,!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function(){function e(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}t.ui=t.ui||{};var s,n,o=Math.max,r=Math.abs,a=Math.round,l=/left|center|right/,h=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,d=/%$/,p=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,i,n=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=n.children()[0];return t("body").append(n),e=o.offsetWidth,n.css("overflow","scroll"),e===(i=o.offsetWidth)&&(i=n[0].clientWidth),n.remove(),s=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:s,isDocument:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s||n?i.width():i.outerWidth(),height:s||n?i.height():i.outerHeight()}}},t.fn.position=function(s){if(!s||!s.of)return p.apply(this,arguments);s=t.extend({},s);var d,f,m,g,v,_,b=t(s.of),y=t.position.getWithinInfo(s.within),w=t.position.getScrollInfo(y),x=(s.collision||"flip").split(" "),P={};return _=function(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}(b),b[0].preventDefault&&(s.at="left top"),f=_.width,m=_.height,g=_.offset,v=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(s[this]||"").split(" ");1===i.length&&(i=l.test(i[0])?i.concat(["center"]):h.test(i[0])?["center"].concat(i):["center","center"]),i[0]=l.test(i[0])?i[0]:"center",i[1]=h.test(i[1])?i[1]:"center",t=u.exec(i[0]),e=u.exec(i[1]),P[this]=[t?t[0]:0,e?e[0]:0],s[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===s.at[0]?v.left+=f:"center"===s.at[0]&&(v.left+=f/2),"bottom"===s.at[1]?v.top+=m:"center"===s.at[1]&&(v.top+=m/2),d=e(P.at,f,m),v.left+=d[0],v.top+=d[1],this.each(function(){var l,h,u=t(this),c=u.outerWidth(),p=u.outerHeight(),_=i(this,"marginLeft"),C=i(this,"marginTop"),T=c+_+i(this,"marginRight")+w.width,k=p+C+i(this,"marginBottom")+w.height,E=t.extend({},v),N=e(P.my,u.outerWidth(),u.outerHeight());"right"===s.my[0]?E.left-=c:"center"===s.my[0]&&(E.left-=c/2),"bottom"===s.my[1]?E.top-=p:"center"===s.my[1]&&(E.top-=p/2),E.left+=N[0],E.top+=N[1],n||(E.left
vendor: 1,440 bytes, line 3
3=a(E.left),E.top=a(E.top)),l={marginLeft:_,marginTop:C},t.each(["left","top"],function(e,i){t.ui.position[x[e]]&&t.ui.position[x[e]][i](E,{targetWidth:f,targetHeight:m,elemWidth:c,elemHeight:p,collisionPosition:l,collisionWidth:T,collisionHeight:k,offset:[d[0]+N[0],d[1]+N[1]],my:s.my,at:s.at,within:y,elem:u})}),s.using&&(h=function(t){var e=g.left-E.left,i=e+f-c,n=g.top-E.top,a=n+m-p,l={target:{element:b,left:g.left,top:g.top,width:f,height:m},element:{element:u,left:E.left,top:E.top,width:c,height:p},horizontal:0>i?"left":e>0?"right":"center",vertical:0>a?"top":n>0?"bottom":"middle"};c>f&&f>r(e+i)&&(l.horizontal="center"),p>m&&m>r(n+a)&&(l.vertical="middle"),l.important=o(r(e),r(i))>o(r(n),r(a))?"horizontal":"vertical",s.using.call(this,t,l)}),u.offset(t.extend(E,{using:h}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,r=s.width,a=t.left-e.collisionPosition.marginLeft,l=n-a,h=a+e.collisionWidth-r-n;e.collisionWidth>r?l>0&&0>=h?(i=t.left+l+e.collisionWidth-r-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+r-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-a,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,r=e.within.height,a=t.top-e.collisionPosition.marginTop,l=n-a,h=a+e.collisionHeight-r-n;e.collisionHeight>r?l>0&&0>=h?(i=t.top+l+e.collisionHeight-r-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+r-e.collisionHeight:n:l>0?t.top+=l:h>
30?t.top-=h:t.top=o(t.top-a,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,a=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,u=h-l,c=h+e.collisionWidth-a-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>u?(0>(i=t.left+d+p+f+e.collisionWidth-a-o)||r(u)>i)&&(t.left+=d+p+f):c>0&&(((s=t.left-e.collisionPosition.marginLeft+d+p+f-l)>0||c>r(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,a=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,u=h-l,c=h+e.collisionHeight-a-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];0>u?(s=t.top+d+p+f+e.collisionHeight-a-o,t.top+d+p+f>u&&(0>s||r(u)>s)&&(t.top+=d+p+f)):c>0&&(i=t.top-e.collisionPosition.marginTop+d+p+f-l,t.top+d+p+f>c&&(i>0||c>r(i))&&(t.top+=d+p+f))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,s,o,r,a=document.getElementsByTagName("body")[0],l=document.createElement("div");for(r in e=document.createElement(a?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"}),s)e.style[r]=s[r];e.appendChild(l),(i=a||document.documentElement).insertBefore(e,i.firstChild),l.style.cssText="position: absolute; left: 10.7432222px;",o=t(l).offset().left,n=o>10&&11>o,e.innerHTML="",i.removeChild(e)}()}(),t.ui.position,t.widget("ui.draggable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var i=this.document[0],s=this.options;try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()&&t(i.activeElement).blur()}catch(n){}return!(this.helper||s.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(t(!0===s.iframeFix?"iframe":s.iframeFix).each(function(){t("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(!1===this._trigger("drag",e,s))return this._mouseUp({}),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",e)&&i._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.element.focus(),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}
vendor: 4,511 bytes, line 3
3),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===n.containment?void(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment.constructor===Array?void(this.containment=n.containment):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),void((s=(i=t(n.containment))[0])&&(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s,n,o,r=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,h=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),r.grid&&(n=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>
3i[3]?n:n-this.offset.click.top>=i[1]?n-r.grid[1]:n+r.grid[1]:n,o=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-r.grid[0]:o+r.grid[0]:o),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s,this],!0),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var n=s.options,o=t.extend({},i,{item:s.element});s.sortables=[],t(n.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,o))})},stop:function(e,i,s){var n=t.extend({},i,{item:s.element});t.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,n))})},drag:function(e,i,s){var n=this;t.each(s.sortables,function(){var o=!1,r=this;this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(o=!0,t.each(s.sortables,function(){return this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this!==r&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(r.instance.element[0],this.instance.element[0])&&(o=!1),o})),o?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(n).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",e),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",e),s.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,s){var n=t("body"),o=s.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(e,i,s){var n=s.options;n._cursor&&t("body").css("cursor",n._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i,s){var n=s.options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}
vendor: 11,312 bytes, line 3
3),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,s){var n=s.options,o=!1,r=s.scrollParentNotHidden[0],a=s.document[0];r!==a&&"HTML"!==r.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+r.offsetHeight-e.pageY<n.scrollSensitivity?r.scrollTop=o=r.scrollTop+n.scrollSpeed:e.pageY-s.overflowOffset.top<n.scrollSensitivity&&(r.scrollTop=o=r.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(s.overflowOffset.left+r.offsetWidth-e.pageX<n.scrollSensitivity?r.scrollLeft=o=r.scrollLeft+n.scrollSpeed:e.pageX-s.overflowOffset.left<n.scrollSensitivity&&(r.scrollLeft=o=r.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-t(a).scrollTop()<n.scrollSensitivity?o=t(a).scrollTop(t(a).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<n.scrollSensitivity&&(o=t(a).scrollTop(t(a).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-t(a).scrollLeft()<n.scrollSensitivity?o=t(a).scrollLeft(t(a).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<n.scrollSensitivity&&(o=t(a).scrollLeft(t(a).scrollLeft()+n.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(s,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,s){var n=s.options;s.snapElements=[],t(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var e=t(this),i=e.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,s){var n,o,r,a,l,h,u,c,d,p,f=s.options,m=f.snapTolerance,g=i.offset.left,v=g+s.helperProportions.width,_=i.offset.top,b=_+s.helperProportions.height;for(d=s.snapElements.length-1;d>=0;d--)h=(l=s.snapElements[d].left)+s.snapElements[d].width,c=(u=s.snapElements[d].top)+s.snapElements[d].height,l-m>v||g>h+m||u-m>b||_>c+m||!t.contains(s.snapElements[d].item.ownerDocument,s.snapElements[d].item)?(s.snapElements[d].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(n=m>=Math.abs(u-b),o=m>=Math.abs(c-_),r=m>=Math.abs(l-v),a=m>=Math.abs(h-g),n&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top-s.margins.top),o&&(i.position.top=s._convertPositionTo("relative",{top:c,left:0}).top-s.margins.top),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left-s.margins.left),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h}).left-s.margins.left)),p=n||o||r||a,"outer"!==f.snapMode&&(n=m>=Math.abs(u-_),o=m>=Math.abs(c-b),r=m>=Math.abs(l-g),a=m>=Math.abs(h-v),n&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top-s.margins.top),o&&(i.position.top=s._convertPositionTo("relative",{top:c-s.helperProportions.height,left:0}).top-s.margins.top),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left-s.margins.left),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left-s.margins.left)),!s.snapElements[d].snapping&&(n||o||r||a||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=n||o||r||a||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,s){var n,o=s.options,r=t.makeArray(t(o.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});r.length&&(n=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each(function(e){t(this).css("zIndex",n+e)}),this.css("zIndex",n+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i,s){var n=s.options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}}),t.ui.draggable,t.widget("ui.menu",{version:"1.11.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var s,n,o,r,a,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,n=this.previousFilter||"",o=String.fromCharCode(e.keyCode),r=!1,clearTimeout(this.filterTimer),o===n?r=!0:o=n+o,a=RegExp("^"+i(o),"i"),s=this.activeMenu.find(this.options.items).filter(function(){return a.test(t(this).text())}),(s=r&&-1!==s.index(this.active.next())?this.active.nextAll(".ui-menu-item"):s).length||(o=String.fromCharCode(e.keyCode),a=RegExp("^"+i(o),"i"),s=this.activeMenu.find(this.options.items).filter(function(){return a.test(t(this).text())})),s.length?(this.focus(e,s),s.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var e,i=this,s=this.options.icons.submenu,n=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.parent(),n=t("<span>").addClass("ui-menu-icon ui-icon "+s).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))}),(e=n.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=t(this);i._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")}),e.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var i,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,r,a;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),r=this.activeMenu.height(),a=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+a>r&&this.activeMenu.scrollTop(o+n-r+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
3se").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?void(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return 0>(i=t(this)).offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,s,n;return this.active?void(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}}),t.widget("ui.autocomplete",{version:"1.11.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,r="input"===n;this.isMultiLine=!!o||!r&&this.element.prop("isContentEditable"),this.valueMethod=this.element[o||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,void(i=!0);e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault());if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(s){s.target===e.element[0]||s.target===i||t.contains(i,s.target)||e.close()})})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)})):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n}
vendor: 5,400 bytes, lines 3-5
3)&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),void((s=i.item.attr("aria-label")||n.value)&&t.trim(s).length&&(this.liveRegion.children().hide(),t("<div>").text(s).appendTo(this.liveRegion))))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").text(i.label).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete}); 4},{}],"hzat":[function(require,module,exports) { 5!function(t,e){function n(e,i,a,d,l){var s=!1;return e.contents().detach().each(function(){var c=this,u=t(c);if(void 0===c||3==c.nodeType&&0==t.trim(c.data).length)return!0;
5if(u.is("script, .dotdotdot-keep"))e.append(u);else{if(s)return!0;e.append(u),l&&e[e.is("table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style")?"after":"append"](l),o(a,d)&&((s=3==c.nodeType?r(u,i,a,d,l):n(u,i,a,d,l))||(u.detach(),s=!0)),s||l&&l.detach()}}),s}function r(e,n,r,a,s){var u=e[0];if(!u)return!1;var h=l(u),f=-1!==h.indexOf(" ")?" ":"ã",p="letter"==a.wrap?"":f,g=h.split(p),v=-1,w=-1,b=0,y=g.length-1;for(a.fallbackToLetter&&0==b&&0==y&&(p="",y=(g=h.split(p)).length-1);y>=b&&(0!=b||0!=y);){var m=Math.floor((b+y)/2);if(m==w)break;w=m,d(u,g.slice(0,w+1).join(p)+a.ellipsis),o(r,a)?(y=w,a.fallbackToLetter&&0==b&&0==y&&(p="",v=-1,w=-1,b=0,y=(g=g[0].split(p)).length-1)):(v=w,b=w)}if(-1==v||1==g.length&&0==g[0].length){var x=e.parent();e.detach();var T=s&&s.closest(x).length?s.length:0;x.contents().length>T?u=c(x.contents().eq(-1-T),n):(u=c(x,n,!0),T||x.detach()),u&&(d(u,h=i(l(u),a)),T&&s&&t(u).parent().append(s))}else d(u,h=i(g.slice(0,v+1).join(p),a));return!0}function o(t,e){return t.innerHeight()>e.maxHeight}function i(e,n){for(;t.inArray(e.slice(-1),n.lastCharacter.remove)>-1;)e=e.slice(0,-1);return t.inArray(e.slice(-1),n.lastCharacter.noEllipsis)<0&&(e+=n.ellipsis),e}function a(t){return{width:t.innerWidth(),height:t.innerHeight()}}function d(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function l(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function s(t){do{t=t.previousSibling}while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function c(e,n,r){var o,i=e&&e[0];if(i){if(!r){if(3===i.nodeType)return i;if(t.trim(e.text()))return c(e.contents().last(),n)}for(o=s(i);!o;){if((e=e.parent()).is(n)||!e.length)return!1;o=s(e[0])}if(o)return c(t(o),n)}return!1}if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){t(this).dotdotdot(e)});var r=this;r.data("dotdotdot")&&r.trigger("destroy.dot"),r.data("dotdotdot-style",r.attr("style")||""),r.css("word-wrap","break-word"),"nowrap"===r.css("white-space")&&r.css("white-space","normal"),r.bind_events=function(){return r.bind("update.dot",function(e,a){e.preventDefault(),e.stopPropagation(),d.maxHeight="number"==typeof d.height?d.height:function(t){for(var e=t.innerHeight(),n=["paddingTop","paddingBottom"],r=0,o=n.length;o>r;r++){var i=parseInt(t.css(n[r]),10);isNaN(i)&&(i=0),e-=i}return e}(r),d.maxHeight+=d.tolerance,void 0!==a&&(("string"==typeof a||a instanceof HTMLElement)&&(a=t("<div />").append(a).contents()),a instanceof t&&(i=a)),(h=r.wrapInner('<div class="dotdotdot" />').children()).contents().detach().end().append(i.clone(!0)).find("br").replaceWith(" <br /> ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var s=!1,c=!1;return l.afterElement&&((s=l.afterElement.clone(!0)).show(),l.afterElement.detach()),o(h,d)&&(c="children"==d.wrap?function(t,e,n){var r=t.children(),i=!1;t.empty();for(var a=0,d=r.length;d>a;a++){var l=r.eq(a);if(t.append(l),n&&t.append(n),o(t,e)){l.remove(),i=!0;break}n&&n.detach()}return i}(h,d,s):n(h,r,h,d,s)),h.replaceWith(h.contents()),h=null,t.isFunction(d.callback)&&d.callback.call(r[0],c,i),l.isTruncated=c,c}).bind("isTruncated.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(r[0],l.isTruncated),l.isTruncated}).bind("originalContent.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(r[0],i),i}).bind("destroy.dot",function(t){t.preventDefault(),t.stopPropagation(),r.unwatch().unbind_events().contents().detach().end().append(i).attr("style",r.data("dotdotdot-style")||"").data("dotdotdot",!1)}),r},r.unbind_events=function(){return r.unbind(".dot"),r},r.watch=function(){if(r.unwatch(),"window"==d.watch){var e=t(window),n=e.width(),o=e.height();e.bind("resize.dot"+l.dotId,function(){n==e.width()&&o==e.height()&&d.windowResizeFix||(n=e.width(),o=e.height(),c&&clearInterval(c),c=setTimeout(function(){r.trigger("update.dot")},100))})}else s=a(r),c=setInterval(function(){if(r.is(":visible")){var t=a(r);(s.width!=t.width||s.height!=t.height)&&(r.trigger("update.dot"),s=t)}},500);return r},r.unwatch=function(){return t(window).unbind("resize.dot"+l.dotId),c&&clearInterval(c),r};var i=r.contents(),d=t.extend(!0,{},t.fn.dotdotdot.defaults,e),l={},s={},c=null,h=null;return d.lastCharacter.remove instanceof Array||(d.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),d.lastCharacter.n
5oEllipsis instanceof Array||(d.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),l.afterElement=function(e,n){return!!e&&("string"==typeof e?!!(e=t(e,n)).length&&e:!!e.jquery&&e)}(d.after,r),l.isTruncated=!1,l.dotId=u++,r.data("dotdotdot",!0).bind_events().trigger("update.dot"),d.watch&&r.watch(),r},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","ã",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(){};var u=1,h=t.fn.html;t.fn.html=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?this.trigger("update",[n]):h.apply(this,arguments)};var f=t.fn.text;t.fn.text=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?(n=t("<div />").text(n).html(),this.trigger("update",[n])):f.apply(this,arguments)}}}(jQuery); 6},{}],"reYi":[function(require,module,exports) { 7var define; 8var e;function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){"use strict";var t=e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype,n=e.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),a=n&&e.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),i=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||e.MSBlobBuilder,r=(n||i)&&e.atob&&e.ArrayBuffer&&e.Uint8Array&&function(e){var t,r,o,s,l,u;for(t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURIComponent(e.split(",")[1]),r=new ArrayBuffer(t.length),o=new Uint8Array(r),s=0;s<t.length;s+=1)o[s]=t.charCodeAt(s);return l=e.split(",")[0].split(":")[1].split(";")[0],n?new Blob([a?o:r],{type:l}):((u=new i).append(r),u.getBlob(l))};e.HTMLCanvasElement&&!t.toBlob&&(t.mozGetAsFile?t.toBlob=function(e,n,a){e(a&&t.toDataURL&&r?r(this.toDataURL(n,a)):this.mozGetAsFile("blob",n))}:t.toDataURL&&r&&(t.toBlob=function(e,t,n){e(r(this.toDataURL(t,n)))})),e.dataURLtoBlob=r}(window),function(e,n){"use strict";function a(e,t,n,a,i){var r={type:n.type||n,target:e,result:a};O(r,i),t(r)}function i(e){return v&&!!v.prototype["readAs"+e]}function r(e,t,r,o){if(Q.isBlob(e)&&i(r)){var s=new v;N(s,S,function n(i){var r=i.type;"progress"==r?a(e,t,i,i.target.result,{loaded:i.loaded,total:i.total}):"loadend"==r?(q(s,S,n),s=null):a(e,t,i,i.target.result)});try{o?s["readAs"+r](e,o):s["readAs"+r](e)}catch(l){a(e,t,"error",n,{error:l.toString()})}}else a(e,t,"error",n,{error:"filreader_not_support_"+r})}function o(e){var t;return e.getAsEntry?t=e.getAsEntry():e.webkitGetAsEntry&&(t=e.webkitGetAsEntry()),t}function s(e){return C.test(e&&e.tagName)}function l(e){return(e.originalEvent||e||"").dataTransfer||{}}var u=1,c=function(){},f=e.document,d=f.doctype||{},p=e.navigator.userAgent,h=e.createObjectURL&&e||e.URL&&URL.revokeObjectURL&&URL||e.webkitURL&&webkitURL,m=e.Blob,g=e.File,v=e.FileReader,y=e.FormData,w=e.XMLHttpRequest,b=e.jQuery,A=!(!(g&&v&&(e.Uint8Array||y||w.prototype.sendAsBinary))||/safari\//i.test(p)&&!/chrome\//i.test(p)&&/windows/i.test(p)),x=A&&"withCredentials"in new w,I=A&&!!m&&!!(m.prototype.webkitSlice||m.prototype.mozSlice||m.prototype.slice),F=e.dataURLtoBlob,R=/img/i,T=/canvas/i,_=/img|canvas/i,C=/input/i,E=/^data:[^,]+,/,D={}.toString,P=e.Math,U=function(t){return(t=new e.Number(P.pow(1024,t))).from=function(e){return P.round(e*this)},t},k={},L=[],S="abort progress error load loadend",B="status statusText readyState response responseXML responseText responseBody".split(" "),j="currentTarget",z="preventDefault",H=function(e){return e&&"length"in e},M=function(e,t,n){if(e)if(H(e))for(var a=0,i=e.length;i>a;a++)a in e&&t.call(n,e[a],a,e);else for(var r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)},O=function(e){for(var t=arguments,n=1,a=function(t,n){e[n]=t};n<t.length;n++)M(t[n],a);return e},N=function(e,t,n){if(e){var a=Q.uid(e);k[a]||(k[a]={});var i=v&&e&&e instanceof v;M(t.split(/\s+/),function(t){b&&!i?b.event.add(e,t,n):(k[a][t]||(k[a][t]=[]),k[a][t].push(n),e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n)})}},q=function(e,t,n){if(e){var a=Q.uid(e),i=k[a]||{},r=v&&e&&e instanceof v;M(t.split(/\s+/),function(t){if(b&&!r)b.event.remove(e,t,n);else{for(var a=i[t]||[],o=a.length;o--;)if(a[o]===n){a.splice(o,1);break}e.addEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}})}},X=function(e,t,n){N(e,t,function a(i){q(e,t,a),n(i)})},W=function(t){return t.target||(t.target=e.event&&e.event.srcElement||f),3===t.target.nodeType&&(t.target=t.target.parentNode),t},G=function(e){var t=f.createElement("input");return t.setAttribute("type","file"),e in t},Q={version:"2.0.9",cors:!1,html5:!0,media:!1,formData:!0,multiPassResize:!0,debug:!1,pingUrl:!1,multiFlash:!1,flashAbortTimeout:0,withCredentials:!0,staticPath:"./dist/",flashUrl:0,flashImageUrl:0,postNameConcat:function(e,t){return e+(null!=t?"["+t+"]":"")},ext2mime:{jpg:"image/jpeg",tif:"image/tiff",txt:"text/plain"},accept:{"image/*":"art bm bmp dwg dxf cbr cbz fif fpx gif ico iefs jfif jpe jpeg jpg jps jut mcf nap nif pbm pcx pgm pict pm png pnm qif qtif ras rast rf rp svf tga tif tiff xbm xbm xpm xwd","audio/*":"m4a flac aac rm mpa wav wma ogg mp3 mp2 m3u mod amf dmf dsm far gdm imf it m15 med okt s3m stm sfx ult uni xm sid ac3 dts cue aif aiff wpl ape mac mpc mpp shn wv nsf spc gym adplug adx dsp adp ymf ast afc hps xs","video/*":"m4v 3gp nsv ts ty strm rm rmvb m3u ifo mov qt divx xvid bivx vob nrg img iso pva wmv asf asx ogm m2v avi bin dat dvr-ms mpg mpeg mp4 mkv avc vp3 svq3 nuv viv dv fli flv wpl"},uploadRetry:0,networkDownRetryTimeout:5e3,chunkSize:0,chunkUploadRetry:0,chunkNetworkDownRetryTimeout:2e3,KB:U(1),MB:U(2),GB:U(3),TB:U(4),EMPTY_PNG:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII=",expando:"fileapi"+(new Date).getTime(),uid:function(e){return e?e[Q.expando]=e[Q.exp
8ando]||Q.uid():(++u,Q.expando+u)},log:function(){Q.debug&&e.console&&console.log&&(console.log.apply?console.log.apply(console,arguments):console.log([].join.call(arguments," ")))},newImage:function(e,t){var n=f.createElement("img");return t&&Q.event.one(n,"error load",function(e){t("error"==e.type,n),n=null}),n.src=e,n},getXHR:function(){var t;if(w)t=new w;else if(e.ActiveXObject)try{t=new ActiveXObject("MSXML2.XMLHttp.3.0")}catch(a){t=new ActiveXObject("Microsoft.XMLHTTP")}return t},isArray:H,support:{dnd:x&&"ondrop"in f.createElement("div"),cors:x,html5:A,chunked:I,dataURI:!0,accept:G("accept"),multiple:G("multiple")},event:{on:N,off:q,one:X,fix:W},throttle:function(t,n){var a,i;return function(){i=arguments,a||(t.apply(e,i),a=setTimeout(function(){a=0,t.apply(e,i)},n))}},F:function(){},parseJSON:function(t){return e.JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t.replace(/([\r\n])/g,"\\$1")+");")()},trim:function(e){return(e=String(e)).trim?e.trim():e.replace(/^\s+|\s+$/g,"")},defer:function(){var e,t,a=[],i={resolve:function(n,r){for(i.resolve=c,t=n||!1,e=r;r=a.shift();)r(t,e)},then:function(i){t!==n?i(t,e):a.push(i)}};return i},queue:function(e){var t=0,n=0,a=!1,i=!1,r={inc:function(){n++},next:function(){t++,setTimeout(r.check,0)},check:function(){t>=n&&!a&&r.end()},isFail:function(){return a},fail:function(){!a&&e(a=!0)},end:function(){i||(i=!0,e())}};return r},each:M,afor:function(e,t){var n=0,a=e.length;H(e)&&a--?function i(){t(a!=n&&i,e[n],n++)}():t(!1)},extend:O,isFile:function(e){return"[object File]"===D.call(e)},isBlob:function(e){return this.isFile(e)||"[object Blob]"===D.call(e)},isCanvas:function(e){return e&&T.test(e.nodeName)},getFilesFilter:function(e){return(e="string"==typeof e?e:e.getAttribute&&e.getAttribute("accept")||"")?new RegExp("("+e.replace(/\./g,"\\.").replace(/,/g,"|")+")$","i"):/./},readAsDataURL:function(e,t){Q.isCanvas(e)?a(e,t,"load",Q.toDataURL(e)):r(e,t,"DataURL")},readAsBinaryString:function(e,t){i("BinaryString")?r(e,t,"BinaryString"):r(e,function(e){if("load"==e.type)try{e.result=Q.toBinaryString(e.result)}catch(a){e.type="error",e.message=a.toString()}t(e)},"DataURL")},readAsArrayBuffer:function(e,t){r(e,t,"ArrayBuffer")},readAsText:function(e,t,n){n||(n=t,t="utf-8"),r(e,n,"Text",t)},toDataURL:function(e,t){return"string"==typeof e?e:e.toDataURL?e.toDataURL(t||"image/png"):void 0},toBinaryString:function(t){return e.atob(Q.toDataURL(t).replace(E,""))},readAsImage:function(e,t,i){if(Q.isFile(e))if(h){var r=h.createObjectURL(e);r===n?a(e,t,"error"):Q.readAsImage(r,t,i)}else Q.readAsDataURL(e,function(n){"load"==n.type?Q.readAsImage(n.result,t,i):(i||"error"==n.type)&&a(e,t,n,null,{loaded:n.loaded,total:n.total})});else if(Q.isCanvas(e))a(e,t,"load",e);else if(R.test(e.nodeName))if(e.complete)a(e,t,"load",e);else{var o="error abort load";X(e,o,function n(i){"load"==i.type&&h&&h.revokeObjectURL(e.src),q(e,o,n),a(e,t,i,e)})}else if(e.iframe)a(e,t,{type:"error"});else{var s=Q.newImage(e.dataURL||e);Q.readAsImage(s,t,i)}},checkFileObj:function(e){var n={},a=Q.accept;return"object"==t(e)?n=e:n.name=(e+"").split(/\\|\//g).pop(),null==n.type&&(n.type=n.name.split(".").pop()),M(a,function(e,t){((e=new RegExp(e.replace(/\s/g,"|"),"i")).test(n.type)||Q.ext2mime[n.type])&&(n.type=Q.ext2mime[n.type]||t.split("/")[0]+"/"+n.type)}),n},getDropFiles:function(e,t){var n=[],a=l(e),i=H(a.items)&&a.items[0]&&o(a.items[0]),r=Q.queue(function(){t(n)});M((i?a.items:a.files)||[],function(e){r.inc();try{i?function e(t,n){if(t)if(t.isFile)t.file(function(e){e.fullPath=t.fullPath,n(!1,[e])},function(e){n("FileError.code: "+e.code)});else if(t.isDirectory){var a=t.createReader(),i=[];a.readEntries(function(t){Q.afor(t,function(t,a){e(a,function(e,a){e?Q.log(e):i=i.concat(a),t?t():n(!1,i)})})},function(e){n("directory_reader: "+e)})}else e(o(t),n);else n("invalid entry")}(e,function(e,t){e?Q.log("[err] getDropFiles:",e):n.push.apply(n,t),r.next()}):function(e,t){if(!e.type&&e.size%4096==0&&e.size<=102400)if(v)try{var n=new v;X(n,S,function(e){var a="error"!=e.type;t(a),a&&n.abort()}),n.readAsDataURL(e)}catch(a){t(!1)}else t(null);else t(!0)}(e,function(t){t&&n.push(e),r.next()})}catch(t){r.next(),Q.log("[err] getDropFiles: ",t)}}),r.check()},getFiles:function(e,t,n){var a=[];return n?(Q.filterFiles(Q.getFiles(e),t,n),null):(e.jquery&&(e.each(function(){a=a.concat(Q.getFiles(this))}),e=a,a=[]),"string"==typeof t&&(t=Q.getFilesFilter(t)),e.originalEvent?e=W(e.originalEvent):e.srcElement&&(e=W(e)),e.dataTransfer?e=e.dataTransfer:e.target&&(e=e.target),e.files?(a=e.files,A||(a[0].blob=e,a[0].iframe=!0)):!A&&s(e)?Q.trim(e.value)&&((a=[Q.checkFileObj(e.value)])[0].blob=e,a[0].iframe=!0):H(e)&&(a=e),Q.filter(a,function(e){return!t||t.test(e.name)}
8))},getTotalSize:function(e){for(var t=0,n=e&&e.length;n--;)t+=e[n].size;return t},getInfo:function(e,t){var n={},a=L.concat();Q.isFile(e)?function i(){var r=a.shift();r?r.test(e.type)?r(e,function(e,a){e?t(e):(O(n,a),i())}):i():t(!1,n)}():t("not_support_info",n)},addInfoReader:function(e,t){t.test=function(t){return e.test(t)},L.push(t)},filter:function(e,t){for(var n,a=[],i=0,r=e.length;r>i;i++)i in e&&(n=e[i],t.call(n,n,i,e)&&a.push(n));return a},filterFiles:function(e,t,n){if(e.length){var a,i=e.concat(),r=[],o=[];!function e(){i.length?(a=i.shift(),Q.getInfo(a,function(n,i){(t(a,!n&&i)?r:o).push(a),e()})):n(r,o)}()}else n([],e)},upload:function(e){(e=O({jsonp:"callback",prepare:Q.F,beforeupload:Q.F,upload:Q.F,fileupload:Q.F,fileprogress:Q.F,filecomplete:Q.F,progress:Q.F,complete:Q.F,pause:Q.F,imageOriginal:!0,chunkSize:Q.chunkSize,chunkUploadRetry:Q.chunkUploadRetry,uploadRetry:Q.uploadRetry},e)).imageAutoOrientation&&!e.imageTransform&&(e.imageTransform={rotate:"auto"});var n,a=new Q.XHR(e),i=this._getFilesDataArray(e.files),r=this,o=0,s=0,l=!1;return M(i,function(e){o+=e.size}),a.files=[],M(i,function(e){a.files.push(e.file)}),a.total=o,a.loaded=0,a.filesLeft=i.length,e.beforeupload(a,e),n=function(){var u=i.shift(),f=u&&u.file,d=!1,p=function(e){var n={};return M(e,function(e,a){e&&"object"==t(e)&&void 0===e.nodeType&&(e=O({},e)),n[a]=e}),n}(e);if(a.filesLeft=i.length,f&&f.name===Q.expando&&(f=null,Q.log("[warn] FileAPI.upload() â called without files")),("abort"!=a.statusText||a.current)&&u){if(l=!1,a.currentFile=f,f&&!1===e.prepare(f,p))return void n.call(r);p.file=f,r._getFormData(p,u,function(t){s||e.upload(a,e);var l=new Q.XHR(O({},p,{upload:f?function(){e.fileupload(f,l,p)}:c,progress:f?function(t){d||(d=t.loaded===t.total,e.fileprogress({type:"progress",total:u.total=t.total,loaded:u.loaded=t.loaded},f,l,p),e.progress({type:"progress",total:o,loaded:a.loaded=s+u.size*(t.loaded/t.total)||0},f,l,p))}:c,complete:function(t){M(B,function(e){a[e]=l[e]}),f&&(u.total=u.total||u.size,u.loaded=u.total,t||(this.progress(u),d=!0,s+=u.size,a.loaded=s),e.filecomplete(t,l,f,p)),setTimeout(function(){n.call(r)},0)}}));a.abort=function(e){e||(i.length=0),this.current=e,l.abort()},l.send(t)})}else{var h=200==a.status||201==a.status||204==a.status;e.complete(!h&&(a.statusText||"error"),a,e),l=!0}},setTimeout(n,0),a.append=function(e,t){e=Q._getFilesDataArray([].concat(e)),M(e,function(e){o+=e.size,a.files.push(e.file),t?i.unshift(e):i.push(e)}),a.statusText="",l&&n.call(r)},a.remove=function(e){for(var t,n=i.length;n--;)i[n].file==e&&(t=i.splice(n,1),o-=t.size);return t},a},_getFilesDataArray:function(e){var t=[],n={};if(s(e)){var a=Q.getFiles(e);n[e.name||"file"]=null!==e.getAttribute("multiple")?a:a[0]}else H(e)&&s(e[0])?M(e,function(e){n[e.name||"file"]=Q.getFiles(e)}):n=e;return M(n,function e(n,a){H(n)?M(n,function(t){e(t,a)}):n&&(n.name||n.image)&&t.push({name:a,file:n,size:n.size,total:n.size,loaded:0})}),t.length||t.push({file:{name:Q.expando}}),t},_getFormData:function(e,n,a){var i=n.file,r=n.name,o=i.name,s=i.type,l=Q.support.transform&&e.imageTransform,u=new Q.Form,c=Q.queue(function(){a(u)}),f=l&&function(e){var t;for(t in e)if(e.hasOwnProperty(t)&&!(e[t]instanceof Object||"overlay"===t||"filter"===t))return!0;return!1}(l),d=Q.postNameConcat;M(e.data,function e(n,a){"object"==t(n)?M(n,function(t,n){e(t,d(a,n))}):u.append(a,n)}),function t(n){n.image?(c.inc(),n.toData(function(e,n){o=o||(new Date).getTime()+".png",t(n),c.next()})):Q.Image&&l&&(/^image/.test(n.type)||_.test(n.nodeName))?(c.inc(),f&&(l=[l]),Q.Image.transform(n,l,e.imageAutoOrientation,function(t,a){if(f&&!t)F||Q.flashEngine||(u.multipart=!0),u.append(r,a[0],o,l[0].type||s);else{var i=0;t||M(a,function(e,t){F||Q.flashEngine||(u.multipart=!0),l[t].postName||(i=1),u.append(l[t].postName||d(r,t),e,o,l[t].type||s)}),(t||e.imageOriginal)&&u.append(d(r,i?"original":null),n,o,s)}c.next()})):o!==Q.expando&&u.append(r,n,o)}(i),c.check()},reset:function(e,t){var n,a;return b?(a=b(e).clone(!0).insertBefore(e).val("")[0],t||b(e).remove()):(n=e.parentNode,(a=n.insertBefore(e.cloneNode(!0),e)).value="",t||n.removeChild(e),M(k[Q.uid(e)],function(t,n){M(t,function(t){q(e,n,t),N(a,n,t)})})),a},load:function(e,t){var n=Q.getXHR();return n?(n.open("GET",e,!0),n.overrideMimeType&&n.overrideMimeType("text/plain;
8 charset=x-user-defined"),N(n,"progress",function(e){e.lengthComputable&&t({type:e.type,loaded:e.loaded,total:e.total},n)}),n.onreadystatechange=function(){if(4==n.readyState)if(n.onreadystatechange=null,200==n.status){var a={name:(e=e.split("/"))[e.length-1],size:n.getResponseHeader("Content-Length"),type:n.getResponseHeader("Content-Type")};a.dataURL="data:"+a.type+";base64,"+Q.encode64(n.responseBody||n.responseText),t({type:"load",result:a},n)}else t({type:"error"},n)},n.send(null)):t({type:"error"}),n},encode64:function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="",a=0;for("string"!=typeof e&&(e=String(e));a<e.length;){var i,r,o=255&e.charCodeAt(a++),s=255&e.charCodeAt(a++),l=255&e.charCodeAt(a++),u=o>>2,c=(3&o)<<4|s>>4;isNaN(s)?i=r=64:(i=(15&s)<<2|l>>6,r=isNaN(l)?64:63&l),n+=t.charAt(u)+t.charAt(c)+t.charAt(i)+t.charAt(r)}return n}};Q.addInfoReader(/^image/,function(e,t){if(!e.__dimensions){var n=e.__dimensions=Q.defer();Q.readAsImage(e,function(e){var t=e.target;n.resolve("load"
8!=e.type&&"error",{width:t.width,height:t.height}),t.src=Q.EMPTY_PNG,t=null})}e.__dimensions.then(t)}),Q.event.dnd=function(e,t,n){var a,i;n||(n=t,t=Q.F),v?(N(e,"dragenter dragleave dragover",t.ff=t.ff||function(e){for(var n=l(e).types,r=n&&n.length,o=!1;r--;)if(~n[r].indexOf("File")){e[z](),i!==e.type&&("dragleave"!=(i=e.type)&&t.call(e[j],!0,e),o=!0);break}o&&(clearTimeout(a),a=setTimeout(function(){t.call(e[j],"dragleave"!=i,e)},50))}),N(e,"drop",n.ff=n.ff||function(e){e[z](),i=0,t.call(e[j],!1,e),Q.getDropFiles(e,function(t){n.call(e[j],t,e)})})):Q.log("Drag'n'Drop -- not supported")},Q.event.dnd.off=function(e,t,n){q(e,"dragenter dragleave dragover",t.ff),q(e,"drop",n.ff)},b&&!b.fn.dnd&&(b.fn.dnd=function(e,t){return this.each(function(){Q.event.dnd(this,e,t)})},b.fn.offdnd=function(e,t){return this.each(function(){Q.event.dnd.off(this,e,t)})}),e.FileAPI=O(Q,e.FileAPI),Q.log("FileAPI: "+Q.version),Q.log("protocol: "+e.location.protocol),Q.log("doctype: ["+d.name+"] "+d.publicId+" "+d.systemId),M(f.getElementsByTagName("meta"),function(e){/x-ua-compatible/i.test(e.getAttribute("http-equiv"))&&Q.log("meta.http-equiv: "+e.getAttribute("content"))}),Q.flashUrl||(Q.flashUrl=Q.staticPath+"FileAPI.flash.swf"),Q.flashImageUrl||(Q.flashImageUrl=Q.staticPath+"FileAPI.flash.image.swf"),Q.flashWebcamUrl||(Q.flashWebcamUrl=Q.staticPath+"FileAPI.flash.camera.swf")}(window,void 0),function(e,t,n){"use strict";function a(t){if(t instanceof a){var n=new a(t.file);return e.extend(n.matrix,t.matrix),n}return this instanceof a?(this.file=t,this.size=t.size||100,void(this.matrix={sx:0,sy:0,sw:0,sh:0,dx:0,dy:0,dw:0,dh:0,resize:0,deg:0,quality:1,filter:0})):new a(t)}var i=Math.min,r=Math.round,o=function(){return t.createElement("canvas")},s=!1,l={8:270,3:180,6:90,7:270,4:180,5:90};try{s=o().toDataURL("image/png").indexOf("data:image/png")>-1}catch(u){}a.prototype={image:!0,constructor:a,set:function(t){return e.extend(this.matrix,t),this},crop:function(e,t,a,i){return a===n&&(a=e,i=t,e=t=0),this.set({sx:e,sy:t,sw:a,sh:i||a})},resize:function(e,t,n){return/min|max|height|width/.test(t)&&(n=t,t=e),this.set({dw:e,dh:t||e,resize:n})},preview:function(e,t){return this.resize(e,t||e,"preview")},rotate:function(e){return this.set({deg:e})},filter:function(e){return this.set({filter:e})},overlay:function(e){return this.set({overlay:e})},clone:function(){return new a(this)},_load:function(t,n){var a=this;/img|video/i.test(t.nodeName)?n.call(a,null,t):e.readAsImage(t,function(e){n.call(a,"load"!=e.type,e.result)})},_apply:function(t,n){var r,s=o(),l=this.getMatrix(t),u=s.getContext("2d"),c=t.videoWidth||t.width,f=t.videoHeight||t.height,d=l.deg,p=l.dw,h=l.dh,m=c,g=f,v=l.filter,y=t,w=l.overlay,b=e.queue(function(){t.src=e.EMPTY_PNG,n(!1,s)}),A=e.renderImageToCanvas;for(d-=360*Math.floor(d/360),t._type=this.file.type;l.multipass&&i(m/p,g/h)>2;)m=m/2+.5|0,g=g/2+.5|0,(r=o()).width=m,r.height=g,y!==t?(A(r,y,0,0,y.width,y.height,0,0,m,g),y=r):(A(y=r,t,l.sx,l.sy,l.sw,l.sh,0,0,m,g),l.sx=l.sy=l.sw=l.sh=0);s.width=d%180?h:p,s.height=d%180?p:h,s.type=l.type,s.quality=l.quality,u.rotate(d*Math.PI/180),A(u.canvas,y,l.sx,l.sy,l.sw||y.width,l.sh||y.height,180==d||270==d?-p:0,90==d||180==d?-h:0,p,h),p=s.width,h=s.height,w&&e.each([].concat(w),function(t){b.inc();var n=new window.Image,a=function(){var i=0|t.x,r=0|t.y,o=t.w||n.width,s=t.h||n.height,l=t.rel;i=1==l||4==l||7==l?(p-o+i)/2:2==l||5==l||8==l?p-(o+i):i,r=3==l||4==l||5==l?(h-s+r)/2:l>=6?h-(s+r):r,e.event.off(n,"error load abort",a);try{u.globalAlpha=t.opacity||1,u.drawImage(n,i,r,o,s)}catch(c){}b.next()};e.event.on(n,"error load abort",a),n.src=t.src,n.complete&&a()}),v&&(b.inc(),a.applyFilter(s,v,b.next)),b.check()},getMatrix:function(t){var n,a,o=e.extend({},this.matrix),s=o.sw=o.sw||t.videoWidth||t.naturalWidth||t.width,l=o.sh=o.sh||t.videoHeight||t.naturalHeight||t.height,u=o.dw=o.dw||s,c=o.dh=o.dh||l,f=s/l,d=u/c,p=o.resize;"preview"==p?u==s&&c==l||(d>=f?a=(n=s)/d:n=(a=l)*d,(n!=s||a!=l)&&(o.sx=~~((s-n)/2),o.sy=~~((l-a)/2),s=n,l=a)):"height"==p?u=c*f:"width"==p?c=u/f:p&&(s>u||l>c?"min"==p?(u=r(d>f?i(s,u):c*f),c=r(d>f?u/f:i(l,c))):(u=r(f>=d?i(s,u):c*f),c=r(f>=d?u/f:i(l,c))):(u=s,c=l));return o.sw=s,o.sh=l,o.dw=u,o.dh=c,o.multipass=e.multiPassResize,o},_trans:function(t){this._load(this.file,function(n,a){if(n)t(n);else try{this._apply(a,t)}catch(n){e.log("[err] FileAPI.Image.fn._apply:",n),t(n)}})},get:function(t){if(e.support.transform){var n=this,a=n.matrix;"auto"==a.deg?e.getInfo(n.file,function(e,i){a.deg=l[i&&i.exif&&i.exif.Orientation]||0,n._trans(t)}):n._trans(t)}else t("not_support_transform");return this},toData:function(e){return this.get(e)}},a.exifOrientation=l,a.transform=function(t,i,r,o){function s(s,l){var u={},c=e.queue(function(e){o(e,u)});s?c.fail():e.each(i,function(e,i){if(!c.isFail()){var o=new a(l.nodeType?l:t),s="function"==typeof e;if(s?e(l,o):e.width?o[e.preview?"preview":"resize"](e.width,e.height,e.strategy):e.maxWidth&&(l.width>e.maxWidth||l.height>e.maxHeight)&&o.resize(e.maxWidth,e.maxHeight,"max"),e.crop){var f=e.crop;o.crop(0|f.x,0|f.y,f.w||f.width,f.h||f.height)}e.rotate===n&&r&&(e.rotate="auto"),o.set({type:o.matrix.type||e.type||t.type||"image/png"}),s||o.set({deg:e.rotate,overlay:e.overlay,filter:e.filter,quality:e.quality||1}),c.inc(),o.toData(function(e,t){e?c.fail():(u[i]=t,c.next())})}})}t.width?s(!1,t):e.getInfo(t,s)},e.each(["TOP","CENTER","BOTTOM"],function(t,n){e.each(["LEFT","CENTER","RIGHT"],function(e,i){a[t+"_"+e]=3*n+i,a[e+"_"+t]=3*n+i})}),a.toCanvas=function(e){var n=t.createElement("canvas");return n.width=e.videoWidth||e.width,n.height=e.videoHeight||e.height,n.getContext("2d").drawImage(e,0,0),n},a.fromDataURL=function(t,n,a){var i=e.newImage(t);e.extend(i,n),a(i)},a.applyFilter=function(t,n,i){"function"==typeof n?n(t,i):window.Caman&&window.Caman("IMG"==t.tagName?a.toCanvas(t):t,function(){"string"==typeof n?this[n]():e.each(n,function(e,t){this[t](e)},this),this.render(i)})},e.renderImageToCanvas=function(t,n,a,i,r,o,s,l,u,c){try{return t.getContext("2d").drawImage(n,a,i,r,o,s,l,u,c)}catch(f){throw e.log("renderImageToCanvas failed"),f}},e.support.canvas=e.support.transform=s,e.Image=a}(FileAPI,document),function(e){"use strict";!function(e){if(window.navigator&&window.navigator.platform&&/iP(hone|od|ad)/.test(window.navigator.platform)){var t=e.renderImageToCanvas;e.detectSubsampling=function(e){var t,n;return e.width*e.height>1048576&&((t=document.createElement("canvas")).width=t.height=1,(n=t.getContext("2d")).drawImage(e,1-e.width,0),0===n.getImageData(0,0,1,1).data[3])},e.detectVerticalSquash=function(e,t){var n,a,i,r,o=e.naturalHeight||e.height,s=document.createElement("canvas"),l=s.getContext("2d");for(t&&(o/=2),s.width=1,s.height=o,l.drawImage(e,0,0),n=l.getImageData(0,0,1,o).data,a=0,i=o,r=o;r>a;)0===n[4*(r-1)+3]?i=r:a=r,r=i+a>>1;return r/o||1},e.renderImageToCanvas=function(n,a,i,r,o,s,l,u,c,f){if("image/jpeg"===a._type){var d,p,h,m,g=n.getContext("2d"),v=d
8ocument.createElement("canvas"),y=1024,w=v.getContext("2d");if(v.width=y,v.height=y,g.save(),(d=e.detectSubsampling(a))&&(i/=2,r/=2,o/=2,s/=2),p=e.detectVerticalSquash(a,d),d||1!==p){for(r*=p,c=Math.ceil(y*c/o),f=Math.ceil(y*f/s/p),u=0,m=0;s>m;){for(l=0,h=0;o>h;)w.clearRect(0,0,y,y),w.drawImage(a,i,r,o,s,-h,-m,o,s),g.drawImage(v,0,0,y,y,l,u,c,f),h+=y,l+=c;m+=y,u+=f}return g.restore(),n}}return t(n,a,i,r,o,s,l,u,c,f)}}}(FileAPI)}(),function(e,t){"use strict";function n(t,n,a){var i=t.blob,r=t.file;if(r){if(!i.toDataURL)return void e.readAsBinaryString(i,function(e){"load"==e.type&&n(t,e.result)});var o={"image/jpeg":".jpe?g","image/png":".png"},s=o[t.type]?t.type:"image/png",l=o[s]||".png",u=i.quality||1;r.match(new RegExp(l+"$","i"))||(r+=l.replace("?","")),t.file=r,t.type=s,!a&&i.toBlob?i.toBlob(function(e){n(t,e)},s,u):n(t,e.toBinaryString(i.toDataURL(s,u)))}else n(t,i)}var a=t.document,i=t.FormData,r=function(){this.items=[]},o=t.encodeURIComponent;r.prototype={append:function(e,t,n,a){this.items.push({name:e,blob:t&&t.blob||(null==t?"":t),file:t&&(n||t.name),type:t&&(a||t.type)})},each:function(e){for(var t=0,n=this.items.length;n>t;t++)e.call(this,this.items[t])},toData:function(t,n){n._chunked=e.support.chunked&&n.chunkSize>0&&1==e.filter(this.items,function(e){return e.file}).length,e.support.html5?e.formData&&!this.multipart&&i?n._chunked?(e.log("FileAPI.Form.toPlainData"),this.toPlainData(t)):(e.log("FileAPI.Form.toFormData"),this.toFormData(t)):(e.log("FileAPI.Form.toMultipartData"),this.toMultipartData(t)):(e.log("FileAPI.Form.toHtmlData"),this.toHtmlData(t))},_to:function(t,n,a,i){var r=e.queue(function(){n(t)});this.each(function(e){a(e,t,r,i)}),r.check()},toHtmlData:function(t){this._to(a.createDocumentFragment(),t,function(t,n){var i,r=t.blob;t.file?(e.reset(r,!0),r.name=t.name,r.disabled=!1,n.appendChild(r)):((i=a.createElement("input")).name=t.name,i.type="hidden",i.value=r,n.appendChild(i))})},toPlainData:function(e){this._to({},e,function(e,t,a){e.file&&(t.type=e.file),e.blob.toBlob?(a.inc(),n(e,function(e,n){t.name=e.name,t.file=n,t.size=n.length,t.type=e.type,a.next()})):e.file?(t.name=e.blob.name,t.file=e.blob,t.size=e.blob.size,t.type=e.type):(t.params||(t.params=[]),t.params.push(o(e.name)+"="+o(e.blob))),t.start=-1,t.end=t.file&&t.file.FileAPIReadPosition||-1,t.retry=0})},toFormData:function(e){this._to(new i,e,function(e,t,a){e.blob&&e.blob.toBlob?(a.inc(),n(e,function(e,n){t.append(e.name,n,e.file),a.next()})):e.file?t.append(e.name,e.blob,e.file):t.append(e.name,e.blob),e.file&&t.append("_"+e.name,e.file)})},toMultipartData:function(t){this._to([],t,function(e,t,a,i){a.inc(),n(e,function(e,n){t.push("--_"+i+'\r\nContent-Disposition: form-data; name="'+e.name+'"'+(e.file?'; filename="'+o(e.file)+'"':"")+(e.file?"\r\nContent-Type: "+(e.type||"application/octet-stream"):"")+"\r\n\r\n"+(e.file?n:o(n))+"\r\n"),a.next()},!0)},e.expando)}},e.Form=r}(FileAPI,window),function(e,t){"use strict";var n=function(){},a=e.document,i=function(e){this.uid=t.uid(),this.xhr={abort:n,getResponseHeader:n,getAllResponseHeaders:n},this.options=e},r={"":1,XML:1,Text:1,Body:1};i.prototype={status:0,statusText:"",constructor:i,getResponseHeader:function(e){return this.xhr.getResponseHeader(e)},getAllResponseHeaders:function(){return this.xhr.getAllResponseHeaders()||{}},end:function(a,i){var r=this,o=r.options;r.end=r.abort=n,r.status=a,i&&(r.statusText=i),t.log("xhr.end:",a,i),o.complete(200!=a&&201!=a&&(r.statusText||"unknown"),r),r.xhr&&r.xhr.node&&setTimeout(function(){var t=r.xhr.node;try{t.parentNode.removeChild(t)}catch(n){}try{delete e[r.uid]}catch(n){}e[r.uid]=r.xhr.node=null},9)},abort:function(){this.end(0,"abort"),this.xhr&&(this.xhr.aborted=!0,this.xhr.abort())},send:function(e){var t=this,n=this.options;e.toData(function(e){n.upload(n,t),t._send.call(t,n,e)},n)},_send:function(n,i){var o,s=this,l=s.uid,u=s.uid+"Load",c=n.url;if(t.log("XHR._send:",i),n.cache||(c+=(~c.indexOf("?")?"&":"?")+t.uid()),i.nodeName){var f=n.jsonp;c=c.replace(/([a-z]+)=(\?)/i,"$1="+l),n.upload(n,s);var d=function(e){if(~c.indexOf(e.origin))try{var n=t.parseJSON(e.data);n.id==l&&p(n.status,n.statusText,n.response)}catch(a){p(0,a.message)}},p=e[l]=function(n,a,i){s.readyState=4,s.responseText=i,s.end(n,a),t.event.off(e,"message",d),e[l]=o=m=e[u]=null};s.xhr.abort=function(){try{m.stop?m.stop():m.contentWindow.stop?m.contentWindow.stop():m.contentWindow.document.execCommand("Stop")}catch(e){}p(0,"abort")},t.event.on(e,"message",d),e[u]=function(){try{var e=m.contentWindow,n=e.document,a=e.result||t.parseJSON(n.body.innerHTML);p(a.status,a.statusText,a.response)}catch(i){t.log("[transport.onload]",i)}},(o=a.createElement("div")).innerHTML='<form target="'+l+'" action="'+c+'" method="POST" enctype="multipart/form-data" style="position: absolute; top: -1000px; overflow: hidden; width: 1px; height: 1px;"><iframe name="'+l+'" src="javascript:false;" onload="'+u+'()"></iframe>'+(f&&n.url.indexOf("=?")<0?'<input value="'+l+'" name="'+f+'" type="hidden"/>':"")+"</form>";var h=o.getElementsByTagName("form")[0],m=o.getElementsByTagName("iframe")[0];h.appendChild(i),t.log(h.parentNode.innerHTML),a.body.appendChild(o),s.xhr.node=o,s.readyState=2,h.submit(),h=null}else{if(c=c.replace(/([a-z]+)=(\?)&?/i,""),this.xhr&&this.xhr.aborted)return void t.log("Error: already aborted");if(o=s.xhr=t.getXHR(),i.params&&(c+=(c.indexOf("?")<0?"?":"&")+i.params.join("&")),o.open("POST",c,!0),t.withCredentials&&(o.withCredentials="true"),n.headers&&n.headers["X-Requested-With"]||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.each(n.headers,function(e,t){o.setRequestHeader(t,e)}),n._chunked){o.upload&&o.upload.addEventListener("progress",t.throttle(function(e){i.retry||n.progress({type:e.type,total:i.size,loaded:i.start+e.loaded,totalSize:i.size},s,n)},100),!1),o.onreadystatechange=function(){var e=parseInt(o.getResponseHeader("X-Last-Known-Byte"),10);if(s.status=o.status,s.statusText=o.statusText,s.readyState=o.readyState,4==o.readyState){for(var a in r)s["response"+a]=o["response"+a];if(o.onreadystatechange=null,!o.status||o.status-201>0)if(t.log("Error: "+o.status),(!o.status&&!o.aborted||500==o.status||416==o.status)&&++i.retry<=n.chunkUploadRetry){var l=o.status?0:t.chunkNetworkDownRetryTimeout;n.pause(i.file,n),t.log("X-Last-Known-Byte: "+e),e?i.end=e:(i.end=i.start-1,416==o.status&&(i.end=i.end-n.chunkSize)),setTimeout(function(){s._send(n,i)},l)}else s.end(o.status);else i.retry=0,i.end==i.size-1?s.end(o.status):(t.log("X-Last-Known-Byte: "+e),e&&(i.end=e),i.file.FileAPIReadPosition=i.end,setTimeout(function(){s._send(n,i)},0));o=null}},i.start=i.end+1,i.end=Math.max(Math.min(i.start+n.chunkSize,i.size)-1,i.start);var g=i.file,v=(g.slice||g.mozSlice||g.webkitSlice).call(g,i.start,i.end+1);i.size&&!v.size?setTimeout(function(){s.end(-1)}):(o.setRequestHeader("Content-Range","bytes "+i.start+"-"+i.end+"/"+i.size),o.setRequestHeader("Content-Disposition","attachment; filename="+encodeURIComponent(i.name)),o.setRequestHeader("Content-Type",i.type||"application/octet-stream"),o.send(v)),g=v=null}else if(o.upload&&o.upload.addEventListener("progress",t.throttle(function(e){n.progress(e,s,n)},100),!1),o.onreadystatechange=function(){if(s.status=o.status,s.statusText=o.statusText,s.readyState=o.readyState,4==o.readyState){for(var e in r)s["response"+e]=o["response"+e];if(o.onreadystatechange=null,!o.status||o.status>201)if(t.log("Error: "+o.status),(!o.status&&!o.aborted||500==o.status)&&(n.retry||0)<n.uploadRetry){n.retry=(n.retry||0)+1;var a=t.networkDownRetryTimeout;n.pause(n.file,n),setTimeout(function(){s._send(n,i)},a)}else s.end(o.status);else s.end(o.status);o=null}},t.isArray(i)){o.setRequestHeader("Content-Type","multipart/form-data; boundary=_"+t.expando);var y=i.join("")+"--_"+t.expando+"--";if(o.sendAsBinary)o.sendAsBinary(y);else{var w=Array.prototype.map.call(y,function(e){return 255&e.charCodeAt(0)});o.send(new Uint8Array(w).buffer)}}else o.send(i)}}},t.XHR=i}(window,FileAPI),function(e,t){"use strict";function n(e){return e>=0?e+"px":e}function a(e){var t,n=r.createElement("canvas"),a=!1;try{(t=n.getContext("2d")).drawImage(e,0,0,1,1),a=255!=t.getImageData(0,0,1,1).data[4]}catch(i){}return a}var i=e.URL||e.webkitURL,r=e.document,o=e.navigator,s=o.getUserMedia||o.webkitGetUserMedia||o.mozGetUserMedia||o.msGetUserMedia,l=!!s;t.support.media=l;var u=function(e){this.video=e};u.prototype={isActive:function(){return!!this._active},start:function(e){var t,n,r=this,l=r.video,u=function(a){r._active=!a,clearTimeout(n),clearTimeout(t),e&&e(a,r)};s.call(o,{video:!0},function(e){r.stream=e,l.src=i.createObjectURL(e),t=setInterval(function(){a(l)&&u(null)},1e3),n=setTimeout(function(){u("timeout")},5e3),l.play()},u)},stop:function(){try{this._active=!1,this.video.pause(),this.stream.stop()}catch(e){}},shot:function(){return new c(this.video)}},u.get=function(e){return new u(e.firstChild)},u.publish=function(a,i,o){"function"==typeof i&&(o=i,i={}),i=t.extend({},{width:"100%",height:"100%",start:!0},i),a.jquery&&(a=a[0]);var s=function(e){if(e)o(e);else{var t=u.get(a);i.start?t.start(o):o(null,t)}};if(a.style.width=n(i.width),a.style.height=n(i.height),t.html5&&l){var c=r.createElement("video");c.style.width=n(i.width),c.style.height=n(i.height),e.jQuery?jQuery(a).empty():a.innerHTML="",a.appendChild(c),s()}else u.fallback(a,i,s)},u.fallback=function(e,t,n){n("not_support_camera")};var c=function(e){var n=e.nodeName?t.Image.toCanvas(e):e,a=t.Image(n);return a.type="image/png",a.width=n.width,a.height=n.height,a.size=n.width*n.height*4,a};u.Shot=c,t.Camera=u}(window,FileAPI),function(e,n,a){"use strict";var i=e.document,r=e.location,o=e.navigator,s=a.each;a.support.flash=function(){var n=o.mimeTypes,i=!1;if(o.plugins&&"object"==t(o.plugins["Shockwave Flash"]))i=o.plugins["Shockwave Flash"].description&&!(n&&n["application/x-shockwave-flash"]&&!n["application/x-shockwave-flash"].enabledPlugin);else try{i=!(!e.ActiveXObject||!new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(s){a.log("Flash -- does not supported.")}return i&&/^file:/i.test(r)&&a.log("[warn] Flash does not work on `file:` protocol."),i}(),a.support.flash&&(!a.html5||!a.support.html5||a.cors&&!a.support.cors||a.media&&!a.support.media)&&function(){function t(e){return('<object id="#id#" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+(e.width||"100%")+'" height="'+(e.height||"100%")+'"><param name="movie" value="#src#" /><param name="flashvars" value="#flashvars#" /><param name="swliveconnect" value="true" /><param name="allowscriptaccess" value="always" /><param name="allownetworking" value="all" /><param name="menu" value="false" /><param name="wmode" value="#wmode#" /><embed flashvars="#flashvars#" swliveconnect="true" allownetworking="all" allowscriptaccess="always" name="#id#" src="#src#" width="'+(e.width||"100%")+'" height="'+(e.height||"100%")+'" menu="false" wmode="transparent" type="application/x-shockwave-flash"></embed></object>').replace(/#(\w+)#/gi,function(t,n){return e[n]})}function l(e,t){var n,a;if(e&&e.style)for(n in t){"number"==typeof(a=t[n])&&(a+="px");try{e.style[n]=a}catch(r){}}}function u(e,t){s(t,function(t,n){var a=e[n];e[n]=function(){return this.parent=a,t.apply(this,arguments)}})}function c(e){return e&&!e.flashId}function f(e){var t=e.wid=a.uid();return b._fn[t]=e,"FileAPI.Flash._fn."+t}function d(e){try{b._fn[e.wid]=null,delete b._fn[e.wid]}catch(n){}}function p(e,t){if(!w.test(e)){if(/^\.\//.test(e)||"/"!=e.charAt(0)){var n=r.pathname;e=((n=n.substr(0,n.lastIndexOf("/")))+"/"+e).replace("/./","/")}"//"!=e.substr(0,2)&&(e="//"+r.host+e),w.test(e)||(e=r.protocol+e)}return t&&(e+=(/\?/.test(e)?"&":"?")+t),e}function h(e,n,r){var o,s=a.uid(),u=i.createElement("div"),c=10;
8for(o in e)u.setAttribute(o,e[o]),u[o]=e[o];l(u,e),e.width="100%",e.height="100%",u.innerHTML=t(a.extend({id:s,src:p(a.flashImageUrl,"r="+a.uid()),wmode:"opaque",flashvars:"scale="+e.scale+"&callback="+f(function e(){return d(e),--c>0&&function(){try{b.get(s).setImage(n)}catch(i){a.log('[err] FlashAPI.Preview.setImage -- can not set "base64":',i)}}(),!0})},e)),r(!1,u),u=null}function m(t){var n=t.getBoundingClientRect(),a=i.body,r=(t&&t.ownerDocument).documentElement;return{top:n.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||a.clientTop||0),left:n.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||a.clientLeft||0),width:n.right-n.left,height:n.bottom-n.top}}var g=a.uid(),v=0,y={},w=/^https?:/i,b={_fn:{},init:function(){var e=i.body&&i.body.firstChild;if(e)do{if(1==e.nodeType){a.log("FlashAPI.state: awaiting");var t=i.createElement("div");return t.id="_"+g,l(t,{top:1,right:1,width:5,height:5,position:"absolute",zIndex:1e6+""}),e.parentNode.insertBefore(t,e),void b.publish(t,g)}}while(e=e.nextSibling);10>v&&setTimeout(b.init,50*++v)},publish:function(e,n,i){i=i||{},e.innerHTML=t({id:n,src:p(a.flashUrl,"r="+a.version),wmode:i.camera?"":"transparent",flashvars:"callback="+(i.onEvent||"FileAPI.Flash.onEvent")+"&flashId="+n+"&storeKey="+o.userAgent.match(/\d/gi).join("")+"_"+a.version+(b.isReady||(a.pingUrl?"&ping="+a.pingUrl:""))+"&timeout="+a.flashAbortTimeout+(i.camera?"&useCamera="+p(a.flashWebcamUrl):"")+"&debug="+(a.debug?"1":"")})},ready:function(){a.log("FlashAPI.state: ready"),b.ready=a.F,b.isReady=!0,b.patch(),b.patchCamera&&b.patchCamera(),a.event.on(i,"mouseover",b.mouseover),a.event.on(i,"click",function(e){b.mouseover(e)&&(e.preventDefault?e.preventDefault():e.returnValue=!0)})},getEl:function(){return i.getElementById("_"+g)},getWrapper:function(e){do{if(/js-fileapi-wrapper/.test(e.className))return e}while((e=e.parentNode)&&e!==i.body)},mouseover:function(e){var t=a.event.fix(e).target;if(/input/i.test(t.nodeName)&&"file"==t.type&&!t.disabled){var n=t.getAttribute(g),r=b.getWrapper(t);if(a.multiFlash){if("i"==n||"r"==n)return!1;if("p"!=n){t.setAttribute(g,"i");var o=i.createElement("div");if(!r)return void a.log("[err] FlashAPI.mouseover: js-fileapi-wrapper not found");l(o,{top:0,left:0,width:t.offsetWidth,height:t.offsetHeight,zIndex:1e6+"",position:"absolute"}),r.appendChild(o),b.publish(o,a.uid()),t.setAttribute(g,"p")}return!0}if(r){var s=m(r);l(b.getEl(),s),b.curInp=t}}else/object|embed/i.test(t.nodeName)||l(b.getEl(),{top:1,left:1,width:5,height:5})},onEvent:function(e){var t=e.type;if("ready"==t){try{b.getInput(e.flashId).setAttribute(g,"r")}catch(i){}return b.ready(),setTimeout(function(){b.mouseenter(e)},50),!0}"ping"===t?a.log("(flash -> js).ping:",[e.status,e.savedStatus],e.error):"log"===t?a.log("(flash -> js).log:",e.target):t in b&&setTimeout(function(){a.log("FlashAPI.event."+e.type+":",e),b[t](e)},1)},mouseenter:function(e){var t=b.getInput(e.flashId);if(t){b.cmd(e,"multiple",null!=t.getAttribute("multiple"));var n=[],i={};s((t.getAttribute("accept")||"").split(/,\s*/),function(e){a.accept[e]&&s(a.accept[e].split(" "),function(e){i[e]=1})}),s(i,function(e,t){n.push(t)}),b.cmd(e,"accept",n.length?n.join(",")+","+n.join(",").toUpperCase():"*")}},get:function(t){return i[t]||e[t]||i.embeds[t]},getInput:function(e){if(!a.multiFlash)return b.curInp;try{var t=b.getWrapper(b.get(e));if(t)return t.getElementsByTagName("input")[0]}catch(i){a.log('[err] Can not find "input" by flashId:',e,i)}},select:function(e){var t,r=b.getInput(e.flashId),o=a.uid(r),l=e.target.files;s(l,function(e){a.checkFileObj(e)}),y[o]=l,i.createEvent?((t=i.createEvent("Event")).files=l,t.initEvent("change",!0,!0),r.dispatchEvent(t)):n?n(r).trigger({type:"change",files:l}):((t=i.createEventObject()).files=l,r.fireEvent("onchange",t))},cmd:function(e,t,n,i){try{return a.log("(js -> flash)."+t+":",n),b.get(e.flashId||e).cmd(t,n)}catch(o){a.log("(js -> flash).onError:",o),i||setTimeout(function(){b.cmd(e,t,n,!0)},50)}},patch:function(){a.flashEngine=!0,u(a,{getFiles:function(e,t,n){if(n)return a.filterFiles(a.getFiles(e),t,n),null;var i=a.isArray(e)?e:y[a.uid(e.target||e.srcElement||e)];return i?(t&&(t=a.getFilesFilter(t),i=a.filter(i,function(e){return t.test(e.name)}
8)),i):this.parent.apply(this,arguments)},getInfo:function(e,t){if(c(e))this.parent.apply(this,arguments);else if(e.isShot)t(null,e.info={width:e.width,height:e.height});else{if(!e.__info){var n=e.__info=a.defer();b.cmd(e,"getFileInfo",{id:e.id,callback:f(function t(a,i){d(t),n.resolve(a,e.info=i)})})}e.__info.then(t)}}}),a.support.transform=!0,a.Image&&u(a.Image.prototype,{get:function(e,t){return this.set({scaleMode:t||"noScale"}),this.parent(e)},_load:function(e,t){if(a.log("FlashAPI.Image._load:",e),c(e))this.parent.apply(this,arguments);else{var n=this;a.getInfo(e,function(a){t.call(n,a,e)})}},_apply:function(e,t){if(a.log("FlashAPI.Image._apply:",e),c(e))this.parent.apply(this,arguments);else{var n=this.getMatrix(e.info),i=t;b.cmd(e,"imageTransform",{id:e.id,matrix:n,callback:f(function r(o,s){a.log("FlashAPI.Image._apply.callback:",o),d(r),o?i(o):a.support.html5||a.support.dataURI&&!(s.length>3e4)?(n.filter&&(i=function(e,i){e?t(e):a.Image.applyFilter(i,n.filter,function(){t(e,this.canvas)})}),a.newImage("data:"+e.type+";base64,"+s,i)):h({width:n.deg%180?n.dh:n.dw,height:n.deg%180?n.dw:n.dh,scale:n.scaleMode},s,i)})})}},toData:function(e){var t=this.file,n=t.info,i=this.getMatrix(n);a.log("FlashAPI.Image.toData"),c(t)?this.parent.apply(this,arguments):("auto"==i.deg&&(i.deg=a.Image.exifOrientation[n&&n.exif&&n.exif.Orientation]||0),e.call(this,!t.info,{id:t.id,flashId:t.flashId,name:t.name,type:t.type,matrix:i}))}}),a.Image&&u(a.Image,{fromDataURL:function(e,t,n){!a.support.dataURI||e.length>3e4?h(a.extend({scale:"exactFit"},t),e.replace(/^data:[^,]+,/,""),function(e,t){n(t)}):this.parent(e,t,n)}}),u(a.Form.prototype,{toData:function(e){for(var t=this.items,n=t.length;n--;)if(t[n].file&&c(t[n].blob))return this.parent.apply(this,arguments);a.log("FlashAPI.Form.toData"),e(t)}}),u(a.XHR.prototype,{_send:function(e,t){if(t.nodeName||t.append&&a.support.html5||a.isArray(t)&&"string"==typeof t[0])return this.parent.apply(this,arguments);var n,i,r={},o={},l=this;if(s(t,function(e){e.file?(o[e.name]=e=function(e){return{id:e.id,name:e.name,matrix:e.matrix,flashId:e.flashId}}(e.blob),i=e.id,n=e.flashId):r[e.name]=e.blob}),i||(n=g),!n)return a.log("[err] FlashAPI._send: flashId -- undefined"),this.parent.apply(this,arguments);a.log("FlashAPI.XHR._send: "+n+" -> "+i),l.xhr={headers:{},abort:function(){b.cmd(n,"abort",{id:i})},getResponseHeader:function(e){return this.headers[e]},getAllResponseHeaders:function(){return this.headers}};var u=a.queue(function(){b.cmd(n,"upload",{url:p(e.url.replace(/([a-z]+)=(\?)&?/i,"")),data:r,files:i?o:null,headers:e.headers||{},callback:f(function t(n){var i=n.type,r=n.result;a.log("FlashAPI.upload."+i),"progress"==i?(n.loaded=Math.min(n.loaded,n.total),n.lengthComputable=!0,e.progress(n)):"complete"==i?(d(t),"string"==typeof r&&(l.responseText=r.replace(/%22/g,'"').replace(/%5c/g,"\\").replace(/%26/g,"&").replace(/%25/g,"%")),l.end(n.status||200)):("abort"==i||"error"==i)&&(l.end(n.status||0,n.message),d(t))})})});s(o,function(e){u.inc(),a.getInfo(e,u.next)}),u.check()}})}};a.Flash=b,a.newImage("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",function(e,t){a.support.dataURI=!(1!=t.width||1!=t.height),b.init()})}()}(window,window.jQuery,FileAPI),function(e,t,n){"use strict";var a=n.each,i=[];n.support.flash&&n.media&&!n.support.media&&function(){function e(e){var t=e.wid=n.uid();return n.Flash._fn[t]=e,"FileAPI.Flash._fn."+t}function t(e){try{n.Flash._fn[e.wid]=null,delete n.Flash._fn[e.wid]}catch(t){}}var r=n.Flash;n.extend(n.Flash,{patchCamera:function(){n.Camera.fallback=function(a,i,o){var s=n.uid();n.log("FlashAPI.Camera.publish: "+s),r.publish(a,s,n.extend(i,{camera:!0,onEvent:e(function e(a){"camera"===a.type&&(t(e),a.error?(n.log("FlashAPI.Camera.publish.error: "+a.error),o(a.error)):(n.log("FlashAPI.Camera.publish.success: "+s),o(null)))})}))},a(i,function(e){n.Camera.fallback.apply(n.Camera,e)}),i=[],n.extend(n.Camera.prototype,{_id:function(){return this.video.id},start:function(a){var i=this;r.cmd(this._id(),"camera.on",{callback:e(function e(r){t(e),r.error?(n.log("FlashAPI.
8camera.on.error: "+r.error),a(r.error,i)):(n.log("FlashAPI.camera.on.success: "+i._id()),i._active=!0,a(null,i))})})},stop:function(){this._active=!1,r.cmd(this._id(),"camera.off")},shot:function(){n.log("FlashAPI.Camera.shot:",this._id());var e=n.Flash.cmd(this._id(),"shot",{});return e.type="image/png",e.flashId=this._id(),e.isShot=!0,new n.Camera.Shot(e)}})}}),n.Camera.fallback=function(){i.push(arguments)}}()}(window,window.jQuery,FileAPI),"function"==typeof e&&e.amd&&e("FileAPI",[],function(){return FileAPI}); 9},{}],"LLP5":[function(require,module,exports) { 10function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}!function(t,i){"use strict";function o(e,t,i,o){if(i&&o){var s=(i>0?i:i[t])-(o>0?o:o[t.substr(3).toLowerCase()]),r=/max/.test(t);(r&&0>s||!r&&s>0)&&(e.errors||(e.errors={}),e.errors[t]=Math.abs(s))}}function s(e,t,i,s){if(e){var r=i.length-(e-t);r>0&&p(i.splice(0,r),function(e,t){o(e,"maxFiles",-1,t),s.push(e)})}}var r=t.noop,n=!t.fn.prop?"attr":"prop",l="data-fileapi",a="data-fileapi-id",h=[].slice,p=i.each,u=i.extend,f=function(e,t){var i=h.call(arguments,2);return t.bind?t.bind.apply(t,[e].concat(i)):function(){return t.apply(e,i.concat(h.call(arguments)))}},c=function(e){return"["+l+'="'+e+'"]'},d=function(e){return 0===e.indexOf("#")},m=function(e,i){if(this.$el=e=t(e).on("change.fileapi",'input[type="file"]',f(this,this._onSelect)),this.el=e[0],this._options={},this.options={url:0,data:{},accept:0,multiple:!1,paramName:0,dataType:"json",duplicate:!1,uploadRetry:0,networkDownRetryTimeout:5e3,chunkSize:0,chunkUploadRetry:3,chunkNetworkDownRetryTimeout:2e3,maxSize:0,maxFiles:0,imageSize:0,sortFn:0,filterFn:0,autoUpload:!1,clearOnSelect:void 0,clearOnComplete:void 0,lang:{B:"bytes",KB:"KB",MB:"MB",GB:"GB",TB:"TB"},sizeFormat:"0.00",imageOriginal:!0,imageTransform:0,imageAutoOrientation:!!FileAPI.support.exif,elements:{ctrl:{upload:c("ctrl.upload"),reset:c("ctrl.reset"),abort:c("ctrl.abort")},empty:{show:c("empty.show"),hide:c("empty.hide")},emptyQueue:{show:c("emptyQueue.show"),hide:c("emptyQueue.hide")},active:{show:c("active.show"),hide:c("active.hide")},size:c("size"),name:c("name"),progress:c("progress"),list:c("list"),file:{tpl:c("file.tpl"),progress:c("file.progress"),active:{show:c("file.active.show"),hide:c("file.active.hide")},preview:{el:0,get:0,width:0,height:0,processing:0},abort:c("file.abort"),remove:c("file.remove"),rotate:c("file.rotate")},dnd:{el:c("dnd"),hover:"dnd_hover",fallback:c("dnd.fallback")}},onDrop:r,onDropHover:r,onSelect:r,onBeforeUpload:r,onUpload:r,onProgress:r,onComplete:r,onFilePrepare:r,onFileUpload:r,onFileProgress:r,onFileComplete:r,onFileRemove:null,onFileRemoveCompleted:null},t.extend(!0,this.options,i),i=this.options,this.option("elements.file.preview.rotate",i.imageAutoOrientation),!i.url){var o=this.$el.attr("action")||this.$el.find("form").attr("action");o?i.url=o:this._throw("url â is not defined")}this.$files=this.$elem("list"),this.$fileTpl=this.$elem("file.tpl"),this.itemTplFn=t.fn.fileapi.tpl(t("<div/>").append(this.$elem("file.tpl")).html()),p(i,function(e,t){this._setOption(t,e)},this),this.$el.on("reset.fileapi",f(this,this._onReset)).on("submit.fileapi",f(this,this._onSubmit)).on("upload.fileapi progress.fileapi complete.fileapi",f(this,this._onUploadEvent)).on("fileupload.fileapi fileprogress.fileapi filecomplete.fileapi",f(this,this._onFileUploadEvent)).on("click","["+l+"]",f(this,this._onActionClick));var s=i.elements.ctrl;s&&(this._listen("click",s.reset,f(this,this._onReset)),this._listen("click",s.upload,f(this,this._onSubmit)),this._listen("click",s.abort,f(this,this._onAbort)));var n=FileAPI.support.dnd;this.$elem("dnd.el",!0).toggle(n),this.$elem("dnd.fallback").toggle(!n),n&&this.$elem("dnd.el",!0).dnd(f(this,this._onDropHover),f(this,this._onDrop)),this.$progress=this.$elem("progress"),void 0===i.clearOnSelect&&(i.clearOnSelect=!i.multiple),this.clear(),t.isArray(i.files)&&(this.files=t.map(i.files,function(e){return"string"===t.type(e)&&(e={src:e,size:0}),e.name=e.name||e.src.split("/").pop(),e.type=e.type||/\.(jpe?g|png|bmp|gif|tiff?)/i.test(e.src)&&"image/"+e.src.split(".").pop(),e.complete=!0,e}),this._redraw())};m.prototype={constructor:m,_throw:function(e){throw"jquery.fileapi: "+e},_getFiles:function(e,t){var r=this.options,n=r.maxSize,l=r.maxFiles,a=r.filterFn,h=this.files.length,u=i.getFiles(e),f={all:u,files:[],other:[],duplicate:r.duplicate?[]:this._extractDuplicateFiles(u)},c=r.imageSize,d=this;c||a?i.filterFiles(u,function(e,t){return t&&c&&(o(e,"minWidth",c,t),o(e,"minHeight",c,t),o(e,"maxWidth",c,t),o(e,"maxHeight",c,t)),o(e,"maxSize",n,e.size),!e.errors&&(!a||a(e,t))},function(e,i){s(l,h,e,i),f.other=i,f.files=e,t.call(d,f)}):(p(u,function(e){o(e,"maxSize",n,e.size),f[e.errors?"other":"files"].push(e)}),s(l,h,f.files,f.other),t.call(d,f))},_extractDuplicateFiles:function(e){for(var t,i=[],o=e.length,s=this.files;o--;)for(t=s.length;t--;)if(this._fileCompare(e[o],s[t])){i.push(e.splice(o,1));break}return i},_fileCompare:function(e,t){return e.size==t.size&&e.name==t.name},_getFormatedSize:function(e){var t=this.options,o="B";return e>=i.TB?e/=i[o="TB"]:e>=i.GB?e/=i[o="GB"]:e>=i.MB?e/=i[o="MB"]:e>=i.KB&&(e/=i[o="KB"]),t.sizeFormat.replace(/^\d+([^\d]+)(\d*)/,function(i,s,r){return((e=(parseFloat(e)||0).toFixed(r.length))+"").replace(".",s)+" "+t.lang[o]})},_onSelect:function(e){this.options.clearOnSelect&&(this.queue=[],this.files=[]),this._getFiles(e,f(this,function(t){t.all.length&&!1!==this.emit
10("select",t)&&this.add(t.files),FileAPI.reset(e.target)}))},_onActionClick:function(e){var i=e.currentTarget,o=t.attr(i,l),s=t(i).closest("["+a+"]",this.$el).attr(a),r=this._getFile(s),n=!0;this.$file(s).attr("disabled")||("file.remove"==o?r&&this.emit("fileRemove"+(r.complete?"Completed":""),r)&&this.remove(s):/^file\.rotate/.test(o)?this.rotate(s,/ccw/.test(o)?"-=90":"+=90"):n=!1),n&&e.preventDefault()},_listen:function(e,i,o){i&&p(t.trim(i).split(","),function(i){i=t.trim(i),d(i)?t(i).on(e+".fileapi",o):this.$el.on(e+".fileapi",i,o)},this)},_onSubmit:function(e){e.preventDefault(),this.upload()},_onReset:function(e){e.preventDefault(),this.clear(!0)},_onAbort:function(e){e.preventDefault(),this.abort()},_onDrop:function(e){this._getFiles(e,function(e){!1!==this.emit("drop",e)&&this.add(e.files)})},_onDropHover:function(e,i){if(!1!==this.emit("dropHover",{state:e,event:i})){var o=this.option("elements.dnd.hover");o&&t(i.currentTarget).toggleClass(o,e)}},_getFile:function(e){return i.filter(this.files,function(t){return i.uid(t)==e})[0]},_getUploadEvent:function(e,t){var i={xhr:e,file:this.xhr.currentFile,files:this.xhr.files,widget:this};return u(i,t)},_emitUploadEvent:function(e,t,i){var o=this._getUploadEvent(i);this.emit(e+"Upload",o)},_emitProgressEvent:function(e,t,i,o){var s=this._getUploadEvent(o,t);this.emit(e+"Progress",s)},_emitCompleteEvent:function(e,i,o,s){var r=this._getUploadEvent(o,{error:i,status:o.status,statusText:o.statusText,result:o.responseText});if("file"==e&&(s.complete=!0),"json"==this.options.dataType)try{r.result=t.parseJSON(r.result)}catch(i){r.error=i}this.emit(e+"Complete",r)},_onUploadEvent:function(e,t){var i=this,o=i.$progress,s=e.type;if("progress"==s)o.stop().animate({width:t.loaded/t.total*100+"%"},300);else if("upload"==s)o.width(0);else{var r=function(){o.dequeue(),i[i.options.clearOnComplete?"clear":"dequeue"]()};this.xhr=null,this.active=!1,o.length?o.queue(r):r()}},_onFileUploadPrepare:function(e,o){var s=i.uid(e),r=this._rotate[s],n=this._crop[s],l=this._resize[s],a=this._getUploadEvent(this.xhr);if(r||n||l){var h=t.extend(!0,{},o.imageTransform||{});r=null!=r?r:this.options.imageAutoOrientation?"auto":void 0,t.isEmptyObject(h)||function(e){var t;for(t in e)if(e.hasOwnProperty(t)&&!(e[t]instanceof Object||"overlay"===t))return!0;return!1}(h)?(u(h,l),h.crop=n,h.rotate=r):p(h,function(e){u(e,l),e.crop=n,e.rotate=r}),o.imageTransform=h}a.file=e,a.options=o,this.emit("filePrepare",a)},_onFileUploadEvent:function(e,t){var o=this,s=e.type.substr(4),r=i.uid(t.file),n=this.$file(r),l=this._$fileprogress,a=this.options;if(this.__fileId!==r&&(this.__fileId=r,this._$fileprogress=l=this.$elem("file.progress",n)),"progress"==s)l.stop().animate({width:t.loaded/t.total*100+"%"},300);else if("upload"==s||"complete"==s){var h=function(){var e="file."+s,t=o.$elem("file.remove",n);"upload"==s?(t.hide(),l.width(0)):a.onFileRemoveCompleted&&t.show(),l.dequeue(),o.$elem(e+".show",n).show(),o.$elem(e+".hide",n).hide()};l.length?l.queue(h):h(),"complete"==s&&(this.uploaded.push(t.file),delete this._rotate[r])}},_redraw:function(e,o){var s=this.files,r=!!this.active,l=!s.length&&!r,h=!this.queue.length&&!r,u=[],f=0,c=this.$files,d=c.children().length,m=this.option("elements.preview"),g=this.option("elements.file.preview");e&&this.$files.empty(),o&&m&&m.el&&!this.queue.length&&this.$(m.el).empty(),p(s,function(e,o){var s=i.uid(e);if(u.push(e.name),f+=e.complete?0:e.size,m&&m.el)this._makeFilePreview(s,e,m,!0);else if(c.length&&!this.$file(s).length){var r=this.itemTplFn({$idx:d+o,uid:s,name:e.name,type:e.type,size:e.size,complete:!!e.complete,sizeText:this._getFormatedSize(e.size)}),n=t(r).attr(a,s);e.$el=n,c.append(n),e.complete&&(this.$elem("file.upload.hide",n).hide(),this.$elem("file.complete.hide",n).hide()),g.el&&this._makeFilePreview(s,e,g)}},this),this.$elem("name").text(u.join(", ")),this.$elem("size").text(h?"":this._getFormatedSize(f)),this.$elem("empty.show").toggle(l),this.$elem("empty.hide").toggle(!l),this.$elem("emptyQueue.show").toggle(h),this.$elem("emptyQueue.hide").toggle(!h),this.$elem("active.show").toggle(r),this.$elem("active.hide").toggle(!r),this.$(".js-fileapi-wrapper,:file")[r?"attr":"removeAttr"]("aria-disabled",r)[n]("disabled",r),this._disableElem("ctrl.upload",h||r),this._disableElem("ctrl.reset",h||r),this._disableElem("ctrl.abort",!r)},_disableElem:function(e,t){this.$elem(e)[t?"attr":"removeAttr"]("aria-disabled","disabled")[n]("disabled",t)},_makeFilePreview:function(e,t,o,s){var r=this,n=s?r.$(o.el):r.$file(e).find(o.el);if(!r._crop[e])if(/^image/.test(t.type)){var l=i.Image(t.src||t),a=function(){l.get(function(i,s){r._crop[e]||(i?(o.get&&o.get(n,t),r.emit("previewError",[i,t])):n.html(s))})};o.width&&l.preview(o.width,o.height),o.rotate&&l.rotate("auto"),o.processing?o.processing(t,l,a):a()}else o.get&&o.get(n,t)},emit:function(e,i){var o,s=this.options,r=t.Event(e.toLowerCase());return r.widget=this,e=t.camelCase("on-"+e),t.isFunction(s[e])&&(o=s[e].call(this.el,r,i)),this.$el.triggerHandler(r,i),!1!==o&&!r.isDefaultPrevented()}
10,add:function(e,t){if((e=[].concat(e)).length){var i=this.options.sortFn;i&&e.sort(i),this.xhr&&this.xhr.append(e),this.queue=t?e:this.queue.concat(e),this.files=t?e:this.files.concat(e),this.active?(this.xhr.append(e),this._redraw(t)):(this._redraw(t),this.options.autoUpload&&this.upload())}},$:function(e,i){return"string"==typeof e&&(e=/^#/.test(e)?e:(i?t(i):this.$el).find(e)),t(e)},$elem:function(e,i,o){i&&i.jquery&&(o=i,i=!1);var s=this.option("elements."+e);return void 0===s&&i&&(s=this.option("elements."+e.substr(0,e.lastIndexOf(".")))),this.$("string"!=t.type(s)&&t.isEmptyObject(s)?[]:s,o)},$file:function(e){return this.$("["+a+'="'+e+'"]')},option:function(e,i){if(void 0!==i&&t.isPlainObject(i))return p(i,function(t,i){this.option(e+"."+i,t)},this),this;var o,s,r=this.options,n=r[e],l=0;if(-1!=e.indexOf("."))for(n=r,o=(e=e.split(".")).length;o>l;l++){if(s=e[l],void 0!==i&&o-l==1){n[s]=i;break}n[s]||(n[s]={}),n=n[s]}else void 0!==i&&(r[e]=i);return void 0!==i&&(this._setOption(e,i,this._options[e]),this._options[e]=i),void 0!==i?i:n},_setOption:function(e,t){switch(e){case"accept":case"multiple":case"paramName":"paramName"==e&&(e="name"),t&&this.$(":file")[n](e,t)}},serialize:function(){var e,i={};return this.$el.find(":input").each(function(o,s){(o=s.name)&&!s.disabled&&(s.checked||/select|textarea|input/i.test(s.nodeName)&&!/checkbox|radio|file/i.test(s.type))&&(e=t(s).val(),void 0!==i[o]?(i[o].push||(i[o]=[i[o]]),i[o].push(e)):i[o]=e)}),i},upload:function(){if(!this.active&&this.emit("beforeUpload",{widget:this,files:this.queue})){this.active=!0;var e=this.$el,t=this.options,o={},s={url:t.url,data:u({},this.serialize(),t.data),headers:t.headers,files:o,uploadRetry:t.uploadRetry,networkDownRetryTimeout:t.networkDownRetryTimeout,chunkSize:t.chunkSize,chunkUploadRetry:t.chunkUploadRetry,chunkNetworkDownRetryTimeout:t.chunkNetworkDownRetryTimeout,prepare:f(this,this._onFileUploadPrepare),imageOriginal:t.imageOriginal,imageTransform:t.imageTransform,imageAutoOrientation:t.imageAutoOrientation};o[e.find(":file").attr("name")||"files[]"]=this.queue,p(["Upload","Progress","Complete"],function(e){var t=e.toLowerCase();s[t]=f(this,this["_emit"+e+"Event"],""),s["file"+t]=f(this,this["_emit"+e+"Event"],"file")},this),this.xhr=i.upload(s),this._redraw()}},abort:function(e){this.active&&this.xhr&&this.xhr.abort(e)},crop:function(e,o){var s=i.uid(e),r=this.options,n=r.multiple?this.option("elements.file.preview"):r.elements.preview,l=(r.multiple?this.$file(s):this.$el).find(n&&n.el);l.length&&i.getInfo(e,f(this,function(s,a){if(s)this.emit("previewError",[s,e]);else{l.find("div>div").length||l.html(t("<div><div></div></div>").css(n).css("overflow","hidden")),this.__cropFile!==e&&(this.__cropFile=e,i.Image(e).rotate(r.imageAutoOrientation?"auto":0).get(function(e,i){l.find(">div>div").html(t(i).width("100%").height("100%"))},"exactFit"));var h=n.width,p=n.height,u=h,f=p,c=h/o.rw,d=p/o.rh;n.keepAspectRatio&&(c>1&&d>1?(c=d=1,f=o.h,u=o.w):d>c?(d=c,f=h*o.rh/o.rw):(c=d,u=p*o.rw/o.rh)),l.find(">div>div").css({width:Math.round(c*a[o.flip?"height":"width"]),height:Math.round(d*a[o.flip?"width":"height"]),marginLeft:-Math.round(c*o.rx),marginTop:-Math.round(d*o.ry)}),n.keepAspectRatio&&l.find(">div").css({width:Math.round(u),height:Math.round(f),marginLeft:h>u?Math.round((h-u)/2):0,marginTop:p>f?Math.round((p-f)/2):0})}})),this._crop[s]=o},resize:function(e,t,o,s){this._resize[i.uid(e)]={type:s,width:t,height:o}},rotate:function(e,o){var s="string"==t.type(e)?e:i.uid(e),r=this.options,n=r.multiple?this.option("elements.file.preview"):r.elements.preview,l=(r.multiple?this.$file(s):this.$el).find(n&&n.el),a=this._rotate;e=this._getFile(s),i.getInfo(e,function(t,n){var h=n&&n.exif&&n.exif.Orientation,p=r.imageAutoOrientation&&i.Image.exifOrientation[h]||0;null==a[s]&&(a[s]=p||0),a[s]=/([+-])=/.test(o)?o=a[s]+("+"==RegExp.$1?1:-1)*o.substr(2):o,e.rotate=o,o-=p,l.css({"-webkit-transform":"rotate("+o+"deg)","-moz-transform":"rotate("+o+"deg)",transform:"rotate("+o+"deg)"})})},remove:function(t){var o="object"==e(t)?i.uid(t):t;this.$file(o).remove(),this.queue=i.filter(this.queue,function(e){return i.uid(e)!=o}),this.files=i.filter(this.files,function(e){return i.uid(e)!=o}),this._redraw()},clear:function(e){this._crop={},this._resize={},this._rotate={},this.queue=[],this.files=[],this.uploaded=[],e=void 0===e||e,this._redraw(e,e)},dequeue:function(){this.queue=[],this._redraw()},widget:function(){return this},toString:function(){return"[jQuery.FileAPI object]"},destroy:function(){this.$files.empty().append(this.$fileTpl),this.$el.off(".fileapi").removeData("fileapi"),p(this.options.elements.ctrl,function(e){d(e)&&t(e).off("click.fileapi")})}},t.fn.fileapi=function(i,o){var s=this.data("fileapi");if(s){if("widget"===i)return s;if("string"==typeof i){var r,n=s[i];
10return t.isFunction(n)?r=n.apply(s,h.call(arguments,1)):void 0===n?r=s.option(i,o):"files"===i&&(r=n),void 0===r?this:r}}else(null==i||"object"==e(i))&&this.data("fileapi",new m(this,i));return this},t.fn.fileapi.version="0.4.7",t.fn.fileapi.tpl=function(e){var t=0,i="__b+='";return e.replace(/(?:<|<)%([-=])?([\s\S]+?)%(?:>|>)|$/g,function(o,s,r,n){return i+=e.slice(t,n).replace(/[\r\n"']/g,function(e){return"\\"+e}),r&&(i+=s?"'+\n((__x=("+r+"))==null?'':"+("-"==s?"__esc(__x)":"__x")+")\n+'":"';\n"+r+"\n__b+='"),t=n+o.length,o}),new Function("ctx","var __x,__b='',__esc=function(val){return typeof val=='string'?val.replace(/</g,'<').replace(/\"/g,'"'):val;};with(ctx||{}){\n"+i+"';\n}return __b;")},t.fn.webcam=function(e){var o=this,s=o,n=t(o),l="fileapi-camera",a=n.data(l);return!0===a?(i.log("[webcam.warn] not ready."),s=null):"widget"===e?s=a:"destroy"===e?(a.stop(),n.empty()):a?s=a[e]():!1===a?(i.log("[webcam.error] does not work."),s=null):(n.data(l,!0),e=u({success:r,error:r},e),FileAPI.Camera.publish(n,e,function(t,i){n.data(l,!t&&i),e[t?"error":"success"].call(o,t||i)})),s},t.fn.cropper=function(e){var o=this,s=e.file;if("string"==typeof e)o.first().Jcrop.apply(o,arguments);else{var r=e.minSize||[0,0],n=e.aspectRatio||r[0]/r[1];t.isArray(e.minSize)&&void 0===e.aspectRatio&&n>0&&(e.aspectRatio=n),i.getInfo(s,function(l,a){var h=i.Image(s),u=e.maxSize,f=s.rotate;u&&h.resize(Math.max(u[0],r[0]),Math.max(u[1],r[1]),"max"),h.rotate(void 0===f?"auto":f).get(function(i,s){var r=e.selection,l=Math.min(s.width,s.height),h=l,u=l/n,f=FileAPI.Image.exifOrientation[a.exif&&a.exif.Orientation]||0;if(r){(/%/.test(r)||r>0&&1>r)&&(h*=r=parseFloat(r,10)/(r>0?1:100),u*=r);var c=(s.width-h)/2,d=(s.height-u)/2;e.setSelect=[0|c,0|d,c+h|0,d+u|0]}p(["onSelect","onChange"],function(t,i){(i=e[t])&&(e[t]=function(e){var t=f%180,o=a.width,r=a.height,n=e.x/s.width,l=e.y/s.height,h=e.w/s.width,p=e.h/s.height,u=o*(t?l:n),c=r*(t?1-(e.x+e.w)/s.width:l);i({x:u,y:c,w:o*(t?p:h),h:r*(t?h:p),rx:n*(t?r:o),ry:l*(t?o:r),rw:h*(t?r:o),rh:p*(t?o:r),lx:e.x,ly:e.y,lw:e.w,lh:e.h,lx2:e.x2,ly2:e.y2,deg:f,flip:t})})});var m=t("<div/>").css("lineHeight",0).append(t(s).css("margin",0));o.html(m),m.Jcrop(e).trigger("resize")})})}return o}}(jQuery,FileAPI); 11},{}],"tMgh":[function(require,module,exports) { 12function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}!function(e){e.extend({progressBar:new function(){this.defaults={steps:20,stepDuration:20,max:100,showText:!0,textFormat:"percentage",width:120,height:12,callback:null,boxImage:"images/progressbar.gif",barImage:{0:"images/progressbg_red.gif",30:"images/progressbg_orange.gif",70:"images/progressbg_green.gif"},running_value:0,value:0,image:null},this.construct=function(t,a){var r=null,i=null;return null!=t&&(isNaN(t)?i=t:(r=t,null!=a&&(i=a))),this.each(function(t){var a=this,u=this.config;if(null!=r&&null!=this.bar&&null!=this.config)this.config.value=parseInt(r),null!=i&&(a.config=e.extend(this.config,i)),u=a.config;else{var l=e(this);(u=e.extend({},e.progressBar.defaults,i)).id=l.attr("id")?l.attr("id"):Math.ceil(1e5*Math.random()),null==r&&(r=l.html().replace("%","")),u.value=parseInt(r),u.running_value=0,u.image=f(u);for(var o=["steps","stepDuration","max","width","height","running_value","value"],g=0;g<o.length;g++)u[o[g]]=parseInt(u[o[g]]);l.html("");var s=document.createElement("img"),c=document.createElement("span"),m=e(s),p=e(c);a.bar=m,m.attr("id",u.id+"_pbImage"),p.attr("id",u.id+"_pbText"),p.html(v(u)),m.attr("title",v(u)),m.attr("alt",v(u)),m.attr("src",u.boxImage),m.attr("width",u.width),m.css("width",u.width+"px"),m.css("height",u.height+"px"),m.css("background-image","url("+u.image+")"),m.css("background-position",-1*u.width+"px 50%"),m.css("padding","0"),m.css("margin","0"),l.append(u.label),l.append(m),l.append(p)}function f(e){var t=e.barImage;if("object"==n(e.barImage))for(var a in e.barImage){if(!(e.running_value>=parseInt(a)))break;t=e.barImage[a]}return t}function v(n){if(n.showText){if("percentage"==n.textFormat)return" "+Math.round(n.running_value)+"%";if("fraction"==n.textFormat)return" "+n.running_value+"/"+n.max}}u.increment=Math.round((u.value-u.running_value)/u.steps),u.increment<0&&(u.increment*=-1),u.increment<1&&(u.increment=1);var d=setInterval(function(){var n=u.width/100;u.running_value>u.value?u.running_value-u.increment<u.value?u.running_value=u.value:u.running_value-=u.increment:u.running_value<u.value&&(u.running_value+u.increment>u.value?u.running_value=u.value:u.running_value+=u.increment),u.running_value==u.value&&clearInterval(d);var t=e("#"+u.id+"_pbImage"),r=e("#"+u.id+"_pbText"),i=f(u);i!=u.image&&(t.css("background-image","url("+i+")"),u.image=i),t.css("background-position",-1*u.width+function(n){return 100*n.running_value/n.max}(u)*n+"px 50%"),t.attr("title",v(u)),r.html(v(u)),null!=u.callback&&"function"==typeof u.callback&&u.callback(u),a.config=u},u.stepDuration)})}}}),e.fn.extend({progressBar:e.progressBar.construct})}(jQuery); 13},{}],"aspD":[function(require,module,exports) { 14!function(i){i.fn.textfill=function(n){var e=i.extend({debug:!1,maxFontPixels:40,minFontPixels:4,innerTag:"span",widthOnly:!1,success:null,callback:null,fail:null,complete:null,explicitWidth:null,explicitHeight:null},n);function t(){e.debug&&"undefined"!=typeof console&&void 0!==console.debug&&console.debug.apply(console,arguments)}function s(i,n,e,s,l,c){function o(i,n){var e=" / ";return i>n?e=" > ":i==n&&(e=" = "),e}t(i+"font: "+n.css("font-size")+", H: "+n.height()+o(n.height(),e)+e+", W: "+n.width()+o(n.width(),s)+s+", minFontPixels: "+l+", maxFontPixels: "+c)}function l(i,n,e,t,l,c,o,a){for(s(i+": ",n,l,c,o,a);o<a-1;){var h=Math.floor((o+a)/2);if(n.css("font-size",h),e.call(n)<=t){if(o=h,e.call(n)==t)break}else a=h;s(i+": ",n,l,c,o,a)}return n.css("font-size",a),e.call(n)<=t&&s(i+"* ",n,l,c,o=a,a),o}return this.each(function(){var n=i(e.innerTag+":visible:first",this),s=e.explicitHeight||i(this).height(),c=e.explicitWidth||i(this).width(),o=n.css("font-size");t("Opts: ",e),t("Vars: maxHeight: "+s+", maxWidth: "+c);var a=e.minFontPixels,h=e.maxFontPixels<=0?s:e.maxFontPixels,f=void 0;e.widthOnly||(f=l("H",n,i.fn.height,s,s,c,a,h));var u=l("W",n,i.fn.width,c,s,c,a,h);e.widthOnly?n.css("font-size",u):n.css("font-size",Math.min(f,u)),t("Final: "+n.css("font-size")),n.width()>c||n.height()>s&&!e.widthOnly?(n.css("font-size",o),e.fail&&e.fail(this)):e.success?e.success(this):e.callback&&(!function(){"undefined"!=typeof console&&void 0!==console.warn&&console.warn.apply(console,arguments)}("callback is deprecated, use success, instead"),e.callback(this))}),e.complete&&e.complete(this),this}}(window.jQuery); 15},{}],"X38A":[function(require,module,exports) { 16window.picoModal=function(t,e){"use strict";var n=function(){var e=[];
16return{watch:function(t){e.push(t)},trigger:function(){for(var n=0;n<e.length;n++)t.setTimeout(e[n],1)}}},o=function(t){var n=e.createElement("div");(t||e.body).appendChild(n);var i={elem:n,child:function(){return o(n)},stylize:function(t){for(var e in void 0!==(t=t||{}).opacity&&(t.filter="alpha(opacity="+100*t.opacity+")"),t)t.hasOwnProperty(e)&&(n.style[e]=t[e]);return i},clazz:function(t){return n.className+=t,i},html:function(t){return n.innerHTML=t,i},getWidth:function(){return n.clientWidth},onClick:function(t){return n.attachEvent?n.attachEvent("onclick",t):n.addEventListener("click",t),i},destroy:function(){return e.body.removeChild(n),i}};return i};return function(t){function e(e,n){return void 0===t[e]?n:t[e]}"string"==typeof t&&(t={content:t});var i=function(t){var e=n(),i=o().clazz("pico-overlay").stylize({display:"block",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(t("overlayStyles",{opacity:.5,background:"#000"})).onClick(e.trigger);return{elem:i.elem,destroy:i.destroy,onClick:e.watch}}(e),r=n(),l=o().clazz("pico-content").stylize({display:"block",position:"fixed",zIndex:10001,left:"50%",top:"50px"}).html(t.content),c=e("width",l.getWidth());l.stylize({width:c+"px",margin:"0 0 0 "+-c/2+"px"}).stylize(e("modalStyles",{backgroundColor:"white",padding:"20px",borderRadius:"5px"}));var a,d=function(){r.trigger(),i.destroy(),l.destroy()};return e("overlayClose",!0)&&i.onClick(d),e("closeButton",!0)&&(a=l.child().html(e("closeHtml","×")).clazz("pico-close").stylize(e("closeStyles",{borderRadius:"2px",cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})).onClick(d)),{modalElem:l.elem,closeElem:a?a.elem:null,overlayElem:i.elem,close:d,onClose:r.watch}}}(window,document); 17},{}],"aGlI":[function(require,module,exports) { 18jQuery.extend({debounce:function(t,n,e,u){var o;return 3==arguments.length&&"boolean"!=typeof e&&(u=e,e=!1),function(){var l=arguments;u=u||this,e&&!o&&t.apply(u,l),clearTimeout(o),o=setTimeout(function(){!e&&t.apply(u,l),o=null},n)}},throttle:function(t,n,e){var u,o,l;return function(){o=arguments,l=!0,e=e||this,u||function(){l?(t.apply(e,o),l=!1,u=setTimeout(arguments.callee,n)):u=null}()}}}); 19},{}],"DexP":[function(require,module,exports) { 20window.initViewer=function(){$LAB.script("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"),$LAB_CHAIN.script("//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js").wait(function(){var e=window.viewerLayout;if(void 0===e||void 0===e.version||void 0===e.googleBlockIds||void 0===e.googleAccount)return console.log("Can't init viewer layout: ",e),"undefined"==e&&(window.viewerLayout={}),e.version=0,void window.initViewerLayout();"undefined"!=e.versionOverridesUser&&0!=e.versionOverridesUser||(void 0!==$.cookie("known_visitor")||"unregistered"!=gaUserId&&2!=gaUserId)&&(e.googleBlockIds=e.googleBlockDefaultIds,e.version=0),"slide"==$("#viewer").data("viewMode")&&(void 0===e.googleSlideBlockIds&&(e.googleSlideBlockIds="ca-pub-6961070524526180"==e.googleAccount?[4716788152,7670254557,9146987754]:[8815296001,1292029205,2768762404]),e.googleBlockIds=[0].concat(e.googleSlideBlockIds),e.version=0),void 0===e.googleFailBlockIds&&(e.googleFailBlockIds="ca-pub-6961070524526180"==e.googleAccount?[3263970955,1787237759,4740704152]:[6156775204,7633508409,9110241605]),$.cookie("known_visitor","1",{expires:7,path:"/"}),$(document).ready(window.initViewerLayout),void 0!==e.initDocumentBeforeViewerPlaces&&1==e.initDocumentBeforeViewerPlaces&&documentLayout.init(),$("#viewer").on("viewer:noflash",function(){failBlocks.pushGoogle(0,"display: block; height: 90px;",".docme-promo-fail-1"),failBlocks.pushGoogle(1,"display: block; height: 280px;",".docme-promo-fail-2"),failBlocks.pushGoogle(2,"display: block; height: 280px;",".docme-promo-fail-3")}),$("#viewer").on("viewer:create",function(){if(window.viewerLayout.googleBlockIds[0]>0)if(3==window.viewerLayout.version){var e="width:"+(interstitialBlocks.getSafeViewerWidth()-10)+"px;";interstitialBlocks.pushGoogle(0,"display:inline-block;"+e+"height: 120px;",".docme-testing2")}else interstitialBlocks.pushGoogle(0,"display:inline-block;width:336px;height:280px",".docme-testing")}),$("#viewer").on("viewer:doc:progress",function(o,i){var n=window.viewerLayout.googleBlockIds[0]>0?0:1;i.value<3+n?interstitialBlocks.pushGoogle(i.value,"display:inline-block;height: 90px;",".docme-promo-"+i.value):3==i.value&&void 0!==window.viewerLayout.youlaIds&&interstitialBlocks.pushYoula(window.viewerLayout.youlaIds[i.value-3],"display:inline-block;height: 90px;",".docme-promo-"+i.value),(i.value==i.max||i.value>=3)&&(void 0!==e.initDocumentBeforeViewerPlaces&&0!=e.initDocumentBeforeViewerPlaces||documentLayout.init())})})},window.documentLayout={usedByGoogle:0,usedByYoula:0,init:function(){var e=window.documentLayoutConfig;if(void 0===e||void 0===e.googleBlockIds||void 0===e.googleAccount)return console.log("Can't init document layout: ",e),void("undefined"==e&&(window.documentLayoutConfig={}));for(var o=0;o<e.places.length;o++)if(interstitialBlocks.usedByGoogle+documentLayout.usedByGoogle<3){documentLayout.initPlace(e.places[o]);var i=$("."+e.places[o]).width();$("<ins/>",{class:"adsbygoogle",style:"display:inline-block;width: "+i+"px; height: 120px;","data-ad-client":e.googleAccount,"data-ad-slot":e.googleBlockIds[o]}
20).appendTo($("."+e.places[o])),(adsbygoogle=window.adsbygoogle||[]).push({}),documentLayout.usedByGoogle++}},initPlace:function(e){$("."+e).show()}},window.initViewerLayout=function(){0==window.viewerLayout.version?$LAB_CHAIN.script("/viewer/viewer.js").wait(function(){$(document).ready(window.initViewerObject)}):1==window.viewerLayout.version?$LAB_CHAIN.script("/viewer/viewer-testing.js").wait(function(){$(document).ready(function(){$("h1.block_name").textfill({maxFontPixels:40}),$("<div/>",{class:"viewer_heading"}).appendTo(".docme-testing"),$("<span/>",{text:$("h1.block_name span").html()}).appendTo(".viewer_heading")}),$(document).ready(window.initViewerObject)}):3==window.viewerLayout.version&&$LAB_CHAIN.script("/viewer/viewer-testing2.js").wait(function(){$(document).ready(window.initViewerObject)})},window.failBlocks={usedByGoogle:0,pushGoogle:function(e,o,i){$("<ins/>",{class:"adsbygoogle",style:o,"data-ad-client":window.viewerLayout.googleAccount,"data-ad-slot":window.viewerLayout.googleFailBlockIds[e]}).appendTo(i),(adsbygoogle=window.adsbygoogle||[]).push({}),interstitialBlocks.usedByGoogle++}},window.interstitialBlocks={usedByGoogle:0,usedByAnother:0,getSafeViewerWidth:function(){var e=$
20("#viewer"),o=parseInt(e.width())-15||970;return o-=2*(parseInt(e.viewer("option","space"))||0)},pushGoogle:function(e,o,i){if(void 0!==window.viewerLayout.googleBlockIds[e]&&0!=window.viewerLayout.googleBlockIds[e]){var n=!window.ezoicFailback&&window.ezoicBlocks&&window.ezoicBlocks[e-1];if(n)$("#ezoic-pub-ad-placeholder-"+n).appendTo(i),$(".ezoic-ad.adtester-container-"+n).appendTo(i);else{var t=this.getSafeViewerWidth()-parseFloat($(i).css("padding-left"))-parseFloat($(i).css("padding-right"));$("<ins/>",{class:"adsbygoogle",style:"width:"+t+"px; "+o,"data-ad-client":window.viewerLayout.googleAccount,"data-ad-slot":window.viewerLayout.googleBlockIds[e]}).appendTo(i),(adsbygoogle=window.adsbygoogle||[]).push({}),interstitialBlocks.usedByGoogle++}}},pushYoula:function(e,o,i){$("<iframe>",{src:"/ajax/youla/"+e+"?path="+$("link[rel='canonical']").attr("href"),style:o,scrolling:"no",frameborder:0}).appendTo(i),$(i).removeClass("docme-promo-ru")},pushYandex:function(e,o){var i,n,t,a,d;$("<div id='yandex_ad_"+e+"' style='height:90px'></div>").appendTo(o),i=window,n=window.document,i[t="yandexContextAsyncCallbacks"]=i[t]||[],i[t].push(function(){Ya.Context.AdvManager.render({blockId:e,renderTo:"yandex_ad_"+e,async:!0})}),d=n.getElementsByTagName("script")[0],(a=n.createElement("script")).type="text/javascript",a.src="//an.yandex.ru/system/context.js",a.async=!0,d.parentNode.insertBefore(a,d),$(o).removeClass("docme-promo-ru")}}; 21},{}],"B8vK":[function(require,module,exports) { 22window.initViewerObject=function(){viewerBox=calculateViewerBox("#viewer"),$("#viewer").css("height",viewerBox.height),$(window).resize(function(){viewerBox=calculateViewerBox("#viewer"),$("#viewer").css("height",viewerBox.height)}),(void 0===$("#viewer").data("behaviour")||$("#viewer").data("behaviour").indexOf("dontAdjustOnScroll")<0)&&setTimeout(function(){$(window).scroll($.debounce(window.adjustToViewer,100,!0))},1050),(void 0===$("#viewer").data("behaviour")||$("#viewer").data("behaviour").indexOf("skipScrollOnInit")<0)&&($("html,body").animate({scrollTop:viewerBox.topEdge},{duration:1e3}),prevScrollTop=viewerBox.topEdge),$("#viewer").on("viewer:create",function(e){}).on("viewer:noflash",function(e){$(".control",this).hide()}).on("viewer:doc:progress",function(e,o){var i=$(".progress-bar",this).prop("max",o.max).prop("value",o.value);o.value>0&&$(".preloader",this).hide(),o.value==o.max&&i.hide()}).on("viewer:page:change",function(e,o){$(".page-current",this).text(o.current),$(".page-total",this).text("/ "+o.total),$(".pages_block .page-current").text(o.current),$(".pages_block .page-total").text(o.total),o.total>0&&$(".control.footer .progress .fill").css("width",$(".control.footer .progress").width()*(o.current/o.total))}).viewer(),$("#viewer-below").on("click",'[data-page="prev"]',function(){$("#viewer").viewer("setPage","-1")}).on("click",'[data-page="next"]',function(){$("#viewer").viewer("setPage","+1")}).on("click",'[data-toggle="screen"]',function(){FullScreen.toggle($("#viewer")[0])}),$(document).ready(function(){$(".control.share").append($("#social_widget").html()),addthis.addEventListener("addthis.menu.share",function(e){if("addthis.menu.share"==e.type){var o=$(e.data.element).parents("div.control.share").length>0?"viewer":"header";ga("send","event","social","share:"+e.data.service,o)}}),addthis.init(),$(".control.actions").append($('<div class="panel"><a id="flag" href="/abuse">Flag inappropriate content</a><br/><br/><a id="copyright" href="/abuse">Copyright complaint</a></div>')),$(".control.actions").hover(function(){$(".control.actions .panel").stop(!0,!0).slideDown("medium")},function(){$(".control.actions .panel").stop(!0,!0).slideUp("medium")})}),(void 0===$("#viewer").data("behaviour")||$("#viewer").data("behaviour").indexOf("dontAdjustOnScroll")<0)&&$(".docme-scroller").scroll($.debounce(window.scrollToViewer,200))},$(window).scroll($.debounce(function(e){if("undefined"!=typeof viewerBox){var o=$(document).scrollTop()==viewerBox.topEdge;o&&!$(".control.share").is(":visible")&&$(".control.share").show("slow"),!o&&$(".control.share").is(":visible")&&$(".control.share").slideUp()}},300)),window.previousBodyScrollPosition=0,window.adjustToViewer=function(e){var o=$(document).scrollTop(),i=Math.ceil(viewerBox.topOffset),r=(o-i)*(window.prevScrollTop-i)<0,t=window.prevScrollTop==viewerBox.topEdge||o==viewerBox.topEdge;Math.abs(o-window.prevScrollTop)<5||(r&&!t&&(e.preventDefault(),o=viewerBox.topEdge,$("body,html").scrollTop(o)),window.prevScrollTop=o)}
22,window.scrollToViewer=function(){var e=$(document).scrollTop();if(window.previousBodyScrollPosition!=e||0==window.previousBodyScrollPosition)if(0!=$(".docme-scroller").scrollTop())if(viewerBox=calculateViewerBox("#viewer"),e!=viewerBox.topEdge){var o=3*Math.abs(viewerBox.topEdge-e);$("body,html").animate({scrollTop:viewerBox.topEdge},{easing:"easeInBack",duration:o,step:function(){$(document).scrollTop()==viewerBox.topEdge&&$("body,html").stop()}}),window.previousBodyScrollPosition=e}else $("body,html").finish();else $("body,html").finish()},jQuery.extend(jQuery.easing,{easeInBack:function(e,o,i,r,t,n){return null==n&&(n=1.70158),r*(o/=t)*o*((n+1)*o-n)+i}}),window.calculateViewerBox=function(e){var o=window.innerHeight,i="slide"==$("#viewer").data("viewMode");!i&&void 0!==window.viewerLayout&&3==window.viewerLayout.version&&void 0!==window.viewerLayout.bannerPaddingBelowViewer&&window.viewerLayout.bannerPaddingBelowViewer>0&&(o=window.innerHeight-window.viewerLayout.bannerPaddingBelowViewer),$("#viewer-below").length&&(o=window.innerHeight-$("#viewer-below").height()),void 0!==window.viewerLayout&&(window.spaceBelowSlideViewer>0&&i?o=window.innerHeight-window.spaceBelowSlideViewer:window.spaceBelowScrollViewer>0&&(o=window.innerHeight-window.spaceBelowScrollViewer));var r=$("#viewer").width()/1.3333333+54+("full"==$("#viewer").data("advertisement")?110:0),t=void 0!==$("#viewer").data("space")?$("#viewer").data("space"):5,n=560,a=4,w="slide"==$("#viewer").data("viewMode")?r:1365;o>n+2*t&&o<w?(n=o-2*t,a=t):o>=w?o-(n=w-2*t)<a+t&&(a=Math.round((o-n)/2)):a=t;var d=$(e)&&$(e).offset()?$(e).offset().top:0;return topEdge=Math.round(d-a),{height:n,topMargin:a,topEdge:topEdge,topOffset:d}}; 23},{}],"FTvl":[function(require,module,exports) { 24(function(){window.initFileApiWidget=function(){var e,n,s,a,l;return n=function(e,n){return-1!=e.indexOf(n,e.length-n.length)},a=function(e,s){var a,l;for(s.error,s.result,console.log(e),console.log(s),l=!0,a=0;a<FileAPI.extensions.length;)n(s.files[0].name,FileAPI.extensions[a])?(l=!1,a++):a++;l&&($(".js-cancel .txt").html(window.i18n.fileapi.wrong_ext1+'<b><span class="js-name"></span></b>'+window.i18n.fileapi.wrong_ext2),$(".js-name").html(s.files[0].name),s.files.pop(0),$(".js-cancel").slideDown("slow"))},e=function(e,n){var s;return n.error||"REDIRECT"!=n.result.match("REDIRECT")?($(".js-cancel .txt").html(window.i18n.fileapi.failed),$(".js-cancel").slideDown("slow"),n.files.pop(0)):(s=n.result,$(".js-redirect .txt").html("<a href=/docmanager.html?id="+s.match(/\d+/)+">"+window.i18n.document+"</a> "+window.i18n.fileapi.success+"<br>").show(),document.location.href=s.substr(10,s.length-10),n.result,console.log(n)),!0},l=function(e,n){console.log(n)},$.extend(!0,window.FileAPI,{debug:!0,cors:!1,staticPath:"/swf/",extensions:window.extensionList.split(",")}),s={url:window.DocMe.storeUrl,data:{userId:window.DocMe.currentUserId,redirect:window.DocMe.afterUploadRedirect,isFlashUploader:"yes"},dataType:"text",autoUpload:!0,maxSize:100*FileAPI.MB,elements:{size:".js-size",name:".js-name",active:{show:".js-upload",hide:".js-browse"},progress:".js-progress",complete:{hide:".js-progress"}},onSelect:a,onUpload:l,onComplete:e},$(document).ready(function(){var e,n,a,l,o,p,d,i;return p=$("<div>",{class:"progress progress-success"}).append($("<div>",{class:"js-progress bar progress-bar"})),d=$("<span>",{class:"size"}).append(window.i18n.page.header.uploading).append($("<span>",{class:"js-size"})),o=$("<span>",{class:"name"}).append(window.i18n.page.header.upload.document_title+": ").append($("<span>",{class:"js-name"})),a=$("<div>",{class:"js-upload",style:"display:none"}).append(p).append(d).append(o),e=$("<a>",{class:"pop-up-ico fr",style:"display:none"}).append($("<img>",{src:"/img/pop-up-ico.png",alt:"cancel"})).click(function(){return $(".js-cancel").slideUp("fast"),!1}),i=$("<span>",{class:"txt"}),n=$("<div>",{class:"js-cancel",style:"display:none"}).append(e).append(i),l=$("<div>",{class:"js-redirect",style:"display:none"}).append($("<span>",{class:"txt"})),$("#upload").append(a).append(n).append(l).fileapi(s),$("#upload_to_group").append(a.clone()).append(n.clone()).append(l.clone()),$("#dnd").append(a.clone()).append(n.clone()).append(l.clone()),$("#dnd").fileapi($.extend(!0,s,{multiple:!1,elements:{dnd:{el:".b-upload__dnd",hover:"b-upload__dnd_hover",fallback:".b-upload__dnd-not-supported"}}}))})}}).call(this); 25},{}],"Az5s":[function(require,module,exports) { 26function t(e){return(t="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})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,r(n.key),n)}}function n(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(e){var o=i(e,"string");return"symbol"==t(o)?o:o+""}function i(e,o){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,o||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(function(){window.downloadView=function(){return n(function t(){e(this,t),"#captcha_failed"===window.location.hash&&$("#captcha-failed").removeClass("hidden")},[{key:"verify",value:function(){return $(".formats").removeClass("disabled")}},{key:"download",value:function(t){return setTimeout(function(){return $(".recaptcha, .formats").hide(),$(".media").removeClass("hidden")},2e3),this.submit_download(t)}},{key:"submit_download",value:function(t){return $("#iFormat").prop("value",t),$("#fDownload").submit()}}])}()}).call(this); 27},{}],"WdKE":[function(require,module,exports) { 28function e(){child_options=$("select#category > option"),selected=$("select#category > option:selected").attr("value"),$("select#category > option[rel]").remove(),t(selected),$("select#category").change(function(){o()}),$("select#category").attr("name","category_top"),o(),window.autoCategoryDocumentId>0&&a()}function t(e){child_options.each(function(o,n){$(n).attr("value")==e&&($(n).attr("selected","selected"),$(n).attr("rel")&&t($(n).attr("rel")))})}function o(){$("select#category>option:selected").size()>0&&(parentId=$("select#category>option:selected").attr("value"),existent_selects=new Array,$("#depended_category_select_padding select").each(function(e,t){select=$(t).clone()[0],select.selectedIndex=t.selectedIndex,existent_selects.push(select)}),$("#depended_category_select_padding").html(""),$("#depended_category_select_padding").append($("<input type='hidden' name='category' id='c
28ategory_input' />")),$("#category_input").val($("select#category>option:selected").attr("value")),n(parentId,existent_selects))}function n(e,t){var a;$(t).each(function(t,o){$(o).attr("rel")==e&&(a=o)});var r=Array();if(a)$("#depended_category_select_padding").append(a),r=$("#depended_category_select_padding select#"+$(a).attr("id")+" option:selected"),$(a).change(function(e){o()});else{var s=Array();child_options.each(function(t,o){if($(o).attr("rel")==e){var n=$(o).clone();n.selected=o.selected,s.push(n)}}),s.length>0&&(sel=$("<select name='category_child_"+e+"' id='"+i(8)+"' class='filter' rel='"+e+"'></select>"),sel.append("<option value='null' >"+window.i18n.no_subcategory+"</option>"),$(s).each(function(e,t){t.text(t.text().replace(/^[-\s]+/,"")),sel.append(t),1==t.selected&&(sel[0].selectedIndex=e+1)}),$(sel).attr("rel",e),$(sel).change(function(e){o()}),$("#depended_category_select_padding").append(sel),r=$("#depended_category_select_padding select#"+$(sel).attr("id")+" option:selected"))}r.length>0&&"null"!=r.attr("value")&&($("#category_input").val(r.attr("value")),n(r.attr("value"),t))}function a(){$.ajax({url:"/ajax/waitForCategoryChange?id="+window.autoCategoryDocumentId,dataType:"json",success:function(e){"wait"==e.status?a():"ok"==e.status&&(t(e.newCategoryId),o(),$("#category").stop().animate({backgroundColor:"#ffcc33"},800).animate({backgroundColor:"white"},2e3),$(".filter").stop().animate({backgroundColor:"#ffcc33"},800).animate({backgroundColor:"white"},2e3))}})}function i(e){for(var t="",o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split(""),n=0;n<e;n++)t+=o[Math.floor(Math.random()*o.length)];return t}function r(e){if(0==/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test($("#"+e).val()))return alert(window.i18n.wrong_email),!1}$(function(){$("#catalog_slider").length>0&&($("#catalog_slider").slidesjs({width:700,height:400,navigation:{active:!1},pagination:{active:!0,effect:"fade"}}),$("#catalog_slider .close").on("click",function(e){$("#catalog_slider").slideUp(),e.preventDefault()}));var e=$("#login"),t=$("#login_block");t=$("#login_block");var o=function(){t.fadeOut(110,function(){e.removeClass("active")}),e.removeClass("active")};o(),e.on("click",function(e){e.stopPropagation(),e.preventDefault();var n=$(this);n.hasClass("active")?(o(),$(".opacity").fadeOut(150,function(){$(this).remove()})):(n.addClass("active"),t.fadeIn(150),$("<div>").addClass("opacity").appendTo("body").fadeIn(150))});var n=$("#embed"),a=$("#embed_block"),i=function(){a.fadeOut(110,function(){n.removeClass("active")}),n.removeClass("active")};i(),n.on("click",function(e){e.stopPropagation(),e.preventDefault();var t=$(this);t.hasClass("active")?(i(),$(".opacity").fadeOut(150,function(){$(this).remove()})):(t.addClass("active"),a.fadeIn(150),$("<div>").addClass("opacity").appendTo("body").fadeIn(150))}),$("#close").on("click",function(t){$("#login_block, #invite_block, #embed_block, .opacity").fadeOut(),e.removeClass("active"),invite.removeClass("active"),t.preventDefault()}),$("#close_embed").on("click",function(e){$("#embed_block, .opacity").fadeOut(),n.removeClass("active"),e.preventDefault()}),$(document).ready(function(){$(".text_clip:visible").dotdotdot({}),$(".featured .text_clip:hidden").each(function(e,t){$(t).parent().addClass("show"),$(t).dotdotdot({}),$(t).parent().removeClass("show")})})}),window.DocMe={},window.DocMe.picoModal=function(e,t){return picoModal({content:e,closeHtml:'<img src="/img/pop-up-ico.png" alt="">',closeStyles:{position:"absolute",top:"10px",right:"10px",background:"#1a1a1a",padding:"5px 10px",cursor:"pointer",borderRadius:"5px",border:"none"},modalStyles:t})},window.processAutoWidthCheckbox=function(){$("#auto_width:checked").length?(window.oldWidth=$("#width").val(),$("#width").val("100%"),$("#width").attr("disabled",!0)):($("#width").removeAttr("disabled"),$("#width").val(window.oldWidth))},window.prepareDocumentProgressBars=function(e){$.get(e,window.updateProgressBarStates),window.documentProgressBarSheduler=setInterval(function(){$.get(e,window.updateProgressBarStates)},1500)},window.updateProgressBarStates=function(){var e={};if(e.state=$(arguments[2].responseXML).find("state").text(),e.queuePosition=$(arguments[2].responseXML).find("queuePosition").text(),e.convert
28ionPercent=$(arguments[2].responseXML).find("convertionPercent").text(),"COMPLETE"==e.state||"ERROR"==e.state)return clearInterval(window.documentProgressBarSheduler),void location.reload(!0);if($("#processing_progressbar").toggle("CONVERTING"==e.state),$("#queue_progressbar").toggle("WAITING"==e.state),e.queuePosition)if(0==$("#queue_progressbar").html().length){var t=document.createElement("span");t.innerHTML=window.i18n.convert.document_queue,t.className="quiet",$("#queue_progressbar").progressBar(e.queuePosition,{label:t,textFormat:"fraction",boxImage:"/img/progressbar.gif",barImage:"/img/progressbg_yellow.gif",max:e.queuePosition})}else $("#queue_progressbar").progressBar(e.queuePosition);if(e.convertionPercent)if(0==$("#processing_progressbar").html().length){var o=document.createElement("span");o.innerHTML=window.i18n.convert.progress,o.className="quiet",$("#processing_progressbar").progressBar(e.convertionPercent,{label:o,boxImage:"/img/progressbar.gif",barImage:"/img/progressbg_green.gif"})}else $("#processing_progressbar").progressBar(e.convertionPercent)},window.prepareRemoteSnippets=function(){$(".snippet[rel]").each(function(e,t){id=$(t).attr("rel"),$.ajax({url:"/ajax/snippet/"+id+"/"+searchQuery,success:function(e){"Not found."==e&&window.i18n.snippet.not_generated,"Not found in text."==e&&window.i18n.snippet.text_not_found,$(t).html(e)}})})},window.prepareRemoteSnippetsNewStyle=function(){$(".snippet[rel]").each(function(e,t){id=$(t).attr("rel"),$.ajax({url:"/ajax/snippet/"+id+"/"+searchQuery,success:function(e){"Not found."==e&&window.i18n.snippet.not_generated,"Not found in text."==e&&window.i18n.snippet.text_not_found,$(t).html(e)}})})}; 29},{}],"L5PI":[function(require,module,exports) { 30require("../js/vendor/jquery-ui.min.js"),require("../js/vendor/jquery.dotdotdot.min.js"),require("../js/vendor/FileAPI.min.js"),require("../js/vendor/jquery.fileapi.min.js"),require("../js/vendor/jquery.progressbar.min.js"),require("../js/vendor/jquery.textfill.js"),require("../js/vendor/picoModal.js"),require("../js/vendor/jquery.debounce-1.0.5.js"),require("../js/_ads.js"),require("../js/_viewer.js"),require("./coffee/_fileApiWidgets.coffee"),require("./coffee/_download.coffee"),require("../js/main.js"); 31},{"../js/vendor/jquery-ui.min.js":"KF9P","../js/vendor/jquery.dotdotdot.min.js":"hzat","../js/vendor/FileAPI.min.js":"reYi","../js/vendor/jquery.fileapi.min.js":"LLP5","../js/vendor/jquery.progressbar.min.js":"tMgh","../js/vendor/jquery.textfill.js":"aspD","../js/vendor/picoModal.js":"X38A","../js/vendor/jquery.debounce-1.0.5.js":"aGlI","../js/_ads.js":"DexP","../js/_viewer.js":"B8vK","./coffee/_fileApiWidgets.coffee":"FTvl","./coffee/_download.coffee":"Az5s","../js/main.js":"WdKE"}]},{},["L5PI"], null)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.