This class includes methods which collect WebTerminal's analytics such as error and installation reports.64156,2938.35914264154,83594.957495
This method sends a report about installation status, including error message if any errors happened.1status:%Status=1,type:%String="Install"%StatusCommon64357,866.93829863906,49098.662696
Returns a comma-delimited string of globals names in the namespace, which begin from "beginning".1namespace:%String="%SYS",beginning:%String=""%String
Returns a comma-delimited string of class names in the namespace, which begin from "beginning".1namespace:%String="%SYS",beginning:%String=""%String 2)
return ids
]]>
Returns a comma-delimited string of public class members (accessible through ##class() construction) in the class of namespace.1namespace:%String="%SYS",className:%String="",beginning:%String=""%String
Returns a comma-delimited string of class members in the class of namespace.1namespace:%String="%SYS",className:%String="",beginning:%String="",methodsOnly=""%String
Returns a comma-delimited string of class members in the class of namespace.1namespace:%String="%SYS",className:%String="",beginning:%String=""%String
Returns a comma-delimited string of routine names in the namespace, which begin from "beginning".1namespace:%String="%SYS",beginning:%String=""%String%sySystem64570,80168.32779263906,39668.673891
Interprocess communication cannot handle big messages at once, so they need to be split.45
Send the chunk of data to another process. The process need to receive the chunk with the
appropriate function ReceiveChunk. Consider event length less than 44 characters long.1pid:%Numeric,flag:%String,data:%String=""%Status len) { quit }
}
return $$$OK
]]>
Receives the chunk of data from another process. Returns the $LISTBUILD string which contains
flag at the first position and string at the second. This method also terminates the process
if the parent process is gone.1timeout:%Numeric=-1,masterProcess=0%String
This method is called when a proxy object is used in conjunction with
the %ZEN.Auxiliary.jsonProvider component. format is a flags string to control output formatting options.
The following character option codes are supported:
1-9 : indent with this number of spaces (4 is the default with the 'i' format specifier)
a - output null arrays/objects
b - line break before opening { of objects
c - output the Caché-specific "_class" and "_id" properties (if a child property is an instance of a concrete object class)
e - output empty object properties
i - indent with 4 spaces unless 't' or 1-9
l - output empty lists
n - newline (lf)
o - output empty arrays/objects
q - output numeric values unquoted even when they come from a non-numeric property
s - use strict JSON output - NOTE: special care should be taken when sending data to a browser, as using this flag
may expose you to cross site scripting (XSS) vulnerabilities if the data is sent inside <script> tags. Zen uses
this technique extensively, so this flag should NOT be specified for jsonProviders in Zen pages.
t - indent with tab character
u - output pre-converted to UTF-8 instead of in native internal format
w - Windows-style cr/lf newline ]]>1obj:%ZEN.proxyObject,format:%String="aeos"0%String
Cache WEB Terminal version 4.8.0 core.
The core class which handles client requests and executes COS code.
All writes used here are used for $X and $Y compatibility, but they actually do not
write any code to the screen.0Common64855,68841.2689464075,84588.808108
Write and read redirects used when redirecting i/o.
Each of the redirects signals to $ZPARENT process the $LISTBUILD string.
There is several actions defined in the WebTerminal.Engine handler class for received list.
"o" is for output. Resulting with $lb("o", {string})
"r" is for reading string. Resulting with $lb("r", {length}, {timeout})
"rc" is for reading char. Resulting with $lb("rc", {timeout})
"end" symbolizes that execution end is reached. Resulting with $lb("end", {error message})1011%String
Retrieves a command text from the parent process.
Terminates itself if the parent process is dead.11%String
Starts new terminal loop. Must be called with JOB command.1startupRoutine:%String=""%Status1routineName=""%Status11error=""
Cache WEB Terminal version 4.8.0 WebSocket client.
This class represents a connected client via WebSocket.%CSP.WebSocket,Common,Trace,Autocomplete64855,68841.27656163891,56786.028532
Timeout in minutes when connection key expires.3600
How long to wait for authorization key when connection established5%String%String%String
The process ID of the terminal core.%Numeric0
The last known namespace in child process.%String%String
Output flag%Boolean1
flag which enables output buffering%Boolean0
Used to buffer the output ("o" flag) when bufferOutput flag is set%Stream.TmpCharacter##class(%Stream.TmpCharacter).%New()
Output flag%Boolean01timeout:%Integer=86400%ZEN.proxyObject
Do not remove this method in future versions of WebTerminal, it is used by update.handler:%String="",data=""%Status%Status%Status1filename:%String,data:%String%Statusquery:%String=""%Status
This method performs the authorization and login to WebTerminal.
It returns a list with data (see Router.Auth method), which is used then to set up the
initial values for the client.%List ..#WSKEYEXPIRES) {
kill ^WebTerminal("AuthUser", key)
}
set key = $ORDER(^WebTerminal("AuthUser", key))
}
if (list = "") { // not found
return $LB("Invalid key")
}
set username = $LISTGET(list, 1)
set namespace = $LISTGET(list, 3)
set ns = $Namespace
znspace "%SYS"
do ##class(Security.Users).Get(username, .userProps)
znspace ns
set namespace = $case(namespace, "":userProps("NameSpace"), :namespace)
if ($get(userProps("Routine")) '= "") {
set ..StartupRoutine = userProps("Routine")
}
if $get(userProps("Enabled")) '= 1 {
return $LB("User " _ username _ " is not enabled in the system")
}
set $LIST(list, 3) = namespace
set loginStatus = $System.Security.Login(username)
if (loginStatus '= 1) {
return $LB($System.Status.GetErrorText(loginStatus))
}
return $LB("", list)
]]>
See WebTerminal.Handlershandler:%String,data1%Status
Main method for every new client.1%StatusauthList See Router.Auth method.]]>authList:%List
Triggered when new connection established.%Status64351,61737.71034964321,67558.658473%Numeric5
Takes $ZERROR function result.
Returns either simple string or %ZEN.proxyObject representing the error details.1err:%String="",ns:%String=""")
return:(startPos = 0) err
set spacePos = $FIND(err, " ") - 1
return:(spacePos = startPos) err
set label = $EXTRACT(err, startPos, $case(spacePos = -1, 1:999, :spacePos-1))
return:(label = "") err
try {
set obj = ##class(%ZEN.proxyObject).%New()
set obj.zerror = err
set plusPos = $FIND(label, "+")
set cPos = $FIND(label, "^")
if (plusPos = 0) || (cPos = 0) {
set obj.source = $TEXT(@label)
set obj.line = 0
return obj
}
set line = +$EXTRACT(label, plusPos, cPos - 2)
set part1 = $EXTRACT(label, 1, plusPos - 1)
set part2 = $EXTRACT(label, cPos - 1, *)
set range = ..#LINES \ 2
set obj.source = ""
set obj.line = 0
for i=line-range:1:line+range {
continue:(i < 1)
set label = part1 _ i _ part2
set text = $TEXT(@label)
set:(text '= "") obj.source = obj.source _ $case(obj.source = "", 1: "", :$C(10)) _ text
set:((text '= "") && (i < line)) obj.line = obj.line + 1
}
return obj
} catch (e) {
return err
}
return err
]]>
Cache WEB Terminal version 4.8.0 WebSocket handlers class.
This class describes handlers for WebSocket client. Each handler method takes WS client instance
as a first argument, and a given data as second. For example, handler for "execute"
command will be names as "HandleExecute". Note that all the processing is synchronous and it
blocks the WebSocket input while processing.
This class is inherited by WebTerminal.Engine class.
Methods must return positive status or an error if one happened.
Method must take two arguments, the first is the WebTerminal.Engine instance, and data as second64855,68841.47117664093,55627.951301
data can be either string or %ZEN.proxyObject. In case of proxyObject, the command is hold in
data.command property, and it may have some other control properties.1client:WebTerminal.Engine,data,bareStart:%Boolean=0%Status1client:WebTerminal.Engine,URL:%String1client:WebTerminal.Engine,data1client:WebTerminal.Engine,part:%String%Status1client:WebTerminal.Engine,part:%String%Status1client:WebTerminal.Engine,part:%String%Status1client:WebTerminal.Engine,data:%ZEN.proxyObject%Status1client:WebTerminal.Engine,data:%ZEN.proxyObject%Status1client:WebTerminal.Engine,data:%ZEN.proxyObject%Status1client:WebTerminal.Engine,value:%String=""%Status1client:WebTerminal.Engine,data:%ZEN.proxyObject=""%Status max) quit
set l = ##class(%ListOfDataTypes).%New()
do dt.Insert(l)
for c=1:1:cols {
do l.Insert(rs.GetData(c))
}
}
set:(headers.Count() > 0) obj.headers = headers
set:(dt.Count() > 0) obj.data = dt
do client.Send(, obj)
return $$$OK
]]>1client:WebTerminal.Engine,data:%ZEN.proxyObject=""%Status1client:WebTerminal.Engine,data:%ZEN.proxyObject=""%Status 0
while ($LISTLENGTH(client.Watches) > 0) {
set stopped = client.StopTracing($LIST(client.Watches, 1))
}
do client.Send(, obj)
return $$$OK
]]>1client:WebTerminal.Engine,data:%ZEN.proxyObject=""%Status $LENGTH(client.Watches)) {
for i=1:1:$LISTLENGTH(oldWatch) {
if ($LISTFIND(client.Watches, $LISTGET(oldWatch, i)) = 0) {
set $PROPERTY(obj.stop, $LISTGET(oldWatch, i)) = 1
}
}
}
do client.Send(, obj)
return $$$OK
]]>1client:WebTerminal.Engine,data:%ZEN.proxyObject=""%Status1client:WebTerminal.Engine,data:%ZEN.proxyObject=""%Status
Importing this class will install Cache WEB Terminal properly.%Projection.AbstractProjection64855,68841.27081863890,71053.144208RouterWebTerminal.Router%WebTerminalWebTerminalInstaller4.8.01name:%String,spec%Status1name:%String
This method is invoked when a class is compiled.1%Status The user " _ $Username _ " has no privileges"
_ " to enter the %SYS namespace. Please, log in as a privileged user"
_ " to set up the WebTerminal application."
set err = $$$ERROR($$$GeneralError, mes)
do ##class(WebTerminal.Analytics).ReportInstallStatus(err)
write !, mes
return err
}
set cspProperties("AutheEnabled") = $$$AutheCache
set cspProperties("NameSpace") = ns
set cspProperties("Description") = "A WEB application for Cache WEB Terminal."
set cspProperties("IsNameSpaceDefault") = $$$NO
set cspProperties("DispatchClass") = ..#DispatchClass
set st = ..RegisterWebApplication("/terminal", .cspProperties)
do:($$$ISERR(st)) ##class(WebTerminal.Analytics).ReportInstallStatus(st)
return:$$$ISERR(st) st
set cspProperties("AutheEnabled") = $$$AutheUnauthenticated
set cspProperties("Description") = "An application representing the open socket for /terminal application."
set cspProperties("DispatchClass") = ""
set role = ..GetDBRole(dbdir)
if ($system.Version.GetISCProduct() >= 4) {
set cspProperties("MatchRoles")=":%DB_IRISSYS" _ $case($get(role)'="", 1: ":"_role, :"")
} else {
set cspProperties("MatchRoles")=":%DB_CACHESYS" _ $case($get(role)'="", 1: ":"_role, :"")
}
set st = ..RegisterWebApplication("/terminalsocket", .cspProperties)
do:($$$ISERR(st)) ##class(WebTerminal.Analytics).ReportInstallStatus(st)
return:$$$ISERR(st) st
do ..CreateAllNamespace()
write !, "Mapping %WebTerminal package into all namespaces:"
set st = ..Map(ns)
if ($$$ISERR(st)) {
do $System.Status.DisplayError(st)
do ##class(WebTerminal.Analytics).ReportInstallStatus(st)
} else {
write !, "WebTerminal package successfully mapped into all namespaces."
do ##class(WebTerminal.Analytics).ReportInstallStatus(1)
}
if (##class(Security.Resources).Exists(..#ResourceName) = 0) {
set st = ##class(Security.Resources).Create(..#ResourceName,
"Grants access to WebTerminal if set up.", "")
}
if (##class(Security.Roles).Exists(..#RoleName) = 0) {
set st = ##class(Security.Roles).Create(..#RoleName,
"WebTerminal user role which may grant access to WebTerminal application if set up.",
"%WebTerminal:RWU")
}
return st
]]>
This method is invoked when a class is 'uncompiled'.1%Status1directory:%String%String1%Status= 4) {
set Properties("Globals") = "IRISTEMP"
set Properties("Library") = "IRISLIB"
set Properties("Routines") = "IRISTEMP"
set Properties("SysGlobals") = "IRISSYS"
set Properties("SysRoutines") = "IRISSYS"
set Properties("TempGlobals") = "IRISTEMP"
} else {
set Properties("Globals") = "CACHETEMP"
set Properties("Library") = "CACHELIB"
set Properties("Routines") = "CACHETEMP"
set Properties("SysGlobals") = "CACHESYS"
set Properties("SysRoutines") = "CACHESYS"
set Properties("TempGlobals") = "CACHETEMP"
}
set st = ##Class(Config.Namespaces).Create(ns, .Properties)
if ($$$ISERR(st)) {
do $System.Status.DisplayError(st)
} else {
write !, "%All namespace is created."
}
}
return st
]]>1fromNS=""%Status1fromNS:%String%Status
The REST interface: class that routes HTTP requestsStaticContent%CSP.REST64298,69214.80300463890,69646.001045
]]>
Calls StaticContent.Write method or sends not modified header. Type have to be "css" or "js"1type:%String,ContentType:%String=""11%Status
Method writes application CSS.1%Status
Method writes application theme.1Theme:%String%Status
Method writes application JavaScript.1%Status
Method writes application HTML.1%Status
This class holds whole application static content like scripts and styles.
Do not edit this file - use external tool to generate it.64855,69084.45851163890,69938.115592
Write the contents of xData tag1Const:%String%Status
]]>
Caché WEB Terminal
]]]]>
]]>
.indicator{position:fixed;right:13px;top:7px;border:3px solid #fff;border-radius:30px;height:30px;margin:-15px 0 0 -15px;opacity:0;width:30px;animation:b infinite 1s}.terminal table{border-collapse:collapse;border:1px solid #666}.terminal table td,.terminal table th{padding:2px;border:1px solid #666}.terminal table td:nth-child(2n-1),.terminal table th:nth-child(2n-1){background:#222}.terminal table th{font-weight:700}a{color:#00ce00}.terminal .output .line .g.m1{font-weight:900}.terminal .output .line .g.m2{opacity:.7}.terminal .output .line .g.m3{font-style:italic}.terminal .output .line .g.m4{text-decoration:underline}.terminal .output .line .g.m5{animation:a infinite 1s}.terminal .output .line .g.m7{-khtml-filter:invert(100%);-moz-filter:invert(100%);-o-filter:invert(100%);-ms-filter:invert(100%);-webkit-filter:invert(100%);filter:invert(100%)}.terminal .output .line .g.m8{opacity:0}.terminal .output .line .g.hint{opacity:.5}.terminal .output .line .g.m30{color:#000}.terminal .output .line .g.m31{color:red}.terminal .output .line .g.m32{color:green}.terminal .output .line .g.m33{color:#ff0}.terminal .output .line .g.m34{color:#00f}.terminal .output .line .g.m35{color:#f0f}.terminal .output .line .g.m36{color:cyan}.terminal .output .line .g.m37{color:#fff}.terminal .output .line .g.m40{background-color:#000}.terminal .output .line .g.m41{background-color:red}.terminal .output .line .g.m42{background-color:green}.terminal .output .line .g.m43{background-color:#ff0}.terminal .output .line .g.m44{background-color:#00f}.terminal .output .line .g.m45{background-color:#f0f}.terminal .output .line .g.m46{background-color:cyan}.terminal .output .line .g.m47{background-color:#fff}.terminal .output .line .g.keyword{color:#4898ff}.terminal .output .line .g.string{color:#00c700}.terminal .output .line .g.constant{color:cyan}.terminal .output .line .g.special{color:#ff0}.terminal .output .line .g.variable{color:#ffa07a}.terminal .output .line .g.selected{color:#fff;background-color:#4169e1}.terminal .output .line .g.argument{color:#da7cff}.terminal .output .line .g.error{display:inline-block;position:relative}.terminal .output .line .g.error:after{content:"";position:absolute;display:block;bottom:0;left:0;width:100%;height:0;border-top:1px dashed red}.terminal .output .line .g.wrong{color:red}.terminal .output .line .g.global{color:#ef6913}.terminal .output .line .g.classname{color:cyan}@keyframes a{0%{-khtml-filter:invert(0);-moz-filter:invert(0);-o-filter:invert(0);-ms-filter:invert(0);-webkit-filter:invert(0);filter:invert(0)}50%{-khtml-filter:invert(100%);-moz-filter:invert(100%);-o-filter:invert(100%);-ms-filter:invert(100%);-webkit-filter:invert(100%);filter:invert(100%)}to{-khtml-filter:invert(0);-moz-filter:invert(0);-o-filter:invert(0);-ms-filter:invert(0);-webkit-filter:invert(0);filter:invert(0)}}@keyframes b{0%{transform:scale(.1);-o-transform:scale(.1);-ms-transform:scale(.1);-moz-transform:scale(.1);-webkit-transform:scale(.1);opacity:0}50%{opacity:1}to{transform:scale(.5);-o-transform:scale(.5);-ms-transform:scale(.5);-moz-transform:scale(.5);-webkit-transform:scale(.5);opacity:0}}.terminal .hintBox{position:absolute;left:0;top:0;width:300px;max-width:75%;height:0;overflow:visible;z-index:100}.terminal .hintBox>div{position:absolute;transition:all .3s ease;color:gray;border-radius:10px}]]]]>
]]>
=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=m.call(o,"catchLoc"),s=m.call(o,"finallyLoc");if(i&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&m.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),I}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=_),I}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,n){e("../../modules/core.regexp.escape"),t.exports=e("../../modules/_core").RegExp.escape},{"../../modules/_core":24,"../../modules/core.regexp.escape":129}],4:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],5:[function(e,t,n){var r=e("./_cof");t.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},{"./_cof":19}],6:[function(e,t,n){var r=e("./_wks")("unscopables"),o=Array.prototype;void 0==o[r]&&e("./_hide")(o,r,{}),t.exports=function(e){o[r][e]=!0}},{"./_hide":43,"./_wks":127}],7:[function(e,t,n){t.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},{}],8:[function(e,t,n){var r=e("./_is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":52}],9:[function(e,t,n){"use strict";var r=e("./_to-object"),o=e("./_to-absolute-index"),a=e("./_to-length");t.exports=[].copyWithin||function(e,t){var n=r(this),i=a(n.length),s=o(e,i),l=o(t,i),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?i:o(u,i))-l,i-s),f=1;for(l0;)l in n?n[s]=n[l]:delete n[s],s+=f,l+=f;return n}},{"./_to-absolute-index":112,"./_to-length":116,"./_to-object":117}],10:[function(e,t,n){"use strict";var r=e("./_to-object"),o=e("./_to-absolute-index"),a=e("./_to-length");t.exports=function(e){for(var t=r(this),n=a(t.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},{"./_to-absolute-index":112,"./_to-length":116,"./_to-object":117}],11:[function(e,t,n){var r=e("./_for-of");t.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},{"./_for-of":40}],12:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_to-length"),a=e("./_to-absolute-index");t.exports=function(e){return function(t,n,i){var s,l=r(t),u=o(l.length),c=a(i,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},{"./_to-absolute-index":112,"./_to-iobject":115,"./_to-length":116}],13:[function(e,t,n){var r=e("./_ctx"),o=e("./_iobject"),a=e("./_to-object"),i=e("./_to-length"),s=e("./_array-species-create");t.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,f=6==e,p=5==e||f,d=t||s;return function(t,s,v){for(var y,_,h=a(t),m=o(h),g=r(s,v,3),b=i(m.length),w=0,x=n?d(t,b):l?d(t,0):void 0;b>w;w++)if((p||w in m)&&(y=m[w],_=g(y,w,h),e))if(n)x[w]=_;else if(_)switch(e){case 3:return!0;case 5:return y;case 6:return w;case 2:x.push(y)}else if(c)return!1;return f?-1:u||c?c:x}}},{"./_array-species-create":16,"./_ctx":26,"./_iobject":48,"./_to-length":116,"./_to-object":117}],14:[function(e,t,n){var r=e("./_a-function"),o=e("./_to-object"),a=e("./_iobject"),i=e("./_to-length");t.exports=function(e,t,n,s,l){r(t);var u=o(e),c=a(u),f=i(u.length),p=l?f-1:0,d=l?-1:1;if(n<2)for(;;){if(p in c){s=c[p],p+=d;break}if(p+=d,l?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;l?p>=0:f>p;p+=d)p in c&&(s=t(s,c[p],p,u));return s}},{"./_a-function":4,"./_iobject":48,"./_to-length":116,"./_to-object":117}],15:[function(e,t,n){var r=e("./_is-object"),o=e("./_is-array"),a=e("./_wks")("species");t.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},{"./_is-array":50,"./_is-object":52,"./_wks":127}],16:[function(e,t,n){var r=e("./_array-species-constructor");t.exports=function(e,t){return new(r(e))(t)}},{"./_array-species-constructor":15}],17:[function(e,t,n){"use strict";var r=e("./_a-function"),o=e("./_is-object"),a=e("./_invoke"),i=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var r=[],o=0;o1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!_(v(this,t),e)}}),p&&r(c.prototype,"size",{get:function(){return v(this,t)[y]}}),c},def:function(e,t,n){var r,o,a=_(e,t);return a?a.v=n:(e._l=a={i:o=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=a),r&&(r.n=a),e[y]++,"F"!==o&&(e._i[o]=a)),e},getEntry:_,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=v(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?c(0,n.k):"values"==t?c(0,n.v):c(0,[n.k,n.v]):(e._t=void 0,c(1))},n?"entries":"values",!n,!0),f(t)}}},{"./_an-instance":7,"./_ctx":26,"./_descriptors":30,"./_for-of":40,"./_iter-define":56,"./_iter-step":58,"./_meta":66,"./_object-create":71,"./_object-dp":72,"./_redefine-all":91,"./_set-species":98,"./_validate-collection":124}],21:[function(e,t,n){var r=e("./_classof"),o=e("./_array-from-iterable");t.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},{"./_array-from-iterable":11,"./_classof":18}],22:[function(e,t,n){"use strict";var r=e("./_redefine-all"),o=e("./_meta").getWeak,a=e("./_an-object"),i=e("./_is-object"),s=e("./_an-instance"),l=e("./_for-of"),u=e("./_array-methods"),c=e("./_has"),f=e("./_validate-collection"),p=u(5),d=u(6),v=0,y=function(e){return e._l||(e._l=new _)},_=function(){this.a=[]},h=function(e,t){return p(e.a,function(e){return e[0]===t})};_.prototype={get:function(e){var t=h(this,e)
;if(t)return t[1]},has:function(e){return!!h(this,e)},set:function(e,t){var n=h(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},t.exports={getConstructor:function(e,t,n,a){var u=e(function(e,r){s(e,u,t,"_i"),e._t=t,e._i=v++,e._l=void 0,void 0!=r&&l(r,n,e[a],e)});return r(u.prototype,{delete:function(e){if(!i(e))return!1;var n=o(e);return!0===n?y(f(this,t)).delete(e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!i(e))return!1;var n=o(e);return!0===n?y(f(this,t)).has(e):n&&c(n,this._i)}}),u},def:function(e,t,n){var r=o(a(t),!0);return!0===r?y(e).set(t,n):r[e._i]=n,e},ufstore:y}},{"./_an-instance":7,"./_an-object":8,"./_array-methods":13,"./_for-of":40,"./_has":42,"./_is-object":52,"./_meta":66,"./_redefine-all":91,"./_validate-collection":124}],23:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_export"),a=e("./_redefine"),i=e("./_redefine-all"),s=e("./_meta"),l=e("./_for-of"),u=e("./_an-instance"),c=e("./_is-object"),f=e("./_fails"),p=e("./_iter-detect"),d=e("./_set-to-string-tag"),v=e("./_inherit-if-required");t.exports=function(e,t,n,y,_,h){var m=r[e],g=m,b=_?"set":"add",w=g&&g.prototype,x={},j=function(e){var t=w[e];a(w,e,"delete"==e?function(e){return!(h&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(h&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return h&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof g&&(h||w.forEach&&!f(function(){(new g).entries().next()}))){var A=new g,S=A[b](h?{}:-0,1)!=A,k=f(function(){A.has(1)}),E=p(function(e){new g(e)}),C=!h&&f(function(){for(var e=new g,t=5;t--;)e[b](t,t);return!e.has(-0)});E||(g=t(function(t,n){u(t,g,e);var r=v(new m,t,g);return void 0!=n&&l(n,_,r[b],r),r}),g.prototype=w,w.constructor=g),(k||C)&&(j("delete"),j("has"),_&&j("get")),(C||S)&&j(b),h&&w.clear&&delete w.clear}else g=y.getConstructor(t,e,_,b),i(g.prototype,n),s.NEED=!0;return d(g,e),x[e]=g,o(o.G+o.W+o.F*(g!=m),x),h||y.setStrong(g,e,_),g}},{"./_an-instance":7,"./_export":34,"./_fails":36,"./_for-of":40,"./_global":41,"./_inherit-if-required":46,"./_is-object":52,"./_iter-detect":57,"./_meta":66,"./_redefine":92,"./_redefine-all":91,"./_set-to-string-tag":99}],24:[function(e,t,n){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},{}],25:[function(e,t,n){"use strict";var r=e("./_object-dp"),o=e("./_property-desc");t.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},{"./_object-dp":72,"./_property-desc":90}],26:[function(e,t,n){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":4}],27:[function(e,t,n){"use strict";var r=e("./_fails"),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(e){return e>9?e:"0"+e};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!r(function(){a.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+i(e.getUTCMonth()+1)+"-"+i(e.getUTCDate())+"T"+i(e.getUTCHours())+":"+i(e.getUTCMinutes())+":"+i(e.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},{"./_fails":36}],28:[function(e,t,n){"use strict";var r=e("./_an-object"),o=e("./_to-primitive");t.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!=e)}},{"./_an-object":8,"./_to-primitive":118}],29:[function(e,t,n){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],30:[function(e,t,n){t.exports=!e("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":36}],31:[function(e,t,n){var r=e("./_is-object"),o=e("./_global").document,a=r(o)&&r(o.createElement);t.exports=function(e){return a?o.createElement(e):{}}},{"./_global":41,"./_is-object":52}],32:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],33:[function(e,t,n){var r=e("./_object-keys"),o=e("./_object-gops"),a=e("./_object-pie");t.exports=function(e){var t=r(e),n=o.f;if(n)for(var i,s=n(e),l=a.f,u=0;s.length>u;)l.call(e,i=s[u++])&&t.push(i);return t}},{"./_object-gops":78,"./_object-keys":81,"./_object-pie":82}],34:[function(e,t,n){var r=e("./_global"),o=e("./_core"),a=e("./_hide"),i=e("./_redefine"),s=e("./_ctx"),l=function(e,t,n){var u,c,f,p,d=e&l.F,v=e&l.G,y=e&l.S,_=e&l.P,h=e&l.B,m=v?r:y?r[t]||(r[t]={}):(r[t]||{}).prototype,g=v?o:o[t]||(o[t]={}),b=g.prototype||(g.prototype={});v&&(n=t);for(u in n)c=!d&&m&&void 0!==m[u],f=(c?m:n)[u],p=h&&c?s(f,r):_&&"function"==typeof f?s(Function.call,f):f,m&&i(m,u,f,e&l.U),g[u]!=f&&a(g,u,p),_&&b[u]!=f&&(b[u]=f)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},{"./_core":24,"./_ctx":26,"./_global":41,"./_hide":43,"./_redefine":92}],35:[function(e,t,n){var r=e("./_wks")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},{"./_wks":127}],36:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],37:[function(e,t,n){"use strict";var r=e("./_hide"),o=e("./_redefine"),a=e("./_fails"),i=e("./_defined"),s=e("./_wks");t.exports=function(e,t,n){var l=s(e),u=n(i,l,""[e]),c=u[0],f=u[1];a(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,c),r(RegExp.prototype,l,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},{"./_defined":29,"./_fails":36,"./_hide":43,"./_redefine":92,"./_wks":127}],38:[function(e,t,n){"use strict";var r=e("./_an-object");t.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{"./_an-object":8}],39:[function(e,t,n){"use strict";function r(e,t,n,u,c,f,p,d){for(var v,y,_=c,h=0,m=!!p&&s(p,d,3);h0)_=r(e,t,v,i(v.length),_,f-1)-1;else{if(_>=9007199254740991)throw TypeError();e[_]=v}_++}h++}return _}var o=e("./_is-array"),a=e("./_is-object"),i=e("./_to-length"),s=e("./_ctx"),l=e("./_wks")("isConcatSpreadable");t.exports=r},{"./_ctx":26,"./_is-array":50,"./_is-object":52,"./_to-length":116,"./_wks":127}],40:[function(e,t,n){var r=e("./_ctx"),o=e("./_iter-call"),a=e("./_is-array-iter"),i=e("./_an-object"),s=e("./_to-length"),l=e("./core.get-iterator-method"),u={},c={},n=t.exports=function(e,t,n,f,p){var d,v,y,_,h=p?function(){return e}:l(e),m=r(n,f,t?2:1),g=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(a(h)){for(d=s(e.length);d>g;g++)if((_=t?m(i(v=e[g])[0],v[1]):m(e[g]))===u||_===c)return _}else for(y=h.call(e);!(v=y.next()).done;)if((_=o(y,m,v.value,t))===u||_===c)return _};n.BREAK=u,n.RETURN=c},{"./_an-object":8,"./_ctx":26,"./_is-array-iter":49,"./_iter-call":54,"./_to-length":116,"./core.get-iterator-method":128}],41:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],42:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],43:[function(e,t,n){var r=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":30,"./_object-dp":72,"./_property-desc":90}],44:[function(e,t,n){var r=e("./_global").document;t.exports=r&&r.documentElement},{"./_global":41}],45:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":30,"./_dom-create":31,"./_fails":36}],46:[function(e,t,n){var r=e("./_is-object"),o=e("./_set-proto").set;t.exports=function(e,t,n){var a,i=t.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(e,a),e}},{"./_is-object":52,"./_set-proto":97}],47:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],48:[function(e,t,n){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":19}],49:[function(e,t,n){var r=e("./_iterators"),o=e("./_wks")("iterator"),a=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},{"./_iterators":59,"./_wks":127}],50:[function(e,t,n){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":19}],51:[function(e,t,n){var r=e("./_is-object"),o=Math.floor;t.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},{"./_is-object":52}],52:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],53:[function(e,t,n){var r=e("./_is-object"),o=e("./_cof"),a=e("./_wks")("match");t.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},{"./_cof":19,"./_is-object":52,"./_wks":127}],54:[function(e,t,n){var r=e("./_an-object");t.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},{"./_an-object":8}],55:[function(e,t,n){"use strict";var r=e("./_object-create"),o=e("./_property-desc"),a=e("./_set-to-string-tag"),i={};e("./_hide")(i,e("./_wks")("iterator"),function(){return this}),t.exports=function(e,t,n){e.prototype=r(i,{next:o(1,n)}),a(e,t+" Iterator")}},{"./_hide":43,"./_object-create":71,"./_property-desc":90,"./_set-to-string-tag":99,"./_wks":127}],56:[function(e,t,n){"use strict";var r=e("./_library"),o=e("./_export"),a=e("./_redefine"),i=e("./_hide"),s=e("./_iterators"),l=e("./_iter-create"),u=e("./_set-to-string-tag"),c=e("./_object-gpo"),f=e("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(e,t,n,v,y,_,h){l(n,t,v);var m,g,b,w=function(e){if(!p&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",j="values"==y,A=!1,S=e.prototype,k=S[f]||S["@@iterator"]||y&&S[y],E=k||w(y),C=y?j?w("entries"):E:void 0,I="Array"==t?S.entries||k:k;if(I&&(b=c(I.call(new e)))!==Object.prototype&&b.next&&(u(b,x,!0),r||"function"==typeof b[f]||i(b,f,d)),j&&k&&"values"!==k.name&&(A=!0,E=function(){return k.call(this)}),r&&!h||!p&&!A&&S[f]||i(S,f,E),s[t]=E,s[x]=d,y)if(m={values:j?E:w("values"),keys:_?E:w("keys"),entries:C},h)for(g in m)g in S||a(S,g,m[g]);else o(o.P+o.F*(p||A),t,m);return m}},{"./_export":34,"./_hide":43,"./_iter-create":55,"./_iterators":59,"./_library":60,"./_object-gpo":79,"./_redefine":92,"./_set-to-string-tag":99,"./_wks":127}],57:[function(e,t,n){var r=e("./_wks")("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},e(a)}catch(e){}return n}},{"./_wks":127}],58:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],59:[function(e,t,n){t.exports={}},{}],60:[function(e,t,n){t.exports=!1},{}],61:[function(e,t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:r},{}],62:[function(e,t,n){var r=e("./_math-sign"),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),l=o(2,-126),u=function(e){return e+1/a-1/a};t.exports=Math.fround||function(e){var t,n,o=Math.abs(e),c=r(e);return os||n!=n?c*(1/0):c*n)}},{"./_math-sign":65}],63:[function(e,t,n){t.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},{}],64:[function(e,t,n){t.exports=Math.scale||function(e,t,n,r,o){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||o!=o?NaN:e===1/0||e===-1/0?e:(e-t)*(o-r)/(n-t)+r}},{}],65:[function(e,t,n){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],66:[function(e,t,n){var r=e("./_uid")("meta"),o=e("./_is-object"),a=e("./_has"),i=e("./_object-dp").f,s=0,l=Object.isExtensible||function(){return!0},u=!e("./_fails")(function(){return l(Object.preventExtensions({}))}),c=function(e){i(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},p=function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},d=function(e){return u&&v.NEED&&l(e)&&!a(e,r)&&c(e),e},v=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},{"./_fails":36,"./_has":42,"./_is-object":52,"./_object-dp":72,"./_uid":122}],67:[function(e,t,n){var r=e("./es6.map"),o=e("./_export"),a=e("./_shared")("metadata"),i=a.store||(a.store=new(e("./es6.weak-map"))),s=function(e,t,n){var o=i.get(e);if(!o){if(!n)return;i.set(e,o=new r)}var a=o.get(t);if(!a){if(!n)return;o.set(t,a=new r)}return a},l=function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},u=function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},c=function(e,t,n,r){s(n,r,!0).set(e,t)},f=function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},p=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},d=function(e){o(o.S,"Reflect",e)};t.exports={store:i,map:s,has:l,get:u,set:c,keys:f,key:p,exp:d}},{"./_export":34,"./_shared":101,"./es6.map":159,"./es6.weak-map":265}],68:[function(e,t,n){var r=e("./_global"),o=e("./_task").set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,l="process"==e("./_cof")(i);t.exports=function(){var e,t,n,u=function(){var r,o;for(l&&(r=i.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){i.nextTick(u)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){o.call(r,u)};else{var f=!0,p=document.createTextNode("");new a(u).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},{"./_cof":19,"./_global":41,"./_task":111}],69:[function(e,t,n){
"use strict";function r(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=o(t),this.reject=o(n)}var o=e("./_a-function");t.exports.f=function(e){return new r(e)}},{"./_a-function":4}],70:[function(e,t,n){"use strict";var r=e("./_object-keys"),o=e("./_object-gops"),a=e("./_object-pie"),i=e("./_to-object"),s=e("./_iobject"),l=Object.assign;t.exports=!l||e("./_fails")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r})?function(e,t){for(var n=i(e),l=arguments.length,u=1,c=o.f,f=a.f;l>u;)for(var p,d=s(arguments[u++]),v=c?r(d).concat(c(d)):r(d),y=v.length,_=0;y>_;)f.call(d,p=v[_++])&&(n[p]=d[p]);return n}:l},{"./_fails":36,"./_iobject":48,"./_object-gops":78,"./_object-keys":81,"./_object-pie":82,"./_to-object":117}],71:[function(e,t,n){var r=e("./_an-object"),o=e("./_object-dps"),a=e("./_enum-bug-keys"),i=e("./_shared-key")("IE_PROTO"),s=function(){},l=function(){var t,n=e("./_dom-create")("iframe"),r=a.length;for(n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("