Files
Grav-Admin-Plugin/themes/grav/js/vendor.min.js
2016-06-10 15:10:24 +02:00

50 lines
665 KiB
JavaScript
Vendored
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Grav=function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n=window.webpackJsonpGrav;window.webpackJsonpGrav=function(a,o){for(var s,l,u=0,d=[];u<a.length;u++)l=a[u],r[l]&&d.push.apply(d,r[l]),r[l]=0;for(s in o)e[s]=o[s];for(n&&n(a,o);d.length;)d.shift().call(null,t);return o[0]?(i[0]=0,t(0)):void 0};var i={},r={1:0};return t.e=function(e,n){if(0===r[e])return n.call(null,t);if(void 0!==r[e])r[e].push(n);else{r[e]=[n];var i=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.src=t.p+""+e+".admin.min.js",i.appendChild(a)}},t.m=e,t.c=i,t.p="",t(0)}([function(e,t,n){n(338),n(312),n(323),n(566),n(304),n(567),n(317),n(334),n(414),n(339),n(340),e.exports=n(329)},function(e,t){e.exports=jQuery},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i,r;!function(a){i=[n(1)],r=function(e){return function(){function t(e,t,n){return f({type:w.error,iconClass:m().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=m()),v=e("#"+t.containerId),v.length?v:(n&&(v=c(t)),v)}function i(e,t,n){return f({type:w.info,iconClass:m().iconClasses.info,message:e,optionsOverride:n,title:t})}function r(e){y=e}function a(e,t,n){return f({type:w.success,iconClass:m().iconClasses.success,message:e,optionsOverride:n,title:t})}function o(e,t,n){return f({type:w.warning,iconClass:m().iconClasses.warning,message:e,optionsOverride:n,title:t})}function s(e,t){var i=m();v||n(i),d(e,i,t)||u(i)}function l(t){var i=m();return v||n(i),t&&0===e(":focus",t).length?void g(t):void(v.children().length&&v.remove())}function u(t){for(var n=v.children(),i=n.length-1;i>=0;i--)d(e(n[i]),t)}function d(t,n,i){var r=i&&i.force?i.force:!1;return t&&(r||0===e(":focus",t).length)?(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){g(t)}}),!0):!1}function c(t){return v=e("<div/>").attr("id",t.containerId).addClass(t.positionClass).attr("aria-live","polite").attr("role","alert"),v.appendTo(e(t.target)),v}function h(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function p(e){y&&y(e)}function f(t){function i(e){return null==e&&(e=""),new String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function r(){s(),u(),d(),c(),h(),l()}function a(){k.hover(b,w),!M.onclick&&M.tapToDismiss&&k.click(y),M.closeButton&&Y&&Y.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),y(!0)}),M.onclick&&k.click(function(e){M.onclick(e),y()})}function o(){k.hide(),k[M.showMethod]({duration:M.showDuration,easing:M.showEasing,complete:M.onShown}),M.timeOut>0&&(x=setTimeout(y,M.timeOut),A.maxHideTime=parseFloat(M.timeOut),A.hideEta=(new Date).getTime()+A.maxHideTime,M.progressBar&&(A.intervalId=setInterval(L,10)))}function s(){t.iconClass&&k.addClass(M.toastClass).addClass(C)}function l(){M.newestOnTop?v.prepend(k):v.append(k)}function u(){t.title&&(T.append(M.escapeHtml?i(t.title):t.title).addClass(M.titleClass),k.append(T))}function d(){t.message&&(S.append(M.escapeHtml?i(t.message):t.message).addClass(M.messageClass),k.append(S))}function c(){M.closeButton&&(Y.addClass("toast-close-button").attr("role","button"),k.prepend(Y))}function h(){M.progressBar&&(E.addClass("toast-progress"),k.prepend(E))}function f(e,t){if(e.preventDuplicates){if(t.message===_)return!0;_=t.message}return!1}function y(t){var n=t&&M.closeMethod!==!1?M.closeMethod:M.hideMethod,i=t&&M.closeDuration!==!1?M.closeDuration:M.hideDuration,r=t&&M.closeEasing!==!1?M.closeEasing:M.hideEasing;return!e(":focus",k).length||t?(clearTimeout(A.intervalId),k[n]({duration:i,easing:r,complete:function(){g(k),M.onHidden&&"hidden"!==F.state&&M.onHidden(),F.state="hidden",F.endTime=new Date,p(F)}})):void 0}function w(){(M.timeOut>0||M.extendedTimeOut>0)&&(x=setTimeout(y,M.extendedTimeOut),A.maxHideTime=parseFloat(M.extendedTimeOut),A.hideEta=(new Date).getTime()+A.maxHideTime)}function b(){clearTimeout(x),A.hideEta=0,k.stop(!0,!0)[M.showMethod]({duration:M.showDuration,easing:M.showEasing})}function L(){var e=(A.hideEta-(new Date).getTime())/A.maxHideTime*100;E.width(e+"%")}var M=m(),C=t.iconClass||M.iconClass;if("undefined"!=typeof t.optionsOverride&&(M=e.extend(M,t.optionsOverride),C=t.optionsOverride.iconClass||C),!f(M,t)){D++,v=n(M,!0);var x=null,k=e("<div/>"),T=e("<div/>"),S=e("<div/>"),E=e("<div/>"),Y=e(M.closeHtml),A={intervalId:null,hideEta:null,maxHideTime:null},F={toastId:D,state:"visible",startTime:new Date,options:M,map:t};return r(),o(),a(),p(F),M.debug&&console&&console.log(F),k}}function m(){return e.extend({},h(),b.options)}function g(e){v||(v=n()),e.is(":visible")||(e.remove(),e=null,0===v.children().length&&(v.remove(),_=void 0))}var v,y,_,D=0,w={error:"error",info:"info",success:"success",warning:"warning"},b={clear:s,remove:l,error:t,getContainer:n,info:i,options:{},subscribe:r,success:a,version:"2.1.2",warning:o};return b}()}.apply(t,i),!(void 0!==r&&(e.exports=r))}(n(305))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},,,,,,,function(e,t,n){var i,r;!function(n,a){i=[],r=function(){return n.Chartist=a()}.apply(t,i),!(void 0!==r&&(e.exports=r))}(this,function(){var e={version:"0.9.7"};return function(e,t,n){"use strict";n.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},n.noop=function(e){return e},n.alphaNumerate=function(e){return String.fromCharCode(97+e%26)},n.extend=function(e){e=e||{};var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){for(var i in t)"object"!=typeof t[i]||null===t[i]||t[i]instanceof Array?e[i]=t[i]:e[i]=n.extend({},e[i],t[i])}),e},n.replaceAll=function(e,t,n){return e.replace(new RegExp(t,"g"),n)},n.ensureUnit=function(e,t){return"number"==typeof e&&(e+=t),e},n.quantity=function(e){if("string"==typeof e){var t=/^(\d+)\s*(.*)$/g.exec(e);return{value:+t[1],unit:t[2]||void 0}}return{value:e}},n.querySelector=function(e){return e instanceof Node?e:t.querySelector(e)},n.times=function(e){return Array.apply(null,new Array(e))},n.sum=function(e,t){return e+(t?t:0)},n.mapMultiply=function(e){return function(t){return t*e}},n.mapAdd=function(e){return function(t){return t+e}},n.serialMap=function(e,t){var i=[],r=Math.max.apply(null,e.map(function(e){return e.length}));return n.times(r).forEach(function(n,r){var a=e.map(function(e){return e[r]});i[r]=t.apply(null,a)}),i},n.roundWithPrecision=function(e,t){var i=Math.pow(10,t||n.precision);return Math.round(e*i)/i},n.precision=8,n.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},n.serialize=function(e){return null===e||void 0===e?e:("number"==typeof e?e=""+e:"object"==typeof e&&(e=JSON.stringify({data:e})),Object.keys(n.escapingMap).reduce(function(e,t){return n.replaceAll(e,t,n.escapingMap[t])},e))},n.deserialize=function(e){if("string"!=typeof e)return e;e=Object.keys(n.escapingMap).reduce(function(e,t){return n.replaceAll(e,n.escapingMap[t],t)},e);try{e=JSON.parse(e),e=void 0!==e.data?e.data:e}catch(t){}return e},n.createSvg=function(e,t,i,r){var a;return t=t||"100%",i=i||"100%",Array.prototype.slice.call(e.querySelectorAll("svg")).filter(function(e){return e.getAttributeNS(n.namespaces.xmlns,"ct")}).forEach(function(t){e.removeChild(t)}),a=new n.Svg("svg").attr({width:t,height:i}).addClass(r).attr({style:"width: "+t+"; height: "+i+";"}),e.appendChild(a._node),a},n.normalizeData=function(e){if(e=e||{series:[],labels:[]},e.series=e.series||[],e.labels=e.labels||[],e.series.length>0&&0===e.labels.length){var t,i=n.getDataArray(e);t=i.every(function(e){return e instanceof Array})?Math.max.apply(null,i.map(function(e){return e.length})):i.length,e.labels=n.times(t).map(function(){return""})}return e},n.reverseData=function(e){e.labels.reverse(),e.series.reverse();for(var t=0;t<e.series.length;t++)"object"==typeof e.series[t]&&void 0!==e.series[t].data?e.series[t].data.reverse():e.series[t]instanceof Array&&e.series[t].reverse()},n.getDataArray=function(e,t,i){function r(e){if(!n.isFalseyButZero(e)){if((e.data||e)instanceof Array)return(e.data||e).map(r);if(e.hasOwnProperty("value"))return r(e.value);if(i){var t={};return"string"==typeof i?t[i]=n.getNumberOrUndefined(e):t.y=n.getNumberOrUndefined(e),t.x=e.hasOwnProperty("x")?n.getNumberOrUndefined(e.x):t.x,t.y=e.hasOwnProperty("y")?n.getNumberOrUndefined(e.y):t.y,t}return n.getNumberOrUndefined(e)}}return(t&&!e.reversed||!t&&e.reversed)&&(n.reverseData(e),e.reversed=!e.reversed),e.series.map(r)},n.normalizePadding=function(e,t){return t=t||0,"number"==typeof e?{top:e,right:e,bottom:e,left:e}:{top:"number"==typeof e.top?e.top:t,right:"number"==typeof e.right?e.right:t,bottom:"number"==typeof e.bottom?e.bottom:t,left:"number"==typeof e.left?e.left:t}},n.getMetaData=function(e,t){var i=e.data?e.data[t]:e[t];return i?n.serialize(i.meta):void 0},n.orderOfMagnitude=function(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)},n.projectLength=function(e,t,n){return t/n.range*e},n.getAvailableHeight=function(e,t){return Math.max((n.quantity(t.height).value||e.height())-(t.chartPadding.top+t.chartPadding.bottom)-t.axisX.offset,0)},n.getHighLow=function(e,t,i){function r(e){if(void 0!==e)if(e instanceof Array)for(var t=0;t<e.length;t++)r(e[t]);else{var n=i?+e[i]:+e;o&&n>a.high&&(a.high=n),s&&n<a.low&&(a.low=n)}}t=n.extend({},t,i?t["axis"+i.toUpperCase()]:{});var a={high:void 0===t.high?-Number.MAX_VALUE:+t.high,low:void 0===t.low?Number.MAX_VALUE:+t.low},o=void 0===t.high,s=void 0===t.low;return(o||s)&&r(e),(t.referenceValue||0===t.referenceValue)&&(a.high=Math.max(t.referenceValue,a.high),a.low=Math.min(t.referenceValue,a.low)),a.high<=a.low&&(0===a.low?a.high=1:a.low<0?a.high=0:a.high>0?a.low=0:(a.high=1,a.low=0)),a},n.isNum=function(e){return!isNaN(e)&&isFinite(e)},n.isFalseyButZero=function(e){return!e&&0!==e},n.getNumberOrUndefined=function(e){return isNaN(+e)?void 0:+e},n.getMultiValue=function(e,t){return n.isNum(e)?+e:e?e[t||"y"]||0:0},n.rho=function(e){function t(e,n){return e%n===0?n:t(n,e%n)}function n(e){return e*e+1}if(1===e)return e;var i,r=2,a=2;if(e%2===0)return 2;do r=n(r)%e,a=n(n(a))%e,i=t(Math.abs(r-a),e);while(1===i);return i},n.getBounds=function(e,t,i,r){var a,o,s,l=0,u={high:t.high,low:t.low};u.valueRange=u.high-u.low,u.oom=n.orderOfMagnitude(u.valueRange),u.step=Math.pow(10,u.oom),u.min=Math.floor(u.low/u.step)*u.step,u.max=Math.ceil(u.high/u.step)*u.step,u.range=u.max-u.min,u.numberOfSteps=Math.round(u.range/u.step);var d=n.projectLength(e,u.step,u),c=i>d,h=r?n.rho(u.range):0;if(r&&n.projectLength(e,1,u)>=i)u.step=1;else if(r&&h<u.step&&n.projectLength(e,h,u)>=i)u.step=h;else for(;;){if(c&&n.projectLength(e,u.step,u)<=i)u.step*=2;else{if(c||!(n.projectLength(e,u.step/2,u)>=i))break;if(u.step/=2,r&&u.step%1!==0){u.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}for(o=u.min,s=u.max;o+u.step<=u.low;)o+=u.step;for(;s-u.step>=u.high;)s-=u.step;for(u.min=o,u.max=s,u.range=u.max-u.min,u.values=[],a=u.min;a<=u.max;a+=u.step)u.values.push(n.roundWithPrecision(a));return u},n.polarToCartesian=function(e,t,n,i){var r=(i-90)*Math.PI/180;return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}},n.createChartRect=function(e,t,i){var r=!(!t.axisX&&!t.axisY),a=r?t.axisY.offset:0,o=r?t.axisX.offset:0,s=e.width()||n.quantity(t.width).value||0,l=e.height()||n.quantity(t.height).value||0,u=n.normalizePadding(t.chartPadding,i);s=Math.max(s,a+u.left+u.right),l=Math.max(l,o+u.top+u.bottom);var d={padding:u,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return r?("start"===t.axisX.position?(d.y2=u.top+o,d.y1=Math.max(l-u.bottom,d.y2+1)):(d.y2=u.top,d.y1=Math.max(l-u.bottom-o,d.y2+1)),"start"===t.axisY.position?(d.x1=u.left+a,d.x2=Math.max(s-u.right,d.x1+1)):(d.x1=u.left,d.x2=Math.max(s-u.right-a,d.x1+1))):(d.x1=u.left,d.x2=Math.max(s-u.right,d.x1+1),d.y2=u.top,d.y1=Math.max(l-u.bottom,d.y2+1)),d},n.createGrid=function(e,t,i,r,a,o,s,l){var u={};u[i.units.pos+"1"]=e,u[i.units.pos+"2"]=e,u[i.counterUnits.pos+"1"]=r,u[i.counterUnits.pos+"2"]=r+a;var d=o.elem("line",u,s.join(" "));l.emit("draw",n.extend({type:"grid",axis:i,index:t,group:o,element:d},u))},n.createLabel=function(e,t,i,r,a,o,s,l,u,d,c){var h,p={};if(p[a.units.pos]=e+s[a.units.pos],p[a.counterUnits.pos]=s[a.counterUnits.pos],p[a.units.len]=t,p[a.counterUnits.len]=o-10,d){var f='<span class="'+u.join(" ")+'" style="'+a.units.len+": "+Math.round(p[a.units.len])+"px; "+a.counterUnits.len+": "+Math.round(p[a.counterUnits.len])+'px">'+r[i]+"</span>";h=l.foreignObject(f,n.extend({style:"overflow: visible;"},p))}else h=l.elem("text",p,u.join(" ")).text(r[i]);c.emit("draw",n.extend({type:"label",axis:a,index:i,group:l,element:h,text:r[i]},p))},n.getSeriesOption=function(e,t,n){if(e.name&&t.series&&t.series[e.name]){var i=t.series[e.name];return i.hasOwnProperty(n)?i[n]:t[n]}return t[n]},n.optionsProvider=function(t,i,r){function a(t){var a=s;if(s=n.extend({},u),i)for(l=0;l<i.length;l++){var o=e.matchMedia(i[l][0]);o.matches&&(s=n.extend(s,i[l][1]))}r&&!t&&r.emit("optionsChanged",{previousOptions:a,currentOptions:s})}function o(){d.forEach(function(e){e.removeListener(a)})}var s,l,u=n.extend({},t),d=[];if(!e.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(i)for(l=0;l<i.length;l++){var c=e.matchMedia(i[l][0]);c.addListener(a),d.push(c)}return a(!0),{removeMediaQueryListeners:o,getCurrentOptions:function(){return n.extend({},s)}}}}(window,document,e),function(e,t,n){"use strict";n.Interpolation={},n.Interpolation.none=function(e){var t={fillHoles:!1};return e=n.extend({},t,e),function(t,i){for(var r=new n.Svg.Path,a=!0,o=0;o<t.length;o+=2){var s=t[o],l=t[o+1],u=i[o/2];void 0!==u.value?(a?r.move(s,l,!1,u):r.line(s,l,!1,u),a=!1):e.fillHoles||(a=!0)}return r}},n.Interpolation.simple=function(e){var t={divisor:2,fillHoles:!1};e=n.extend({},t,e);var i=1/Math.max(1,e.divisor);return function(t,r){for(var a,o,s,l=new n.Svg.Path,u=0;u<t.length;u+=2){var d=t[u],c=t[u+1],h=(d-a)*i,p=r[u/2];void 0!==p.value?(void 0===s?l.move(d,c,!1,p):l.curve(a+h,o,d-h,c,d,c,!1,p),a=d,o=c,s=p):e.fillHoles||(a=d=s=void 0)}return l}},n.Interpolation.cardinal=function(e){function t(t,n){for(var i=[],r=!0,a=0;a<t.length;a+=2)void 0===n[a/2].value?e.fillHoles||(r=!0):(r&&(i.push({pathCoordinates:[],valueData:[]}),r=!1),i[i.length-1].pathCoordinates.push(t[a],t[a+1]),i[i.length-1].valueData.push(n[a/2]));return i}var i={tension:1,fillHoles:!1};e=n.extend({},i,e);var r=Math.min(1,Math.max(0,e.tension)),a=1-r;return function o(e,i){var s=t(e,i);if(s.length){if(s.length>1){var l=[];return s.forEach(function(e){l.push(o(e.pathCoordinates,e.valueData))}),n.Svg.Path.join(l)}if(e=s[0].pathCoordinates,i=s[0].valueData,e.length<=4)return n.Interpolation.none()(e,i);for(var u,d=(new n.Svg.Path).move(e[0],e[1],!1,i[0]),c=0,h=e.length;h-2*!u>c;c+=2){var p=[{x:+e[c-2],y:+e[c-1]},{x:+e[c],y:+e[c+1]},{x:+e[c+2],y:+e[c+3]},{x:+e[c+4],y:+e[c+5]}];u?c?h-4===c?p[3]={x:+e[0],y:+e[1]}:h-2===c&&(p[2]={x:+e[0],y:+e[1]},p[3]={x:+e[2],y:+e[3]}):p[0]={x:+e[h-2],y:+e[h-1]}:h-4===c?p[3]=p[2]:c||(p[0]={x:+e[c],y:+e[c+1]}),d.curve(r*(-p[0].x+6*p[1].x+p[2].x)/6+a*p[2].x,r*(-p[0].y+6*p[1].y+p[2].y)/6+a*p[2].y,r*(p[1].x+6*p[2].x-p[3].x)/6+a*p[2].x,r*(p[1].y+6*p[2].y-p[3].y)/6+a*p[2].y,p[2].x,p[2].y,!1,i[(c+2)/2])}return d}return n.Interpolation.none()([])}},n.Interpolation.step=function(e){var t={postpone:!0,fillHoles:!1};return e=n.extend({},t,e),function(t,i){for(var r,a,o,s=new n.Svg.Path,l=0;l<t.length;l+=2){var u=t[l],d=t[l+1],c=i[l/2];void 0!==c.value?(void 0===o?s.move(u,d,!1,c):(e.postpone?s.line(u,a,!1,o):s.line(r,d,!1,c),s.line(u,d,!1,c)),r=u,a=d,o=c):e.fillHoles||(r=a=o=void 0)}return s}}}(window,document,e),function(e,t,n){"use strict";n.EventEmitter=function(){function e(e,t){i[e]=i[e]||[],i[e].push(t)}function t(e,t){i[e]&&(t?(i[e].splice(i[e].indexOf(t),1),0===i[e].length&&delete i[e]):delete i[e])}function n(e,t){i[e]&&i[e].forEach(function(e){e(t)}),i["*"]&&i["*"].forEach(function(n){n(e,t)})}var i=[];return{addEventHandler:e,removeEventHandler:t,emit:n}}}(window,document,e),function(e,t,n){"use strict";function i(e){var t=[];if(e.length)for(var n=0;n<e.length;n++)t.push(e[n]);return t}function r(e,t){var i=t||this.prototype||n.Class,r=Object.create(i);n.Class.cloneDefinitions(r,e);var a=function(){var e,t=r.constructor||function(){};return e=this===n?Object.create(r):this,t.apply(e,Array.prototype.slice.call(arguments,0)),e};return a.prototype=r,a["super"]=i,a.extend=this.extend,a}function a(){var e=i(arguments),t=e[0];return e.splice(1,e.length-1).forEach(function(e){Object.getOwnPropertyNames(e).forEach(function(n){delete t[n],Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}),t}n.Class={extend:r,cloneDefinitions:a}}(window,document,e),function(e,t,n){"use strict";function i(e,t,i){return e&&(this.data=e,this.eventEmitter.emit("data",{type:"update",data:this.data})),t&&(this.options=n.extend({},i?this.options:this.defaultOptions,t),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=n.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this}function r(){return this.initializeTimeoutId?e.clearTimeout(this.initializeTimeoutId):(e.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this}function a(e,t){return this.eventEmitter.addEventHandler(e,t),this}function o(e,t){return this.eventEmitter.removeEventHandler(e,t),this}function s(){e.addEventListener("resize",this.resizeListener),this.optionsProvider=n.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(e){e instanceof Array?e[0](this,e[1]):e(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}function l(e,t,i,r,a){this.container=n.querySelector(e),this.data=t,this.defaultOptions=i,this.options=r,this.responsiveOptions=a,this.eventEmitter=n.EventEmitter(),this.supportsForeignObject=n.Svg.isSupported("Extensibility"),this.supportsAnimations=n.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(s.bind(this),0)}n.Base=n.Class.extend({constructor:l,optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:i,detach:r,on:a,off:o,version:n.version,supportsForeignObject:!1})}(window,document,e),function(e,t,n){"use strict";function i(e,i,r,a,o){e instanceof Element?this._node=e:(this._node=t.createElementNS(n.namespaces.svg,e),"svg"===e&&this.attr({"xmlns:ct":n.namespaces.ct})),i&&this.attr(i),r&&this.addClass(r),a&&(o&&a._node.firstChild?a._node.insertBefore(this._node,a._node.firstChild):a._node.appendChild(this._node))}function r(e,t){return"string"==typeof e?t?this._node.getAttributeNS(t,e):this._node.getAttribute(e):(Object.keys(e).forEach(function(t){if(void 0!==e[t])if(-1!==t.indexOf(":")){var i=t.split(":");this._node.setAttributeNS(n.namespaces[i[0]],t,e[t])}else this._node.setAttribute(t,e[t])}.bind(this)),this)}function a(e,t,i,r){return new n.Svg(e,t,i,this,r)}function o(){return this._node.parentNode instanceof SVGElement?new n.Svg(this._node.parentNode):null}function s(){for(var e=this._node;"svg"!==e.nodeName;)e=e.parentNode;return new n.Svg(e)}function l(e){var t=this._node.querySelector(e);return t?new n.Svg(t):null}function u(e){var t=this._node.querySelectorAll(e);return t.length?new n.Svg.List(t):null}function d(e,i,r,a){if("string"==typeof e){var o=t.createElement("div");o.innerHTML=e,e=o.firstChild}e.setAttribute("xmlns",n.namespaces.xmlns);var s=this.elem("foreignObject",i,r,a);return s._node.appendChild(e),s}function c(e){return this._node.appendChild(t.createTextNode(e)),this}function h(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}function p(){return this._node.parentNode.removeChild(this._node),this.parent()}function f(e){return this._node.parentNode.replaceChild(e._node,this._node),e}function m(e,t){return t&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this}function g(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]}function v(e){return this._node.setAttribute("class",this.classes(this._node).concat(e.trim().split(/\s+/)).filter(function(e,t,n){return n.indexOf(e)===t}).join(" ")),this}function y(e){var t=e.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(e){return-1===t.indexOf(e)}).join(" ")),this}function _(){return this._node.setAttribute("class",""),this}function D(){return this._node.getBoundingClientRect().height}function w(){return this._node.getBoundingClientRect().width}function b(e,t,i){return void 0===t&&(t=!0),Object.keys(e).forEach(function(r){function a(e,t){var a,o,s,l={};e.easing&&(s=e.easing instanceof Array?e.easing:n.Svg.Easing[e.easing],delete e.easing),e.begin=n.ensureUnit(e.begin,"ms"),e.dur=n.ensureUnit(e.dur,"ms"),s&&(e.calcMode="spline",e.keySplines=s.join(" "),e.keyTimes="0;1"),t&&(e.fill="freeze",l[r]=e.from,this.attr(l),o=n.quantity(e.begin||0).value,e.begin="indefinite"),a=this.elem("animate",n.extend({attributeName:r},e)),t&&setTimeout(function(){try{a._node.beginElement()}catch(t){l[r]=e.to,this.attr(l),a.remove()}}.bind(this),o),i&&a._node.addEventListener("beginEvent",function(){i.emit("animationBegin",{element:this,animate:a._node,params:e})}.bind(this)),a._node.addEventListener("endEvent",function(){i&&i.emit("animationEnd",{element:this,animate:a._node,params:e}),t&&(l[r]=e.to,this.attr(l),a.remove())}.bind(this))}e[r]instanceof Array?e[r].forEach(function(e){a.bind(this)(e,!1)}.bind(this)):a.bind(this)(e[r],t)}.bind(this)),this}function L(e){var t=this;this.svgElements=[];for(var i=0;i<e.length;i++)this.svgElements.push(new n.Svg(e[i]));Object.keys(n.Svg.prototype).filter(function(e){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(e)}).forEach(function(e){t[e]=function(){var i=Array.prototype.slice.call(arguments,0);return t.svgElements.forEach(function(t){n.Svg.prototype[e].apply(t,i)}),t}})}n.Svg=n.Class.extend({constructor:i,attr:r,elem:a,parent:o,root:s,querySelector:l,querySelectorAll:u,foreignObject:d,text:c,empty:h,remove:p,replace:f,append:m,classes:g,addClass:v,removeClass:y,removeAllClasses:_,height:D,width:w,animate:b}),n.Svg.isSupported=function(e){return t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+e,"1.1")};var M={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};n.Svg.Easing=M,n.Svg.List=n.Class.extend({constructor:L})}(window,document,e),function(e,t,n){"use strict";function i(e,t,i,r,a,o){var s=n.extend({command:a?e.toLowerCase():e.toUpperCase()},t,o?{data:o}:{});i.splice(r,0,s)}function r(e,t){e.forEach(function(n,i){D[n.command.toLowerCase()].forEach(function(r,a){t(n,r,i,a,e)})})}function a(e,t){this.pathElements=[],this.pos=0,this.close=e,this.options=n.extend({},w,t)}function o(e){return void 0!==e?(this.pos=Math.max(0,Math.min(this.pathElements.length,e)),this):this.pos}function s(e){return this.pathElements.splice(this.pos,e),this}function l(e,t,n,r){return i("M",{x:+e,y:+t},this.pathElements,this.pos++,n,r),this}function u(e,t,n,r){return i("L",{x:+e,y:+t},this.pathElements,this.pos++,n,r),this}function d(e,t,n,r,a,o,s,l){return i("C",{x1:+e,y1:+t,x2:+n,y2:+r,x:+a,y:+o},this.pathElements,this.pos++,s,l),this}function c(e,t,n,r,a,o,s,l,u){return i("A",{rx:+e,ry:+t,xAr:+n,lAf:+r,sf:+a,x:+o,y:+s},this.pathElements,this.pos++,l,u),this}function h(e){var t=e.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(e,t){return t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e},[]);"Z"===t[t.length-1][0].toUpperCase()&&t.pop();var i=t.map(function(e){var t=e.shift(),i=D[t.toLowerCase()];return n.extend({command:t},i.reduce(function(t,n,i){return t[n]=+e[i],t},{}))}),r=[this.pos,0];return Array.prototype.push.apply(r,i),Array.prototype.splice.apply(this.pathElements,r),this.pos+=i.length,this}function p(){var e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(t,n){var i=D[n.command.toLowerCase()].map(function(t){return this.options.accuracy?Math.round(n[t]*e)/e:n[t]}.bind(this));return t+n.command+i.join(",")}.bind(this),"")+(this.close?"Z":"")}function f(e,t){return r(this.pathElements,function(n,i){n[i]*="x"===i[0]?e:t}),this}function m(e,t){return r(this.pathElements,function(n,i){n[i]+="x"===i[0]?e:t}),this}function g(e){return r(this.pathElements,function(t,n,i,r,a){var o=e(t,n,i,r,a);(o||0===o)&&(t[n]=o)}),this}function v(e){var t=new n.Svg.Path(e||this.close);return t.pos=this.pos,t.pathElements=this.pathElements.slice().map(function(e){return n.extend({},e)}),t.options=n.extend({},this.options),t}function y(e){var t=[new n.Svg.Path];return this.pathElements.forEach(function(i){i.command===e.toUpperCase()&&0!==t[t.length-1].pathElements.length&&t.push(new n.Svg.Path),t[t.length-1].pathElements.push(i)}),t}function _(e,t,i){for(var r=new n.Svg.Path(t,i),a=0;a<e.length;a++)for(var o=e[a],s=0;s<o.pathElements.length;s++)r.pathElements.push(o.pathElements[s]);return r}var D={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},w={accuracy:3};n.Svg.Path=n.Class.extend({constructor:a,position:o,remove:s,move:l,line:u,curve:d,arc:c,scale:f,translate:m,transform:g,parse:h,stringify:p,clone:v,splitByCommand:y}),n.Svg.Path.elementDescriptions=D,n.Svg.Path.join=_}(window,document,e),function(e,t,n){"use strict";function i(e,t,n,i){this.units=e,this.counterUnits=e===a.x?a.y:a.x,this.chartRect=t,this.axisLength=t[e.rectEnd]-t[e.rectStart],this.gridOffset=t[e.rectOffset],this.ticks=n,this.options=i}function r(e,t,i,r,a){var o=r["axis"+this.units.pos.toUpperCase()],s=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(o.labelInterpolationFnc);s.forEach(function(u,d){var c,h={x:0,y:0};c=s[d+1]?s[d+1]-u:Math.max(this.axisLength-u,30),n.isFalseyButZero(l[d])&&""!==l[d]||("x"===this.units.pos?(u=this.chartRect.x1+u,h.x=r.axisX.labelOffset.x,"start"===r.axisX.position?h.y=this.chartRect.padding.top+r.axisX.labelOffset.y+(i?5:20):h.y=this.chartRect.y1+r.axisX.labelOffset.y+(i?5:20)):(u=this.chartRect.y1-u,h.y=r.axisY.labelOffset.y-(i?c:0),"start"===r.axisY.position?h.x=i?this.chartRect.padding.left+r.axisY.labelOffset.x:this.chartRect.x1-10:h.x=this.chartRect.x2+r.axisY.labelOffset.x+10),o.showGrid&&n.createGrid(u,d,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[r.classNames.grid,r.classNames[this.units.dir]],a),o.showLabel&&n.createLabel(u,c,d,l,this,o.offset,h,t,[r.classNames.label,r.classNames[this.units.dir],r.classNames[o.position]],i,a))}.bind(this))}var a={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};n.Axis=n.Class.extend({constructor:i,createGridAndLabels:r,projectValue:function(e,t,n){throw new Error("Base axis can't be instantiated!")}}),n.Axis.units=a}(window,document,e),function(e,t,n){"use strict";function i(e,t,i,r){var a=r.highLow||n.getHighLow(t.normalized,r,e.pos);this.bounds=n.getBounds(i[e.rectEnd]-i[e.rectStart],a,r.scaleMinSpace||20,r.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},n.AutoScaleAxis["super"].constructor.call(this,e,i,this.bounds.values,r)}function r(e){return this.axisLength*(+n.getMultiValue(e,this.units.pos)-this.bounds.min)/this.bounds.range}n.AutoScaleAxis=n.Axis.extend({constructor:i,projectValue:r})}(window,document,e),function(e,t,n){"use strict";function i(e,t,i,r){var a=r.highLow||n.getHighLow(t.normalized,r,e.pos);this.divisor=r.divisor||1,this.ticks=r.ticks||n.times(this.divisor).map(function(e,t){return a.low+(a.high-a.low)/this.divisor*t}.bind(this)),this.ticks.sort(function(e,t){return e-t}),this.range={min:a.low,max:a.high},n.FixedScaleAxis["super"].constructor.call(this,e,i,this.ticks,r),this.stepLength=this.axisLength/this.divisor}function r(e){return this.axisLength*(+n.getMultiValue(e,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}n.FixedScaleAxis=n.Axis.extend({constructor:i,projectValue:r})}(window,document,e),function(e,t,n){"use strict";function i(e,t,i,r){n.StepAxis["super"].constructor.call(this,e,i,r.ticks,r),this.stepLength=this.axisLength/(r.ticks.length-(r.stretch?1:0))}function r(e,t){return this.stepLength*t}n.StepAxis=n.Axis.extend({constructor:i,projectValue:r})}(window,document,e),function(e,t,n){"use strict";function i(e){this.data=n.normalizeData(this.data);var t={raw:this.data,normalized:n.getDataArray(this.data,e.reverseData,!0)};this.svg=n.createSvg(this.container,e.width,e.height,e.classNames.chart);var i,r,o=this.svg.elem("g").addClass(e.classNames.gridGroup),s=this.svg.elem("g"),l=this.svg.elem("g").addClass(e.classNames.labelGroup),u=n.createChartRect(this.svg,e,a.padding);i=void 0===e.axisX.type?new n.StepAxis(n.Axis.units.x,t,u,n.extend({},e.axisX,{ticks:t.raw.labels,stretch:e.fullWidth})):e.axisX.type.call(n,n.Axis.units.x,t,u,e.axisX),r=void 0===e.axisY.type?new n.AutoScaleAxis(n.Axis.units.y,t,u,n.extend({},e.axisY,{high:n.isNum(e.high)?e.high:e.axisY.high,low:n.isNum(e.low)?e.low:e.axisY.low})):e.axisY.type.call(n,n.Axis.units.y,t,u,e.axisY),i.createGridAndLabels(o,l,this.supportsForeignObject,e,this.eventEmitter),r.createGridAndLabels(o,l,this.supportsForeignObject,e,this.eventEmitter),t.raw.series.forEach(function(a,o){var l=s.elem("g");
l.attr({"ct:series-name":a.name,"ct:meta":n.serialize(a.meta)}),l.addClass([e.classNames.series,a.className||e.classNames.series+"-"+n.alphaNumerate(o)].join(" "));var d=[],c=[];t.normalized[o].forEach(function(e,s){var l={x:u.x1+i.projectValue(e,s,t.normalized[o]),y:u.y1-r.projectValue(e,s,t.normalized[o])};d.push(l.x,l.y),c.push({value:e,valueIndex:s,meta:n.getMetaData(a,s)})}.bind(this));var h={lineSmooth:n.getSeriesOption(a,e,"lineSmooth"),showPoint:n.getSeriesOption(a,e,"showPoint"),showLine:n.getSeriesOption(a,e,"showLine"),showArea:n.getSeriesOption(a,e,"showArea"),areaBase:n.getSeriesOption(a,e,"areaBase")},p="function"==typeof h.lineSmooth?h.lineSmooth:h.lineSmooth?n.Interpolation.cardinal():n.Interpolation.none(),f=p(d,c);if(h.showPoint&&f.pathElements.forEach(function(t){var s=l.elem("line",{x1:t.x,y1:t.y,x2:t.x+.01,y2:t.y},e.classNames.point).attr({"ct:value":[t.data.value.x,t.data.value.y].filter(n.isNum).join(","),"ct:meta":t.data.meta});this.eventEmitter.emit("draw",{type:"point",value:t.data.value,index:t.data.valueIndex,meta:t.data.meta,series:a,seriesIndex:o,axisX:i,axisY:r,group:l,element:s,x:t.x,y:t.y})}.bind(this)),h.showLine){var m=l.elem("path",{d:f.stringify()},e.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:t.normalized[o],path:f.clone(),chartRect:u,index:o,series:a,seriesIndex:o,axisX:i,axisY:r,group:l,element:m})}if(h.showArea&&r.range){var g=Math.max(Math.min(h.areaBase,r.range.max),r.range.min),v=u.y1-r.projectValue(g);f.splitByCommand("M").filter(function(e){return e.pathElements.length>1}).map(function(e){var t=e.pathElements[0],n=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,v).line(t.x,t.y).position(e.pathElements.length+1).line(n.x,v)}).forEach(function(n){var s=l.elem("path",{d:n.stringify()},e.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:t.normalized[o],path:n.clone(),series:a,seriesIndex:o,axisX:i,axisY:r,chartRect:u,index:o,group:l,element:s})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:r.bounds,chartRect:u,axisX:i,axisY:r,svg:this.svg,options:e})}function r(e,t,i,r){n.Line["super"].constructor.call(this,e,t,a,n.extend({},a,i),r)}var a={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};n.Line=n.Base.extend({constructor:r,createChart:i})}(window,document,e),function(e,t,n){"use strict";function i(e){this.data=n.normalizeData(this.data);var t,i={raw:this.data,normalized:e.distributeSeries?n.getDataArray(this.data,e.reverseData,e.horizontalBars?"x":"y").map(function(e){return[e]}):n.getDataArray(this.data,e.reverseData,e.horizontalBars?"x":"y")};this.svg=n.createSvg(this.container,e.width,e.height,e.classNames.chart+(e.horizontalBars?" "+e.classNames.horizontalBars:""));var r=this.svg.elem("g").addClass(e.classNames.gridGroup),o=this.svg.elem("g"),s=this.svg.elem("g").addClass(e.classNames.labelGroup);if(e.stackBars&&0!==i.normalized.length){var l=n.serialMap(i.normalized,function(){return Array.prototype.slice.call(arguments).map(function(e){return e}).reduce(function(e,t){return{x:e.x+(t&&t.x)||0,y:e.y+(t&&t.y)||0}},{x:0,y:0})});t=n.getHighLow([l],n.extend({},e,{referenceValue:0}),e.horizontalBars?"x":"y")}else t=n.getHighLow(i.normalized,n.extend({},e,{referenceValue:0}),e.horizontalBars?"x":"y");t.high=+e.high||(0===e.high?0:t.high),t.low=+e.low||(0===e.low?0:t.low);var u,d,c,h,p,f=n.createChartRect(this.svg,e,a.padding);d=e.distributeSeries&&e.stackBars?i.raw.labels.slice(0,1):i.raw.labels,e.horizontalBars?(u=h=void 0===e.axisX.type?new n.AutoScaleAxis(n.Axis.units.x,i,f,n.extend({},e.axisX,{highLow:t,referenceValue:0})):e.axisX.type.call(n,n.Axis.units.x,i,f,n.extend({},e.axisX,{highLow:t,referenceValue:0})),c=p=void 0===e.axisY.type?new n.StepAxis(n.Axis.units.y,i,f,{ticks:d}):e.axisY.type.call(n,n.Axis.units.y,i,f,e.axisY)):(c=h=void 0===e.axisX.type?new n.StepAxis(n.Axis.units.x,i,f,{ticks:d}):e.axisX.type.call(n,n.Axis.units.x,i,f,e.axisX),u=p=void 0===e.axisY.type?new n.AutoScaleAxis(n.Axis.units.y,i,f,n.extend({},e.axisY,{highLow:t,referenceValue:0})):e.axisY.type.call(n,n.Axis.units.y,i,f,n.extend({},e.axisY,{highLow:t,referenceValue:0})));var m=e.horizontalBars?f.x1+u.projectValue(0):f.y1-u.projectValue(0),g=[];c.createGridAndLabels(r,s,this.supportsForeignObject,e,this.eventEmitter),u.createGridAndLabels(r,s,this.supportsForeignObject,e,this.eventEmitter),i.raw.series.forEach(function(t,r){var a,s,l=r-(i.raw.series.length-1)/2;a=e.distributeSeries&&!e.stackBars?c.axisLength/i.normalized.length/2:e.distributeSeries&&e.stackBars?c.axisLength/2:c.axisLength/i.normalized[r].length/2,s=o.elem("g"),s.attr({"ct:series-name":t.name,"ct:meta":n.serialize(t.meta)}),s.addClass([e.classNames.series,t.className||e.classNames.series+"-"+n.alphaNumerate(r)].join(" ")),i.normalized[r].forEach(function(o,d){var v,y,_,D;if(D=e.distributeSeries&&!e.stackBars?r:e.distributeSeries&&e.stackBars?0:d,v=e.horizontalBars?{x:f.x1+u.projectValue(o&&o.x?o.x:0,d,i.normalized[r]),y:f.y1-c.projectValue(o&&o.y?o.y:0,D,i.normalized[r])}:{x:f.x1+c.projectValue(o&&o.x?o.x:0,D,i.normalized[r]),y:f.y1-u.projectValue(o&&o.y?o.y:0,d,i.normalized[r])},c instanceof n.StepAxis&&(c.options.stretch||(v[c.units.pos]+=a*(e.horizontalBars?-1:1)),v[c.units.pos]+=e.stackBars||e.distributeSeries?0:l*e.seriesBarDistance*(e.horizontalBars?-1:1)),_=g[d]||m,g[d]=_-(m-v[c.counterUnits.pos]),void 0!==o){var w={};w[c.units.pos+"1"]=v[c.units.pos],w[c.units.pos+"2"]=v[c.units.pos],!e.stackBars||"accumulate"!==e.stackMode&&e.stackMode?(w[c.counterUnits.pos+"1"]=m,w[c.counterUnits.pos+"2"]=v[c.counterUnits.pos]):(w[c.counterUnits.pos+"1"]=_,w[c.counterUnits.pos+"2"]=g[d]),w.x1=Math.min(Math.max(w.x1,f.x1),f.x2),w.x2=Math.min(Math.max(w.x2,f.x1),f.x2),w.y1=Math.min(Math.max(w.y1,f.y2),f.y1),w.y2=Math.min(Math.max(w.y2,f.y2),f.y1),y=s.elem("line",w,e.classNames.bar).attr({"ct:value":[o.x,o.y].filter(n.isNum).join(","),"ct:meta":n.getMetaData(t,d)}),this.eventEmitter.emit("draw",n.extend({type:"bar",value:o,index:d,meta:n.getMetaData(t,d),series:t,seriesIndex:r,axisX:h,axisY:p,chartRect:f,group:s,element:y},w))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:u.bounds,chartRect:f,axisX:h,axisY:p,svg:this.svg,options:e})}function r(e,t,i,r){n.Bar["super"].constructor.call(this,e,t,a,n.extend({},a,i),r)}var a={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};n.Bar=n.Base.extend({constructor:r,createChart:i})}(window,document,e),function(e,t,n){"use strict";function i(e,t,n){var i=t.x>e.x;return i&&"explode"===n||!i&&"implode"===n?"start":i&&"implode"===n||!i&&"explode"===n?"end":"middle"}function r(e){this.data=n.normalizeData(this.data);var t,r,a,s,l,u=[],d=e.startAngle,c=n.getDataArray(this.data,e.reverseData);this.svg=n.createSvg(this.container,e.width,e.height,e.donut?e.classNames.chartDonut:e.classNames.chartPie),r=n.createChartRect(this.svg,e,o.padding),a=Math.min(r.width()/2,r.height()/2),l=e.total||c.reduce(function(e,t){return e+t},0);var h=n.quantity(e.donutWidth);"%"===h.unit&&(h.value*=a/100),a-=e.donut?h.value/2:0,s="outside"===e.labelPosition||e.donut?a:"center"===e.labelPosition?0:a/2,s+=e.labelOffset;var p={x:r.x1+r.width()/2,y:r.y2+r.height()/2},f=1===this.data.series.filter(function(e){return e.hasOwnProperty("value")?0!==e.value:0!==e}).length;e.showLabel&&(t=this.svg.elem("g",null,null,!0));for(var m=0;m<this.data.series.length;m++)if(0!==c[m]||!e.ignoreEmptyValues){var g=this.data.series[m];u[m]=this.svg.elem("g",null,null,!0),u[m].attr({"ct:series-name":g.name}),u[m].addClass([e.classNames.series,g.className||e.classNames.series+"-"+n.alphaNumerate(m)].join(" "));var v=d+c[m]/l*360,y=Math.max(0,d-(0===m||f?0:.2));v-y>=359.99&&(v=y+359.99);var _=n.polarToCartesian(p.x,p.y,a,y),D=n.polarToCartesian(p.x,p.y,a,v),w=new n.Svg.Path(!e.donut).move(D.x,D.y).arc(a,a,0,v-d>180,0,_.x,_.y);e.donut||w.line(p.x,p.y);var b=u[m].elem("path",{d:w.stringify()},e.donut?e.classNames.sliceDonut:e.classNames.slicePie);if(b.attr({"ct:value":c[m],"ct:meta":n.serialize(g.meta)}),e.donut&&b.attr({style:"stroke-width: "+h.value+"px"}),this.eventEmitter.emit("draw",{type:"slice",value:c[m],totalDataSum:l,index:m,meta:g.meta,series:g,group:u[m],element:b,path:w.clone(),center:p,radius:a,startAngle:d,endAngle:v}),e.showLabel){var L=n.polarToCartesian(p.x,p.y,s,d+(v-d)/2),M=e.labelInterpolationFnc(this.data.labels&&!n.isFalseyButZero(this.data.labels[m])?this.data.labels[m]:c[m],m);if(M||0===M){var C=t.elem("text",{dx:L.x,dy:L.y,"text-anchor":i(p,L,e.labelDirection)},e.classNames.label).text(""+M);this.eventEmitter.emit("draw",{type:"label",index:m,group:t,element:C,text:""+M,x:L.x,y:L.y})}}d=v}this.eventEmitter.emit("created",{chartRect:r,svg:this.svg,options:e})}function a(e,t,i,r){n.Pie["super"].constructor.call(this,e,t,o,n.extend({},o,i),r)}var o={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:n.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};n.Pie=n.Base.extend({constructor:a,createChart:r,determineAnchorPosition:i})}(window,document,e),e})},,,,,function(e,t,n){var i,r;/**!
* Sortable
* @author RubaXa <trash@rubaxa.org>
* @license MIT
*/
!function(a){"use strict";i=a,r="function"==typeof i?i.call(t,n,t,e):i,!(void 0!==r&&(e.exports=r))}(function(){"use strict";function e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=v({},t),e[P]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1};for(var i in n)!(i in t)&&(t[i]=n[i]);V(t);for(var a in this)"_"===a.charAt(0)&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:W,r(e,"mousedown",this._onTapStart),r(e,"touchstart",this._onTapStart),this.nativeDraggable&&(r(e,"dragover",this),r(e,"dragenter",this)),U.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function t(e){w&&w.state!==e&&(s(w,"display",e?"none":""),!e&&w.state&&b.insertBefore(w,y),w.state=e)}function n(e,t,n){if(e){n=n||j,t=t.split(".");var i=t.shift().toUpperCase(),r=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");do if(">*"===i&&e.parentNode===n||(""===i||e.nodeName.toUpperCase()==i)&&(!t.length||((" "+e.className+" ").match(r)||[]).length==t.length))return e;while(e!==n&&(e=e.parentNode))}return null}function i(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}function r(e,t,n){e.addEventListener(t,n,!1)}function a(e,t,n){e.removeEventListener(t,n,!1)}function o(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(B," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(B," ")}}function s(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return j.defaultView&&j.defaultView.getComputedStyle?n=j.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function l(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,a=i.length;if(n)for(;a>r;r++)n(i[r],r);return i}return[]}function u(e,t,n,i,r,a,o){var s=j.createEvent("Event"),l=(e||t[P]).options,u="on"+n.charAt(0).toUpperCase()+n.substr(1);s.initEvent(n,!0,!0),s.to=t,s.from=r||t,s.item=i||t,s.clone=w,s.oldIndex=a,s.newIndex=o,t.dispatchEvent(s),l[u]&&l[u].call(e,s)}function d(e,t,n,i,r,a){var o,s,l=e[P],u=l.options.onMove;return o=j.createEvent("Event"),o.initEvent("move",!0,!0),o.to=t,o.from=e,o.dragged=n,o.draggedRect=i,o.related=r||t,o.relatedRect=a||t.getBoundingClientRect(),e.dispatchEvent(o),u&&(s=u.call(l,o)),s}function c(e){e.draggable=!1}function h(){R=!1}function p(e,t){var n=e.lastElementChild,i=n.getBoundingClientRect();return(t.clientY-(i.top+i.height)>5||t.clientX-(i.right+i.width)>5)&&n}function f(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function m(e){var t=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"!==e.nodeName.toUpperCase()&&t++;return t}function g(e,t){var n,i;return function(){void 0===n&&(n=arguments,i=this,setTimeout(function(){1===n.length?e.call(i,n[0]):e.apply(i,n),n=void 0},t))}}function v(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var y,_,D,w,b,L,M,C,x,k,T,S,E,Y,A,F,O,I={},B=/\s+/g,P="Sortable"+(new Date).getTime(),N=window,j=N.document,z=N.parseInt,W=!!("draggable"in j.createElement("div")),H=function(e){return e=j.createElement("x"),e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),R=!1,$=Math.abs,U=([].slice,[]),G=g(function(e,t,n){if(n&&t.scroll){var i,r,a,o,s=t.scrollSensitivity,l=t.scrollSpeed,u=e.clientX,d=e.clientY,c=window.innerWidth,h=window.innerHeight;if(C!==n&&(M=t.scroll,C=n,M===!0)){M=n;do if(M.offsetWidth<M.scrollWidth||M.offsetHeight<M.scrollHeight)break;while(M=M.parentNode)}M&&(i=M,r=M.getBoundingClientRect(),a=($(r.right-u)<=s)-($(r.left-u)<=s),o=($(r.bottom-d)<=s)-($(r.top-d)<=s)),a||o||(a=(s>=c-u)-(s>=u),o=(s>=h-d)-(s>=d),(a||o)&&(i=N)),I.vx===a&&I.vy===o&&I.el===i||(I.el=i,I.vx=a,I.vy=o,clearInterval(I.pid),i&&(I.pid=setInterval(function(){i===N?N.scrollTo(N.pageXOffset+a*l,N.pageYOffset+o*l):(o&&(i.scrollTop+=o*l),a&&(i.scrollLeft+=a*l))},24)))}},30),V=function(e){var t=e.group;t&&"object"==typeof t||(t=e.group={name:t}),["pull","put"].forEach(function(e){e in t||(t[e]=!0)}),e.groups=" "+t.name+(t.put.join?" "+t.put.join(" "):"")+" "};return e.prototype={constructor:e,_onTapStart:function(e){var t=this,i=this.el,r=this.options,a=e.type,o=e.touches&&e.touches[0],s=(o||e).target,l=s,d=r.filter;if(!("mousedown"===a&&0!==e.button||r.disabled)&&(s=n(s,r.draggable,i))){if(S=m(s),"function"==typeof d){if(d.call(this,e,s,this))return u(t,l,"filter",s,i,S),void e.preventDefault()}else if(d&&(d=d.split(",").some(function(e){return e=n(l,e.trim(),i),e?(u(t,e,"filter",s,i,S),!0):void 0})))return void e.preventDefault();r.handle&&!n(l,r.handle,i)||this._prepareDragStart(e,o,s)}},_prepareDragStart:function(e,t,n){var i,a=this,s=a.el,u=a.options,d=s.ownerDocument;n&&!y&&n.parentNode===s&&(A=e,b=s,y=n,_=y.parentNode,L=y.nextSibling,Y=u.group,i=function(){a._disableDelayedDrag(),y.draggable=!0,o(y,a.options.chosenClass,!0),a._triggerDragStart(t)},u.ignore.split(",").forEach(function(e){l(y,e.trim(),c)}),r(d,"mouseup",a._onDrop),r(d,"touchend",a._onDrop),r(d,"touchcancel",a._onDrop),u.delay?(r(d,"mouseup",a._disableDelayedDrag),r(d,"touchend",a._disableDelayedDrag),r(d,"touchcancel",a._disableDelayedDrag),r(d,"mousemove",a._disableDelayedDrag),r(d,"touchmove",a._disableDelayedDrag),a._dragStartTimer=setTimeout(i,u.delay)):i())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),a(e,"mouseup",this._disableDelayedDrag),a(e,"touchend",this._disableDelayedDrag),a(e,"touchcancel",this._disableDelayedDrag),a(e,"mousemove",this._disableDelayedDrag),a(e,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(e){e?(A={target:y,clientX:e.clientX,clientY:e.clientY},this._onDragStart(A,"touch")):this.nativeDraggable?(r(y,"dragend",this),r(b,"dragstart",this._onDragStart)):this._onDragStart(A,!0);try{j.selection?j.selection.empty():window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(){b&&y&&(o(y,this.options.ghostClass,!0),e.active=this,u(this,b,"start",y,b,S))},_emulateDragOver:function(){if(F){if(this._lastX===F.clientX&&this._lastY===F.clientY)return;this._lastX=F.clientX,this._lastY=F.clientY,H||s(D,"display","none");var e=j.elementFromPoint(F.clientX,F.clientY),t=e,n=" "+this.options.group.name,i=U.length;if(t)do{if(t[P]&&t[P].options.groups.indexOf(n)>-1){for(;i--;)U[i]({clientX:F.clientX,clientY:F.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);H||s(D,"display","")}},_onTouchMove:function(t){if(A){e.active||this._dragStarted(),this._appendGhost();var n=t.touches?t.touches[0]:t,i=n.clientX-A.clientX,r=n.clientY-A.clientY,a=t.touches?"translate3d("+i+"px,"+r+"px,0)":"translate("+i+"px,"+r+"px)";O=!0,F=n,s(D,"webkitTransform",a),s(D,"mozTransform",a),s(D,"msTransform",a),s(D,"transform",a),t.preventDefault()}},_appendGhost:function(){if(!D){var e,t=y.getBoundingClientRect(),n=s(y),i=this.options;D=y.cloneNode(!0),o(D,i.ghostClass,!1),o(D,i.fallbackClass,!0),s(D,"top",t.top-z(n.marginTop,10)),s(D,"left",t.left-z(n.marginLeft,10)),s(D,"width",t.width),s(D,"height",t.height),s(D,"opacity","0.8"),s(D,"position","fixed"),s(D,"zIndex","100000"),s(D,"pointerEvents","none"),i.fallbackOnBody&&j.body.appendChild(D)||b.appendChild(D),e=D.getBoundingClientRect(),s(D,"width",2*t.width-e.width),s(D,"height",2*t.height-e.height)}},_onDragStart:function(e,t){var n=e.dataTransfer,i=this.options;this._offUpEvents(),"clone"==Y.pull&&(w=y.cloneNode(!0),s(w,"display","none"),b.insertBefore(w,y)),t?("touch"===t?(r(j,"touchmove",this._onTouchMove),r(j,"touchend",this._onDrop),r(j,"touchcancel",this._onDrop)):(r(j,"mousemove",this._onTouchMove),r(j,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(n&&(n.effectAllowed="move",i.setData&&i.setData.call(this,n,y)),r(j,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(e){var i,r,a,o=this.el,l=this.options,u=l.group,c=u.put,f=Y===u,m=l.sort;if(void 0!==e.preventDefault&&(e.preventDefault(),!l.dragoverBubble&&e.stopPropagation()),O=!0,Y&&!l.disabled&&(f?m||(a=!b.contains(y)):Y.pull&&c&&(Y.name===u.name||c.indexOf&&~c.indexOf(Y.name)))&&(void 0===e.rootEl||e.rootEl===this.el)){if(G(e,l,this.el),R)return;if(i=n(e.target,l.draggable,o),r=y.getBoundingClientRect(),a)return t(!0),void(w||L?b.insertBefore(y,w||L):m||b.appendChild(y));if(0===o.children.length||o.children[0]===D||o===e.target&&(i=p(o,e))){if(i){if(i.animated)return;v=i.getBoundingClientRect()}t(f),d(b,o,y,r,i,v)!==!1&&(y.contains(o)||(o.appendChild(y),_=o),this._animate(r,y),i&&this._animate(v,i))}else if(i&&!i.animated&&i!==y&&void 0!==i.parentNode[P]){x!==i&&(x=i,k=s(i),T=s(i.parentNode));var g,v=i.getBoundingClientRect(),M=v.right-v.left,C=v.bottom-v.top,S=/left|right|inline/.test(k.cssFloat+k.display)||"flex"==T.display&&0===T["flex-direction"].indexOf("row"),E=i.offsetWidth>y.offsetWidth,A=i.offsetHeight>y.offsetHeight,F=(S?(e.clientX-v.left)/M:(e.clientY-v.top)/C)>.5,I=i.nextElementSibling,B=d(b,o,y,r,i,v);if(B!==!1){if(R=!0,setTimeout(h,30),t(f),1===B||-1===B)g=1===B;else if(S){var N=y.offsetTop,j=i.offsetTop;g=N===j?i.previousElementSibling===y&&!E||F&&E:j>N}else g=I!==y&&!A||F&&A;y.contains(o)||(g&&!I?o.appendChild(y):i.parentNode.insertBefore(y,g?I:i)),_=y.parentNode,this._animate(r,y),this._animate(v,i)}}}},_animate:function(e,t){var n=this.options.animation;if(n){var i=t.getBoundingClientRect();s(t,"transition","none"),s(t,"transform","translate3d("+(e.left-i.left)+"px,"+(e.top-i.top)+"px,0)"),t.offsetWidth,s(t,"transition","all "+n+"ms"),s(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=setTimeout(function(){s(t,"transition",""),s(t,"transform",""),t.animated=!1},n)}},_offUpEvents:function(){var e=this.el.ownerDocument;a(j,"touchmove",this._onTouchMove),a(e,"mouseup",this._onDrop),a(e,"touchend",this._onDrop),a(e,"touchcancel",this._onDrop)},_onDrop:function(t){var n=this.el,i=this.options;clearInterval(this._loopId),clearInterval(I.pid),clearTimeout(this._dragStartTimer),a(j,"mousemove",this._onTouchMove),this.nativeDraggable&&(a(j,"drop",this),a(n,"dragstart",this._onDragStart)),this._offUpEvents(),t&&(O&&(t.preventDefault(),!i.dropBubble&&t.stopPropagation()),D&&D.parentNode.removeChild(D),y&&(this.nativeDraggable&&a(y,"dragend",this),c(y),o(y,this.options.ghostClass,!1),o(y,this.options.chosenClass,!1),b!==_?(E=m(y),E>=0&&(u(null,_,"sort",y,b,S,E),u(this,b,"sort",y,b,S,E),u(null,_,"add",y,b,S,E),u(this,b,"remove",y,b,S,E))):(w&&w.parentNode.removeChild(w),y.nextSibling!==L&&(E=m(y),E>=0&&(u(this,b,"update",y,b,S,E),u(this,b,"sort",y,b,S,E)))),e.active&&(null!==E&&-1!==E||(E=S),u(this,b,"end",y,b,S,E),this.save())),b=y=_=D=L=w=M=C=A=F=O=E=x=k=Y=e.active=null)},handleEvent:function(e){var t=e.type;"dragover"===t||"dragenter"===t?y&&(this._onDragOver(e),i(e)):"drop"!==t&&"dragend"!==t||this._onDrop(e)},toArray:function(){for(var e,t=[],i=this.el.children,r=0,a=i.length,o=this.options;a>r;r++)e=i[r],n(e,o.draggable,this.el)&&t.push(e.getAttribute(o.dataIdAttr)||f(e));return t},sort:function(e){var t={},i=this.el;this.toArray().forEach(function(e,r){var a=i.children[r];n(a,this.options.draggable,i)&&(t[e]=a)},this),e.forEach(function(e){t[e]&&(i.removeChild(t[e]),i.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return n(e,t||this.options.draggable,this.el)},option:function(e,t){var n=this.options;return void 0===t?n[e]:(n[e]=t,void("group"===e&&V(n)))},destroy:function(){var e=this.el;e[P]=null,a(e,"mousedown",this._onTapStart),a(e,"touchstart",this._onTapStart),this.nativeDraggable&&(a(e,"dragover",this),a(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),U.splice(U.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},e.utils={on:r,off:a,css:s,find:l,is:function(e,t){return!!n(e,t,e)},extend:v,throttle:g,closest:n,toggleClass:o,index:m},e.create=function(t,n){return new e(t,n)},e.version="1.4.2",e})},,,,,,function(e,t,n){var i,r,a;!function(o,s){r=[n(1),n(324),n(325)],i=s,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(this,function(e,t,n){"use strict";var i=function(e,t){if("string"!=typeof t||t.length){var n="string"==typeof t?new RegExp(t,"i"):t,i=function(e){var t=0;if(3===e.nodeType){var r=e.data.search(n);if(r>=0&&e.data.length>0){var a=e.data.match(n),o=document.createElement("span");o.className="highlight";var s=e.splitText(r),l=(s.splitText(a[0].length),s.cloneNode(!0));o.appendChild(l),s.parentNode.replaceChild(o,s),t=1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName))for(var u=0;u<e.childNodes.length;++u)u+=i(e.childNodes[u]);return t};return e.each(function(){i(this)})}},r=function(){};r.prototype={on:function(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)},off:function(e,t){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[e]:(this._events=this._events||{},void(e in this._events!=!1&&this._events[e].splice(this._events[e].indexOf(t),1)))},trigger:function(e){if(this._events=this._events||{},e in this._events!=!1)for(var t=0;t<this._events[e].length;t++)this._events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}},r.mixin=function(e){for(var t=["on","off","trigger"],n=0;n<t.length;n++)e.prototype[t[n]]=r.prototype[t[n]]};var a=/Mac/.test(navigator.userAgent),o=65,s=13,l=27,u=37,d=38,c=80,h=39,p=40,f=78,m=8,g=46,v=16,y=a?91:17,_=a?18:17,D=9,w=1,b=2,L=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("form").validity,M=function(e){return"undefined"!=typeof e},C=function(e){return"undefined"==typeof e||null===e?null:"boolean"==typeof e?e?"1":"0":e+""},x=function(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},k=function(e){return(e+"").replace(/\$/g,"$$$$")},T={};T.before=function(e,t,n){var i=e[t];e[t]=function(){return n.apply(e,arguments),i.apply(e,arguments)}},T.after=function(e,t,n){var i=e[t];e[t]=function(){var t=i.apply(e,arguments);return n.apply(e,arguments),t}};var S=function(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}},E=function(e,t){var n;return function(){var i=this,r=arguments;window.clearTimeout(n),n=window.setTimeout(function(){e.apply(i,r)},t)}},Y=function(e,t,n){var i,r=e.trigger,a={};e.trigger=function(){var n=arguments[0];return-1===t.indexOf(n)?r.apply(e,arguments):void(a[n]=arguments)},n.apply(e,[]),e.trigger=r;for(i in a)a.hasOwnProperty(i)&&r.apply(e,a[i])},A=function(e,t,n,i){e.on(t,n,function(t){for(var n=t.target;n&&n.parentNode!==e[0];)n=n.parentNode;return t.currentTarget=n,i.apply(this,[t])})},F=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus();var n=document.selection.createRange(),i=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-i,t.length=i}return t},O=function(e,t,n){var i,r,a={};if(n)for(i=0,r=n.length;r>i;i++)a[n[i]]=e.css(n[i]);else a=e.css();t.css(a)},I=function(t,n){if(!t)return 0;var i=e("<test>").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).text(t).appendTo("body");O(n,i,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]);var r=i.width();return i.remove(),r},B=function(e){var t=null,n=function(n,i){var r,a,o,s,l,u,d,c;n=n||window.event||{},i=i||{},n.metaKey||n.altKey||(i.force||e.data("grow")!==!1)&&(r=e.val(),n.type&&"keydown"===n.type.toLowerCase()&&(a=n.keyCode,o=a>=97&&122>=a||a>=65&&90>=a||a>=48&&57>=a||32===a,a===g||a===m?(c=F(e[0]),c.length?r=r.substring(0,c.start)+r.substring(c.start+c.length):a===m&&c.start?r=r.substring(0,c.start-1)+r.substring(c.start+1):a===g&&"undefined"!=typeof c.start&&(r=r.substring(0,c.start)+r.substring(c.start+1))):o&&(u=n.shiftKey,d=String.fromCharCode(n.keyCode),d=u?d.toUpperCase():d.toLowerCase(),r+=d)),s=e.attr("placeholder"),!r&&s&&(r=s),l=I(r,e)+4,l!==t&&(t=l,e.width(l),e.triggerHandler("resize")))};e.on("keydown keyup update blur",n),n()},P=function(n,i){var r,a,o,s,l=this;s=n[0],s.selectize=l;var u=window.getComputedStyle&&window.getComputedStyle(s,null);if(o=u?u.getPropertyValue("direction"):s.currentStyle&&s.currentStyle.direction,o=o||n.parents("[dir]:first").attr("dir")||"",e.extend(l,{order:0,settings:i,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===s.tagName.toLowerCase()?w:b,rtl:/rtl/i.test(o),eventNS:".selectize"+ ++P.count,highlightedValue:null,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===i.loadThrottle?l.onSearchChange:E(l.onSearchChange,i.loadThrottle)}),l.sifter=new t(this.options,{diacritics:i.diacritics}),l.settings.options){for(r=0,a=l.settings.options.length;a>r;r++)l.registerOption(l.settings.options[r]);delete l.settings.options}if(l.settings.optgroups){for(r=0,a=l.settings.optgroups.length;a>r;r++)l.registerOptionGroup(l.settings.optgroups[r]);delete l.settings.optgroups}l.settings.mode=l.settings.mode||(1===l.settings.maxItems?"single":"multi"),"boolean"!=typeof l.settings.hideSelected&&(l.settings.hideSelected="multi"===l.settings.mode),l.initializePlugins(l.settings.plugins),l.setupCallbacks(),l.setupTemplates(),l.setup()};return r.mixin(P),n.mixin(P),e.extend(P.prototype,{setup:function(){var t,n,i,r,o,s,l,u,d,c=this,h=c.settings,p=c.eventNS,f=e(window),m=e(document),g=c.$input;if(l=c.settings.mode,u=g.attr("class")||"",t=e("<div>").addClass(h.wrapperClass).addClass(u).addClass(l),n=e("<div>").addClass(h.inputClass).addClass("items").appendTo(t),i=e('<input type="text" autocomplete="off" />').appendTo(n).attr("tabindex",g.is(":disabled")?"-1":c.tabIndex),s=e(h.dropdownParent||t),r=e("<div>").addClass(h.dropdownClass).addClass(l).hide().appendTo(s),o=e("<div>").addClass(h.dropdownContentClass).appendTo(r),c.settings.copyClassesToDropdown&&r.addClass(u),t.css({width:g[0].style.width}),c.plugins.names.length&&(d="plugin-"+c.plugins.names.join(" plugin-"),t.addClass(d),r.addClass(d)),(null===h.maxItems||h.maxItems>1)&&c.tagType===w&&g.attr("multiple","multiple"),c.settings.placeholder&&i.attr("placeholder",h.placeholder),!c.settings.splitOn&&c.settings.delimiter){var D=c.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");c.settings.splitOn=new RegExp("\\s*"+D+"+\\s*")}g.attr("autocorrect")&&i.attr("autocorrect",g.attr("autocorrect")),g.attr("autocapitalize")&&i.attr("autocapitalize",g.attr("autocapitalize")),c.$wrapper=t,c.$control=n,c.$control_input=i,c.$dropdown=r,c.$dropdown_content=o,r.on("mouseenter","[data-selectable]",function(){return c.onOptionHover.apply(c,arguments)}),r.on("mousedown click","[data-selectable]",function(){return c.onOptionSelect.apply(c,arguments)}),A(n,"mousedown","*:not(input)",function(){return c.onItemSelect.apply(c,arguments)}),B(i),n.on({mousedown:function(){return c.onMouseDown.apply(c,arguments)},click:function(){return c.onClick.apply(c,arguments)}}),i.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return c.onKeyDown.apply(c,arguments)},keyup:function(){return c.onKeyUp.apply(c,arguments)},keypress:function(){return c.onKeyPress.apply(c,arguments)},resize:function(){c.positionDropdown.apply(c,[])},blur:function(){return c.onBlur.apply(c,arguments)},focus:function(){return c.ignoreBlur=!1,c.onFocus.apply(c,arguments)},paste:function(){return c.onPaste.apply(c,arguments)}}),m.on("keydown"+p,function(e){c.isCmdDown=e[a?"metaKey":"ctrlKey"],c.isCtrlDown=e[a?"altKey":"ctrlKey"],c.isShiftDown=e.shiftKey}),m.on("keyup"+p,function(e){e.keyCode===_&&(c.isCtrlDown=!1),e.keyCode===v&&(c.isShiftDown=!1),e.keyCode===y&&(c.isCmdDown=!1)}),m.on("mousedown"+p,function(e){if(c.isFocused){if(e.target===c.$dropdown[0]||e.target.parentNode===c.$dropdown[0])return!1;c.$control.has(e.target).length||e.target===c.$control[0]||c.blur(e.target)}}),f.on(["scroll"+p,"resize"+p].join(" "),function(){c.isOpen&&c.positionDropdown.apply(c,arguments)}),f.on("mousemove"+p,function(){c.ignoreHover=!1}),this.revertSettings={$children:g.children().detach(),tabindex:g.attr("tabindex")},g.attr("tabindex",-1).hide().after(c.$wrapper),e.isArray(h.items)&&(c.setValue(h.items),delete h.items),L&&g.on("invalid"+p,function(e){e.preventDefault(),c.isInvalid=!0,c.refreshState()}),c.updateOriginalInput(),c.refreshItems(),c.refreshState(),c.updatePlaceholder(),c.isSetup=!0,g.is(":disabled")&&c.disable(),c.on("change",this.onChange),g.data("selectize",c),g.addClass("selectized"),c.trigger("initialize"),h.preload===!0&&c.onSearchChange("")},setupTemplates:function(){var t=this,n=t.settings.labelField,i=t.settings.optgroupLabelField,r={optgroup:function(e){return'<div class="optgroup">'+e.html+"</div>"},optgroup_header:function(e,t){return'<div class="optgroup-header">'+t(e[i])+"</div>"},option:function(e,t){return'<div class="option">'+t(e[n])+"</div>"},item:function(e,t){return'<div class="item">'+t(e[n])+"</div>"},option_create:function(e,t){return'<div class="create">Add <strong>'+t(e.input)+"</strong>&hellip;</div>"}};t.settings.render=e.extend({},r,t.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]],t&&this.on(e,t))},onClick:function(e){var t=this;t.isFocused||(t.focus(),e.preventDefault())},onMouseDown:function(t){var n=this,i=t.isDefaultPrevented();e(t.target);if(n.isFocused){if(t.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():i||n.setActiveItem(null),!1}else i||window.setTimeout(function(){n.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;n.isFull()||n.isInputHidden||n.isLocked?t.preventDefault():n.settings.splitOn&&setTimeout(function(){for(var t=e.trim(n.$control_input.val()||"").split(n.settings.splitOn),i=0,r=t.length;r>i;i++)n.createItem(t[i])},0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which);return this.settings.create&&"multi"===this.settings.mode&&t===this.settings.delimiter?(this.createItem(),e.preventDefault(),!1):void 0},onKeyDown:function(e){var t=(e.target===this.$control_input[0],this);if(t.isLocked)return void(e.keyCode!==D&&e.preventDefault());switch(e.keyCode){case o:if(t.isCmdDown)return void t.selectAll();break;case l:return void(t.isOpen&&(e.preventDefault(),e.stopPropagation(),t.close()));case f:if(!e.ctrlKey||e.altKey)break;case p:if(!t.isOpen&&t.hasOptions)t.open();else if(t.$activeOption){t.ignoreHover=!0;var n=t.getAdjacentOption(t.$activeOption,1);n.length&&t.setActiveOption(n,!0,!0)}return void e.preventDefault();case c:if(!e.ctrlKey||e.altKey)break;case d:if(t.$activeOption){t.ignoreHover=!0;var i=t.getAdjacentOption(t.$activeOption,-1);i.length&&t.setActiveOption(i,!0,!0)}return void e.preventDefault();case s:return void(t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),e.preventDefault()));case u:return void t.advanceSelection(-1,e);case h:return void t.advanceSelection(1,e);case D:return t.settings.selectOnTab&&t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),t.isFull()||e.preventDefault()),void(t.settings.create&&t.createItem()&&e.preventDefault());case m:case g:return void t.deleteSelection(e)}return!t.isFull()&&!t.isInputHidden||(a?e.metaKey:e.ctrlKey)?void 0:void e.preventDefault()},onKeyUp:function(e){var t=this;if(t.isLocked)return e&&e.preventDefault();var n=t.$control_input.val()||"";t.lastValue!==n&&(t.lastValue=n,t.onSearchChange(n),t.refreshOptions(),t.trigger("type",n))},onSearchChange:function(e){var t=this,n=t.settings.load;n&&(t.loadedSearches.hasOwnProperty(e)||(t.loadedSearches[e]=!0,t.load(function(i){n.apply(t,[e,i])})))},onFocus:function(e){var t=this,n=t.isFocused;return t.isDisabled?(t.blur(),e&&e.preventDefault(),!1):void(t.ignoreFocus||(t.isFocused=!0,"focus"===t.settings.preload&&t.onSearchChange(""),n||t.trigger("focus"),t.$activeItems.length||(t.showInput(),t.setActiveItem(null),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState()))},onBlur:function(e,t){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(e);var i=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),(t||document.body).focus(),n.ignoreFocus=!1,n.trigger("blur")};n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,i):i()}},onOptionHover:function(e){this.ignoreHover||this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(t){var n,i,r=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),i=e(t.currentTarget),i.hasClass("create")?r.createItem(null,function(){r.settings.closeAfterSelect&&r.close()}):(n=i.attr("data-value"),"undefined"!=typeof n&&(r.lastQuery=null,r.setTextboxValue(""),r.addItem(n),r.settings.closeAfterSelect?r.close():!r.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&r.setActiveOption(r.getOption(n))))},onItemSelect:function(e){var t=this;t.isLocked||"multi"===t.settings.mode&&(e.preventDefault(),t.setActiveItem(e.currentTarget,e))},load:function(e){var t=this,n=t.$wrapper.addClass(t.settings.loadingClass);t.loading++,e.apply(t,[function(e){t.loading=Math.max(t.loading-1,0),e&&e.length&&(t.addOption(e),t.refreshOptions(t.isFocused&&!t.isInputHidden)),t.loading||n.removeClass(t.settings.loadingClass),t.trigger("load",e)}])},setTextboxValue:function(e){var t=this.$control_input,n=t.val()!==e;n&&(t.val(e).triggerHandler("update"),this.lastValue=e)},getValue:function(){return this.tagType===w&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(e,t){var n=t?[]:["change"];Y(this,n,function(){this.clear(t),this.addItems(e,t)})},setActiveItem:function(t,n){var i,r,a,o,s,l,u,d,c=this;if("single"!==c.settings.mode){if(t=e(t),!t.length)return e(c.$activeItems).removeClass("active"),c.$activeItems=[],void(c.isFocused&&c.showInput());if(i=n&&n.type.toLowerCase(),"mousedown"===i&&c.isShiftDown&&c.$activeItems.length){for(d=c.$control.children(".active:last"),o=Array.prototype.indexOf.apply(c.$control[0].childNodes,[d[0]]),s=Array.prototype.indexOf.apply(c.$control[0].childNodes,[t[0]]),o>s&&(u=o,o=s,s=u),r=o;s>=r;r++)l=c.$control[0].childNodes[r],-1===c.$activeItems.indexOf(l)&&(e(l).addClass("active"),c.$activeItems.push(l));n.preventDefault()}else"mousedown"===i&&c.isCtrlDown||"keydown"===i&&this.isShiftDown?t.hasClass("active")?(a=c.$activeItems.indexOf(t[0]),c.$activeItems.splice(a,1),t.removeClass("active")):c.$activeItems.push(t.addClass("active")[0]):(e(c.$activeItems).removeClass("active"),c.$activeItems=[t.addClass("active")[0]]);c.hideInput(),this.isFocused||c.focus()}},setActiveOption:function(t,n,i){var r,a,o,s,l,u=this;u.$activeOption&&u.$activeOption.removeClass("active"),u.$activeOption=null,t=e(t),t.length&&(u.$activeOption=t.addClass("active"),!n&&M(n)||(r=u.$dropdown_content.height(),a=u.$activeOption.outerHeight(!0),n=u.$dropdown_content.scrollTop()||0,o=u.$activeOption.offset().top-u.$dropdown_content.offset().top+n,s=o,l=o-r+a,o+a>r+n?u.$dropdown_content.stop().animate({scrollTop:l},i?u.settings.scrollDuration:0):n>o&&u.$dropdown_content.stop().animate({scrollTop:s},i?u.settings.scrollDuration:0)))},selectAll:function(){var e=this;"single"!==e.settings.mode&&(e.$activeItems=Array.prototype.slice.apply(e.$control.children(":not(input)").addClass("active")),e.$activeItems.length&&(e.hideInput(),e.close()),e.focus())},hideInput:function(){var e=this;e.setTextboxValue(""),e.$control_input.css({opacity:0,position:"absolute",left:e.rtl?1e4:-1e4}),e.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var e=this;e.isDisabled||(e.ignoreFocus=!0,e.$control_input[0].focus(),window.setTimeout(function(){e.ignoreFocus=!1,e.onFocus()},0))},blur:function(e){this.$control_input[0].blur(),this.onBlur(null,e)},getScoreFunction:function(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())},getSearchOptions:function(){var e=this.settings,t=e.sortField;return"string"==typeof t&&(t=[{field:t}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t}},search:function(t){var n,i,r,a=this,o=a.settings,s=this.getSearchOptions();if(o.score&&(r=a.settings.score.apply(this,[t]),"function"!=typeof r))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==a.lastQuery?(a.lastQuery=t,i=a.sifter.search(t,e.extend(s,{score:r})),a.currentResults=i):i=e.extend(!0,{},a.currentResults),o.hideSelected)for(n=i.items.length-1;n>=0;n--)-1!==a.items.indexOf(C(i.items[n].id))&&i.items.splice(n,1);return i},refreshOptions:function(t){var n,r,a,o,s,l,u,d,c,h,p,f,m,g,v,y;"undefined"==typeof t&&(t=!0);var _=this,D=e.trim(_.$control_input.val()),w=_.search(D),b=_.$dropdown_content,L=_.$activeOption&&C(_.$activeOption.attr("data-value"));for(o=w.items.length,"number"==typeof _.settings.maxOptions&&(o=Math.min(o,_.settings.maxOptions)),s={},l=[],n=0;o>n;n++)for(u=_.options[w.items[n].id],d=_.render("option",u),c=u[_.settings.optgroupField]||"",h=e.isArray(c)?c:[c],r=0,a=h&&h.length;a>r;r++)c=h[r],_.optgroups.hasOwnProperty(c)||(c=""),s.hasOwnProperty(c)||(s[c]=[],l.push(c)),s[c].push(d);for(this.settings.lockOptgroupOrder&&l.sort(function(e,t){var n=_.optgroups[e].$order||0,i=_.optgroups[t].$order||0;return n-i}),p=[],n=0,o=l.length;o>n;n++)c=l[n],_.optgroups.hasOwnProperty(c)&&s[c].length?(f=_.render("optgroup_header",_.optgroups[c])||"",f+=s[c].join(""),p.push(_.render("optgroup",e.extend({},_.optgroups[c],{html:f})))):p.push(s[c].join(""));if(b.html(p.join("")),_.settings.highlight&&w.query.length&&w.tokens.length)for(n=0,o=w.tokens.length;o>n;n++)i(b,w.tokens[n].regex);if(!_.settings.hideSelected)for(n=0,o=_.items.length;o>n;n++)_.getOption(_.items[n]).addClass("selected");m=_.canCreate(D),m&&(b.prepend(_.render("option_create",{input:D})),y=e(b[0].childNodes[0])),_.hasOptions=w.items.length>0||m,_.hasOptions?(w.items.length>0?(v=L&&_.getOption(L),v&&v.length?g=v:"single"===_.settings.mode&&_.items.length&&(g=_.getOption(_.items[0])),g&&g.length||(g=y&&!_.settings.addPrecedence?_.getAdjacentOption(y,1):b.find("[data-selectable]:first"))):g=y,_.setActiveOption(g),t&&!_.isOpen&&_.open()):(_.setActiveOption(null),t&&_.isOpen&&_.close())},addOption:function(t){var n,i,r,a=this;if(e.isArray(t))for(n=0,i=t.length;i>n;n++)a.addOption(t[n]);else(r=a.registerOption(t))&&(a.userOptions[r]=!0,a.lastQuery=null,a.trigger("option_add",r,t))},registerOption:function(e){
var t=C(e[this.settings.valueField]);return!t||this.options.hasOwnProperty(t)?!1:(e.$order=e.$order||++this.order,this.options[t]=e,t)},registerOptionGroup:function(e){var t=C(e[this.settings.optgroupValueField]);return t?(e.$order=e.$order||++this.order,this.optgroups[t]=e,t):!1},addOptionGroup:function(e,t){t[this.settings.optgroupValueField]=e,(e=this.registerOptionGroup(t))&&this.trigger("optgroup_add",e,t)},removeOptionGroup:function(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.renderCache={},this.trigger("optgroup_remove",e))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var i,r,a,o,s,l,u,d=this;if(t=C(t),a=C(n[d.settings.valueField]),null!==t&&d.options.hasOwnProperty(t)){if("string"!=typeof a)throw new Error("Value must be set in option data");u=d.options[t].$order,a!==t&&(delete d.options[t],o=d.items.indexOf(t),-1!==o&&d.items.splice(o,1,a)),n.$order=n.$order||u,d.options[a]=n,s=d.renderCache.item,l=d.renderCache.option,s&&(delete s[t],delete s[a]),l&&(delete l[t],delete l[a]),-1!==d.items.indexOf(a)&&(i=d.getItem(t),r=e(d.render("item",n)),i.hasClass("active")&&r.addClass("active"),i.replaceWith(r)),d.lastQuery=null,d.isOpen&&d.refreshOptions(!1)}},removeOption:function(e,t){var n=this;e=C(e);var i=n.renderCache.item,r=n.renderCache.option;i&&delete i[e],r&&delete r[e],delete n.userOptions[e],delete n.options[e],n.lastQuery=null,n.trigger("option_remove",e),n.removeItem(e,t)},clearOptions:function(){var e=this;e.loadedSearches={},e.userOptions={},e.renderCache={},e.options=e.sifter.items={},e.lastQuery=null,e.trigger("option_clear"),e.clear()},getOption:function(e){return this.getElementWithValue(e,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var i=this.$dropdown.find("[data-selectable]"),r=i.index(t)+n;return r>=0&&r<i.length?i.eq(r):e()},getElementWithValue:function(t,n){if(t=C(t),"undefined"!=typeof t&&null!==t)for(var i=0,r=n.length;r>i;i++)if(n[i].getAttribute("data-value")===t)return e(n[i]);return e()},getItem:function(e){return this.getElementWithValue(e,this.$control.children())},addItems:function(t,n){for(var i=e.isArray(t)?t:[t],r=0,a=i.length;a>r;r++)this.isPending=a-1>r,this.addItem(i[r],n)},addItem:function(t,n){var i=n?[]:["change"];Y(this,i,function(){var i,r,a,o,s,l=this,u=l.settings.mode;return t=C(t),-1!==l.items.indexOf(t)?void("single"===u&&l.close()):void(l.options.hasOwnProperty(t)&&("single"===u&&l.clear(n),"multi"===u&&l.isFull()||(i=e(l.render("item",l.options[t])),s=l.isFull(),l.items.splice(l.caretPos,0,t),l.insertAtCaret(i),(!l.isPending||!s&&l.isFull())&&l.refreshState(),l.isSetup&&(a=l.$dropdown_content.find("[data-selectable]"),l.isPending||(r=l.getOption(t),o=l.getAdjacentOption(r,1).attr("data-value"),l.refreshOptions(l.isFocused&&"single"!==u),o&&l.setActiveOption(l.getOption(o))),!a.length||l.isFull()?l.close():l.positionDropdown(),l.updatePlaceholder(),l.trigger("item_add",t,i),l.updateOriginalInput({silent:n})))))})},removeItem:function(e,t){var n,i,r,a=this;n="object"==typeof e?e:a.getItem(e),e=C(n.attr("data-value")),i=a.items.indexOf(e),-1!==i&&(n.remove(),n.hasClass("active")&&(r=a.$activeItems.indexOf(n[0]),a.$activeItems.splice(r,1)),a.items.splice(i,1),a.lastQuery=null,!a.settings.persist&&a.userOptions.hasOwnProperty(e)&&a.removeOption(e,t),i<a.caretPos&&a.setCaret(a.caretPos-1),a.refreshState(),a.updatePlaceholder(),a.updateOriginalInput({silent:t}),a.positionDropdown(),a.trigger("item_remove",e,n))},createItem:function(t,n){var i=this,r=i.caretPos;t=t||e.trim(i.$control_input.val()||"");var a=arguments[arguments.length-1];if("function"!=typeof a&&(a=function(){}),"boolean"!=typeof n&&(n=!0),!i.canCreate(t))return a(),!1;i.lock();var o="function"==typeof i.settings.create?this.settings.create:function(e){var t={};return t[i.settings.labelField]=e,t[i.settings.valueField]=e,t},s=S(function(e){if(i.unlock(),!e||"object"!=typeof e)return a();var t=C(e[i.settings.valueField]);return"string"!=typeof t?a():(i.setTextboxValue(""),i.addOption(e),i.setCaret(r),i.addItem(t),i.refreshOptions(n&&"single"!==i.settings.mode),void a(e))}),l=o.apply(this,[t,s]);return"undefined"!=typeof l&&s(l),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){var e,t=this;t.isRequired&&(t.items.length&&(t.isInvalid=!1),t.$control_input.prop("required",e)),t.refreshClasses()},refreshClasses:function(){var t=this,n=t.isFull(),i=t.isLocked;t.$wrapper.toggleClass("rtl",t.rtl),t.$control.toggleClass("focus",t.isFocused).toggleClass("disabled",t.isDisabled).toggleClass("required",t.isRequired).toggleClass("invalid",t.isInvalid).toggleClass("locked",i).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",t.isFocused&&!t.isInputHidden).toggleClass("dropdown-active",t.isOpen).toggleClass("has-options",!e.isEmptyObject(t.options)).toggleClass("has-items",t.items.length>0),t.$control_input.data("grow",!n&&!i)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(e){var t,n,i,r,a=this;if(e=e||{},a.tagType===w){for(i=[],t=0,n=a.items.length;n>t;t++)r=a.options[a.items[t]][a.settings.labelField]||"",i.push('<option value="'+x(a.items[t])+'" selected="selected">'+x(r)+"</option>");i.length||this.$input.attr("multiple")||i.push('<option value="" selected="selected"></option>'),a.$input.html(i.join(""))}else a.$input.val(a.getValue()),a.$input.attr("value",a.$input.val());a.isSetup&&(e.silent||a.trigger("change",a.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({visibility:"hidden",display:"block"}),e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown))},close:function(){var e=this,t=e.isOpen;"single"===e.settings.mode&&e.items.length&&e.hideInput(),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e.outerWidth(),top:t.top,left:t.left})},clear:function(e){var t=this;t.items.length&&(t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear"))},insertAtCaret:function(t){var n=Math.min(this.caretPos,this.items.length);0===n?this.$control.prepend(t):e(this.$control[0].childNodes[n]).before(t),this.setCaret(n+1)},deleteSelection:function(t){var n,i,r,a,o,s,l,u,d,c=this;if(r=t&&t.keyCode===m?-1:1,a=F(c.$control_input[0]),c.$activeOption&&!c.settings.hideSelected&&(l=c.getAdjacentOption(c.$activeOption,-1).attr("data-value")),o=[],c.$activeItems.length){for(d=c.$control.children(".active:"+(r>0?"last":"first")),s=c.$control.children(":not(input)").index(d),r>0&&s++,n=0,i=c.$activeItems.length;i>n;n++)o.push(e(c.$activeItems[n]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(c.isFocused||"single"===c.settings.mode)&&c.items.length&&(0>r&&0===a.start&&0===a.length?o.push(c.items[c.caretPos-1]):r>0&&a.start===c.$control_input.val().length&&o.push(c.items[c.caretPos]));if(!o.length||"function"==typeof c.settings.onDelete&&c.settings.onDelete.apply(c,[o])===!1)return!1;for("undefined"!=typeof s&&c.setCaret(s);o.length;)c.removeItem(o.pop());return c.showInput(),c.positionDropdown(),c.refreshOptions(!0),l&&(u=c.getOption(l),u.length&&c.setActiveOption(u)),!0},advanceSelection:function(e,t){var n,i,r,a,o,s,l=this;0!==e&&(l.rtl&&(e*=-1),n=e>0?"last":"first",i=F(l.$control_input[0]),l.isFocused&&!l.isInputHidden?(a=l.$control_input.val().length,o=0>e?0===i.start&&0===i.length:i.start===a,o&&!a&&l.advanceCaret(e,t)):(s=l.$control.children(".active:"+n),s.length&&(r=l.$control.children(":not(input)").index(s),l.setActiveItem(null),l.setCaret(e>0?r+1:r))))},advanceCaret:function(e,t){var n,i,r=this;0!==e&&(n=e>0?"next":"prev",r.isShiftDown?(i=r.$control_input[n](),i.length&&(r.hideInput(),r.setActiveItem(i),t&&t.preventDefault())):r.setCaret(r.caretPos+e))},setCaret:function(t){var n=this;if(t="single"===n.settings.mode?n.items.length:Math.max(0,Math.min(n.items.length,t)),!n.isPending){var i,r,a,o;for(a=n.$control.children(":not(input)"),i=0,r=a.length;r>i;i++)o=e(a[i]).detach(),t>i?n.$control_input.before(o):n.$control.append(o)}n.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var e=this;e.$input.prop("disabled",!0),e.$control_input.prop("disabled",!0).prop("tabindex",-1),e.isDisabled=!0,e.lock()},enable:function(){var e=this;e.$input.prop("disabled",!1),e.$control_input.prop("disabled",!1).prop("tabindex",e.tabIndex),e.isDisabled=!1,e.unlock()},destroy:function(){var t=this,n=t.eventNS,i=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),t.$input.html("").append(i.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:i.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),e(window).off(n),e(document).off(n),e(document.body).off(n),delete t.$input[0].selectize},render:function(e,t){var n,i,r="",a=!1,o=this,s=/^[\t \r\n]*<([a-z][a-z0-9\-_]*(?:\:[a-z][a-z0-9\-_]*)?)/i;return"option"!==e&&"item"!==e||(n=C(t[o.settings.valueField]),a=!!n),a&&(M(o.renderCache[e])||(o.renderCache[e]={}),o.renderCache[e].hasOwnProperty(n))?o.renderCache[e][n]:(r=o.settings.render[e].apply(this,[t,x]),"option"!==e&&"option_create"!==e||(r=r.replace(s,"<$1 data-selectable")),"optgroup"===e&&(i=t[o.settings.optgroupValueField]||"",r=r.replace(s,'<$1 data-group="'+k(x(i))+'"')),"option"!==e&&"item"!==e||(r=r.replace(s,'<$1 data-value="'+k(x(n||""))+'"')),a&&(o.renderCache[e][n]=r),r)},clearCache:function(e){var t=this;"undefined"==typeof e?t.renderCache={}:delete t.renderCache[e]},canCreate:function(e){var t=this;if(!t.settings.create)return!1;var n=t.settings.createFilter;return e.length&&("function"!=typeof n||n.apply(t,[e]))&&("string"!=typeof n||new RegExp(n).test(e))&&(!(n instanceof RegExp)||n.test(e))}}),P.count=0,P.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var n=e.fn.selectize.defaults,i=e.extend({},n,t),r=i.dataAttr,a=i.labelField,o=i.valueField,s=i.optgroupField,l=i.optgroupLabelField,u=i.optgroupValueField,d=function(t,n){var s,l,u,d,c=t.attr(r);if(c)for(n.options=JSON.parse(c),s=0,l=n.options.length;l>s;s++)n.items.push(n.options[s][o]);else{var h=e.trim(t.val()||"");if(!i.allowEmptyOption&&!h.length)return;for(u=h.split(i.delimiter),s=0,l=u.length;l>s;s++)d={},d[a]=u[s],d[o]=u[s],n.options.push(d);n.items=u}},c=function(t,n){var d,c,h,p,f=n.options,m={},g=function(e){var t=r&&e.attr(r);return"string"==typeof t&&t.length?JSON.parse(t):null},v=function(t,r){t=e(t);var l=C(t.attr("value"));if(l||i.allowEmptyOption)if(m.hasOwnProperty(l)){if(r){var u=m[l][s];u?e.isArray(u)?u.push(r):m[l][s]=[u,r]:m[l][s]=r}}else{var d=g(t)||{};d[a]=d[a]||t.text(),d[o]=d[o]||l,d[s]=d[s]||r,m[l]=d,f.push(d),t.is(":selected")&&n.items.push(l)}},y=function(t){var i,r,a,o,s;for(t=e(t),a=t.attr("label"),a&&(o=g(t)||{},o[l]=a,o[u]=a,n.optgroups.push(o)),s=e("option",t),i=0,r=s.length;r>i;i++)v(s[i],a)};for(n.maxItems=t.attr("multiple")?null:1,p=t.children(),d=0,c=p.length;c>d;d++)h=p[d].tagName.toLowerCase(),"optgroup"===h?y(p[d]):"option"===h&&v(p[d])};return this.each(function(){if(!this.selectize){var r,a=e(this),o=this.tagName.toLowerCase(),s=a.attr("placeholder")||a.attr("data-placeholder");s||i.allowEmptyOption||(s=a.children('option[value=""]').text());var l={placeholder:s,options:[],optgroups:[],items:[]};"select"===o?c(a,l):d(a,l),r=new P(a,e.extend(!0,{},n,l,t))}})},e.fn.selectize.defaults=P.defaults,e.fn.selectize.support={validity:L},P.define("drag_drop",function(t){if(!e.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n=this;n.lock=function(){var e=n.lock;return function(){var t=n.$control.data("sortable");return t&&t.disable(),e.apply(n,arguments)}}(),n.unlock=function(){var e=n.unlock;return function(){var t=n.$control.data("sortable");return t&&t.enable(),e.apply(n,arguments)}}(),n.setup=function(){var t=n.setup;return function(){t.apply(this,arguments);var i=n.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:n.isLocked,start:function(e,t){t.placeholder.css("width",t.helper.css("width")),i.css({overflow:"visible"})},stop:function(){i.css({overflow:"hidden"});var t=n.$activeItems?n.$activeItems.slice():null,r=[];i.children("[data-value]").each(function(){r.push(e(this).attr("data-value"))}),n.setValue(r),n.setActiveItem(t)}})}}()}}),P.define("dropdown_header",function(t){var n=this;t=e.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(e){return'<div class="'+e.headerClass+'"><div class="'+e.titleRowClass+'"><span class="'+e.labelClass+'">'+e.title+'</span><a href="javascript:void(0)" class="'+e.closeClass+'">&times;</a></div></div>'}},t),n.setup=function(){var i=n.setup;return function(){i.apply(n,arguments),n.$dropdown_header=e(t.html(t)),n.$dropdown.prepend(n.$dropdown_header)}}()}),P.define("optgroup_columns",function(t){var n=this;t=e.extend({equalizeWidth:!0,equalizeHeight:!0},t),this.getAdjacentOption=function(t,n){var i=t.closest("[data-group]").find("[data-selectable]"),r=i.index(t)+n;return r>=0&&r<i.length?i.eq(r):e()},this.onKeyDown=function(){var e=n.onKeyDown;return function(t){var i,r,a,o;return!this.isOpen||t.keyCode!==u&&t.keyCode!==h?e.apply(this,arguments):(n.ignoreHover=!0,o=this.$activeOption.closest("[data-group]"),i=o.find("[data-selectable]").index(this.$activeOption),o=t.keyCode===u?o.prev("[data-group]"):o.next("[data-group]"),a=o.find("[data-selectable]"),r=a.eq(Math.min(a.length-1,i)),void(r.length&&this.setActiveOption(r)))}}();var i=function(){var e,t=i.width,n=document;return"undefined"==typeof t&&(e=n.createElement("div"),e.innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,n.body.appendChild(e),t=i.width=e.offsetWidth-e.clientWidth,n.body.removeChild(e)),t},r=function(){var r,a,o,s,l,u,d;if(d=e("[data-group]",n.$dropdown_content),a=d.length,a&&n.$dropdown_content.width()){if(t.equalizeHeight){for(o=0,r=0;a>r;r++)o=Math.max(o,d.eq(r).height());d.css({height:o})}t.equalizeWidth&&(u=n.$dropdown_content.innerWidth()-i(),s=Math.round(u/a),d.css({width:s}),a>1&&(l=u-s*(a-1),d.eq(a-1).css({width:l})))}};(t.equalizeHeight||t.equalizeWidth)&&(T.after(this,"positionDropdown",r),T.after(this,"refreshOptions",r))}),P.define("remove_button",function(t){if("single"!==this.settings.mode){t=e.extend({label:"&times;",title:"Remove",className:"remove",append:!0},t);var n=this,i='<a href="javascript:void(0)" class="'+t.className+'" tabindex="-1" title="'+x(t.title)+'">'+t.label+"</a>",r=function(e,t){var n=e.search(/(<\/[^>]+>\s*)$/);return e.substring(0,n)+t+e.substring(n)};this.setup=function(){var a=n.setup;return function(){if(t.append){var o=n.settings.render.item;n.settings.render.item=function(e){return r(o.apply(this,arguments),i)}}a.apply(this,arguments),this.$control.on("click","."+t.className,function(t){if(t.preventDefault(),!n.isLocked){var i=e(t.currentTarget).parent();n.setActiveItem(i),n.deleteSelection()&&n.setCaret(n.items.length)}})}}()}}),P.define("restore_on_backspace",function(e){var t=this;e.text=e.text||function(e){return e[this.settings.labelField]},this.onKeyDown=function(){var n=t.onKeyDown;return function(t){var i,r;return t.keyCode===m&&""===this.$control_input.val()&&!this.$activeItems.length&&(i=this.caretPos-1,i>=0&&i<this.items.length)?(r=this.options[this.items[i]],this.deleteSelection(t)&&(this.setTextboxValue(e.text.apply(this,[r])),this.refreshOptions(!0)),void t.preventDefault()):n.apply(this,arguments)}}()}),P})},function(e,t,n){var i,r;!function(a,o){i=o,r="function"==typeof i?i.call(t,n,t,e):i,!(void 0!==r&&(e.exports=r))}(this,function(){var e=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};e.prototype.tokenize=function(e){if(e=i(String(e||"").toLowerCase()),!e||!e.length)return[];var t,n,a,s,l=[],u=e.split(/ +/);for(t=0,n=u.length;n>t;t++){if(a=r(u[t]),this.settings.diacritics)for(s in o)o.hasOwnProperty(s)&&(a=a.replace(new RegExp(s,"g"),o[s]));l.push({string:u[t],regex:new RegExp(a,"i")})}return l},e.prototype.iterator=function(e,t){var n;n=a(e)?Array.prototype.forEach||function(e){for(var t=0,n=this.length;n>t;t++)e(this[t],t,this)}:function(e){for(var t in this)this.hasOwnProperty(t)&&e(this[t],t,this)},n.apply(e,[t])},e.prototype.getScoreFunction=function(e,t){var n,i,r,a;n=this,e=n.prepareSearch(e,t),r=e.tokens,i=e.options.fields,a=r.length;var o=function(e,t){var n,i;return e?(e=String(e||""),i=e.search(t.regex),-1===i?0:(n=t.string.length/e.length,0===i&&(n+=.5),n)):0},s=function(){var e=i.length;return e?1===e?function(e,t){return o(t[i[0]],e)}:function(t,n){for(var r=0,a=0;e>r;r++)a+=o(n[i[r]],t);return a/e}:function(){return 0}}();return a?1===a?function(e){return s(r[0],e)}:"and"===e.options.conjunction?function(e){for(var t,n=0,i=0;a>n;n++){if(t=s(r[n],e),0>=t)return 0;i+=t}return i/a}:function(e){for(var t=0,n=0;a>t;t++)n+=s(r[t],e);return n/a}:function(){return 0}},e.prototype.getSortFunction=function(e,n){var i,r,a,o,s,l,u,d,c,h,p;if(a=this,e=a.prepareSearch(e,n),p=!e.query&&n.sort_empty||n.sort,c=function(e,t){return"$score"===e?t.score:a.items[t.id][e]},s=[],p)for(i=0,r=p.length;r>i;i++)(e.query||"$score"!==p[i].field)&&s.push(p[i]);if(e.query){for(h=!0,i=0,r=s.length;r>i;i++)if("$score"===s[i].field){h=!1;break}h&&s.unshift({field:"$score",direction:"desc"})}else for(i=0,r=s.length;r>i;i++)if("$score"===s[i].field){s.splice(i,1);break}for(d=[],i=0,r=s.length;r>i;i++)d.push("desc"===s[i].direction?-1:1);return l=s.length,l?1===l?(o=s[0].field,u=d[0],function(e,n){return u*t(c(o,e),c(o,n))}):function(e,n){var i,r,a;for(i=0;l>i;i++)if(a=s[i].field,r=d[i]*t(c(a,e),c(a,n)))return r;return 0}:null},e.prototype.prepareSearch=function(e,t){if("object"==typeof e)return e;t=n({},t);var i=t.fields,r=t.sort,o=t.sort_empty;return i&&!a(i)&&(t.fields=[i]),r&&!a(r)&&(t.sort=[r]),o&&!a(o)&&(t.sort_empty=[o]),{options:t,query:String(e||"").toLowerCase(),tokens:this.tokenize(e),total:0,items:[]}},e.prototype.search=function(e,t){var n,i,r,a,o=this;return i=this.prepareSearch(e,t),t=i.options,e=i.query,a=t.score||o.getScoreFunction(i),e.length?o.iterator(o.items,function(e,r){n=a(e),(t.filter===!1||n>0)&&i.items.push({score:n,id:r})}):o.iterator(o.items,function(e,t){i.items.push({score:1,id:t})}),r=o.getSortFunction(i,t),r&&i.items.sort(r),i.total=i.items.length,"number"==typeof t.limit&&(i.items=i.items.slice(0,t.limit)),i};var t=function(e,t){return"number"==typeof e&&"number"==typeof t?e>t?1:t>e?-1:0:(e=s(String(e||"")),t=s(String(t||"")),e>t?1:t>e?-1:0)},n=function(e,t){var n,i,r,a;for(n=1,i=arguments.length;i>n;n++)if(a=arguments[n])for(r in a)a.hasOwnProperty(r)&&(e[r]=a[r]);return e},i=function(e){return(e+"").replace(/^\s+|\s+$|/g,"")},r=function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},a=Array.isArray||"undefined"!=typeof $&&$.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o={a:"[aÀÁÂÃÄÅàáâãäåĀāąĄ]",c:"[cÇçćĆčČ]",d:"[dđĐďĎð]",e:"[eÈÉÊËèéêëěĚĒēęĘ]",i:"[iÌÍÎÏìíîïĪī]",l:"[lłŁ]",n:"[nÑñňŇńŃ]",o:"[oÒÓÔÕÕÖØòóôõöøŌō]",r:"[rřŘ]",s:"[sŠšśŚ]",t:"[tťŤ]",u:"[uÙÚÛÜùúûüůŮŪū]",y:"[yŸÿýÝ]",z:"[zŽžżŻźŹ]"},s=function(){var e,t,n,i,r="",a={};for(n in o)if(o.hasOwnProperty(n))for(i=o[n].substring(2,o[n].length-1),r+=i,e=0,t=i.length;t>e;e++)a[i.charAt(e)]=n;var s=new RegExp("["+r+"]","g");return function(e){return e.replace(s,function(e){return a[e]}).toLowerCase()}}();return e})},function(e,t,n){var i,r;!function(a,o){i=o,r="function"==typeof i?i.call(t,n,t,e):i,!(void 0!==r&&(e.exports=r))}(this,function(){var e={};e.mixin=function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,i,r,a=this,o=[];if(a.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,i=e.length;i>n;n++)"string"==typeof e[n]?o.push(e[n]):(a.plugins.settings[e[n].name]=e[n].options,o.push(e[n].name));else if(e)for(r in e)e.hasOwnProperty(r)&&(a.plugins.settings[r]=e[r],o.push(r));for(;o.length;)a.require(o.shift())},e.prototype.loadPlugin=function(t){var n=this,i=n.plugins,r=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');i.requested[t]=!0,i.loaded[t]=r.fn.apply(n,[n.plugins.settings[t]||{}]),i.names.push(t)},e.prototype.require=function(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]},e.define=function(t,n){e.plugins[t]={name:t,fn:n}}};var t={isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}};return e})},,,,function(e,t,n){var i,r;/**
* speakingurl
* @version v9.0.0
* @link http://pid.github.io/speakingurl/
* @license BSD
* @author Sascha Droste
*/
!function(n,a){"use strict";var o=function(e,t){var n,i,r,a,o,s,d,c,h,p,f,m,g,v,y,_="-",D=[";","?",":","@","&","=","+","$",",","/"],w=[";","?",":","@","&","=","+","$",","],b=[".","!","~","*","'","(",")"],L="",M="",C=!0,x={},k={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","“":'"',"”":'"',"":"'","":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF"},T=["်","ް"],S={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},E={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},Y={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cz:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mene jako",">":"vice jako","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}};if("string"!=typeof e)return"";if("string"==typeof t&&(_=t),d=Y.en,c=E.en,"object"==typeof t){n=t.maintainCase||!1,x=t.custom&&"object"==typeof t.custom?t.custom:x,r=+t.truncate>1&&t.truncate||!1,a=t.uric||!1,o=t.uricNoSlash||!1,s=t.mark||!1,C=t.symbols!==!1&&t.lang!==!1,_=t.separator||_,a&&(y+=D.join("")),o&&(y+=w.join("")),s&&(y+=b.join("")),d=t.lang&&Y[t.lang]&&C?Y[t.lang]:C?Y.en:{},c=t.lang&&E[t.lang]?E[t.lang]:t.lang===!1||t.lang===!0?{}:E.en,t.titleCase&&"number"==typeof t.titleCase.length&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){x[e+""]=e+""}),i=!0):i=!!t.titleCase,t.custom&&"number"==typeof t.custom.length&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){x[e+""]=e+""}),Object.keys(x).forEach(function(t){var n;n=t.length>1?new RegExp("\\b"+l(t)+"\\b","gi"):new RegExp(l(t),"gi"),e=e.replace(n,x[t])});for(f in x)y+=f}for(y+=_,y=l(y),e=e.replace(/(^\s+|\s+$)/g,""),g=!1,v=!1,p=0,m=e.length;m>p;p++)f=e[p],u(f,x)?g=!1:c[f]?(f=g&&c[f].match(/[A-Za-z0-9]/)?" "+c[f]:c[f],g=!1):f in k?(m>p+1&&T.indexOf(e[p+1])>=0?(M+=f,f=""):v===!0?(f=S[M]+k[f],M=""):f=g&&k[f].match(/[A-Za-z0-9]/)?" "+k[f]:k[f],g=!1,v=!1):f in S?(M+=f,f="",p===m-1&&(f=S[M]),v=!0):!d[f]||a&&-1!==D.join("").indexOf(f)||o&&-1!==w.join("").indexOf(f)?(v===!0?(f=S[M]+f,M="",v=!1):g&&(/[A-Za-z0-9]/.test(f)||L.substr(-1).match(/A-Za-z0-9]/))&&(f=" "+f),g=!1):(f=g||L.substr(-1).match(/[A-Za-z0-9]/)?_+d[f]:d[f],f+=void 0!==e[p+1]&&e[p+1].match(/[A-Za-z0-9]/)?_:"",g=!0),L+=f.replace(new RegExp("[^\\w\\s"+y+"_-]","g"),_);return i&&(L=L.replace(/(\w)(\S*)/g,function(e,t,n){var i=t.toUpperCase()+(null!==n?n:"");return Object.keys(x).indexOf(i.toLowerCase())<0?i:i.toLowerCase()})),L=L.replace(/\s+/g,_).replace(new RegExp("\\"+_+"+","g"),_).replace(new RegExp("(^\\"+_+"+|\\"+_+"+$)","g"),""),r&&L.length>r&&(h=L.charAt(r)===_,L=L.slice(0,r),h||(L=L.slice(0,L.lastIndexOf(_)))),n||i||(L=L.toLowerCase()),L},s=function(e){return function(t){return o(t,e)}},l=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},u=function(e,t){for(var n in t)if(t[n]===e)return!0};"undefined"!=typeof e&&e.exports?(e.exports=o,e.exports.createSlug=s):(i=[],r=function(){return o}.apply(t,i),!(void 0!==r&&(e.exports=r)))}(this)},,,,,function(e,t,n){(function(e){(function(){var t,n,i,r,a,o,s,l,u=[].slice,d={}.hasOwnProperty,c=function(e,t){function n(){this.constructor=e}for(var i in t)d.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};s=function(){},n=function(){function e(){}return e.prototype.addEventListener=e.prototype.on,e.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},e.prototype.emit=function(){var e,t,n,i,r,a;if(i=arguments[0],e=2<=arguments.length?u.call(arguments,1):[],this._callbacks=this._callbacks||{},n=this._callbacks[i])for(r=0,a=n.length;a>r;r++)t=n[r],t.apply(this,e);return this},e.prototype.removeListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.off=function(e,t){var n,i,r,a,o;if(!this._callbacks||0===arguments.length)return this._callbacks={},this;if(i=this._callbacks[e],!i)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(r=a=0,o=i.length;o>a;r=++a)if(n=i[r],n===t){i.splice(r,1);break}return this},e}(),t=function(e){function t(e,n){var r,a,o;if(this.element=e,this.version=t.version,this.defaultOptions.previewTemplate=this.defaultOptions.previewTemplate.replace(/\n*/g,""),this.clickableElements=[],this.listeners=[],this.files=[],"string"==typeof this.element&&(this.element=document.querySelector(this.element)),!this.element||null==this.element.nodeType)throw new Error("Invalid dropzone element.");if(this.element.dropzone)throw new Error("Dropzone already attached.");if(t.instances.push(this),this.element.dropzone=this,r=null!=(o=t.optionsForElement(this.element))?o:{},this.options=i({},this.defaultOptions,r,null!=n?n:{}),this.options.forceFallback||!t.isBrowserSupported())return this.options.fallback.call(this);if(null==this.options.url&&(this.options.url=this.element.getAttribute("action")),!this.options.url)throw new Error("No URL provided.");if(this.options.acceptedFiles&&this.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");this.options.acceptedMimeTypes&&(this.options.acceptedFiles=this.options.acceptedMimeTypes,delete this.options.acceptedMimeTypes),this.options.method=this.options.method.toUpperCase(),(a=this.getExistingFallback())&&a.parentNode&&a.parentNode.removeChild(a),this.options.previewsContainer!==!1&&(this.options.previewsContainer?this.previewsContainer=t.getElement(this.options.previewsContainer,"previewsContainer"):this.previewsContainer=this.element),this.options.clickable&&(this.options.clickable===!0?this.clickableElements=[this.element]:this.clickableElements=t.getElements(this.options.clickable,"clickable")),this.init()}var i,r;return c(t,e),t.prototype.Emitter=n,t.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],t.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,parallelUploads:2,uploadMultiple:!1,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,filesizeBase:1e3,maxFiles:null,params:{},clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",accept:function(e,t){return t()},init:function(){return s},forceFallback:!1,fallback:function(){var e,n,i,r,a,o;for(this.element.className=""+this.element.className+" dz-browser-not-supported",o=this.element.getElementsByTagName("div"),r=0,a=o.length;a>r;r++)e=o[r],/(^| )dz-message($| )/.test(e.className)&&(n=e,e.className="dz-message");return n||(n=t.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(n)),i=n.getElementsByTagName("span")[0],i&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,i;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),i=t.optWidth/t.optHeight,e.height<t.optHeight||e.width<t.optWidth?(t.trgHeight=t.srcHeight,t.trgWidth=t.srcWidth):n>i?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*i):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/i),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:s,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:s,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,i,r,a,o,s,l,u,d,c,h,p,f;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),c=e.previewElement.querySelectorAll("[data-dz-name]"),a=0,l=c.length;l>a;a++)n=c[a],n.textContent=this._renameFilename(e.name);for(h=e.previewElement.querySelectorAll("[data-dz-size]"),o=0,u=h.length;u>o;o++)n=h[o],n.innerHTML=this.filesize(e.size);for(this.options.addRemoveLinks&&(e._removeLink=t.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink)),i=function(n){return function(i){return i.preventDefault(),i.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),p=e.previewElement.querySelectorAll("[data-dz-remove]"),f=[],s=0,d=p.length;d>s;s++)r=p[s],f.push(r.addEventListener("click",i));return f}},removedfile:function(e){var t;return e.previewElement&&null!=(t=e.previewElement)&&t.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){var n,i,r,a;if(e.previewElement){for(e.previewElement.classList.remove("dz-file-preview"),a=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),i=0,r=a.length;r>i;i++)n=a[i],n.alt=e.name,n.src=t;return setTimeout(function(t){return function(){return e.previewElement.classList.add("dz-image-preview")}}(this),1)}},error:function(e,t){var n,i,r,a,o;if(e.previewElement){for(e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error),a=e.previewElement.querySelectorAll("[data-dz-errormessage]"),o=[],i=0,r=a.length;r>i;i++)n=a[i],o.push(n.textContent=t);return o}},errormultiple:s,processing:function(e){return e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink)?e._removeLink.textContent=this.options.dictCancelUpload:void 0},processingmultiple:s,uploadprogress:function(e,t,n){var i,r,a,o,s;if(e.previewElement){for(o=e.previewElement.querySelectorAll("[data-dz-uploadprogress]"),s=[],r=0,a=o.length;a>r;r++)i=o[r],"PROGRESS"===i.nodeName?s.push(i.value=t):s.push(i.style.width=""+t+"%");return s}},totaluploadprogress:s,sending:s,sendingmultiple:s,success:function(e){return e.previewElement?e.previewElement.classList.add("dz-success"):void 0},successmultiple:s,canceled:function(e){return this.emit("error",e,"Upload canceled.")},canceledmultiple:s,complete:function(e){return e._removeLink&&(e._removeLink.textContent=this.options.dictRemoveFile),e.previewElement?e.previewElement.classList.add("dz-complete"):void 0},completemultiple:s,maxfilesexceeded:s,maxfilesreached:s,queuecomplete:s,addedfiles:s,previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>'},i=function(){var e,t,n,i,r,a,o;for(i=arguments[0],n=2<=arguments.length?u.call(arguments,1):[],a=0,o=n.length;o>a;a++){t=n[a];for(e in t)r=t[e],i[e]=r}return i},t.prototype.getAcceptedFiles=function(){var e,t,n,i,r;for(i=this.files,r=[],t=0,n=i.length;n>t;t++)e=i[t],e.accepted&&r.push(e);return r},t.prototype.getRejectedFiles=function(){var e,t,n,i,r;for(i=this.files,r=[],t=0,n=i.length;n>t;t++)e=i[t],e.accepted||r.push(e);return r},t.prototype.getFilesWithStatus=function(e){var t,n,i,r,a;for(r=this.files,a=[],n=0,i=r.length;i>n;n++)t=r[n],t.status===e&&a.push(t);return a},t.prototype.getQueuedFiles=function(){return this.getFilesWithStatus(t.QUEUED)},t.prototype.getUploadingFiles=function(){return this.getFilesWithStatus(t.UPLOADING)},t.prototype.getAddedFiles=function(){return this.getFilesWithStatus(t.ADDED)},t.prototype.getActiveFiles=function(){var e,n,i,r,a;for(r=this.files,a=[],n=0,i=r.length;i>n;n++)e=r[n],e.status!==t.UPLOADING&&e.status!==t.QUEUED||a.push(e);return a},t.prototype.init=function(){var e,n,i,r,a,o,s;for("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(t.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length&&(i=function(e){return function(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null==e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!=e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!=e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.querySelector(e.options.hiddenInputContainer).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var t,n,r,a;if(n=e.hiddenFileInput.files,n.length)for(r=0,a=n.length;a>r;r++)t=n[r],e.addFile(t);return e.emit("addedfiles",n),i()})}}(this))(),this.URL=null!=(o=window.URL)?o:window.webkitURL,s=this.events,r=0,a=s.length;a>r;r++)e=s[r],this.on(e,this.options[e]);return this.on("uploadprogress",function(e){return function(){return e.updateTotalUploadProgress()}}(this)),this.on("removedfile",function(e){return function(){return e.updateTotalUploadProgress()}}(this)),this.on("canceled",function(e){return function(t){return e.emit("complete",t)}}(this)),this.on("complete",function(e){return function(t){return 0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length?setTimeout(function(){return e.emit("queuecomplete")},0):void 0}}(this)),n=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1},this.listeners=[{element:this.element,events:{dragstart:function(e){return function(t){return e.emit("dragstart",t)}}(this),dragenter:function(e){return function(t){return n(t),e.emit("dragenter",t)}}(this),dragover:function(e){return function(t){var i;try{i=t.dataTransfer.effectAllowed}catch(r){}return t.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy",n(t),e.emit("dragover",t)}}(this),dragleave:function(e){return function(t){return e.emit("dragleave",t)}}(this),drop:function(e){return function(t){return n(t),e.drop(t)}}(this),dragend:function(e){return function(t){return e.emit("dragend",t)}}(this)}}],this.clickableElements.forEach(function(e){return function(n){return e.listeners.push({element:n,events:{click:function(i){return(n!==e.element||i.target===e.element||t.elementInside(i.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})}}(this)),this.enable(),this.options.init.call(this)},t.prototype.destroy=function(){var e;return this.disable(),this.removeAllFiles(!0),(null!=(e=this.hiddenFileInput)?e.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,t.instances.splice(t.instances.indexOf(this),1)},t.prototype.updateTotalUploadProgress=function(){var e,t,n,i,r,a,o,s;if(i=0,n=0,e=this.getActiveFiles(),e.length){for(s=this.getActiveFiles(),a=0,o=s.length;o>a;a++)t=s[a],i+=t.upload.bytesSent,n+=t.upload.total;r=100*i/n}else r=100;return this.emit("totaluploadprogress",r,n,i)},t.prototype._getParamName=function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):""+this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")},t.prototype._renameFilename=function(e){return"function"!=typeof this.options.renameFilename?e:this.options.renameFilename(e)},t.prototype.getFallbackForm=function(){var e,n,i,r;return(e=this.getExistingFallback())?e:(i='<div class="dz-fallback">',this.options.dictFallbackText&&(i+="<p>"+this.options.dictFallbackText+"</p>"),i+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>',n=t.createElement(i),"FORM"!==this.element.tagName?(r=t.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>'),r.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=r?r:n)},t.prototype.getExistingFallback=function(){var e,t,n,i,r,a;for(t=function(e){var t,n,i;for(n=0,i=e.length;i>n;n++)if(t=e[n],/(^| )fallback($| )/.test(t.className))return t},a=["div","form"],i=0,r=a.length;r>i;i++)if(n=a[i],e=t(this.element.getElementsByTagName(n)))return e},t.prototype.setupEventListeners=function(){var e,t,n,i,r,a,o;for(a=this.listeners,o=[],i=0,r=a.length;r>i;i++)e=a[i],o.push(function(){var i,r;i=e.events,r=[];for(t in i)n=i[t],r.push(e.element.addEventListener(t,n,!1));return r}());return o},t.prototype.removeEventListeners=function(){var e,t,n,i,r,a,o;for(a=this.listeners,o=[],i=0,r=a.length;r>i;i++)e=a[i],o.push(function(){var i,r;i=e.events,r=[];for(t in i)n=i[t],r.push(e.element.removeEventListener(t,n,!1));return r}());return o},t.prototype.disable=function(){var e,t,n,i,r;for(this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),i=this.files,r=[],t=0,n=i.length;n>t;t++)e=i[t],r.push(this.cancelUpload(e));return r},t.prototype.enable=function(){return this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()},t.prototype.filesize=function(e){var t,n,i,r,a,o,s,l;if(i=0,r="b",e>0){for(o=["TB","GB","MB","KB","b"],n=s=0,l=o.length;l>s;n=++s)if(a=o[n],t=Math.pow(this.options.filesizeBase,4-n)/10,e>=t){i=e/Math.pow(this.options.filesizeBase,4-n),r=a;break}i=Math.round(10*i)/10}return"<strong>"+i+"</strong> "+r},t.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},t.prototype.drop=function(e){var t,n;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length&&(n=e.dataTransfer.items,n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)))},t.prototype.paste=function(e){var t,n;if(null!=(null!=e&&null!=(n=e.clipboardData)?n.items:void 0))return this.emit("paste",e),t=e.clipboardData.items,
t.length?this._addFilesFromItems(t):void 0},t.prototype.handleFiles=function(e){var t,n,i,r;for(r=[],n=0,i=e.length;i>n;n++)t=e[n],r.push(this.addFile(t));return r},t.prototype._addFilesFromItems=function(e){var t,n,i,r,a;for(a=[],i=0,r=e.length;r>i;i++)n=e[i],null!=n.webkitGetAsEntry&&(t=n.webkitGetAsEntry())?t.isFile?a.push(this.addFile(n.getAsFile())):t.isDirectory?a.push(this._addFilesFromDirectory(t,t.name)):a.push(void 0):null!=n.getAsFile&&(null==n.kind||"file"===n.kind)?a.push(this.addFile(n.getAsFile())):a.push(void 0);return a},t.prototype._addFilesFromDirectory=function(e,t){var n,i,r;return n=e.createReader(),i=function(e){return"undefined"!=typeof console&&null!==console&&"function"==typeof console.log?console.log(e):void 0},(r=function(e){return function(){return n.readEntries(function(n){var i,a,o;if(n.length>0){for(a=0,o=n.length;o>a;a++)i=n[a],i.isFile?i.file(function(n){return e.options.ignoreHiddenFiles&&"."===n.name.substring(0,1)?void 0:(n.fullPath=""+t+"/"+n.name,e.addFile(n))}):i.isDirectory&&e._addFilesFromDirectory(i,""+t+"/"+i.name);r()}return null},i)}}(this))()},t.prototype.accept=function(e,n){return e.size>1024*this.options.maxFilesize*1024?n(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):t.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(n(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,n):n(this.options.dictInvalidFileType)},t.prototype.addFile=function(e){return e.upload={progress:0,total:e.size,bytesSent:0},this.files.push(e),e.status=t.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){return function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}}(this))},t.prototype.enqueueFiles=function(e){var t,n,i;for(n=0,i=e.length;i>n;n++)t=e[n],this.enqueueFile(t);return null},t.prototype.enqueueFile=function(e){if(e.status!==t.ADDED||e.accepted!==!0)throw new Error("This file can't be queued because it has already been processed or was rejected.");return e.status=t.QUEUED,this.options.autoProcessQueue?setTimeout(function(e){return function(){return e.processQueue()}}(this),0):void 0},t.prototype._thumbnailQueue=[],t.prototype._processingThumbnail=!1,t.prototype._enqueueThumbnail=function(e){return this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024?(this._thumbnailQueue.push(e),setTimeout(function(e){return function(){return e._processThumbnailQueue()}}(this),0)):void 0},t.prototype._processThumbnailQueue=function(){return this._processingThumbnail||0===this._thumbnailQueue.length?void 0:(this._processingThumbnail=!0,this.createThumbnail(this._thumbnailQueue.shift(),function(e){return function(){return e._processingThumbnail=!1,e._processThumbnailQueue()}}(this)))},t.prototype.removeFile=function(e){return e.status===t.UPLOADING&&this.cancelUpload(e),this.files=l(this.files,e),this.emit("removedfile",e),0===this.files.length?this.emit("reset"):void 0},t.prototype.removeAllFiles=function(e){var n,i,r,a;for(null==e&&(e=!1),a=this.files.slice(),i=0,r=a.length;r>i;i++)n=a[i],(n.status!==t.UPLOADING||e)&&this.removeFile(n);return null},t.prototype.createThumbnail=function(e,t){var n;return n=new FileReader,n.onload=function(i){return function(){return"image/svg+xml"===e.type?(i.emit("thumbnail",e,n.result),void(null!=t&&t())):i.createThumbnailFromUrl(e,n.result,t)}}(this),n.readAsDataURL(e)},t.prototype.createThumbnailFromUrl=function(e,t,n,i){var r;return r=document.createElement("img"),i&&(r.crossOrigin=i),r.onload=function(t){return function(){var i,a,s,l,u,d,c,h;return e.width=r.width,e.height=r.height,s=t.options.resize.call(t,e),null==s.trgWidth&&(s.trgWidth=s.optWidth),null==s.trgHeight&&(s.trgHeight=s.optHeight),i=document.createElement("canvas"),a=i.getContext("2d"),i.width=s.trgWidth,i.height=s.trgHeight,o(a,r,null!=(u=s.srcX)?u:0,null!=(d=s.srcY)?d:0,s.srcWidth,s.srcHeight,null!=(c=s.trgX)?c:0,null!=(h=s.trgY)?h:0,s.trgWidth,s.trgHeight),l=i.toDataURL("image/png"),t.emit("thumbnail",e,l),null!=n?n():void 0}}(this),null!=n&&(r.onerror=n),r.src=t},t.prototype.processQueue=function(){var e,t,n,i;if(t=this.options.parallelUploads,n=this.getUploadingFiles().length,e=n,!(n>=t)&&(i=this.getQueuedFiles(),i.length>0)){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-n));for(;t>e;){if(!i.length)return;this.processFile(i.shift()),e++}}},t.prototype.processFile=function(e){return this.processFiles([e])},t.prototype.processFiles=function(e){var n,i,r;for(i=0,r=e.length;r>i;i++)n=e[i],n.processing=!0,n.status=t.UPLOADING,this.emit("processing",n);return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)},t.prototype._getFilesWithXhr=function(e){var t,n;return n=function(){var n,i,r,a;for(r=this.files,a=[],n=0,i=r.length;i>n;n++)t=r[n],t.xhr===e&&a.push(t);return a}.call(this)},t.prototype.cancelUpload=function(e){var n,i,r,a,o,s,l;if(e.status===t.UPLOADING){for(i=this._getFilesWithXhr(e.xhr),r=0,o=i.length;o>r;r++)n=i[r],n.status=t.CANCELED;for(e.xhr.abort(),a=0,s=i.length;s>a;a++)n=i[a],this.emit("canceled",n);this.options.uploadMultiple&&this.emit("canceledmultiple",i)}else(l=e.status)!==t.ADDED&&l!==t.QUEUED||(e.status=t.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));return this.options.autoProcessQueue?this.processQueue():void 0},r=function(){var e,t;return t=arguments[0],e=2<=arguments.length?u.call(arguments,1):[],"function"==typeof t?t.apply(this,e):t},t.prototype.uploadFile=function(e){return this.uploadFiles([e])},t.prototype.uploadFiles=function(e){var n,a,o,s,l,u,d,c,h,p,f,m,g,v,y,_,D,w,b,L,M,C,x,k,T,S,E,Y,A,F,O,I,B,P;for(b=new XMLHttpRequest,L=0,k=e.length;k>L;L++)n=e[L],n.xhr=b;m=r(this.options.method,e),D=r(this.options.url,e),b.open(m,D,!0),b.withCredentials=!!this.options.withCredentials,y=null,o=function(t){return function(){var i,r,a;for(a=[],i=0,r=e.length;r>i;i++)n=e[i],a.push(t._errorProcessing(e,y||t.options.dictResponseError.replace("{{statusCode}}",b.status),b));return a}}(this),_=function(t){return function(i){var r,a,o,s,l,u,d,c,h;if(null!=i)for(a=100*i.loaded/i.total,o=0,u=e.length;u>o;o++)n=e[o],n.upload={progress:a,total:i.total,bytesSent:i.loaded};else{for(r=!0,a=100,s=0,d=e.length;d>s;s++)n=e[s],100===n.upload.progress&&n.upload.bytesSent===n.upload.total||(r=!1),n.upload.progress=a,n.upload.bytesSent=n.upload.total;if(r)return}for(h=[],l=0,c=e.length;c>l;l++)n=e[l],h.push(t.emit("uploadprogress",n,a,n.upload.bytesSent));return h}}(this),b.onload=function(n){return function(i){var r;if(e[0].status!==t.CANCELED&&4===b.readyState){if(y=b.responseText,b.getResponseHeader("content-type")&&~b.getResponseHeader("content-type").indexOf("application/json"))try{y=JSON.parse(y)}catch(a){i=a,y="Invalid JSON response from server."}return _(),200<=(r=b.status)&&300>r?n._finished(e,y,i):o()}}}(this),b.onerror=function(n){return function(){return e[0].status!==t.CANCELED?o():void 0}}(this),v=null!=(A=b.upload)?A:b,v.onprogress=_,u={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"},this.options.headers&&i(u,this.options.headers);for(s in u)l=u[s],l&&b.setRequestHeader(s,l);if(a=new FormData,this.options.params){F=this.options.params;for(f in F)w=F[f],a.append(f,w)}for(M=0,T=e.length;T>M;M++)n=e[M],this.emit("sending",n,b,a);if(this.options.uploadMultiple&&this.emit("sendingmultiple",e,b,a),"FORM"===this.element.tagName)for(O=this.element.querySelectorAll("input, textarea, select, button"),C=0,S=O.length;S>C;C++)if(c=O[C],h=c.getAttribute("name"),p=c.getAttribute("type"),"SELECT"===c.tagName&&c.hasAttribute("multiple"))for(I=c.options,x=0,E=I.length;E>x;x++)g=I[x],g.selected&&a.append(h,g.value);else(!p||"checkbox"!==(B=p.toLowerCase())&&"radio"!==B||c.checked)&&a.append(h,c.value);for(d=Y=0,P=e.length-1;P>=0?P>=Y:Y>=P;d=P>=0?++Y:--Y)a.append(this._getParamName(d),e[d],this._renameFilename(e[d].name));return this.submitRequest(b,a,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,i){var r,a,o;for(a=0,o=e.length;o>a;a++)r=e[a],r.status=t.SUCCESS,this.emit("success",r,n,i),this.emit("complete",r);return this.options.uploadMultiple&&(this.emit("successmultiple",e,n,i),this.emit("completemultiple",e)),this.options.autoProcessQueue?this.processQueue():void 0},t.prototype._errorProcessing=function(e,n,i){var r,a,o;for(a=0,o=e.length;o>a;a++)r=e[a],r.status=t.ERROR,this.emit("error",r,n,i),this.emit("complete",r);return this.options.uploadMultiple&&(this.emit("errormultiple",e,n,i),this.emit("completemultiple",e)),this.options.autoProcessQueue?this.processQueue():void 0},t}(n),t.version="4.3.0",t.options={},t.optionsForElement=function(e){return e.getAttribute("id")?t.options[i(e.getAttribute("id"))]:void 0},t.instances=[],t.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},t.autoDiscover=!0,t.discover=function(){var e,n,i,r,a,o;for(document.querySelectorAll?i=document.querySelectorAll(".dropzone"):(i=[],e=function(e){var t,n,r,a;for(a=[],n=0,r=e.length;r>n;n++)t=e[n],/(^| )dropzone($| )/.test(t.className)?a.push(i.push(t)):a.push(void 0);return a},e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))),o=[],r=0,a=i.length;a>r;r++)n=i[r],t.optionsForElement(n)!==!1?o.push(new t(n)):o.push(void 0);return o},t.blacklistedBrowsers=[/opera.*Macintosh.*version\/12/i],t.isBrowserSupported=function(){var e,n,i,r,a;if(e=!0,window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(a=t.blacklistedBrowsers,i=0,r=a.length;r>i;i++)n=a[i],n.test(navigator.userAgent)&&(e=!1);else e=!1;else e=!1;return e},l=function(e,t){var n,i,r,a;for(a=[],i=0,r=e.length;r>i;i++)n=e[i],n!==t&&a.push(n);return a},i=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})},t.createElement=function(e){var t;return t=document.createElement("div"),t.innerHTML=e,t.childNodes[0]},t.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},t.getElement=function(e,t){var n;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},t.getElements=function(e,t){var n,i,r,a,o,s,l,u;if(e instanceof Array){r=[];try{for(a=0,s=e.length;s>a;a++)i=e[a],r.push(this.getElement(i,t))}catch(d){n=d,r=null}}else if("string"==typeof e)for(r=[],u=document.querySelectorAll(e),o=0,l=u.length;l>o;o++)i=u[o],r.push(i);else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},t.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},t.isValidFile=function(e,t){var n,i,r,a,o;if(!t)return!0;for(t=t.split(","),i=e.type,n=i.replace(/\/.*$/,""),a=0,o=t.length;o>a;a++)if(r=t[a],r=r.trim(),"."===r.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(r.toLowerCase(),e.name.length-r.length))return!0}else if(/\/\*$/.test(r)){if(n===r.replace(/\/.*$/,""))return!0}else if(i===r)return!0;return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new t(this,e)})}),"undefined"!=typeof e&&null!==e?e.exports=t:window.Dropzone=t,t.ADDED="added",t.QUEUED="queued",t.ACCEPTED=t.QUEUED,t.UPLOADING="uploading",t.PROCESSING=t.UPLOADING,t.CANCELED="canceled",t.ERROR="error",t.SUCCESS="success",a=function(e){var t,n,i,r,a,o,s,l,u,d;for(s=e.naturalWidth,o=e.naturalHeight,n=document.createElement("canvas"),n.width=1,n.height=o,i=n.getContext("2d"),i.drawImage(e,0,0),r=i.getImageData(0,0,1,o).data,d=0,a=o,l=o;l>d;)t=r[4*(l-1)+3],0===t?a=l:d=l,l=a+d>>1;return u=l/o,0===u?1:u},o=function(e,t,n,i,r,o,s,l,u,d){var c;return c=a(t),e.drawImage(t,n,i,r,o,s,l,u,d/c)},r=function(e,t){var n,i,r,a,o,s,l,u,d;if(r=!1,d=!0,i=e.document,u=i.documentElement,n=i.addEventListener?"addEventListener":"attachEvent",l=i.addEventListener?"removeEventListener":"detachEvent",s=i.addEventListener?"":"on",a=function(n){return"readystatechange"!==n.type||"complete"===i.readyState?(("load"===n.type?e:i)[l](s+n.type,a,!1),!r&&(r=!0)?t.call(e,n.type||n):void 0):void 0},o=function(){var e;try{u.doScroll("left")}catch(t){return e=t,void setTimeout(o,50)}return a("poll")},"complete"!==i.readyState){if(i.createEventObject&&u.doScroll){try{d=!e.frameElement}catch(c){}d&&o()}return i[n](s+"DOMContentLoaded",a,!1),i[n](s+"readystatechange",a,!1),e[n](s+"load",a,!1)}},t._autoDiscoverFunction=function(){return t.autoDiscover?t.discover():void 0},r(window,t._autoDiscoverFunction)}).call(this)}).call(t,n(335)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},,,function(e,t,n){!function(t){e.exports=t()}(function(){"use strict";function e(n,i){if(!(this instanceof e))return new e(n,i);this.options=i=i?Pr(i):{},Pr(Za,i,!1),p(i);var r=i.value;"string"==typeof r&&(r=new Mo(r,i.mode,null,i.lineSeparator)),this.doc=r;var a=new e.inputStyles[i.inputStyle](this),o=this.display=new t(n,r,a);o.wrapper.CodeMirror=this,u(this),s(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),i.autofocus&&!Ta&&o.input.focus(),v(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Er,keySeq:null,specialChars:null};var l=this;ya&&11>_a&&setTimeout(function(){l.display.input.reset(!0)},20),Ht(this),Kr(),Dt(this),this.curOp.forceUpdate=!0,Ji(this,r),i.autofocus&&!Ta||l.hasFocus()?setTimeout(Nr(vn,this),20):yn(this);for(var d in eo)eo.hasOwnProperty(d)&&eo[d](this,i[d],to);b(this),i.finishInit&&i.finishInit(this);for(var c=0;c<ao.length;++c)ao[c](this);bt(this),Da&&i.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function t(e,t,n){var i=this;this.input=n,i.scrollbarFiller=Hr("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=Hr("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=Hr("div",null,"CodeMirror-code"),i.selectionDiv=Hr("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=Hr("div",null,"CodeMirror-cursors"),i.measure=Hr("div",null,"CodeMirror-measure"),i.lineMeasure=Hr("div",null,"CodeMirror-measure"),i.lineSpace=Hr("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none"),i.mover=Hr("div",[Hr("div",[i.lineSpace],"CodeMirror-lines")],null,"position: relative"),i.sizer=Hr("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=Hr("div",null,null,"position: absolute; height: "+Io+"px; width: 1px;"),i.gutters=Hr("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=Hr("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=Hr("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),ya&&8>_a&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),Da||ma&&Ta||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,n.init(i)}function n(t){t.doc.mode=e.getMode(t.options,t.doc.modeOption),i(t)}function i(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.frontier=e.doc.first,je(e,100),e.state.modeGen++,e.curOp&&It(e)}function r(e){e.options.lineWrapping?(Qo(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Xo(e.display.wrapper,"CodeMirror-wrap"),h(e)),o(e),It(e),st(e),setTimeout(function(){y(e)},100)}function a(e){var t=yt(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/_t(e.display)-3);return function(r){if(bi(e.doc,r))return 0;var a=0;if(r.widgets)for(var o=0;o<r.widgets.length;o++)r.widgets[o].height&&(a+=r.widgets[o].height);return n?a+(Math.ceil(r.text.length/i)||1)*t:a+t}}function o(e){var t=e.doc,n=a(e);t.iter(function(e){var t=n(e);t!=e.height&&er(e,t)})}function s(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),st(e)}function l(e){u(e),It(e),setTimeout(function(){w(e)},20)}function u(e){var t=e.display.gutters,n=e.options.gutters;Rr(t);for(var i=0;i<n.length;++i){var r=n[i],a=t.appendChild(Hr("div",null,"CodeMirror-gutter "+r));"CodeMirror-linenumbers"==r&&(e.display.lineGutter=a,a.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=i?"":"none",d(e)}function d(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function c(e){if(0==e.height)return 0;for(var t,n=e.text.length,i=e;t=mi(i);){var r=t.find(0,!0);i=r.from.line,n+=r.from.ch-r.to.ch}for(i=e;t=gi(i);){var r=t.find(0,!0);n-=i.text.length-r.from.ch,i=r.to.line,n+=i.text.length-r.to.ch}return n}function h(e){var t=e.display,n=e.doc;t.maxLine=Xi(n,n.first),t.maxLineLength=c(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=c(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function p(e){var t=Fr(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function f(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+$e(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Ge(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function m(e,t,n){this.cm=n;var i=this.vert=Hr("div",[Hr("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=Hr("div",[Hr("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(i),e(r),Eo(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),Eo(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ya&&8>_a&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function g(){}function v(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&Xo(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new e.scrollbarModel[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),Eo(e,"mousedown",function(){t.state.focused&&setTimeout(function(){t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?an(t,e):rn(t,e)},t),t.display.scrollbars.addClass&&Qo(t.display.wrapper,t.display.scrollbars.addClass)}function y(e,t){t||(t=f(e));var n=e.display.barWidth,i=e.display.barHeight;_(e,t);for(var r=0;4>r&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&Y(e),_(e,f(e)),n=e.display.barWidth,i=e.display.barHeight}function _(e,t){var n=e.display,i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function D(e,t,n){var i=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;i=Math.floor(i-Re(e));var r=n&&null!=n.bottom?n.bottom:i+e.wrapper.clientHeight,a=nr(t,i),o=nr(t,r);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;a>s?(a=s,o=nr(t,ir(Xi(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=o&&(a=nr(t,ir(Xi(t,l))-e.wrapper.clientHeight),o=l)}return{from:a,to:Math.max(o,a+1)}}function w(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=M(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,a=i+"px",o=0;o<n.length;o++)if(!n[o].hidden){e.options.fixedGutter&&n[o].gutter&&(n[o].gutter.style.left=a);var s=n[o].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=a}e.options.fixedGutter&&(t.gutters.style.left=i+r+"px")}}function b(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=L(e.options,t.first+t.size-1),i=e.display;if(n.length!=i.lineNumChars){var r=i.measure.appendChild(Hr("div",[Hr("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=r.firstChild.offsetWidth,o=r.offsetWidth-a;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(a,i.lineGutter.offsetWidth-o)+1,i.lineNumWidth=i.lineNumInnerWidth+o,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",d(e),!0}return!1}function L(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function M(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function C(e,t,n){var i=e.display;this.viewport=t,this.visible=D(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Ve(e),this.force=n,this.dims=F(e),this.events=[]}function x(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Ge(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Ge(e)+"px",t.scrollbarsClipped=!0)}function k(e,t){var n=e.display,i=e.doc;if(t.editorIsHidden)return Pt(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Wt(e))return!1;b(e)&&(Pt(e),t.dims=F(e));var r=i.first+i.size,a=Math.max(t.visible.from-e.options.viewportMargin,i.first),o=Math.min(r,t.visible.to+e.options.viewportMargin);n.viewFrom<a&&a-n.viewFrom<20&&(a=Math.max(i.first,n.viewFrom)),n.viewTo>o&&n.viewTo-o<20&&(o=Math.min(r,n.viewTo)),Ba&&(a=Di(e.doc,a),o=wi(e.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zt(e,a,o),n.viewOffset=ir(Xi(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Wt(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Ur();return l>4&&(n.lineDiv.style.display="none"),O(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,u&&Ur()!=u&&u.offsetHeight&&u.focus(),Rr(n.cursorDiv),Rr(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,je(e,400)),n.updateLineNumbers=null,!0}function T(e,t){for(var n=t.viewport,i=!0;(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Ve(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+$e(e.display)-qe(e),n.top)}),t.visible=D(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&k(e,t);i=!1){Y(e);var r=f(e);Oe(e),y(e,r),E(e,r)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function S(e,t){var n=new C(e,t);if(k(e,n)){Y(e),T(e,n);var i=f(e);Oe(e),y(e,i),E(e,i),n.finish()}}function E(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ge(e)+"px"}function Y(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=0;i<t.view.length;i++){var r,a=t.view[i];if(!a.hidden){if(ya&&8>_a){var o=a.node.offsetTop+a.node.offsetHeight;r=o-n,n=o}else{var s=a.node.getBoundingClientRect();r=s.bottom-s.top}var l=a.line.height-r;if(2>r&&(r=yt(t)),(l>.001||-.001>l)&&(er(a.line,r),A(a.line),a.rest))for(var u=0;u<a.rest.length;u++)A(a.rest[u])}}}function A(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t)e.widgets[t].height=e.widgets[t].node.parentNode.offsetHeight}function F(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,a=t.gutters.firstChild,o=0;a;a=a.nextSibling,++o)n[e.options.gutters[o]]=a.offsetLeft+a.clientLeft+r,i[e.options.gutters[o]]=a.clientWidth;return{fixedPos:M(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function O(e,t,n){function i(t){var n=t.nextSibling;return Da&&Sa&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var r=e.display,a=e.options.lineNumbers,o=r.lineDiv,s=o.firstChild,l=r.view,u=r.viewFrom,d=0;d<l.length;d++){var c=l[d];if(c.hidden);else if(c.node&&c.node.parentNode==o){for(;s!=c.node;)s=i(s);var h=a&&null!=t&&u>=t&&c.lineNumber;c.changes&&(Fr(c.changes,"gutter")>-1&&(h=!1),I(e,c,u,n)),h&&(Rr(c.lineNumber),c.lineNumber.appendChild(document.createTextNode(L(e.options,u)))),s=c.node.nextSibling}else{var p=R(e,c,u,n);o.insertBefore(p,s)}u+=c.size}for(;s;)s=i(s)}function I(e,t,n,i){for(var r=0;r<t.changes.length;r++){var a=t.changes[r];"text"==a?j(e,t):"gutter"==a?W(e,t,n,i):"class"==a?z(t):"widget"==a&&H(e,t,i)}t.changes=null}function B(e){return e.node==e.text&&(e.node=Hr("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),ya&&8>_a&&(e.node.style.zIndex=2)),e.node}function P(e){var t=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(t&&(t+=" CodeMirror-linebackground"),e.background)t?e.background.className=t:(e.background.parentNode.removeChild(e.background),e.background=null);else if(t){var n=B(e);e.background=n.insertBefore(Hr("div",null,t),n.firstChild)}}function N(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Ni(e,t)}function j(e,t){var n=t.text.className,i=N(e,t);t.text==t.node&&(t.node=i.pre),t.text.parentNode.replaceChild(i.pre,t.text),t.text=i.pre,i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,z(t)):n&&(t.text.className=n)}function z(e){P(e),e.line.wrapClass?B(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var t=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=t||""}function W(e,t,n,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var r=B(t);t.gutterBackground=Hr("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),r.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var r=B(t),o=t.gutter=Hr("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(o),r.insertBefore(o,t.text),t.line.gutterClass&&(o.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=o.appendChild(Hr("div",L(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var s=0;s<e.options.gutters.length;++s){var l=e.options.gutters[s],u=a.hasOwnProperty(l)&&a[l];u&&o.appendChild(Hr("div",[u],"CodeMirror-gutter-elt","left: "+i.gutterLeft[l]+"px; width: "+i.gutterWidth[l]+"px"))}}}function H(e,t,n){t.alignable&&(t.alignable=null);for(var i,r=t.node.firstChild;r;r=i){var i=r.nextSibling;"CodeMirror-linewidget"==r.className&&t.node.removeChild(r)}$(e,t,n)}function R(e,t,n,i){var r=N(e,t);return t.text=t.node=r.pre,r.bgClass&&(t.bgClass=r.bgClass),r.textClass&&(t.textClass=r.textClass),z(t),W(e,t,n,i),$(e,t,i),t.node}function $(e,t,n){if(U(e,t.line,t,n,!0),t.rest)for(var i=0;i<t.rest.length;i++)U(e,t.rest[i],t,n,!1)}function U(e,t,n,i,r){if(t.widgets)for(var a=B(n),o=0,s=t.widgets;o<s.length;++o){var l=s[o],u=Hr("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),G(l,u,n,i),e.display.input.setUneditable(u),r&&l.above?a.insertBefore(u,n.gutter||n.text):a.appendChild(u),Mr(l,"redraw")}}function G(e,t,n,i){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var r=i.wrapperWidth;t.style.left=i.fixedPos+"px",e.coverGutter||(r-=i.gutterTotalWidth,t.style.paddingLeft=i.gutterTotalWidth+"px"),t.style.width=r+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-i.gutterTotalWidth+"px"))}function V(e){return Pa(e.line,e.ch)}function q(e,t){return Na(e,t)<0?t:e}function K(e,t){return Na(e,t)<0?e:t}function J(e){e.state.focused||(e.display.input.focus(),vn(e))}function X(e,t,n,i,r){var a=e.doc;e.display.shift=!1,i||(i=a.sel);var o=e.state.pasteIncoming||"paste"==r,s=a.splitLines(t),l=null;if(o&&i.ranges.length>1)if(ja&&ja.text.join("\n")==t){if(i.ranges.length%ja.text.length==0){l=[];for(var u=0;u<ja.text.length;u++)l.push(a.splitLines(ja.text[u]))}}else s.length==i.ranges.length&&(l=Or(s,function(e){return[e]}));for(var u=i.ranges.length-1;u>=0;u--){var d=i.ranges[u],c=d.from(),h=d.to();d.empty()&&(n&&n>0?c=Pa(c.line,c.ch-n):e.state.overwrite&&!o?h=Pa(h.line,Math.min(Xi(a,h.line).text.length,h.ch+Ar(s).length)):ja&&ja.lineWise&&ja.text.join("\n")==t&&(c=h=Pa(c.line,0)));var p=e.curOp.updateInput,f={from:c,to:h,text:l?l[u%l.length]:s,origin:r||(o?"paste":e.state.cutIncoming?"cut":"+input")};xn(e.doc,f),Mr(e,"inputRead",e,f)}t&&!o&&Z(e,t),Nn(e),e.curOp.updateInput=p,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Q(e,t){var n=e.clipboardData&&e.clipboardData.getData("text/plain");return n?(e.preventDefault(),t.isReadOnly()||t.options.disableInput||St(t,function(){X(t,n,0,null,"paste")}),!0):void 0}function Z(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var a=e.getModeAt(r.head),o=!1;if(a.electricChars){for(var s=0;s<a.electricChars.length;s++)if(t.indexOf(a.electricChars.charAt(s))>-1){o=zn(e,r.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Xi(e.doc,r.head.line).text.slice(0,r.head.ch))&&(o=zn(e,r.head.line,"smart"));
o&&Mr(e,"electricInput",e,r.head.line)}}}function ee(e){for(var t=[],n=[],i=0;i<e.doc.sel.ranges.length;i++){var r=e.doc.sel.ranges[i].head.line,a={anchor:Pa(r,0),head:Pa(r+1,0)};n.push(a),t.push(e.getRange(a.anchor,a.head))}return{text:t,ranges:n}}function te(e){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck","false")}function ne(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Er,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null}function ie(){var e=Hr("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none"),t=Hr("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Da?e.style.width="1000px":e.setAttribute("wrap","off"),ka&&(e.style.border="1px solid black"),te(e),t}function re(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Er,this.gracePeriod=!1}function ae(e,t){var n=Ze(e,t.line);if(!n||n.hidden)return null;var i=Xi(e.doc,t.line),r=Je(n,i,t.line),a=rr(i),o="left";if(a){var s=ua(a,t.ch);o=s%2?"right":"left"}var l=nt(r.map,t.ch,o);return l.offset="right"==l.collapse?l.end:l.start,l}function oe(e,t){return t&&(e.bad=!0),e}function se(e,t,n){var i;if(t==e.display.lineDiv){if(i=e.display.lineDiv.childNodes[n],!i)return oe(e.clipPos(Pa(e.display.viewTo-1)),!0);t=null,n=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var r=0;r<e.display.view.length;r++){var a=e.display.view[r];if(a.node==i)return le(a,t,n)}}function le(e,t,n){function i(t,n,i){for(var r=-1;r<(d?d.length:0);r++)for(var a=0>r?u.map:d[r],o=0;o<a.length;o+=3){var s=a[o+2];if(s==t||s==n){var l=tr(0>r?e.line:e.rest[r]),c=a[o]+i;return(0>i||s!=t)&&(c=a[o+(i?1:0)]),Pa(l,c)}}}var r=e.text.firstChild,a=!1;if(!t||!qo(r,t))return oe(Pa(tr(e.line),0),!0);if(t==r&&(a=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Ar(e.rest):e.line;return oe(Pa(tr(o),o.text.length),a)}var s=3==t.nodeType?t:null,l=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));l.parentNode!=r;)l=l.parentNode;var u=e.measure,d=u.maps,c=i(s,l,n);if(c)return oe(c,a);for(var h=l.nextSibling,p=s?s.nodeValue.length-n:0;h;h=h.nextSibling){if(c=i(h,h.firstChild,0))return oe(Pa(c.line,c.ch-p),a);p+=h.textContent.length}for(var f=l.previousSibling,p=n;f;f=f.previousSibling){if(c=i(f,f.firstChild,-1))return oe(Pa(c.line,c.ch+p),a);p+=h.textContent.length}}function ue(e,t,n,i,r){function a(e){return function(t){return t.id==e}}function o(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return""==n&&(n=t.textContent.replace(/\u200b/g,"")),void(s+=n);var d,c=t.getAttribute("cm-marker");if(c){var h=e.findMarks(Pa(i,0),Pa(r+1,0),a(+c));return void(h.length&&(d=h[0].find())&&(s+=Qi(e.doc,d.from,d.to).join(u)))}if("false"==t.getAttribute("contenteditable"))return;for(var p=0;p<t.childNodes.length;p++)o(t.childNodes[p]);/^(pre|div|p)$/i.test(t.nodeName)&&(l=!0)}else if(3==t.nodeType){var f=t.nodeValue;if(!f)return;l&&(s+=u,l=!1),s+=f}}for(var s="",l=!1,u=e.doc.lineSeparator();o(t),t!=n;)t=t.nextSibling;return s}function de(e,t){this.ranges=e,this.primIndex=t}function ce(e,t){this.anchor=e,this.head=t}function he(e,t){var n=e[t];e.sort(function(e,t){return Na(e.from(),t.from())}),t=Fr(e,n);for(var i=1;i<e.length;i++){var r=e[i],a=e[i-1];if(Na(a.to(),r.from())>=0){var o=K(a.from(),r.from()),s=q(a.to(),r.to()),l=a.empty()?r.from()==r.head:a.from()==a.head;t>=i&&--t,e.splice(--i,2,new ce(l?s:o,l?o:s))}}return new de(e,t)}function pe(e,t){return new de([new ce(e,t||e)],0)}function fe(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function me(e,t){if(t.line<e.first)return Pa(e.first,0);var n=e.first+e.size-1;return t.line>n?Pa(n,Xi(e,n).text.length):ge(t,Xi(e,t.line).text.length)}function ge(e,t){var n=e.ch;return null==n||n>t?Pa(e.line,t):0>n?Pa(e.line,0):e}function ve(e,t){return t>=e.first&&t<e.first+e.size}function ye(e,t){for(var n=[],i=0;i<t.length;i++)n[i]=me(e,t[i]);return n}function _e(e,t,n,i){if(e.cm&&e.cm.display.shift||e.extend){var r=t.anchor;if(i){var a=Na(n,r)<0;a!=Na(i,r)<0?(r=n,n=i):a!=Na(n,i)<0&&(n=i)}return new ce(r,n)}return new ce(i||n,n)}function De(e,t,n,i){xe(e,new de([_e(e,e.sel.primary(),t,n)],0),i)}function we(e,t,n){for(var i=[],r=0;r<e.sel.ranges.length;r++)i[r]=_e(e,e.sel.ranges[r],t[r],null);var a=he(i,e.sel.primIndex);xe(e,a,n)}function be(e,t,n,i){var r=e.sel.ranges.slice(0);r[t]=n,xe(e,he(r,e.sel.primIndex),i)}function Le(e,t,n,i){xe(e,pe(t,n),i)}function Me(e,t,n){var i={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ce(me(e,t[n].anchor),me(e,t[n].head))},origin:n&&n.origin};return Fo(e,"beforeSelectionChange",e,i),e.cm&&Fo(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=t.ranges?he(i.ranges,i.ranges.length-1):t}function Ce(e,t,n){var i=e.history.done,r=Ar(i);r&&r.ranges?(i[i.length-1]=t,ke(e,t,n)):xe(e,t,n)}function xe(e,t,n){ke(e,t,n),cr(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function ke(e,t,n){(Tr(e,"beforeSelectionChange")||e.cm&&Tr(e.cm,"beforeSelectionChange"))&&(t=Me(e,t,n));var i=n&&n.bias||(Na(t.primary().head,e.sel.primary().head)<0?-1:1);Te(e,Ee(e,t,i,!0)),n&&n.scroll===!1||!e.cm||Nn(e.cm)}function Te(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,kr(e.cm)),Mr(e,"cursorActivity",e))}function Se(e){Te(e,Ee(e,e.sel,null,!1),Po)}function Ee(e,t,n,i){for(var r,a=0;a<t.ranges.length;a++){var o=t.ranges[a],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[a],l=Ae(e,o.anchor,s&&s.anchor,n,i),u=Ae(e,o.head,s&&s.head,n,i);(r||l!=o.anchor||u!=o.head)&&(r||(r=t.ranges.slice(0,a)),r[a]=new ce(l,u))}return r?he(r,t.primIndex):t}function Ye(e,t,n,i,r){var a=Xi(e,t.line);if(a.markedSpans)for(var o=0;o<a.markedSpans.length;++o){var s=a.markedSpans[o],l=s.marker;if((null==s.from||(l.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(l.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(r&&(Fo(l,"beforeCursorEnter"),l.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!l.atomic)continue;if(n){var u,d=l.find(0>i?1:-1);if((0>i?l.inclusiveRight:l.inclusiveLeft)&&(d=Fe(e,d,-i,d&&d.line==t.line?a:null)),d&&d.line==t.line&&(u=Na(d,n))&&(0>i?0>u:u>0))return Ye(e,d,t,i,r)}var c=l.find(0>i?-1:1);return(0>i?l.inclusiveLeft:l.inclusiveRight)&&(c=Fe(e,c,i,c.line==t.line?a:null)),c?Ye(e,c,t,i,r):null}}return t}function Ae(e,t,n,i,r){var a=i||1,o=Ye(e,t,n,a,r)||!r&&Ye(e,t,n,a,!0)||Ye(e,t,n,-a,r)||!r&&Ye(e,t,n,-a,!0);return o?o:(e.cantEdit=!0,Pa(e.first,0))}function Fe(e,t,n,i){return 0>n&&0==t.ch?t.line>e.first?me(e,Pa(t.line-1)):null:n>0&&t.ch==(i||Xi(e,t.line)).text.length?t.line<e.first+e.size-1?Pa(t.line+1,0):null:new Pa(t.line,t.ch+n)}function Oe(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ie(e,t){for(var n=e.doc,i={},r=i.cursors=document.createDocumentFragment(),a=i.selection=document.createDocumentFragment(),o=0;o<n.sel.ranges.length;o++)if(t!==!1||o!=n.sel.primIndex){var s=n.sel.ranges[o];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&Be(e,s.head,r),l||Pe(e,s,a)}}return i}function Be(e,t,n){var i=pt(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),r=n.appendChild(Hr("div"," ","CodeMirror-cursor"));if(r.style.left=i.left+"px",r.style.top=i.top+"px",r.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var a=n.appendChild(Hr("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=i.other.left+"px",a.style.top=i.other.top+"px",a.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Pe(e,t,n){function i(e,t,n,i){0>t&&(t=0),t=Math.round(t),i=Math.round(i),s.appendChild(Hr("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px; top: "+t+"px; width: "+(null==n?d-e:n)+"px; height: "+(i-t)+"px"))}function r(t,n,r){function a(n,i){return ht(e,Pa(t,n),"div",c,i)}var s,l,c=Xi(o,t),h=c.text.length;return ea(rr(c),n||0,null==r?h:r,function(e,t,o){var c,p,f,m=a(e,"left");if(e==t)c=m,p=f=m.left;else{if(c=a(t-1,"right"),"rtl"==o){var g=m;m=c,c=g}p=m.left,f=c.right}null==n&&0==e&&(p=u),c.top-m.top>3&&(i(p,m.top,null,m.bottom),p=u,m.bottom<c.top&&i(p,m.bottom,null,c.top)),null==r&&t==h&&(f=d),(!s||m.top<s.top||m.top==s.top&&m.left<s.left)&&(s=m),(!l||c.bottom>l.bottom||c.bottom==l.bottom&&c.right>l.right)&&(l=c),u+1>p&&(p=u),i(p,c.top,f-p,c.bottom)}),{start:s,end:l}}var a=e.display,o=e.doc,s=document.createDocumentFragment(),l=Ue(e.display),u=l.left,d=Math.max(a.sizerWidth,Ve(e)-a.sizer.offsetLeft)-l.right,c=t.from(),h=t.to();if(c.line==h.line)r(c.line,c.ch,h.ch);else{var p=Xi(o,c.line),f=Xi(o,h.line),m=yi(p)==yi(f),g=r(c.line,c.ch,m?p.text.length+1:null).end,v=r(h.line,m?0:null,h.ch).start;m&&(g.top<v.top-2?(i(g.right,g.top,null,g.bottom),i(u,v.top,v.left,v.bottom)):i(g.right,g.top,v.left-g.right,g.bottom)),g.bottom<v.top&&i(u,g.bottom,null,v.top)}n.appendChild(s)}function Ne(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function je(e,t){e.doc.mode.startState&&e.doc.frontier<e.display.viewTo&&e.state.highlight.set(t,Nr(ze,e))}function ze(e){var t=e.doc;if(t.frontier<t.first&&(t.frontier=t.first),!(t.frontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,i=so(t.mode,He(e,t.frontier)),r=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(a){if(t.frontier>=e.display.viewFrom){var o=a.styles,s=a.text.length>e.options.maxHighlightLength,l=Oi(e,a,s?so(t.mode,i):i,!0);a.styles=l.styles;var u=a.styleClasses,d=l.classes;d?a.styleClasses=d:u&&(a.styleClasses=null);for(var c=!o||o.length!=a.styles.length||u!=d&&(!u||!d||u.bgClass!=d.bgClass||u.textClass!=d.textClass),h=0;!c&&h<o.length;++h)c=o[h]!=a.styles[h];c&&r.push(t.frontier),a.stateAfter=s?i:so(t.mode,i)}else a.text.length<=e.options.maxHighlightLength&&Bi(e,a.text,i),a.stateAfter=t.frontier%5==0?so(t.mode,i):null;return++t.frontier,+new Date>n?(je(e,e.options.workDelay),!0):void 0}),r.length&&St(e,function(){for(var t=0;t<r.length;t++)Bt(e,r[t],"text")})}}function We(e,t,n){for(var i,r,a=e.doc,o=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=a.first)return a.first;var l=Xi(a,s-1);if(l.stateAfter&&(!n||s<=a.frontier))return s;var u=zo(l.text,null,e.options.tabSize);(null==r||i>u)&&(r=s-1,i=u)}return r}function He(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return!0;var a=We(e,t,n),o=a>i.first&&Xi(i,a-1).stateAfter;return o=o?so(i.mode,o):lo(i.mode),i.iter(a,t,function(n){Bi(e,n.text,o);var s=a==t-1||a%5==0||a>=r.viewFrom&&a<r.viewTo;n.stateAfter=s?so(i.mode,o):null,++a}),n&&(i.frontier=a),o}function Re(e){return e.lineSpace.offsetTop}function $e(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ue(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=$r(e.measure,Hr("pre","x")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(i.left)||isNaN(i.right)||(e.cachedPaddingH=i),i}function Ge(e){return Io-e.display.nativeBarWidth}function Ve(e){return e.display.scroller.clientWidth-Ge(e)-e.display.barWidth}function qe(e){return e.display.scroller.clientHeight-Ge(e)-e.display.barHeight}function Ke(e,t,n){var i=e.options.lineWrapping,r=i&&Ve(e);if(!t.measure.heights||i&&t.measure.width!=r){var a=t.measure.heights=[];if(i){t.measure.width=r;for(var o=t.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var l=o[s],u=o[s+1];Math.abs(l.bottom-u.bottom)>2&&a.push((l.bottom+u.top)/2-n.top)}}a.push(n.bottom-n.top)}}function Je(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;i<e.rest.length;i++)if(e.rest[i]==t)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var i=0;i<e.rest.length;i++)if(tr(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Xe(e,t){t=yi(t);var n=tr(t),i=e.display.externalMeasured=new Ft(e.doc,t,n);i.lineN=n;var r=i.built=Ni(e,i);return i.text=r.pre,$r(e.display.lineMeasure,r.pre),i}function Qe(e,t,n,i){return tt(e,et(e,t),n,i)}function Ze(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Nt(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function et(e,t){var n=tr(t),i=Ze(e,n);i&&!i.text?i=null:i&&i.changes&&(I(e,i,n,F(e)),e.curOp.forceUpdate=!0),i||(i=Xe(e,t));var r=Je(i,t,n);return{line:t,view:i,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function tt(e,t,n,i,r){t.before&&(n=-1);var a,o=n+(i||"");return t.cache.hasOwnProperty(o)?a=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Ke(e,t.view,t.rect),t.hasHeights=!0),a=it(e,t,n,i),a.bogus||(t.cache[o]=a)),{left:a.left,right:a.right,top:r?a.rtop:a.top,bottom:r?a.rbottom:a.bottom}}function nt(e,t,n){for(var i,r,a,o,s=0;s<e.length;s+=3){var l=e[s],u=e[s+1];if(l>t?(r=0,a=1,o="left"):u>t?(r=t-l,a=r+1):(s==e.length-3||t==u&&e[s+3]>t)&&(a=u-l,r=a-1,t>=u&&(o="right")),null!=r){if(i=e[s+2],l==u&&n==(i.insertLeft?"left":"right")&&(o=n),"left"==n&&0==r)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)i=e[(s-=3)+2],o="left";if("right"==n&&r==u-l)for(;s<e.length-3&&e[s+3]==e[s+4]&&!e[s+5].insertLeft;)i=e[(s+=3)+2],o="right";break}}return{node:i,start:r,end:a,collapse:o,coverStart:l,coverEnd:u}}function it(e,t,n,i){var r,a=nt(t.map,n,i),o=a.node,s=a.start,l=a.end,u=a.collapse;if(3==o.nodeType){for(var d=0;4>d;d++){for(;s&&Wr(t.line.text.charAt(a.coverStart+s));)--s;for(;a.coverStart+l<a.coverEnd&&Wr(t.line.text.charAt(a.coverStart+l));)++l;if(ya&&9>_a&&0==s&&l==a.coverEnd-a.coverStart)r=o.parentNode.getBoundingClientRect();else if(ya&&e.options.lineWrapping){var c=$o(o,s,l).getClientRects();r=c.length?c["right"==i?c.length-1:0]:Ra}else r=$o(o,s,l).getBoundingClientRect()||Ra;if(r.left||r.right||0==s)break;l=s,s-=1,u="right"}ya&&11>_a&&(r=rt(e.display.measure,r))}else{s>0&&(u=i="right");var c;r=e.options.lineWrapping&&(c=o.getClientRects()).length>1?c["right"==i?c.length-1:0]:o.getBoundingClientRect()}if(ya&&9>_a&&!s&&(!r||!r.left&&!r.right)){var h=o.parentNode.getClientRects()[0];r=h?{left:h.left,right:h.left+_t(e.display),top:h.top,bottom:h.bottom}:Ra}for(var p=r.top-t.rect.top,f=r.bottom-t.rect.top,m=(p+f)/2,g=t.view.measure.heights,d=0;d<g.length-1&&!(m<g[d]);d++);var v=d?g[d-1]:0,y=g[d],_={left:("right"==u?r.right:r.left)-t.rect.left,right:("left"==u?r.left:r.right)-t.rect.left,top:v,bottom:y};return r.left||r.right||(_.bogus=!0),e.options.singleCursorHeightPerLine||(_.rtop=p,_.rbottom=f),_}function rt(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Zr(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*i,bottom:t.bottom*i}}function at(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function ot(e){e.display.externalMeasure=null,Rr(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)at(e.display.view[t])}function st(e){ot(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function lt(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ut(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function dt(e,t,n,i){if(t.widgets)for(var r=0;r<t.widgets.length;++r)if(t.widgets[r].above){var a=Ci(t.widgets[r]);n.top+=a,n.bottom+=a}if("line"==i)return n;i||(i="local");var o=ir(t);if("local"==i?o+=Re(e.display):o-=e.display.viewOffset,"page"==i||"window"==i){var s=e.display.lineSpace.getBoundingClientRect();o+=s.top+("window"==i?0:ut());var l=s.left+("window"==i?0:lt());n.left+=l,n.right+=l}return n.top+=o,n.bottom+=o,n}function ct(e,t,n){if("div"==n)return t;var i=t.left,r=t.top;if("page"==n)i-=lt(),r-=ut();else if("local"==n||!n){var a=e.display.sizer.getBoundingClientRect();i+=a.left,r+=a.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:i-o.left,top:r-o.top}}function ht(e,t,n,i,r){return i||(i=Xi(e.doc,t.line)),dt(e,i,Qe(e,i,t.ch,r),n)}function pt(e,t,n,i,r,a){function o(t,o){var s=tt(e,r,t,o?"right":"left",a);return o?s.left=s.right:s.right=s.left,dt(e,i,s,n)}function s(e,t){var n=l[t],i=n.level%2;return e==ta(n)&&t&&n.level<l[t-1].level?(n=l[--t],e=na(n)-(n.level%2?0:1),i=!0):e==na(n)&&t<l.length-1&&n.level<l[t+1].level&&(n=l[++t],e=ta(n)-n.level%2,i=!1),i&&e==n.to&&e>n.from?o(e-1):o(e,i)}i=i||Xi(e.doc,t.line),r||(r=et(e,i));var l=rr(i),u=t.ch;if(!l)return o(u);var d=ua(l,u),c=s(u,d);return null!=os&&(c.other=s(u,os)),c}function ft(e,t){var n=0,t=me(e.doc,t);e.options.lineWrapping||(n=_t(e.display)*t.ch);var i=Xi(e.doc,t.line),r=ir(i)+Re(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function mt(e,t,n,i){var r=Pa(e,t);return r.xRel=i,n&&(r.outside=!0),r}function gt(e,t,n){var i=e.doc;if(n+=e.display.viewOffset,0>n)return mt(i.first,0,!0,-1);var r=nr(i,n),a=i.first+i.size-1;if(r>a)return mt(i.first+i.size-1,Xi(i,a).text.length,!0,1);0>t&&(t=0);for(var o=Xi(i,r);;){var s=vt(e,o,r,t,n),l=gi(o),u=l&&l.find(0,!0);if(!l||!(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0))return s;r=tr(o=u.to.line)}}function vt(e,t,n,i,r){function a(i){var r=pt(e,Pa(n,i),"line",t,u);return s=!0,o>r.bottom?r.left-l:o<r.top?r.left+l:(s=!1,r.left)}var o=r-ir(t),s=!1,l=2*e.display.wrapper.clientWidth,u=et(e,t),d=rr(t),c=t.text.length,h=ia(t),p=ra(t),f=a(h),m=s,g=a(p),v=s;if(i>g)return mt(n,p,v,1);for(;;){if(d?p==h||p==ca(t,h,1):1>=p-h){for(var y=f>i||g-i>=i-f?h:p,_=i-(y==h?f:g);Wr(t.text.charAt(y));)++y;var D=mt(n,y,y==h?m:v,-1>_?-1:_>1?1:0);return D}var w=Math.ceil(c/2),b=h+w;if(d){b=h;for(var L=0;w>L;++L)b=ca(t,b,1)}var M=a(b);M>i?(p=b,g=M,(v=s)&&(g+=1e3),c=w):(h=b,f=M,m=s,c-=w)}}function yt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==za){za=Hr("pre");for(var t=0;49>t;++t)za.appendChild(document.createTextNode("x")),za.appendChild(Hr("br"));za.appendChild(document.createTextNode("x"))}$r(e.measure,za);var n=za.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),Rr(e.measure),n||1}function _t(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=Hr("span","xxxxxxxxxx"),n=Hr("pre",[t]);$r(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function Dt(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ua},$a?$a.ops.push(e.curOp):e.curOp.ownsGroup=$a={ops:[e.curOp],delayedCallbacks:[]}}function wt(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var i=0;i<e.ops.length;i++){var r=e.ops[i];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(n<t.length)}function bt(e){var t=e.curOp,n=t.ownsGroup;if(n)try{wt(n)}finally{$a=null;for(var i=0;i<n.ops.length;i++)n.ops[i].cm.curOp=null;Lt(n)}}function Lt(e){for(var t=e.ops,n=0;n<t.length;n++)Mt(t[n]);for(var n=0;n<t.length;n++)Ct(t[n]);for(var n=0;n<t.length;n++)xt(t[n]);for(var n=0;n<t.length;n++)kt(t[n]);for(var n=0;n<t.length;n++)Tt(t[n])}function Mt(e){var t=e.cm,n=t.display;x(t),e.updateMaxLine&&h(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new C(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ct(e){e.updatedDisplay=e.mustUpdate&&k(e.cm,e.update)}function xt(e){var t=e.cm,n=t.display;e.updatedDisplay&&Y(t),e.barMeasure=f(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Qe(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Ge(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ve(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function kt(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&an(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==Ur()&&(!document.hasFocus||document.hasFocus());e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&y(t,e.barMeasure),e.updatedDisplay&&E(t,e.barMeasure),e.selectionChanged&&Ne(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&J(e.cm)}function Tt(e){var t=e.cm,n=t.display,i=t.doc;if(e.updatedDisplay&&T(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null==e.scrollTop||n.scroller.scrollTop==e.scrollTop&&!e.forceScroll||(i.scrollTop=Math.max(0,Math.min(n.scroller.scrollHeight-n.scroller.clientHeight,e.scrollTop)),n.scrollbars.setScrollTop(i.scrollTop),n.scroller.scrollTop=i.scrollTop),null==e.scrollLeft||n.scroller.scrollLeft==e.scrollLeft&&!e.forceScroll||(i.scrollLeft=Math.max(0,Math.min(n.scroller.scrollWidth-n.scroller.clientWidth,e.scrollLeft)),n.scrollbars.setScrollLeft(i.scrollLeft),n.scroller.scrollLeft=i.scrollLeft,w(t)),e.scrollToPos){var r=On(t,me(i,e.scrollToPos.from),me(i,e.scrollToPos.to),e.scrollToPos.margin);e.scrollToPos.isCursor&&t.state.focused&&Fn(t,r)}var a=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(a)for(var s=0;s<a.length;++s)a[s].lines.length||Fo(a[s],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&Fo(o[s],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Fo(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function St(e,t){if(e.curOp)return t();Dt(e);try{return t()}finally{bt(e)}}function Et(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Dt(e);try{return t.apply(e,arguments)}finally{bt(e)}}}function Yt(e){return function(){if(this.curOp)return e.apply(this,arguments);Dt(this);try{return e.apply(this,arguments)}finally{bt(this)}}}function At(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Dt(t);try{return e.apply(this,arguments)}finally{bt(t)}}}function Ft(e,t,n){this.line=t,this.rest=_i(t),this.size=this.rest?tr(Ar(this.rest))-n+1:1,this.node=this.text=null,this.hidden=bi(e,t)}function Ot(e,t,n){for(var i,r=[],a=t;n>a;a=i){var o=new Ft(e.doc,Xi(e.doc,a),a);i=a+o.size,r.push(o)}return r}function It(e,t,n,i){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),i||(i=0);var r=e.display;if(i&&n<r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>t)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Ba&&Di(e.doc,t)<r.viewTo&&Pt(e);else if(n<=r.viewFrom)Ba&&wi(e.doc,n+i)>r.viewFrom?Pt(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)Pt(e);else if(t<=r.viewFrom){var a=jt(e,n,n+i,1);a?(r.view=r.view.slice(a.index),r.viewFrom=a.lineN,r.viewTo+=i):Pt(e)}else if(n>=r.viewTo){var a=jt(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):Pt(e)}else{var o=jt(e,t,t,-1),s=jt(e,n,n+i,1);o&&s?(r.view=r.view.slice(0,o.index).concat(Ot(e,o.lineN,s.lineN)).concat(r.view.slice(s.index)),r.viewTo+=i):Pt(e)}var l=r.externalMeasured;l&&(n<l.lineN?l.lineN+=i:t<l.lineN+l.size&&(r.externalMeasured=null))}function Bt(e,t,n){e.curOp.viewChanged=!0;var i=e.display,r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size&&(i.externalMeasured=null),!(t<i.viewFrom||t>=i.viewTo)){var a=i.view[Nt(e,t)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==Fr(o,n)&&o.push(n)}}}function Pt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Nt(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,0>t)return null;for(var n=e.display.view,i=0;i<n.length;i++)if(t-=n[i].size,0>t)return i}function jt(e,t,n,i){var r,a=Nt(e,t),o=e.display.view;if(!Ba||n==e.doc.first+e.doc.size)return{index:a,lineN:n};for(var s=0,l=e.display.viewFrom;a>s;s++)l+=o[s].size;if(l!=t){if(i>0){if(a==o.length-1)return null;r=l+o[a].size-t,a++}else r=l-t;t+=r,n+=r}for(;Di(e.doc,n)!=n;){if(a==(0>i?0:o.length-1))return null;n+=i*o[a-(0>i?1:0)].size,a+=i}return{index:a,lineN:n}}function zt(e,t,n){var i=e.display,r=i.view;0==r.length||t>=i.viewTo||n<=i.viewFrom?(i.view=Ot(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=Ot(e,t,i.viewFrom).concat(i.view):i.viewFrom<t&&(i.view=i.view.slice(Nt(e,t))),i.viewFrom=t,i.viewTo<n?i.view=i.view.concat(Ot(e,i.viewTo,n)):i.viewTo>n&&(i.view=i.view.slice(0,Nt(e,n)))),i.viewTo=n}function Wt(e){for(var t=e.display.view,n=0,i=0;i<t.length;i++){var r=t[i];r.hidden||r.node&&!r.changes||++n}return n}function Ht(e){function t(){r.activeTouch&&(a=setTimeout(function(){r.activeTouch=null},1e3),o=r.activeTouch,o.end=+new Date)}function n(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function i(e,t){if(null==t.left)return!0;var n=t.left-e.left,i=t.top-e.top;return n*n+i*i>400}var r=e.display;Eo(r.scroller,"mousedown",Et(e,Vt)),ya&&11>_a?Eo(r.scroller,"dblclick",Et(e,function(t){if(!xr(e,t)){var n=Gt(e,t);if(n&&!Qt(e,t)&&!Ut(e.display,t)){ko(t);var i=e.findWordAt(n);De(e.doc,i.anchor,i.head)}}})):Eo(r.scroller,"dblclick",function(t){xr(e,t)||ko(t)}),Oa||Eo(r.scroller,"contextmenu",function(t){_n(e,t)});var a,o={end:0};Eo(r.scroller,"touchstart",function(t){if(!xr(e,t)&&!n(t)){clearTimeout(a);var i=+new Date;r.activeTouch={start:i,moved:!1,prev:i-o.end<=300?o:null},1==t.touches.length&&(r.activeTouch.left=t.touches[0].pageX,r.activeTouch.top=t.touches[0].pageY)}}),Eo(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Eo(r.scroller,"touchend",function(n){var a=r.activeTouch;if(a&&!Ut(r,n)&&null!=a.left&&!a.moved&&new Date-a.start<300){var o,s=e.coordsChar(r.activeTouch,"page");o=!a.prev||i(a,a.prev)?new ce(s,s):!a.prev.prev||i(a,a.prev.prev)?e.findWordAt(s):new ce(Pa(s.line,0),me(e.doc,Pa(s.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),ko(n)}t()}),Eo(r.scroller,"touchcancel",t),Eo(r.scroller,"scroll",function(){r.scroller.clientHeight&&(rn(e,r.scroller.scrollTop),an(e,r.scroller.scrollLeft,!0),Fo(e,"scroll",e))}),Eo(r.scroller,"mousewheel",function(t){on(e,t)}),Eo(r.scroller,"DOMMouseScroll",function(t){on(e,t)}),Eo(r.wrapper,"scroll",function(){r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(t){xr(e,t)||So(t)},over:function(t){xr(e,t)||(tn(e,t),So(t))},start:function(t){en(e,t)},drop:Et(e,Zt),leave:function(t){xr(e,t)||nn(e)}};var s=r.input.getField();Eo(s,"keyup",function(t){fn.call(e,t)}),Eo(s,"keydown",Et(e,hn)),Eo(s,"keypress",Et(e,mn)),Eo(s,"focus",Nr(vn,e)),Eo(s,"blur",Nr(yn,e))}function Rt(t,n,i){var r=i&&i!=e.Init;if(!n!=!r){var a=t.display.dragFunctions,o=n?Eo:Ao;o(t.display.scroller,"dragstart",a.start),o(t.display.scroller,"dragenter",a.enter),o(t.display.scroller,"dragover",a.over),o(t.display.scroller,"dragleave",a.leave),o(t.display.scroller,"drop",a.drop)}}function $t(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function Ut(e,t){for(var n=wr(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Gt(e,t,n,i){var r=e.display;if(!n&&"true"==wr(t).getAttribute("cm-not-content"))return null;var a,o,s=r.lineSpace.getBoundingClientRect();try{a=t.clientX-s.left,o=t.clientY-s.top}catch(t){return null}var l,u=gt(e,a,o);if(i&&1==u.xRel&&(l=Xi(e.doc,u.line).text).length==u.ch){var d=zo(l,l.length,e.options.tabSize)-l.length;u=Pa(u.line,Math.max(0,Math.round((a-Ue(e.display).left)/_t(e.display))-d))}return u}function Vt(e){var t=this,n=t.display;if(!(xr(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.shift=e.shiftKey,Ut(n,e))return void(Da||(n.scroller.draggable=!1,setTimeout(function(){n.scroller.draggable=!0},100)));if(!Qt(t,e)){var i=Gt(t,e);switch(window.focus(),br(e)){case 1:t.state.selectingText?t.state.selectingText(e):i?qt(t,e,i):wr(e)==n.scroller&&ko(e);break;case 2:Da&&(t.state.lastMiddleDown=+new Date),i&&De(t.doc,i),setTimeout(function(){n.input.focus()},20),ko(e);break;case 3:Oa?_n(t,e):gn(t)}}}}function qt(e,t,n){ya?setTimeout(Nr(J,e),0):e.curOp.focus=Ur();var i,r=+new Date;Ha&&Ha.time>r-400&&0==Na(Ha.pos,n)?i="triple":Wa&&Wa.time>r-400&&0==Na(Wa.pos,n)?(i="double",Ha={time:r,pos:n}):(i="single",Wa={time:r,pos:n});var a,o=e.doc.sel,s=Sa?t.metaKey:t.ctrlKey;e.options.dragDrop&&es&&!e.isReadOnly()&&"single"==i&&(a=o.contains(n))>-1&&(Na((a=o.ranges[a]).from(),n)<0||n.xRel>0)&&(Na(a.to(),n)>0||n.xRel<0)?Kt(e,t,n,s):Jt(e,t,n,i,s)}function Kt(e,t,n,i){var r=e.display,a=+new Date,o=Et(e,function(s){Da&&(r.scroller.draggable=!1),e.state.draggingText=!1,Ao(document,"mouseup",o),Ao(r.scroller,"drop",o),Math.abs(t.clientX-s.clientX)+Math.abs(t.clientY-s.clientY)<10&&(ko(s),!i&&+new Date-200<a&&De(e.doc,n),Da||ya&&9==_a?setTimeout(function(){document.body.focus(),r.input.focus()},20):r.input.focus())});Da&&(r.scroller.draggable=!0),e.state.draggingText=o,r.scroller.dragDrop&&r.scroller.dragDrop(),Eo(document,"mouseup",o),Eo(r.scroller,"drop",o)}function Jt(e,t,n,i,r){function a(t){if(0!=Na(g,t))if(g=t,"rect"==i){for(var r=[],a=e.options.tabSize,o=zo(Xi(u,n.line).text,n.ch,a),s=zo(Xi(u,t.line).text,t.ch,a),l=Math.min(o,s),p=Math.max(o,s),f=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));m>=f;f++){var v=Xi(u,f).text,y=Wo(v,l,a);l==p?r.push(new ce(Pa(f,y),Pa(f,y))):v.length>y&&r.push(new ce(Pa(f,y),Pa(f,Wo(v,p,a))))}r.length||r.push(new ce(n,n)),xe(u,he(h.ranges.slice(0,c).concat(r),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var _=d,D=_.anchor,w=t;if("single"!=i){if("double"==i)var b=e.findWordAt(t);else var b=new ce(Pa(t.line,0),me(u,Pa(t.line+1,0)));Na(b.anchor,D)>0?(w=b.head,D=K(_.from(),b.anchor)):(w=b.anchor,D=q(_.to(),b.head))}var r=h.ranges.slice(0);r[c]=new ce(me(u,D),w),xe(u,he(r,c),No)}}function o(t){var n=++y,r=Gt(e,t,!0,"rect"==i);if(r)if(0!=Na(r,g)){e.curOp.focus=Ur(),a(r);var s=D(l,u);(r.line>=s.to||r.line<s.from)&&setTimeout(Et(e,function(){y==n&&o(t)}),150)}else{var d=t.clientY<v.top?-20:t.clientY>v.bottom?20:0;d&&setTimeout(Et(e,function(){y==n&&(l.scroller.scrollTop+=d,o(t))}),50)}}function s(t){e.state.selectingText=!1,y=1/0,ko(t),l.input.focus(),Ao(document,"mousemove",_),Ao(document,"mouseup",w),u.history.lastSelOrigin=null}var l=e.display,u=e.doc;ko(t);var d,c,h=u.sel,p=h.ranges;if(r&&!t.shiftKey?(c=u.sel.contains(n),d=c>-1?p[c]:new ce(n,n)):(d=u.sel.primary(),c=u.sel.primIndex),Ea?t.shiftKey&&t.metaKey:t.altKey)i="rect",r||(d=new ce(n,n)),n=Gt(e,t,!0,!0),c=-1;else if("double"==i){var f=e.findWordAt(n);d=e.display.shift||u.extend?_e(u,d,f.anchor,f.head):f}else if("triple"==i){var m=new ce(Pa(n.line,0),me(u,Pa(n.line+1,0)));d=e.display.shift||u.extend?_e(u,d,m.anchor,m.head):m}else d=_e(u,d,n);r?-1==c?(c=p.length,xe(u,he(p.concat([d]),c),{scroll:!1,origin:"*mouse"})):p.length>1&&p[c].empty()&&"single"==i&&!t.shiftKey?(xe(u,he(p.slice(0,c).concat(p.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),h=u.sel):be(u,c,d,No):(c=0,xe(u,new de([d],0),No),
h=u.sel);var g=n,v=l.wrapper.getBoundingClientRect(),y=0,_=Et(e,function(e){br(e)?o(e):s(e)}),w=Et(e,s);e.state.selectingText=w,Eo(document,"mousemove",_),Eo(document,"mouseup",w)}function Xt(e,t,n,i){try{var r=t.clientX,a=t.clientY}catch(t){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&ko(t);var o=e.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!Tr(e,n))return Dr(t);a-=s.top-o.viewOffset;for(var l=0;l<e.options.gutters.length;++l){var u=o.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=r){var d=nr(e.doc,a),c=e.options.gutters[l];return Fo(e,n,e,d,c,t),Dr(t)}}}function Qt(e,t){return Xt(e,t,"gutterClick",!0)}function Zt(e){var t=this;if(nn(t),!xr(t,e)&&!Ut(t.display,e)){ko(e),ya&&(Ga=+new Date);var n=Gt(t,e,!0),i=e.dataTransfer.files;if(n&&!t.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var r=i.length,a=Array(r),o=0,s=function(e,i){if(!t.options.allowDropFileTypes||-1!=Fr(t.options.allowDropFileTypes,e.type)){var s=new FileReader;s.onload=Et(t,function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),a[i]=e,++o==r){n=me(t.doc,n);var l={from:n,to:n,text:t.doc.splitLines(a.join(t.doc.lineSeparator())),origin:"paste"};xn(t.doc,l),Ce(t.doc,pe(n,Qa(l)))}}),s.readAsText(e)}},l=0;r>l;++l)s(i[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){t.display.input.focus()},20);try{var a=e.dataTransfer.getData("Text");if(a){if(t.state.draggingText&&!(Sa?e.altKey:e.ctrlKey))var u=t.listSelections();if(ke(t.doc,pe(n,n)),u)for(var l=0;l<u.length;++l)An(t.doc,"",u[l].anchor,u[l].head,"drag");t.replaceSelection(a,"around","paste"),t.display.input.focus()}}catch(e){}}}}function en(e,t){if(ya&&(!e.state.draggingText||+new Date-Ga<100))return void So(t);if(!xr(e,t)&&!Ut(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Ma)){var n=Hr("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",La&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),La&&n.parentNode.removeChild(n)}}function tn(e,t){var n=Gt(e,t);if(n){var i=document.createDocumentFragment();Be(e,n,i),e.display.dragCursor||(e.display.dragCursor=Hr("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),$r(e.display.dragCursor,i)}}function nn(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function rn(e,t){Math.abs(e.doc.scrollTop-t)<2||(e.doc.scrollTop=t,ma||S(e,{top:t}),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t),e.display.scrollbars.setScrollTop(t),ma&&S(e),je(e,100))}function an(e,t,n){(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||(t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),e.doc.scrollLeft=t,w(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function on(e,t){var n=Ka(t),i=n.x,r=n.y,a=e.display,o=a.scroller,s=o.scrollWidth>o.clientWidth,l=o.scrollHeight>o.clientHeight;if(i&&s||r&&l){if(r&&Sa&&Da)e:for(var u=t.target,d=a.view;u!=o;u=u.parentNode)for(var c=0;c<d.length;c++)if(d[c].node==u){e.display.currentWheelTarget=u;break e}if(i&&!ma&&!La&&null!=qa)return r&&l&&rn(e,Math.max(0,Math.min(o.scrollTop+r*qa,o.scrollHeight-o.clientHeight))),an(e,Math.max(0,Math.min(o.scrollLeft+i*qa,o.scrollWidth-o.clientWidth))),(!r||r&&l)&&ko(t),void(a.wheelStartX=null);if(r&&null!=qa){var h=r*qa,p=e.doc.scrollTop,f=p+a.wrapper.clientHeight;0>h?p=Math.max(0,p+h-50):f=Math.min(e.doc.height,f+h+50),S(e,{top:p,bottom:f})}20>Va&&(null==a.wheelStartX?(a.wheelStartX=o.scrollLeft,a.wheelStartY=o.scrollTop,a.wheelDX=i,a.wheelDY=r,setTimeout(function(){if(null!=a.wheelStartX){var e=o.scrollLeft-a.wheelStartX,t=o.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(qa=(qa*Va+n)/(Va+1),++Va)}},200)):(a.wheelDX+=i,a.wheelDY+=r))}}function sn(e,t,n){if("string"==typeof t&&(t=uo[t],!t))return!1;e.display.input.ensurePolled();var i=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),r=t(e)!=Bo}finally{e.display.shift=i,e.state.suppressEdits=!1}return r}function ln(e,t,n){for(var i=0;i<e.state.keyMaps.length;i++){var r=ho(t,e.state.keyMaps[i],n,e);if(r)return r}return e.options.extraKeys&&ho(t,e.options.extraKeys,n,e)||ho(t,e.options.keyMap,n,e)}function un(e,t,n,i){var r=e.state.keySeq;if(r){if(po(t))return"handled";Ja.set(50,function(){e.state.keySeq==r&&(e.state.keySeq=null,e.display.input.reset())}),t=r+" "+t}var a=ln(e,t,i);return"multi"==a&&(e.state.keySeq=t),"handled"==a&&Mr(e,"keyHandled",e,t,n),"handled"!=a&&"multi"!=a||(ko(n),Ne(e)),r&&!a&&/\'$/.test(t)?(ko(n),!0):!!a}function dn(e,t){var n=fo(t,!0);return n?t.shiftKey&&!e.state.keySeq?un(e,"Shift-"+n,t,function(t){return sn(e,t,!0)})||un(e,n,t,function(t){return("string"==typeof t?/^go[A-Z]/.test(t):t.motion)?sn(e,t):void 0}):un(e,n,t,function(t){return sn(e,t)}):!1}function cn(e,t,n){return un(e,"'"+n+"'",t,function(t){return sn(e,t,!0)})}function hn(e){var t=this;if(t.curOp.focus=Ur(),!xr(t,e)){ya&&11>_a&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var i=dn(t,e);La&&(Xa=i?n:null,!i&&88==n&&!is&&(Sa?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||pn(t)}}function pn(e){function t(e){18!=e.keyCode&&e.altKey||(Xo(n,"CodeMirror-crosshair"),Ao(document,"keyup",t),Ao(document,"mouseover",t))}var n=e.display.lineDiv;Qo(n,"CodeMirror-crosshair"),Eo(document,"keyup",t),Eo(document,"mouseover",t)}function fn(e){16==e.keyCode&&(this.doc.sel.shift=!1),xr(this,e)}function mn(e){var t=this;if(!(Ut(t.display,e)||xr(t,e)||e.ctrlKey&&!e.altKey||Sa&&e.metaKey)){var n=e.keyCode,i=e.charCode;if(La&&n==Xa)return Xa=null,void ko(e);if(!La||e.which&&!(e.which<10)||!dn(t,e)){var r=String.fromCharCode(null==i?n:i);cn(t,e,r)||t.display.input.onKeyPress(e)}}}function gn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,yn(e))},100)}function vn(e){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Fo(e,"focus",e),e.state.focused=!0,Qo(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),Da&&setTimeout(function(){e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ne(e))}function yn(e){e.state.delayingBlurEvent||(e.state.focused&&(Fo(e,"blur",e),e.state.focused=!1,Xo(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function _n(e,t){Ut(e.display,t)||Dn(e,t)||xr(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Dn(e,t){return Tr(e,"gutterContextMenu")?Xt(e,t,"gutterContextMenu",!1):!1}function wn(e,t){if(Na(e,t.from)<0)return e;if(Na(e,t.to)<=0)return Qa(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=Qa(t).ch-t.to.ch),Pa(n,i)}function bn(e,t){for(var n=[],i=0;i<e.sel.ranges.length;i++){var r=e.sel.ranges[i];n.push(new ce(wn(r.anchor,t),wn(r.head,t)))}return he(n,e.sel.primIndex)}function Ln(e,t,n){return e.line==t.line?Pa(n.line,e.ch-t.ch+n.ch):Pa(n.line+(e.line-t.line),e.ch)}function Mn(e,t,n){for(var i=[],r=Pa(e.first,0),a=r,o=0;o<t.length;o++){var s=t[o],l=Ln(s.from,r,a),u=Ln(Qa(s),r,a);if(r=s.to,a=u,"around"==n){var d=e.sel.ranges[o],c=Na(d.head,d.anchor)<0;i[o]=new ce(c?u:l,c?l:u)}else i[o]=new ce(l,l)}return new de(i,e.sel.primIndex)}function Cn(e,t,n){var i={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){this.canceled=!0}};return n&&(i.update=function(t,n,i,r){t&&(this.from=me(e,t)),n&&(this.to=me(e,n)),i&&(this.text=i),void 0!==r&&(this.origin=r)}),Fo(e,"beforeChange",e,i),e.cm&&Fo(e.cm,"beforeChange",e.cm,i),i.canceled?null:{from:i.from,to:i.to,text:i.text,origin:i.origin}}function xn(e,t,n){if(e.cm){if(!e.cm.curOp)return Et(e.cm,xn)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Tr(e,"beforeChange")||e.cm&&Tr(e.cm,"beforeChange"))||(t=Cn(e,t,!0))){var i=Ia&&!n&&li(e,t.from,t.to);if(i)for(var r=i.length-1;r>=0;--r)kn(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text});else kn(e,t)}}function kn(e,t){if(1!=t.text.length||""!=t.text[0]||0!=Na(t.from,t.to)){var n=bn(e,t);ur(e,t,n,e.cm?e.cm.curOp.id:NaN),En(e,t,n,ai(e,t));var i=[];Ki(e,function(e,n){n||-1!=Fr(i,e.history)||(_r(e.history,t),i.push(e.history)),En(e,t,null,ai(e,t))})}}function Tn(e,t,n){if(!e.cm||!e.cm.state.suppressEdits){for(var i,r=e.history,a=e.sel,o="undo"==t?r.done:r.undone,s="undo"==t?r.undone:r.done,l=0;l<o.length&&(i=o[l],n?!i.ranges||i.equals(e.sel):i.ranges);l++);if(l!=o.length){for(r.lastOrigin=r.lastSelOrigin=null;i=o.pop(),i.ranges;){if(hr(i,s),n&&!i.equals(e.sel))return void xe(e,i,{clearRedo:!1});a=i}var u=[];hr(a,s),s.push({changes:u,generation:r.generation}),r.generation=i.generation||++r.maxGeneration;for(var d=Tr(e,"beforeChange")||e.cm&&Tr(e.cm,"beforeChange"),l=i.changes.length-1;l>=0;--l){var c=i.changes[l];if(c.origin=t,d&&!Cn(e,c,!1))return void(o.length=0);u.push(or(e,c));var h=l?bn(e,c):Ar(o);En(e,c,h,si(e,c)),!l&&e.cm&&e.cm.scrollIntoView({from:c.from,to:Qa(c)});var p=[];Ki(e,function(e,t){t||-1!=Fr(p,e.history)||(_r(e.history,c),p.push(e.history)),En(e,c,null,si(e,c))})}}}}function Sn(e,t){if(0!=t&&(e.first+=t,e.sel=new de(Or(e.sel.ranges,function(e){return new ce(Pa(e.anchor.line+t,e.anchor.ch),Pa(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){It(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;i<n.viewTo;i++)Bt(e.cm,i,"gutter")}}function En(e,t,n,i){if(e.cm&&!e.cm.curOp)return Et(e.cm,En)(e,t,n,i);if(t.to.line<e.first)return void Sn(e,t.text.length-1-(t.to.line-t.from.line));if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var r=t.text.length-1-(e.first-t.from.line);Sn(e,r),t={from:Pa(e.first,0),to:Pa(t.to.line+r,t.to.ch),text:[Ar(t.text)],origin:t.origin}}var a=e.lastLine();t.to.line>a&&(t={from:t.from,to:Pa(a,Xi(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qi(e,t.from,t.to),n||(n=bn(e,t)),e.cm?Yn(e.cm,t,i):Gi(e,t,i),ke(e,n,Po)}}function Yn(e,t,n){var i=e.doc,r=e.display,o=t.from,s=t.to,l=!1,u=o.line;e.options.lineWrapping||(u=tr(yi(Xi(i,o.line))),i.iter(u,s.line+1,function(e){return e==r.maxLine?(l=!0,!0):void 0})),i.sel.contains(t.from,t.to)>-1&&kr(e),Gi(i,t,n,a(e)),e.options.lineWrapping||(i.iter(u,o.line+t.text.length,function(e){var t=c(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),i.frontier=Math.min(i.frontier,o.line),je(e,400);var d=t.text.length-(s.line-o.line)-1;t.full?It(e):o.line!=s.line||1!=t.text.length||Ui(e.doc,t)?It(e,o.line,s.line+1,d):Bt(e,o.line,"text");var h=Tr(e,"changes"),p=Tr(e,"change");if(p||h){var f={from:o,to:s,text:t.text,removed:t.removed,origin:t.origin};p&&Mr(e,"change",e,f),h&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function An(e,t,n,i,r){if(i||(i=n),Na(i,n)<0){var a=i;i=n,n=a}"string"==typeof t&&(t=e.splitLines(t)),xn(e,{from:n,to:i,text:t,origin:r})}function Fn(e,t){if(!xr(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),r=null;if(t.top+i.top<0?r=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!xa){var a=Hr("div","",null,"position: absolute; top: "+(t.top-n.viewOffset-Re(e.display))+"px; height: "+(t.bottom-t.top+Ge(e)+n.barHeight)+"px; left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(r),e.display.lineSpace.removeChild(a)}}}function On(e,t,n,i){null==i&&(i=0);for(var r=0;5>r;r++){var a=!1,o=pt(e,t),s=n&&n!=t?pt(e,n):o,l=Bn(e,Math.min(o.left,s.left),Math.min(o.top,s.top)-i,Math.max(o.left,s.left),Math.max(o.bottom,s.bottom)+i),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=l.scrollTop&&(rn(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=l.scrollLeft&&(an(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return o}function In(e,t,n,i,r){var a=Bn(e,t,n,i,r);null!=a.scrollTop&&rn(e,a.scrollTop),null!=a.scrollLeft&&an(e,a.scrollLeft)}function Bn(e,t,n,i,r){var a=e.display,o=yt(e.display);0>n&&(n=0);var s=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:a.scroller.scrollTop,l=qe(e),u={};r-n>l&&(r=n+l);var d=e.doc.height+$e(a),c=o>n,h=r>d-o;if(s>n)u.scrollTop=c?0:n;else if(r>s+l){var p=Math.min(n,(h?d:r)-l);p!=s&&(u.scrollTop=p)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:a.scroller.scrollLeft,m=Ve(e)-(e.options.fixedGutter?a.gutters.offsetWidth:0),g=i-t>m;return g&&(i=t+m),10>t?u.scrollLeft=0:f>t?u.scrollLeft=Math.max(0,t-(g?0:10)):i>m+f-3&&(u.scrollLeft=i+(g?0:10)-m),u}function Pn(e,t,n){null==t&&null==n||jn(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Nn(e){jn(e);var t=e.getCursor(),n=t,i=t;e.options.lineWrapping||(n=t.ch?Pa(t.line,t.ch-1):t,i=Pa(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:i,margin:e.options.cursorScrollMargin,isCursor:!0}}function jn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=ft(e,t.from),i=ft(e,t.to),r=Bn(e,Math.min(n.left,i.left),Math.min(n.top,i.top)-t.margin,Math.max(n.right,i.right),Math.max(n.bottom,i.bottom)+t.margin);e.scrollTo(r.scrollLeft,r.scrollTop)}}function zn(e,t,n,i){var r,a=e.doc;null==n&&(n="add"),"smart"==n&&(a.mode.indent?r=He(e,t):n="prev");var o=e.options.tabSize,s=Xi(a,t),l=zo(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var u,d=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&(u=a.mode.indent(r,s.text.slice(d.length),s.text),u==Bo||u>150)){if(!i)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>a.first?zo(Xi(a,t-1).text,null,o):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var c="",h=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/o);p;--p)h+=o,c+=" ";if(u>h&&(c+=Yr(u-h)),c!=d)return An(a,c,Pa(t,0),Pa(t,d.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<a.sel.ranges.length;p++){var f=a.sel.ranges[p];if(f.head.line==t&&f.head.ch<d.length){var h=Pa(t,d.length);be(a,p,new ce(h,h));break}}}function Wn(e,t,n,i){var r=t,a=t;return"number"==typeof t?a=Xi(e,fe(e,t)):r=tr(t),null==r?null:(i(a,r)&&e.cm&&Bt(e.cm,r,n),a)}function Hn(e,t){for(var n=e.doc.sel.ranges,i=[],r=0;r<n.length;r++){for(var a=t(n[r]);i.length&&Na(a.from,Ar(i).to)<=0;){var o=i.pop();if(Na(o.from,a.from)<0){a.from=o.from;break}}i.push(a)}St(e,function(){for(var t=i.length-1;t>=0;t--)An(e.doc,"",i[t].from,i[t].to,"+delete");Nn(e)})}function Rn(e,t,n,i,r){function a(){var t=s+n;return t<e.first||t>=e.first+e.size?!1:(s=t,d=Xi(e,t))}function o(e){var t=(r?ca:ha)(d,l,n,!0);if(null==t){if(e||!a())return!1;l=r?(0>n?ra:ia)(d):0>n?d.text.length:0}else l=t;return!0}var s=t.line,l=t.ch,u=n,d=Xi(e,s);if("char"==i)o();else if("column"==i)o(!0);else if("word"==i||"group"==i)for(var c=null,h="group"==i,p=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(0>n)||o(!f);f=!1){var m=d.text.charAt(l)||"\n",g=jr(m,p)?"w":h&&"\n"==m?"n":!h||/\s/.test(m)?null:"p";if(!h||f||g||(g="s"),c&&c!=g){0>n&&(n=1,o());break}if(g&&(c=g),n>0&&!o(!f))break}var v=Ae(e,Pa(s,l),t,u,!0);return Na(t,v)||(v.hitSide=!0),v}function $n(e,t,n,i){var r,a=e.doc,o=t.left;if("page"==i){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);r=t.top+n*(s-(0>n?1.5:.5)*yt(e.display))}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(;;){var l=gt(e,o,r);if(!l.outside)break;if(0>n?0>=r:r>=a.height){l.hitSide=!0;break}r+=5*n}return l}function Un(t,n,i,r){e.defaults[t]=n,i&&(eo[t]=r?function(e,t,n){n!=to&&i(e,t,n)}:i)}function Gn(e){for(var t,n,i,r,a=e.split(/-(?!$)/),e=a[a.length-1],o=0;o<a.length-1;o++){var s=a[o];if(/^(cmd|meta|m)$/i.test(s))r=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)$/i.test(s))throw new Error("Unrecognized modifier name: "+s);i=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),r&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Vn(e){return"string"==typeof e?co[e]:e}function qn(e,t,n,i,r){if(i&&i.shared)return Kn(e,t,n,i,r);if(e.cm&&!e.cm.curOp)return Et(e.cm,qn)(e,t,n,i,r);var a=new vo(e,r),o=Na(t,n);if(i&&Pr(i,a,!1),o>0||0==o&&a.clearWhenEmpty!==!1)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=Hr("span",[a.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(vi(e,t.line,t,n,a)||t.line!=n.line&&vi(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ba=!0}a.addToHistory&&ur(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(e){u&&a.collapsed&&!u.options.lineWrapping&&yi(e)==u.display.maxLine&&(s=!0),a.collapsed&&l!=t.line&&er(e,0),ni(e,new Zn(a,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),a.collapsed&&e.iter(t.line,n.line+1,function(t){bi(e,t)&&er(t,0)}),a.clearOnEnter&&Eo(a,"beforeCursorEnter",function(){a.clear()}),a.readOnly&&(Ia=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++go,a.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),a.collapsed)It(u,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var d=t.line;d<=n.line;d++)Bt(u,d,"text");a.atomic&&Se(u.doc),Mr(u,"markerAdded",u,a)}return a}function Kn(e,t,n,i,r){i=Pr(i),i.shared=!1;var a=[qn(e,t,n,i,r)],o=a[0],s=i.widgetNode;return Ki(e,function(e){s&&(i.widgetNode=s.cloneNode(!0)),a.push(qn(e,me(e,t),me(e,n),i,r));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;o=Ar(a)}),new yo(a,o)}function Jn(e){return e.findMarks(Pa(e.first,0),e.clipPos(Pa(e.lastLine())),function(e){return e.parent})}function Xn(e,t){for(var n=0;n<t.length;n++){var i=t[n],r=i.find(),a=e.clipPos(r.from),o=e.clipPos(r.to);if(Na(a,o)){var s=qn(e,a,o,i.primary,i.primary.type);i.markers.push(s),s.parent=i}}}function Qn(e){for(var t=0;t<e.length;t++){var n=e[t],i=[n.primary.doc];Ki(n.primary.doc,function(e){i.push(e)});for(var r=0;r<n.markers.length;r++){var a=n.markers[r];-1==Fr(i,a.doc)&&(a.parent=null,n.markers.splice(r--,1))}}}function Zn(e,t,n){this.marker=e,this.from=t,this.to=n}function ei(e,t){if(e)for(var n=0;n<e.length;++n){var i=e[n];if(i.marker==t)return i}}function ti(e,t){for(var n,i=0;i<e.length;++i)e[i]!=t&&(n||(n=[])).push(e[i]);return n}function ni(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function ii(e,t,n){if(e)for(var i,r=0;r<e.length;++r){var a=e[r],o=a.marker,s=null==a.from||(o.inclusiveLeft?a.from<=t:a.from<t);if(s||a.from==t&&"bookmark"==o.type&&(!n||!a.marker.insertLeft)){var l=null==a.to||(o.inclusiveRight?a.to>=t:a.to>t);(i||(i=[])).push(new Zn(o,a.from,l?null:a.to))}}return i}function ri(e,t,n){if(e)for(var i,r=0;r<e.length;++r){var a=e[r],o=a.marker,s=null==a.to||(o.inclusiveRight?a.to>=t:a.to>t);if(s||a.from==t&&"bookmark"==o.type&&(!n||a.marker.insertLeft)){var l=null==a.from||(o.inclusiveLeft?a.from<=t:a.from<t);(i||(i=[])).push(new Zn(o,l?null:a.from-t,null==a.to?null:a.to-t))}}return i}function ai(e,t){if(t.full)return null;var n=ve(e,t.from.line)&&Xi(e,t.from.line).markedSpans,i=ve(e,t.to.line)&&Xi(e,t.to.line).markedSpans;if(!n&&!i)return null;var r=t.from.ch,a=t.to.ch,o=0==Na(t.from,t.to),s=ii(n,r,o),l=ri(i,a,o),u=1==t.text.length,d=Ar(t.text).length+(u?r:0);if(s)for(var c=0;c<s.length;++c){var h=s[c];if(null==h.to){var p=ei(l,h.marker);p?u&&(h.to=null==p.to?null:p.to+d):h.to=r}}if(l)for(var c=0;c<l.length;++c){var h=l[c];if(null!=h.to&&(h.to+=d),null==h.from){var p=ei(s,h.marker);p||(h.from=d,u&&(s||(s=[])).push(h))}else h.from+=d,u&&(s||(s=[])).push(h)}s&&(s=oi(s)),l&&l!=s&&(l=oi(l));var f=[s];if(!u){var m,g=t.text.length-2;if(g>0&&s)for(var c=0;c<s.length;++c)null==s[c].to&&(m||(m=[])).push(new Zn(s[c].marker,null,null));for(var c=0;g>c;++c)f.push(m);f.push(l)}return f}function oi(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function si(e,t){var n=mr(e,t),i=ai(e,t);if(!n)return i;if(!i)return n;for(var r=0;r<n.length;++r){var a=n[r],o=i[r];if(a&&o)e:for(var s=0;s<o.length;++s){for(var l=o[s],u=0;u<a.length;++u)if(a[u].marker==l.marker)continue e;a.push(l)}else o&&(n[r]=o)}return n}function li(e,t,n){var i=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||i&&-1!=Fr(i,n)||(i||(i=[])).push(n)}}),!i)return null;for(var r=[{from:t,to:n}],a=0;a<i.length;++a)for(var o=i[a],s=o.find(0),l=0;l<r.length;++l){var u=r[l];if(!(Na(u.to,s.from)<0||Na(u.from,s.to)>0)){var d=[l,1],c=Na(u.from,s.from),h=Na(u.to,s.to);(0>c||!o.inclusiveLeft&&!c)&&d.push({from:u.from,to:s.from}),(h>0||!o.inclusiveRight&&!h)&&d.push({from:s.to,to:u.to}),r.splice.apply(r,d),l+=d.length-1}}return r}function ui(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function di(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function ci(e){return e.inclusiveLeft?-1:0}function hi(e){return e.inclusiveRight?1:0}function pi(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var i=e.find(),r=t.find(),a=Na(i.from,r.from)||ci(e)-ci(t);if(a)return-a;var o=Na(i.to,r.to)||hi(e)-hi(t);return o?o:t.id-e.id}function fi(e,t){var n,i=Ba&&e.markedSpans;if(i)for(var r,a=0;a<i.length;++a)r=i[a],r.marker.collapsed&&null==(t?r.from:r.to)&&(!n||pi(n,r.marker)<0)&&(n=r.marker);return n}function mi(e){return fi(e,!0)}function gi(e){return fi(e,!1)}function vi(e,t,n,i,r){var a=Xi(e,t),o=Ba&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var l=o[s];if(l.marker.collapsed){var u=l.marker.find(0),d=Na(u.from,n)||ci(l.marker)-ci(r),c=Na(u.to,i)||hi(l.marker)-hi(r);if(!(d>=0&&0>=c||0>=d&&c>=0)&&(0>=d&&(l.marker.inclusiveRight&&r.inclusiveLeft?Na(u.to,n)>=0:Na(u.to,n)>0)||d>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?Na(u.from,i)<=0:Na(u.from,i)<0)))return!0}}}function yi(e){for(var t;t=mi(e);)e=t.find(-1,!0).line;return e}function _i(e){for(var t,n;t=gi(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Di(e,t){var n=Xi(e,t),i=yi(n);return n==i?t:tr(i)}function wi(e,t){if(t>e.lastLine())return t;var n,i=Xi(e,t);if(!bi(e,i))return t;for(;n=gi(i);)i=n.find(1,!0).line;return tr(i)+1}function bi(e,t){var n=Ba&&t.markedSpans;if(n)for(var i,r=0;r<n.length;++r)if(i=n[r],i.marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&Li(e,t,i))return!0}}function Li(e,t,n){if(null==n.to){var i=n.marker.find(1,!0);return Li(e,i.line,ei(i.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var r,a=0;a<t.markedSpans.length;++a)if(r=t.markedSpans[a],r.marker.collapsed&&!r.marker.widgetNode&&r.from==n.to&&(null==r.to||r.to!=n.from)&&(r.marker.inclusiveLeft||n.marker.inclusiveRight)&&Li(e,t,r))return!0}function Mi(e,t,n){ir(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Pn(e,null,n)}function Ci(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!qo(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),$r(t.display.measure,Hr("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function xi(e,t,n,i){var r=new _o(e,n,i),a=e.cm;return a&&r.noHScroll&&(a.display.alignWidgets=!0),Wn(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==r.insertAt?n.push(r):n.splice(Math.min(n.length-1,Math.max(0,r.insertAt)),0,r),r.line=t,a&&!bi(e,t)){var i=ir(t)<e.scrollTop;er(t,t.height+Ci(r)),i&&Pn(a,null,r.height),a.curOp.forceUpdate=!0}return!0}),r}function ki(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),ui(e),di(e,n);var r=i?i(e):1;r!=e.height&&er(e,r)}function Ti(e){e.parent=null,ui(e)}function Si(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var i=n[1]?"bgClass":"textClass";null==t[i]?t[i]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[i])||(t[i]+=" "+n[2])}return e}function Ei(t,n){if(t.blankLine)return t.blankLine(n);if(t.innerMode){var i=e.innerMode(t,n);return i.mode.blankLine?i.mode.blankLine(i.state):void 0}}function Yi(t,n,i,r){for(var a=0;10>a;a++){r&&(r[0]=e.innerMode(t,i).mode);var o=t.token(n,i);if(n.pos>n.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}function Ai(e,t,n,i){function r(e){return{start:c.start,end:c.pos,string:c.current(),type:a||null,state:e?so(o.mode,d):d}}var a,o=e.doc,s=o.mode;t=me(o,t);var l,u=Xi(o,t.line),d=He(e,t.line,n),c=new mo(u.text,e.options.tabSize);for(i&&(l=[]);(i||c.pos<t.ch)&&!c.eol();)c.start=c.pos,a=Yi(s,c,d),i&&l.push(r(!0));return i?l:r()}function Fi(e,t,n,i,r,a,o){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,d=null,c=new mo(t,e.options.tabSize),h=e.options.addModeClass&&[null];for(""==t&&Si(Ei(n,i),a);!c.eol();){if(c.pos>e.options.maxHighlightLength?(s=!1,o&&Bi(e,t,i,c.pos),c.pos=t.length,l=null):l=Si(Yi(n,c,i,h),a),h){var p=h[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||d!=l){for(;u<c.start;)u=Math.min(c.start,u+5e4),r(u,d);d=l}c.start=c.pos}for(;u<c.pos;){var f=Math.min(c.pos,u+5e4);r(f,d),u=f}}function Oi(e,t,n,i){var r=[e.state.modeGen],a={};Fi(e,t.text,e.doc.mode,n,function(e,t){r.push(e,t)},a,i);for(var o=0;o<e.state.overlays.length;++o){var s=e.state.overlays[o],l=1,u=0;Fi(e,t.text,s.mode,!0,function(e,t){for(var n=l;e>u;){var i=r[l];i>e&&r.splice(l,1,e,r[l+1],i),l+=2,u=Math.min(e,i)}if(t)if(s.opaque)r.splice(n,l-n,e,"cm-overlay "+t),l=n+2;else for(;l>n;n+=2){var a=r[n+1];r[n+1]=(a?a+" ":"")+"cm-overlay "+t}},a)}return{styles:r,classes:a.bgClass||a.textClass?a:null}}function Ii(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var i=He(e,tr(t)),r=Oi(e,t,t.text.length>e.options.maxHighlightLength?so(e.doc.mode,i):i);t.stateAfter=i,t.styles=r.styles,r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function Bi(e,t,n,i){var r=e.doc.mode,a=new mo(t,e.options.tabSize);for(a.start=a.pos=i||0,""==t&&Ei(r,n);!a.eol();)Yi(r,a,n),a.start=a.pos}function Pi(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?bo:wo;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Ni(e,t){var n=Hr("span",null,null,Da?"padding-right: .1px":null),i={pre:Hr("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,splitSpaces:(ya||Da)&&e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var a,o=r?t.rest[r-1]:t.line;i.pos=0,i.addToken=zi,Qr(e.display.measure)&&(a=rr(o))&&(i.addToken=Hi(i.addToken,a)),i.map=[];var s=t!=e.display.externalMeasured&&tr(o);$i(o,i,Ii(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=Vr(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=Vr(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Xr(e.display.measure))),0==r?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(Da){var l=i.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Fo(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=Vr(i.pre.className,i.textClass||"")),i}function ji(e){var t=Hr("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function zi(e,t,n,i,r,a,o){if(t){var s=e.splitSpaces?t.replace(/ {3,}/g,Wi):t,l=e.cm.state.specialChars,u=!1;if(l.test(t))for(var d=document.createDocumentFragment(),c=0;;){l.lastIndex=c;var h=l.exec(t),p=h?h.index-c:t.length-c;if(p){var f=document.createTextNode(s.slice(c,c+p));ya&&9>_a?d.appendChild(Hr("span",[f])):d.appendChild(f),e.map.push(e.pos,e.pos+p,f),e.col+=p,e.pos+=p}if(!h)break;if(c+=p+1," "==h[0]){var m=e.cm.options.tabSize,g=m-e.col%m,f=d.appendChild(Hr("span",Yr(g),"cm-tab"));f.setAttribute("role","presentation"),f.setAttribute("cm-text"," "),e.col+=g}else if("\r"==h[0]||"\n"==h[0]){var f=d.appendChild(Hr("span","\r"==h[0]?"␍":"␤","cm-invalidchar"));f.setAttribute("cm-text",h[0]),e.col+=1}else{var f=e.cm.options.specialCharPlaceholder(h[0]);f.setAttribute("cm-text",h[0]),ya&&9>_a?d.appendChild(Hr("span",[f])):d.appendChild(f),e.col+=1}e.map.push(e.pos,e.pos+1,f),e.pos++}else{e.col+=t.length;var d=document.createTextNode(s);e.map.push(e.pos,e.pos+t.length,d),ya&&9>_a&&(u=!0),e.pos+=t.length}if(n||i||r||u||o){var v=n||"";i&&(v+=i),r&&(v+=r);var y=Hr("span",[d],v,o);return a&&(y.title=a),e.content.appendChild(y)}e.content.appendChild(d)}}function Wi(e){for(var t=" ",n=0;n<e.length-2;++n)t+=n%2?" ":" ";return t+=" "}function Hi(e,t){return function(n,i,r,a,o,s,l){r=r?r+" cm-force-border":"cm-force-border";for(var u=n.pos,d=u+i.length;;){for(var c=0;c<t.length;c++){var h=t[c];if(h.to>u&&h.from<=u)break}if(h.to>=d)return e(n,i,r,a,o,s,l);e(n,i.slice(0,h.to-u),r,a,null,s,l),a=null,i=i.slice(h.to-u),u=h.to}}}function Ri(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t}function $i(e,t,n){var i=e.markedSpans,r=e.text,a=0;if(i)for(var o,s,l,u,d,c,h,p=r.length,f=0,m=1,g="",v=0;;){if(v==f){l=u=d=c=s="",h=null,v=1/0;for(var y,_=[],D=0;D<i.length;++D){var w=i[D],b=w.marker;"bookmark"==b.type&&w.from==f&&b.widgetNode?_.push(b):w.from<=f&&(null==w.to||w.to>f||b.collapsed&&w.to==f&&w.from==f)?(null!=w.to&&w.to!=f&&v>w.to&&(v=w.to,u=""),b.className&&(l+=" "+b.className),b.css&&(s=(s?s+";":"")+b.css),b.startStyle&&w.from==f&&(d+=" "+b.startStyle),b.endStyle&&w.to==v&&(y||(y=[])).push(b.endStyle,w.to),b.title&&!c&&(c=b.title),b.collapsed&&(!h||pi(h.marker,b)<0)&&(h=w)):w.from>f&&v>w.from&&(v=w.from)}if(y)for(var D=0;D<y.length;D+=2)y[D+1]==v&&(u+=" "+y[D]);if(!h||h.from==f)for(var D=0;D<_.length;++D)Ri(t,0,_[D]);if(h&&(h.from||0)==f){if(Ri(t,(null==h.to?p+1:h.to)-f,h.marker,null==h.from),null==h.to)return;h.to==f&&(h=!1)}}if(f>=p)break;for(var L=Math.min(p,v);;){if(g){var M=f+g.length;if(!h){var C=M>L?g.slice(0,L-f):g;t.addToken(t,C,o?o+l:l,d,f+C.length==v?u:"",c,s)}if(M>=L){g=g.slice(L-f),f=L;break}f=M,d=""}g=r.slice(a,a=n[m++]),o=Pi(n[m++],t.cm.options)}}else for(var m=1;m<n.length;m+=2)t.addToken(t,r.slice(a,a=n[m]),Pi(n[m+1],t.cm.options))}function Ui(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Ar(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Gi(e,t,n,i){function r(e){return n?n[e]:null}function a(e,n,r){ki(e,n,r,i),Mr(e,"change",e,t)}function o(e,t){for(var n=e,a=[];t>n;++n)a.push(new Do(u[n],r(n),i));return a}var s=t.from,l=t.to,u=t.text,d=Xi(e,s.line),c=Xi(e,l.line),h=Ar(u),p=r(u.length-1),f=l.line-s.line;if(t.full)e.insert(0,o(0,u.length)),e.remove(u.length,e.size-u.length);else if(Ui(e,t)){var m=o(0,u.length-1);a(c,c.text,p),f&&e.remove(s.line,f),m.length&&e.insert(s.line,m)}else if(d==c)if(1==u.length)a(d,d.text.slice(0,s.ch)+h+d.text.slice(l.ch),p);else{var m=o(1,u.length-1);m.push(new Do(h+d.text.slice(l.ch),p,i)),
a(d,d.text.slice(0,s.ch)+u[0],r(0)),e.insert(s.line+1,m)}else if(1==u.length)a(d,d.text.slice(0,s.ch)+u[0]+c.text.slice(l.ch),r(0)),e.remove(s.line+1,f);else{a(d,d.text.slice(0,s.ch)+u[0],r(0)),a(c,h+c.text.slice(l.ch),p);var m=o(1,u.length-1);f>1&&e.remove(s.line+1,f-1),e.insert(s.line+1,m)}Mr(e,"change",e,t)}function Vi(e){this.lines=e,this.parent=null;for(var t=0,n=0;t<e.length;++t)e[t].parent=this,n+=e[t].height;this.height=n}function qi(e){this.children=e;for(var t=0,n=0,i=0;i<e.length;++i){var r=e[i];t+=r.chunkSize(),n+=r.height,r.parent=this}this.size=t,this.height=n,this.parent=null}function Ki(e,t,n){function i(e,r,a){if(e.linked)for(var o=0;o<e.linked.length;++o){var s=e.linked[o];if(s.doc!=r){var l=a&&s.sharedHist;n&&!l||(t(s.doc,l),i(s.doc,e,l))}}}i(e,null,!0)}function Ji(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,o(e),n(e),e.options.lineWrapping||h(e),e.options.mode=t.modeOption,It(e)}function Xi(e,t){if(t-=e.first,0>t||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],a=r.chunkSize();if(a>t){n=r;break}t-=a}return n.lines[t]}function Qi(e,t,n){var i=[],r=t.line;return e.iter(t.line,n.line+1,function(e){var a=e.text;r==n.line&&(a=a.slice(0,n.ch)),r==t.line&&(a=a.slice(t.ch)),i.push(a),++r}),i}function Zi(e,t,n){var i=[];return e.iter(t,n,function(e){i.push(e.text)}),i}function er(e,t){var n=t-e.height;if(n)for(var i=e;i;i=i.parent)i.height+=n}function tr(e){if(null==e.parent)return null;for(var t=e.parent,n=Fr(t.lines,e),i=t.parent;i;t=i,i=i.parent)for(var r=0;i.children[r]!=t;++r)n+=i.children[r].chunkSize();return n+t.first}function nr(e,t){var n=e.first;e:do{for(var i=0;i<e.children.length;++i){var r=e.children[i],a=r.height;if(a>t){e=r;continue e}t-=a,n+=r.chunkSize()}return n}while(!e.lines);for(var i=0;i<e.lines.length;++i){var o=e.lines[i],s=o.height;if(s>t)break;t-=s}return n+i}function ir(e){e=yi(e);for(var t=0,n=e.parent,i=0;i<n.lines.length;++i){var r=n.lines[i];if(r==e)break;t+=r.height}for(var a=n.parent;a;n=a,a=n.parent)for(var i=0;i<a.children.length;++i){var o=a.children[i];if(o==n)break;t+=o.height}return t}function rr(e){var t=e.order;return null==t&&(t=e.order=ss(e.text)),t}function ar(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function or(e,t){var n={from:V(t.from),to:Qa(t),text:Qi(e,t.from,t.to)};return pr(e,n,t.from.line,t.to.line+1),Ki(e,function(e){pr(e,n,t.from.line,t.to.line+1)},!0),n}function sr(e){for(;e.length;){var t=Ar(e);if(!t.ranges)break;e.pop()}}function lr(e,t){return t?(sr(e.done),Ar(e.done)):e.done.length&&!Ar(e.done).ranges?Ar(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Ar(e.done)):void 0}function ur(e,t,n,i){var r=e.history;r.undone.length=0;var a,o=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&r.lastModTime>o-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(a=lr(r,r.lastOp==i))){var s=Ar(a.changes);0==Na(t.from,t.to)&&0==Na(t.from,s.to)?s.to=Qa(t):a.changes.push(or(e,t))}else{var l=Ar(r.done);for(l&&l.ranges||hr(e.sel,r.done),a={changes:[or(e,t)],generation:r.generation},r.done.push(a);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=o,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,s||Fo(e,"historyAdded")}function dr(e,t,n,i){var r=t.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function cr(e,t,n,i){var r=e.history,a=i&&i.origin;n==r.lastSelOp||a&&r.lastSelOrigin==a&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==a||dr(e,a,Ar(r.done),t))?r.done[r.done.length-1]=t:hr(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=a,r.lastSelOp=n,i&&i.clearRedo!==!1&&sr(r.undone)}function hr(e,t){var n=Ar(t);n&&n.ranges&&n.equals(e)||t.push(e)}function pr(e,t,n,i){var r=t["spans_"+e.id],a=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[a]=n.markedSpans),++a})}function fr(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function mr(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var i=0,r=[];i<t.text.length;++i)r.push(fr(n[i]));return r}function gr(e,t,n){for(var i=0,r=[];i<e.length;++i){var a=e[i];if(a.ranges)r.push(n?de.prototype.deepCopy.call(a):a);else{var o=a.changes,s=[];r.push({changes:s});for(var l=0;l<o.length;++l){var u,d=o[l];if(s.push({from:d.from,to:d.to,text:d.text}),t)for(var c in d)(u=c.match(/^spans_(\d+)$/))&&Fr(t,Number(u[1]))>-1&&(Ar(s)[c]=d[c],delete d[c])}}}return r}function vr(e,t,n,i){n<e.line?e.line+=i:t<e.line&&(e.line=t,e.ch=0)}function yr(e,t,n,i){for(var r=0;r<e.length;++r){var a=e[r],o=!0;if(a.ranges){a.copied||(a=e[r]=a.deepCopy(),a.copied=!0);for(var s=0;s<a.ranges.length;s++)vr(a.ranges[s].anchor,t,n,i),vr(a.ranges[s].head,t,n,i)}else{for(var s=0;s<a.changes.length;++s){var l=a.changes[s];if(n<l.from.line)l.from=Pa(l.from.line+i,l.from.ch),l.to=Pa(l.to.line+i,l.to.ch);else if(t<=l.to.line){o=!1;break}}o||(e.splice(0,r+1),r=0)}}}function _r(e,t){var n=t.from.line,i=t.to.line,r=t.text.length-(i-n)-1;yr(e.done,n,i,r),yr(e.undone,n,i,r)}function Dr(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function wr(e){return e.target||e.srcElement}function br(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),Sa&&e.ctrlKey&&1==t&&(t=3),t}function Lr(e,t,n){var i=e._handlers&&e._handlers[t];return n?i&&i.length>0?i.slice():Yo:i||Yo}function Mr(e,t){function n(e){return function(){e.apply(null,a)}}var i=Lr(e,t,!1);if(i.length){var r,a=Array.prototype.slice.call(arguments,2);$a?r=$a.delayedCallbacks:Oo?r=Oo:(r=Oo=[],setTimeout(Cr,0));for(var o=0;o<i.length;++o)r.push(n(i[o]))}}function Cr(){var e=Oo;Oo=null;for(var t=0;t<e.length;++t)e[t]()}function xr(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Fo(e,n||t.type,e,t),Dr(t)||t.codemirrorIgnore}function kr(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<t.length;++i)-1==Fr(n,t[i])&&n.push(t[i])}function Tr(e,t){return Lr(e,t).length>0}function Sr(e){e.prototype.on=function(e,t){Eo(this,e,t)},e.prototype.off=function(e,t){Ao(this,e,t)}}function Er(){this.id=null}function Yr(e){for(;Ho.length<=e;)Ho.push(Ar(Ho)+" ");return Ho[e]}function Ar(e){return e[e.length-1]}function Fr(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}function Or(e,t){for(var n=[],i=0;i<e.length;i++)n[i]=t(e[i],i);return n}function Ir(){}function Br(e,t){var n;return Object.create?n=Object.create(e):(Ir.prototype=e,n=new Ir),t&&Pr(t,n),n}function Pr(e,t,n){t||(t={});for(var i in e)!e.hasOwnProperty(i)||n===!1&&t.hasOwnProperty(i)||(t[i]=e[i]);return t}function Nr(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function jr(e,t){return t?t.source.indexOf("\\w")>-1&&Go(e)?!0:t.test(e):Go(e)}function zr(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function Wr(e){return e.charCodeAt(0)>=768&&Vo.test(e)}function Hr(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)r.appendChild(t[a]);return r}function Rr(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function $r(e,t){return Rr(e).appendChild(t)}function Ur(){for(var e=document.activeElement;e&&e.root&&e.root.activeElement;)e=e.root.activeElement;return e}function Gr(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function Vr(e,t){for(var n=e.split(" "),i=0;i<n.length;i++)n[i]&&!Gr(n[i]).test(t)&&(t+=" "+n[i]);return t}function qr(e){if(document.body.getElementsByClassName)for(var t=document.body.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&e(i)}}function Kr(){Zo||(Jr(),Zo=!0)}function Jr(){var e;Eo(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,qr($t)},100))}),Eo(window,"blur",function(){qr(yn)})}function Xr(e){if(null==Ko){var t=Hr("span","");$r(e,Hr("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ko=t.offsetWidth<=1&&t.offsetHeight>2&&!(ya&&8>_a))}var n=Ko?Hr("span",""):Hr("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Qr(e){if(null!=Jo)return Jo;var t=$r(e,document.createTextNode("AخA")),n=$o(t,0,1).getBoundingClientRect();if(!n||n.left==n.right)return!1;var i=$o(t,1,2).getBoundingClientRect();return Jo=i.right-n.right<3}function Zr(e){if(null!=rs)return rs;var t=$r(e,Hr("span","x")),n=t.getBoundingClientRect(),i=$o(t,0,1).getBoundingClientRect();return rs=Math.abs(n.left-i.left)>1}function ea(e,t,n,i){if(!e)return i(t,n,"ltr");for(var r=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(i(Math.max(o.from,t),Math.min(o.to,n),1==o.level?"rtl":"ltr"),r=!0)}r||i(t,n,"ltr")}function ta(e){return e.level%2?e.to:e.from}function na(e){return e.level%2?e.from:e.to}function ia(e){var t=rr(e);return t?ta(t[0]):0}function ra(e){var t=rr(e);return t?na(Ar(t)):e.text.length}function aa(e,t){var n=Xi(e.doc,t),i=yi(n);i!=n&&(t=tr(i));var r=rr(i),a=r?r[0].level%2?ra(i):ia(i):0;return Pa(t,a)}function oa(e,t){for(var n,i=Xi(e.doc,t);n=gi(i);)i=n.find(1,!0).line,t=null;var r=rr(i),a=r?r[0].level%2?ia(i):ra(i):i.text.length;return Pa(null==t?tr(i):t,a)}function sa(e,t){var n=aa(e,t.line),i=Xi(e.doc,n.line),r=rr(i);if(!r||0==r[0].level){var a=Math.max(0,i.text.search(/\S/)),o=t.line==n.line&&t.ch<=a&&t.ch;return Pa(n.line,o?0:a)}return n}function la(e,t,n){var i=e[0].level;return t==i?!0:n==i?!1:n>t}function ua(e,t){os=null;for(var n,i=0;i<e.length;++i){var r=e[i];if(r.from<t&&r.to>t)return i;if(r.from==t||r.to==t){if(null!=n)return la(e,r.level,e[n].level)?(r.from!=r.to&&(os=n),i):(r.from!=r.to&&(os=i),n);n=i}}return n}function da(e,t,n,i){if(!i)return t+n;do t+=n;while(t>0&&Wr(e.text.charAt(t)));return t}function ca(e,t,n,i){var r=rr(e);if(!r)return ha(e,t,n,i);for(var a=ua(r,t),o=r[a],s=da(e,t,o.level%2?-n:n,i);;){if(s>o.from&&s<o.to)return s;if(s==o.from||s==o.to)return ua(r,s)==a?s:(o=r[a+=n],n>0==o.level%2?o.to:o.from);if(o=r[a+=n],!o)return null;s=n>0==o.level%2?da(e,o.to,-1,i):da(e,o.from,1,i)}}function ha(e,t,n,i){var r=t+n;if(i)for(;r>0&&Wr(e.text.charAt(r));)r+=n;return 0>r||r>e.text.length?null:r}var pa=navigator.userAgent,fa=navigator.platform,ma=/gecko\/\d/i.test(pa),ga=/MSIE \d/.test(pa),va=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pa),ya=ga||va,_a=ya&&(ga?document.documentMode||6:va[1]),Da=/WebKit\//.test(pa),wa=Da&&/Qt\/\d+\.\d+/.test(pa),ba=/Chrome\//.test(pa),La=/Opera\//.test(pa),Ma=/Apple Computer/.test(navigator.vendor),Ca=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(pa),xa=/PhantomJS/.test(pa),ka=/AppleWebKit/.test(pa)&&/Mobile\/\w+/.test(pa),Ta=ka||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(pa),Sa=ka||/Mac/.test(fa),Ea=/\bCrOS\b/.test(pa),Ya=/win/i.test(fa),Aa=La&&pa.match(/Version\/(\d*\.\d*)/);Aa&&(Aa=Number(Aa[1])),Aa&&Aa>=15&&(La=!1,Da=!0);var Fa=Sa&&(wa||La&&(null==Aa||12.11>Aa)),Oa=ma||ya&&_a>=9,Ia=!1,Ba=!1;m.prototype=Pr({update:function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var a=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=e.scrollWidth-e.clientWidth+a+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},setScrollLeft:function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},setScrollTop:function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},zeroWidthHack:function(){var e=Sa&&!Ca?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Er,this.disableVert=new Er},enableZeroWidthBar:function(e,t){function n(){var i=e.getBoundingClientRect(),r=document.elementFromPoint(i.left+1,i.bottom-1);r!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},clear:function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)}},m.prototype),g.prototype=Pr({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},g.prototype),e.scrollbarModel={"native":m,"null":g},C.prototype.signal=function(e,t){Tr(e,t)&&this.events.push(arguments)},C.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Fo.apply(null,this.events[e])};var Pa=e.Pos=function(e,t){return this instanceof Pa?(this.line=e,void(this.ch=t)):new Pa(e,t)},Na=e.cmpPos=function(e,t){return e.line-t.line||e.ch-t.ch},ja=null;ne.prototype=Pr({init:function(e){function t(e){if(!xr(i,e)){if(i.somethingSelected())ja={lineWise:!1,text:i.getSelections()},n.inaccurateSelection&&(n.prevInput="",n.inaccurateSelection=!1,a.value=ja.text.join("\n"),Ro(a));else{if(!i.options.lineWiseCopyCut)return;var t=ee(i);ja={lineWise:!0,text:t.text},"cut"==e.type?i.setSelections(t.ranges,null,Po):(n.prevInput="",a.value=t.text.join("\n"),Ro(a))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var n=this,i=this.cm,r=this.wrapper=ie(),a=this.textarea=r.firstChild;e.wrapper.insertBefore(r,e.wrapper.firstChild),ka&&(a.style.width="0px"),Eo(a,"input",function(){ya&&_a>=9&&n.hasSelection&&(n.hasSelection=null),n.poll()}),Eo(a,"paste",function(e){xr(i,e)||Q(e,i)||(i.state.pasteIncoming=!0,n.fastPoll())}),Eo(a,"cut",t),Eo(a,"copy",t),Eo(e.scroller,"paste",function(t){Ut(e,t)||xr(i,t)||(i.state.pasteIncoming=!0,n.focus())}),Eo(e.lineSpace,"selectstart",function(t){Ut(e,t)||ko(t)}),Eo(a,"compositionstart",function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Eo(a,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},prepareSelection:function(){var e=this.cm,t=e.display,n=e.doc,i=Ie(e);if(e.options.moveInputWithCursor){var r=pt(e,n.sel.primary().head,"div"),a=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+o.top-a.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+o.left-a.left))}return i},showSelection:function(e){var t=this.cm,n=t.display;$r(n.cursorDiv,e.cursors),$r(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},reset:function(e){if(!this.contextMenuPending){var t,n,i=this.cm,r=i.doc;if(i.somethingSelected()){this.prevInput="";var a=r.sel.primary();t=is&&(a.to().line-a.from().line>100||(n=i.getSelection()).length>1e3);var o=t?"-":n||i.getSelection();this.textarea.value=o,i.state.focused&&Ro(this.textarea),ya&&_a>=9&&(this.hasSelection=o)}else e||(this.prevInput=this.textarea.value="",ya&&_a>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!Ta||Ur()!=this.textarea))try{this.textarea.focus()}catch(e){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var e=this;e.pollingFast||e.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},fastPoll:function(){function e(){var i=n.poll();i||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},poll:function(){var e=this.cm,t=this.textarea,n=this.prevInput;if(this.contextMenuPending||!e.state.focused||ns(t)&&!n&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=t.value;if(i==n&&!e.somethingSelected())return!1;if(ya&&_a>=9&&this.hasSelection===i||Sa&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var r=i.charCodeAt(0);if(8203!=r||n||(n=""),8666==r)return this.reset(),this.cm.execCommand("undo")}for(var a=0,o=Math.min(n.length,i.length);o>a&&n.charCodeAt(a)==i.charCodeAt(a);)++a;var s=this;return St(e,function(){X(e,i.slice(a),n.length-a,null,s.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?t.value=s.prevInput="":s.prevInput=i,s.composing&&(s.composing.range.clear(),s.composing.range=e.markText(s.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){ya&&_a>=9&&(this.hasSelection=null),this.fastPoll()},onContextMenu:function(e){function t(){if(null!=o.selectionStart){var e=r.somethingSelected(),t=""+(e?o.value:"");o.value="⇚",o.value=t,i.prevInput=e?"":"",o.selectionStart=1,o.selectionEnd=t.length,a.selForContextMenu=r.doc.sel}}function n(){if(i.contextMenuPending=!1,i.wrapper.style.cssText=c,o.style.cssText=d,ya&&9>_a&&a.scrollbars.setScrollTop(a.scroller.scrollTop=l),null!=o.selectionStart){(!ya||ya&&9>_a)&&t();var e=0,n=function(){a.selForContextMenu==r.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&""==i.prevInput?Et(r,uo.selectAll)(r):e++<10?a.detectingSelectAll=setTimeout(n,500):a.input.reset()};a.detectingSelectAll=setTimeout(n,200)}}var i=this,r=i.cm,a=r.display,o=i.textarea,s=Gt(r,e),l=a.scroller.scrollTop;if(s&&!La){var u=r.options.resetSelectionOnContextMenu;u&&-1==r.doc.sel.contains(s)&&Et(r,xe)(r.doc,pe(s),Po);var d=o.style.cssText,c=i.wrapper.style.cssText;i.wrapper.style.cssText="position: absolute";var h=i.wrapper.getBoundingClientRect();if(o.style.cssText="position: absolute; width: 30px; height: 30px; top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px; z-index: 1000; background: "+(ya?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",Da)var p=window.scrollY;if(a.input.focus(),Da&&window.scrollTo(null,p),a.input.reset(),r.somethingSelected()||(o.value=i.prevInput=" "),i.contextMenuPending=!0,a.selForContextMenu=r.doc.sel,clearTimeout(a.detectingSelectAll),ya&&_a>=9&&t(),Oa){So(e);var f=function(){Ao(window,"mouseup",f),setTimeout(n,20)};Eo(window,"mouseup",f)}else setTimeout(n,50)}},readOnlyChanged:function(e){e||this.reset()},setUneditable:Ir,needsContentAttribute:!1},ne.prototype),re.prototype=Pr({init:function(e){function t(e){if(!xr(i,e)){if(i.somethingSelected())ja={lineWise:!1,text:i.getSelections()},"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=ee(i);ja={lineWise:!0,text:t.text},"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Po),i.replaceSelection("",null,"cut")})}if(e.clipboardData&&!ka)e.preventDefault(),e.clipboardData.clearData(),e.clipboardData.setData("text/plain",ja.text.join("\n"));else{var n=ie(),r=n.firstChild;i.display.lineSpace.insertBefore(n,i.display.lineSpace.firstChild),r.value=ja.text.join("\n");var a=document.activeElement;Ro(r),setTimeout(function(){i.display.lineSpace.removeChild(n),a.focus()},50)}}}var n=this,i=n.cm,r=n.div=e.lineDiv;te(r),Eo(r,"paste",function(e){xr(i,e)||Q(e,i)}),Eo(r,"compositionstart",function(e){var t=e.data;if(n.composing={sel:i.doc.sel,data:t,startData:t},t){var r=i.doc.sel.primary(),a=i.getLine(r.head.line),o=a.indexOf(t,Math.max(0,r.head.ch-t.length));o>-1&&o<=r.head.ch&&(n.composing.sel=pe(Pa(r.head.line,o),Pa(r.head.line,o+t.length)))}}),Eo(r,"compositionupdate",function(e){n.composing.data=e.data}),Eo(r,"compositionend",function(e){var t=n.composing;t&&(e.data==t.startData||/\u200b/.test(e.data)||(t.data=e.data),setTimeout(function(){t.handled||n.applyComposition(t),n.composing==t&&(n.composing=null)},50))}),Eo(r,"touchstart",function(){n.forceCompositionEnd()}),Eo(r,"input",function(){n.composing||!i.isReadOnly()&&n.pollContent()||St(n.cm,function(){It(i)})}),Eo(r,"copy",t),Eo(r,"cut",t)},prepareSelection:function(){var e=Ie(this.cm,!1);return e.focus=this.cm.state.focused,e},showSelection:function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},showPrimarySelection:function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),n=se(this.cm,e.anchorNode,e.anchorOffset),i=se(this.cm,e.focusNode,e.focusOffset);if(!n||n.bad||!i||i.bad||0!=Na(K(n,i),t.from())||0!=Na(q(n,i),t.to())){var r=ae(this.cm,t.from()),a=ae(this.cm,t.to());if(r||a){var o=this.cm.display.view,s=e.rangeCount&&e.getRangeAt(0);if(r){if(!a){var l=o[o.length-1].measure,u=l.maps?l.maps[l.maps.length-1]:l.map;a={node:u[u.length-1],offset:u[u.length-2]-u[u.length-3]}}}else r={node:o[0].measure.map[2],offset:0};try{var d=$o(r.node,r.offset,a.offset,a.node)}catch(c){}d&&(!ma&&this.cm.state.focused?(e.collapse(r.node,r.offset),d.collapsed||e.addRange(d)):(e.removeAllRanges(),e.addRange(d)),s&&null==e.anchorNode?e.addRange(s):ma&&this.startGracePeriod()),this.rememberSelection()}}},startGracePeriod:function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){e.cm.curOp.selectionChanged=!0})},20)},showMultipleSelections:function(e){$r(this.cm.display.cursorDiv,e.cursors),$r(this.cm.display.selectionDiv,e.selection)},rememberSelection:function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},selectionInEditor:function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return qo(this.div,t)},focus:function(){"nocursor"!=this.cm.options.readOnly&&this.div.focus()},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():St(this.cm,function(){t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},selectionChanged:function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;this.rememberSelection();var n=se(t,e.anchorNode,e.anchorOffset),i=se(t,e.focusNode,e.focusOffset);n&&i&&St(t,function(){xe(t.doc,pe(n,i),Po),(n.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}},pollContent:function(){var e=this.cm,t=e.display,n=e.doc.sel.primary(),i=n.from(),r=n.to();if(i.line<t.viewFrom||r.line>t.viewTo-1)return!1;var a;if(i.line==t.viewFrom||0==(a=Nt(e,i.line)))var o=tr(t.view[0].line),s=t.view[0].node;else var o=tr(t.view[a].line),s=t.view[a-1].node.nextSibling;var l=Nt(e,r.line);if(l==t.view.length-1)var u=t.viewTo-1,d=t.lineDiv.lastChild;else var u=tr(t.view[l+1].line)-1,d=t.view[l+1].node.previousSibling;for(var c=e.doc.splitLines(ue(e,s,d,o,u)),h=Qi(e.doc,Pa(o,0),Pa(u,Xi(e.doc,u).text.length));c.length>1&&h.length>1;)if(Ar(c)==Ar(h))c.pop(),h.pop(),u--;else{if(c[0]!=h[0])break;c.shift(),h.shift(),o++}for(var p=0,f=0,m=c[0],g=h[0],v=Math.min(m.length,g.length);v>p&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var y=Ar(c),_=Ar(h),D=Math.min(y.length-(1==c.length?p:0),_.length-(1==h.length?p:0));D>f&&y.charCodeAt(y.length-f-1)==_.charCodeAt(_.length-f-1);)++f;c[c.length-1]=y.slice(0,y.length-f),c[0]=c[0].slice(p);var w=Pa(o,p),b=Pa(u,h.length?Ar(h).length-f:0);return c.length>1||c[0]||Na(w,b)?(An(e.doc,c,w,b,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&!this.composing.handled&&(this.applyComposition(this.composing),this.composing.handled=!0,this.div.blur(),this.div.focus())},applyComposition:function(e){this.cm.isReadOnly()?Et(this.cm,It)(this.cm):e.data&&e.data!=e.startData&&Et(this.cm,X)(this.cm,e.data,0,e.sel)},setUneditable:function(e){e.contentEditable="false"},onKeyPress:function(e){e.preventDefault(),this.cm.isReadOnly()||Et(this.cm,X)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0)},readOnlyChanged:function(e){this.div.contentEditable=String("nocursor"!=e)},onContextMenu:Ir,resetPosition:Ir,needsContentAttribute:!0},re.prototype),e.inputStyles={textarea:ne,contenteditable:re},de.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],i=e.ranges[t];if(0!=Na(n.anchor,i.anchor)||0!=Na(n.head,i.head))return!1}return!0},deepCopy:function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ce(V(this.ranges[t].anchor),V(this.ranges[t].head));return new de(e,this.primIndex)},somethingSelected:function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},contains:function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var i=this.ranges[n];if(Na(t,i.from())>=0&&Na(e,i.to())<=0)return n}return-1}},ce.prototype={from:function(){return K(this.anchor,this.head)},to:function(){return q(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var za,Wa,Ha,Ra={left:0,right:0,top:0,bottom:0},$a=null,Ua=0,Ga=0,Va=0,qa=null;ya?qa=-.53:ma?qa=15:ba?qa=-.7:Ma&&(qa=-1/3);var Ka=function(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}};e.wheelEventPixels=function(e){var t=Ka(e);return t.x*=qa,t.y*=qa,t};var Ja=new Er,Xa=null,Qa=e.changeEnd=function(e){return e.text?Pa(e.from.line+e.text.length-1,Ar(e.text).length+(1==e.text.length?e.from.ch:0)):e.to};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,i=n[e];n[e]==t&&"mode"!=e||(n[e]=t,eo.hasOwnProperty(e)&&Et(this,eo[e])(this,t,i))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Vn(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Yt(function(t,n){var i=t.token?t:e.getMode(this.options,t);if(i.startState)throw new Error("Overlays may not be stateful.");this.state.overlays.push({mode:i,modeSpec:t,opaque:n&&n.opaque}),this.state.modeGen++,It(this)}),removeOverlay:Yt(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var i=t[n].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return t.splice(n,1),this.state.modeGen++,void It(this)}}),indentLine:Yt(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),ve(this.doc,e)&&zn(this,e,t,n)}),indentSelection:Yt(function(e){for(var t=this.doc.sel.ranges,n=-1,i=0;i<t.length;i++){var r=t[i];if(r.empty())r.head.line>n&&(zn(this,r.head.line,e,!0),n=r.head.line,i==this.doc.sel.primIndex&&Nn(this));else{var a=r.from(),o=r.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var l=s;n>l;++l)zn(this,l,e);var u=this.doc.sel.ranges;0==a.ch&&t.length==u.length&&u[i].from().ch>0&&be(this.doc,i,new ce(a,u[i].to()),Po)}}}),getTokenAt:function(e,t){return Ai(this,e,t)},getLineTokens:function(e,t){return Ai(this,Pa(e),t,!0)},getTokenTypeAt:function(e){e=me(this.doc,e);var t,n=Ii(this,Xi(this.doc,e.line)),i=0,r=(n.length-1)/2,a=e.ch;if(0==a)t=n[2];else for(;;){var o=i+r>>1;if((o?n[2*o-1]:0)>=a)r=o;else{if(!(n[2*o+1]<a)){t=n[2*o+2];break}i=o+1}}var s=t?t.indexOf("cm-overlay "):-1;return 0>s?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!oo.hasOwnProperty(t))return n;var i=oo[t],r=this.getModeAt(e);if("string"==typeof r[t])i[r[t]]&&n.push(i[r[t]]);else if(r[t])for(var a=0;a<r[t].length;a++){var o=i[r[t][a]];o&&n.push(o)}else r.helperType&&i[r.helperType]?n.push(i[r.helperType]):i[r.name]&&n.push(i[r.name]);for(var a=0;a<i._global.length;a++){var s=i._global[a];s.pred(r,this)&&-1==Fr(n,s.val)&&n.push(s.val)}return n},getStateAfter:function(e,t){var n=this.doc;return e=fe(n,null==e?n.first+n.size-1:e),He(this,e+1,t)},cursorCoords:function(e,t){var n,i=this.doc.sel.primary();return n=null==e?i.head:"object"==typeof e?me(this.doc,e):e?i.from():i.to(),pt(this,n,t||"page")},charCoords:function(e,t){return ht(this,me(this.doc,e),t||"page")},coordsChar:function(e,t){return e=ct(this,e,t||"page"),gt(this,e.left,e.top)},lineAtHeight:function(e,t){return e=ct(this,{top:e,left:0},t||"page").top,nr(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t){var n,i=!1;if("number"==typeof e){var r=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>r&&(e=r,i=!0),n=Xi(this.doc,e)}else n=e;return dt(this,n,{top:0,left:0},t||"page").top+(i?this.doc.height-ir(n):0)},defaultTextHeight:function(){return yt(this.display)},defaultCharWidth:function(){return _t(this.display)},setGutterMarker:Yt(function(e,t,n){return Wn(this.doc,e,"gutter",function(e){var i=e.gutterMarkers||(e.gutterMarkers={});return i[t]=n,!n&&zr(i)&&(e.gutterMarkers=null),!0})}),clearGutter:Yt(function(e){var t=this,n=t.doc,i=n.first;n.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&(n.gutterMarkers[e]=null,Bt(t,i,"gutter"),zr(n.gutterMarkers)&&(n.gutterMarkers=null)),++i})}),lineInfo:function(e){if("number"==typeof e){if(!ve(this.doc,e))return null;var t=e;if(e=Xi(this.doc,e),!e)return null}else{var t=tr(e);if(null==t)return null}return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var a=this.display;e=pt(this,me(this.doc,e));var o=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==i)o=e.top;else if("above"==i||"near"==i){var l=Math.max(a.wrapper.clientHeight,this.doc.height),u=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(o=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=o+"px",t.style.left=t.style.right="","right"==r?(s=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(a.sizer.clientWidth-t.offsetWidth)/2),
t.style.left=s+"px"),n&&In(this,s,o,s+t.offsetWidth,o+t.offsetHeight)},triggerOnKeyDown:Yt(hn),triggerOnKeyPress:Yt(mn),triggerOnKeyUp:fn,execCommand:function(e){return uo.hasOwnProperty(e)?uo[e].call(null,this):void 0},triggerElectric:Yt(function(e){Z(this,e)}),findPosH:function(e,t,n,i){var r=1;0>t&&(r=-1,t=-t);for(var a=0,o=me(this.doc,e);t>a&&(o=Rn(this.doc,o,r,n,i),!o.hitSide);++a);return o},moveH:Yt(function(e,t){var n=this;n.extendSelectionsBy(function(i){return n.display.shift||n.doc.extend||i.empty()?Rn(n.doc,i.head,e,t,n.options.rtlMoveVisually):0>e?i.from():i.to()},jo)}),deleteH:Yt(function(e,t){var n=this.doc.sel,i=this.doc;n.somethingSelected()?i.replaceSelection("",null,"+delete"):Hn(this,function(n){var r=Rn(i,n.head,e,t,!1);return 0>e?{from:r,to:n.head}:{from:n.head,to:r}})}),findPosV:function(e,t,n,i){var r=1,a=i;0>t&&(r=-1,t=-t);for(var o=0,s=me(this.doc,e);t>o;++o){var l=pt(this,s,"div");if(null==a?a=l.left:l.left=a,s=$n(this,l,r,n),s.hitSide)break}return s},moveV:Yt(function(e,t){var n=this,i=this.doc,r=[],a=!n.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy(function(o){if(a)return 0>e?o.from():o.to();var s=pt(n,o.head,"div");null!=o.goalColumn&&(s.left=o.goalColumn),r.push(s.left);var l=$n(n,s,e,t);return"page"==t&&o==i.sel.primary()&&Pn(n,null,ht(n,l,"div").top-s.top),l},jo),r.length)for(var o=0;o<i.sel.ranges.length;o++)i.sel.ranges[o].goalColumn=r[o]}),findWordAt:function(e){var t=this.doc,n=Xi(t,e.line).text,i=e.ch,r=e.ch;if(n){var a=this.getHelper(e,"wordChars");(e.xRel<0||r==n.length)&&i?--i:++r;for(var o=n.charAt(i),s=jr(o,a)?function(e){return jr(e,a)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!jr(e)};i>0&&s(n.charAt(i-1));)--i;for(;r<n.length&&s(n.charAt(r));)++r}return new ce(Pa(e.line,i),Pa(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Qo(this.display.cursorDiv,"CodeMirror-overwrite"):Xo(this.display.cursorDiv,"CodeMirror-overwrite"),Fo(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ur()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Yt(function(e,t){null==e&&null==t||jn(this),null!=e&&(this.curOp.scrollLeft=e),null!=t&&(this.curOp.scrollTop=t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Ge(this)-this.display.barHeight,width:e.scrollWidth-Ge(this)-this.display.barWidth,clientHeight:qe(this),clientWidth:Ve(this)}},scrollIntoView:Yt(function(e,t){if(null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:Pa(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line)jn(this),this.curOp.scrollToPos=e;else{var n=Bn(this,Math.min(e.from.left,e.to.left),Math.min(e.from.top,e.to.top)-e.margin,Math.max(e.from.right,e.to.right),Math.max(e.from.bottom,e.to.bottom)+e.margin);this.scrollTo(n.scrollLeft,n.scrollTop)}}),setSize:Yt(function(e,t){function n(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e}var i=this;null!=e&&(i.display.wrapper.style.width=n(e)),null!=t&&(i.display.wrapper.style.height=n(t)),i.options.lineWrapping&&ot(this);var r=i.display.viewFrom;i.doc.iter(r,i.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Bt(i,r,"widget");break}++r}),i.curOp.forceUpdate=!0,Fo(i,"refresh",this)}),operation:function(e){return St(this,e)},refresh:Yt(function(){var e=this.display.cachedTextHeight;It(this),this.curOp.forceUpdate=!0,st(this),this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop),d(this),(null==e||Math.abs(e-yt(this.display))>.5)&&o(this),Fo(this,"refresh",this)}),swapDoc:Yt(function(e){var t=this.doc;return t.cm=null,Ji(this,e),st(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Mr(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Sr(e);var Za=e.defaults={},eo=e.optionHandlers={},to=e.Init={toString:function(){return"CodeMirror.Init"}};Un("value","",function(e,t){e.setValue(t)},!0),Un("mode",null,function(e,t){e.doc.modeOption=t,n(e)},!0),Un("indentUnit",2,n,!0),Un("indentWithTabs",!1),Un("smartIndent",!0),Un("tabSize",4,function(e){i(e),st(e),It(e)},!0),Un("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter(function(e){for(var r=0;;){var a=e.text.indexOf(t,r);if(-1==a)break;r=a+t.length,n.push(Pa(i,a))}i++});for(var r=n.length-1;r>=0;r--)An(e.doc,t,n[r],Pa(n[r].line,n[r].ch+t.length))}}),Un("specialChars",/[\u0000-\u001f\u007f\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,n,i){t.state.specialChars=new RegExp(n.source+(n.test(" ")?"":"| "),"g"),i!=e.Init&&t.refresh()}),Un("specialCharPlaceholder",ji,function(e){e.refresh()},!0),Un("electricChars",!0),Un("inputStyle",Ta?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Un("rtlMoveVisually",!Ya),Un("wholeLineUpdateBefore",!0),Un("theme","default",function(e){s(e),l(e)},!0),Un("keyMap","default",function(t,n,i){var r=Vn(n),a=i!=e.Init&&Vn(i);a&&a.detach&&a.detach(t,r),r.attach&&r.attach(t,a||null)}),Un("extraKeys",null),Un("lineWrapping",!1,r,!0),Un("gutters",[],function(e){p(e.options),l(e)},!0),Un("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?M(e.display)+"px":"0",e.refresh()},!0),Un("coverGutterNextToScrollbar",!1,function(e){y(e)},!0),Un("scrollbarStyle","native",function(e){v(e),y(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),Un("lineNumbers",!1,function(e){p(e.options),l(e)},!0),Un("firstLineNumber",1,l,!0),Un("lineNumberFormatter",function(e){return e},l,!0),Un("showCursorWhenSelecting",!1,Oe,!0),Un("resetSelectionOnContextMenu",!0),Un("lineWiseCopyCut",!0),Un("readOnly",!1,function(e,t){"nocursor"==t?(yn(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),Un("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),Un("dragDrop",!0,Rt),Un("allowDropFileTypes",null),Un("cursorBlinkRate",530),Un("cursorScrollMargin",0),Un("cursorHeight",1,Oe,!0),Un("singleCursorHeightPerLine",!0,Oe,!0),Un("workTime",100),Un("workDelay",100),Un("flattenSpans",!0,i,!0),Un("addModeClass",!1,i,!0),Un("pollInterval",100),Un("undoDepth",200,function(e,t){e.doc.history.undoDepth=t}),Un("historyEventDelay",1250),Un("viewportMargin",10,function(e){e.refresh()},!0),Un("maxHighlightLength",1e4,i,!0),Un("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),Un("tabindex",null,function(e,t){e.display.input.getField().tabIndex=t||""}),Un("autofocus",null);var no=e.modes={},io=e.mimeModes={};e.defineMode=function(t,n){e.defaults.mode||"null"==t||(e.defaults.mode=t),arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),no[t]=n},e.defineMIME=function(e,t){io[e]=t},e.resolveMode=function(t){if("string"==typeof t&&io.hasOwnProperty(t))t=io[t];else if(t&&"string"==typeof t.name&&io.hasOwnProperty(t.name)){var n=io[t.name];"string"==typeof n&&(n={name:n}),t=Br(n,t),t.name=n.name}else if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return e.resolveMode("application/xml");return"string"==typeof t?{name:t}:t||{name:"null"}},e.getMode=function(t,n){var n=e.resolveMode(n),i=no[n.name];if(!i)return e.getMode(t,"text/plain");var r=i(t,n);if(ro.hasOwnProperty(n.name)){var a=ro[n.name];for(var o in a)a.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=a[o])}if(r.name=n.name,n.helperType&&(r.helperType=n.helperType),n.modeProps)for(var o in n.modeProps)r[o]=n.modeProps[o];return r},e.defineMode("null",function(){return{token:function(e){e.skipToEnd()}}}),e.defineMIME("text/plain","null");var ro=e.modeExtensions={};e.extendMode=function(e,t){var n=ro.hasOwnProperty(e)?ro[e]:ro[e]={};Pr(t,n)},e.defineExtension=function(t,n){e.prototype[t]=n},e.defineDocExtension=function(e,t){Mo.prototype[e]=t},e.defineOption=Un;var ao=[];e.defineInitHook=function(e){ao.push(e)};var oo=e.helpers={};e.registerHelper=function(t,n,i){oo.hasOwnProperty(t)||(oo[t]=e[t]={_global:[]}),oo[t][n]=i},e.registerGlobalHelper=function(t,n,i,r){e.registerHelper(t,n,r),oo[t]._global.push({pred:i,val:r})};var so=e.copyState=function(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n},lo=e.startState=function(e,t,n){return e.startState?e.startState(t,n):!0};e.innerMode=function(e,t){for(;e.innerMode;){var n=e.innerMode(t);if(!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}};var uo=e.commands={selectAll:function(e){e.setSelection(Pa(e.firstLine(),0),Pa(e.lastLine()),Po)},singleSelection:function(e){e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Po)},killLine:function(e){Hn(e,function(t){if(t.empty()){var n=Xi(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:Pa(t.head.line+1,0)}:{from:t.head,to:Pa(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){Hn(e,function(t){return{from:Pa(t.from().line,0),to:me(e.doc,Pa(t.to().line+1,0))}})},delLineLeft:function(e){Hn(e,function(e){return{from:Pa(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){Hn(e,function(t){var n=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:n},"div");return{from:i,to:t.from()}})},delWrappedLineRight:function(e){Hn(e,function(t){var n=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:i}})},undo:function(e){e.undo()},redo:function(e){e.redo()},undoSelection:function(e){e.undoSelection()},redoSelection:function(e){e.redoSelection()},goDocStart:function(e){e.extendSelection(Pa(e.firstLine(),0))},goDocEnd:function(e){e.extendSelection(Pa(e.lastLine()))},goLineStart:function(e){e.extendSelectionsBy(function(t){return aa(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){e.extendSelectionsBy(function(t){return sa(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){e.extendSelectionsBy(function(t){return oa(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){e.extendSelectionsBy(function(t){var n=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},jo)},goLineLeft:function(e){e.extendSelectionsBy(function(t){var n=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},jo)},goLineLeftSmart:function(e){e.extendSelectionsBy(function(t){var n=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:n},"div");return i.ch<e.getLine(i.line).search(/\S/)?sa(e,t.head):i},jo)},goLineUp:function(e){e.moveV(-1,"line")},goLineDown:function(e){e.moveV(1,"line")},goPageUp:function(e){e.moveV(-1,"page")},goPageDown:function(e){e.moveV(1,"page")},goCharLeft:function(e){e.moveH(-1,"char")},goCharRight:function(e){e.moveH(1,"char")},goColumnLeft:function(e){e.moveH(-1,"column")},goColumnRight:function(e){e.moveH(1,"column")},goWordLeft:function(e){e.moveH(-1,"word")},goGroupRight:function(e){e.moveH(1,"group")},goGroupLeft:function(e){e.moveH(-1,"group")},goWordRight:function(e){e.moveH(1,"word")},delCharBefore:function(e){e.deleteH(-1,"char")},delCharAfter:function(e){e.deleteH(1,"char")},delWordBefore:function(e){e.deleteH(-1,"word")},delWordAfter:function(e){e.deleteH(1,"word")},delGroupBefore:function(e){e.deleteH(-1,"group")},delGroupAfter:function(e){e.deleteH(1,"group")},indentAuto:function(e){e.indentSelection("smart")},indentMore:function(e){e.indentSelection("add")},indentLess:function(e){e.indentSelection("subtract")},insertTab:function(e){e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),i=e.options.tabSize,r=0;r<n.length;r++){var a=n[r].from(),o=zo(e.getLine(a.line),a.ch,i);t.push(Yr(i-o%i))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){St(e,function(){for(var t=e.listSelections(),n=[],i=0;i<t.length;i++){var r=t[i].head,a=Xi(e.doc,r.line).text;if(a)if(r.ch==a.length&&(r=new Pa(r.line,r.ch-1)),r.ch>0)r=new Pa(r.line,r.ch+1),e.replaceRange(a.charAt(r.ch-1)+a.charAt(r.ch-2),Pa(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var o=Xi(e.doc,r.line-1).text;o&&e.replaceRange(a.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),Pa(r.line-1,o.length-1),Pa(r.line,1),"+transpose")}n.push(new ce(r,r))}e.setSelections(n)})},newlineAndIndent:function(e){St(e,function(){for(var t=e.listSelections().length,n=0;t>n;n++){var i=e.listSelections()[n];e.replaceRange(e.doc.lineSeparator(),i.anchor,i.head,"+input"),e.indentLine(i.from().line+1,null,!0)}Nn(e)})},openLine:function(e){e.replaceSelection("\n","start")},toggleOverwrite:function(e){e.toggleOverwrite()}},co=e.keyMap={};co.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},co.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},co.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},co.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},co["default"]=Sa?co.macDefault:co.pcDefault,e.normalizeKeyMap=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==i){delete e[n];continue}for(var r=Or(n.split(" "),Gn),a=0;a<r.length;a++){var o,s;a==r.length-1?(s=r.join(" "),o=i):(s=r.slice(0,a+1).join(" "),o="...");var l=t[s];if(l){if(l!=o)throw new Error("Inconsistent bindings for "+s)}else t[s]=o}delete e[n]}for(var u in t)e[u]=t[u];return e};var ho=e.lookupKey=function(e,t,n,i){t=Vn(t);var r=t.call?t.call(e,i):t[e];if(r===!1)return"nothing";if("..."===r)return"multi";if(null!=r&&n(r))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return ho(e,t.fallthrough,n,i);for(var a=0;a<t.fallthrough.length;a++){var o=ho(e,t.fallthrough[a],n,i);if(o)return o}}},po=e.isModifierKey=function(e){var t="string"==typeof e?e:as[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t},fo=e.keyName=function(e,t){if(La&&34==e.keyCode&&e["char"])return!1;var n=as[e.keyCode],i=n;return null==i||e.altGraphKey?!1:(e.altKey&&"Alt"!=n&&(i="Alt-"+i),(Fa?e.metaKey:e.ctrlKey)&&"Ctrl"!=n&&(i="Ctrl-"+i),(Fa?e.ctrlKey:e.metaKey)&&"Cmd"!=n&&(i="Cmd-"+i),!t&&e.shiftKey&&"Shift"!=n&&(i="Shift-"+i),i)};e.fromTextArea=function(t,n){function i(){t.value=u.getValue()}if(n=n?Pr(n):{},n.value=t.value,!n.tabindex&&t.tabIndex&&(n.tabindex=t.tabIndex),!n.placeholder&&t.placeholder&&(n.placeholder=t.placeholder),null==n.autofocus){var r=Ur();n.autofocus=r==t||null!=t.getAttribute("autofocus")&&r==document.body}if(t.form&&(Eo(t.form,"submit",i),!n.leaveSubmitMethodAlone)){var a=t.form,o=a.submit;try{var s=a.submit=function(){i(),a.submit=o,a.submit(),a.submit=s}}catch(l){}}n.finishInit=function(e){e.save=i,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,i(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(Ao(t.form,"submit",i),"function"==typeof t.form.submit&&(t.form.submit=o))}},t.style.display="none";var u=e(function(e){t.parentNode.insertBefore(e,t.nextSibling)},n);return u};var mo=e.StringStream=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};mo.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){return this.pos<this.string.length?this.string.charAt(this.pos++):void 0},eat:function(e){var t=this.string.charAt(this.pos);if("string"==typeof e)var n=t==e;else var n=t&&(e.test?e.test(t):e(t));return n?(++this.pos,t):void 0},eatWhile:function(e){for(var t=this.pos;this.eat(e););return this.pos>t},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);return t>-1?(this.pos=t,!0):void 0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=zo(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?zo(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return zo(this.string,null,this.tabSize)-(this.lineStart?zo(this.string,this.lineStart,this.tabSize):0)},match:function(e,t,n){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e},a=this.string.substr(this.pos,e.length);return r(a)==r(e)?(t!==!1&&(this.pos+=e.length),!0):void 0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var go=0,vo=e.TextMarker=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++go};Sr(vo),vo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Dt(e),Tr(this,"clear")){var n=this.find();n&&Mr(this,"clear",n.from,n.to)}for(var i=null,r=null,a=0;a<this.lines.length;++a){var o=this.lines[a],s=ei(o.markedSpans,this);e&&!this.collapsed?Bt(e,tr(o),"text"):e&&(null!=s.to&&(r=tr(o)),null!=s.from&&(i=tr(o))),o.markedSpans=ti(o.markedSpans,s),null==s.from&&this.collapsed&&!bi(this.doc,o)&&e&&er(o,yt(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var a=0;a<this.lines.length;++a){var l=yi(this.lines[a]),u=c(l);u>e.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&It(e,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Se(e.doc)),e&&Mr(e,"markerCleared",e,this),t&&bt(e),this.parent&&this.parent.clear()}},vo.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var n,i,r=0;r<this.lines.length;++r){var a=this.lines[r],o=ei(a.markedSpans,this);if(null!=o.from&&(n=Pa(t?a:tr(a),o.from),-1==e))return n;if(null!=o.to&&(i=Pa(t?a:tr(a),o.to),1==e))return i}return n&&{from:n,to:i}},vo.prototype.changed=function(){var e=this.find(-1,!0),t=this,n=this.doc.cm;e&&n&&St(n,function(){var i=e.line,r=tr(e.line),a=Ze(n,r);if(a&&(at(a),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!bi(t.doc,i)&&null!=t.height){var o=t.height;t.height=null;var s=Ci(t)-o;s&&er(i,i.height+s)}})},vo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=Fr(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},vo.prototype.detachLine=function(e){if(this.lines.splice(Fr(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}};var go=0,yo=e.SharedTextMarker=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};Sr(yo),yo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Mr(this,"clear")}},yo.prototype.find=function(e,t){return this.primary.find(e,t)};var _o=e.LineWidget=function(e,t,n){if(n)for(var i in n)n.hasOwnProperty(i)&&(this[i]=n[i]);this.doc=e,this.node=t};Sr(_o),_o.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,i=tr(n);if(null!=i&&t){for(var r=0;r<t.length;++r)t[r]==this&&t.splice(r--,1);t.length||(n.widgets=null);var a=Ci(this);er(n,Math.max(0,n.height-a)),e&&St(e,function(){Mi(e,n,-a),Bt(e,i,"widget")})}},_o.prototype.changed=function(){var e=this.height,t=this.doc.cm,n=this.line;this.height=null;var i=Ci(this)-e;i&&(er(n,n.height+i),t&&St(t,function(){t.curOp.forceUpdate=!0,Mi(t,n,i)}))};var Do=e.Line=function(e,t,n){this.text=e,di(this,t),this.height=n?n(this):1};Sr(Do),Do.prototype.lineNo=function(){return tr(this)};var wo={},bo={};Vi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,i=e+t;i>n;++n){var r=this.lines[n];this.height-=r.height,Ti(r),Mr(r,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=this},iterN:function(e,t,n){for(var i=e+t;i>e;++e)if(n(this.lines[e]))return!0}},qi.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var i=this.children[n],r=i.chunkSize();if(r>e){var a=Math.min(t,r-e),o=i.height;if(i.removeInner(e,a),this.height-=o-i.height,r==a&&(this.children.splice(n--,1),i.parent=null),0==(t-=a))break;e=0}else e-=r}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Vi))){var s=[];this.collapse(s),this.children=[new Vi(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var r=this.children[i],a=r.chunkSize();if(a>=e){if(r.insertInner(e,t,n),r.lines&&r.lines.length>50){for(var o=r.lines.length%25+25,s=o;s<r.lines.length;){var l=new Vi(r.lines.slice(s,s+=25));r.height-=l.height,this.children.splice(++i,0,l),l.parent=this}r.lines=r.lines.slice(0,o),this.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new qi(t);if(e.parent){e.size-=n.size,e.height-=n.height;var i=Fr(e.parent.children,e);e.parent.children.splice(i+1,0,n)}else{var r=new qi(e.children);r.parent=e,e.children=[r,n],e=r}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i<this.children.length;++i){var r=this.children[i],a=r.chunkSize();if(a>e){var o=Math.min(t,a-e);if(r.iterN(e,o,n))return!0;if(0==(t-=o))break;e=0}else e-=a}}};var Lo=0,Mo=e.Doc=function(e,t,n,i){if(!(this instanceof Mo))return new Mo(e,t,n,i);null==n&&(n=0),qi.call(this,[new Vi([new Do("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.frontier=n;var r=Pa(n,0);this.sel=pe(r),this.history=new ar(null),this.id=++Lo,this.modeOption=t,this.lineSep=i,this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Gi(this,{from:r,to:r,text:e}),xe(this,pe(r),Po)};Mo.prototype=Br(qi.prototype,{constructor:Mo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,i=0;i<t.length;++i)n+=t[i].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Zi(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:At(function(e){var t=Pa(this.first,0),n=this.first+this.size-1;xn(this,{from:t,to:Pa(n,Xi(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),xe(this,pe(t))}),replaceRange:function(e,t,n,i){t=me(this,t),n=n?me(this,n):t,An(this,e,t,n,i)},getRange:function(e,t,n){var i=Qi(this,me(this,e),me(this,t));return n===!1?i:i.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){return ve(this,e)?Xi(this,e):void 0},getLineNumber:function(e){return tr(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Xi(this,e)),yi(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return me(this,e)},getCursor:function(e){var t,n=this.sel.primary();return t=null==e||"head"==e?n.head:"anchor"==e?n.anchor:"end"==e||"to"==e||e===!1?n.to():n.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:At(function(e,t,n){Le(this,me(this,"number"==typeof e?Pa(e,t||0):e),null,n)}),setSelection:At(function(e,t,n){Le(this,me(this,e),me(this,t||e),n)}),extendSelection:At(function(e,t,n){De(this,me(this,e),t&&me(this,t),n)}),extendSelections:At(function(e,t){we(this,ye(this,e),t)}),extendSelectionsBy:At(function(e,t){var n=Or(this.sel.ranges,e);we(this,ye(this,n),t)}),setSelections:At(function(e,t,n){if(e.length){for(var i=0,r=[];i<e.length;i++)r[i]=new ce(me(this,e[i].anchor),me(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),xe(this,he(r,t),n)}}),addSelection:At(function(e,t,n){var i=this.sel.ranges.slice(0);i.push(new ce(me(this,e),me(this,t||e))),xe(this,he(i,i.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,i=0;i<n.length;i++){var r=Qi(this,n[i].from(),n[i].to());t=t?t.concat(r):r}return e===!1?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,i=0;i<n.length;i++){var r=Qi(this,n[i].from(),n[i].to());e!==!1&&(r=r.join(e||this.lineSeparator())),t[i]=r}return t},replaceSelection:function(e,t,n){for(var i=[],r=0;r<this.sel.ranges.length;r++)i[r]=e;this.replaceSelections(i,t,n||"+input")},replaceSelections:At(function(e,t,n){for(var i=[],r=this.sel,a=0;a<r.ranges.length;a++){var o=r.ranges[a];i[a]={from:o.from(),to:o.to(),text:this.splitLines(e[a]),origin:n}}for(var s=t&&"end"!=t&&Mn(this,i,t),a=i.length-1;a>=0;a--)xn(this,i[a]);s?Ce(this,s):this.cm&&Nn(this.cm)}),undo:At(function(){Tn(this,"undo")}),redo:At(function(){Tn(this,"redo")}),undoSelection:At(function(){Tn(this,"undo",!0)}),redoSelection:At(function(){Tn(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i<e.done.length;i++)e.done[i].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new ar(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:gr(this.history.done),undone:gr(this.history.undone)}},setHistory:function(e){var t=this.history=new ar(this.history.maxGeneration);t.done=gr(e.done.slice(0),null,!0),t.undone=gr(e.undone.slice(0),null,!0)},addLineClass:At(function(e,t,n){return Wn(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[i]){if(Gr(n).test(e[i]))return!1;e[i]+=" "+n}else e[i]=n;return!0})}),removeLineClass:At(function(e,t,n){return Wn(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",r=e[i];if(!r)return!1;if(null==n)e[i]=null;else{var a=r.match(Gr(n));if(!a)return!1;var o=a.index+a[0].length;e[i]=r.slice(0,a.index)+(a.index&&o!=r.length?" ":"")+r.slice(o)||null}return!0})}),addLineWidget:At(function(e,t,n){return xi(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return qn(this,me(this,e),me(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=me(this,e),qn(this,e,e,n,"bookmark")},findMarksAt:function(e){e=me(this,e);var t=[],n=Xi(this,e.line).markedSpans;if(n)for(var i=0;i<n.length;++i){var r=n[i];(null==r.from||r.from<=e.ch)&&(null==r.to||r.to>=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=me(this,e),t=me(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,function(a){var o=a.markedSpans;if(o)for(var s=0;s<o.length;s++){var l=o[s];null!=l.to&&r==e.line&&e.ch>=l.to||null==l.from&&r!=e.line||null!=l.from&&r==t.line&&l.from>=t.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var i=0;i<n.length;++i)null!=n[i].from&&e.push(n[i].marker)}),e},posFromIndex:function(e){var t,n=this.first,i=this.lineSeparator().length;return this.iter(function(r){var a=r.text.length+i;return a>e?(t=e,!0):(e-=a,void++n)}),me(this,Pa(n,t))},indexFromPos:function(e){e=me(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Mo(Zi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var i=new Mo(Zi(this,t,n),e.mode||this.modeOption,t,this.lineSep);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Xn(i,Jn(this)),i},unlinkDoc:function(t){if(t instanceof e&&(t=t.doc),this.linked)for(var n=0;n<this.linked.length;++n){var i=this.linked[n];if(i.doc==t){this.linked.splice(n,1),t.unlinkDoc(this),
Qn(Jn(this));break}}if(t.history==this.history){var r=[t.id];Ki(t,function(e){r.push(e.id)},!0),t.history=new ar(null),t.history.done=gr(this.history.done,r),t.history.undone=gr(this.history.undone,r)}},iterLinkedDocs:function(e){Ki(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ts(e)},lineSeparator:function(){return this.lineSep||"\n"}}),Mo.prototype.eachLine=Mo.prototype.iter;var Co="iter insert remove copy getEditor constructor".split(" ");for(var xo in Mo.prototype)Mo.prototype.hasOwnProperty(xo)&&Fr(Co,xo)<0&&(e.prototype[xo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mo.prototype[xo]));Sr(Mo);var ko=e.e_preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},To=e.e_stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},So=e.e_stop=function(e){ko(e),To(e)},Eo=e.on=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var i=e._handlers||(e._handlers={}),r=i[t]||(i[t]=[]);r.push(n)}},Yo=[],Ao=e.off=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else for(var i=Lr(e,t,!1),r=0;r<i.length;++r)if(i[r]==n){i.splice(r,1);break}},Fo=e.signal=function(e,t){var n=Lr(e,t,!0);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r<n.length;++r)n[r].apply(null,i)},Oo=null,Io=30,Bo=e.Pass={toString:function(){return"CodeMirror.Pass"}},Po={scroll:!1},No={origin:"*mouse"},jo={origin:"+move"};Er.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var zo=e.countColumn=function(e,t,n,i,r){null==t&&(t=e.search(/[^\s\u00a0]/),-1==t&&(t=e.length));for(var a=i||0,o=r||0;;){var s=e.indexOf(" ",a);if(0>s||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}},Wo=e.findColumn=function(e,t,n){for(var i=0,r=0;;){var a=e.indexOf(" ",i);-1==a&&(a=e.length);var o=a-i;if(a==e.length||r+o>=t)return i+Math.min(o,t-r);if(r+=a-i,r+=n-r%n,i=a+1,r>=t)return i}},Ho=[""],Ro=function(e){e.select()};ka?Ro=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ya&&(Ro=function(e){try{e.select()}catch(t){}});var $o,Uo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Go=e.isWordChar=function(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Uo.test(e))},Vo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;$o=document.createRange?function(e,t,n,i){var r=document.createRange();return r.setEnd(i||e,n),r.setStart(e,t),r}:function(e,t,n){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch(r){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i};var qo=e.contains=function(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do if(11==t.nodeType&&(t=t.host),t==e)return!0;while(t=t.parentNode)};ya&&11>_a&&(Ur=function(){try{return document.activeElement}catch(e){return document.body}});var Ko,Jo,Xo=e.rmClass=function(e,t){var n=e.className,i=Gr(t).exec(n);if(i){var r=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(r?i[1]+r:"")}},Qo=e.addClass=function(e,t){var n=e.className;Gr(t).test(n)||(e.className+=(n?" ":"")+t)},Zo=!1,es=function(){if(ya&&9>_a)return!1;var e=Hr("div");return"draggable"in e||"dragDrop"in e}(),ts=e.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;i>=t;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var a=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),o=a.indexOf("\r");-1!=o?(n.push(a.slice(0,o)),t+=o+1):(n.push(a),t=r+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ns=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(n){}return t&&t.parentElement()==e?0!=t.compareEndPoints("StartToEnd",t):!1},is=function(){var e=Hr("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),rs=null,as=e.keyNames={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};!function(){for(var e=0;10>e;e++)as[e+48]=as[e+96]=String(e);for(var e=65;90>=e;e++)as[e]=String.fromCharCode(e);for(var e=1;12>=e;e++)as[e+111]=as[e+63235]="F"+e}();var os,ss=function(){function e(e){return 247>=e?n.charAt(e):e>=1424&&1524>=e?"R":e>=1536&&1773>=e?i.charAt(e-1536):e>=1774&&2220>=e?"r":e>=8192&&8203>=e?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=/[stwN]/,o=/[LRr]/,s=/[Lb1n]/,l=/[1n]/,u="L";return function(n){if(!r.test(n))return!1;for(var i,d=n.length,c=[],h=0;d>h;++h)c.push(i=e(n.charCodeAt(h)));for(var h=0,p=u;d>h;++h){var i=c[h];"m"==i?c[h]=p:p=i}for(var h=0,f=u;d>h;++h){var i=c[h];"1"==i&&"r"==f?c[h]="n":o.test(i)&&(f=i,"r"==i&&(c[h]="R"))}for(var h=1,p=c[0];d-1>h;++h){var i=c[h];"+"==i&&"1"==p&&"1"==c[h+1]?c[h]="1":","!=i||p!=c[h+1]||"1"!=p&&"n"!=p||(c[h]=p),p=i}for(var h=0;d>h;++h){var i=c[h];if(","==i)c[h]="N";else if("%"==i){for(var m=h+1;d>m&&"%"==c[m];++m);for(var g=h&&"!"==c[h-1]||d>m&&"1"==c[m]?"1":"N",v=h;m>v;++v)c[v]=g;h=m-1}}for(var h=0,f=u;d>h;++h){var i=c[h];"L"==f&&"1"==i?c[h]="L":o.test(i)&&(f=i)}for(var h=0;d>h;++h)if(a.test(c[h])){for(var m=h+1;d>m&&a.test(c[m]);++m);for(var y="L"==(h?c[h-1]:u),_="L"==(d>m?c[m]:u),g=y||_?"L":"R",v=h;m>v;++v)c[v]=g;h=m-1}for(var D,w=[],h=0;d>h;)if(s.test(c[h])){var b=h;for(++h;d>h&&s.test(c[h]);++h);w.push(new t(0,b,h))}else{var L=h,M=w.length;for(++h;d>h&&"L"!=c[h];++h);for(var v=L;h>v;)if(l.test(c[v])){v>L&&w.splice(M,0,new t(1,L,v));var C=v;for(++v;h>v&&l.test(c[v]);++v);w.splice(M,0,new t(2,C,v)),L=v}else++v;h>L&&w.splice(M,0,new t(1,L,h))}return 1==w[0].level&&(D=n.match(/^\s+/))&&(w[0].from=D[0].length,w.unshift(new t(0,0,D[0].length))),1==Ar(w).level&&(D=n.match(/\s+$/))&&(Ar(w).to-=D[0].length,w.push(new t(0,d-D[0].length,d))),2==w[0].level&&w.unshift(new t(1,w[0].to,w[0].to)),w[0].level!=Ar(w).level&&w.push(new t(w[0].level,d,d)),w}}();return e.version="5.15.2",e})},function(e,t,n){"use strict";!function(t){e.exports=t()}(function(){var e,t,n,i={noMore:!1},r=function(e){var t={};return e&&"[object Function]"==t.toString.call(e)},a=function(e){return e%1===0},o=function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(){return Object.defineProperty||Object.prototype.__defineGetter__},l=function(e,t,n,i){try{Object.defineProperty(e,t,{get:n,set:i,enumerable:!0,configurable:!0})}catch(r){try{Object.prototype.__defineGetter__.call(e,t,n),Object.prototype.__defineSetter__.call(e,t,i)}catch(a){throw"watchJS error: browser not supported :/"}}},u=function(e,t,n){try{Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!1,value:n})}catch(i){e[t]=n}},d=function(){r(arguments[1])?c.apply(this,arguments):o(arguments[1])?h.apply(this,arguments):p.apply(this,arguments)},c=function(e,t,n){if(!(e instanceof String)&&(e instanceof Object||o(e))){var i=[];if(o(e))for(var r=0;r<e.length;r++)i.push(r);else for(var a in e)i.push(a);h(e,i,t,n)}},h=function(e,t,n,i){for(var r in t)p(e,t[r],n,i)},p=function(t,n,i,a){r(t[n])||(null!=t[n]&&(void 0===a||a>0)&&(void 0!==a&&a--,c(t[n],i,a)),e(t,n,i))},f=function(){r(arguments[1])?m.apply(this,arguments):o(arguments[1])?g.apply(this,arguments):t.apply(this,arguments)},m=function(e,t){if(!(e instanceof String)&&(e instanceof Object||o(e))){var n=[];if(o(e))for(var i=0;i<e.length;i++)n.push(i);else for(var r in e)n.push(r);g(e,n,t)}},g=function(e,n,i){for(var r in n)t(e,n[r],i)};if(s()){e=function(e,t,r){var a=e[t];_(e,t),e.watchers||u(e,"watchers",{}),e.watchers[t]||(e.watchers[t]=[]),e.watchers[t].push(r);var o=function(){return a},s=function(o){var s=a;a=o,e[t]&&c(e[t],r),_(e,t),i.noMore||JSON.stringify(s)!==JSON.stringify(o)&&(n(e,t,"set",o,s),i.noMore=!1)};l(e,t,o,s)},n=function(e,t,n,i,r){for(var o in e.watchers[t])a(o)&&e.watchers[t][o].call(e,t,n,i,r)};var v=["pop","push","reverse","shift","sort","slice","unshift"],y=function(e,t,i,r){u(e[t],r,function(){var a=i.apply(e[t],arguments);return p(e,e[t]),"slice"!==r&&n(e,t,r,arguments),a})},_=function(e,t){if(e[t]&&!(e[t]instanceof String)&&o(e[t]))for(var n,i=v.length;i--;)n=v[i],y(e,t,e[t][n],n)};t=function(e,t,n){for(var i in e.watchers[t]){var r=e.watchers[t][i];r==n&&e.watchers[t].splice(i,1)}}}else{var D=[];e=function(e,t,n){D.push({obj:e,prop:t,serialized:JSON.stringify(e[t]),watcher:n})},t=function(e,t,n){for(var i in D){var r=D[i];r.obj==e&&r.prop==t&&r.watcher==n&&D.splice(i,1)}},n=function(e,t,n,i){for(var r in D){var a=D[r];a.obj==e&&a.prop==t&&a.watcher.call(e,t,n,i)}};var w=function(){for(var e in D){var t=D[e],n=JSON.stringify(t.obj[t.prop]);n!=t.serialized&&(t.watcher.call(t.obj,t.prop,t.obj[t.prop],JSON.parse(t.serialized)),t.serialized=n)}};setInterval(w,50)}return i.watch=d,i.unwatch=f,i.callWatchers=n,i})},function(e,t,n){"use strict";var i=n(341);e.exports=i},function(e,t,n){"use strict";function i(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}var r=n(342),a=n(374);e.exports.Type=n(348),e.exports.Schema=n(347),e.exports.FAILSAFE_SCHEMA=n(351),e.exports.JSON_SCHEMA=n(350),e.exports.CORE_SCHEMA=n(349),e.exports.DEFAULT_SAFE_SCHEMA=n(346),e.exports.DEFAULT_FULL_SCHEMA=n(369),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.safeLoad=r.safeLoad,e.exports.safeLoadAll=r.safeLoadAll,e.exports.dump=a.dump,e.exports.safeDump=a.safeDump,e.exports.YAMLException=n(344),e.exports.MINIMAL_SCHEMA=n(351),e.exports.SAFE_SCHEMA=n(346),e.exports.DEFAULT_SCHEMA=n(369),e.exports.scan=i("scan"),e.exports.parse=i("parse"),e.exports.compose=i("compose"),e.exports.addConstructor=i("addConstructor")},function(e,t,n){"use strict";function i(e){return 10===e||13===e}function r(e){return 9===e||32===e}function a(e){return 9===e||32===e||10===e||13===e}function o(e){return 44===e||91===e||93===e||123===e||125===e}function s(e){var t;return e>=48&&57>=e?e-48:(t=32|e,t>=97&&102>=t?t-97+10:-1)}function l(e){return 120===e?2:117===e?4:85===e?8:0}function u(e){return e>=48&&57>=e?e-48:-1}function d(e){return 48===e?"\x00":97===e?"":98===e?"\b":116===e?" ":9===e?" ":110===e?"\n":118===e?"\x0B":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function c(e){return 65535>=e?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function h(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||$,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function p(e,t){return new W(t,new H(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function f(e,t){throw p(e,t)}function m(e,t){e.onWarning&&e.onWarning.call(null,p(e,t))}function g(e,t,n,i){var r,a,o,s;if(n>t){if(s=e.input.slice(t,n),i)for(r=0,a=s.length;a>r;r+=1)o=s.charCodeAt(r),9===o||o>=32&&1114111>=o||f(e,"expected valid JSON character");else Z.test(s)&&f(e,"the stream contains non-printable characters");e.result+=s}}function v(e,t,n,i){var r,a,o,s;for(z.isObject(n)||f(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(n),o=0,s=r.length;s>o;o+=1)a=r[o],U.call(t,a)||(t[a]=n[a],i[a]=!0)}function y(e,t,n,i,r,a){var o,s;if(r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(a))for(o=0,s=a.length;s>o;o+=1)v(e,t,a[o],n);else v(e,t,a,n);else e.json||U.call(n,r)||!U.call(t,r)||f(e,"duplicated mapping key"),t[r]=a,delete n[r];return t}function _(e){var t;t=e.input.charCodeAt(e.position),10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):f(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function D(e,t,n){for(var a=0,o=e.input.charCodeAt(e.position);0!==o;){for(;r(o);)o=e.input.charCodeAt(++e.position);if(t&&35===o)do o=e.input.charCodeAt(++e.position);while(10!==o&&13!==o&&0!==o);if(!i(o))break;for(_(e),o=e.input.charCodeAt(e.position),a++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==a&&e.lineIndent<n&&m(e,"deficient indentation"),a}function w(e){var t,n=e.position;return t=e.input.charCodeAt(n),(45===t||46===t)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,t=e.input.charCodeAt(n),0===t||a(t))}function b(e,t){1===t?e.result+=" ":t>1&&(e.result+=z.repeat("\n",t-1))}function L(e,t,n){var s,l,u,d,c,h,p,f,m,v=e.kind,y=e.result;if(m=e.input.charCodeAt(e.position),a(m)||o(m)||35===m||38===m||42===m||33===m||124===m||62===m||39===m||34===m||37===m||64===m||96===m)return!1;if((63===m||45===m)&&(l=e.input.charCodeAt(e.position+1),a(l)||n&&o(l)))return!1;for(e.kind="scalar",e.result="",u=d=e.position,c=!1;0!==m;){if(58===m){if(l=e.input.charCodeAt(e.position+1),a(l)||n&&o(l))break}else if(35===m){if(s=e.input.charCodeAt(e.position-1),a(s))break}else{if(e.position===e.lineStart&&w(e)||n&&o(m))break;if(i(m)){if(h=e.line,p=e.lineStart,f=e.lineIndent,D(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}e.position=d,e.line=h,e.lineStart=p,e.lineIndent=f;break}}c&&(g(e,u,d,!1),b(e,e.line-h),u=d=e.position,c=!1),r(m)||(d=e.position+1),m=e.input.charCodeAt(++e.position)}return g(e,u,d,!1),e.result?!0:(e.kind=v,e.result=y,!1)}function M(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),39!==n)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(g(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),39!==n)return!0;r=a=e.position,e.position++}else i(n)?(g(e,r,a,!0),b(e,D(e,!1,t)),r=a=e.position):e.position===e.lineStart&&w(e)?f(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);f(e,"unexpected end of the stream within a single quoted scalar")}function C(e,t){var n,r,a,o,u,d;if(d=e.input.charCodeAt(e.position),34!==d)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(d=e.input.charCodeAt(e.position));){if(34===d)return g(e,n,e.position,!0),e.position++,!0;if(92===d){if(g(e,n,e.position,!0),d=e.input.charCodeAt(++e.position),i(d))D(e,!1,t);else if(256>d&&re[d])e.result+=ae[d],e.position++;else if((u=l(d))>0){for(a=u,o=0;a>0;a--)d=e.input.charCodeAt(++e.position),(u=s(d))>=0?o=(o<<4)+u:f(e,"expected hexadecimal character");e.result+=c(o),e.position++}else f(e,"unknown escape sequence");n=r=e.position}else i(d)?(g(e,n,r,!0),b(e,D(e,!1,t)),n=r=e.position):e.position===e.lineStart&&w(e)?f(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}f(e,"unexpected end of the stream within a double quoted scalar")}function x(e,t){var n,i,r,o,s,l,u,d,c,h,p,m=!0,g=e.tag,v=e.anchor,_={};if(p=e.input.charCodeAt(e.position),91===p)o=93,u=!1,i=[];else{if(123!==p)return!1;o=125,u=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),p=e.input.charCodeAt(++e.position);0!==p;){if(D(e,!0,t),p=e.input.charCodeAt(e.position),p===o)return e.position++,e.tag=g,e.anchor=v,e.kind=u?"mapping":"sequence",e.result=i,!0;m||f(e,"missed comma between flow collection entries"),c=d=h=null,s=l=!1,63===p&&(r=e.input.charCodeAt(e.position+1),a(r)&&(s=l=!0,e.position++,D(e,!0,t))),n=e.line,F(e,t,G,!1,!0),c=e.tag,d=e.result,D(e,!0,t),p=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==p||(s=!0,p=e.input.charCodeAt(++e.position),D(e,!0,t),F(e,t,G,!1,!0),h=e.result),u?y(e,i,_,c,d,h):s?i.push(y(e,null,_,c,d,h)):i.push(d),D(e,!0,t),p=e.input.charCodeAt(e.position),44===p?(m=!0,p=e.input.charCodeAt(++e.position)):m=!1}f(e,"unexpected end of the stream within a flow collection")}function k(e,t){var n,a,o,s,l=J,d=!1,c=!1,h=t,p=0,m=!1;if(s=e.input.charCodeAt(e.position),124===s)a=!1;else{if(62!==s)return!1;a=!0}for(e.kind="scalar",e.result="";0!==s;)if(s=e.input.charCodeAt(++e.position),43===s||45===s)J===l?l=43===s?Q:X:f(e,"repeat of a chomping mode identifier");else{if(!((o=u(s))>=0))break;0===o?f(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?f(e,"repeat of an indentation width identifier"):(h=t+o-1,c=!0)}if(r(s)){do s=e.input.charCodeAt(++e.position);while(r(s));if(35===s)do s=e.input.charCodeAt(++e.position);while(!i(s)&&0!==s)}for(;0!==s;){for(_(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!c||e.lineIndent<h)&&32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>h&&(h=e.lineIndent),i(s))p++;else{if(e.lineIndent<h){l===Q?e.result+=z.repeat("\n",d?1+p:p):l===J&&d&&(e.result+="\n");break}for(a?r(s)?(m=!0,e.result+=z.repeat("\n",d?1+p:p)):m?(m=!1,e.result+=z.repeat("\n",p+1)):0===p?d&&(e.result+=" "):e.result+=z.repeat("\n",p):e.result+=z.repeat("\n",d?1+p:p),d=!0,c=!0,p=0,n=e.position;!i(s)&&0!==s;)s=e.input.charCodeAt(++e.position);g(e,n,e.position,!1)}}return!0}function T(e,t){var n,i,r,o=e.tag,s=e.anchor,l=[],u=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=l),r=e.input.charCodeAt(e.position);0!==r&&45===r&&(i=e.input.charCodeAt(e.position+1),a(i));)if(u=!0,e.position++,D(e,!0,-1)&&e.lineIndent<=t)l.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,F(e,t,q,!1,!0),l.push(e.result),D(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)f(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return u?(e.tag=o,e.anchor=s,e.kind="sequence",e.result=l,!0):!1}function S(e,t,n){var i,o,s,l,u=e.tag,d=e.anchor,c={},h={},p=null,m=null,g=null,v=!1,_=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),l=e.input.charCodeAt(e.position);0!==l;){if(i=e.input.charCodeAt(e.position+1),s=e.line,63!==l&&58!==l||!a(i)){if(!F(e,n,V,!1,!0))break;if(e.line===s){for(l=e.input.charCodeAt(e.position);r(l);)l=e.input.charCodeAt(++e.position);if(58===l)l=e.input.charCodeAt(++e.position),a(l)||f(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(y(e,c,h,p,m,null),p=m=g=null),_=!0,v=!1,o=!1,p=e.tag,m=e.result;else{if(!_)return e.tag=u,e.anchor=d,!0;f(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!_)return e.tag=u,e.anchor=d,!0;f(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(v&&(y(e,c,h,p,m,null),p=m=g=null),_=!0,v=!0,o=!0):v?(v=!1,o=!0):f(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,l=i;if((e.line===s||e.lineIndent>t)&&(F(e,t,K,!0,o)&&(v?m=e.result:g=e.result),v||(y(e,c,h,p,m,g),p=m=g=null),D(e,!0,-1),l=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==l)f(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&y(e,c,h,p,m,null),_&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=c),_}function E(e){var t,n,i,r,o=!1,s=!1;if(r=e.input.charCodeAt(e.position),33!==r)return!1;if(null!==e.tag&&f(e,"duplication of a tag property"),r=e.input.charCodeAt(++e.position),60===r?(o=!0,r=e.input.charCodeAt(++e.position)):33===r?(s=!0,n="!!",r=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do r=e.input.charCodeAt(++e.position);while(0!==r&&62!==r);e.position<e.length?(i=e.input.slice(t,e.position),r=e.input.charCodeAt(++e.position)):f(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!a(r);)33===r&&(s?f(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),ne.test(n)||f(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),r=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),te.test(i)&&f(e,"tag suffix cannot contain flow indicator characters")}return i&&!ie.test(i)&&f(e,"tag name cannot contain such characters: "+i),o?e.tag=i:U.call(e.tagMap,n)?e.tag=e.tagMap[n]+i:"!"===n?e.tag="!"+i:"!!"===n?e.tag="tag:yaml.org,2002:"+i:f(e,'undeclared tag handle "'+n+'"'),!0}function Y(e){var t,n;if(n=e.input.charCodeAt(e.position),38!==n)return!1;for(null!==e.anchor&&f(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!a(n)&&!o(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&f(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function A(e){var t,n,i;if(i=e.input.charCodeAt(e.position),42!==i)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!a(i)&&!o(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&f(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||f(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],D(e,!0,-1),!0}function F(e,t,n,i,r){var a,o,s,l,u,d,c,h,p=1,m=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=K===n||q===n,i&&D(e,!0,-1)&&(m=!0,e.lineIndent>t?p=1:e.lineIndent===t?p=0:e.lineIndent<t&&(p=-1)),1===p)for(;E(e)||Y(e);)D(e,!0,-1)?(m=!0,s=a,e.lineIndent>t?p=1:e.lineIndent===t?p=0:e.lineIndent<t&&(p=-1)):s=!1;if(s&&(s=m||r),1!==p&&K!==n||(c=G===n||V===n?t:t+1,h=e.position-e.lineStart,1===p?s&&(T(e,h)||S(e,h,c))||x(e,c)?g=!0:(o&&k(e,c)||M(e,c)||C(e,c)?g=!0:A(e)?(g=!0,null===e.tag&&null===e.anchor||f(e,"alias node should not have any properties")):L(e,c,G===n)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===p&&(g=s&&T(e,h))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(l=0,u=e.implicitTypes.length;u>l;l+=1)if(d=e.implicitTypes[l],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else U.call(e.typeMap,e.tag)?(d=e.typeMap[e.tag],null!==e.result&&d.kind!==e.kind&&f(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):f(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):f(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function O(e){var t,n,o,s,l=e.position,u=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(s=e.input.charCodeAt(e.position))&&(D(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(u=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!a(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),o=[],n.length<1&&f(e,"directive name must not be less than one character in length");0!==s;){for(;r(s);)s=e.input.charCodeAt(++e.position);if(35===s){do s=e.input.charCodeAt(++e.position);while(0!==s&&!i(s));break}if(i(s))break;for(t=e.position;0!==s&&!a(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==s&&_(e),U.call(se,n)?se[n](e,n,o):m(e,'unknown document directive "'+n+'"')}return D(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,D(e,!0,-1)):u&&f(e,"directives end mark is expected"),F(e,e.lineIndent-1,K,!1,!0),D(e,!0,-1),e.checkLineBreaks&&ee.test(e.input.slice(l,e.position))&&m(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&w(e)?void(46===e.input.charCodeAt(e.position)&&(e.position+=3,D(e,!0,-1))):void(e.position<e.length-1&&f(e,"end of the stream or a document separator is expected"))}function I(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new h(e,t);for(n.input+="\x00";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)O(n);return n.documents}function B(e,t,n){var i,r,a=I(e,n);for(i=0,r=a.length;r>i;i+=1)t(a[i])}function P(e,t){var n=I(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new W("expected a single document in the stream, but found more")}}function N(e,t,n){B(e,t,z.extend({schema:R},n))}function j(e,t){return P(e,z.extend({schema:R},t))}for(var z=n(343),W=n(344),H=n(345),R=n(346),$=n(369),U=Object.prototype.hasOwnProperty,G=1,V=2,q=3,K=4,J=1,X=2,Q=3,Z=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ee=/[\x85\u2028\u2029]/,te=/[,\[\]\{\}]/,ne=/^(?:!|!!|![a-z\-]+!)$/i,ie=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,re=new Array(256),ae=new Array(256),oe=0;256>oe;oe++)re[oe]=d(oe)?1:0,ae[oe]=d(oe);var se={YAML:function(e,t,n){var i,r,a;null!==e.version&&f(e,"duplication of %YAML directive"),1!==n.length&&f(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===i&&f(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),a=parseInt(i[2],10),1!==r&&f(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=2>a,1!==a&&2!==a&&m(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&f(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],ne.test(i)||f(e,"ill-formed tag handle (first argument) of the TAG directive"),U.call(e.tagMap,i)&&f(e,'there is a previously declared suffix for "'+i+'" tag handle'),ie.test(r)||f(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[i]=r}};e.exports.loadAll=B,e.exports.load=P,e.exports.safeLoadAll=N,e.exports.safeLoad=j},function(e,t){"use strict";function n(e){return"undefined"==typeof e||null===e}function i(e){return"object"==typeof e&&null!==e}function r(e){return Array.isArray(e)?e:n(e)?[]:[e]}function a(e,t){var n,i,r,a;if(t)for(a=Object.keys(t),n=0,i=a.length;i>n;n+=1)r=a[n],e[r]=t[r];return e}function o(e,t){var n,i="";for(n=0;t>n;n+=1)i+=e;return i}function s(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=n,e.exports.isObject=i,e.exports.toArray=r,e.exports.repeat=o,e.exports.isNegativeZero=s,e.exports.extend=a},function(e,t){"use strict";function n(e,t){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=n},function(e,t,n){"use strict";function i(e,t,n,i,r){this.name=e,this.buffer=t,this.position=n,this.line=i,this.column=r}var r=n(343);i.prototype.getSnippet=function(e,t){var n,i,a,o,s;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",i=this.position;i>0&&-1==="\x00\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(a="",o=this.position;o<this.buffer.length&&-1==="\x00\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o));)if(o+=1,o-this.position>t/2-1){a=" ... ",o-=5;break}return s=this.buffer.slice(i,o),r.repeat(" ",e)+n+s+a+"\n"+r.repeat(" ",e+this.position-i+n.length)+"^"},i.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet(),t&&(n+=":\n"+t)),n},e.exports=i},function(e,t,n){"use strict";var i=n(347);e.exports=new i({include:[n(349)],implicit:[n(359),n(360)],explicit:[n(361),n(366),n(367),n(368)]})},function(e,t,n){"use strict";function i(e,t,n){var r=[];return e.include.forEach(function(e){n=i(e,t,n)}),e[t].forEach(function(e){n.forEach(function(t,n){t.tag===e.tag&&r.push(n)}),n.push(e)}),n.filter(function(e,t){return-1===r.indexOf(t)})}function r(){function e(e){i[e.tag]=e}var t,n,i={};for(t=0,n=arguments.length;n>t;t+=1)arguments[t].forEach(e);return i}function a(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new s("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=i(this,"implicit",[]),this.compiledExplicit=i(this,"explicit",[]),this.compiledTypeMap=r(this.compiledImplicit,this.compiledExplicit)}var o=n(343),s=n(344),l=n(348);a.DEFAULT=null,a.create=function(){var e,t;switch(arguments.length){case 1:e=a.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new s("Wrong number of arguments for Schema.create function")}if(e=o.toArray(e),t=o.toArray(t),!e.every(function(e){return e instanceof a}))throw new s("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every(function(e){return e instanceof l}))throw new s("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new a({include:e,explicit:t})},e.exports=a},function(e,t,n){
"use strict";function i(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function r(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===o.indexOf(t))throw new a('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=i(t.styleAliases||null),-1===s.indexOf(this.kind))throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var a=n(344),o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],s=["scalar","sequence","mapping"];e.exports=r},function(e,t,n){"use strict";var i=n(347);e.exports=new i({include:[n(350)]})},function(e,t,n){"use strict";var i=n(347);e.exports=new i({include:[n(351)],implicit:[n(355),n(356),n(357),n(358)]})},function(e,t,n){"use strict";var i=n(347);e.exports=new i({explicit:[n(352),n(353),n(354)]})},function(e,t,n){"use strict";var i=n(348);e.exports=new i("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},function(e,t,n){"use strict";var i=n(348);e.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var i=n(348);e.exports=new i("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function r(){return null}function a(e){return null===e}var o=n(348);e.exports=new o("tag:yaml.org,2002:null",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";function i(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function r(e){return"true"===e||"True"===e||"TRUE"===e}function a(e){return"[object Boolean]"===Object.prototype.toString.call(e)}var o=n(348);e.exports=new o("tag:yaml.org,2002:bool",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";function i(e){return e>=48&&57>=e||e>=65&&70>=e||e>=97&&102>=e}function r(e){return e>=48&&55>=e}function a(e){return e>=48&&57>=e}function o(e){if(null===e)return!1;var t,n=e.length,o=0,s=!1;if(!n)return!1;if(t=e[o],"-"!==t&&"+"!==t||(t=e[++o]),"0"===t){if(o+1===n)return!0;if(t=e[++o],"b"===t){for(o++;n>o;o++)if(t=e[o],"_"!==t){if("0"!==t&&"1"!==t)return!1;s=!0}return s}if("x"===t){for(o++;n>o;o++)if(t=e[o],"_"!==t){if(!i(e.charCodeAt(o)))return!1;s=!0}return s}for(;n>o;o++)if(t=e[o],"_"!==t){if(!r(e.charCodeAt(o)))return!1;s=!0}return s}for(;n>o;o++)if(t=e[o],"_"!==t){if(":"===t)break;if(!a(e.charCodeAt(o)))return!1;s=!0}return s?":"!==t?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(o)):!1}function s(e){var t,n,i=e,r=1,a=[];return-1!==i.indexOf("_")&&(i=i.replace(/_/g,"")),t=i[0],"-"!==t&&"+"!==t||("-"===t&&(r=-1),i=i.slice(1),t=i[0]),"0"===i?0:"0"===t?"b"===i[1]?r*parseInt(i.slice(2),2):"x"===i[1]?r*parseInt(i,16):r*parseInt(i,8):-1!==i.indexOf(":")?(i.split(":").forEach(function(e){a.unshift(parseInt(e,10))}),i=0,n=1,a.forEach(function(e){i+=e*n,n*=60}),r*i):r*parseInt(i,10)}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1===0&&!u.isNegativeZero(e)}var u=n(343),d=n(348);e.exports=new d("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:s,predicate:l,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,n){"use strict";function i(e){return null===e?!1:!!u.test(e)}function r(e){var t,n,i,r;return t=e.replace(/_/g,"").toLowerCase(),n="-"===t[0]?-1:1,r=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){r.unshift(parseFloat(e,10))}),t=0,i=1,r.forEach(function(e){t+=e*i,i*=60}),n*t):n*parseFloat(t,10)}function a(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(s.isNegativeZero(e))return"-0.0";return n=e.toString(10),d.test(n)?n.replace("e",".e"):n}function o(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!==0||s.isNegativeZero(e))}var s=n(343),l=n(348),u=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),d=/^[-+]?[0-9]+e/;e.exports=new l("tag:yaml.org,2002:float",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:a,defaultStyle:"lowercase"})},function(e,t,n){"use strict";function i(e){return null===e?!1:null!==s.exec(e)?!0:null!==l.exec(e)}function r(e){var t,n,i,r,a,o,u,d,c,h,p=0,f=null;if(t=s.exec(e),null===t&&(t=l.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(a=+t[4],o=+t[5],u=+t[6],t[7]){for(p=t[7].slice(0,3);p.length<3;)p+="0";p=+p}return t[9]&&(d=+t[10],c=+(t[11]||0),f=6e4*(60*d+c),"-"===t[9]&&(f=-f)),h=new Date(Date.UTC(n,i,r,a,o,u,p)),f&&h.setTime(h.getTime()-f),h}function a(e){return e.toISOString()}var o=n(348),s=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),l=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new o("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:r,instanceOf:Date,represent:a})},function(e,t,n){"use strict";function i(e){return"<<"===e||null===e}var r=n(348);e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:i})},function(e,t,n){function i(e){if(null===e)return!1;var t,n,i=0,r=e.length,a=d;for(n=0;r>n;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(0>t)return!1;i+=6}return i%8===0}function r(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,a=d,o=0,l=[];for(t=0;r>t;t++)t%4===0&&t&&(l.push(o>>16&255),l.push(o>>8&255),l.push(255&o)),o=o<<6|a.indexOf(i.charAt(t));return n=r%4*6,0===n?(l.push(o>>16&255),l.push(o>>8&255),l.push(255&o)):18===n?(l.push(o>>10&255),l.push(o>>2&255)):12===n&&l.push(o>>4&255),s?new s(l):l}function a(e){var t,n,i="",r=0,a=e.length,o=d;for(t=0;a>t;t++)t%3===0&&t&&(i+=o[r>>18&63],i+=o[r>>12&63],i+=o[r>>6&63],i+=o[63&r]),r=(r<<8)+e[t];return n=a%3,0===n?(i+=o[r>>18&63],i+=o[r>>12&63],i+=o[r>>6&63],i+=o[63&r]):2===n?(i+=o[r>>10&63],i+=o[r>>4&63],i+=o[r<<2&63],i+=o[64]):1===n&&(i+=o[r>>2&63],i+=o[r<<4&63],i+=o[64],i+=o[64]),i}function o(e){return s&&s.isBuffer(e)}var s;try{s=n(362).Buffer}catch(l){}var u=n(348),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new u("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:a})},function(e,t,n){(function(e,i){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
"use strict";function r(){function e(){}try{var t=new Uint8Array(1);return t.foo=function(){return 42},t.constructor=e,42===t.foo()&&t.constructor===e&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(n){return!1}}function a(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function e(t){return this instanceof e?(e.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof t?o(this,t):"string"==typeof t?s(this,t,arguments.length>1?arguments[1]:"utf8"):l(this,t)):arguments.length>1?new e(t,arguments[1]):new e(t)}function o(t,n){if(t=m(t,0>n?0:0|g(n)),!e.TYPED_ARRAY_SUPPORT)for(var i=0;n>i;i++)t[i]=0;return t}function s(e,t,n){"string"==typeof n&&""!==n||(n="utf8");var i=0|y(t,n);return e=m(e,i),e.write(t,n),e}function l(t,n){if(e.isBuffer(n))return u(t,n);if(J(n))return d(t,n);if(null==n)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(n.buffer instanceof ArrayBuffer)return c(t,n);if(n instanceof ArrayBuffer)return h(t,n)}return n.length?p(t,n):f(t,n)}function u(e,t){var n=0|g(t.length);return e=m(e,n),t.copy(e,0,0,n),e}function d(e,t){var n=0|g(t.length);e=m(e,n);for(var i=0;n>i;i+=1)e[i]=255&t[i];return e}function c(e,t){var n=0|g(t.length);e=m(e,n);for(var i=0;n>i;i+=1)e[i]=255&t[i];return e}function h(t,n){return e.TYPED_ARRAY_SUPPORT?(n.byteLength,t=e._augment(new Uint8Array(n))):t=c(t,new Uint8Array(n)),t}function p(e,t){var n=0|g(t.length);e=m(e,n);for(var i=0;n>i;i+=1)e[i]=255&t[i];return e}function f(e,t){var n,i=0;"Buffer"===t.type&&J(t.data)&&(n=t.data,i=0|g(n.length)),e=m(e,i);for(var r=0;i>r;r+=1)e[r]=255&n[r];return e}function m(t,n){e.TYPED_ARRAY_SUPPORT?(t=e._augment(new Uint8Array(n)),t.__proto__=e.prototype):(t.length=n,t._isBuffer=!0);var i=0!==n&&n<=e.poolSize>>>1;return i&&(t.parent=X),t}function g(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function v(t,n){if(!(this instanceof v))return new v(t,n);var i=new e(t,n);return delete i.parent,i}function y(e,t){"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return R(e).length;t=(""+t).toLowerCase(),i=!0}}function _(e,t,n){var i=!1;if(t=0|t,n=void 0===n||n===1/0?this.length:0|n,e||(e="utf8"),0>t&&(t=0),n>this.length&&(n=this.length),t>=n)return"";for(;;)switch(e){case"hex":return Y(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return S(this,t,n);case"binary":return E(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function D(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var a=t.length;if(a%2!==0)throw new Error("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;i>o;o++){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))throw new Error("Invalid hex string");e[n+o]=s}return o}function w(e,t,n,i){return V(R(t,e.length-n),e,n,i)}function b(e,t,n,i){return V($(t),e,n,i)}function L(e,t,n,i){return b(e,t,n,i)}function M(e,t,n,i){return V(G(t),e,n,i)}function C(e,t,n,i){return V(U(t,e.length-n),e,n,i)}function x(e,t,n){return 0===t&&n===e.length?q.fromByteArray(e):q.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;n>r;){var a=e[r],o=null,s=a>239?4:a>223?3:a>191?2:1;if(n>=r+s){var l,u,d,c;switch(s){case 1:128>a&&(o=a);break;case 2:l=e[r+1],128===(192&l)&&(c=(31&a)<<6|63&l,c>127&&(o=c));break;case 3:l=e[r+1],u=e[r+2],128===(192&l)&&128===(192&u)&&(c=(15&a)<<12|(63&l)<<6|63&u,c>2047&&(55296>c||c>57343)&&(o=c));break;case 4:l=e[r+1],u=e[r+2],d=e[r+3],128===(192&l)&&128===(192&u)&&128===(192&d)&&(c=(15&a)<<18|(63&l)<<12|(63&u)<<6|63&d,c>65535&&1114112>c&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),r+=s}return T(i)}function T(e){var t=e.length;if(Q>=t)return String.fromCharCode.apply(String,e);for(var n="",i=0;t>i;)n+=String.fromCharCode.apply(String,e.slice(i,i+=Q));return n}function S(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;n>r;r++)i+=String.fromCharCode(127&e[r]);return i}function E(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;n>r;r++)i+=String.fromCharCode(e[r]);return i}function Y(e,t,n){var i=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>i)&&(n=i);for(var r="",a=t;n>a;a++)r+=H(e[a]);return r}function A(e,t,n){for(var i=e.slice(t,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function F(e,t,n){if(e%1!==0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(t,n,i,r,a,o){if(!e.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(n>a||o>n)throw new RangeError("value is out of bounds");if(i+r>t.length)throw new RangeError("index out of range")}function I(e,t,n,i){0>t&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);a>r;r++)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function B(e,t,n,i){0>t&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);a>r;r++)e[n+r]=t>>>8*(i?r:3-r)&255}function P(e,t,n,i,r,a){if(t>r||a>t)throw new RangeError("value is out of bounds");if(n+i>e.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function N(e,t,n,i,r){return r||P(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(e,t,n,i,23,4),n+4}function j(e,t,n,i,r){return r||P(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(e,t,n,i,52,8),n+8}function z(e){if(e=W(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function W(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return 16>e?"0"+e.toString(16):e.toString(16)}function R(e,t){t=t||1/0;for(var n,i=e.length,r=null,a=[],o=0;i>o;o++){if(n=e.charCodeAt(o),n>55295&&57344>n){if(!r){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(56320>n){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,128>n){if((t-=1)<0)break;a.push(n)}else if(2048>n){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(65536>n){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function $(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function U(e,t){for(var n,i,r,a=[],o=0;o<e.length&&!((t-=2)<0);o++)n=e.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i);return a}function G(e){return q.toByteArray(z(e))}function V(e,t,n,i){for(var r=0;i>r&&!(r+n>=t.length||r>=e.length);r++)t[r+n]=e[r];return r}var q=n(363),K=n(364),J=n(365);t.Buffer=e,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50,e.poolSize=8192;var X={};e.TYPED_ARRAY_SUPPORT=void 0!==i.TYPED_ARRAY_SUPPORT?i.TYPED_ARRAY_SUPPORT:r(),e.TYPED_ARRAY_SUPPORT?(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array):(e.prototype.length=void 0,e.prototype.parent=void 0),e.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.compare=function(t,n){if(!e.isBuffer(t)||!e.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var i=t.length,r=n.length,a=0,o=Math.min(i,r);o>a&&t[a]===n[a];)++a;return a!==o&&(i=t[a],r=n[a]),r>i?-1:i>r?1:0},e.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(t,n){if(!J(t))throw new TypeError("list argument must be an Array of Buffers.");if(0===t.length)return new e(0);var i;if(void 0===n)for(n=0,i=0;i<t.length;i++)n+=t[i].length;var r=new e(n),a=0;for(i=0;i<t.length;i++){var o=t[i];o.copy(r,a),a+=o.length}return r},e.byteLength=y,e.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):_.apply(this,arguments)},e.prototype.equals=function(t){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:0===e.compare(this,t)},e.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},e.prototype.compare=function(t){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?0:e.compare(this,t)},e.prototype.indexOf=function(t,n){function i(e,t,n){for(var i=-1,r=0;n+r<e.length;r++)if(e[n+r]===t[-1===i?0:r-i]){if(-1===i&&(i=r),r-i+1===t.length)return n+i}else i=-1;return-1}if(n>2147483647?n=2147483647:-2147483648>n&&(n=-2147483648),n>>=0,0===this.length)return-1;if(n>=this.length)return-1;if(0>n&&(n=Math.max(this.length+n,0)),"string"==typeof t)return 0===t.length?-1:String.prototype.indexOf.call(this,t,n);if(e.isBuffer(t))return i(this,t,n);if("number"==typeof t)return e.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,t,n):i(this,[t],n);throw new TypeError("val must be string, number or Buffer")},e.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},e.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},e.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(n)?(n=0|n,void 0===i&&(i="utf8")):(i=n,n=void 0);else{var r=i;i=t,t=0|n,n=r}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(0>n||0>t)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return D(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return b(this,e,t,n);case"binary":return L(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;e.prototype.slice=function(t,n){var i=this.length;t=~~t,n=void 0===n?i:~~n,0>t?(t+=i,0>t&&(t=0)):t>i&&(t=i),0>n?(n+=i,0>n&&(n=0)):n>i&&(n=i),t>n&&(n=t);var r;if(e.TYPED_ARRAY_SUPPORT)r=e._augment(this.subarray(t,n));else{var a=n-t;r=new e(a,void 0);for(var o=0;a>o;o++)r[o]=this[o+t]}return r.length&&(r.parent=this.parent||this),r},e.prototype.readUIntLE=function(e,t,n){e=0|e,t=0|t,n||F(e,t,this.length);for(var i=this[e],r=1,a=0;++a<t&&(r*=256);)i+=this[e+a]*r;return i},e.prototype.readUIntBE=function(e,t,n){e=0|e,t=0|t,n||F(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},e.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},e.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},e.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},e.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},e.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},e.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||F(e,t,this.length);for(var i=this[e],r=1,a=0;++a<t&&(r*=256);)i+=this[e+a]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},e.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||F(e,t,this.length);for(var i=t,r=1,a=this[e+--i];i>0&&(r*=256);)a+=this[e+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*t)),a},e.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},e.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},e.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},e.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),K.read(this,e,!0,23,4)},e.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),K.read(this,e,!1,23,4)},e.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),K.read(this,e,!0,52,8)},e.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),K.read(this,e,!1,52,8)},e.prototype.writeUIntLE=function(e,t,n,i){e=+e,t=0|t,n=0|n,i||O(this,e,t,n,Math.pow(2,8*n),0);var r=1,a=0;for(this[t]=255&e;++a<n&&(r*=256);)this[t+a]=e/r&255;return t+n},e.prototype.writeUIntBE=function(e,t,n,i){e=+e,t=0|t,n=0|n,i||O(this,e,t,n,Math.pow(2,8*n),0);var r=n-1,a=1;for(this[t+r]=255&e;--r>=0&&(a*=256);)this[t+r]=e/a&255;return t+n},e.prototype.writeUInt8=function(t,n,i){return t=+t,n=0|n,i||O(this,t,n,1,255,0),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},e.prototype.writeUInt16LE=function(t,n,i){return t=+t,n=0|n,i||O(this,t,n,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):I(this,t,n,!0),n+2},e.prototype.writeUInt16BE=function(t,n,i){return t=+t,n=0|n,i||O(this,t,n,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):I(this,t,n,!1),n+2},e.prototype.writeUInt32LE=function(t,n,i){return t=+t,n=0|n,i||O(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):B(this,t,n,!0),n+4},e.prototype.writeUInt32BE=function(t,n,i){return t=+t,n=0|n,i||O(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):B(this,t,n,!1),n+4},e.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t=0|t,!i){var r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}var a=0,o=1,s=0>e?1:0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=(e/o>>0)-s&255;return t+n},e.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t=0|t,!i){var r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}var a=n-1,o=1,s=0>e?1:0;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=(e/o>>0)-s&255;return t+n},e.prototype.writeInt8=function(t,n,i){return t=+t,n=0|n,i||O(this,t,n,1,127,-128),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),0>t&&(t=255+t+1),this[n]=255&t,n+1},e.prototype.writeInt16LE=function(t,n,i){return t=+t,n=0|n,i||O(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):I(this,t,n,!0),n+2},e.prototype.writeInt16BE=function(t,n,i){return t=+t,n=0|n,i||O(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):I(this,t,n,!1),n+2},e.prototype.writeInt32LE=function(t,n,i){return t=+t,n=0|n,i||O(this,t,n,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):B(this,t,n,!0),n+4},e.prototype.writeInt32BE=function(t,n,i){return t=+t,n=0|n,i||O(this,t,n,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):B(this,t,n,!1),n+4},e.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},e.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},e.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},e.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},e.prototype.copy=function(t,n,i,r){if(i||(i=0),r||0===r||(r=this.length),n>=t.length&&(n=t.length),n||(n=0),r>0&&i>r&&(r=i),r===i)return 0;if(0===t.length||0===this.length)return 0;if(0>n)throw new RangeError("targetStart out of bounds");if(0>i||i>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-n<r-i&&(r=t.length-n+i);var a,o=r-i;if(this===t&&n>i&&r>n)for(a=o-1;a>=0;a--)t[a+n]=this[a+i];else if(1e3>o||!e.TYPED_ARRAY_SUPPORT)for(a=0;o>a;a++)t[a+n]=this[a+i];else t._set(this.subarray(i,i+o),n);return o},e.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),t>n)throw new RangeError("end < start");if(n!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>n||n>this.length)throw new RangeError("end out of bounds");var i;if("number"==typeof e)for(i=t;n>i;i++)this[i]=e;else{var r=R(e.toString()),a=r.length;for(i=t;n>i;i++)this[i]=r[i%a]}return this}},e.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(e.TYPED_ARRAY_SUPPORT)return new e(this).buffer;for(var t=new Uint8Array(this.length),n=0,i=t.length;i>n;n+=1)t[n]=this[n];return t.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var Z=e.prototype;e._augment=function(t){return t.constructor=e,t._isBuffer=!0,t._set=t.set,t.get=Z.get,t.set=Z.set,t.write=Z.write,t.toString=Z.toString,t.toLocaleString=Z.toString,t.toJSON=Z.toJSON,t.equals=Z.equals,t.compare=Z.compare,t.indexOf=Z.indexOf,t.copy=Z.copy,t.slice=Z.slice,t.readUIntLE=Z.readUIntLE,t.readUIntBE=Z.readUIntBE,t.readUInt8=Z.readUInt8,t.readUInt16LE=Z.readUInt16LE,t.readUInt16BE=Z.readUInt16BE,t.readUInt32LE=Z.readUInt32LE,t.readUInt32BE=Z.readUInt32BE,t.readIntLE=Z.readIntLE,t.readIntBE=Z.readIntBE,t.readInt8=Z.readInt8,t.readInt16LE=Z.readInt16LE,t.readInt16BE=Z.readInt16BE,t.readInt32LE=Z.readInt32LE,t.readInt32BE=Z.readInt32BE,t.readFloatLE=Z.readFloatLE,t.readFloatBE=Z.readFloatBE,t.readDoubleLE=Z.readDoubleLE,t.readDoubleBE=Z.readDoubleBE,t.writeUInt8=Z.writeUInt8,t.writeUIntLE=Z.writeUIntLE,t.writeUIntBE=Z.writeUIntBE,t.writeUInt16LE=Z.writeUInt16LE,t.writeUInt16BE=Z.writeUInt16BE,t.writeUInt32LE=Z.writeUInt32LE,t.writeUInt32BE=Z.writeUInt32BE,t.writeIntLE=Z.writeIntLE,t.writeIntBE=Z.writeIntBE,t.writeInt8=Z.writeInt8,t.writeInt16LE=Z.writeInt16LE,t.writeInt16BE=Z.writeInt16BE,t.writeInt32LE=Z.writeInt32LE,t.writeInt32BE=Z.writeInt32BE,t.writeFloatLE=Z.writeFloatLE,t.writeFloatBE=Z.writeFloatBE,t.writeDoubleLE=Z.writeDoubleLE,t.writeDoubleBE=Z.writeDoubleBE,t.fill=Z.fill,t.inspect=Z.inspect,t.toArrayBuffer=Z.toArrayBuffer,t};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,n(362).Buffer,function(){return this}())},function(e,t,n){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===o||t===c?62:t===s||t===h?63:l>t?-1:l+10>t?t-l+26+26:d+26>t?t-d:u+26>t?t-u+26:void 0}function n(e){function n(e){u[c++]=e}var i,r,o,s,l,u;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var d=e.length;l="="===e.charAt(d-2)?2:"="===e.charAt(d-1)?1:0,u=new a(3*e.length/4-l),o=l>0?e.length-4:e.length;var c=0;for(i=0,r=0;o>i;i+=4,r+=3)s=t(e.charAt(i))<<18|t(e.charAt(i+1))<<12|t(e.charAt(i+2))<<6|t(e.charAt(i+3)),n((16711680&s)>>16),n((65280&s)>>8),n(255&s);return 2===l?(s=t(e.charAt(i))<<2|t(e.charAt(i+1))>>4,n(255&s)):1===l&&(s=t(e.charAt(i))<<10|t(e.charAt(i+1))<<4|t(e.charAt(i+2))>>2,n(s>>8&255),n(255&s)),u}function r(e){function t(e){return i.charAt(e)}function n(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var r,a,o,s=e.length%3,l="";for(r=0,o=e.length-s;o>r;r+=3)a=(e[r]<<16)+(e[r+1]<<8)+e[r+2],l+=n(a);switch(s){case 1:a=e[e.length-1],l+=t(a>>2),l+=t(a<<4&63),l+="==";break;case 2:a=(e[e.length-2]<<8)+e[e.length-1],l+=t(a>>10),l+=t(a>>4&63),l+=t(a<<2&63),l+="="}return l}var a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="+".charCodeAt(0),s="/".charCodeAt(0),l="0".charCodeAt(0),u="a".charCodeAt(0),d="A".charCodeAt(0),c="-".charCodeAt(0),h="_".charCodeAt(0);e.toByteArray=n,e.fromByteArray=r}(t)},function(e,t){t.read=function(e,t,n,i,r){var a,o,s=8*r-i-1,l=(1<<s)-1,u=l>>1,d=-7,c=n?r-1:0,h=n?-1:1,p=e[t+c];for(c+=h,a=p&(1<<-d)-1,p>>=-d,d+=s;d>0;a=256*a+e[t+c],c+=h,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=i;d>0;o=256*o+e[t+c],c+=h,d-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:(p?-1:1)*(1/0);o+=Math.pow(2,i),a-=u}return(p?-1:1)*o*Math.pow(2,a-i)},t.write=function(e,t,n,i,r,a){var o,s,l,u=8*a-r-1,d=(1<<u)-1,c=d>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:a-1,f=i?1:-1,m=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+c>=1?h/l:h*Math.pow(2,1-c),t*l>=2&&(o++,l/=2),o+c>=d?(s=0,o=d):o+c>=1?(s=(t*l-1)*Math.pow(2,r),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,r),o=0));r>=8;e[n+p]=255&s,p+=f,s/=256,r-=8);for(o=o<<r|s,u+=r;u>0;e[n+p]=255&o,p+=f,o/=256,u-=8);e[n+p-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t,n,i,r,a,l=[],u=e;for(t=0,n=u.length;n>t;t+=1){if(i=u[t],a=!1,"[object Object]"!==s.call(i))return!1;for(r in i)if(o.call(i,r)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==l.indexOf(r))return!1;l.push(r)}return!0}function r(e){return null!==e?e:[]}var a=n(348),o=Object.prototype.hasOwnProperty,s=Object.prototype.toString;e.exports=new a("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:r})},function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t,n,i,r,a,s=e;for(a=new Array(s.length),t=0,n=s.length;n>t;t+=1){if(i=s[t],"[object Object]"!==o.call(i))return!1;if(r=Object.keys(i),1!==r.length)return!1;a[t]=[r[0],i[r[0]]]}return!0}function r(e){if(null===e)return[];var t,n,i,r,a,o=e;for(a=new Array(o.length),t=0,n=o.length;n>t;t+=1)i=o[t],r=Object.keys(i),a[t]=[r[0],i[r[0]]];return a}var a=n(348),o=Object.prototype.toString;e.exports=new a("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:i,construct:r})},function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t,n=e;for(t in n)if(o.call(n,t)&&null!==n[t])return!1;return!0}function r(e){return null!==e?e:{}}var a=n(348),o=Object.prototype.hasOwnProperty;e.exports=new a("tag:yaml.org,2002:set",{kind:"mapping",resolve:i,construct:r})},function(e,t,n){"use strict";var i=n(347);e.exports=i.DEFAULT=new i({include:[n(346)],explicit:[n(370),n(371),n(372)]})},function(e,t,n){"use strict";function i(){return!0}function r(){}function a(){return""}function o(e){return"undefined"==typeof e}var s=n(348);e.exports=new s("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:a})},function(e,t,n){"use strict";function i(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),i="";if("/"===t[0]){if(n&&(i=n[1]),i.length>3)return!1;if("/"!==t[t.length-i.length-1])return!1}return!0}function r(e){var t=e,n=/\/([gim]*)$/.exec(e),i="";return"/"===t[0]&&(n&&(i=n[1]),t=t.slice(1,t.length-i.length-1)),new RegExp(t,i)}function a(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function o(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var s=n(348);e.exports=new s("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:a})},function(e,t,n){function i(e){if(null===e)return!1;try{var t="("+e+")",n=s.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&"FunctionExpression"===n.body[0].expression.type}catch(i){return!1}}function r(e){var t,n="("+e+")",i=s.parse(n,{range:!0}),r=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(e){r.push(e.name)}),t=i.body[0].expression.body.range,new Function(r,n.slice(t[0]+1,t[1]-1))}function a(e){return e.toString()}function o(e){return"[object Function]"===Object.prototype.toString.call(e)}var s;try{s=n(373)}catch(l){"undefined"!=typeof window&&(s=window.esprima)}var u=n(348);e.exports=new u("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:a})},function(e,t,n){var i,r,a;!function(n,o){"use strict";r=[t],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(this,function(e){"use strict";function t(e,t){if(!e)throw new Error("ASSERT: "+t)}function n(e){return e>=48&&57>=e}function i(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function r(e){return"01234567".indexOf(e)>=0}function a(e){var t="0"!==e,n="01234567".indexOf(e);return _n>ln&&r(on[ln])&&(t=!0,n=8*n+"01234567".indexOf(on[ln++]),"0123".indexOf(e)>=0&&_n>ln&&r(on[ln])&&(n=8*n+"01234567".indexOf(on[ln++]))),{code:n,octal:t}}function o(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function s(e){return 10===e||13===e||8232===e||8233===e}function l(e){return 65536>e?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))}function u(e){return 36===e||95===e||e>=65&&90>=e||e>=97&&122>=e||92===e||e>=128&&an.NonAsciiIdentifierStart.test(l(e))}function d(e){return 36===e||95===e||e>=65&&90>=e||e>=97&&122>=e||e>=48&&57>=e||92===e||e>=128&&an.NonAsciiIdentifierPart.test(l(e))}function c(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}}function h(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function p(e){return"eval"===e||"arguments"===e}function f(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function m(e,n,i,r,a){var o;t("number"==typeof i,"Comment must have valid position"),wn.lastCommentStart=i,o={type:e,value:n},bn.range&&(o.range=[i,r]),bn.loc&&(o.loc=a),bn.comments.push(o),bn.attachComment&&(bn.leadingComments.push(o),bn.trailingComments.push(o)),bn.tokenize&&(o.type=o.type+"Comment",bn.delegate&&(o=bn.delegate(o)),bn.tokens.push(o))}function g(e){var t,n,i,r;for(t=ln-e,n={start:{line:un,column:ln-dn-e}};_n>ln;)if(i=on.charCodeAt(ln),++ln,s(i))return cn=!0,bn.comments&&(r=on.slice(t+e,ln-1),n.end={line:un,column:ln-dn-1},m("Line",r,t,ln-1,n)),13===i&&10===on.charCodeAt(ln)&&++ln,++un,void(dn=ln);bn.comments&&(r=on.slice(t+e,ln),n.end={line:un,column:ln-dn},m("Line",r,t,ln,n))}function v(){var e,t,n,i;for(bn.comments&&(e=ln-2,t={start:{line:un,column:ln-dn-2}});_n>ln;)if(n=on.charCodeAt(ln),s(n))13===n&&10===on.charCodeAt(ln+1)&&++ln,cn=!0,++un,++ln,dn=ln;else if(42===n){if(47===on.charCodeAt(ln+1))return++ln,++ln,void(bn.comments&&(i=on.slice(e+2,ln-2),t.end={line:un,column:ln-dn},m("Block",i,e,ln,t)));++ln}else++ln;bn.comments&&(t.end={line:un,column:ln-dn},i=on.slice(e+2,ln),m("Block",i,e,ln,t)),ne()}function y(){var e,t;for(cn=!1,t=0===ln;_n>ln;)if(e=on.charCodeAt(ln),o(e))++ln;else if(s(e))cn=!0,++ln,13===e&&10===on.charCodeAt(ln)&&++ln,++un,dn=ln,t=!0;else if(47===e)if(e=on.charCodeAt(ln+1),47===e)++ln,++ln,g(2),t=!0;else{if(42!==e)break;++ln,++ln,v()}else if(t&&45===e){if(45!==on.charCodeAt(ln+1)||62!==on.charCodeAt(ln+2))break;ln+=3,g(3)}else{if(60!==e)break;if("!--"!==on.slice(ln+1,ln+4))break;++ln,++ln,++ln,++ln,g(4)}}function _(e){var t,n,r,a=0;for(n="u"===e?4:2,t=0;n>t;++t){if(!(_n>ln&&i(on[ln])))return"";r=on[ln++],a=16*a+"0123456789abcdef".indexOf(r.toLowerCase())}return String.fromCharCode(a)}function D(){var e,t;for(e=on[ln],t=0,"}"===e&&te();_n>ln&&(e=on[ln++],i(e));)t=16*t+"0123456789abcdef".indexOf(e.toLowerCase());return(t>1114111||"}"!==e)&&te(),l(t)}function w(e){var t,n,i;return t=on.charCodeAt(e),t>=55296&&56319>=t&&(i=on.charCodeAt(e+1),i>=56320&&57343>=i&&(n=t,t=1024*(n-55296)+i-56320+65536)),t}function b(){var e,t,n;for(e=w(ln),n=l(e),ln+=n.length,92===e&&(117!==on.charCodeAt(ln)&&te(),++ln,"{"===on[ln]?(++ln,t=D()):(t=_("u"),e=t.charCodeAt(0),t&&"\\"!==t&&u(e)||te()),n=t);_n>ln&&(e=w(ln),d(e));)t=l(e),n+=t,ln+=t.length,92===e&&(n=n.substr(0,n.length-1),117!==on.charCodeAt(ln)&&te(),++ln,"{"===on[ln]?(++ln,t=D()):(t=_("u"),e=t.charCodeAt(0),t&&"\\"!==t&&d(e)||te()),n+=t);return n}function L(){var e,t;for(e=ln++;_n>ln;){if(t=on.charCodeAt(ln),92===t)return ln=e,b();if(t>=55296&&57343>t)return ln=e,b();if(!d(t))break;++ln}return on.slice(e,ln)}function M(){var e,t,n;return e=ln,t=92===on.charCodeAt(ln)?b():L(),n=1===t.length?Qt.Identifier:f(t)?Qt.Keyword:"null"===t?Qt.NullLiteral:"true"===t||"false"===t?Qt.BooleanLiteral:Qt.Identifier,{type:n,value:t,lineNumber:un,lineStart:dn,start:e,end:ln}}function C(){var e,t;switch(e={type:Qt.Punctuator,value:"",lineNumber:un,lineStart:dn,start:ln,end:ln},t=on[ln]){case"(":bn.tokenize&&(bn.openParenToken=bn.tokenValues.length),++ln;break;case"{":bn.tokenize&&(bn.openCurlyToken=bn.tokenValues.length),wn.curlyStack.push("{"),++ln;break;case".":++ln,"."===on[ln]&&"."===on[ln+1]&&(ln+=2,t="...");break;case"}":++ln,wn.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++ln;break;default:t=on.substr(ln,4),">>>="===t?ln+=4:(t=t.substr(0,3),"==="===t||"!=="===t||">>>"===t||"<<="===t||">>="===t?ln+=3:(t=t.substr(0,2),"&&"===t||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t?ln+=2:(t=on[ln],"<>=!+-*%&|^/".indexOf(t)>=0&&++ln)))}return ln===e.start&&te(),e.end=ln,e.value=t,e}function x(e){for(var t="";_n>ln&&i(on[ln]);)t+=on[ln++];return 0===t.length&&te(),u(on.charCodeAt(ln))&&te(),{type:Qt.NumericLiteral,value:parseInt("0x"+t,16),lineNumber:un,lineStart:dn,start:e,end:ln}}function k(e){var t,i;for(i="";_n>ln&&(t=on[ln],"0"===t||"1"===t);)i+=on[ln++];return 0===i.length&&te(),_n>ln&&(t=on.charCodeAt(ln),(u(t)||n(t))&&te()),{type:Qt.NumericLiteral,value:parseInt(i,2),lineNumber:un,lineStart:dn,start:e,end:ln}}function T(e,t){var i,a;for(r(e)?(a=!0,i="0"+on[ln++]):(a=!1,++ln,i="");_n>ln&&r(on[ln]);)i+=on[ln++];return a||0!==i.length||te(),(u(on.charCodeAt(ln))||n(on.charCodeAt(ln)))&&te(),{type:Qt.NumericLiteral,value:parseInt(i,8),octal:a,lineNumber:un,lineStart:dn,start:t,end:ln}}function S(){var e,t;for(e=ln+1;_n>e;++e){if(t=on[e],"8"===t||"9"===t)return!1;if(!r(t))return!0}return!0}function E(){var e,i,a;if(a=on[ln],t(n(a.charCodeAt(0))||"."===a,"Numeric literal must start with a decimal digit or a decimal point"),i=ln,e="","."!==a){if(e=on[ln++],a=on[ln],"0"===e){if("x"===a||"X"===a)return++ln,x(i);if("b"===a||"B"===a)return++ln,k(i);if("o"===a||"O"===a)return T(a,i);if(r(a)&&S())return T(a,i)}for(;n(on.charCodeAt(ln));)e+=on[ln++];a=on[ln]}if("."===a){for(e+=on[ln++];n(on.charCodeAt(ln));)e+=on[ln++];a=on[ln]}if("e"===a||"E"===a)if(e+=on[ln++],a=on[ln],"+"!==a&&"-"!==a||(e+=on[ln++]),n(on.charCodeAt(ln)))for(;n(on.charCodeAt(ln));)e+=on[ln++];else te();return u(on.charCodeAt(ln))&&te(),{type:Qt.NumericLiteral,value:parseFloat(e),lineNumber:un,lineStart:dn,start:i,end:ln}}function Y(){var e,n,i,o,l,u="",d=!1;for(e=on[ln],t("'"===e||'"'===e,"String literal must starts with a quote"),n=ln,++ln;_n>ln;){if(i=on[ln++],i===e){e="";break}if("\\"===i)if(i=on[ln++],i&&s(i.charCodeAt(0)))++un,"\r"===i&&"\n"===on[ln]&&++ln,dn=ln;else switch(i){case"u":case"x":if("{"===on[ln])++ln,u+=D();else{if(o=_(i),!o)throw te();
u+=o}break;case"n":u+="\n";break;case"r":u+="\r";break;case"t":u+=" ";break;case"b":u+="\b";break;case"f":u+="\f";break;case"v":u+="\x0B";break;case"8":case"9":u+=i,ne();break;default:r(i)?(l=a(i),d=l.octal||d,u+=String.fromCharCode(l.code)):u+=i}else{if(s(i.charCodeAt(0)))break;u+=i}}return""!==e&&(ln=n,te()),{type:Qt.StringLiteral,value:u,octal:d,lineNumber:gn,lineStart:vn,start:n,end:ln}}function A(){var e,t,i,a,o,l,u,d,c="";for(a=!1,l=!1,t=ln,o="`"===on[ln],i=2,++ln;_n>ln;){if(e=on[ln++],"`"===e){i=1,l=!0,a=!0;break}if("$"===e){if("{"===on[ln]){wn.curlyStack.push("${"),++ln,a=!0;break}c+=e}else if("\\"===e)if(e=on[ln++],s(e.charCodeAt(0)))++un,"\r"===e&&"\n"===on[ln]&&++ln,dn=ln;else switch(e){case"n":c+="\n";break;case"r":c+="\r";break;case"t":c+=" ";break;case"u":case"x":"{"===on[ln]?(++ln,c+=D()):(u=ln,d=_(e),d?c+=d:(ln=u,c+=e));break;case"b":c+="\b";break;case"f":c+="\f";break;case"v":c+="\x0B";break;default:"0"===e?(n(on.charCodeAt(ln))&&Q(rn.TemplateOctalLiteral),c+="\x00"):r(e)?Q(rn.TemplateOctalLiteral):c+=e}else s(e.charCodeAt(0))?(++un,"\r"===e&&"\n"===on[ln]&&++ln,dn=ln,c+="\n"):c+=e}return a||te(),o||wn.curlyStack.pop(),{type:Qt.Template,value:{cooked:c,raw:on.slice(t+1,ln-i)},head:o,tail:l,lineNumber:un,lineStart:dn,start:t,end:ln}}function F(e,t){var n="￿",i=e;t.indexOf("u")>=0&&(i=i.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(e,t,i){var r=parseInt(t||i,16);return r>1114111&&te(null,rn.InvalidRegExp),65535>=r?String.fromCharCode(r):n}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n));try{RegExp(i)}catch(r){te(null,rn.InvalidRegExp)}try{return new RegExp(e,t)}catch(a){return null}}function O(){var e,n,i,r,a;for(e=on[ln],t("/"===e,"Regular expression literal must start with a slash"),n=on[ln++],i=!1,r=!1;_n>ln;)if(e=on[ln++],n+=e,"\\"===e)e=on[ln++],s(e.charCodeAt(0))&&te(null,rn.UnterminatedRegExp),n+=e;else if(s(e.charCodeAt(0)))te(null,rn.UnterminatedRegExp);else if(i)"]"===e&&(i=!1);else{if("/"===e){r=!0;break}"["===e&&(i=!0)}return r||te(null,rn.UnterminatedRegExp),a=n.substr(1,n.length-2),{value:a,literal:n}}function I(){var e,t,n,i;for(t="",n="";_n>ln&&(e=on[ln],d(e.charCodeAt(0)));)if(++ln,"\\"===e&&_n>ln)if(e=on[ln],"u"===e){if(++ln,i=ln,e=_("u"))for(n+=e,t+="\\u";ln>i;++i)t+=on[i];else ln=i,n+="u",t+="\\u";ne()}else t+="\\",ne();else n+=e,t+=e;return{value:n,literal:t}}function B(){var e,t,n,i;return yn=!0,Dn=null,y(),e=ln,t=O(),n=I(),i=F(t.value,n.value),yn=!1,bn.tokenize?{type:Qt.RegularExpression,value:i,regex:{pattern:t.value,flags:n.value},lineNumber:un,lineStart:dn,start:e,end:ln}:{literal:t.literal+n.literal,value:i,regex:{pattern:t.value,flags:n.value},start:e,end:ln}}function P(){var e,t,n,i;return y(),e=ln,t={start:{line:un,column:ln-dn}},n=B(),t.end={line:un,column:ln-dn},bn.tokenize||(bn.tokens.length>0&&(i=bn.tokens[bn.tokens.length-1],i.range[0]===e&&"Punctuator"===i.type&&("/"!==i.value&&"/="!==i.value||bn.tokens.pop())),bn.tokens.push({type:"RegularExpression",value:n.literal,regex:n.regex,range:[e,ln],loc:t})),n}function N(e){return e.type===Qt.Identifier||e.type===Qt.Keyword||e.type===Qt.BooleanLiteral||e.type===Qt.NullLiteral}function j(){function e(e){return e&&e.length>1&&e[0]>="a"&&e[0]<="z"}var t,n,i;switch(n=bn.tokenValues[bn.tokens.length-1],t=null!==n,n){case"this":case"]":t=!1;break;case")":i=bn.tokenValues[bn.openParenToken-1],t="if"===i||"while"===i||"for"===i||"with"===i;break;case"}":t=!1,e(bn.tokenValues[bn.openCurlyToken-3])?(i=bn.tokenValues[bn.openCurlyToken-4],t=i?en.indexOf(i)<0:!1):e(bn.tokenValues[bn.openCurlyToken-4])&&(i=bn.tokenValues[bn.openCurlyToken-5],t=i?en.indexOf(i)<0:!0)}return t?P():C()}function z(){var e,t;return ln>=_n?{type:Qt.EOF,lineNumber:un,lineStart:dn,start:ln,end:ln}:(e=on.charCodeAt(ln),u(e)?(t=M(),sn&&h(t.value)&&(t.type=Qt.Keyword),t):40===e||41===e||59===e?C():39===e||34===e?Y():46===e?n(on.charCodeAt(ln+1))?E():C():n(e)?E():bn.tokenize&&47===e?j():96===e||125===e&&"${"===wn.curlyStack[wn.curlyStack.length-1]?A():e>=55296&&57343>e&&(e=w(ln),u(e))?M():C())}function W(){var e,t,n,i;return e={start:{line:un,column:ln-dn}},t=z(),e.end={line:un,column:ln-dn},t.type!==Qt.EOF&&(n=on.slice(t.start,t.end),i={type:Zt[t.type],value:n,range:[t.start,t.end],loc:e},t.regex&&(i.regex={pattern:t.regex.pattern,flags:t.regex.flags}),bn.tokenValues&&bn.tokenValues.push("Punctuator"===i.type||"Keyword"===i.type?i.value:null),bn.tokenize&&(bn.range||delete i.range,bn.loc||delete i.loc,bn.delegate&&(i=bn.delegate(i))),bn.tokens.push(i)),t}function H(){var e;return yn=!0,hn=ln,pn=un,fn=dn,y(),e=Dn,mn=ln,gn=un,vn=dn,Dn="undefined"!=typeof bn.tokens?W():z(),yn=!1,e}function R(){yn=!0,y(),hn=ln,pn=un,fn=dn,mn=ln,gn=un,vn=dn,Dn="undefined"!=typeof bn.tokens?W():z(),yn=!1}function $(){this.line=gn,this.column=mn-vn}function U(){this.start=new $,this.end=null}function G(e){this.start={line:e.lineNumber,column:e.start-e.lineStart},this.end=null}function V(){bn.range&&(this.range=[mn,0]),bn.loc&&(this.loc=new U)}function q(e){bn.range&&(this.range=[e.start,0]),bn.loc&&(this.loc=new G(e))}function K(e){var t,n;for(t=0;t<bn.errors.length;t++)if(n=bn.errors[t],n.index===e.index&&n.message===e.message)return;bn.errors.push(e)}function J(e,t){var n=new Error(e);try{throw n}catch(i){Object.create&&Object.defineProperty&&(n=Object.create(i),Object.defineProperty(n,"column",{value:t}))}finally{return n}}function X(e,t,n){var i,r,a;return i="Line "+e+": "+n,r=t-(yn?dn:fn)+1,a=J(i,r),a.lineNumber=e,a.description=n,a.index=t,a}function Q(e){var n,i;throw n=Array.prototype.slice.call(arguments,1),i=e.replace(/%(\d)/g,function(e,i){return t(i<n.length,"Message reference must be in range"),n[i]}),X(pn,hn,i)}function Z(e){var n,i,r;if(n=Array.prototype.slice.call(arguments,1),i=e.replace(/%(\d)/g,function(e,i){return t(i<n.length,"Message reference must be in range"),n[i]}),r=X(un,hn,i),!bn.errors)throw r;K(r)}function ee(e,t){var n,i=t||rn.UnexpectedToken;return e?(t||(i=e.type===Qt.EOF?rn.UnexpectedEOS:e.type===Qt.Identifier?rn.UnexpectedIdentifier:e.type===Qt.NumericLiteral?rn.UnexpectedNumber:e.type===Qt.StringLiteral?rn.UnexpectedString:e.type===Qt.Template?rn.UnexpectedTemplate:rn.UnexpectedToken,e.type===Qt.Keyword&&(c(e.value)?i=rn.UnexpectedReserved:sn&&h(e.value)&&(i=rn.StrictReservedWord))),n=e.type===Qt.Template?e.value.raw:e.value):n="ILLEGAL",i=i.replace("%0",n),e&&"number"==typeof e.lineNumber?X(e.lineNumber,e.start,i):X(yn?un:pn,yn?ln:hn,i)}function te(e,t){throw ee(e,t)}function ne(e,t){var n=ee(e,t);if(!bn.errors)throw n;K(n)}function ie(e){var t=H();t.type===Qt.Punctuator&&t.value===e||te(t)}function re(){var e;bn.errors?(e=Dn,e.type===Qt.Punctuator&&","===e.value?H():e.type===Qt.Punctuator&&";"===e.value?(H(),ne(e)):ne(e,rn.UnexpectedToken)):ie(",")}function ae(e){var t=H();t.type===Qt.Keyword&&t.value===e||te(t)}function oe(e){return Dn.type===Qt.Punctuator&&Dn.value===e}function se(e){return Dn.type===Qt.Keyword&&Dn.value===e}function le(e){return Dn.type===Qt.Identifier&&Dn.value===e}function ue(){var e;return Dn.type!==Qt.Punctuator?!1:(e=Dn.value,"="===e||"*="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e)}function de(){return 59===on.charCodeAt(mn)||oe(";")?void H():void(cn||(hn=mn,pn=gn,fn=vn,Dn.type===Qt.EOF||oe("}")||te(Dn)))}function ce(e){var t,n=Ln,i=Mn,r=Cn;return Ln=!0,Mn=!0,Cn=null,t=e(),null!==Cn&&te(Cn),Ln=n,Mn=i,Cn=r,t}function he(e){var t,n=Ln,i=Mn,r=Cn;return Ln=!0,Mn=!0,Cn=null,t=e(),Ln=Ln&&n,Mn=Mn&&i,Cn=r||Cn,t}function pe(e,t){var n,i,r=new V,a=[];for(ie("[");!oe("]");)if(oe(","))H(),a.push(null);else{if(oe("...")){i=new V,H(),e.push(Dn),n=Ze(t),a.push(i.finishRestElement(n));break}a.push(ve(e,t)),oe("]")||ie(",")}return ie("]"),r.finishArrayPattern(a)}function fe(e,t){var n,i,r,a=new V,o=oe("[");if(Dn.type===Qt.Identifier){if(i=Dn,n=Ze(),oe("="))return e.push(i),H(),r=qe(),a.finishProperty("init",n,!1,new q(i).finishAssignmentPattern(n,r),!1,!0);if(!oe(":"))return e.push(i),a.finishProperty("init",n,!1,n,!1,!0)}else n=we();return ie(":"),r=ve(e,t),a.finishProperty("init",n,o,r,!1,!1)}function me(e,t){var n=new V,i=[];for(ie("{");!oe("}");)i.push(fe(e,t)),oe("}")||ie(",");return H(),n.finishObjectPattern(i)}function ge(e,t){return oe("[")?pe(e,t):oe("{")?me(e,t):(se("let")&&("const"!==t&&"let"!==t||ne(Dn,rn.UnexpectedToken)),e.push(Dn),Ze(t))}function ve(e,t){var n,i,r,a=Dn;return n=ge(e,t),oe("=")&&(H(),i=wn.allowYield,wn.allowYield=!0,r=ce(qe),wn.allowYield=i,n=new q(a).finishAssignmentPattern(n,r)),n}function ye(){var e,t=[],n=new V;for(ie("[");!oe("]");)oe(",")?(H(),t.push(null)):oe("...")?(e=new V,H(),e.finishSpreadElement(he(qe)),oe("]")||(Mn=Ln=!1,ie(",")),t.push(e)):(t.push(he(qe)),oe("]")||ie(","));return H(),n.finishArrayExpression(t)}function _e(e,t,n){var i,r;return Mn=Ln=!1,i=sn,r=ce(kt),sn&&t.firstRestricted&&ne(t.firstRestricted,t.message),sn&&t.stricted&&ne(t.stricted,t.message),sn=i,e.finishFunctionExpression(null,t.params,t.defaults,r,n)}function De(){var e,t,n=new V,i=wn.allowYield;return wn.allowYield=!1,e=Et(),wn.allowYield=i,wn.allowYield=!1,t=_e(n,e,!1),wn.allowYield=i,t}function we(){var e,t,n=new V;switch(e=H(),e.type){case Qt.StringLiteral:case Qt.NumericLiteral:return sn&&e.octal&&ne(e,rn.StrictOctalLiteral),n.finishLiteral(e);case Qt.Identifier:case Qt.BooleanLiteral:case Qt.NullLiteral:case Qt.Keyword:return n.finishIdentifier(e.value);case Qt.Punctuator:if("["===e.value)return t=ce(qe),ie("]"),t}te(e)}function be(){switch(Dn.type){case Qt.Identifier:case Qt.StringLiteral:case Qt.BooleanLiteral:case Qt.NullLiteral:case Qt.NumericLiteral:case Qt.Keyword:return!0;case Qt.Punctuator:return"["===Dn.value}return!1}function Le(e,t,n,i){var r,a,o,s,l=wn.allowYield;if(e.type===Qt.Identifier){if("get"===e.value&&be())return n=oe("["),t=we(),o=new V,ie("("),ie(")"),wn.allowYield=!1,r=_e(o,{params:[],defaults:[],stricted:null,firstRestricted:null,message:null},!1),wn.allowYield=l,i.finishProperty("get",t,n,r,!1,!1);if("set"===e.value&&be())return n=oe("["),t=we(),o=new V,ie("("),a={params:[],defaultCount:0,defaults:[],firstRestricted:null,paramSet:{}},oe(")")?ne(Dn):(wn.allowYield=!1,St(a),wn.allowYield=l,0===a.defaultCount&&(a.defaults=[])),ie(")"),wn.allowYield=!1,r=_e(o,a,!1),wn.allowYield=l,i.finishProperty("set",t,n,r,!1,!1)}else if(e.type===Qt.Punctuator&&"*"===e.value&&be())return n=oe("["),t=we(),o=new V,wn.allowYield=!0,s=Et(),wn.allowYield=l,wn.allowYield=!1,r=_e(o,s,!0),wn.allowYield=l,i.finishProperty("init",t,n,r,!0,!1);return t&&oe("(")?(r=De(),i.finishProperty("init",t,n,r,!0,!1)):null}function Me(e){var t,n,i,r,a,o=Dn,s=new V;return t=oe("["),oe("*")?H():n=we(),(i=Le(o,n,t,s))?i:(n||te(Dn),t||(r=n.type===tn.Identifier&&"__proto__"===n.name||n.type===tn.Literal&&"__proto__"===n.value,e.value&&r&&Z(rn.DuplicateProtoProperty),e.value|=r),oe(":")?(H(),a=he(qe),s.finishProperty("init",n,t,a,!1,!1)):o.type===Qt.Identifier?oe("=")?(Cn=Dn,H(),a=ce(qe),s.finishProperty("init",n,t,new q(o).finishAssignmentPattern(n,a),!1,!0)):s.finishProperty("init",n,t,n,!1,!0):void te(Dn))}function Ce(){var e=[],t={value:!1},n=new V;for(ie("{");!oe("}");)e.push(Me(t)),oe("}")||re();return ie("}"),n.finishObjectExpression(e)}function xe(e){var t;switch(e.type){case tn.Identifier:case tn.MemberExpression:case tn.RestElement:case tn.AssignmentPattern:break;case tn.SpreadElement:e.type=tn.RestElement,xe(e.argument);break;case tn.ArrayExpression:for(e.type=tn.ArrayPattern,t=0;t<e.elements.length;t++)null!==e.elements[t]&&xe(e.elements[t]);break;case tn.ObjectExpression:for(e.type=tn.ObjectPattern,t=0;t<e.properties.length;t++)xe(e.properties[t].value);break;case tn.AssignmentExpression:e.type=tn.AssignmentPattern,xe(e.left)}}function ke(e){var t,n;return(Dn.type!==Qt.Template||e.head&&!Dn.head)&&te(),t=new V,n=H(),t.finishTemplateElement({raw:n.value.raw,cooked:n.value.cooked},n.tail)}function Te(){var e,t,n,i=new V;for(e=ke({head:!0}),t=[e],n=[];!e.tail;)n.push(Ke()),e=ke({head:!1}),t.push(e);return i.finishTemplateLiteral(t,n)}function Se(){var e,t,n,i,r=[];if(ie("("),oe(")"))return H(),oe("=>")||ie("=>"),{type:nn.ArrowParameterPlaceHolder,params:[],rawParams:[]};if(n=Dn,oe("..."))return e=ut(r),ie(")"),oe("=>")||ie("=>"),{type:nn.ArrowParameterPlaceHolder,params:[e]};if(Ln=!0,e=he(qe),oe(",")){for(Mn=!1,t=[e];_n>mn&&oe(",");){if(H(),oe("...")){for(Ln||te(Dn),t.push(ut(r)),ie(")"),oe("=>")||ie("=>"),Ln=!1,i=0;i<t.length;i++)xe(t[i]);return{type:nn.ArrowParameterPlaceHolder,params:t}}t.push(he(qe))}e=new q(n).finishSequenceExpression(t)}if(ie(")"),oe("=>")){if(e.type===tn.Identifier&&"yield"===e.name)return{type:nn.ArrowParameterPlaceHolder,params:[e]};if(Ln||te(Dn),e.type===tn.SequenceExpression)for(i=0;i<e.expressions.length;i++)xe(e.expressions[i]);else xe(e);e={type:nn.ArrowParameterPlaceHolder,params:e.type===tn.SequenceExpression?e.expressions:[e]}}return Ln=!1,e}function Ee(){var e,t,n,i;if(oe("("))return Ln=!1,he(Se);if(oe("["))return he(ye);if(oe("{"))return he(Ce);if(e=Dn.type,i=new V,e===Qt.Identifier)"module"===wn.sourceType&&"await"===Dn.value&&ne(Dn),n=i.finishIdentifier(H().value);else if(e===Qt.StringLiteral||e===Qt.NumericLiteral)Mn=Ln=!1,sn&&Dn.octal&&ne(Dn,rn.StrictOctalLiteral),n=i.finishLiteral(H());else if(e===Qt.Keyword){if(!sn&&wn.allowYield&&se("yield"))return Ae();if(!sn&&se("let"))return i.finishIdentifier(H().value);if(Mn=Ln=!1,se("function"))return At();if(se("this"))return H(),i.finishThisExpression();if(se("class"))return It();te(H())}else e===Qt.BooleanLiteral?(Mn=Ln=!1,t=H(),t.value="true"===t.value,n=i.finishLiteral(t)):e===Qt.NullLiteral?(Mn=Ln=!1,t=H(),t.value=null,n=i.finishLiteral(t)):oe("/")||oe("/=")?(Mn=Ln=!1,ln=mn,t="undefined"!=typeof bn.tokens?P():B(),H(),n=i.finishLiteral(t)):e===Qt.Template?n=Te():te(H());return n}function Ye(){var e,t=[];if(ie("("),!oe(")"))for(;_n>mn&&(oe("...")?(e=new V,H(),e.finishSpreadElement(ce(qe))):e=ce(qe),t.push(e),!oe(")"));)re();return ie(")"),t}function Ae(){var e,t=new V;return e=H(),N(e)||te(e),t.finishIdentifier(e.value)}function Fe(){return ie("."),Ae()}function Oe(){var e;return ie("["),e=ce(Ke),ie("]"),e}function Ie(){var e,t,n=new V;if(ae("new"),oe(".")){if(H(),Dn.type===Qt.Identifier&&"target"===Dn.value&&wn.inFunctionBody)return H(),n.finishMetaProperty("new","target");te(Dn)}return e=ce(Pe),t=oe("(")?Ye():[],Mn=Ln=!1,n.finishNewExpression(e,t)}function Be(){var e,t,n,i,r,a=wn.allowIn;for(r=Dn,wn.allowIn=!0,se("super")&&wn.inFunctionBody?(t=new V,H(),t=t.finishSuper(),oe("(")||oe(".")||oe("[")||te(Dn)):t=he(se("new")?Ie:Ee);;)if(oe("."))Ln=!1,Mn=!0,i=Fe(),t=new q(r).finishMemberExpression(".",t,i);else if(oe("("))Ln=!1,Mn=!1,n=Ye(),t=new q(r).finishCallExpression(t,n);else if(oe("["))Ln=!1,Mn=!0,i=Oe(),t=new q(r).finishMemberExpression("[",t,i);else{if(Dn.type!==Qt.Template||!Dn.head)break;e=Te(),t=new q(r).finishTaggedTemplateExpression(t,e)}return wn.allowIn=a,t}function Pe(){var e,n,i,r;for(t(wn.allowIn,"callee of new expression always allow in keyword."),r=Dn,se("super")&&wn.inFunctionBody?(n=new V,H(),n=n.finishSuper(),oe("[")||oe(".")||te(Dn)):n=he(se("new")?Ie:Ee);;)if(oe("["))Ln=!1,Mn=!0,i=Oe(),n=new q(r).finishMemberExpression("[",n,i);else if(oe("."))Ln=!1,Mn=!0,i=Fe(),n=new q(r).finishMemberExpression(".",n,i);else{if(Dn.type!==Qt.Template||!Dn.head)break;e=Te(),n=new q(r).finishTaggedTemplateExpression(n,e)}return n}function Ne(){var e,t,n=Dn;return e=he(Be),cn||Dn.type!==Qt.Punctuator||(oe("++")||oe("--"))&&(sn&&e.type===tn.Identifier&&p(e.name)&&Z(rn.StrictLHSPostfix),Mn||Z(rn.InvalidLHSInAssignment),Mn=Ln=!1,t=H(),e=new q(n).finishPostfixExpression(t.value,e)),e}function je(){var e,t,n;return Dn.type!==Qt.Punctuator&&Dn.type!==Qt.Keyword?t=Ne():oe("++")||oe("--")?(n=Dn,e=H(),t=he(je),sn&&t.type===tn.Identifier&&p(t.name)&&Z(rn.StrictLHSPrefix),Mn||Z(rn.InvalidLHSInAssignment),t=new q(n).finishUnaryExpression(e.value,t),Mn=Ln=!1):oe("+")||oe("-")||oe("~")||oe("!")?(n=Dn,e=H(),t=he(je),t=new q(n).finishUnaryExpression(e.value,t),Mn=Ln=!1):se("delete")||se("void")||se("typeof")?(n=Dn,e=H(),t=he(je),t=new q(n).finishUnaryExpression(e.value,t),sn&&"delete"===t.operator&&t.argument.type===tn.Identifier&&Z(rn.StrictDelete),Mn=Ln=!1):t=Ne(),t}function ze(e,t){var n=0;if(e.type!==Qt.Punctuator&&e.type!==Qt.Keyword)return 0;switch(e.value){case"||":n=1;break;case"&&":n=2;break;case"|":n=3;break;case"^":n=4;break;case"&":n=5;break;case"==":case"!=":case"===":case"!==":n=6;break;case"<":case">":case"<=":case">=":case"instanceof":n=7;break;case"in":n=t?7:0;break;case"<<":case">>":case">>>":n=8;break;case"+":case"-":n=9;break;case"*":case"/":case"%":n=11}return n}function We(){var e,t,n,i,r,a,o,s,l,u;if(e=Dn,l=he(je),i=Dn,r=ze(i,wn.allowIn),0===r)return l;for(Mn=Ln=!1,i.prec=r,H(),t=[e,Dn],o=ce(je),a=[l,i,o];(r=ze(Dn,wn.allowIn))>0;){for(;a.length>2&&r<=a[a.length-2].prec;)o=a.pop(),s=a.pop().value,l=a.pop(),t.pop(),n=new q(t[t.length-1]).finishBinaryExpression(s,l,o),a.push(n);i=H(),i.prec=r,a.push(i),t.push(Dn),n=ce(je),a.push(n)}for(u=a.length-1,n=a[u],t.pop();u>1;)n=new q(t.pop()).finishBinaryExpression(a[u-1].value,a[u-2],n),u-=2;return n}function He(){var e,t,n,i,r;return r=Dn,e=he(We),oe("?")&&(H(),t=wn.allowIn,wn.allowIn=!0,n=ce(qe),wn.allowIn=t,ie(":"),i=ce(qe),e=new q(r).finishConditionalExpression(e,n,i),Mn=Ln=!1),e}function Re(){return oe("{")?kt():ce(qe)}function $e(e,n){var i;switch(n.type){case tn.Identifier:Tt(e,n,n.name);break;case tn.RestElement:$e(e,n.argument);break;case tn.AssignmentPattern:$e(e,n.left);break;case tn.ArrayPattern:for(i=0;i<n.elements.length;i++)null!==n.elements[i]&&$e(e,n.elements[i]);break;case tn.YieldExpression:break;default:for(t(n.type===tn.ObjectPattern,"Invalid type"),i=0;i<n.properties.length;i++)$e(e,n.properties[i].value)}}function Ue(e){var t,n,i,r,a,o,s,l;switch(a=[],o=0,r=[e],e.type){case tn.Identifier:break;case nn.ArrowParameterPlaceHolder:r=e.params;break;default:return null}for(s={paramSet:{}},t=0,n=r.length;n>t;t+=1)switch(i=r[t],i.type){case tn.AssignmentPattern:r[t]=i.left,i.right.type===tn.YieldExpression&&(i.right.argument&&te(Dn),i.right.type=tn.Identifier,i.right.name="yield",delete i.right.argument,delete i.right.delegate),a.push(i.right),++o,$e(s,i.left);break;default:$e(s,i),r[t]=i,a.push(null)}if(sn||!wn.allowYield)for(t=0,n=r.length;n>t;t+=1)i=r[t],i.type===tn.YieldExpression&&te(Dn);return s.message===rn.StrictParamDupe&&(l=sn?s.stricted:s.firstRestricted,te(l,s.message)),0===o&&(a=[]),{params:r,defaults:a,stricted:s.stricted,firstRestricted:s.firstRestricted,message:s.message}}function Ge(e,t){var n,i,r;return cn&&ne(Dn),ie("=>"),n=sn,i=wn.allowYield,wn.allowYield=!0,r=Re(),sn&&e.firstRestricted&&te(e.firstRestricted,e.message),sn&&e.stricted&&ne(e.stricted,e.message),sn=n,wn.allowYield=i,t.finishArrowFunctionExpression(e.params,e.defaults,r,r.type!==tn.BlockStatement)}function Ve(){var e,t,n,i;return e=null,t=new V,n=!1,ae("yield"),cn||(i=wn.allowYield,wn.allowYield=!1,n=oe("*"),n?(H(),e=qe()):oe(";")||oe("}")||oe(")")||Dn.type===Qt.EOF||(e=qe()),wn.allowYield=i),t.finishYieldExpression(e,n)}function qe(){var e,t,n,i,r;return r=Dn,e=Dn,!wn.allowYield&&se("yield")?Ve():(t=He(),t.type===nn.ArrowParameterPlaceHolder||oe("=>")?(Mn=Ln=!1,i=Ue(t),i?(Cn=null,Ge(i,new q(r))):t):(ue()&&(Mn||Z(rn.InvalidLHSInAssignment),sn&&t.type===tn.Identifier&&(p(t.name)&&ne(e,rn.StrictLHSAssignment),h(t.name)&&ne(e,rn.StrictReservedWord)),oe("=")?xe(t):Mn=Ln=!1,e=H(),n=ce(qe),t=new q(r).finishAssignmentExpression(e.value,t,n),Cn=null),t))}function Ke(){var e,t,n=Dn;if(e=ce(qe),oe(",")){for(t=[e];_n>mn&&oe(",");)H(),t.push(ce(qe));e=new q(n).finishSequenceExpression(t)}return e}function Je(){if(Dn.type===Qt.Keyword)switch(Dn.value){case"export":return"module"!==wn.sourceType&&ne(Dn,rn.IllegalExportDeclaration),Wt();case"import":return"module"!==wn.sourceType&&ne(Dn,rn.IllegalImportDeclaration),Gt();case"const":return lt({inFor:!1});case"function":return Yt(new V);case"class":return Ot()}return se("let")&&st()?lt({inFor:!1}):xt()}function Xe(){for(var e=[];_n>mn&&!oe("}");)e.push(Je());return e}function Qe(){var e,t=new V;return ie("{"),e=Xe(),ie("}"),t.finishBlockStatement(e)}function Ze(e){var t,n=new V;return t=H(),t.type===Qt.Keyword&&"yield"===t.value?(sn&&ne(t,rn.StrictReservedWord),wn.allowYield||te(t)):t.type!==Qt.Identifier?sn&&t.type===Qt.Keyword&&h(t.value)?ne(t,rn.StrictReservedWord):(sn||"let"!==t.value||"var"!==e)&&te(t):"module"===wn.sourceType&&t.type===Qt.Identifier&&"await"===t.value&&ne(t),n.finishIdentifier(t.value)}function et(e){var t,n=null,i=new V,r=[];return t=ge(r,"var"),sn&&p(t.name)&&Z(rn.StrictVarName),oe("=")?(H(),n=ce(qe)):t.type===tn.Identifier||e.inFor||ie("="),i.finishVariableDeclarator(t,n)}function tt(e){var t,n;for(t={inFor:e.inFor},n=[et(t)];oe(",");)H(),n.push(et(t));return n}function nt(e){var t;return ae("var"),t=tt({inFor:!1}),de(),e.finishVariableDeclaration(t)}function it(e,t){var n,i=null,r=new V,a=[];return n=ge(a,e),sn&&n.type===tn.Identifier&&p(n.name)&&Z(rn.StrictVarName),"const"===e?se("in")||le("of")||(ie("="),i=ce(qe)):(!t.inFor&&n.type!==tn.Identifier||oe("="))&&(ie("="),i=ce(qe)),r.finishVariableDeclarator(n,i)}function rt(e,t){for(var n=[it(e,t)];oe(",");)H(),n.push(it(e,t));return n}function at(){return{index:ln,lineNumber:un,lineStart:dn,hasLineTerminator:cn,lastIndex:hn,lastLineNumber:pn,lastLineStart:fn,startIndex:mn,startLineNumber:gn,startLineStart:vn,lookahead:Dn,tokenCount:bn.tokens?bn.tokens.length:0}}function ot(e){ln=e.index,un=e.lineNumber,dn=e.lineStart,cn=e.hasLineTerminator,hn=e.lastIndex,pn=e.lastLineNumber,fn=e.lastLineStart,mn=e.startIndex,gn=e.startLineNumber,vn=e.startLineStart,Dn=e.lookahead,bn.tokens&&bn.tokens.splice(e.tokenCount,bn.tokens.length)}function st(){var e,t;return t=at(),H(),e=Dn.type===Qt.Identifier||oe("[")||oe("{")||se("let")||se("yield"),ot(t),e}function lt(e){var n,i,r=new V;return n=H().value,t("let"===n||"const"===n,"Lexical declaration must be either let or const"),i=rt(n,e),de(),r.finishLexicalDeclaration(i,n)}function ut(e){var t,n=new V;return H(),oe("{")&&Q(rn.ObjectPatternAsRestParameter),e.push(Dn),t=Ze(),oe("=")&&Q(rn.DefaultRestParameter),oe(")")||Q(rn.ParameterAfterRestParameter),n.finishRestElement(t)}function dt(e){return ie(";"),e.finishEmptyStatement()}function ct(e){var t=Ke();return de(),e.finishExpressionStatement(t)}function ht(e){var t,n,i;return ae("if"),ie("("),t=Ke(),ie(")"),n=xt(),se("else")?(H(),i=xt()):i=null,e.finishIfStatement(t,n,i)}function pt(e){var t,n,i;return ae("do"),i=wn.inIteration,wn.inIteration=!0,t=xt(),wn.inIteration=i,ae("while"),ie("("),n=Ke(),ie(")"),oe(";")&&H(),e.finishDoWhileStatement(t,n)}function ft(e){var t,n,i;return ae("while"),ie("("),t=Ke(),ie(")"),i=wn.inIteration,wn.inIteration=!0,n=xt(),wn.inIteration=i,e.finishWhileStatement(t,n)}function mt(e){var t,n,i,r,a,o,s,l,u,d,c,h,p=wn.allowIn;if(t=a=o=null,n=!0,ae("for"),ie("("),oe(";"))H();else if(se("var"))t=new V,H(),wn.allowIn=!1,d=tt({inFor:!0}),wn.allowIn=p,1===d.length&&se("in")?(t=t.finishVariableDeclaration(d),H(),s=t,l=Ke(),t=null):1===d.length&&null===d[0].init&&le("of")?(t=t.finishVariableDeclaration(d),H(),s=t,l=qe(),t=null,n=!1):(t=t.finishVariableDeclaration(d),ie(";"));else if(se("const")||se("let"))t=new V,u=H().value,sn||"in"!==Dn.value?(wn.allowIn=!1,d=rt(u,{inFor:!0}),wn.allowIn=p,1===d.length&&null===d[0].init&&se("in")?(t=t.finishLexicalDeclaration(d,u),H(),s=t,l=Ke(),t=null):1===d.length&&null===d[0].init&&le("of")?(t=t.finishLexicalDeclaration(d,u),H(),s=t,l=qe(),t=null,n=!1):(de(),t=t.finishLexicalDeclaration(d,u))):(t=t.finishIdentifier(u),H(),s=t,l=Ke(),t=null);else if(r=Dn,wn.allowIn=!1,t=he(qe),wn.allowIn=p,se("in"))Mn||Z(rn.InvalidLHSInForIn),H(),xe(t),s=t,l=Ke(),t=null;else if(le("of"))Mn||Z(rn.InvalidLHSInForLoop),H(),xe(t),s=t,l=qe(),t=null,n=!1;else{if(oe(",")){for(i=[t];oe(",");)H(),i.push(ce(qe));t=new q(r).finishSequenceExpression(i)}ie(";")}return"undefined"==typeof s&&(oe(";")||(a=Ke()),ie(";"),oe(")")||(o=Ke())),ie(")"),h=wn.inIteration,wn.inIteration=!0,c=ce(xt),wn.inIteration=h,"undefined"==typeof s?e.finishForStatement(t,a,o,c):n?e.finishForInStatement(s,l,c):e.finishForOfStatement(s,l,c)}function gt(e){var t,n=null;return ae("continue"),59===on.charCodeAt(mn)?(H(),wn.inIteration||Q(rn.IllegalContinue),e.finishContinueStatement(null)):cn?(wn.inIteration||Q(rn.IllegalContinue),e.finishContinueStatement(null)):(Dn.type===Qt.Identifier&&(n=Ze(),t="$"+n.name,Object.prototype.hasOwnProperty.call(wn.labelSet,t)||Q(rn.UnknownLabel,n.name)),de(),null!==n||wn.inIteration||Q(rn.IllegalContinue),e.finishContinueStatement(n))}function vt(e){var t,n=null;return ae("break"),59===on.charCodeAt(hn)?(H(),wn.inIteration||wn.inSwitch||Q(rn.IllegalBreak),e.finishBreakStatement(null)):(cn?wn.inIteration||wn.inSwitch||Q(rn.IllegalBreak):Dn.type===Qt.Identifier&&(n=Ze(),t="$"+n.name,Object.prototype.hasOwnProperty.call(wn.labelSet,t)||Q(rn.UnknownLabel,n.name)),de(),null!==n||wn.inIteration||wn.inSwitch||Q(rn.IllegalBreak),e.finishBreakStatement(n))}function yt(e){var t=null;return ae("return"),wn.inFunctionBody||Z(rn.IllegalReturn),32===on.charCodeAt(hn)&&u(on.charCodeAt(hn+1))?(t=Ke(),de(),e.finishReturnStatement(t)):cn?e.finishReturnStatement(null):(oe(";")||oe("}")||Dn.type===Qt.EOF||(t=Ke()),de(),e.finishReturnStatement(t))}function _t(e){var t,n;return sn&&Z(rn.StrictModeWith),ae("with"),ie("("),t=Ke(),ie(")"),n=xt(),e.finishWithStatement(t,n)}function Dt(){var e,t,n=[],i=new V;for(se("default")?(H(),e=null):(ae("case"),e=Ke()),ie(":");_n>mn&&!(oe("}")||se("default")||se("case"));)t=Je(),n.push(t);return i.finishSwitchCase(e,n)}function wt(e){var t,n,i,r,a;if(ae("switch"),ie("("),t=Ke(),ie(")"),ie("{"),n=[],oe("}"))return H(),e.finishSwitchStatement(t,n);for(r=wn.inSwitch,wn.inSwitch=!0,a=!1;_n>mn&&!oe("}");)i=Dt(),null===i.test&&(a&&Q(rn.MultipleDefaultsInSwitch),a=!0),n.push(i);return wn.inSwitch=r,ie("}"),e.finishSwitchStatement(t,n)}function bt(e){var t;return ae("throw"),cn&&Q(rn.NewlineAfterThrow),t=Ke(),de(),e.finishThrowStatement(t)}function Lt(){var e,t,n,i,r=[],a={},o=new V;for(ae("catch"),ie("("),oe(")")&&te(Dn),e=ge(r),n=0;n<r.length;n++)t="$"+r[n].value,Object.prototype.hasOwnProperty.call(a,t)&&Z(rn.DuplicateBinding,r[n].value),a[t]=!0;return sn&&p(e.name)&&Z(rn.StrictCatchVariable),ie(")"),i=Qe(),o.finishCatchClause(e,i)}function Mt(e){var t,n=null,i=null;return ae("try"),t=Qe(),se("catch")&&(n=Lt()),se("finally")&&(H(),i=Qe()),n||i||Q(rn.NoCatchOrFinally),e.finishTryStatement(t,n,i)}function Ct(e){return ae("debugger"),de(),e.finishDebuggerStatement()}function xt(){var e,t,n,i,r=Dn.type;if(r===Qt.EOF&&te(Dn),r===Qt.Punctuator&&"{"===Dn.value)return Qe();if(Mn=Ln=!0,i=new V,r===Qt.Punctuator)switch(Dn.value){case";":return dt(i);case"(":return ct(i)}else if(r===Qt.Keyword)switch(Dn.value){case"break":return vt(i);case"continue":return gt(i);case"debugger":return Ct(i);case"do":return pt(i);case"for":return mt(i);case"function":return Yt(i);case"if":return ht(i);case"return":return yt(i);case"switch":return wt(i);case"throw":return bt(i);case"try":return Mt(i);case"var":return nt(i);case"while":return ft(i);case"with":return _t(i)}return e=Ke(),e.type===tn.Identifier&&oe(":")?(H(),n="$"+e.name,Object.prototype.hasOwnProperty.call(wn.labelSet,n)&&Q(rn.Redeclaration,"Label",e.name),wn.labelSet[n]=!0,t=xt(),delete wn.labelSet[n],i.finishLabeledStatement(e,t)):(de(),i.finishExpressionStatement(e))}function kt(){var e,t,n,i,r,a,o,s,l=[],u=new V;for(ie("{");_n>mn&&Dn.type===Qt.StringLiteral&&(t=Dn,e=Je(),l.push(e),e.expression.type===tn.Literal);)n=on.slice(t.start+1,t.end-1),"use strict"===n?(sn=!0,i&&ne(i,rn.StrictOctalLiteral)):!i&&t.octal&&(i=t);for(r=wn.labelSet,a=wn.inIteration,o=wn.inSwitch,s=wn.inFunctionBody,wn.labelSet={},wn.inIteration=!1,wn.inSwitch=!1,wn.inFunctionBody=!0;_n>mn&&!oe("}");)l.push(Je());return ie("}"),wn.labelSet=r,wn.inIteration=a,wn.inSwitch=o,wn.inFunctionBody=s,u.finishBlockStatement(l)}function Tt(e,t,n){var i="$"+n;sn?(p(n)&&(e.stricted=t,e.message=rn.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,i)&&(e.stricted=t,e.message=rn.StrictParamDupe)):e.firstRestricted||(p(n)?(e.firstRestricted=t,e.message=rn.StrictParamName):h(n)?(e.firstRestricted=t,e.message=rn.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,i)&&(e.stricted=t,e.message=rn.StrictParamDupe)),e.paramSet[i]=!0}function St(e){var t,n,i,r,a=[];if(t=Dn,"..."===t.value)return n=ut(a),Tt(e,n.argument,n.argument.name),e.params.push(n),e.defaults.push(null),!1;for(n=ve(a),i=0;i<a.length;i++)Tt(e,a[i],a[i].value);return n.type===tn.AssignmentPattern&&(r=n.right,n=n.left,++e.defaultCount),e.params.push(n),e.defaults.push(r),!oe(")")}function Et(e){var t;if(t={params:[],defaultCount:0,defaults:[],firstRestricted:e},ie("("),!oe(")"))for(t.paramSet={};_n>mn&&St(t);)ie(",");return ie(")"),0===t.defaultCount&&(t.defaults=[]),{params:t.params,defaults:t.defaults,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}}function Yt(e,t){var n,i,r,a,o,s,l,u,d,c=null,f=[],m=[];return d=wn.allowYield,ae("function"),u=oe("*"),u&&H(),t&&oe("(")||(i=Dn,c=Ze(),sn?p(i.value)&&ne(i,rn.StrictFunctionName):p(i.value)?(o=i,s=rn.StrictFunctionName):h(i.value)&&(o=i,s=rn.StrictReservedWord)),wn.allowYield=!u,a=Et(o),f=a.params,m=a.defaults,r=a.stricted,o=a.firstRestricted,a.message&&(s=a.message),l=sn,n=kt(),sn&&o&&te(o,s),sn&&r&&ne(r,s),sn=l,wn.allowYield=d,e.finishFunctionDeclaration(c,f,m,n,u)}function At(){var e,t,n,i,r,a,o,s,l,u=null,d=[],c=[],f=new V;return l=wn.allowYield,ae("function"),s=oe("*"),s&&H(),wn.allowYield=!s,oe("(")||(e=Dn,u=sn||s||!se("yield")?Ze():Ae(),sn?p(e.value)&&ne(e,rn.StrictFunctionName):p(e.value)?(n=e,i=rn.StrictFunctionName):h(e.value)&&(n=e,i=rn.StrictReservedWord)),r=Et(n),d=r.params,c=r.defaults,t=r.stricted,n=r.firstRestricted,r.message&&(i=r.message),o=sn,a=kt(),sn&&n&&te(n,i),sn&&t&&ne(t,i),sn=o,wn.allowYield=l,f.finishFunctionExpression(u,d,c,a,s)}function Ft(){var e,t,n,i,r,a,o,s=!1;for(e=new V,ie("{"),i=[];!oe("}");)oe(";")?H():(r=new V,t=Dn,n=!1,a=oe("["),oe("*")?H():(o=we(),"static"===o.name&&(be()||oe("*"))&&(t=Dn,n=!0,a=oe("["),oe("*")?H():o=we())),r=Le(t,o,a,r),r?(r["static"]=n,"init"===r.kind&&(r.kind="method"),n?r.computed||"prototype"!==(r.key.name||r.key.value.toString())||te(t,rn.StaticPrototype):r.computed||"constructor"!==(r.key.name||r.key.value.toString())||("method"===r.kind&&r.method&&!r.value.generator||te(t,rn.ConstructorSpecialMethod),s?te(t,rn.DuplicateConstructor):s=!0,r.kind="constructor"),r.type=tn.MethodDefinition,delete r.method,delete r.shorthand,i.push(r)):te(Dn));return H(),e.finishClassBody(i)}function Ot(e){var t,n=null,i=null,r=new V,a=sn;return sn=!0,ae("class"),e&&Dn.type!==Qt.Identifier||(n=Ze()),se("extends")&&(H(),i=ce(Be)),t=Ft(),sn=a,r.finishClassDeclaration(n,i,t)}function It(){var e,t=null,n=null,i=new V,r=sn;return sn=!0,ae("class"),Dn.type===Qt.Identifier&&(t=Ze()),se("extends")&&(H(),n=ce(Be)),e=Ft(),sn=r,i.finishClassExpression(t,n,e)}function Bt(){var e=new V;return Dn.type!==Qt.StringLiteral&&Q(rn.InvalidModuleSpecifier),e.finishLiteral(H())}function Pt(){var e,t,n,i=new V;return se("default")?(n=new V,H(),t=n.finishIdentifier("default")):t=Ze(),le("as")&&(H(),e=Ae()),i.finishExportSpecifier(t,e)}function Nt(e){var t,n=null,i=null,r=[];if(Dn.type===Qt.Keyword)switch(Dn.value){case"let":case"const":return n=lt({inFor:!1}),e.finishExportNamedDeclaration(n,r,null);case"var":case"class":case"function":return n=Je(),e.finishExportNamedDeclaration(n,r,null)}for(ie("{");!oe("}")&&(t=t||se("default"),r.push(Pt()),oe("}")||(ie(","),!oe("}"))););return ie("}"),le("from")?(H(),i=Bt(),de()):t?Q(Dn.value?rn.UnexpectedToken:rn.MissingFromClause,Dn.value):de(),e.finishExportNamedDeclaration(n,r,i)}function jt(e){var t=null,n=null;return ae("default"),se("function")?(t=Yt(new V,!0),e.finishExportDefaultDeclaration(t)):se("class")?(t=Ot(!0),e.finishExportDefaultDeclaration(t)):(le("from")&&Q(rn.UnexpectedToken,Dn.value),
n=oe("{")?Ce():oe("[")?ye():qe(),de(),e.finishExportDefaultDeclaration(n))}function zt(e){var t;return ie("*"),le("from")||Q(Dn.value?rn.UnexpectedToken:rn.MissingFromClause,Dn.value),H(),t=Bt(),de(),e.finishExportAllDeclaration(t)}function Wt(){var e=new V;return wn.inFunctionBody&&Q(rn.IllegalExportDeclaration),ae("export"),se("default")?jt(e):oe("*")?zt(e):Nt(e)}function Ht(){var e,t,n=new V;return t=Ae(),le("as")&&(H(),e=Ze()),n.finishImportSpecifier(e,t)}function Rt(){var e=[];for(ie("{");!oe("}")&&(e.push(Ht()),oe("}")||(ie(","),!oe("}"))););return ie("}"),e}function $t(){var e,t=new V;return e=Ae(),t.finishImportDefaultSpecifier(e)}function Ut(){var e,t=new V;return ie("*"),le("as")||Q(rn.NoAsAfterImportNamespace),H(),e=Ae(),t.finishImportNamespaceSpecifier(e)}function Gt(){var e,t=[],n=new V;return wn.inFunctionBody&&Q(rn.IllegalImportDeclaration),ae("import"),Dn.type===Qt.StringLiteral?e=Bt():(oe("{")?t=t.concat(Rt()):oe("*")?t.push(Ut()):N(Dn)&&!se("default")?(t.push($t()),oe(",")&&(H(),oe("*")?t.push(Ut()):oe("{")?t=t.concat(Rt()):te(Dn))):te(H()),le("from")||Q(Dn.value?rn.UnexpectedToken:rn.MissingFromClause,Dn.value),H(),e=Bt()),de(),n.finishImportDeclaration(t,e)}function Vt(){for(var e,t,n,i,r=[];_n>mn&&(t=Dn,t.type===Qt.StringLiteral)&&(e=Je(),r.push(e),e.expression.type===tn.Literal);)n=on.slice(t.start+1,t.end-1),"use strict"===n?(sn=!0,i&&ne(i,rn.StrictOctalLiteral)):!i&&t.octal&&(i=t);for(;_n>mn&&(e=Je(),"undefined"!=typeof e);)r.push(e);return r}function qt(){var e,t;return R(),t=new V,e=Vt(),t.finishProgram(e,wn.sourceType)}function Kt(){var e,t,n,i=[];for(e=0;e<bn.tokens.length;++e)t=bn.tokens[e],n={type:t.type,value:t.value},t.regex&&(n.regex={pattern:t.regex.pattern,flags:t.regex.flags}),bn.range&&(n.range=t.range),bn.loc&&(n.loc=t.loc),i.push(n);bn.tokens=i}function Jt(e,t,n){var i,r;i=String,"string"==typeof e||e instanceof String||(e=i(e)),on=e,ln=0,un=on.length>0?1:0,dn=0,mn=ln,gn=un,vn=dn,_n=on.length,Dn=null,wn={allowIn:!0,allowYield:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1,curlyStack:[]},bn={},t=t||{},t.tokens=!0,bn.tokens=[],bn.tokenValues=[],bn.tokenize=!0,bn.delegate=n,bn.openParenToken=-1,bn.openCurlyToken=-1,bn.range="boolean"==typeof t.range&&t.range,bn.loc="boolean"==typeof t.loc&&t.loc,"boolean"==typeof t.comment&&t.comment&&(bn.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(bn.errors=[]);try{if(R(),Dn.type===Qt.EOF)return bn.tokens;for(H();Dn.type!==Qt.EOF;)try{H()}catch(a){if(bn.errors){K(a);break}throw a}r=bn.tokens,"undefined"!=typeof bn.errors&&(r.errors=bn.errors)}catch(o){throw o}finally{bn={}}return r}function Xt(e,t){var n,i;i=String,"string"==typeof e||e instanceof String||(e=i(e)),on=e,ln=0,un=on.length>0?1:0,dn=0,mn=ln,gn=un,vn=dn,_n=on.length,Dn=null,wn={allowIn:!0,allowYield:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1,curlyStack:[],sourceType:"script"},sn=!1,bn={},"undefined"!=typeof t&&(bn.range="boolean"==typeof t.range&&t.range,bn.loc="boolean"==typeof t.loc&&t.loc,bn.attachComment="boolean"==typeof t.attachComment&&t.attachComment,bn.loc&&null!==t.source&&void 0!==t.source&&(bn.source=i(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(bn.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(bn.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(bn.errors=[]),bn.attachComment&&(bn.range=!0,bn.comments=[],bn.bottomRightStack=[],bn.trailingComments=[],bn.leadingComments=[]),"module"===t.sourceType&&(wn.sourceType=t.sourceType,sn=!0));try{n=qt(),"undefined"!=typeof bn.comments&&(n.comments=bn.comments),"undefined"!=typeof bn.tokens&&(Kt(),n.tokens=bn.tokens),"undefined"!=typeof bn.errors&&(n.errors=bn.errors)}catch(r){throw r}finally{bn={}}return n}var Qt,Zt,en,tn,nn,rn,an,on,sn,ln,un,dn,cn,hn,pn,fn,mn,gn,vn,yn,_n,Dn,wn,bn,Ln,Mn,Cn;Qt={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9,Template:10},Zt={},Zt[Qt.BooleanLiteral]="Boolean",Zt[Qt.EOF]="<end>",Zt[Qt.Identifier]="Identifier",Zt[Qt.Keyword]="Keyword",Zt[Qt.NullLiteral]="Null",Zt[Qt.NumericLiteral]="Numeric",Zt[Qt.Punctuator]="Punctuator",Zt[Qt.StringLiteral]="String",Zt[Qt.RegularExpression]="RegularExpression",Zt[Qt.Template]="Template",en=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],tn={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},nn={ArrowParameterPlaceHolder:"ArrowParameterPlaceHolder"},rn={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",DefaultRestParameter:"Unexpected token =",ObjectPatternAsRestParameter:"Unexpected token {",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ConstructorSpecialMethod:"Class constructor may not be an accessor",DuplicateConstructor:"A class may only have one constructor",StaticPrototype:"Classes may not have static property named prototype",MissingFromClause:"Unexpected token",NoAsAfterImportNamespace:"Unexpected token",InvalidModuleSpecifier:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalExportDeclaration:"Unexpected token",DuplicateBinding:"Duplicate binding %0"},an={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},q.prototype=V.prototype={processComment:function(){var e,t,n,i,r,a,o=bn.bottomRightStack,s=o[o.length-1];if(!(this.type===tn.Program&&this.body.length>0)){if(this.type===tn.BlockStatement&&0===this.body.length){for(t=[],r=bn.leadingComments.length-1;r>=0;--r)a=bn.leadingComments[r],this.range[1]>=a.range[1]&&(t.unshift(a),bn.leadingComments.splice(r,1),bn.trailingComments.splice(r,1));if(t.length)return void(this.innerComments=t)}if(bn.trailingComments.length>0){for(i=[],r=bn.trailingComments.length-1;r>=0;--r)a=bn.trailingComments[r],a.range[0]>=this.range[1]&&(i.unshift(a),bn.trailingComments.splice(r,1));bn.trailingComments=[]}else s&&s.trailingComments&&s.trailingComments[0].range[0]>=this.range[1]&&(i=s.trailingComments,delete s.trailingComments);for(;s&&s.range[0]>=this.range[0];)e=o.pop(),s=o[o.length-1];if(e){if(e.leadingComments){for(n=[],r=e.leadingComments.length-1;r>=0;--r)a=e.leadingComments[r],a.range[1]<=this.range[0]&&(n.unshift(a),e.leadingComments.splice(r,1));e.leadingComments.length||(e.leadingComments=void 0)}}else if(bn.leadingComments.length>0)for(n=[],r=bn.leadingComments.length-1;r>=0;--r)a=bn.leadingComments[r],a.range[1]<=this.range[0]&&(n.unshift(a),bn.leadingComments.splice(r,1));n&&n.length>0&&(this.leadingComments=n),i&&i.length>0&&(this.trailingComments=i),o.push(this)}},finish:function(){bn.range&&(this.range[1]=hn),bn.loc&&(this.loc.end={line:pn,column:hn-fn},bn.source&&(this.loc.source=bn.source)),bn.attachComment&&this.processComment()},finishArrayExpression:function(e){return this.type=tn.ArrayExpression,this.elements=e,this.finish(),this},finishArrayPattern:function(e){return this.type=tn.ArrayPattern,this.elements=e,this.finish(),this},finishArrowFunctionExpression:function(e,t,n,i){return this.type=tn.ArrowFunctionExpression,this.id=null,this.params=e,this.defaults=t,this.body=n,this.generator=!1,this.expression=i,this.finish(),this},finishAssignmentExpression:function(e,t,n){return this.type=tn.AssignmentExpression,this.operator=e,this.left=t,this.right=n,this.finish(),this},finishAssignmentPattern:function(e,t){return this.type=tn.AssignmentPattern,this.left=e,this.right=t,this.finish(),this},finishBinaryExpression:function(e,t,n){return this.type="||"===e||"&&"===e?tn.LogicalExpression:tn.BinaryExpression,this.operator=e,this.left=t,this.right=n,this.finish(),this},finishBlockStatement:function(e){return this.type=tn.BlockStatement,this.body=e,this.finish(),this},finishBreakStatement:function(e){return this.type=tn.BreakStatement,this.label=e,this.finish(),this},finishCallExpression:function(e,t){return this.type=tn.CallExpression,this.callee=e,this.arguments=t,this.finish(),this},finishCatchClause:function(e,t){return this.type=tn.CatchClause,this.param=e,this.body=t,this.finish(),this},finishClassBody:function(e){return this.type=tn.ClassBody,this.body=e,this.finish(),this},finishClassDeclaration:function(e,t,n){return this.type=tn.ClassDeclaration,this.id=e,this.superClass=t,this.body=n,this.finish(),this},finishClassExpression:function(e,t,n){return this.type=tn.ClassExpression,this.id=e,this.superClass=t,this.body=n,this.finish(),this},finishConditionalExpression:function(e,t,n){return this.type=tn.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n,this.finish(),this},finishContinueStatement:function(e){return this.type=tn.ContinueStatement,this.label=e,this.finish(),this},finishDebuggerStatement:function(){return this.type=tn.DebuggerStatement,this.finish(),this},finishDoWhileStatement:function(e,t){return this.type=tn.DoWhileStatement,this.body=e,this.test=t,this.finish(),this},finishEmptyStatement:function(){return this.type=tn.EmptyStatement,this.finish(),this},finishExpressionStatement:function(e){return this.type=tn.ExpressionStatement,this.expression=e,this.finish(),this},finishForStatement:function(e,t,n,i){return this.type=tn.ForStatement,this.init=e,this.test=t,this.update=n,this.body=i,this.finish(),this},finishForOfStatement:function(e,t,n){return this.type=tn.ForOfStatement,this.left=e,this.right=t,this.body=n,this.finish(),this},finishForInStatement:function(e,t,n){return this.type=tn.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1,this.finish(),this},finishFunctionDeclaration:function(e,t,n,i,r){return this.type=tn.FunctionDeclaration,this.id=e,this.params=t,this.defaults=n,this.body=i,this.generator=r,this.expression=!1,this.finish(),this},finishFunctionExpression:function(e,t,n,i,r){return this.type=tn.FunctionExpression,this.id=e,this.params=t,this.defaults=n,this.body=i,this.generator=r,this.expression=!1,this.finish(),this},finishIdentifier:function(e){return this.type=tn.Identifier,this.name=e,this.finish(),this},finishIfStatement:function(e,t,n){return this.type=tn.IfStatement,this.test=e,this.consequent=t,this.alternate=n,this.finish(),this},finishLabeledStatement:function(e,t){return this.type=tn.LabeledStatement,this.label=e,this.body=t,this.finish(),this},finishLiteral:function(e){return this.type=tn.Literal,this.value=e.value,this.raw=on.slice(e.start,e.end),e.regex&&(this.regex=e.regex),this.finish(),this},finishMemberExpression:function(e,t,n){return this.type=tn.MemberExpression,this.computed="["===e,this.object=t,this.property=n,this.finish(),this},finishMetaProperty:function(e,t){return this.type=tn.MetaProperty,this.meta=e,this.property=t,this.finish(),this},finishNewExpression:function(e,t){return this.type=tn.NewExpression,this.callee=e,this.arguments=t,this.finish(),this},finishObjectExpression:function(e){return this.type=tn.ObjectExpression,this.properties=e,this.finish(),this},finishObjectPattern:function(e){return this.type=tn.ObjectPattern,this.properties=e,this.finish(),this},finishPostfixExpression:function(e,t){return this.type=tn.UpdateExpression,this.operator=e,this.argument=t,this.prefix=!1,this.finish(),this},finishProgram:function(e,t){return this.type=tn.Program,this.body=e,this.sourceType=t,this.finish(),this},finishProperty:function(e,t,n,i,r,a){return this.type=tn.Property,this.key=t,this.computed=n,this.value=i,this.kind=e,this.method=r,this.shorthand=a,this.finish(),this},finishRestElement:function(e){return this.type=tn.RestElement,this.argument=e,this.finish(),this},finishReturnStatement:function(e){return this.type=tn.ReturnStatement,this.argument=e,this.finish(),this},finishSequenceExpression:function(e){return this.type=tn.SequenceExpression,this.expressions=e,this.finish(),this},finishSpreadElement:function(e){return this.type=tn.SpreadElement,this.argument=e,this.finish(),this},finishSwitchCase:function(e,t){return this.type=tn.SwitchCase,this.test=e,this.consequent=t,this.finish(),this},finishSuper:function(){return this.type=tn.Super,this.finish(),this},finishSwitchStatement:function(e,t){return this.type=tn.SwitchStatement,this.discriminant=e,this.cases=t,this.finish(),this},finishTaggedTemplateExpression:function(e,t){return this.type=tn.TaggedTemplateExpression,this.tag=e,this.quasi=t,this.finish(),this},finishTemplateElement:function(e,t){return this.type=tn.TemplateElement,this.value=e,this.tail=t,this.finish(),this},finishTemplateLiteral:function(e,t){return this.type=tn.TemplateLiteral,this.quasis=e,this.expressions=t,this.finish(),this},finishThisExpression:function(){return this.type=tn.ThisExpression,this.finish(),this},finishThrowStatement:function(e){return this.type=tn.ThrowStatement,this.argument=e,this.finish(),this},finishTryStatement:function(e,t,n){return this.type=tn.TryStatement,this.block=e,this.guardedHandlers=[],this.handlers=t?[t]:[],this.handler=t,this.finalizer=n,this.finish(),this},finishUnaryExpression:function(e,t){return this.type="++"===e||"--"===e?tn.UpdateExpression:tn.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0,this.finish(),this},finishVariableDeclaration:function(e){return this.type=tn.VariableDeclaration,this.declarations=e,this.kind="var",this.finish(),this},finishLexicalDeclaration:function(e,t){return this.type=tn.VariableDeclaration,this.declarations=e,this.kind=t,this.finish(),this},finishVariableDeclarator:function(e,t){return this.type=tn.VariableDeclarator,this.id=e,this.init=t,this.finish(),this},finishWhileStatement:function(e,t){return this.type=tn.WhileStatement,this.test=e,this.body=t,this.finish(),this},finishWithStatement:function(e,t){return this.type=tn.WithStatement,
this.object=e,this.body=t,this.finish(),this},finishExportSpecifier:function(e,t){return this.type=tn.ExportSpecifier,this.exported=t||e,this.local=e,this.finish(),this},finishImportDefaultSpecifier:function(e){return this.type=tn.ImportDefaultSpecifier,this.local=e,this.finish(),this},finishImportNamespaceSpecifier:function(e){return this.type=tn.ImportNamespaceSpecifier,this.local=e,this.finish(),this},finishExportNamedDeclaration:function(e,t,n){return this.type=tn.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n,this.finish(),this},finishExportDefaultDeclaration:function(e){return this.type=tn.ExportDefaultDeclaration,this.declaration=e,this.finish(),this},finishExportAllDeclaration:function(e){return this.type=tn.ExportAllDeclaration,this.source=e,this.finish(),this},finishImportSpecifier:function(e,t){return this.type=tn.ImportSpecifier,this.local=e||t,this.imported=t,this.finish(),this},finishImportDeclaration:function(e,t){return this.type=tn.ImportDeclaration,this.specifiers=e,this.source=t,this.finish(),this},finishYieldExpression:function(e,t){return this.type=tn.YieldExpression,this.argument=e,this.delegate=t,this.finish(),this}},e.version="2.7.2",e.tokenize=Jt,e.parse=Xt,e.Syntax=function(){var e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in tn)tn.hasOwnProperty(e)&&(t[e]=tn[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()})},function(e,t,n){"use strict";function i(e,t){var n,i,r,a,o,s,l;if(null===t)return{};for(n={},i=Object.keys(t),r=0,a=i.length;a>r;r+=1)o=i[r],s=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),l=e.compiledTypeMap[o],l&&I.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[o]=s;return n}function r(e){var t,n,i;if(t=e.toString(16).toUpperCase(),255>=e)n="x",i=2;else if(65535>=e)n="u",i=4;else{if(!(4294967295>=e))throw new Y("code point within a string may not be greater than 0xFFFFFFFF");n="U",i=8}return"\\"+n+E.repeat("0",i-t.length)+t}function a(e){this.schema=e.schema||A,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=E.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=i(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function o(e,t){for(var n,i=E.repeat(" ",t),r=0,a=-1,o="",s=e.length;s>r;)a=e.indexOf("\n",r),-1===a?(n=e.slice(r),r=s):(n=e.slice(r,a+1),r=a+1),n.length&&"\n"!==n&&(o+=i),o+=n;return o}function s(e,t){return"\n"+E.repeat(" ",e.indent*t)}function l(e,t){var n,i,r;for(n=0,i=e.implicitTypes.length;i>n;n+=1)if(r=e.implicitTypes[n],r.resolve(t))return!0;return!1}function u(e){return e===N||e===B}function d(e){return e>=32&&126>=e||e>=161&&55295>=e&&8232!==e&&8233!==e||e>=57344&&65533>=e&&65279!==e||e>=65536&&1114111>=e}function c(e){return d(e)&&65279!==e&&e!==G&&e!==Q&&e!==Z&&e!==te&&e!==ie&&e!==q&&e!==W}function h(e){return d(e)&&65279!==e&&!u(e)&&e!==V&&e!==J&&e!==q&&e!==G&&e!==Q&&e!==Z&&e!==te&&e!==ie&&e!==W&&e!==R&&e!==U&&e!==j&&e!==ne&&e!==K&&e!==$&&e!==z&&e!==H&&e!==X&&e!==ee}function p(e,t,n,i,r){var a,o,s=!1,l=!1,p=-1!==i,f=-1,m=h(e.charCodeAt(0))&&!u(e.charCodeAt(e.length-1));if(t)for(a=0;a<e.length;a++){if(o=e.charCodeAt(a),!d(o))return de;m=m&&c(o)}else{for(a=0;a<e.length;a++){if(o=e.charCodeAt(a),o===P)s=!0,p&&(l=l||a-f-1>i&&" "!==e[f+1],f=a);else if(!d(o))return de;m=m&&c(o)}l=l||p&&a-f-1>i&&" "!==e[f+1]}return s||l?" "===e[0]&&n>9?de:l?ue:le:m&&!r(e)?oe:se}function f(e,t,n,i){e.dump=function(){function r(t){return l(e,t)}if(0===t.length)return"''";if(!e.noCompatMode&&-1!==ae.indexOf(t))return"'"+t+"'";var a=e.indent*Math.max(1,n),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),u=i||e.flowLevel>-1&&n>=e.flowLevel;switch(p(t,u,e.indent,s,r)){case oe:return t;case se:return"'"+t.replace(/'/g,"''")+"'";case le:return"|"+m(t,e.indent)+g(o(t,a));case ue:return">"+m(t,e.indent)+g(o(v(t,s),a));case de:return'"'+_(t,s)+'"';default:throw new Y("impossible error: invalid scalar style")}}()}function m(e,t){var n=" "===e[0]?String(t):"",i="\n"===e[e.length-1],r=i&&("\n"===e[e.length-2]||"\n"===e),a=r?"+":i?"":"-";return n+a+"\n"}function g(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function v(e,t){for(var n,i,r=/(\n+)([^\n]*)/g,a=function(){var n=e.indexOf("\n");return n=-1!==n?n:e.length,r.lastIndex=n,y(e.slice(0,n),t)}(),o="\n"===e[0]||" "===e[0];i=r.exec(e);){var s=i[1],l=i[2];n=" "===l[0],a+=s+(o||n||""===l?"":"\n")+y(l,t),o=n}return a}function y(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,a=0,o=0,s=0,l="";n=r.exec(e);)s=n.index,s-a>t&&(i=o>a?o:s,l+="\n"+e.slice(a,i),a=i+1),o=s;return l+="\n",l+=e.length-a>t&&o>a?e.slice(a,o)+"\n"+e.slice(o+1):e.slice(a),l.slice(1)}function _(e){for(var t,n,i="",a=0;a<e.length;a++)t=e.charCodeAt(a),n=re[t],i+=!n&&d(t)?e[a]:n||r(t);return i}function D(e,t,n){var i,r,a="",o=e.tag;for(i=0,r=n.length;r>i;i+=1)C(e,t,n[i],!1,!1)&&(0!==i&&(a+=", "),a+=e.dump);e.tag=o,e.dump="["+a+"]"}function w(e,t,n,i){var r,a,o="",l=e.tag;for(r=0,a=n.length;a>r;r+=1)C(e,t+1,n[r],!0,!0)&&(i&&0===r||(o+=s(e,t)),o+="- "+e.dump);e.tag=l,e.dump=o||"[]"}function b(e,t,n){var i,r,a,o,s,l="",u=e.tag,d=Object.keys(n);for(i=0,r=d.length;r>i;i+=1)s="",0!==i&&(s+=", "),a=d[i],o=n[a],C(e,t,a,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+": ",C(e,t,o,!1,!1)&&(s+=e.dump,l+=s));e.tag=u,e.dump="{"+l+"}"}function L(e,t,n,i){var r,a,o,l,u,d,c="",h=e.tag,p=Object.keys(n);if(e.sortKeys===!0)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new Y("sortKeys must be a boolean or a function");for(r=0,a=p.length;a>r;r+=1)d="",i&&0===r||(d+=s(e,t)),o=p[r],l=n[o],C(e,t+1,o,!0,!0,!0)&&(u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024,u&&(d+=e.dump&&P===e.dump.charCodeAt(0)?"?":"? "),d+=e.dump,u&&(d+=s(e,t)),C(e,t+1,l,!0,u)&&(d+=e.dump&&P===e.dump.charCodeAt(0)?":":": ",d+=e.dump,c+=d));e.tag=h,e.dump=c||"{}"}function M(e,t,n){var i,r,a,o,s,l;for(r=n?e.explicitTypes:e.implicitTypes,a=0,o=r.length;o>a;a+=1)if(s=r[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(e.tag=n?s.tag:"?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===O.call(s.represent))i=s.represent(t,l);else{if(!I.call(s.represent,l))throw new Y("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');i=s.represent[l](t,l)}e.dump=i}return!0}return!1}function C(e,t,n,i,r,a){e.tag=null,e.dump=n,M(e,n,!1)||M(e,n,!0);var o=O.call(e.dump);i&&(i=e.flowLevel<0||e.flowLevel>t);var s,l,u="[object Object]"===o||"[object Array]"===o;if(u&&(s=e.duplicates.indexOf(n),l=-1!==s),(null!==e.tag&&"?"!==e.tag||l||2!==e.indent&&t>0)&&(r=!1),l&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(u&&l&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===o)i&&0!==Object.keys(e.dump).length?(L(e,t,e.dump,r),l&&(e.dump="&ref_"+s+e.dump)):(b(e,t,e.dump),l&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===o)i&&0!==e.dump.length?(w(e,t,e.dump,r),l&&(e.dump="&ref_"+s+e.dump)):(D(e,t,e.dump),l&&(e.dump="&ref_"+s+" "+e.dump));else{if("[object String]"!==o){if(e.skipInvalid)return!1;throw new Y("unacceptable kind of an object to dump "+o)}"?"!==e.tag&&f(e,e.dump,t,a)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function x(e,t){var n,i,r=[],a=[];for(k(e,r,a),n=0,i=a.length;i>n;n+=1)t.duplicates.push(r[a[n]]);t.usedDuplicates=new Array(i)}function k(e,t,n){var i,r,a;if(null!==e&&"object"==typeof e)if(r=t.indexOf(e),-1!==r)-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,a=e.length;a>r;r+=1)k(e[r],t,n);else for(i=Object.keys(e),r=0,a=i.length;a>r;r+=1)k(e[i[r]],t,n)}function T(e,t){t=t||{};var n=new a(t);return n.noRefs||x(e,n),C(n,0,e,!0,!0)?n.dump+"\n":""}function S(e,t){return T(e,E.extend({schema:F},t))}var E=n(343),Y=n(344),A=n(369),F=n(346),O=Object.prototype.toString,I=Object.prototype.hasOwnProperty,B=9,P=10,N=32,j=33,z=34,W=35,H=37,R=38,$=39,U=42,G=44,V=45,q=58,K=62,J=63,X=64,Q=91,Z=93,ee=96,te=123,ne=124,ie=125,re={};re[0]="\\0",re[7]="\\a",re[8]="\\b",re[9]="\\t",re[10]="\\n",re[11]="\\v",re[12]="\\f",re[13]="\\r",re[27]="\\e",re[34]='\\"',re[92]="\\\\",re[133]="\\N",re[160]="\\_",re[8232]="\\L",re[8233]="\\P";var ae=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],oe=1,se=2,le=3,ue=4,de=5;e.exports.dump=T,e.exports.safeDump=S},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i,r,a;/*! version : 4.15.35
=========================================================
bootstrap-datetimejs
https://github.com/Eonasdan/bootstrap-datetimepicker
Copyright (c) 2015 Jonathan Peterson
=========================================================
*/
!function(o){"use strict";r=[n(1),n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e,t){"use strict";if(!t)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var n=function(n,i){var r,a,o,s,l,u={},d=t().startOf("d"),c=d.clone(),h=!0,p=!1,f=!1,m=0,g=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],v=["days","months","years","decades"],y=["top","bottom","auto"],_=["left","right","auto"],D=["default","top","bottom"],w={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t","delete":46,46:"delete"},b={},L=function(e){if("string"!=typeof e||e.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==o.indexOf("Y");case"M":return-1!==o.indexOf("M");case"d":return-1!==o.toLowerCase().indexOf("d");case"h":case"H":return-1!==o.toLowerCase().indexOf("h");case"m":return-1!==o.indexOf("m");case"s":return-1!==o.indexOf("s");default:return!1}},M=function(){return L("h")||L("m")||L("s")},C=function(){return L("y")||L("M")||L("d")},x=function(){var t=e("<thead>").append(e("<tr>").append(e("<th>").addClass("prev").attr("data-action","previous").append(e("<span>").addClass(i.icons.previous))).append(e("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",i.calendarWeeks?"6":"5")).append(e("<th>").addClass("next").attr("data-action","next").append(e("<span>").addClass(i.icons.next)))),n=e("<tbody>").append(e("<tr>").append(e("<td>").attr("colspan",i.calendarWeeks?"8":"7")));return[e("<div>").addClass("datepicker-days").append(e("<table>").addClass("table-condensed").append(t).append(e("<tbody>"))),e("<div>").addClass("datepicker-months").append(e("<table>").addClass("table-condensed").append(t.clone()).append(n.clone())),e("<div>").addClass("datepicker-years").append(e("<table>").addClass("table-condensed").append(t.clone()).append(n.clone())),e("<div>").addClass("datepicker-decades").append(e("<table>").addClass("table-condensed").append(t.clone()).append(n.clone()))]},k=function(){var t=e("<tr>"),n=e("<tr>"),r=e("<tr>");return L("h")&&(t.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:"Increment Hour"}).addClass("btn").attr("data-action","incrementHours").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:"Pick Hour"}).attr("data-action","showHours"))),r.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:"Decrement Hour"}).addClass("btn").attr("data-action","decrementHours").append(e("<span>").addClass(i.icons.down))))),L("m")&&(L("h")&&(t.append(e("<td>").addClass("separator")),n.append(e("<td>").addClass("separator").html(":")),r.append(e("<td>").addClass("separator"))),t.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:"Increment Minute"}).addClass("btn").attr("data-action","incrementMinutes").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:"Pick Minute"}).attr("data-action","showMinutes"))),r.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:"Decrement Minute"}).addClass("btn").attr("data-action","decrementMinutes").append(e("<span>").addClass(i.icons.down))))),L("s")&&(L("m")&&(t.append(e("<td>").addClass("separator")),n.append(e("<td>").addClass("separator").html(":")),r.append(e("<td>").addClass("separator"))),t.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:"Increment Second"}).addClass("btn").attr("data-action","incrementSeconds").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:"Pick Second"}).attr("data-action","showSeconds"))),r.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:"Decrement Second"}).addClass("btn").attr("data-action","decrementSeconds").append(e("<span>").addClass(i.icons.down))))),a||(t.append(e("<td>").addClass("separator")),n.append(e("<td>").append(e("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:"Toggle Period"}))),r.append(e("<td>").addClass("separator"))),e("<div>").addClass("timepicker-picker").append(e("<table>").addClass("table-condensed").append([t,n,r]))},T=function(){var t=e("<div>").addClass("timepicker-hours").append(e("<table>").addClass("table-condensed")),n=e("<div>").addClass("timepicker-minutes").append(e("<table>").addClass("table-condensed")),i=e("<div>").addClass("timepicker-seconds").append(e("<table>").addClass("table-condensed")),r=[k()];return L("h")&&r.push(t),L("m")&&r.push(n),L("s")&&r.push(i),r},S=function(){var t=[];return i.showTodayButton&&t.push(e("<td>").append(e("<a>").attr({"data-action":"today",title:i.tooltips.today}).append(e("<span>").addClass(i.icons.today)))),!i.sideBySide&&C()&&M()&&t.push(e("<td>").append(e("<a>").attr({"data-action":"togglePicker",title:"Select Time"}).append(e("<span>").addClass(i.icons.time)))),i.showClear&&t.push(e("<td>").append(e("<a>").attr({"data-action":"clear",title:i.tooltips.clear}).append(e("<span>").addClass(i.icons.clear)))),i.showClose&&t.push(e("<td>").append(e("<a>").attr({"data-action":"close",title:i.tooltips.close}).append(e("<span>").addClass(i.icons.close)))),e("<table>").addClass("table-condensed").append(e("<tbody>").append(e("<tr>").append(t)))},E=function(){var t=e("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),n=e("<div>").addClass("datepicker").append(x()),r=e("<div>").addClass("timepicker").append(T()),o=e("<ul>").addClass("list-unstyled"),s=e("<li>").addClass("picker-switch"+(i.collapse?" accordion-toggle":"")).append(S());return i.inline&&t.removeClass("dropdown-menu"),a&&t.addClass("usetwentyfour"),L("s")&&!a&&t.addClass("wider"),i.sideBySide&&C()&&M()?(t.addClass("timepicker-sbs"),"top"===i.toolbarPlacement&&t.append(s),t.append(e("<div>").addClass("row").append(n.addClass("col-md-6")).append(r.addClass("col-md-6"))),"bottom"===i.toolbarPlacement&&t.append(s),t):("top"===i.toolbarPlacement&&o.append(s),C()&&o.append(e("<li>").addClass(i.collapse&&M()?"collapse in":"").append(n)),"default"===i.toolbarPlacement&&o.append(s),M()&&o.append(e("<li>").addClass(i.collapse&&C()?"collapse":"").append(r)),"bottom"===i.toolbarPlacement&&o.append(s),t.append(o))},Y=function(){var t,r={};return t=n.is("input")||i.inline?n.data():n.find("input").data(),t.dateOptions&&t.dateOptions instanceof Object&&(r=e.extend(!0,r,t.dateOptions)),e.each(i,function(e){var n="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==t[n]&&(r[e]=t[n])}),r},A=function(){var t,r=(p||n).position(),a=(p||n).offset(),o=i.widgetPositioning.vertical,s=i.widgetPositioning.horizontal;if(i.widgetParent)t=i.widgetParent.append(f);else if(n.is("input"))t=n.after(f).parent();else{if(i.inline)return void(t=n.append(f));t=n,n.children().first().after(f)}if("auto"===o&&(o=a.top+1.5*f.height()>=e(window).height()+e(window).scrollTop()&&f.height()+n.outerHeight()<a.top?"top":"bottom"),"auto"===s&&(s=t.width()<a.left+f.outerWidth()/2&&a.left+f.outerWidth()>e(window).width()?"right":"left"),"top"===o?f.addClass("top").removeClass("bottom"):f.addClass("bottom").removeClass("top"),"right"===s?f.addClass("pull-right"):f.removeClass("pull-right"),"relative"!==t.css("position")&&(t=t.parents().filter(function(){return"relative"===e(this).css("position")}).first()),0===t.length)throw new Error("datetimepicker component should be placed within a relative positioned container");f.css({top:"top"===o?"auto":r.top+n.outerHeight(),bottom:"top"===o?r.top+n.outerHeight():"auto",left:"left"===s?t===n?0:r.left:"auto",right:"left"===s?"auto":t.outerWidth()-n.outerWidth()-(t===n?0:r.left)})},F=function(e){"dp.change"===e.type&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||n.trigger(e)},O=function(e){"y"===e&&(e="YYYY"),F({type:"dp.update",change:e,viewDate:c.clone()})},I=function(e){f&&(e&&(l=Math.max(m,Math.min(3,l+e))),f.find(".datepicker > div").hide().filter(".datepicker-"+g[l].clsName).show())},B=function(){var t=e("<tr>"),n=c.clone().startOf("w").startOf("d");for(i.calendarWeeks===!0&&t.append(e("<th>").addClass("cw").text("#"));n.isBefore(c.clone().endOf("w"));)t.append(e("<th>").addClass("dow").text(n.format("dd"))),n.add(1,"d");f.find(".datepicker-days thead").append(t)},P=function(e){return i.disabledDates[e.format("YYYY-MM-DD")]===!0},N=function(e){return i.enabledDates[e.format("YYYY-MM-DD")]===!0},j=function(e){return i.disabledHours[e.format("H")]===!0},z=function(e){return i.enabledHours[e.format("H")]===!0},W=function(t,n){if(!t.isValid())return!1;if(i.disabledDates&&"d"===n&&P(t))return!1;if(i.enabledDates&&"d"===n&&!N(t))return!1;if(i.minDate&&t.isBefore(i.minDate,n))return!1;if(i.maxDate&&t.isAfter(i.maxDate,n))return!1;if(i.daysOfWeekDisabled&&"d"===n&&-1!==i.daysOfWeekDisabled.indexOf(t.day()))return!1;if(i.disabledHours&&("h"===n||"m"===n||"s"===n)&&j(t))return!1;if(i.enabledHours&&("h"===n||"m"===n||"s"===n)&&!z(t))return!1;if(i.disabledTimeIntervals&&("h"===n||"m"===n||"s"===n)){var r=!1;if(e.each(i.disabledTimeIntervals,function(){return t.isBetween(this[0],this[1])?(r=!0,!1):void 0}),r)return!1}return!0},H=function(){for(var t=[],n=c.clone().startOf("y").startOf("d");n.isSame(c,"y");)t.push(e("<span>").attr("data-action","selectMonth").addClass("month").text(n.format("MMM"))),n.add(1,"M");f.find(".datepicker-months td").empty().append(t)},R=function(){var t=f.find(".datepicker-months"),n=t.find("th"),r=t.find("tbody").find("span");n.eq(0).find("span").attr("title",i.tooltips.prevYear),n.eq(1).attr("title",i.tooltips.selectYear),n.eq(2).find("span").attr("title",i.tooltips.nextYear),t.find(".disabled").removeClass("disabled"),W(c.clone().subtract(1,"y"),"y")||n.eq(0).addClass("disabled"),n.eq(1).text(c.year()),W(c.clone().add(1,"y"),"y")||n.eq(2).addClass("disabled"),r.removeClass("active"),d.isSame(c,"y")&&!h&&r.eq(d.month()).addClass("active"),r.each(function(t){W(c.clone().month(t),"M")||e(this).addClass("disabled")})},$=function(){var e=f.find(".datepicker-years"),t=e.find("th"),n=c.clone().subtract(5,"y"),r=c.clone().add(6,"y"),a="";for(t.eq(0).find("span").attr("title",i.tooltips.nextDecade),t.eq(1).attr("title",i.tooltips.selectDecade),t.eq(2).find("span").attr("title",i.tooltips.prevDecade),e.find(".disabled").removeClass("disabled"),i.minDate&&i.minDate.isAfter(n,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(n.year()+"-"+r.year()),i.maxDate&&i.maxDate.isBefore(r,"y")&&t.eq(2).addClass("disabled");!n.isAfter(r,"y");)a+='<span data-action="selectYear" class="year'+(n.isSame(d,"y")&&!h?" active":"")+(W(n,"y")?"":" disabled")+'">'+n.year()+"</span>",n.add(1,"y");e.find("td").html(a)},U=function(){var e=f.find(".datepicker-decades"),n=e.find("th"),r=t(c.isBefore(t({y:1999}))?{y:1899}:{y:1999}),a=r.clone().add(100,"y"),o="";for(n.eq(0).find("span").attr("title",i.tooltips.prevCentury),n.eq(2).find("span").attr("title",i.tooltips.nextCentury),e.find(".disabled").removeClass("disabled"),(r.isSame(t({y:1900}))||i.minDate&&i.minDate.isAfter(r,"y"))&&n.eq(0).addClass("disabled"),n.eq(1).text(r.year()+"-"+a.year()),(r.isSame(t({y:2e3}))||i.maxDate&&i.maxDate.isBefore(a,"y"))&&n.eq(2).addClass("disabled");!r.isAfter(a,"y");)o+='<span data-action="selectDecade" class="decade'+(r.isSame(d,"y")?" active":"")+(W(r,"y")?"":" disabled")+'" data-selection="'+(r.year()+6)+'">'+(r.year()+1)+" - "+(r.year()+12)+"</span>",r.add(12,"y");o+="<span></span><span></span><span></span>",e.find("td").html(o)},G=function(){var n,r,a,o,s=f.find(".datepicker-days"),l=s.find("th"),u=[];if(C()){for(l.eq(0).find("span").attr("title",i.tooltips.prevMonth),l.eq(1).attr("title",i.tooltips.selectMonth),l.eq(2).find("span").attr("title",i.tooltips.nextMonth),s.find(".disabled").removeClass("disabled"),l.eq(1).text(c.format(i.dayViewHeaderFormat)),W(c.clone().subtract(1,"M"),"M")||l.eq(0).addClass("disabled"),W(c.clone().add(1,"M"),"M")||l.eq(2).addClass("disabled"),n=c.clone().startOf("M").startOf("w").startOf("d"),o=0;42>o;o++)0===n.weekday()&&(r=e("<tr>"),i.calendarWeeks&&r.append('<td class="cw">'+n.week()+"</td>"),u.push(r)),a="",n.isBefore(c,"M")&&(a+=" old"),n.isAfter(c,"M")&&(a+=" new"),n.isSame(d,"d")&&!h&&(a+=" active"),W(n,"d")||(a+=" disabled"),n.isSame(t(),"d")&&(a+=" today"),0!==n.day()&&6!==n.day()||(a+=" weekend"),r.append('<td data-action="selectDay" data-day="'+n.format("L")+'" class="day'+a+'">'+n.date()+"</td>"),n.add(1,"d");s.find("tbody").empty().append(u),R(),$(),U()}},V=function(){var t=f.find(".timepicker-hours table"),n=c.clone().startOf("d"),i=[],r=e("<tr>");for(c.hour()>11&&!a&&n.hour(12);n.isSame(c,"d")&&(a||c.hour()<12&&n.hour()<12||c.hour()>11);)n.hour()%4===0&&(r=e("<tr>"),i.push(r)),r.append('<td data-action="selectHour" class="hour'+(W(n,"h")?"":" disabled")+'">'+n.format(a?"HH":"hh")+"</td>"),n.add(1,"h");t.empty().append(i)},q=function(){for(var t=f.find(".timepicker-minutes table"),n=c.clone().startOf("h"),r=[],a=e("<tr>"),o=1===i.stepping?5:i.stepping;c.isSame(n,"h");)n.minute()%(4*o)===0&&(a=e("<tr>"),r.push(a)),a.append('<td data-action="selectMinute" class="minute'+(W(n,"m")?"":" disabled")+'">'+n.format("mm")+"</td>"),n.add(o,"m");t.empty().append(r)},K=function(){for(var t=f.find(".timepicker-seconds table"),n=c.clone().startOf("m"),i=[],r=e("<tr>");c.isSame(n,"m");)n.second()%20===0&&(r=e("<tr>"),i.push(r)),r.append('<td data-action="selectSecond" class="second'+(W(n,"s")?"":" disabled")+'">'+n.format("ss")+"</td>"),n.add(5,"s");t.empty().append(i)},J=function(){var e,t,n=f.find(".timepicker span[data-time-component]");a||(e=f.find(".timepicker [data-action=togglePeriod]"),t=d.clone().add(d.hours()>=12?-12:12,"h"),e.text(d.format("A")),W(t,"h")?e.removeClass("disabled"):e.addClass("disabled")),n.filter("[data-time-component=hours]").text(d.format(a?"HH":"hh")),n.filter("[data-time-component=minutes]").text(d.format("mm")),n.filter("[data-time-component=seconds]").text(d.format("ss")),V(),q(),K()},X=function(){f&&(G(),J())},Q=function(e){var t=h?null:d;return e?(e=e.clone().locale(i.locale),1!==i.stepping&&e.minutes(Math.round(e.minutes()/i.stepping)*i.stepping%60).seconds(0),void(W(e)?(d=e,c=d.clone(),r.val(d.format(o)),n.data("date",d.format(o)),h=!1,X(),F({type:"dp.change",date:d.clone(),oldDate:t})):(i.keepInvalid||r.val(h?"":d.format(o)),F({type:"dp.error",date:e})))):(h=!0,r.val(""),n.data("date",""),F({type:"dp.change",date:!1,oldDate:t}),void X())},Z=function(){var t=!1;return f?(f.find(".collapse").each(function(){var n=e(this).data("collapse");return n&&n.transitioning?(t=!0,!1):!0}),t?u:(p&&p.hasClass("btn")&&p.toggleClass("active"),f.hide(),e(window).off("resize",A),f.off("click","[data-action]"),f.off("mousedown",!1),f.remove(),f=!1,F({type:"dp.hide",date:d.clone()}),r.blur(),u)):u},ee=function(){Q(null)},te={next:function(){var e=g[l].navFnc;c.add(g[l].navStep,e),G(),O(e)},previous:function(){var e=g[l].navFnc;c.subtract(g[l].navStep,e),G(),O(e)},pickerSwitch:function(){I(1)},selectMonth:function(t){var n=e(t.target).closest("tbody").find("span").index(e(t.target));c.month(n),l===m?(Q(d.clone().year(c.year()).month(c.month())),i.inline||Z()):(I(-1),G()),O("M")},selectYear:function(t){var n=parseInt(e(t.target).text(),10)||0;c.year(n),l===m?(Q(d.clone().year(c.year())),i.inline||Z()):(I(-1),G()),O("YYYY")},selectDecade:function(t){var n=parseInt(e(t.target).data("selection"),10)||0;c.year(n),l===m?(Q(d.clone().year(c.year())),i.inline||Z()):(I(-1),G()),O("YYYY")},selectDay:function(t){var n=c.clone();e(t.target).is(".old")&&n.subtract(1,"M"),e(t.target).is(".new")&&n.add(1,"M"),Q(n.date(parseInt(e(t.target).text(),10))),M()||i.keepOpen||i.inline||Z()},incrementHours:function(){var e=d.clone().add(1,"h");W(e,"h")&&Q(e)},incrementMinutes:function(){var e=d.clone().add(i.stepping,"m");W(e,"m")&&Q(e)},incrementSeconds:function(){var e=d.clone().add(1,"s");W(e,"s")&&Q(e)},decrementHours:function(){var e=d.clone().subtract(1,"h");W(e,"h")&&Q(e)},decrementMinutes:function(){var e=d.clone().subtract(i.stepping,"m");W(e,"m")&&Q(e)},decrementSeconds:function(){var e=d.clone().subtract(1,"s");W(e,"s")&&Q(e)},togglePeriod:function(){Q(d.clone().add(d.hours()>=12?-12:12,"h"))},togglePicker:function(t){var n,r=e(t.target),a=r.closest("ul"),o=a.find(".in"),s=a.find(".collapse:not(.in)");if(o&&o.length){if(n=o.data("collapse"),n&&n.transitioning)return;o.collapse?(o.collapse("hide"),s.collapse("show")):(o.removeClass("in"),s.addClass("in")),r.is("span")?r.toggleClass(i.icons.time+" "+i.icons.date):r.find("span").toggleClass(i.icons.time+" "+i.icons.date)}},showPicker:function(){f.find(".timepicker > div:not(.timepicker-picker)").hide(),f.find(".timepicker .timepicker-picker").show()},showHours:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-hours").show()},showMinutes:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var n=parseInt(e(t.target).text(),10);a||(d.hours()>=12?12!==n&&(n+=12):12===n&&(n=0)),Q(d.clone().hours(n)),te.showPicker.call(u)},selectMinute:function(t){Q(d.clone().minutes(parseInt(e(t.target).text(),10))),te.showPicker.call(u)},selectSecond:function(t){Q(d.clone().seconds(parseInt(e(t.target).text(),10))),te.showPicker.call(u)},clear:ee,today:function(){W(t(),"d")&&Q(t())},close:Z},ne=function(t){return e(t.currentTarget).is(".disabled")?!1:(te[e(t.currentTarget).data("action")].apply(u,arguments),!1)},ie=function(){var n,a={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}};return r.prop("disabled")||!i.ignoreReadonly&&r.prop("readonly")||f?u:(void 0!==r.val()&&0!==r.val().trim().length?Q(ae(r.val().trim())):i.useCurrent&&h&&(r.is("input")&&0===r.val().trim().length||i.inline)&&(n=t(),"string"==typeof i.useCurrent&&(n=a[i.useCurrent](n)),Q(n)),f=E(),B(),H(),f.find(".timepicker-hours").hide(),f.find(".timepicker-minutes").hide(),f.find(".timepicker-seconds").hide(),X(),I(),e(window).on("resize",A),f.on("click","[data-action]",ne),f.on("mousedown",!1),p&&p.hasClass("btn")&&p.toggleClass("active"),f.show(),A(),i.focusOnShow&&!r.is(":focus")&&r.focus(),F({type:"dp.show"}),u)},re=function(){return f?Z():ie()},ae=function(e){return e=void 0===i.parseInputDate?t.isMoment(e)||e instanceof Date?t(e):t(e,s,i.useStrict):i.parseInputDate(e),e.locale(i.locale),e},oe=function(e){var t,n,r,a,o=null,s=[],l={},d=e.which,c="p";b[d]=c;for(t in b)b.hasOwnProperty(t)&&b[t]===c&&(s.push(t),parseInt(t,10)!==d&&(l[t]=!0));for(t in i.keyBinds)if(i.keyBinds.hasOwnProperty(t)&&"function"==typeof i.keyBinds[t]&&(r=t.split(" "),r.length===s.length&&w[d]===r[r.length-1])){for(a=!0,n=r.length-2;n>=0;n--)if(!(w[r[n]]in l)){a=!1;break}if(a){o=i.keyBinds[t];break}}o&&(o.call(u,f),e.stopPropagation(),e.preventDefault())},se=function(e){b[e.which]="r",e.stopPropagation(),e.preventDefault()},le=function(t){var n=e(t.target).val().trim(),i=n?ae(n):null;return Q(i),t.stopImmediatePropagation(),!1},ue=function(){r.on({change:le,blur:i.debug?"":Z,keydown:oe,keyup:se,focus:i.allowInputToggle?ie:""}),n.is("input")?r.on({focus:ie}):p&&(p.on("click",re),p.on("mousedown",!1))},de=function(){r.off({change:le,blur:blur,keydown:oe,keyup:se,focus:i.allowInputToggle?Z:""}),n.is("input")?r.off({focus:ie}):p&&(p.off("click",re),p.off("mousedown",!1))},ce=function(t){var n={};return e.each(t,function(){var e=ae(this);e.isValid()&&(n[e.format("YYYY-MM-DD")]=!0)}),Object.keys(n).length?n:!1},he=function(t){var n={};return e.each(t,function(){n[this]=!0}),Object.keys(n).length?n:!1},pe=function(){var e=i.format||"L LT";o=e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){var t=d.localeData().longDateFormat(e)||e;return t.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return d.localeData().longDateFormat(e)||e})}),s=i.extraFormats?i.extraFormats.slice():[],s.indexOf(e)<0&&s.indexOf(o)<0&&s.push(o),a=o.toLowerCase().indexOf("a")<1&&o.replace(/\[.*?\]/g,"").indexOf("h")<1,L("y")&&(m=2),L("M")&&(m=1),L("d")&&(m=0),l=Math.max(m,l),h||Q(d)};if(u.destroy=function(){Z(),de(),n.removeData("DateTimePicker"),n.removeData("date")},u.toggle=re,u.show=ie,u.hide=Z,u.disable=function(){return Z(),p&&p.hasClass("btn")&&p.addClass("disabled"),r.prop("disabled",!0),u},u.enable=function(){return p&&p.hasClass("btn")&&p.removeClass("disabled"),r.prop("disabled",!1),u},u.ignoreReadonly=function(e){if(0===arguments.length)return i.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");return i.ignoreReadonly=e,u},u.options=function(t){if(0===arguments.length)return e.extend(!0,{},i);if(!(t instanceof Object))throw new TypeError("options() options parameter should be an object");return e.extend(!0,i,t),e.each(i,function(e,t){if(void 0===u[e])throw new TypeError("option "+e+" is not recognized!");u[e](t)}),u},u.date=function(e){if(0===arguments.length)return h?null:d.clone();if(!(null===e||"string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return Q(null===e?null:ae(e)),u},u.format=function(e){if(0===arguments.length)return i.format;if("string"!=typeof e&&("boolean"!=typeof e||e!==!1))throw new TypeError("format() expects a sting or boolean:false parameter "+e);return i.format=e,o&&pe(),u},u.dayViewHeaderFormat=function(e){if(0===arguments.length)return i.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return i.dayViewHeaderFormat=e,u},u.extraFormats=function(e){if(0===arguments.length)return i.extraFormats;if(e!==!1&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return i.extraFormats=e,s&&pe(),u},u.disabledDates=function(t){if(0===arguments.length)return i.disabledDates?e.extend({},i.disabledDates):i.disabledDates;if(!t)return i.disabledDates=!1,X(),u;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return i.disabledDates=ce(t),i.enabledDates=!1,X(),u},u.enabledDates=function(t){if(0===arguments.length)return i.enabledDates?e.extend({},i.enabledDates):i.enabledDates;if(!t)return i.enabledDates=!1,X(),u;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return i.enabledDates=ce(t),i.disabledDates=!1,X(),u},u.daysOfWeekDisabled=function(e){if(0===arguments.length)return i.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return i.daysOfWeekDisabled=!1,X(),u;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(i.daysOfWeekDisabled=e.reduce(function(e,t){return t=parseInt(t,10),t>6||0>t||isNaN(t)?e:(-1===e.indexOf(t)&&e.push(t),e)},[]).sort(),i.useCurrent&&!i.keepInvalid){for(var t=0;!W(d,"d");){if(d.add(1,"d"),7===t)throw"Tried 7 times to find a valid date";t++}Q(d)}return X(),u},u.maxDate=function(e){if(0===arguments.length)return i.maxDate?i.maxDate.clone():i.maxDate;if("boolean"==typeof e&&e===!1)return i.maxDate=!1,X(),u;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=t()));var n=ae(e);if(!n.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(i.minDate&&n.isBefore(i.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+n.format(o));return i.maxDate=n,i.useCurrent&&!i.keepInvalid&&d.isAfter(e)&&Q(i.maxDate),c.isAfter(n)&&(c=n.clone().subtract(i.stepping,"m")),X(),u},u.minDate=function(e){if(0===arguments.length)return i.minDate?i.minDate.clone():i.minDate;if("boolean"==typeof e&&e===!1)return i.minDate=!1,X(),u;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=t()));var n=ae(e);if(!n.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(i.maxDate&&n.isAfter(i.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+n.format(o));return i.minDate=n,i.useCurrent&&!i.keepInvalid&&d.isBefore(e)&&Q(i.minDate),c.isBefore(n)&&(c=n.clone().add(i.stepping,"m")),X(),u},u.defaultDate=function(e){if(0===arguments.length)return i.defaultDate?i.defaultDate.clone():i.defaultDate;if(!e)return i.defaultDate=!1,u;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=t()));var n=ae(e);if(!n.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!W(n))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return i.defaultDate=n,(i.defaultDate&&i.inline||""===r.val().trim()&&void 0===r.attr("placeholder"))&&Q(i.defaultDate),u},u.locale=function(e){if(0===arguments.length)return i.locale;if(!t.localeData(e))throw new TypeError("locale() locale "+e+" is not loaded from moment locales!");return i.locale=e,d.locale(i.locale),c.locale(i.locale),o&&pe(),f&&(Z(),ie()),u},u.stepping=function(e){return 0===arguments.length?i.stepping:(e=parseInt(e,10),(isNaN(e)||1>e)&&(e=1),i.stepping=e,u)},u.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return i.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&-1===t.indexOf(e.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return i.useCurrent=e,u},u.collapse=function(e){if(0===arguments.length)return i.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");return i.collapse===e?u:(i.collapse=e,f&&(Z(),ie()),u)},u.icons=function(t){if(0===arguments.length)return e.extend({},i.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return e.extend(i.icons,t),f&&(Z(),ie()),u},u.tooltips=function(t){if(0===arguments.length)return e.extend({},i.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return e.extend(i.tooltips,t),f&&(Z(),ie()),u},u.useStrict=function(e){if(0===arguments.length)return i.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");return i.useStrict=e,u},u.sideBySide=function(e){if(0===arguments.length)return i.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");return i.sideBySide=e,f&&(Z(),ie()),u},u.viewMode=function(e){if(0===arguments.length)return i.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(-1===v.indexOf(e))throw new TypeError("viewMode() parameter must be one of ("+v.join(", ")+") value");return i.viewMode=e,l=Math.max(v.indexOf(e),m),I(),u},u.toolbarPlacement=function(e){if(0===arguments.length)return i.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===D.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+D.join(", ")+") value");return i.toolbarPlacement=e,f&&(Z(),ie()),u},u.widgetPositioning=function(t){if(0===arguments.length)return e.extend({},i.widgetPositioning);if("[object Object]"!=={}.toString.call(t))throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if("string"!=typeof t.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),-1===_.indexOf(t.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+_.join(", ")+")");i.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if("string"!=typeof t.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),-1===y.indexOf(t.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+y.join(", ")+")");i.widgetPositioning.vertical=t.vertical}return X(),u},u.calendarWeeks=function(e){if(0===arguments.length)return i.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return i.calendarWeeks=e,X(),u},u.showTodayButton=function(e){if(0===arguments.length)return i.showTodayButton;if("boolean"!=typeof e)throw new TypeError("showTodayButton() expects a boolean parameter");return i.showTodayButton=e,f&&(Z(),ie()),u},u.showClear=function(e){if(0===arguments.length)return i.showClear;if("boolean"!=typeof e)throw new TypeError("showClear() expects a boolean parameter");return i.showClear=e,f&&(Z(),ie()),u},u.widgetParent=function(t){if(0===arguments.length)return i.widgetParent;if("string"==typeof t&&(t=e(t)),null!==t&&"string"!=typeof t&&!(t instanceof e))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return i.widgetParent=t,f&&(Z(),ie()),u},u.keepOpen=function(e){if(0===arguments.length)return i.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");return i.keepOpen=e,u},u.focusOnShow=function(e){if(0===arguments.length)return i.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");return i.focusOnShow=e,u},u.inline=function(e){if(0===arguments.length)return i.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");return i.inline=e,u},u.clear=function(){return ee(),u},u.keyBinds=function(e){return i.keyBinds=e,u},u.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");return i.debug=e,u},u.allowInputToggle=function(e){if(0===arguments.length)return i.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");return i.allowInputToggle=e,u},u.showClose=function(e){if(0===arguments.length)return i.showClose;if("boolean"!=typeof e)throw new TypeError("showClose() expects a boolean parameter");return i.showClose=e,u},u.keepInvalid=function(e){if(0===arguments.length)return i.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");return i.keepInvalid=e,u},u.datepickerInput=function(e){if(0===arguments.length)return i.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");return i.datepickerInput=e,u},u.parseInputDate=function(e){if(0===arguments.length)return i.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() sholud be as function");return i.parseInputDate=e,u},u.disabledTimeIntervals=function(t){if(0===arguments.length)return i.disabledTimeIntervals?e.extend({},i.disabledTimeIntervals):i.disabledTimeIntervals;if(!t)return i.disabledTimeIntervals=!1,X(),u;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return i.disabledTimeIntervals=t,X(),u},u.disabledHours=function(t){if(0===arguments.length)return i.disabledHours?e.extend({},i.disabledHours):i.disabledHours;if(!t)return i.disabledHours=!1,X(),u;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(i.disabledHours=he(t),i.enabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!W(d,"h");){if(d.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}Q(d)}return X(),u},u.enabledHours=function(t){if(0===arguments.length)return i.enabledHours?e.extend({},i.enabledHours):i.enabledHours;
if(!t)return i.enabledHours=!1,X(),u;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(i.enabledHours=he(t),i.disabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!W(d,"h");){if(d.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}Q(d)}return X(),u},u.viewDate=function(e){if(0===arguments.length)return c.clone();if(!e)return c=d.clone(),u;if(!("string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return c=ae(e),O(),u},n.is("input"))r=n;else if(r=n.find(i.datepickerInput),0===r.size())r=n.find("input");else if(!r.is("input"))throw new Error('CSS class "'+i.datepickerInput+'" cannot be applied to non input element');if(n.hasClass("input-group")&&(p=0===n.find(".datepickerbutton").size()?n.find(".input-group-addon"):n.find(".datepickerbutton")),!i.inline&&!r.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return e.extend(!0,i,Y()),u.options(i),pe(),ue(),r.prop("disabled")&&u.disable(),r.is("input")&&0!==r.val().trim().length?Q(ae(r.val().trim())):i.defaultDate&&void 0===r.attr("placeholder")&&Q(i.defaultDate),i.inline&&ie(),u};e.fn.datetimepicker=function(t){return this.each(function(){var i=e(this);i.data("DateTimePicker")||(t=e.extend(!0,{},e.fn.datetimepicker.defaults,t),i.data("DateTimePicker",n(i,t)))})},e.fn.datetimepicker.defaults={format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:t.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")?this.date(n.clone().subtract(7,"d")):this.date(n.clone().add(this.stepping(),"m"))}},down:function(e){if(!e)return void this.show();var n=this.date()||t();e.find(".datepicker").is(":visible")?this.date(n.clone().add(7,"d")):this.date(n.clone().subtract(this.stepping(),"m"))},"control up":function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")?this.date(n.clone().subtract(1,"y")):this.date(n.clone().add(1,"h"))}},"control down":function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")?this.date(n.clone().add(1,"y")):this.date(n.clone().subtract(1,"h"))}},left:function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")&&this.date(n.clone().subtract(1,"d"))}},right:function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")&&this.date(n.clone().add(1,"d"))}},pageUp:function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")&&this.date(n.clone().subtract(1,"M"))}},pageDown:function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")&&this.date(n.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(e){e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(t())},"delete":function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1}})},function(e,t,n){var i;(function(e,r){//! moment.js
//! version : 2.8.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(a){function o(e,t,n){switch(arguments.length){case 2:return null!=e?e:t;case 3:return null!=e?e:null!=t?t:n;default:throw new Error("Implement me")}}function s(e,t){return Ee.call(e,t)}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function u(e){Me.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function d(e,t){var n=!0;return v(function(){return n&&(u(e),n=!1),t.apply(this,arguments)},t)}function c(e,t){wt[e]||(u(t),wt[e]=!0)}function h(e,t){return function(n){return D(e.call(this,n),t)}}function p(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}function f(){}function m(e,t){t!==!1&&B(e),y(this,e),this._d=new Date(+e._d)}function g(e){var t=S(e),n=t.year||0,i=t.quarter||0,r=t.month||0,a=t.week||0,o=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._milliseconds=+d+1e3*u+6e4*l+36e5*s,this._days=+o+7*a,this._months=+r+3*i+12*n,this._data={},this._locale=Me.localeData(),this._bubble()}function v(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function y(e,t){var n,i,r;if("undefined"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(e._i=t._i),"undefined"!=typeof t._f&&(e._f=t._f),"undefined"!=typeof t._l&&(e._l=t._l),"undefined"!=typeof t._strict&&(e._strict=t._strict),"undefined"!=typeof t._tzm&&(e._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(e._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(e._offset=t._offset),"undefined"!=typeof t._pf&&(e._pf=t._pf),"undefined"!=typeof t._locale&&(e._locale=t._locale),je.length>0)for(n in je)i=je[n],r=t[i],"undefined"!=typeof r&&(e[i]=r);return e}function _(e){return 0>e?Math.ceil(e):Math.floor(e)}function D(e,t,n){for(var i=""+Math.abs(e),r=e>=0;i.length<t;)i="0"+i;return(r?n?"+":"":"-")+i}function w(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function b(e,t){var n;return t=W(t,e),e.isBefore(t)?n=w(e,t):(n=w(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function L(e,t){return function(n,i){var r,a;return null===i||isNaN(+i)||(c(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),a=n,n=i,i=a),n="string"==typeof n?+n:n,r=Me.duration(n,i),M(this,r,e),this}}function M(e,t,n,i){var r=t._milliseconds,a=t._days,o=t._months;i=null==i?!0:i,r&&e._d.setTime(+e._d+r*n),a&&ye(e,"Date",ve(e,"Date")+a*n),o&&ge(e,ve(e,"Month")+o*n),i&&Me.updateOffset(e,a||o)}function C(e){return"[object Array]"===Object.prototype.toString.call(e)}function x(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function k(e,t,n){var i,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(i=0;r>i;i++)(n&&e[i]!==t[i]||!n&&Y(e[i])!==Y(t[i]))&&o++;return o+a}function T(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,"$1");e=ft[e]||mt[t]||t}return e}function S(e){var t,n,i={};for(n in e)s(e,n)&&(t=T(n),t&&(i[t]=e[n]));return i}function E(e){var t,n;if(0===e.indexOf("week"))t=7,n="day";else{if(0!==e.indexOf("month"))return;t=12,n="month"}Me[e]=function(i,r){var o,s,l=Me._locale[e],u=[];if("number"==typeof i&&(r=i,i=a),s=function(e){var t=Me().utc().set(n,e);return l.call(Me._locale,t,i||"")},null!=r)return s(r);for(o=0;t>o;o++)u.push(s(o));return u}}function Y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function A(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function F(e,t,n){return he(Me([e,11,31+t-n]),t,n).week}function O(e){return I(e)?366:365}function I(e){return e%4===0&&e%100!==0||e%400===0}function B(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[Ae]<0||e._a[Ae]>11?Ae:e._a[Fe]<1||e._a[Fe]>A(e._a[Ye],e._a[Ae])?Fe:e._a[Oe]<0||e._a[Oe]>24||24===e._a[Oe]&&(0!==e._a[Ie]||0!==e._a[Be]||0!==e._a[Pe])?Oe:e._a[Ie]<0||e._a[Ie]>59?Ie:e._a[Be]<0||e._a[Be]>59?Be:e._a[Pe]<0||e._a[Pe]>999?Pe:-1,e._pf._overflowDayOfYear&&(Ye>t||t>Fe)&&(t=Fe),e._pf.overflow=t)}function P(e){return null==e._isValid&&(e._isValid=!isNaN(e._d.getTime())&&e._pf.overflow<0&&!e._pf.empty&&!e._pf.invalidMonth&&!e._pf.nullInput&&!e._pf.invalidFormat&&!e._pf.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===e._pf.charsLeftOver&&0===e._pf.unusedTokens.length&&e._pf.bigHour===a)),e._isValid}function N(e){return e?e.toLowerCase().replace("_","-"):e}function j(e){for(var t,n,i,r,a=0;a<e.length;){for(r=N(e[a]).split("-"),t=r.length,n=N(e[a+1]),n=n?n.split("-"):null;t>0;){if(i=z(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&k(r,n,!0)>=t-1)break;t--}a++}return null}function z(e){var t=null;if(!Ne[e]&&ze)try{t=Me.locale(),n(416)("./"+e),Me.locale(t)}catch(i){}return Ne[e]}function W(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(Me.isMoment(e)||x(e)?+e:+Me(e))-+n,n._d.setTime(+n._d+i),Me.updateOffset(n,!1),n):Me(e).local()}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function R(e){var t,n,i=e.match($e);for(t=0,n=i.length;n>t;t++)Dt[i[t]]?i[t]=Dt[i[t]]:i[t]=H(i[t]);return function(r){var a="";for(t=0;n>t;t++)a+=i[t]instanceof Function?i[t].call(r,e):i[t];return a}}function $(e,t){return e.isValid()?(t=U(t,e.localeData()),gt[t]||(gt[t]=R(t)),gt[t](e)):e.localeData().invalidDate()}function U(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Ue.lastIndex=0;i>=0&&Ue.test(e);)e=e.replace(Ue,n),Ue.lastIndex=0,i-=1;return e}function G(e,t){var n,i=t._strict;switch(e){case"Q":return nt;case"DDDD":return rt;case"YYYY":case"GGGG":case"gggg":return i?at:qe;case"Y":case"G":case"g":return st;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?ot:Ke;case"S":if(i)return nt;case"SS":if(i)return it;case"SSS":if(i)return rt;case"DDD":return Ve;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Xe;case"a":case"A":return t._locale._meridiemParse;case"x":return et;case"X":return tt;case"Z":case"ZZ":return Qe;case"T":return Ze;case"SSSS":return Je;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?it:Ge;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Ge;case"Do":return i?t._locale._ordinalParse:t._locale._ordinalParseLenient;default:return n=new RegExp(te(ee(e.replace("\\","")),"i"))}}function V(e){e=e||"";var t=e.match(Qe)||[],n=t[t.length-1]||[],i=(n+"").match(ht)||["-",0,0],r=+(60*i[1])+Y(i[2]);return"+"===i[0]?-r:r}function q(e,t,n){var i,r=n._a;switch(e){case"Q":null!=t&&(r[Ae]=3*(Y(t)-1));break;case"M":case"MM":null!=t&&(r[Ae]=Y(t)-1);break;case"MMM":case"MMMM":i=n._locale.monthsParse(t,e,n._strict),null!=i?r[Ae]=i:n._pf.invalidMonth=t;break;case"D":case"DD":null!=t&&(r[Fe]=Y(t));break;case"Do":null!=t&&(r[Fe]=Y(parseInt(t.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=t&&(n._dayOfYear=Y(t));break;case"YY":r[Ye]=Me.parseTwoDigitYear(t);break;case"YYYY":case"YYYYY":case"YYYYYY":r[Ye]=Y(t);break;case"a":case"A":n._isPm=n._locale.isPM(t);break;case"h":case"hh":n._pf.bigHour=!0;case"H":case"HH":r[Oe]=Y(t);break;case"m":case"mm":r[Ie]=Y(t);break;case"s":case"ss":r[Be]=Y(t);break;case"S":case"SS":case"SSS":case"SSSS":r[Pe]=Y(1e3*("0."+t));break;case"x":n._d=new Date(Y(t));break;case"X":n._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=V(t);break;case"dd":case"ddd":case"dddd":i=n._locale.weekdaysParse(t),null!=i?(n._w=n._w||{},n._w.d=i):n._pf.invalidWeekday=t;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":e=e.substr(0,1);case"gggg":case"GGGG":case"GGGGG":e=e.substr(0,2),t&&(n._w=n._w||{},n._w[e]=Y(t));break;case"gg":case"GG":n._w=n._w||{},n._w[e]=Me.parseTwoDigitYear(t)}}function K(e){var t,n,i,r,a,s,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(a=1,s=4,n=o(t.GG,e._a[Ye],he(Me(),1,4).year),i=o(t.W,1),r=o(t.E,1)):(a=e._locale._week.dow,s=e._locale._week.doy,n=o(t.gg,e._a[Ye],he(Me(),a,s).year),i=o(t.w,1),null!=t.d?(r=t.d,a>r&&++i):r=null!=t.e?t.e+a:a),l=pe(n,i,r,s,a),e._a[Ye]=l.year,e._dayOfYear=l.dayOfYear}function J(e){var t,n,i,r,a=[];if(!e._d){for(i=Q(e),e._w&&null==e._a[Fe]&&null==e._a[Ae]&&K(e),e._dayOfYear&&(r=o(e._a[Ye],i[Ye]),e._dayOfYear>O(r)&&(e._pf._overflowDayOfYear=!0),n=le(r,0,e._dayOfYear),e._a[Ae]=n.getUTCMonth(),e._a[Fe]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;7>t;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Oe]&&0===e._a[Ie]&&0===e._a[Be]&&0===e._a[Pe]&&(e._nextDay=!0,e._a[Oe]=0),e._d=(e._useUTC?le:se).apply(null,a),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()+e._tzm),e._nextDay&&(e._a[Oe]=24)}}function X(e){var t;e._d||(t=S(e._i),e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],J(e))}function Q(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Z(e){if(e._f===Me.ISO_8601)return void ie(e);e._a=[],e._pf.empty=!0;var t,n,i,r,o,s=""+e._i,l=s.length,u=0;for(i=U(e._f,e._locale).match($e)||[],t=0;t<i.length;t++)r=i[t],n=(s.match(G(r,e))||[])[0],n&&(o=s.substr(0,s.indexOf(n)),o.length>0&&e._pf.unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),u+=n.length),Dt[r]?(n?e._pf.empty=!1:e._pf.unusedTokens.push(r),q(r,n,e)):e._strict&&!n&&e._pf.unusedTokens.push(r);e._pf.charsLeftOver=l-u,s.length>0&&e._pf.unusedInput.push(s),e._pf.bigHour===!0&&e._a[Oe]<=12&&(e._pf.bigHour=a),e._isPm&&e._a[Oe]<12&&(e._a[Oe]+=12),e._isPm===!1&&12===e._a[Oe]&&(e._a[Oe]=0),J(e),B(e)}function ee(e){return e.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e){var t,n,i,r,a;if(0===e._f.length)return e._pf.invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)a=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._pf=l(),t._f=e._f[r],Z(t),P(t)&&(a+=t._pf.charsLeftOver,a+=10*t._pf.unusedTokens.length,t._pf.score=a,(null==i||i>a)&&(i=a,n=t));v(e,n||t)}function ie(e){var t,n,i=e._i,r=lt.exec(i);if(r){for(e._pf.iso=!0,t=0,n=dt.length;n>t;t++)if(dt[t][1].exec(i)){e._f=dt[t][0]+(r[6]||" ");break}for(t=0,n=ct.length;n>t;t++)if(ct[t][1].exec(i)){e._f+=ct[t][0];break}i.match(Qe)&&(e._f+="Z"),Z(e)}else e._isValid=!1}function re(e){ie(e),e._isValid===!1&&(delete e._isValid,Me.createFromInputFallback(e))}function ae(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function oe(e){var t,n=e._i;n===a?e._d=new Date:x(n)?e._d=new Date(+n):null!==(t=We.exec(n))?e._d=new Date(+t[1]):"string"==typeof n?re(e):C(n)?(e._a=ae(n.slice(0),function(e){return parseInt(e,10)}),J(e)):"object"==typeof n?X(e):"number"==typeof n?e._d=new Date(n):Me.createFromInputFallback(e)}function se(e,t,n,i,r,a,o){var s=new Date(e,t,n,i,r,a,o);return 1970>e&&s.setFullYear(e),s}function le(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function ue(e,t){if("string"==typeof e)if(isNaN(e)){if(e=t.weekdaysParse(e),"number"!=typeof e)return null}else e=parseInt(e,10);return e}function de(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function ce(e,t,n){var i=Me.duration(e).abs(),r=Se(i.as("s")),a=Se(i.as("m")),o=Se(i.as("h")),s=Se(i.as("d")),l=Se(i.as("M")),u=Se(i.as("y")),d=r<vt.s&&["s",r]||1===a&&["m"]||a<vt.m&&["mm",a]||1===o&&["h"]||o<vt.h&&["hh",o]||1===s&&["d"]||s<vt.d&&["dd",s]||1===l&&["M"]||l<vt.M&&["MM",l]||1===u&&["y"]||["yy",u];return d[2]=t,d[3]=+e>0,d[4]=n,de.apply({},d)}function he(e,t,n){var i,r=n-t,a=n-e.day();return a>r&&(a-=7),r-7>a&&(a+=7),i=Me(e).add(a,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function pe(e,t,n,i,r){var a,o,s=le(e,0,1).getUTCDay();return s=0===s?7:s,n=null!=n?n:r,a=r-s+(s>i?7:0)-(r>s?7:0),o=7*(t-1)+(n-r)+a+1,{year:o>0?e:e-1,dayOfYear:o>0?o:O(e-1)+o}}function fe(e){var t,n=e._i,i=e._f;return e._locale=e._locale||Me.localeData(e._l),null===n||i===a&&""===n?Me.invalid({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),Me.isMoment(n)?new m(n,!0):(i?C(i)?ne(e):Z(e):oe(e),t=new m(e),t._nextDay&&(t.add(1,"d"),t._nextDay=a),t))}function me(e,t){var n,i;if(1===t.length&&C(t[0])&&(t=t[0]),!t.length)return Me();for(n=t[0],i=1;i<t.length;++i)t[i][e](n)&&(n=t[i]);return n}function ge(e,t){var n;return"string"==typeof t&&(t=e.localeData().monthsParse(t),"number"!=typeof t)?e:(n=Math.min(e.date(),A(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e)}function ve(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function ye(e,t,n){return"Month"===t?ge(e,n):e._d["set"+(e._isUTC?"UTC":"")+t](n)}function _e(e,t){return function(n){return null!=n?(ye(this,e,n),Me.updateOffset(this,t),this):ve(this,e)}}function De(e){return 400*e/146097}function we(e){return 146097*e/400}function be(e){Me.duration.fn[e]=function(){return this._data[e]}}function Le(e){"undefined"==typeof ender&&(Ce=Te.moment,e?Te.moment=d("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",Me):Te.moment=Me)}for(var Me,Ce,xe,ke="2.8.4",Te="undefined"!=typeof e?e:this,Se=Math.round,Ee=Object.prototype.hasOwnProperty,Ye=0,Ae=1,Fe=2,Oe=3,Ie=4,Be=5,Pe=6,Ne={},je=[],ze="undefined"!=typeof r&&r&&r.exports,We=/^\/?Date\((\-?\d+)/i,He=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Re=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,$e=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Ue=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ge=/\d\d?/,Ve=/\d{1,3}/,qe=/\d{1,4}/,Ke=/[+\-]?\d{1,6}/,Je=/\d+/,Xe=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Qe=/Z|[\+\-]\d\d:?\d\d/gi,Ze=/T/i,et=/[\+\-]?\d+/,tt=/[\+\-]?\d+(\.\d{1,3})?/,nt=/\d/,it=/\d\d/,rt=/\d{3}/,at=/\d{4}/,ot=/[+-]?\d{6}/,st=/[+-]?\d+/,lt=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ut="YYYY-MM-DDTHH:mm:ssZ",dt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ct=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],ht=/([\+\-]|\d\d)/gi,pt=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),ft={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},mt={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},gt={},vt={s:45,m:45,h:22,d:26,M:11},yt="DDD w W M D d".split(" "),_t="M D H h m s w W".split(" "),Dt={M:function(){return this.month()+1},MMM:function(e){return this.localeData().monthsShort(this,e)},MMMM:function(e){return this.localeData().months(this,e)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(e){return this.localeData().weekdaysMin(this,e)},ddd:function(e){return this.localeData().weekdaysShort(this,e)},dddd:function(e){return this.localeData().weekdays(this,e)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return D(this.year()%100,2)},YYYY:function(){return D(this.year(),4)},YYYYY:function(){return D(this.year(),5)},YYYYYY:function(){var e=this.year(),t=e>=0?"+":"-";return t+D(Math.abs(e),6)},gg:function(){return D(this.weekYear()%100,2)},gggg:function(){return D(this.weekYear(),4)},ggggg:function(){return D(this.weekYear(),5)},GG:function(){return D(this.isoWeekYear()%100,2)},GGGG:function(){return D(this.isoWeekYear(),4)},GGGGG:function(){return D(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return Y(this.milliseconds()/100)},SS:function(){return D(Y(this.milliseconds()/10),2)},SSS:function(){return D(this.milliseconds(),3)},SSSS:function(){return D(this.milliseconds(),3)},Z:function(){var e=-this.zone(),t="+";return 0>e&&(e=-e,t="-"),t+D(Y(e/60),2)+":"+D(Y(e)%60,2)},ZZ:function(){var e=-this.zone(),t="+";return 0>e&&(e=-e,t="-"),t+D(Y(e/60),2)+D(Y(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},wt={},bt=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];yt.length;)xe=yt.pop(),Dt[xe+"o"]=p(Dt[xe],xe);for(;_t.length;)xe=_t.pop(),Dt[xe+xe]=h(Dt[xe],2);Dt.DDDD=h(Dt.DDD,3),v(f.prototype,{set:function(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(e){return this._months[e.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e,t,n){var i,r,a;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(r=Me.utc([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysParse:function(e){var t,n,i;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(n=Me([2e3,1]).day(t),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},isPM:function(e){return"p"===(e+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(e,t,n){var i=this._calendar[e];return"function"==typeof i?i.apply(t,[n]):i},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(e,t,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(e,t,n,i):r.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace("%d",e)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(e){return e},postformat:function(e){return e},week:function(e){return he(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),Me=function(e,t,n,i){var r;return"boolean"==typeof n&&(i=n,n=a),r={},r._isAMomentObject=!0,r._i=e,r._f=t,r._l=n,r._strict=i,r._isUTC=!1,r._pf=l(),fe(r)},Me.suppressDeprecationWarnings=!1,Me.createFromInputFallback=d("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),Me.min=function(){var e=[].slice.call(arguments,0);return me("isBefore",e)},Me.max=function(){var e=[].slice.call(arguments,0);return me("isAfter",e)},Me.utc=function(e,t,n,i){var r;return"boolean"==typeof n&&(i=n,n=a),r={},r._isAMomentObject=!0,r._useUTC=!0,r._isUTC=!0,r._l=n,r._i=e,r._f=t,r._strict=i,r._pf=l(),fe(r).utc()},Me.unix=function(e){return Me(1e3*e)},Me.duration=function(e,t){var n,i,r,a,o=e,l=null;return Me.isDuration(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(l=He.exec(e))?(n="-"===l[1]?-1:1,o={y:0,d:Y(l[Fe])*n,h:Y(l[Oe])*n,m:Y(l[Ie])*n,s:Y(l[Be])*n,ms:Y(l[Pe])*n}):(l=Re.exec(e))?(n="-"===l[1]?-1:1,r=function(e){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n},o={y:r(l[2]),M:r(l[3]),d:r(l[4]),h:r(l[5]),m:r(l[6]),s:r(l[7]),w:r(l[8])}):"object"==typeof o&&("from"in o||"to"in o)&&(a=b(Me(o.from),Me(o.to)),o={},o.ms=a.milliseconds,o.M=a.months),i=new g(o),Me.isDuration(e)&&s(e,"_locale")&&(i._locale=e._locale),i},Me.version=ke,Me.defaultFormat=ut,Me.ISO_8601=function(){},Me.momentProperties=je,Me.updateOffset=function(){},Me.relativeTimeThreshold=function(e,t){return vt[e]===a?!1:t===a?vt[e]:(vt[e]=t,!0)},Me.lang=d("moment.lang is deprecated. Use moment.locale instead.",function(e,t){return Me.locale(e,t)}),Me.locale=function(e,t){var n;return e&&(n="undefined"!=typeof t?Me.defineLocale(e,t):Me.localeData(e),n&&(Me.duration._locale=Me._locale=n)),Me._locale._abbr},Me.defineLocale=function(e,t){return null!==t?(t.abbr=e,Ne[e]||(Ne[e]=new f),Ne[e].set(t),Me.locale(e),Ne[e]):(delete Ne[e],null)},Me.langData=d("moment.langData is deprecated. Use moment.localeData instead.",function(e){return Me.localeData(e)}),Me.localeData=function(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Me._locale;if(!C(e)){if(t=z(e))return t;e=[e]}return j(e)},Me.isMoment=function(e){return e instanceof m||null!=e&&s(e,"_isAMomentObject")},Me.isDuration=function(e){return e instanceof g};for(xe=bt.length-1;xe>=0;--xe)E(bt[xe]);Me.normalizeUnits=function(e){return T(e)},Me.invalid=function(e){var t=Me.utc(NaN);return null!=e?v(t._pf,e):t._pf.userInvalidated=!0,t},Me.parseZone=function(){return Me.apply(null,arguments).parseZone()},Me.parseTwoDigitYear=function(e){return Y(e)+(Y(e)>68?1900:2e3)},v(Me.fn=m.prototype,{clone:function(){return Me(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var e=Me(this).utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():$(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):$(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var e=this;return[e.year(),e.month(),e.date(),e.hours(),e.minutes(),e.seconds(),e.milliseconds()]},isValid:function(){return P(this)},isDSTShifted:function(){return this._a?this.isValid()&&k(this._a,(this._isUTC?Me.utc(this._a):Me(this._a)).toArray())>0:!1},parsingFlags:function(){return v({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(e){return this.zone(0,e)},local:function(e){return this._isUTC&&(this.zone(0,e),this._isUTC=!1,e&&this.add(this._dateTzOffset(),"m")),this},format:function(e){var t=$(this,e||Me.defaultFormat);return this.localeData().postformat(t)},add:L(1,"add"),subtract:L(-1,"subtract"),diff:function(e,t,n){var i,r,a,o=W(e,this),s=6e4*(this.zone()-o.zone());return t=T(t),"year"===t||"month"===t?(i=432e5*(this.daysInMonth()+o.daysInMonth()),r=12*(this.year()-o.year())+(this.month()-o.month()),a=this-Me(this).startOf("month")-(o-Me(o).startOf("month")),a-=6e4*(this.zone()-Me(this).startOf("month").zone()-(o.zone()-Me(o).startOf("month").zone())),r+=a/i,"year"===t&&(r/=12)):(i=this-o,r="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-s)/864e5:"week"===t?(i-s)/6048e5:i),n?r:_(r)},from:function(e,t){return Me.duration({to:this,from:e}).locale(this.locale()).humanize(!t)},fromNow:function(e){return this.from(Me(),e)},calendar:function(e){var t=e||Me(),n=W(t,this).startOf("day"),i=this.diff(n,"days",!0),r=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(this.localeData().calendar(r,this,Me(t)))},isLeapYear:function(){return I(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=ue(e,this.localeData()),this.add(e-t,"d")):t},month:_e("Month",!0),startOf:function(e){switch(e=T(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e?this.weekday(0):"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(e){return e=T(e),e===a||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},isAfter:function(e,t){var n;return t=T("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=Me.isMoment(e)?e:Me(e),+this>+e):(n=Me.isMoment(e)?+e:+Me(e),n<+this.clone().startOf(t))},isBefore:function(e,t){var n;return t=T("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=Me.isMoment(e)?e:Me(e),+e>+this):(n=Me.isMoment(e)?+e:+Me(e),+this.clone().endOf(t)<n)},isSame:function(e,t){var n;return t=T(t||"millisecond"),"millisecond"===t?(e=Me.isMoment(e)?e:Me(e),+this===+e):(n=+Me(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))},min:d("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(e){return e=Me.apply(null,arguments),this>e?this:e}),max:d("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(e){return e=Me.apply(null,arguments),e>this?this:e}),zone:function(e,t){var n,i=this._offset||0;return null==e?this._isUTC?i:this._dateTzOffset():("string"==typeof e&&(e=V(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(n=this._dateTzOffset()),this._offset=e,this._isUTC=!0,null!=n&&this.subtract(n,"m"),i!==e&&(!t||this._changeInProgress?M(this,Me.duration(i-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Me.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(e){return e=e?Me(e).zone():0,(this.zone()-e)%60===0},daysInMonth:function(){return A(this.year(),this.month())},dayOfYear:function(e){var t=Se((Me(this).startOf("day")-Me(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},quarter:function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},weekYear:function(e){var t=he(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},isoWeekYear:function(e){var t=he(this,1,4).year;return null==e?t:this.add(e-t,"y")},week:function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},isoWeek:function(e){var t=he(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},weekday:function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},isoWeekday:function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return F(this.year(),1,4)},weeksInYear:function(){var e=this.localeData()._week;return F(this.year(),e.dow,e.doy)},get:function(e){return e=T(e),this[e]()},set:function(e,t){return e=T(e),"function"==typeof this[e]&&this[e](t),this},locale:function(e){var t;return e===a?this._locale._abbr:(t=Me.localeData(e),null!=t&&(this._locale=t),this)},lang:d("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===a?this.localeData():this.locale(e)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),Me.fn.millisecond=Me.fn.milliseconds=_e("Milliseconds",!1),Me.fn.second=Me.fn.seconds=_e("Seconds",!1),Me.fn.minute=Me.fn.minutes=_e("Minutes",!1),Me.fn.hour=Me.fn.hours=_e("Hours",!0),Me.fn.date=_e("Date",!0),Me.fn.dates=d("dates accessor is deprecated. Use date instead.",_e("Date",!0)),Me.fn.year=_e("FullYear",!0),Me.fn.years=d("years accessor is deprecated. Use year instead.",_e("FullYear",!0)),Me.fn.days=Me.fn.day,Me.fn.months=Me.fn.month,Me.fn.weeks=Me.fn.week,Me.fn.isoWeeks=Me.fn.isoWeek,Me.fn.quarters=Me.fn.quarter,Me.fn.toJSON=Me.fn.toISOString,v(Me.duration.fn=g.prototype,{_bubble:function(){var e,t,n,i=this._milliseconds,r=this._days,a=this._months,o=this._data,s=0;o.milliseconds=i%1e3,e=_(i/1e3),o.seconds=e%60,t=_(e/60),o.minutes=t%60,n=_(t/60),o.hours=n%24,r+=_(n/24),s=_(De(r)),r-=_(we(s)),a+=_(r/30),r%=30,s+=_(a/12),a%=12,o.days=r,o.months=a,o.years=s},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return _(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Y(this._months/12)},humanize:function(e){var t=ce(this,!e,this.localeData());return e&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(e,t){var n=Me.duration(e,t);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(e,t){var n=Me.duration(e,t);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(e){return e=T(e),this[e.toLowerCase()+"s"]()},as:function(e){var t,n;if(e=T(e),"month"===e||"year"===e)return t=this._days+this._milliseconds/864e5,n=this._months+12*De(t),"month"===e?n:n/12;switch(t=this._days+Math.round(we(this._months/12)),e){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return 24*t+this._milliseconds/36e5;case"minute":return 24*t*60+this._milliseconds/6e4;case"second":
return 24*t*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*t*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+e)}},lang:Me.fn.lang,locale:Me.fn.locale,toIsoString:d("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),i=Math.abs(this.hours()),r=Math.abs(this.minutes()),a=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(i||r||a?"T":"")+(i?i+"H":"")+(r?r+"M":"")+(a?a+"S":""):"P0D"},localeData:function(){return this._locale}}),Me.duration.fn.toString=Me.duration.fn.toISOString;for(xe in pt)s(pt,xe)&&be(xe.toLowerCase());Me.duration.fn.asMilliseconds=function(){return this.as("ms")},Me.duration.fn.asSeconds=function(){return this.as("s")},Me.duration.fn.asMinutes=function(){return this.as("m")},Me.duration.fn.asHours=function(){return this.as("h")},Me.duration.fn.asDays=function(){return this.as("d")},Me.duration.fn.asWeeks=function(){return this.as("weeks")},Me.duration.fn.asMonths=function(){return this.as("M")},Me.duration.fn.asYears=function(){return this.as("y")},Me.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===Y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),ze?r.exports=Me:(i=function(e,t,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(Te.moment=Ce),Me}.call(t,n,t,r),!(i!==a&&(r.exports=i)),Le(!0))}).call(this)}).call(t,function(){return this}(),n(335)(e))},function(e,t,n){function i(e){return n(r(e))}function r(e){return a[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var a={"./af":417,"./af.js":417,"./ar":418,"./ar-ma":419,"./ar-ma.js":419,"./ar-sa":420,"./ar-sa.js":420,"./ar.js":418,"./az":421,"./az.js":421,"./be":422,"./be.js":422,"./bg":423,"./bg.js":423,"./bn":424,"./bn.js":424,"./bo":425,"./bo.js":425,"./br":426,"./br.js":426,"./bs":427,"./bs.js":427,"./ca":428,"./ca.js":428,"./cs":429,"./cs.js":429,"./cv":430,"./cv.js":430,"./cy":431,"./cy.js":431,"./da":432,"./da.js":432,"./de":433,"./de-at":434,"./de-at.js":434,"./de.js":433,"./el":435,"./el.js":435,"./en-au":436,"./en-au.js":436,"./en-ca":437,"./en-ca.js":437,"./en-gb":438,"./en-gb.js":438,"./eo":439,"./eo.js":439,"./es":440,"./es.js":440,"./et":441,"./et.js":441,"./eu":442,"./eu.js":442,"./fa":443,"./fa.js":443,"./fi":444,"./fi.js":444,"./fo":445,"./fo.js":445,"./fr":446,"./fr-ca":447,"./fr-ca.js":447,"./fr.js":446,"./gl":448,"./gl.js":448,"./he":449,"./he.js":449,"./hi":450,"./hi.js":450,"./hr":451,"./hr.js":451,"./hu":452,"./hu.js":452,"./hy-am":453,"./hy-am.js":453,"./id":454,"./id.js":454,"./is":455,"./is.js":455,"./it":456,"./it.js":456,"./ja":457,"./ja.js":457,"./ka":458,"./ka.js":458,"./km":459,"./km.js":459,"./ko":460,"./ko.js":460,"./lb":461,"./lb.js":461,"./lt":462,"./lt.js":462,"./lv":463,"./lv.js":463,"./mk":464,"./mk.js":464,"./ml":465,"./ml.js":465,"./mr":466,"./mr.js":466,"./ms-my":467,"./ms-my.js":467,"./my":468,"./my.js":468,"./nb":469,"./nb.js":469,"./ne":470,"./ne.js":470,"./nl":471,"./nl.js":471,"./nn":472,"./nn.js":472,"./pl":473,"./pl.js":473,"./pt":474,"./pt-br":475,"./pt-br.js":475,"./pt.js":474,"./ro":476,"./ro.js":476,"./ru":477,"./ru.js":477,"./sk":478,"./sk.js":478,"./sl":479,"./sl.js":479,"./sq":480,"./sq.js":480,"./sr":481,"./sr-cyrl":482,"./sr-cyrl.js":482,"./sr.js":481,"./sv":483,"./sv.js":483,"./ta":484,"./ta.js":484,"./th":485,"./th.js":485,"./tl-ph":486,"./tl-ph.js":486,"./tr":487,"./tr.js":487,"./tzm":488,"./tzm-latn":489,"./tzm-latn.js":489,"./tzm.js":488,"./uk":490,"./uk.js":490,"./uz":491,"./uz.js":491,"./vi":492,"./vi.js":492,"./zh-cn":493,"./zh-cn.js":493,"./zh-tw":494,"./zh-tw.js":494};i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=416},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiem:function(e,t,n){return 12>e?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&10>=e%100?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,o){var s=i(t),l=r[e][i(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];return e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(e,t,n){return 12>e?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(e,t,n){return 12>e?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiem:function(e,t,n){return 4>e?"gecə":12>e?"səhər":17>e?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,i=e%100-n,r=e>=100?100:null;return e+(t[n]||t[i]||t[r])},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function n(e,n,i){var r={mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:есяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===i?n?"хвіліна":"хвіліну":"h"===i?n?"гадзіна":"гадзіну":e+" "+t(r[i],+e)}function i(e,t){var n={nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавікарасавікараўня_чэрвеня_ліпеня_жніўня_верасня_кастрычнікаістапада_снежня".split("_")},i=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[i][e.month()]}function r(e,t){var n={nominative:"нядзеля_панядзелак_аўторак_серадаацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_серадуацвер_пятніцу_суботу".split("_")},i=/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(t)?"accusative":"nominative";return n[i][e.day()]}return e.defineLocale("be",{months:i,monthsShort:"студ_лют_сак_красрав_чэрв_ліп_жнів_вераст_ліст_снеж".split("_"),weekdays:r,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiem:function(e,t,n){return 4>e?"ночы":12>e?"раніцы":17>e?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янрев_мар_апрай_юни_юли_авг_сеп_окт_ноеек".split("_"),weekdays:еделя_понеделник_вторник_срядаетвъртък_петък_събота".split("_"),weekdaysShort:ед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&20>n?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"};return e.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiem:function(e,t,n){return 4>e?"রাত":10>e?"শকাল":17>e?"দুপুর":20>e?"বিকেল":"রাত"},week:{dow:0,doy:6}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiem:function(e,t,n){return 4>e?"མཚན་མོ":10>e?"ཞོགས་ཀས":17>e?"ཉིན་གུང":20>e?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n){var i={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+r(i[n],e)}function n(e){switch(i(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function i(e){return e>9?i(e%10):e}function r(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}return e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY LT",LLLL:"dddd, D [a viz] MMMM YYYY LT"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n){var i=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return i+=1===e?"dan":"dana";case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e){return e>1&&5>e&&1!==~~(e/10)}function n(e,n,i,r){var a=e+" ";switch(i){case"s":return n||r?"pár sekund":"pár sekundami";case"m":return n?"minuta":r?"minutu":"minutou";case"mm":return n||r?a+(t(e)?"minuty":"minut"):a+"minutami";case"h":return n?"hodina":r?"hodinu":"hodinou";case"hh":return n||r?a+(t(e)?"hodiny":"hodin"):a+"hodinami";case"d":return n||r?"den":"dnem";case"dd":return n||r?a+(t(e)?"dny":"dní"):a+"dny";case"M":return n||r?"měsíc":"měsícem";case"MM":return n||r?a+(t(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return n||r?"rok":"rokem";case"yy":return n||r?a+(t(e)?"roky":"let"):a+"lety"}}var i="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),r="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return e.defineLocale("cs",{months:i,monthsShort:r,monthsParse:function(e,t){var n,i=[];for(n=0;12>n;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i}(i,r),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("cv",{months:"кăрлач_нарăс_пуш_акаай_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),monthsShort:"кăрар_пуш_акаай_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),weekdaysShort:"вырун_ытл_юн_кĕç_эрн_шăм".split("_"),weekdaysMin:р_тн_ыт_юн_кç_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",LLL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",LLLL:"dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ĕнер] LT [сехетре]",nextWeek:"[Çитес] dddd LT [сехетре]",lastWeek:"[Иртнĕ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/çул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пĕр-ик çеккунт",m:"пĕр минут",mm:"%d минут",h:"пĕр сехет",hh:"%d сехет",d:"пĕр кун",dd:"%d кун",M:"пĕр уйăх",MM:"%d уйăх",y:"пĕр çул",yy:"%d çул"},ordinalParse:/\d{1,2}-мĕш/,ordinal:"%d-мĕш",week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,n="",i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=i[t]),e+n},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd [d.] D. MMMM YYYY LT"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}return e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παραβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Παα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",
lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n=this._calendarEl[e],i=t&&t.hours();return"function"==typeof n&&(n=n.apply(t)),n.replace("{}",i%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY LT",LLLL:"dddd, D MMMM, YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY LT",LLLL:"dddd, [la] D[-an de] MMMM, YYYY LT"},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return/-MMM-/.test(i)?n[e.month()]:t[e.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}return e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] LT",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] LT",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] LT",llll:"ddd, YYYY[ko] MMM D[a] LT"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return e.defineLocale("fa",{months:انویه_فوریهارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:انویه_فوریهارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبههشنبههارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبههشنبههارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},meridiem:function(e,t,n){return 12>e?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,i,r){var a="";switch(i){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"m":return r?"minuutin":"minuutti";case"mm":a=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":a=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":a=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":a=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":a=r?"vuoden":"vuotta"}return a=n(e,r)+" "+a}function n(e,t){return 10>e?t?r[e]:i[e]:e}var i="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",i[7],i[8],i[9]];return e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] LT",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] LT",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] LT",llll:"ddd, Do MMM YYYY, [klo] LT"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D. MMMM, YYYY LT"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return"uns segundos"===e?"nuns segundos":"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יוליוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יוליוג׳_ספט׳וק׳וב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישיישי_שבת".split("_"),weekdaysShort:׳׳׳׳׳_ו׳׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY LT",LLLL:"dddd, D [ב]MMMM YYYY LT",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e+" שנים"}}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};return e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiem:function(e,t,n){return 4>e?"रात":10>e?"सुबह":17>e?"दोपहर":20>e?"शाम":"रात"},week:{dow:0,doy:6}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n){var i=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return i+=1===e?"dan":"dana";case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("hr",{months:"sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),monthsShort:"sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n,i){var r=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return r+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return r+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return r+(i||t?" év":" éve")}return""}function n(e){return(e?"":"[múlt] ")+"["+i[this.day()]+"] LT[-kor]"}var i="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D., LT",LLLL:"YYYY. MMMM D., dddd LT"},meridiem:function(e,t,n){return 12>e?n===!0?"de":"DE":n===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t){var n={nominative:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_"),accusative:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_")},i=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[i][e.month()]}function n(e,t){var n="հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_");return n[e.month()]}function i(e,t){var n="կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_");return n[e.day()]}return e.defineLocale("hy-am",{months:t,monthsShort:n,weekdays:i,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., LT",LLLL:"dddd, D MMMM YYYY թ., LT"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiem:function(e){return 4>e?"գիշերվա":12>e?"առավոտվա":17>e?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(e,t,n){return 11>e?"pagi":15>e?"siang":19>e?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e){return e%100===11?!0:e%10!==1}function n(e,n,i,r){var a=e+" ";switch(i){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||r?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||r?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(r?"daga":"dögum"):n?a+"dagur":a+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(r?"mánuði":"mánuðum"):n?a+"mánuður":a+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return t(e)?a+(n||r?"ár":"árum"):a+(n||r?"ár":"ári")}}return e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd, D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"LTs秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiem:function(e,t,n){return 12>e?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t){var n={nominative:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),accusative:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},i=/D[oD] *MMMM?/.test(t)?"accusative":"nominative";return n[i][e.month()]}function n(e,t){var n={nominative:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),accusative:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_")},i=/(წინა|შემდეგ)/.test(t)?"accusative":"nominative";return n[i][e.day()]}return e.defineLocale("ka",{months:t,monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:n,weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":20>e||100>=e&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),
weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[ថ្ងៃនៈ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 LT",LLLL:"YYYY년 MMMM D일 dddd LT"},meridiem:function(e,t,n){return 12>e?"오전":"오후"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/(오전|오후)/,isPM:function(e){return"오후"===e}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));return r(t)?"a "+e:"an "+e}function i(e){var t=e.substr(0,e.indexOf(" "));return r(t)?"viru "+e:"virun "+e}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(0>e)return!0;if(10>e)return e>=4&&7>=e;if(100>e){var t=e%10,n=e/10;return r(0===t?n:t)}if(1e4>e){for(;e>=10;)e/=10;return r(e)}return e/=1e3,r(e)}return e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:i,s:"e puer Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"}function n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10===0||e>10&&20>e}function r(e){return s[e].split("_")}function a(e,t,a,o){var s=e+" ";return 1===e?s+n(e,t,a[0],o):t?s+(i(e)?r(a)[1]:r(a)[0]):o?s+r(a)[1]:s+(i(e)?r(a)[1]:r(a)[2])}function o(e,t){var n=-1===t.indexOf("dddd HH:mm"),i=l[e.day()];return n?i:i.substring(0,i.length-2)+"į"}var s={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"},l="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_");return e.defineLocale("lt",{months:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:o,weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], LT [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, LT [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], LT [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, LT [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:t,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},ordinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n){var i=e.split("_");return n?t%10===1&&11!==t?i[2]:i[3]:t%10===1&&11!==t?i[0]:i[1]}function n(e,n,r){return e+" "+t(i[r],e,n)}var i={mm:"minūti_minūtes_minūte_minūtes",hh:"stundu_stundas_stunda_stundas",dd:"dienu_dienas_diena_dienas",MM:"mēnesi_mēnešus_mēnesis_mēneši",yy:"gadu_gadus_gads_gadi"};return e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, LT",LLLL:"YYYY. [gada] D. MMMM, dddd, LT"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"%s vēlāk",past:"%s agrāk",s:"dažas sekundes",m:"minūti",mm:n,h:"stundu",hh:n,d:"dienu",dd:n,M:"mēnesi",MM:n,y:"gadu",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апрај_јун_јул_авг_сеп_окт_ноеек".split("_"),weekdays:едела_понеделник_вторник_средаетврток_петок_сабота".split("_"),weekdaysShort:ед_пон_вто_среет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_сре_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Во изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Во изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&20>n?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റബർ_ഒക്ടോബർ_നവബർ_ഡിസബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവ._ഡിസ.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴ_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiem:function(e,t,n){return 4>e?"രാത്രി":12>e?"രാവിലെ":17>e?"ഉച്ച കഴിഞ്ഞ്":20>e?"വൈകുന്നേരം":"രാത്രി"}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};return e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%s नंतर",past:"%s पूर्वी",s:"सेकंद",m:"एक मिनिट",mm:"%d मिनिटे",h:"एक तास",hh:"%d तास",d:"एक दिवस",dd:"%d दिवस",M:"एक महिना",MM:"%d महिने",y:"एक वर्ष",yy:"%d वर्षे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiem:function(e,t,n){return 4>e?"रात्री":10>e?"सकाळी":17>e?"दुपारी":20>e?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(e,t,n){return 11>e?"pagi":15>e?"tengahari":19>e?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:""},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","":"0"};return e.defineLocale("my",{months:"ဇန်နါရီ_ဖေဖော်ါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tirs_ons_tors_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"H.mm",LTS:"LT.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};return e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आइ._सो._मङ्_बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiem:function(e,t,n){return 3>e?"राती":10>e?"बिहान":15>e?"दिउँसो":18>e?"बेलुका":20>e?"साँझ":"राती"},calendar:{sameDay:"[आज] LT",nextDay:"[भोली] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडी",s:"केही समय",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");return e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return/-MMM-/.test(i)?n[e.month()]:t[e.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e){return 5>e%10&&e%10>1&&~~(e/10)%10!==1}function n(e,n,i){var r=e+" ";switch(i){case"m":return n?"minuta":"minutę";case"mm":return r+(t(e)?"minuty":"minut");case"h":return n?"godzina":"godzinę";case"hh":return r+(t(e)?"godziny":"godzin");case"MM":return r+(t(e)?"miesiące":"miesięcy");case"yy":return r+(t(e)?"lata":"lat")}}var i="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return e.defineLocale("pl",{months:function(e,t){return/D MMMM/.test(t)?r[e.month()]:i[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] LT",LLLL:"dddd, D [de] MMMM [de] YYYY [às] LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n){var i={mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},r=" ";return(e%100>=20||e>=100&&e%100===0)&&(r=" de "),e+r+i[n]}return e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function n(e,n,i){var r={mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:асасаасов",dd:ень_дня_дней",MM:есяц_месяцаесяцев",yy:"год_годает"};return"m"===i?n?"минута":"минуту":e+" "+t(r[i],+e)}function i(e,t){var n={nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")},i=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[i][e.month()]}function r(e,t){var n={nominative:"янв_фев_март_апрай_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апрая_июня_июля_авг_сен_окт_ноя_дек".split("_")},i=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[i][e.month()]}function a(e,t){var n={nominative:оскресенье_понедельник_вторник_средаетверг_пятница_суббота".split("_"),accusative:оскресенье_понедельник_вторник_средуетверг_пятницу_субботу".split("_")},i=/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative";return n[i][e.day()]}return e.defineLocale("ru",{months:i,monthsShort:r,weekdays:a,weekdaysShort:с_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:с_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return 4>e?"ночи":12>e?"утра":17>e?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e){return e>1&&5>e}function n(e,n,i,r){var a=e+" ";switch(i){case"s":return n||r?"pár sekúnd":"pár sekundami";case"m":return n?"minúta":r?"minútu":"minútou";case"mm":return n||r?a+(t(e)?"minúty":"minút"):a+"minútami";case"h":return n?"hodina":r?"hodinu":"hodinou";case"hh":return n||r?a+(t(e)?"hodiny":"hodín"):a+"hodinami";case"d":return n||r?"deň":"dňom";case"dd":return n||r?a+(t(e)?"dni":"dní"):a+"dňami";case"M":return n||r?"mesiac":"mesiacom";case"MM":return n||r?a+(t(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return n||r?"rok":"rokom";case"yy":return n||r?a+(t(e)?"roky":"rokov"):a+"rokmi"}}var i="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),r="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return e.defineLocale("sk",{months:i,monthsShort:r,monthsParse:function(e,t){var n,i=[];for(n=0;12>n;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i}(i,r),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t,n){var i=e+" ";switch(n){case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?"minuta":2===e?"minuti":3===e||4===e?"minute":"minut";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?"ura":2===e?"uri":3===e||4===e?"ure":"ur";case"dd":return i+=1===e?"dan":"dni";case"MM":return i+=1===e?"mesec":2===e?"meseca":3===e||4===e?"mesece":"mesecev";case"yy":return i+=1===e?"leto":2===e?"leti":3===e||4===e?"leta":"let"}}return e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[prejšnja] dddd [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"%s nazaj",s:"nekaj sekund",m:t,mm:t,h:t,hh:t,d:"en dan",dd:t,M:"en mesec",MM:t,y:"eno leto",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiem:function(e,t,n){return 12>e?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};return e.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT";
}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};return e.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"dddd LT",lastWeek:"[Förra] dddd[en] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"e":1===t?"a":2===t?"a":"e";return e+n},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},meridiem:function(e,t,n){return e>=6&&10>=e?" காலை":e>=10&&14>=e?" நண்பகல்":e>=14&&18>=e?" எற்பாடு":e>=18&&20>=e?" மாலை":e>=20&&24>=e?" இரவு":e>=0&&6>=e?" வைகறை":void 0},week:{dow:0,doy:6}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"LT s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา LT",LLLL:"วันddddที่ D MMMM YYYY เวลา LT"},meridiem:function(e,t,n){return 12>e?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM DD, YYYY LT"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10,i=e%100-n,r=e>=100?100:null;return e+(t[n]||t[i]||t[r])},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("tzm",{months:"ⵉⴰⵢ_ⴱⴰⵢ_ⵎⴰⵚ_ⵉⴱ_ⵎⴰⵢⵢⵓ_ⵢⵓⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⴱⵉ_ⴽⵟⵓⴱ_ⵓⵡⴰⴱⵉ_ⴷⵓⵊⴱⵉ".split("_"),monthsShort:"ⵉⴰⵢ_ⴱⴰⵢ_ⵎⴰⵚ_ⵉⴱ_ⵎⴰⵢⵢⵓ_ⵢⵓⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⴱⵉ_ⴽⵟⵓⴱ_ⵓⵡⴰⴱⵉ_ⴷⵓⵊⴱⵉ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⴰⵙ_ⴰⵙⵉⴰⵙ_ⴰⴽⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⴰⵙ_ⴰⵙⵉⴰⵙ_ⴰⴽⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⴰⵙ_ⴰⵙⵉⴰⵙ_ⴰⴽⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰ",M:"ⴰⵢoⵓ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function n(e,n,i){var r={mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:ень_дні_днів",MM:ісяць_місяціісяців",yy:"рік_роки_років"};return"m"===i?n?"хвилина":"хвилину":"h"===i?n?"година":"годину":e+" "+t(r[i],+e)}function i(e,t){var n={nominative:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),accusative:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_")},i=/D[oD]? *MMMM?/.test(t)?"accusative":"nominative";return n[i][e.month()]}function r(e,t){var n={nominative:еділя_понеділок_вівторок_середаетвер_пятниця_субота".split("_"),accusative:еділю_понеділок_вівторок_середуетвер_пятницю_суботу".split("_"),genitive:еділі_понеділкаівторка_середи_четверга_пятниці_суботи".split("_")},i=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return n[i][e.day()]}function a(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:i,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_веровт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., LT",LLLL:"dddd, D MMMM YYYY р., LT"},calendar:{sameDay:a("[Сьогодні "),nextDay:a("[Завтра "),lastDay:a("[Вчора "),nextWeek:a("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return a("[Минулої] dddd [").call(this);case 1:case 2:case 4:return a("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiem:function(e,t,n){return 4>e?"ночі":12>e?"ранку":17>e?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("uz",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_мар_апрай_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанбаушанба_Сешанбаоршанбаайшанбаумаанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чорай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Сеоауа".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"D MMMM YYYY, dddd LT"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY LT",LLLL:"dddd, D MMMM [năm] YYYY LT",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(e,t,n){var i=100*e+t;return 600>i?"凌晨":900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()-t.unix()>=604800?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()<t.unix()?"[上]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}})})},function(e,t,n){var i,r,a;!function(o){r=[n(415)],i=o,a="function"==typeof i?i.apply(t,r):i,!(void 0!==a&&(e.exports=a))}(function(e){return e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(e,t,n){var i=100*e+t;return 900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})})},,,,,,,,,,,,,function(e,t){+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||e(i).trigger(e.support.transition.end)};return setTimeout(r,t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery)},function(e,t){+function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}function n(n){n&&3===n.which||(e(r).remove(),e(a).each(function(){var i=e(this),r=t(i),a={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",a)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",a)))))}))}function i(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new o(this)),"string"==typeof t&&i[t].call(n)})}var r=".dropdown-backdrop",a='[data-toggle="dropdown"]',o=function(t){e(t).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.6",o.prototype.toggle=function(i){var r=e(this);if(!r.is(".disabled, :disabled")){var a=t(r),o=a.hasClass("open");if(n(),!o){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var s={relatedTarget:this};if(a.trigger(i=e.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),a.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},o.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=e(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=t(i),o=r.hasClass("open");if(!o&&27!=n.which||o&&27==n.which)return 27==n.which&&r.find(a).trigger("focus"),i.trigger("click");var s=" li:not(.disabled):visible a",l=r.find(".dropdown-menu"+s);if(l.length){var u=l.index(n.target);38==n.which&&u>0&&u--,40==n.which&&u<l.length-1&&u++,~u||(u=0),l.eq(u).trigger("focus")}}}};var s=e.fn.dropdown;e.fn.dropdown=i,e.fn.dropdown.Constructor=o,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",a,o.prototype.toggle).on("keydown.bs.dropdown.data-api",a,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery)},function(e,t){+function(e){"use strict";function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(i)}function n(t){return this.each(function(){var n=e(this),r=n.data("bs.collapse"),a=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!r&&a.toggle&&/show|hide/.test(t)&&(a.toggle=!1),r||n.data("bs.collapse",r=new i(this,a)),"string"==typeof t&&r[t]()})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.6",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(t=r.data("bs.collapse"),t&&t.transitioning))){var a=e.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),t||r.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[o](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,i){var r=e(i);this.addAriaAndCollapsedClass(t(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=e(this);r.attr("data-target")||i.preventDefault();var a=t(r),o=a.data("bs.collapse"),s=o?"toggle":r.data();n.call(a,s)})}(jQuery)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i,r;!function(a,o){i=[n(1)],r=function(e){return o(a,e)}.apply(t,i),!(void 0!==r&&(e.exports=r))}(this,function(e,t){"use strict";function n(e){if(b&&"none"===e.css("animation-name")&&"none"===e.css("-webkit-animation-name")&&"none"===e.css("-moz-animation-name")&&"none"===e.css("-o-animation-name")&&"none"===e.css("-ms-animation-name"))return 0;var t,n,i,r,a=e.css("animation-duration")||e.css("-webkit-animation-duration")||e.css("-moz-animation-duration")||e.css("-o-animation-duration")||e.css("-ms-animation-duration")||"0s",o=e.css("animation-delay")||e.css("-webkit-animation-delay")||e.css("-moz-animation-delay")||e.css("-o-animation-delay")||e.css("-ms-animation-delay")||"0s",s=e.css("animation-iteration-count")||e.css("-webkit-animation-iteration-count")||e.css("-moz-animation-iteration-count")||e.css("-o-animation-iteration-count")||e.css("-ms-animation-iteration-count")||"1";for(a=a.split(", "),o=o.split(", "),s=s.split(", "),r=0,n=a.length,t=Number.NEGATIVE_INFINITY;n>r;r++)i=parseFloat(a[r])*parseInt(s[r],10)+parseFloat(o[r]),i>t&&(t=i);return t}function i(){if(t(document.body).height()<=t(window).height())return 0;var e,n,i=document.createElement("div"),r=document.createElement("div");return i.style.visibility="hidden",i.style.width="100px",document.body.appendChild(i),e=i.offsetWidth,i.style.overflow="scroll",r.style.width="100%",i.appendChild(r),n=r.offsetWidth,i.parentNode.removeChild(i),e-n}function r(){if(!L){var e,n,r=t("html"),a=d("is-locked");r.hasClass(a)||(n=t(document.body),e=parseInt(n.css("padding-right"),10)+i(),n.css("padding-right",e+"px"),r.addClass(a))}}function a(){if(!L){var e,n,r=t("html"),a=d("is-locked");r.hasClass(a)&&(n=t(document.body),e=parseInt(n.css("padding-right"),10)-i(),n.css("padding-right",e+"px"),r.removeClass(a))}}function o(e,t,n,i){var r=d("is",t),a=[d("is",D.CLOSING),d("is",D.OPENING),d("is",D.CLOSED),d("is",D.OPENED)].join(" ");e.$bg.removeClass(a).addClass(r),e.$overlay.removeClass(a).addClass(r),e.$wrapper.removeClass(a).addClass(r),e.$modal.removeClass(a).addClass(r),e.state=t,!n&&e.$modal.trigger({type:t,reason:i},[{reason:i}])}function s(e,i,r){var a=0,o=function(e){e.target===this&&a++},s=function(e){e.target===this&&0===--a&&(t.each(["$bg","$overlay","$wrapper","$modal"],function(e,t){r[t].off(v+" "+y)}),i())};t.each(["$bg","$overlay","$wrapper","$modal"],function(e,t){r[t].on(v,o).on(y,s)}),e(),0===n(r.$bg)&&0===n(r.$overlay)&&0===n(r.$wrapper)&&0===n(r.$modal)&&(t.each(["$bg","$overlay","$wrapper","$modal"],function(e,t){r[t].off(v+" "+y)}),i())}function l(e){e.state!==D.CLOSED&&(t.each(["$bg","$overlay","$wrapper","$modal"],function(t,n){e[n].off(v+" "+y)}),e.$bg.removeClass(e.settings.modifier),e.$overlay.removeClass(e.settings.modifier).hide(),e.$wrapper.hide(),a(),o(e,D.CLOSED,!0))}function u(e){var t,n,i,r,a={};for(e=e.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,","),t=e.split(","),r=0,n=t.length;n>r;r++)t[r]=t[r].split(":"),i=t[r][1],("string"==typeof i||i instanceof String)&&(i="true"===i||("false"===i?!1:i)),("string"==typeof i||i instanceof String)&&(i=isNaN(i)?i:+i),a[t[r][0]]=i;return a}function d(){for(var e=g,t=0;t<arguments.length;++t)e+="-"+arguments[t];return e}function c(){var e,n,i=location.hash.replace("#","");if(i){try{n=t('[data-remodal-id="'+i+'"]')}catch(r){}n&&n.length&&(e=t[m].lookup[n.data(m)],e&&e.settings.hashTracking&&e.open())}else p&&p.state===D.OPENED&&p.settings.hashTracking&&p.close()}function h(e,n){var i=t(document.body),r=this;r.settings=t.extend({},_,n),r.index=t[m].lookup.push(r)-1,r.state=D.CLOSED,r.$overlay=t("."+d("overlay")),r.$overlay.length||(r.$overlay=t("<div>").addClass(d("overlay")+" "+d("is",D.CLOSED)).hide(),i.append(r.$overlay)),r.$bg=t("."+d("bg")).addClass(d("is",D.CLOSED)),r.$modal=e.addClass(g+" "+d("is-initialized")+" "+r.settings.modifier+" "+d("is",D.CLOSED)).attr("tabindex","-1"),r.$wrapper=t("<div>").addClass(d("wrapper")+" "+r.settings.modifier+" "+d("is",D.CLOSED)).hide().append(r.$modal),i.append(r.$wrapper),r.$wrapper.on("click."+g,'[data-remodal-action="close"]',function(e){e.preventDefault(),r.close()}),r.$wrapper.on("click."+g,'[data-remodal-action="cancel"]',function(e){e.preventDefault(),r.$modal.trigger(w.CANCELLATION),r.settings.closeOnCancel&&r.close(w.CANCELLATION)}),r.$wrapper.on("click."+g,'[data-remodal-action="confirm"]',function(e){e.preventDefault(),r.$modal.trigger(w.CONFIRMATION),r.settings.closeOnConfirm&&r.close(w.CONFIRMATION)}),r.$wrapper.on("click."+g,function(e){var n=t(e.target);n.hasClass(d("wrapper"))&&r.settings.closeOnOutsideClick&&r.close()})}var p,f,m="remodal",g=e.REMODAL_GLOBALS&&e.REMODAL_GLOBALS.NAMESPACE||m,v=t.map(["animationstart","webkitAnimationStart","MSAnimationStart","oAnimationStart"],function(e){return e+"."+g}).join(" "),y=t.map(["animationend","webkitAnimationEnd","MSAnimationEnd","oAnimationEnd"],function(e){return e+"."+g}).join(" "),_=t.extend({hashTracking:!0,closeOnConfirm:!0,closeOnCancel:!0,closeOnEscape:!0,closeOnOutsideClick:!0,modifier:""},e.REMODAL_GLOBALS&&e.REMODAL_GLOBALS.DEFAULTS),D={CLOSING:"closing",CLOSED:"closed",OPENING:"opening",OPENED:"opened"},w={CONFIRMATION:"confirmation",CANCELLATION:"cancellation"},b=function(){var e=document.createElement("div").style;return void 0!==e.animationName||void 0!==e.WebkitAnimationName||void 0!==e.MozAnimationName||void 0!==e.msAnimationName||void 0!==e.OAnimationName}(),L=/iPad|iPhone|iPod/.test(navigator.platform);h.prototype.open=function(){var e,n=this;n.state!==D.OPENING&&n.state!==D.CLOSING&&(e=n.$modal.attr("data-remodal-id"),e&&n.settings.hashTracking&&(f=t(window).scrollTop(),location.hash=e),p&&p!==n&&l(p),p=n,r(),n.$bg.addClass(n.settings.modifier),n.$overlay.addClass(n.settings.modifier).show(),n.$wrapper.show().scrollTop(0),n.$modal.focus(),s(function(){o(n,D.OPENING)},function(){o(n,D.OPENED)},n))},h.prototype.close=function(e){var n=this;n.state!==D.OPENING&&n.state!==D.CLOSING&&(n.settings.hashTracking&&n.$modal.attr("data-remodal-id")===location.hash.substr(1)&&(location.hash="",t(window).scrollTop(f)),s(function(){o(n,D.CLOSING,!1,e)},function(){n.$bg.removeClass(n.settings.modifier),n.$overlay.removeClass(n.settings.modifier).hide(),n.$wrapper.hide(),a(),o(n,D.CLOSED,!1,e)},n))},h.prototype.getState=function(){return this.state},h.prototype.destroy=function(){var e,n=t[m].lookup;l(this),this.$wrapper.remove(),delete n[this.index],e=t.grep(n,function(e){return!!e}).length,0===e&&(this.$overlay.remove(),this.$bg.removeClass(d("is",D.CLOSING)+" "+d("is",D.OPENING)+" "+d("is",D.CLOSED)+" "+d("is",D.OPENED)))},t[m]={lookup:[]},t.fn[m]=function(e){var n,i;return this.each(function(r,a){i=t(a),null==i.data(m)?(n=new h(i,e),i.data(m,n.index),n.settings.hashTracking&&i.attr("data-remodal-id")===location.hash.substr(1)&&n.open()):n=t[m].lookup[i.data(m)]}),n},t(document).ready(function(){t(document).on("click","[data-remodal-target]",function(e){e.preventDefault();var n=e.currentTarget,i=n.getAttribute("data-remodal-target"),r=t('[data-remodal-id="'+i+'"]');t[m].lookup[r.data(m)].open()}),t(document).find("."+g).each(function(e,n){var i=t(n),r=i.data("remodal-options");r?("string"==typeof r||r instanceof String)&&(r=u(r)):r={},i[m](r)}),t(document).on("keydown."+g,function(e){p&&p.settings.closeOnEscape&&p.state===D.OPENED&&27===e.keyCode&&p.close()}),t(window).on("hashchange."+g,c)})})},function(e,t,n){n(507),n(568),n(569),n(570),n(509),n(508),n(571),n(572),n(573),
n(574),n(575),n(576)},function(e,t){+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof t&&r[t].call(n)})}var n='[data-dismiss="alert"]',i=function(t){e(t).on("click",n,this.close)};i.VERSION="3.3.6",i.TRANSITION_DURATION=150,i.prototype.close=function(t){function n(){o.detach().trigger("closed.bs.alert").remove()}var r=e(this),a=r.attr("data-target");a||(a=r.attr("href"),a=a&&a.replace(/.*(?=#[^\s]*$)/,""));var o=e(a);t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var r=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=i,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery)},function(e,t){+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.button"),a="object"==typeof t&&t;r||i.data("bs.button",r=new n(this,a)),"toggle"==t?r.toggle():t&&r.setState(t)})}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.6",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",a=i.data();t+="Text",null==a.resetText&&i.data("resetText",i[r]()),setTimeout(e.proxy(function(){i[r](null==a[t]?this.options[t]:a[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=e(n.target);i.hasClass("btn")||(i=i.closest(".btn")),t.call(i,"toggle"),e(n.target).is('input[type="radio"]')||e(n.target).is('input[type="checkbox"]')||n.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery)},function(e,t){+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.carousel"),a=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t),o="string"==typeof t?t:a.slide;r||i.data("bs.carousel",r=new n(this,a)),"number"==typeof t?r.to(t):o?r[o]():a.interval&&r.pause().cycle()})}var n=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.3.6",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),i="prev"==e&&0===n||"next"==e&&n==this.$items.length-1;if(i&&!this.options.wrap)return t;var r="prev"==e?-1:1,a=(n+r)%this.$items.length;return this.$items.eq(a)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(t,i){var r=this.$element.find(".item.active"),a=i||this.getItemForDirection(t,r),o=this.interval,s="next"==t?"left":"right",l=this;if(a.hasClass("active"))return this.sliding=!1;var u=a[0],d=e.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=e(this.$indicators.children()[this.getItemIndex(a)]);c&&c.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(a.addClass(t),a[0].offsetWidth,r.addClass(s),a.addClass(s),r.one("bsTransitionEnd",function(){a.removeClass([t,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(h)),o&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var r=function(n){var i,r=e(this),a=e(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(a.hasClass("carousel")){var o=e.extend({},a.data(),r.data()),s=r.attr("data-slide-to");s&&(o.interval=!1),t.call(a,o),s&&a.data("bs.carousel").to(s),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery)},function(e,t){+function(e){"use strict";function t(t,i){return this.each(function(){var r=e(this),a=r.data("bs.modal"),o=e.extend({},n.DEFAULTS,r.data(),"object"==typeof t&&t);a||r.data("bs.modal",a=new n(this,o)),"string"==typeof t?a[t](i):o.show&&a.show(i)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.6",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var i=this,r=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var a=e.Event("shown.bs.modal",{relatedTarget:t});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(a)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=e.support.transition&&r;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;a?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){i.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):o()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=e(this),r=i.attr("href"),a=e(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),o=a.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},a.data(),i.data());i.is("a")&&n.preventDefault(),a.one("show.bs.modal",function(e){e.isDefaultPrevented()||a.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),t.call(a,o,this)})}(jQuery)},function(e,t){+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.tooltip"),a="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||i.data("bs.tooltip",r=new n(this,a)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),a=r.length;a--;){var o=r[a];if("click"==o)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=o){var s="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},n.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},n.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},n.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),n.isInStateTrue()?void 0:(clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide())},n.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!i)return;var r=this,a=this.tip(),o=this.getUID(this.type);this.setContent(),a.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&a.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(s);u&&(s=s.replace(l,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),c=a[0].offsetWidth,h=a[0].offsetHeight;if(u){var p=s,f=this.getPosition(this.$viewport);s="bottom"==s&&d.bottom+h>f.bottom?"top":"top"==s&&d.top-h<f.top?"bottom":"right"==s&&d.right+c>f.width?"left":"left"==s&&d.left-c<f.left?"right":s,a.removeClass(p).addClass(s)}var m=this.getCalculatedOffset(s,d,c,h);this.applyPlacement(m,s);var g=function(){var e=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==e&&r.leave(r)};e.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",g).emulateTransitionEnd(n.TRANSITION_DURATION):g()}},n.prototype.applyPlacement=function(t,n){var i=this.tip(),r=i[0].offsetWidth,a=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(s)&&(s=0),t.top+=o,t.left+=s,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;"top"==n&&u!=a&&(t.top=t.top+a-u);var d=this.getViewportAdjustedDelta(n,t,l,u);d.left?t.left+=d.left:t.top+=d.top;var c=/top|bottom/.test(n),h=c?2*d.left-r+l:2*d.top-a+u,p=c?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(h,i[0][p],c)},n.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},n.prototype.hide=function(t){function i(){"in"!=r.hoverState&&a.detach(),r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),t&&t()}var r=this,a=e(this.$tip),o=e.Event("hide.bs."+this.type);return this.$element.trigger(o),o.isDefaultPrevented()?void 0:(a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),this.hoverState=null,this)},n.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(t){t=t||this.$element;var n=t[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=e.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var a=i?{top:0,left:0}:t.offset(),o={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},r,o,s,a)},n.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},n.prototype.getViewportAdjustedDelta=function(e,t,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var a=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-a-o.scroll,l=t.top+a-o.scroll+i;s<o.top?r.top=o.top-s:l>o.top+o.height&&(r.top=o.top+o.height-l)}else{var u=t.left-a,d=t.left+a+n;u<o.left?r.left=o.left-u:d>o.right&&(r.left=o.left+o.width-d)}return r},n.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},n.prototype.getUID=function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e));return e},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(t){var n=this;t&&(n=e(t.currentTarget).data("bs."+this.type),n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null})};var i=e.fn.tooltip;e.fn.tooltip=t,e.fn.tooltip.Constructor=n,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=i,this}}(jQuery)},function(e,t){+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.popover"),a="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||i.data("bs.popover",r=new n(this,a)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.6",n.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=n,e.fn.popover.noConflict=function(){return e.fn.popover=i,this}}(jQuery)},function(e,t){+function(e){"use strict";function t(n,i){this.$body=e(document.body),this.$scrollElement=e(e(n).is(document.body)?window:n),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=e(this),r=i.data("bs.scrollspy"),a="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new t(this,a)),"string"==typeof n&&r[n]()})}t.VERSION="3.3.6",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),r=t.data("target")||t.attr("href"),a=/^#./.test(r)&&e(r);return a&&a.length&&a.is(":visible")&&[[a[n]().top+i,r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,a=this.targets,o=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=i)return o!=(e=a[a.length-1])&&this.activate(e);if(o&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)o!=a[e]&&t>=r[e]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(a[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=e(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery)},function(e,t){+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof t&&r[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=n.find(".active:last a"),a=e.Event("hide.bs.tab",{relatedTarget:t[0]}),o=e.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(a),t.trigger(o),!o.isDefaultPrevented()&&!a.isDefaultPrevented()){var s=e(i);this.activate(t.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(t,i,r){function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var o=i.find("> .active"),s=r&&e.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a(),o.removeClass("in")};var i=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var r=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery)},function(e,t){+function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.affix"),a="object"==typeof t&&t;r||i.data("bs.affix",r=new n(this,a)),"string"==typeof t&&r[t]()})}var n=function(t,i){this.options=e.extend({},n.DEFAULTS,i),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.6",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(e,t,n,i){var r=this.$target.scrollTop(),a=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return n>r?"top":!1;if("bottom"==this.affixed)return null!=n?r+this.unpin<=a.top?!1:"bottom":e-i>=r+o?!1:"bottom";var s=null==this.affixed,l=s?r:a.top,u=s?o:t;return null!=n&&n>=r?"top":null!=i&&l+u>=e-i?"bottom":!1},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),i=this.options.offset,r=i.top,a=i.bottom,o=Math.max(e(document).height(),e(document.body).height());"object"!=typeof i&&(a=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof a&&(a=i.bottom(this.$element));var s=this.getState(o,t,r,a);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),u=e.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:o-t-a})}};var i=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var n=e(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),t.call(n,i)})})}(jQuery)}]);
//# sourceMappingURL=vendor.min.js.map