cloud-red
Version:
Harnessing Serverless for your cloud integration needs
1 lines • 168 kB
JavaScript
var runtime=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r,n){var a=t&&t.prototype instanceof g?t:g,i=Object.create(a.prototype),o=new D(n||[]);return i._invoke=function(e,t,r){var n=f;return function(a,i){if(n===l)throw new Error("Generator is already running");if(n===d){if("throw"===a)throw i;return R()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=A(o,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var u=c(e,t,r);if("normal"===u.type){if(n=r.done?d:p,u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(e,r,o),i}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",l="executing",d="completed",h={};function g(){}function v(){}function b(){}var m={};m[i]=function(){return this};var y=Object.getPrototypeOf,k=y&&y(y(O([])));k&&k!==r&&n.call(k,i)&&(m=k);var x=b.prototype=g.prototype=Object.create(m);function w(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function E(e){var t;this._invoke=function(r,a){function i(){return new Promise(function(t,i){!function t(r,a,i,o){var s=c(e[r],e,a);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then(function(e){t("next",e,i,o)},function(e){t("throw",e,i,o)}):Promise.resolve(f).then(function(e){u.value=e,i(u)},function(e){return t("throw",e,i,o)})}o(s.arg)}(r,a,t,i)})}return t=t?t.then(i,i):i()}}function A(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=c(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}return{next:R}}function R(){return{value:t,done:!0}}return v.prototype=x.constructor=b,b.constructor=v,b[s]=v.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},w(E.prototype),E.prototype[o]=function(){return this},e.AsyncIterator=E,e.async=function(t,r,n,a){var i=new E(u(t,r,n,a));return e.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},w(x),x[s]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}("object"==typeof module?module.exports:{});try{regeneratorRuntime=runtime}catch(e){Function("r","regeneratorRuntime = r")(runtime)}Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Array.from||(Array.from=function(){"use strict";var e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},r=function(e){return function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e)>>>0};return function(e){var n=Object(e);if(null===e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var a,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!t(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(a=arguments[2])}for(var o,s=r(n.length),u=t(this)?Object(new this(s)):new Array(s),c=0;c<s;)o=n[c],u[c]=i?void 0===a?i(o,c):i.call(a,o,c):o,c+=1;return u.length=s,u}}()),String.fromCodePoint||function(e){var t=function(t){for(var r=[],n=0,a="",i=0,o=arguments.length;i!==o;++i){var s=+arguments[i];if(!(s<1114111&&s>>>0===s))throw RangeError("Invalid code point: "+s);s<=65535?n=r.push(s):(s-=65536,n=r.push(55296+(s>>10),s%1024+56320)),n>=16383&&(a+=e.apply(null,r),r.length=0)}return a+e.apply(null,r)};try{Object.defineProperty(String,"fromCodePoint",{value:t,configurable:!0,writable:!0})}catch(e){String.fromCodePoint=t}}(String.fromCharCode),Object.is||(Object.is=function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}),String.prototype.codePointAt||function(){"use strict";var e=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}(),t=function(e){if(null==this)throw TypeError();var t=String(this),r=t.length,n=e?Number(e):0;if(n!=n&&(n=0),!(n<0||n>=r)){var a,i=t.charCodeAt(n);return i>=55296&&i<=56319&&r>n+1&&(a=t.charCodeAt(n+1))>=56320&&a<=57343?1024*(i-55296)+a-56320+65536:i}};e?e(String.prototype,"codePointAt",{value:t,configurable:!0,writable:!0}):String.prototype.codePointAt=t}(),Math.log10=Math.log10||function(e){return Math.log(e)*Math.LOG10E},function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).jsonata=e()}}(function(){return function(){return function e(t,r,n){function a(o,s){if(!r[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[o]={exports:{}};t[o][0].call(f.exports,function(e){return a(t[o][1][e]||e)},f,f.exports,e,t,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}}()({1:[function(e,t,r){"use strict";var n=function(){var e=["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],t=["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth","Fifteenth","Sixteenth","Seventeenth","Eighteenth","Nineteenth"],r=["Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety","Hundred"],n=["Thousand","Million","Billion","Trillion"];var a={};e.forEach(function(e,t){a[e.toLowerCase()]=t}),t.forEach(function(e,t){a[e.toLowerCase()]=t}),r.forEach(function(e,t){var r=e.toLowerCase();a[r]=10*(t+2),a[r.substring(0,e.length-1)+"ieth"]=a[r]}),a.hundredth=100,n.forEach(function(e,t){var r=e.toLowerCase(),n=Math.pow(10,3*(t+1));a[r]=n,a[r+"th"]=n});var i=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],o={M:1e3,D:500,C:100,L:50,X:10,V:5,I:1};function s(e,t){if(void 0!==e)return f(e=Math.floor(e),l(t))}var u={DECIMAL:"decimal",LETTERS:"letters",ROMAN:"roman",WORDS:"words",SEQUENCE:"sequence"},c={UPPER:"upper",LOWER:"lower",TITLE:"title"};function f(a,o){var s,f=a<0;switch(a=Math.abs(a),o.primary){case u.LETTERS:s=function(e,t){for(var r=[],n=t.charCodeAt(0);e>0;)r.unshift(String.fromCharCode((e-1)%26+n)),e=Math.floor((e-1)/26);return r.join("")}(a,o.case===c.UPPER?"A":"a");break;case u.ROMAN:s=function e(t){for(var r=0;r<i.length;r++){var n=i[r];if(t>=n[0])return n[1]+e(t-n[0])}return""}(a),o.case===c.UPPER&&(s=s.toUpperCase());break;case u.WORDS:s=function(a,i){return function a(i,o,s){var u="";if(i<=19)u=(o?" and ":"")+(s?t[i]:e[i]);else if(i<100){var c=Math.floor(i/10),f=i%10;u=(o?" and ":"")+r[c-2],f>0?u+="-"+a(f,!1,s):s&&(u=u.substring(0,u.length-1)+"ieth")}else if(i<1e3){var p=Math.floor(i/100),l=i%100;u=(o?", ":"")+e[p]+" Hundred",l>0?u+=a(l,!0,s):s&&(u+="th")}else{var d=Math.floor(Math.log10(i)/3);d>n.length&&(d=n.length);var h=Math.pow(10,3*d),g=Math.floor(i/h),v=i-g*h;u=(o?", ":"")+a(g,!1,!1)+" "+n[d-1],v>0?u+=a(v,!0,s):s&&(u+="th")}return u}(a,!1,i)}(a,o.ordinal),o.case===c.UPPER?s=s.toUpperCase():o.case===c.LOWER&&(s=s.toLowerCase());break;case u.DECIMAL:s=""+a;var p=o.mandatoryDigits-s.length;if(p>0){var l=new Array(p+1).join("0");s=l+s}if(48!==o.zeroCode&&(s=Array.from(s).map(function(e){return String.fromCodePoint(e.codePointAt(0)+o.zeroCode-48)}).join("")),o.regular)for(var d=Math.floor((s.length-1)/o.groupingSeparators.position);d>0;d--){var h=s.length-d*o.groupingSeparators.position;s=s.substr(0,h)+o.groupingSeparators.character+s.substr(h)}else o.groupingSeparators.reverse().forEach(function(e){var t=s.length-e.position;s=s.substr(0,t)+e.character+s.substr(t)});if(o.ordinal){var g={1:"st",2:"nd",3:"rd"}[s[s.length-1]];(!g||s.length>1&&"1"===s[s.length-2])&&(g="th"),s+=g}break;case u.SEQUENCE:throw{code:"D3130",value:o.token}}return f&&(s="-"+s),s}var p=[48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296];function l(e){var t,r={type:"integer",primary:u.DECIMAL,case:c.LOWER,ordinal:!1},n=e.lastIndexOf(";");switch(-1===n?t=e:(t=e.substring(0,n),"o"===e.substring(n+1)[0]&&(r.ordinal=!0)),t){case"A":r.case=c.UPPER;case"a":r.primary=u.LETTERS;break;case"I":r.case=c.UPPER;case"i":r.primary=u.ROMAN;break;case"W":r.case=c.UPPER,r.primary=u.WORDS;break;case"Ww":r.case=c.TITLE,r.primary=u.WORDS;break;case"w":r.primary=u.WORDS;break;default:var a=null,i=0,o=0,s=[],f=0;if(Array.from(t,function(e){return e.codePointAt(0)}).reverse().forEach(function(e){for(var t=!1,r=0;r<p.length;r++){var n=p[r];if(e>=n&&e<=n+9){if(t=!0,i++,f++,null===a)a=n;else if(n!==a)throw{code:"D3131"};break}}t||(35===e?(f++,o++):s.push({position:f,character:String.fromCodePoint(e)}))}),i>0){r.primary=u.DECIMAL,r.zeroCode=a,r.mandatoryDigits=i,r.optionalDigits=o;var l=function(e){if(0===e.length)return 0;for(var t=e[0].character,r=1;r<e.length;r++)if(e[r].character!==t)return 0;for(var n=e.map(function(e){return e.position}),a=n.reduce(function e(t,r){return 0===r?t:e(r,t%r)}),i=1;i<=n.length;i++)if(-1===n.indexOf(i*a))return 0;return a}(s);l>0?(r.regular=!0,r.groupingSeparators={position:l,character:s[0].character}):(r.regular=!1,r.groupingSeparators=s)}else r.primary=u.SEQUENCE,r.token=t}return r}var d={Y:"1",M:"1",D:"1",d:"1",F:"n",W:"1",w:"1",X:"1",x:"1",H:"1",h:"1",P:"n",m:"01",s:"01",f:"1",Z:"01:01",z:"01:01",C:"n",E:"n"};function h(e){for(var t=[],r={type:"datetime",parts:t},n=function(r,n){if(n>r){var a=e.substring(r,n);a=a.split("]]").join("]"),t.push({type:"literal",value:a})}},a=0,i=0;i<e.length;){if("["===e.charAt(i)){if("["===e.charAt(i+1)){n(a,i),t.push({type:"literal",value:"["}),a=i+=2;continue}if(n(a,i),a=i,-1===(i=e.indexOf("]",a)))throw{code:"D3135"};var o,s=e.substring(a+1,i),u={type:"marker",component:(s=s.split(/\s+/).join("")).charAt(0)},f=s.lastIndexOf(",");if(-1!==f){var p=s.substring(f+1),h=p.indexOf("-"),g=void 0,v=void 0,b=function(e){return void 0===e||"*"===e?void 0:parseInt(e)};-1===h?g=p:(g=p.substring(0,h),v=p.substring(h+1));var m={min:b(g),max:b(v)};u.width=m,o=s.substring(1,f)}else o=s.substring(1);if(1===o.length)u.presentation1=o;else if(o.length>1){var y=o.charAt(o.length-1);-1!=="atco".indexOf(y)?(u.presentation2=y,"o"===y&&(u.ordinal=!0),u.presentation1=o.substring(0,o.length-1)):u.presentation1=o}else u.presentation1=d[u.component];if(void 0===u.presentation1)throw{code:"D3132",value:u.component};if("n"===u.presentation1[0])u.names=c.LOWER;else if("N"===u.presentation1[0])"n"===u.presentation1[1]?u.names=c.TITLE:u.names=c.UPPER;else if(-1!=="YMDdFWwXxHhmsf".indexOf(u.component)){var k=u.presentation1;if(u.presentation2&&(k+=";"+u.presentation2),u.integerFormat=l(k),u.width&&void 0!==u.width.min&&u.integerFormat.mandatoryDigits<u.width.min&&(u.integerFormat.mandatoryDigits=u.width.min),"Y"===u.component)if(u.n=-1,u.width&&void 0!==u.width.max)u.n=u.width.max,u.integerFormat.mandatoryDigits=u.n;else{var x=u.integerFormat.mandatoryDigits+u.integerFormat.optionalDigits;x>=2&&(u.n=x)}}"Z"!==u.component&&"z"!==u.component||(u.integerFormat=l(u.presentation1)),t.push(u),a=i+1}i++}return n(a,i),r}var g=["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"],b=function(e){var t=Date.UTC(e.year,e.month),r=new Date(t).getDay();return 0===r&&(r=7),r>4?t+864e5*(8-r):t-864e5*(r-1)},m=function e(t,r){return{year:t,month:r,nextMonth:function(){return 11===r?e(t+1,0):e(t,r+1)},previousMonth:function(){return 0===r?e(t-1,11):e(t,r-1)},nextYear:function(){return e(t+1,r)},previousYear:function(){return e(t-1,r)}}},y=function(e,t){return(t-e)/6048e5+1},k=function(e,t){var r;switch(t){case"Y":r=e.getUTCFullYear();break;case"M":r=e.getUTCMonth()+1;break;case"D":r=e.getUTCDate();break;case"d":r=(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())-Date.UTC(e.getUTCFullYear(),0))/864e5+1;break;case"F":0===(r=e.getUTCDay())&&(r=7);break;case"W":var n=m(e.getUTCFullYear(),0),a=b(n),i=Date.UTC(n.year,e.getUTCMonth(),e.getUTCDate()),o=y(a,i);if(o>52)i>=b(n.nextYear())&&(o=1);else if(o<1){var s=b(n.previousYear());o=y(s,i)}r=Math.floor(o);break;case"w":var u=m(e.getUTCFullYear(),e.getUTCMonth()),c=b(u),f=Date.UTC(u.year,u.month,e.getUTCDate()),p=y(c,f);if(p>4)f>=b(u.nextMonth())&&(p=1);else if(p<1){var l=b(u.previousMonth());p=y(l,f)}r=Math.floor(p);break;case"X":var d=m(e.getUTCFullYear(),0),h=b(d),g=b(d.nextYear()),v=e.getTime();r=v<h?d.year-1:v>=g?d.year+1:d.year;break;case"x":var k=m(e.getUTCFullYear(),e.getUTCMonth()),x=b(k),w=k.nextMonth(),E=b(w),A=e.getTime();r=A<x?k.previousMonth().month+1:A>=E?w.month+1:k.month+1;break;case"H":r=e.getUTCHours();break;case"h":r=e.getUTCHours(),0===(r%=12)&&(r=12);break;case"P":r=e.getUTCHours()>=12?"pm":"am";break;case"m":r=e.getUTCMinutes();break;case"s":r=e.getUTCSeconds();break;case"f":r=e.getUTCMilliseconds();break;case"Z":case"z":break;case"C":case"E":r="ISO"}return r},x=h("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]");function w(e,t,r){var n=0,a=0;if(void 0!==r){var i=parseInt(r);n=Math.floor(i/100),a=i%100}var o;o=void 0===t?x:h(t);var u=new Date(e+60*(60*n+a)*1e3),p="";return o.parts.forEach(function(e){"literal"===e.type?p+=e.value:p+=function(e,t){var r=k(e,t.component);if(-1!=="YMDdFWwXxHhms".indexOf(t.component))if("Y"===t.component&&-1!==t.n&&(r%=Math.pow(10,t.n)),t.names){if("M"===t.component||"x"===t.component)r=v[r-1];else{if("F"!==t.component)throw{code:"D3133",value:t.component};r=g[r]}t.names===c.UPPER?r=r.toUpperCase():t.names===c.LOWER&&(r=r.toLowerCase()),t.width&&r.length>t.width.max&&(r=r.substring(0,t.width.max))}else r=f(r,t.integerFormat);else if("f"===t.component)r=f(r,t.integerFormat);else if("Z"===t.component||"z"===t.component){var i=100*n+a;if(t.integerFormat.regular)r=f(i,t.integerFormat);else{var o=t.integerFormat.mandatoryDigits;if(1===o||2===o)r=f(n,t.integerFormat),0!==a&&(r+=":"+s(a,"00"));else{if(3!==o&&4!==o)throw{code:"D3134",value:o};r=f(i,t.integerFormat)}}i>=0&&(r="+"+r),"z"===t.component&&(r="GMT"+r),0===i&&"t"===t.presentation2&&(r="Z")}return r}(u,e)}),p}function E(e){var t={};if("datetime"===e.type)t.type="datetime",t.parts=e.parts.map(function(e){var t={};if("literal"===e.type)t.regex=e.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");else if(e.integerFormat)t=E(e.integerFormat);else{t.regex="[a-zA-Z]+";var r={};if("M"===e.component||"x"===e.component)v.forEach(function(t,n){e.width&&e.width.max?r[t.substring(0,e.width.max)]=n+1:r[t]=n+1});else if("F"===e.component)g.forEach(function(t,n){n>0&&(e.width&&e.width.max?r[t.substring(0,e.width.max)]=n:r[t]=n)});else{if("P"!==e.component)throw{code:"D3133",value:e.component};r={am:0,AM:0,pm:1,PM:1}}t.parse=function(e){return r[e]}}return t.component=e.component,t});else{t.type="integer";var r=e.case===c.UPPER;switch(e.primary){case u.LETTERS:t.regex=r?"[A-Z]+":"[a-z]+",t.parse=function(e){return function(e,t){for(var r=t.charCodeAt(0),n=0,a=0;a<e.length;a++)n+=(e.charCodeAt(e.length-a-1)-r+1)*Math.pow(26,a);return n}(e,r?"A":"a")};break;case u.ROMAN:t.regex=r?"[MDCLXVI]+":"[mdclxvi]+",t.parse=function(e){return function(e){for(var t=0,r=1,n=e.length-1;n>=0;n--){var a=e[n],i=o[a];i<r?t-=i:(r=i,t+=i)}return t}(r?e:e.toUpperCase())};break;case u.WORDS:t.regex="(?:"+Object.keys(a).concat("and","[\\-, ]").join("|")+")+",t.parse=function(e){return t=e.toLowerCase(),r=[0],t.split(/,\s|\sand\s|[\s\\-]/).map(function(e){return a[e]}).forEach(function(e){if(e<100){var t=r.pop();t>=1e3&&(r.push(t),t=0),r.push(t+e)}else r.push(r.pop()*e)}),r.reduce(function(e,t){return e+t},0);var t,r};break;case u.DECIMAL:t.regex="[0-9]+",e.ordinal&&(t.regex+="(?:th|st|nd|rd)"),t.parse=function(t){var r=t;return e.ordinal&&(r=t.substring(0,t.length-2)),e.regular?r=r.split(",").join(""):e.groupingSeparators.forEach(function(e){r=r.split(e.character).join("")}),48!==e.zeroCode&&(r=r.split("").map(function(t){return String.fromCodePoint(t.codePointAt(0)-e.zeroCode+48)}).join("")),parseInt(r)}}}return t}var A=new RegExp("^\\d{4}(-[01]\\d)*(-[0-3]\\d)*(T[0-2]\\d:[0-5]\\d:[0-5]\\d)*(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");return{formatInteger:s,parseInteger:function(e,t){if(void 0!==e)return E(l(t)).parse(e)},fromMillis:function(e,t,r){if(void 0!==e)return w.call(this,e,t,r)},toMillis:function(e,t){if(void 0!==e){if(void 0===t){if(!A.test(e))throw{stack:(new Error).stack,code:"D3110",value:e};return Date.parse(e)}return function(e,t){var r=E(h(t)),n="^"+r.parts.map(function(e){return"("+e.regex+")"}).join("")+"$",a=new RegExp(n,"i").exec(e);if(null!==a){for(var i={},o=1;o<a.length;o++){var s=r.parts[o-1];s.parse&&(i[s.component]=s.parse(a[o]))}if(0===Object.getOwnPropertyNames(i).length)return;var u=0,c=function(e){u<<=1,u+=e?1:0},f=function(e){return!(~e&u||!(e&u))};"YXMxWwdD".split("").forEach(function(e){return c(i[e])});var p=!f(161)&&f(130),l=f(84),d=!l&&f(72);u=0,"PHhmsf".split("").forEach(function(e){return c(i[e])});var g=!f(23)&&f(47),v=(p?"YD":l?"XxwF":d?"XWF":"YMD")+(g?"Phmsf":"Hmsf"),b=this.environment.timestamp,m=!1,y=!1;if(v.split("").forEach(function(e){if(void 0===i[e])m?(i[e]=-1!=="MDd".indexOf(e)?1:0,y=!0):i[e]=k(b,e);else if(m=!0,y)throw{code:"D3136"}}),i.M>0?i.M-=1:i.M=0,p){var x=Date.UTC(i.Y,0),w=1e3*(i.d-1)*60*60*24,A=new Date(x+w);i.M=A.getMonth(),i.D=A.getDate()}if(l)throw{code:"D3136"};if(d)throw{code:"D3136"};return g&&(i.H=12===i.h?0:i.h,1===i.P&&(i.H+=12)),Date.UTC(i.Y,i.M,i.D,i.H,i.m,i.s,i.f)}}.call(this,e,t)}}}}();t.exports=n},{}],2:[function(e,t,r){(function(r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=e("./utils"),i=function(){var e=regeneratorRuntime.mark(A),t=regeneratorRuntime.mark(S),i=regeneratorRuntime.mark(T),o=regeneratorRuntime.mark(D),s=regeneratorRuntime.mark(O),u=regeneratorRuntime.mark(P),c=regeneratorRuntime.mark(j),f=regeneratorRuntime.mark(C),p=regeneratorRuntime.mark(N),l=regeneratorRuntime.mark(L),d=regeneratorRuntime.mark(U),h=a.isNumeric,g=a.isArrayOfStrings,v=a.isArrayOfNumbers,b=a.createSequence,m=a.isFunction,y=a.isLambda,k=a.isIterable,x=a.getFunctionArity;function w(e,t,r){if(void 0!==e){var n=Array.from(e),a=n.length;if(a+t<0&&(t=0),void 0!==r){if(r<=0)return"";var i=t>=0?t+r:a+t+r;return n.slice(t,i).join("")}return n.slice(t).join("")}}function E(e){if(void 0!==e)return Array.from(e).length}function A(t,r){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.apply(this,[r]),!k(n)){e.next=4;break}return e.delegateYield(n,"t0",3);case 3:n=e.t0;case 4:if(!n||"number"==typeof n.start||"number"===n.end||Array.isArray(n.groups)||m(n.next)){e.next=6;break}throw{code:"T1010",stack:(new Error).stack};case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}},e,this)}function S(e,r){var n,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==e){t.next=2;break}return t.abrupt("return",void 0);case 2:if("string"!=typeof r){t.next=6;break}n=-1!==e.indexOf(r),t.next=9;break;case 6:return t.delegateYield(A(r,e),"t0",7);case 7:a=t.t0,n=void 0!==a;case 9:return t.abrupt("return",n);case 10:case"end":return t.stop()}},t)}function T(e,t,r){var n,a,o;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(void 0!==e){i.next=2;break}return i.abrupt("return",void 0);case 2:if(!(r<0)){i.next=4;break}throw{stack:(new Error).stack,value:r,code:"D3040",index:3};case 4:if(n=b(),!(void 0===r||r>0)){i.next=17;break}return a=0,i.delegateYield(A(t,e),"t0",8);case 8:if(void 0===(o=i.t0)){i.next=17;break}case 10:if(void 0===o||!(void 0===r||a<r)){i.next=17;break}return n.push({match:o.match,index:o.start,groups:o.groups}),i.delegateYield(A(o.next),"t1",13);case 13:o=i.t1,a++,i.next=10;break;case 17:return i.abrupt("return",n);case 18:case"end":return i.stop()}},i)}function D(e,t,r,n){var a,i,s,u,c,f,p,l;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0!==e){o.next=2;break}return o.abrupt("return",void 0);case 2:if(a=this,""!==t){o.next=5;break}throw{code:"D3010",stack:(new Error).stack,value:t,index:2};case 5:if(!(n<0)){o.next=7;break}throw{code:"D3011",stack:(new Error).stack,value:n,index:4};case 7:if(i="string"==typeof r?function(e){for(var t="",n=0,a=r.indexOf("$",n);-1!==a&&n<r.length;){t+=r.substring(n,a),n=a+1;var i=r.charAt(n);if("$"===i)t+="$",n++;else if("0"===i)t+=e.match,n++;else{var o;if(o=0===e.groups.length?1:Math.floor(Math.log(e.groups.length)*Math.LOG10E)+1,a=parseInt(r.substring(n,n+o),10),o>1&&a>e.groups.length&&(a=parseInt(r.substring(n,n+o-1),10)),isNaN(a))t+="$";else{if(e.groups.length>0){var s=e.groups[a-1];void 0!==s&&(t+=s)}n+=a.toString().length}}a=r.indexOf("$",n)}return t+=r.substring(n)}:r,s="",u=0,!(void 0===n||n>0)){o.next=44;break}if(c=0,"string"!=typeof t){o.next=18;break}for(f=e.indexOf(t,u);-1!==f&&(void 0===n||c<n);)s+=e.substring(u,f),s+=r,u=f+t.length,c++,f=e.indexOf(t,u);s+=e.substring(u),o.next=42;break;case 18:return o.delegateYield(A(t,e),"t0",19);case 19:if(void 0===(p=o.t0)){o.next=41;break}case 21:if(void 0===p||!(void 0===n||c<n)){o.next=38;break}if(s+=e.substring(u,p.start),l=i.apply(a,[p]),!k(l)){o.next=27;break}return o.delegateYield(l,"t1",26);case 26:l=o.t1;case 27:if("string"!=typeof l){o.next=31;break}s+=l,o.next=32;break;case 31:throw{code:"D3012",stack:(new Error).stack,value:l};case 32:return u=p.start+p.match.length,c++,o.delegateYield(A(p.next),"t2",35);case 35:p=o.t2,o.next=21;break;case 38:s+=e.substring(u),o.next=42;break;case 41:s=e;case 42:o.next=45;break;case 44:s=e;case 45:return o.abrupt("return",s);case 46:case"end":return o.stop()}},o,this)}function O(e,t,r){var n,a,i,o;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(void 0!==e){s.next=2;break}return s.abrupt("return",void 0);case 2:if(!(r<0)){s.next=4;break}throw{code:"D3020",stack:(new Error).stack,value:r,index:3};case 4:if(n=[],!(void 0===r||r>0)){s.next=27;break}if("string"!=typeof t){s.next=10;break}n=e.split(t,r),s.next=27;break;case 10:return a=0,s.delegateYield(A(t,e),"t0",12);case 12:if(void 0===(i=s.t0)){s.next=26;break}o=0;case 15:if(void 0===i||!(void 0===r||a<r)){s.next=23;break}return n.push(e.substring(o,i.start)),o=i.end,s.delegateYield(A(i.next),"t1",19);case 19:i=s.t1,a++,s.next=15;break;case 23:(void 0===r||a<r)&&n.push(e.substring(o)),s.next=27;break;case 26:n.push(e);case 27:return s.abrupt("return",n);case 28:case"end":return s.stop()}},s)}function R(e,t){var r;if(void 0!==e){if(t){var n=e.toString().split("e");e=+(n[0]+"e"+(n[1]?+n[1]+t:t))}var a=(r=Math.round(e))-e;return.5===Math.abs(a)&&1===Math.abs(r%2)&&(r-=1),t&&(r=+((n=r.toString().split("e"))[0]+"e"+(n[1]?+n[1]-t:-t))),Object.is(r,-0)&&(r=0),r}}function Y(e){if(void 0!==e){var t=!1;if(Array.isArray(e)){if(1===e.length)t=Y(e[0]);else if(e.length>1){t=e.filter(function(e){return Y(e)}).length>0}}else"string"==typeof e?e.length>0&&(t=!0):h(e)?0!==e&&(t=!0):null!==e&&"object"===n(e)?Object.keys(e).length>0&&(t=!0):"boolean"==typeof e&&!0===e&&(t=!0);return t}}function M(e,t,r,n){var a=[t],i=x(e);return i>=2&&a.push(r),i>=3&&a.push(n),a}function P(e,t){var r,n,a,i;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0!==e){o.next=2;break}return o.abrupt("return",void 0);case 2:r=b(),n=0;case 4:if(!(n<e.length)){o.next=12;break}return a=M(t,e[n],n,e),o.delegateYield(t.apply(this,a),"t0",7);case 7:void 0!==(i=o.t0)&&r.push(i);case 9:n++,o.next=4;break;case 12:return o.abrupt("return",r);case 13:case"end":return o.stop()}},u,this)}function j(e,t){var r,n,a,i;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0!==e){o.next=2;break}return o.abrupt("return",void 0);case 2:r=b(),n=0;case 4:if(!(n<e.length)){o.next=13;break}return a=e[n],i=M(t,a,n,e),o.delegateYield(t.apply(this,i),"t0",8);case 8:Y(o.t0)&&r.push(a);case 10:n++,o.next=4;break;case 13:return o.abrupt("return",r);case 14:case"end":return o.stop()}},c,this)}function C(e,t,r){var n,a;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(void 0!==e){i.next=2;break}return i.abrupt("return",void 0);case 2:if(2===x(t)){i.next=4;break}throw{stack:(new Error).stack,code:"D3050",index:1};case 4:void 0===r&&e.length>0?(n=e[0],a=1):(n=r,a=0);case 5:if(!(a<e.length)){i.next=11;break}return i.delegateYield(t.apply(this,[n,e[a]]),"t0",7);case 7:n=i.t0,a++,i.next=5;break;case 11:return i.abrupt("return",n);case 12:case"end":return i.stop()}},f,this)}function F(e,t){return void 0===e?t:void 0===t?e:(Array.isArray(e)||(e=b(e)),Array.isArray(t)||(t=[t]),e.concat(t))}function N(e,t){var r,n,a,i;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:r=b(),o.t0=regeneratorRuntime.keys(e);case 2:if((o.t1=o.t0()).done){o.next=10;break}return n=o.t1.value,a=M(t,e[n],n,e),o.delegateYield(t.apply(this,a),"t2",6);case 6:void 0!==(i=o.t2)&&r.push(i),o.next=2;break;case 10:return o.abrupt("return",r);case 11:case"end":return o.stop()}},p,this)}function L(e,t){var r,n,a,i;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0!==e){o.next=2;break}return o.abrupt("return",void 0);case 2:if(!(e.length<=1)){o.next=4;break}return o.abrupt("return",e);case 4:if(void 0!==t){o.next=10;break}if(v(e)||g(e)){o.next=7;break}throw{stack:(new Error).stack,code:"D3070",index:1};case 7:r=regeneratorRuntime.mark(function e(t,r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t>r);case 1:case"end":return e.stop()}},e)}),o.next=11;break;case 10:r=t;case 11:return n=regeneratorRuntime.mark(function e(t,n){var a,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=regeneratorRuntime.mark(function e(t,n,a){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(0!==n.length){i.next=4;break}Array.prototype.push.apply(t,a),i.next=16;break;case 4:if(0!==a.length){i.next=8;break}Array.prototype.push.apply(t,n),i.next=16;break;case 8:return i.delegateYield(r(n[0],a[0]),"t0",9);case 9:if(!i.t0){i.next=14;break}return t.push(a[0]),i.delegateYield(e(t,n,a.slice(1)),"t1",12);case 12:i.next=16;break;case 14:return t.push(n[0]),i.delegateYield(e(t,n.slice(1),a),"t2",16);case 16:case"end":return i.stop()}},e)}),i=[],e.delegateYield(a(i,t,n),"t0",3);case 3:return e.abrupt("return",i);case 4:case"end":return e.stop()}},e)}),a=regeneratorRuntime.mark(function e(t){var r,a,i;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(Array.isArray(t)&&!(t.length<=1)){o.next=4;break}return o.abrupt("return",t);case 4:return r=Math.floor(t.length/2),a=t.slice(0,r),i=t.slice(r),o.delegateYield(e(a),"t0",8);case 8:return a=o.t0,o.delegateYield(e(i),"t1",10);case 10:return i=o.t1,o.delegateYield(n(a,i),"t2",12);case 12:return o.abrupt("return",o.t2);case 13:case"end":return o.stop()}},e)}),o.delegateYield(a(e),"t0",14);case 14:return i=o.t0,o.abrupt("return",i);case 16:case"end":return o.stop()}},l)}function U(e,t){var r,n,a,i;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:r={},o.t0=regeneratorRuntime.keys(e);case 2:if((o.t1=o.t0()).done){o.next=11;break}return n=o.t1.value,a=e[n],i=M(t,a,n,e),o.delegateYield(t.apply(this,i),"t2",7);case 7:Y(o.t2)&&(r[n]=a),o.next=2;break;case 11:return 0===Object.keys(r).length&&(r=void 0),o.abrupt("return",r);case 13:case"end":return o.stop()}},d,this)}return{sum:function(e){if(void 0!==e){var t=0;return e.forEach(function(e){t+=e}),t}},count:function(e){return void 0===e?0:e.length},max:function(e){if(void 0!==e&&0!==e.length)return Math.max.apply(Math,e)},min:function(e){if(void 0!==e&&0!==e.length)return Math.min.apply(Math,e)},average:function(e){if(void 0!==e&&0!==e.length){var t=0;return e.forEach(function(e){t+=e}),t/e.length}},string:function(e){if(void 0!==e){var t;if("string"==typeof e)t=e;else if(m(e))t="";else{if("number"==typeof e&&!isFinite(e))throw{code:"D3001",value:e,stack:(new Error).stack};t=JSON.stringify(e,function(e,t){return void 0!==t&&null!==t&&t.toPrecision&&h(t)?Number(t.toPrecision(15)):t&&m(t)?"":t})}return t}},substring:w,substringBefore:function(e,t){if(void 0!==e){var r=e.indexOf(t);return r>-1?e.substr(0,r):e}},substringAfter:function(e,t){if(void 0!==e){var r=e.indexOf(t);return r>-1?e.substr(r+t.length):e}},lowercase:function(e){if(void 0!==e)return e.toLowerCase()},uppercase:function(e){if(void 0!==e)return e.toUpperCase()},length:E,trim:function(e){if(void 0!==e){var t=e.replace(/[ \t\n\r]+/gm," ");return" "===t.charAt(0)&&(t=t.substring(1))," "===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t}},pad:function(e,t,r){if(void 0!==e){var n;void 0!==r&&0!==r.length||(r=" ");var a=Math.abs(t)-E(e);if(a>0){var i=new Array(a+1).join(r);r.length>1&&(i=w(i,0,a)),n=t>0?e+i:i+e}else n=e;return n}},match:T,contains:S,replace:D,split:O,join:function(e,t){if(void 0!==e)return void 0===t&&(t=""),e.join(t)},formatNumber:function(e,t,r){if(void 0!==e){var n={"decimal-separator":".","grouping-separator":",","exponent-separator":"e",infinity:"Infinity","minus-sign":"-",NaN:"NaN",percent:"%","per-mille":"‰","zero-digit":"0",digit:"#","pattern-separator":";"};void 0!==r&&Object.keys(r).forEach(function(e){n[e]=r[e]});for(var a=[],i=n["zero-digit"].charCodeAt(0),o=i;o<i+10;o++)a.push(String.fromCharCode(o));var s=a.concat([n["decimal-separator"],n["exponent-separator"],n["grouping-separator"],n.digit,n["pattern-separator"]]),u=t.split(n["pattern-separator"]);if(u.length>2)throw{code:"D3080",stack:(new Error).stack};var c=u.map(function(e){var t,r,a,i,o=function(){for(var t,r=0;r<e.length;r++)if(t=e.charAt(r),-1!==s.indexOf(t)&&t!==n["exponent-separator"])return e.substring(0,r)}(),u=function(){for(var t,r=e.length-1;r>=0;r--)if(t=e.charAt(r),-1!==s.indexOf(t)&&t!==n["exponent-separator"])return e.substring(r+1)}(),c=e.substring(o.length,e.length-u.length),f=e.indexOf(n["exponent-separator"],o.length);-1===f||f>e.length-u.length?(t=c,r=void 0):(t=c.substring(0,f),r=c.substring(f+1));var p=t.indexOf(n["decimal-separator"]);return-1===p?(a=t,i=u):(a=t.substring(0,p),i=t.substring(p+1)),{prefix:o,suffix:u,activePart:c,mantissaPart:t,exponentPart:r,integerPart:a,fractionalPart:i,subpicture:e}});c.forEach(function(e){var t,r,i=e.subpicture,o=i.indexOf(n["decimal-separator"]);o!==i.lastIndexOf(n["decimal-separator"])&&(t="D3081"),i.indexOf(n.percent)!==i.lastIndexOf(n.percent)&&(t="D3082"),i.indexOf(n["per-mille"])!==i.lastIndexOf(n["per-mille"])&&(t="D3083"),-1!==i.indexOf(n.percent)&&-1!==i.indexOf(n["per-mille"])&&(t="D3084");var u=!1;for(r=0;r<e.mantissaPart.length;r++){var c=e.mantissaPart.charAt(r);if(-1!==a.indexOf(c)||c===n.digit){u=!0;break}}u||(t="D3085"),-1!==e.activePart.split("").map(function(e){return-1===s.indexOf(e)?"p":"a"}).join("").indexOf("p")&&(t="D3086"),-1!==o?i.charAt(o-1)!==n["grouping-separator"]&&i.charAt(o+1)!==n["grouping-separator"]||(t="D3087"):e.integerPart.charAt(e.integerPart.length-1)===n["grouping-separator"]&&(t="D3088"),-1!==i.indexOf(n["grouping-separator"]+n["grouping-separator"])&&(t="D3089");var f=e.integerPart.indexOf(n.digit);-1!==f&&e.integerPart.substring(0,f).split("").filter(function(e){return a.indexOf(e)>-1}).length>0&&(t="D3090"),-1!==(f=e.fractionalPart.lastIndexOf(n.digit))&&e.fractionalPart.substring(f).split("").filter(function(e){return a.indexOf(e)>-1}).length>0&&(t="D3091");var p="string"==typeof e.exponentPart;if(p&&e.exponentPart.length>0&&(-1!==i.indexOf(n.percent)||-1!==i.indexOf(n["per-mille"]))&&(t="D3092"),p&&(0===e.exponentPart.length||e.exponentPart.split("").filter(function(e){return-1===a.indexOf(e)}).length>0)&&(t="D3093"),t)throw{code:t,stack:(new Error).stack}});var f,p,l,d,h=c.map(function(e){var t=function(t,r){for(var i=[],o=t.indexOf(n["grouping-separator"]);-1!==o;){var s=(r?t.substring(0,o):t.substring(o)).split("").filter(function(e){return-1!==a.indexOf(e)||e===n.digit}).length;i.push(s),o=e.integerPart.indexOf(n["grouping-separator"],o+1)}return i},r=t(e.integerPart),i=function(e){if(0===e.length)return 0;for(var t=e.reduce(function e(t,r){return 0===r?t:e(r,t%r)}),r=1;r<=e.length;r++)if(-1===e.indexOf(r*t))return 0;return t}(r),o=t(e.fractionalPart,!0),s=e.integerPart.split("").filter(function(e){return-1!==a.indexOf(e)}).length,u=s,c=e.fractionalPart.split(""),f=c.filter(function(e){return-1!==a.indexOf(e)}).length,p=c.filter(function(e){return-1!==a.indexOf(e)||e===n.digit}).length,l="string"==typeof e.exponentPart;0===s&&0===p&&(l?(f=1,p=1):s=1),l&&0===s&&-1!==e.integerPart.indexOf(n.digit)&&(s=1),0===s&&0===f&&(f=1);var d=0;return l&&(d=e.exponentPart.split("").filter(function(e){return-1!==a.indexOf(e)}).length),{integerPartGroupingPositions:r,regularGrouping:i,minimumIntegerPartSize:s,scalingFactor:u,prefix:e.prefix,fractionalPartGroupingPositions:o,minimumFactionalPartSize:f,maximumFactionalPartSize:p,minimumExponentSize:d,suffix:e.suffix,picture:e.subpicture}}),g=n["minus-sign"],v=n["zero-digit"],b=n["decimal-separator"],m=n["grouping-separator"];if(1===h.length&&(h.push(JSON.parse(JSON.stringify(h[0]))),h[1].prefix=g+h[1].prefix),p=-1!==(f=e>=0?h[0]:h[1]).picture.indexOf(n.percent)?100*e:-1!==f.picture.indexOf(n["per-mille"])?1e3*e:e,0===f.minimumExponentSize)l=p;else{var y=Math.pow(10,f.scalingFactor),k=Math.pow(10,f.scalingFactor-1);for(l=p,d=0;l<k;)l*=10,d-=1;for(;l>y;)l/=10,d+=1}var x=function(e,t){var r=Math.abs(e).toFixed(t);return"0"!==v&&(r=r.split("").map(function(e){return e>="0"&&e<="9"?a[e.charCodeAt(0)-48]:e}).join("")),r},w=x(R(l,f.maximumFactionalPartSize),f.maximumFactionalPartSize),E=w.indexOf(".");for(-1===E?w+=b:w=w.replace(".",b);w.charAt(0)===v;)w=w.substring(1);for(;w.charAt(w.length-1)===v;)w=w.substring(0,w.length-1);E=w.indexOf(b);var A=f.minimumIntegerPartSize-E,S=f.minimumFactionalPartSize-(w.length-E-1);if(w=(A>0?new Array(A+1).join(v):"")+w,w+=S>0?new Array(S+1).join(v):"",E=w.indexOf(b),f.regularGrouping>0)for(var T=Math.floor((E-1)/f.regularGrouping),D=1;D<=T;D++)w=[w.slice(0,E-D*f.regularGrouping),m,w.slice(E-D*f.regularGrouping)].join("");else f.integerPartGroupingPositions.forEach(function(e){w=[w.slice(0,E-e),m,w.slice(E-e)].join(""),E++});if(E=w.indexOf(b),f.fractionalPartGroupingPositions.forEach(function(e){w=[w.slice(0,e+E+1),m,w.slice(e+E+1)].join("")}),E=w.indexOf(b),-1!==f.picture.indexOf(b)&&E!==w.length-1||(w=w.substring(0,w.length-1)),void 0!==d){var O=x(d,0);(A=f.minimumExponentSize-O.length)>0&&(O=new Array(A+1).join(v)+O),w=w+n["exponent-separator"]+(d<0?g:"")+O}return w=f.prefix+w+f.suffix}},formatBase:function(e,t){if(void 0!==e){if(e=R(e),(t=void 0===t?10:R(t))<2||t>36)throw{code:"D3100",stack:(new Error).stack,value:t};return e.toString(t)}},number:function(e){var t;if(void 0!==e){if("number"==typeof e)t=e;else if("string"==typeof e&&/^-?(0|([1-9][0-9]*))(\.[0-9]+)?([Ee][-+]?[0-9]+)?$/.test(e)&&!isNaN(parseFloat(e))&&isFinite(e))t=parseFloat(e);else if(!0===e)t=1;else{if(!1!==e)throw{code:"D3030",value:e,stack:(new Error).stack,index:1};t=0}return t}},floor:function(e){if(void 0!==e)return Math.floor(e)},ceil:function(e){if(void 0!==e)return Math.ceil(e)},round:R,abs:function(e){if(void 0!==e)return Math.abs(e)},sqrt:function(e){if(void 0!==e){if(e<0)throw{stack:(new Error).stack,code:"D3060",index:1,value:e};return Math.sqrt(e)}},power:function(e,t){var r;if(void 0!==e){if(r=Math.pow(e,t),!isFinite(r))throw{stack:(new Error).stack,code:"D3061",index:1,value:e,exp:t};return r}},random:function(){return Math.random()},boolean:Y,not:function(e){return!Y(e)},map:P,zip:function(){for(var e=[],t=Array.prototype.slice.call(arguments),r=Math.min.apply(Math,t.map(function(e){return Array.isArray(e)?e.length:0})),n=0;n<r;n++){var a=t.map(function(e){return e[n]});e.push(a)}return e},filter:j,foldLeft:C,sift:U,keys:function e(t){var r=b();if(Array.isArray(t)){var a={};t.forEach(function(t){e(t).forEach(function(e){a[e]=!0})}),r=e(a)}else null===t||"object"!==n(t)||y(t)||Object.keys(t).forEach(function(e){return r.push(e)});return r},lookup:function e(t,r){var a;if(Array.isArray(t)){a=b();for(var i=0;i<t.length;i++){var o=e(t[i],r);void 0!==o&&a.push(o)}}else null!==t&&"object"===n(t)&&(a=t[r]);return a},append:F,exists:function(e){return void 0!==e},spread:function e(t){var r=b();if(Array.isArray(t))t.forEach(function(t){r=F(r,e(t))});else if(null===t||"object"!==n(t)||y(t))r=t;else for(var a in t){var i={};i[a]=t[a],r.push(i)}return r},merge:function(e){if(void 0!==e){var t={};return e.forEach(function(e){for(var r in e)t[r]=e[r]}),t}},reverse:function(e){if(void 0!==e){if(e.length<=1)return e;for(var t=e.length,r=new Array(t),n=0;n<t;n++)r[t-n-1]=e[n];return r}},each:N,sort:L,shuffle:function(e){if(void 0!==e){if(e.length<=1)return e;for(var t=new Array(e.length),r=0;r<e.length;r++){var n=Math.floor(Math.random()*(r+1));r!==n&&(t[r]=t[n]),t[n]=e[r]}return t}},base64encode:function(e){if(void 0!==e)return("undefined"!=typeof window?window.btoa:function(e){return new r.Buffer(e,"binary").toString("base64")})(e)},base64decode:function(e){if(void 0!==e)return("undefined"!=typeof window?window.atob:function(e){return new r.Buffer(e,"base64").toString("binary")})(e)}}}();t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./utils":6}],3:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=e("./datetime"),i=e("./functions"),o=e("./utils"),s=e("./parser"),u=e("./signature"),c=function(){var e=regeneratorRuntime.mark(N),t=regeneratorRuntime.mark(L),r=regeneratorRuntime.mark(U),c=regeneratorRuntime.mark(I),f=regeneratorRuntime.mark(_),p=regeneratorRuntime.mark(z),l=regeneratorRuntime.mark($),d=regeneratorRuntime.mark(K),h=regeneratorRuntime.mark(te),g=regeneratorRuntime.mark(re),v=regeneratorRuntime.mark(ne),b=regeneratorRuntime.mark(oe),m=regeneratorRuntime.mark(ce),y=regeneratorRuntime.mark(fe),k=regeneratorRuntime.mark(pe),x=regeneratorRuntime.mark(le),w=regeneratorRuntime.mark(he),E=regeneratorRuntime.mark(ve),A=regeneratorRuntime.mark(ye),S=regeneratorRuntime.mark(we),T=o.isNumeric,D=o.isArrayOfStrings,O=o.isArrayOfNumbers,R=o.createSequence,Y=o.isSequence,M=o.isFunction,P=o.isLambda,j=o.isIterable,C=o.getFunctionArity,F=Ee(null);function N(t,r,n){var a,i,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(i=n.lookup("__evaluate_entry"))&&i(t,r,n),e.t0=t.type,e.next="path"===e.t0?5:"binary"===e.t0?8:"unary"===e.t0?11:"name"===e.t0?14:"string"===e.t0?16:"number"===e.t0?16:"value"===e.t0?16:"wildcard"===e.t0?18:"descendant"===e.t0?20:"condition"===e.t0?22:"block"===e.t0?25:"bind"===e.t0?28:"regex"===e.t0?31:"function"===e.t0?33:"variable"===e.t0?36:"lambda"===e.t0?38:"partial"===e.t0?40:"apply"===e.t0?43:"sort"===e.t0?46:"transform"===e.t0?49:51;break;case 5:return e.delegateYield(L(t,r,n),"t1",6);case 6:return a=e.t1,e.abrupt("break",51);case 8:return e.delegateYield(z(t,r,n),"t2",9);case 9:return a=e.t2,e.abrupt("break",51);case 11:return e.delegateYield($(t,r,n),"t3",12);case 12:return a=e.t3,e.abrupt("break",51);case 14:return a=q(t,r,n),e.abrupt("break",51);case 16:return a=G(t),e.abrupt("break",51);case 18:return a=W(t,r),e.abrupt("break",51);case 20:return a=H(t,r),e.abrupt("break",51);case 22:return e.delegateYield(re(t,r,n),"t4",23);case 23:return a=e.t4,e.abrupt("break",51);case 25:return e.delegateYield(ne(t,r,n),"t5",26);case 26:return a=e.t5,e.abrupt("break",51);case 28:return e.delegateYield(te(t,r,n),"t6",29);case 29:return a=e.t6,e.abrupt("break",51);case 31:return a=ae(t),e.abrupt("break",51);case 33:return e.delegateYield(fe(t,r,n),"t7",34);case 34:return a=e.t7,e.abrupt("break",51);case 36:return a=ie(t,r,n),e.abrupt("break",51);case 38:return a=de(t,r,n),e.abrupt("break",51);case 40:return e.delegateYield(he(t,r,n),"t8",41);case 41:return a=e.t8,e.abrupt("break",51);case 43:return e.delegateYield(ce(t,r,n),"t9",44);case 44:return a=e.t9,e.abrupt("break",51);case 46:return e.delegateYield(oe(t,r,n),"t10",47);case 47:return a=e.t10,e.abrupt("break",51);case 49:return a=se(t,r,n),e.abrupt("break",51);case 51:if(!n.async||void 0!==a&&null!==a&&"function"==typeof a.then||(a=Promise.resolve(a)),!n.async||"function"!=typeof a.then||!t.nextFunction||"function"!=typeof a[t.nextFunction]){e.next=55;break}e.next=58;break;case 55:return e.next=57,a;case 57:a=e.sent;case 58:if(!t.hasOwnProperty("predicate")){e.next=61;break}return e.delegateYield(I(t.predicate,a,n),"t11",60);case 60:a=e.t11;case 61:if(!t.hasOwnProperty("group")){e.next=64;break}return e.delegateYield(K(t.group,a,n),"t12",63);case 63:a=e.t12;case 64:return(o=n.lookup("__evaluate_exit"))&&o(t,r,n,a),a&&Y(a)&&(t.keepArray&&(a.keepSingleton=!0),0===a.length?a=void 0:1===a.length&&(a=a.keepSingleton?a:a[0])),e.abrupt("return",a);case 68:case"end":return e.stop()}},e)}function L(e,r,n){var a,i,o,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a="variable"===e.steps[0].type?R(r):Array.isArray(r)?r:R(r),o=0;case 2:if(!(o<e.steps.length)){t.next=18;break}if(s=e.steps[o],0!==o||!s.consarray){t.next=10;break}return t.delegateYield(N(s,a,n),"t0",6);case 6:i=t.t0,Array.isArray(i)||(i=R(i)),t.next=12;break;case 10:return t.delegateYield(U(s,a,n,o===e.steps.length-1),"t1",11);case 11:i=t.t1;case 12:if(void 0!==i&&0!==i.length){t.next=14;break}return t.abrupt("break",18);case 14:a=i;case 15:o++,t.next=2;break;case 18:return e.keepSingletonArray&&(i.keepSingleton=!0),t.abrupt("return",i);case 20:case"end":return t.stop()}},t)}function U(e,t,n,a){var i,o,s,u;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:i=R(),o=0;case 2:if(!(o<t.length)){r.next=9;break}return r.delegateYield(N(e,t[o],n),"t0",4);case 4:void 0!==(s=r.t0)&&i.push(s);case 6:o++,r.next=2;break;case 9:return u=R(),a&&1===i.length&&Array.isArray(i[0])&&!Y(i[0])?u=i[0]:i.forEach(function(e){!Array.isArray(e)||e.cons?u.push(e):Array.prototype.push.apply(u,e)}),r.abrupt("return",u);case 12:case"end":return r.stop()}},r)}function I(e,t,r){var n,a,i,o,s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n=t,a=R(),i=0;case 3:if(!(i<e.length)){u.next=19;break}if(o=e[i],Array.isArray(n)||(n=R(n)),a=R(),"number"!==o.type){u.next=13;break}(s=Math.floor(o.value))<0&&(s=n.length+s),a=n[s],u.next=15;break;case 13:return u.delegateYield(_(o,n,r),"t0",14);case 14:a=u.t0;case 15:n=a;case 16:i++,u.next=3;break;case 19:return u.abrupt("return",a);case 20:case"end":return u.stop()}},c)}function _(e,t,r){var n,a,o,s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n=R(),a=0;case 2:if(!(a<t.length)){u.next=11;break}return o=t[a],u.delegateYield(N(e,o,r),"t0",5);case 5:s=u.t0,T(s)&&(s=[s]),O(s)?s.forEach(function(e){var r=Math.floor(e);r<0&&(r=t.length+r),r===a&&n.push(o)}):i.boolean(s)&&n.push(o);case 8:a++,u.next=2;break;case 11:return u.abrupt("return",n);case 12:case"end":return u.stop()}},f)}function z(e,t,r){var n,a,i,o;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.delegateYield(N(e.lhs,t,r),"t0",1);case 1:return a=s.t0,s.delegateYield(N(e.rhs,t,r),"t1",3);case 3:i=s.t1,o=e.value,s.prev=5,s.t2=o,s.next="+"===s.t2?9:"-"===s.t2?9:"*"===s.t2?9:"/"===s.t2?9:"%"===s.t2?9:"="===s.t2?11:"!="===s.t2?11:"<"===s.t2?13:"<="===s.t2?13:">"===s.t2?13:">="===s.t2?13:"&"===s.t2?15:"and"===s.t2?17:"or"===s.t2?17:".."===s.t2?19:"in"===s.t2?21:23;break;case 9:return n=Z(a,i,o),s.abrupt("break",23);case 11:return n=B(a,i,o),s.abrupt("break",23);case 13:return n=J(a,i,o),s.abrupt("break",23);case 15:return n=V(a,i),s.abrupt("break",23);case 17:return n=Q(a,i,o),s.abrupt("break",23);case 19:return n=ee(a,i),s.abrupt("break",23);case 21:return n=X(a,i),s.abrupt("break",23);case 23:s.next=30;break;case 25:throw s.prev=25,s.t3=s.catch(5),s.t3.position=e.position,s.t3.token=o,s.t3;case 30:return s.abrupt("return",n);case 31:case"end":return s.stop()}},p,null,[[5,25]])}function $(e,t,r){var n,a,o,s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:u.t0=e.value,u.next="-"===u.t0?3:"["===u.t0?15:"{"===u.t0?27:30;break;case 3:return u.delegateYield(N(e.expression,t,r),"t1",4);case 4:if(void 0!==(n=u.t1)){u.next=9;break}n=void 0,u.next=14;break;case 9:if(!T(n)){u.next=13;break}n=-n,u.next=14;break;case 13:throw{code:"D1002",stack:(new Error).stack,position:e.position,token:e.value,value:n};case 14:return u.abrupt("break",30);case 15:n=[],a=0;case 17:if(!(a<e.expressions.length)){u.next=25;break}return o=e.expressions[a],u.delegateYield(N(o,t,r),"t2",20);case 20:void 0!==(s=u.t2)&&("["===o.value?n.push(s):n=i.append(n,s));case 22:a++,u.next=17;break;case 25:return e.consarray&&Object.defineProperty(n,"cons",{enumerable:!1,configurable:!1,value:!0}),u.abrupt("break",30);case 27:return u.delegateYield(K(e,t,r),"t3",28);case 28:return n=u.t3,u.abrupt("break",30);case 30:return u.abrupt("return",n);case 31:case"end":return u.stop()}},l)}function q(e,t,r){return i.lookup(t,e.value)}function G(e){return e.value}function W(e,t){var r=R();return null!==t&&"object"===n(t)&&Object.keys(t).forEach(function(e){var n=t[e];Array.isArray(n)?(n=function e(t,r){void 0===r&&(r=[]);Array.isArray(t)?t.forEach(function(t){e(t,r)}):r.push(t);return r}(n),r=i.append(r,n)):r.push(n)}),r}function H(e,