@hackler/react-sdk 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config.d.ts +1 -1
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.umd.js +1 -1
- package/package.json +3 -3
package/lib/config.d.ts
CHANGED
package/lib/index.es.js
CHANGED
package/lib/index.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hackler/js-client-sdk")):"function"==typeof define&&define.amd?define(["exports","@hackler/js-client-sdk"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).hackleReactSDK={},t.Hackle)}(this,function(e,n){"use strict";function t(n){if(n&&n.__esModule)return n;var r=Object.create(null);return n&&Object.keys(n).forEach(function(t){var e;"default"!==t&&(e=Object.getOwnPropertyDescriptor(n,t),Object.defineProperty(r,t,e.get?e:{enumerable:!0,get:function(){return n[t]}}))}),r.default=n,Object.freeze(r)}var r=t(n),f=function(){return(f=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}var i=(o.prototype.variation=function(t,e,n){return this.client.variation(t,e,n)},o.prototype.variationDetail=function(t,e,n){return this.client.variationDetail(t,e,n)},o.prototype.isFeatureOn=function(t,e){return this.client.isFeatureOn(t,e)},o.prototype.featureFlagDetail=function(t,e){return this.client.featureFlagDetail(t,e)},o.prototype.track=function(t,e){this.client.track(t,e)},o.prototype.trackPageView=function(t){this.client.trackPageView(t)},o.prototype.onReady=function(t,e){this.client.onReady(t,e)},o);function o(t,e){this.client=r.createInstance(t,f(f({},e),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"3.0.1"}))}var h={exports:{}},s={},u=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var Mt=function(){try{if(!Object.assign)return;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},r)).join("")?void 0:1}catch(t){return}}()?Object.assign:function(t,e){for(var n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++){for(var o in n=Object(arguments[i]))l.call(n,o)&&(r[o]=n[o]);if(u)for(var s=u(n),a=0;a<s.length;a++)_.call(n,s[a])&&(r[s[a]]=n[s[a]])}return r},d=Mt,a="function"==typeof Symbol&&Symbol.for,p=a?Symbol.for("react.element"):60103,m=a?Symbol.for("react.portal"):60106,E=a?Symbol.for("react.fragment"):60107,O=a?Symbol.for("react.strict_mode"):60108,S=a?Symbol.for("react.profiler"):60114,y=a?Symbol.for("react.provider"):60109,v=a?Symbol.for("react.context"):60110,N=a?Symbol.for("react.forward_ref"):60112,A=a?Symbol.for("react.suspense"):60113,T=a?Symbol.for("react.memo"):60115,D=a?Symbol.for("react.lazy"):60116,w="function"==typeof Symbol&&Symbol.iterator;function g(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M={};function I(t,e,n){this.props=t,this.context=e,this.refs=M,this.updater=n||R}function C(){}function F(t,e,n){this.props=t,this.context=e,this.refs=M,this.updater=n||R}I.prototype.isReactComponent={},I.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(g(85));this.updater.enqueueSetState(this,t,e,"setState")},I.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},C.prototype=I.prototype;a=F.prototype=new C;a.constructor=F,d(a,I.prototype),a.isPureReactComponent=!0;var Y={current:null},L=Object.prototype.hasOwnProperty,b={key:!0,ref:!0,__self:!0,__source:!0};function P(t,e,n){var r,i={},o=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(o=""+e.key),e)L.call(e,r)&&!b.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var u=Array(a),f=0;f<a;f++)u[f]=arguments[f+2];i.children=u}if(t&&t.defaultProps)for(r in a=t.defaultProps)void 0===i[r]&&(i[r]=a[r]);return{$$typeof:p,type:t,key:o,ref:s,props:i,_owner:Y.current}}function U(t){return"object"==typeof t&&null!==t&&t.$$typeof===p}var V=/\/+/g,k=[];function x(t,e,n,r){if(k.length){var i=k.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function H(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,k.length<10&&k.push(t)}function W(t,e,n){return null==t?0:function t(e,n,r,i){var o=!1;if(null===(e="undefined"==(a=typeof e)||"boolean"===a?null:e))o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case p:case m:o=!0}}if(o)return r(i,e,""===n?"."+B(e,0):n),1;if(o=0,n=""===n?".":n+":",Array.isArray(e))for(var s=0;s<e.length;s++){var a,u=n+B(a=e[s],s);o+=t(a,u,r,i)}else if("function"==typeof(u=null!==e&&"object"==typeof e&&"function"==typeof(u=w&&e[w]||e["@@iterator"])?u:null))for(e=u.call(e),s=0;!(a=e.next()).done;)o+=t(a=a.value,u=n+B(a,s++),r,i);else if("object"===a)throw r=""+e,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return o}(t,"",e,n)}function B(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(t=t.key,n={"=":"=0",":":"=2"},"$"+(""+t).replace(/[=:]/g,function(t){return n[t]})):e.toString(36);var n}function q(t,e){t.func.call(t.context,e,t.count++)}function j(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?z(t,r,n,function(t){return t}):null!=t&&(U(t)&&(n=i+(!(i=t).key||e&&e.key===t.key?"":(""+t.key).replace(V,"$&/")+"/")+n,t={$$typeof:p,type:i.type,key:n,ref:i.ref,props:i.props,_owner:i._owner}),r.push(t))}function z(t,e,n,r,i){var o="";W(t,j,e=x(e,o=null!=n?(""+n).replace(V,"$&/")+"/":o,r,i)),H(e)}var Z={current:null};function K(){var t=Z.current;if(null===t)throw Error(g(321));return t}a={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Y,IsSomeRendererActing:{current:!1},assign:d};s.Children={map:function(t,e,n){if(null==t)return t;var r=[];return z(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;W(t,q,e=x(null,null,e,n)),H(e)},count:function(t){return W(t,function(){return null},null)},toArray:function(t){var e=[];return z(t,e,null,function(t){return t}),e},only:function(t){if(!U(t))throw Error(g(143));return t}},s.Component=I,s.Fragment=E,s.Profiler=S,s.PureComponent=F,s.StrictMode=O,s.Suspense=A,s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=a,s.cloneElement=function(t,e,n){if(null==t)throw Error(g(267,t));var r=d({},t.props),i=t.key,o=t.ref,s=t._owner;if(null!=e)for(a in void 0!==e.ref&&(o=e.ref,s=Y.current),void 0!==e.key&&(i=""+e.key),t.type&&t.type.defaultProps&&(u=t.type.defaultProps),e)L.call(e,a)&&!b.hasOwnProperty(a)&&(r[a]=(void 0===e[a]&&void 0!==u?u:e)[a]);var a=arguments.length-2;if(1===a)r.children=n;else if(1<a){for(var u=Array(a),f=0;f<a;f++)u[f]=arguments[f+2];r.children=u}return{$$typeof:p,type:t.type,key:i,ref:o,props:r,_owner:s}},s.createContext=function(t,e){return(t={$$typeof:v,_calculateChangedBits:e=void 0===e?null:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:y,_context:t},t.Consumer=t},s.createElement=P,s.createFactory=function(t){var e=P.bind(null,t);return e.type=t,e},s.createRef=function(){return{current:null}},s.forwardRef=function(t){return{$$typeof:N,render:t}},s.isValidElement=U,s.lazy=function(t){return{$$typeof:D,_ctor:t,_status:-1,_result:null}},s.memo=function(t,e){return{$$typeof:T,type:t,compare:void 0===e?null:e}},s.useCallback=function(t,e){return K().useCallback(t,e)},s.useContext=function(t,e){return K().useContext(t,e)},s.useDebugValue=function(){},s.useEffect=function(t,e){return K().useEffect(t,e)},s.useImperativeHandle=function(t,e,n){return K().useImperativeHandle(t,e,n)},s.useLayoutEffect=function(t,e){return K().useLayoutEffect(t,e)},s.useMemo=function(t,e){return K().useMemo(t,e)},s.useReducer=function(t,e,n){return K().useReducer(t,e,n)},s.useRef=function(t){return K().useRef(t)},s.useState=function(t){return K().useState(t)},s.version="16.14.0";var G,X,$,It={},J=function(){};function Q(t,e,n,r,i){if("production"!==production)for(var o in t)if($(t,o)){var s;try{if("function"!=typeof t[o]){var a=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.");throw a.name="Invariant Violation",a}s=t[o](e,o,r,n,null,G)}catch(t){s=t}!s||s instanceof Error||J((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in X)&&(X[s.message]=!0,o=i?i():"",J("Failed "+n+" type: "+s.message+(null!=o?o:"")))}}"production"!==production&&(G="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",X={},$=Function.call.bind(Object.prototype.hasOwnProperty),J=function(t){t="Warning: "+t;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(t){}}),Q.resetWarningCache=function(){"production"!==production&&(X={})};var Ct=Q;"production"!==production&&function(){var d=Mt,i=Ct,t="function"==typeof Symbol&&Symbol.for,p=t?Symbol.for("react.element"):60103,m=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,e=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,c=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,l=t?Symbol.for("react.memo"):60115,_=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,n=t?Symbol.for("react.fundamental"):60117,O=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119,y="function"==typeof Symbol&&Symbol.iterator,v="@@iterator";function N(t){if(null===t||"object"!=typeof t)return null;t=y&&t[y]||t[v];return"function"==typeof t?t:null}var A={current:null},T={current:null},D=/^(.*)[\\\/]/;var w=1;function g(t){if(null==t)return null;if("number"==typeof t.tag&&Y("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case a:return"Fragment";case m:return"Portal";case o:return"Profiler";case r:return"StrictMode";case c:return"Suspense";case h:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case u:return"Context.Consumer";case s:return"Context.Provider";case f:return e=t.render,n="ForwardRef",e=e.displayName||e.name||"",t.displayName||(""!==e?n+"("+e+")":n);case l:return g(t.type);case E:return g(t.render);case _:n=(n=t)._status===w?n._result:null;if(n)return g(n)}var e,n;return null}var R={},M=null;function I(t){M=t}R.getCurrentStack=null,R.getStackAddendum=function(){var t,e,n,r,i,o="";M&&(r=g(M.type),i=M._owner,o+=(t=r,e=M._source,n=i&&g(i.type),s="",e?(i=(r=e.fileName).replace(D,""),/^index\./.test(i)&&(!(r=r.match(D))||(r=r[1])&&(i=r.replace(D,"")+"/"+i)),s=" (at "+i+":"+e.lineNumber+")"):n&&(s=" (created by "+n+")"),"\n in "+(t||"Unknown")+s));var s=R.getCurrentStack;return s&&(o+=s()||""),o};var C={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:d};function F(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];L("warn",t,n)}function Y(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];L("error",t,n)}function L(t,e,n){0<n.length&&"string"==typeof n[n.length-1]&&0===n[n.length-1].indexOf("\n in")||""!==(r=C.ReactDebugCurrentFrame.getStackAddendum())&&(e+="%s",n=n.concat([r]));var r=n.map(function(t){return""+t});r.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,r);try{var i=0,o="Warning: "+e.replace(/%s/g,function(){return n[i++]});throw new Error(o)}catch(t){}}d(C,{ReactDebugCurrentFrame:R,ReactComponentTreeHook:{}});var b={};function P(t,e){var n=t.constructor,t=n&&(n.displayName||n.name)||"ReactClass",n=t+"."+e;b[n]||(Y("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",e,t),b[n]=!0)}var U={isMounted:function(t){return!1},enqueueForceUpdate:function(t,e,n){P(t,"forceUpdate")},enqueueReplaceState:function(t,e,n,r){P(t,"replaceState")},enqueueSetState:function(t,e,n,r){P(t,"setState")}},V={};function k(t,e,n){this.props=t,this.context=e,this.refs=V,this.updater=n||U}Object.freeze(V),k.prototype.isReactComponent={},k.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},k.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var x,H={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(x in H)H.hasOwnProperty(x)&&function(t,e){Object.defineProperty(k.prototype,t,{get:function(){F("%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})}(x,H[x]);function W(){}function B(t,e,n){this.props=t,this.context=e,this.refs=V,this.updater=n||U}W.prototype=k.prototype;t=B.prototype=new W;t.constructor=B,d(t,k.prototype),t.isPureReactComponent=!0;var q,j,z=Object.prototype.hasOwnProperty,Z={key:!0,ref:!0,__self:!0,__source:!0};function K(t){if(z.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return}return void 0!==t.ref}function G(t){if(z.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return}return void 0!==t.key}var X={},$=function(t,e,n,r,i,o,s){o={$$typeof:p,type:t,key:e,ref:n,props:s,_owner:o,_store:{}};return Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function J(t,e,n){var r,i,o,s={},a=null,u=null,f=null,c=null;if(null!=e)for(r in K(e)&&(u=e.ref,"string"==typeof(i=e).ref&&T.current&&i.__self&&T.current.stateNode!==i.__self&&(o=g(T.current.type),X[o]||(Y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',g(T.current.type),i.ref),X[o]=!0))),G(e)&&(a=""+e.key),f=void 0===e.__self?null:e.__self,c=void 0===e.__source?null:e.__source,e)z.call(e,r)&&!Z.hasOwnProperty(r)&&(s[r]=e[r]);var h,l,_,d=arguments.length-2;if(1==d)s.children=n;else if(1<d){for(var p=Array(d),m=0;m<d;m++)p[m]=arguments[m+2];Object.freeze&&Object.freeze(p),s.children=p}if(t&&t.defaultProps){var E=t.defaultProps;for(r in E)void 0===s[r]&&(s[r]=E[r])}function O(){j||(j=!0,Y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",h))}function S(){q||(q=!0,Y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",_))}return(a||u)&&(n="function"==typeof t?t.displayName||t.name||"Unknown":t,a&&(l=s,_=n,S.isReactWarning=!0,Object.defineProperty(l,"key",{get:S,configurable:!0})),u&&(l=s,h=n,O.isReactWarning=!0,Object.defineProperty(l,"ref",{get:O,configurable:!0}))),$(t,a,u,f,c,T.current,s)}function Q(t){return"object"==typeof t&&null!==t&&t.$$typeof===p}var tt=".",et=":";var nt=!1,rt=/\/+/g;function it(t){return(""+t).replace(rt,"$&/")}var ot=10,st=[];function at(t,e,n,r){if(st.length){var i=st.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function ut(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,st.length<ot&&st.push(t)}function ft(t,e,n){return null==t?0:function t(e,n,r,i){var o,s=typeof e,a=!1;if(null===(e="undefined"==s||"boolean"==s?null:e))a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case p:case m:a=!0}}if(a)return r(i,e,""===n?tt+ct(e,0):n),1;var u=0,f=""===n?tt:n+et;if(Array.isArray(e))for(var c=0;c<e.length;c++)u+=t(o=e[c],f+ct(o,c),r,i);else if("function"==typeof(n=N(e))){n===e.entries&&(nt||F("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),nt=!0);for(var h,l=n.call(e),_=0;!(h=l.next()).done;)u+=t(o=h.value,f+ct(o,_++),r,i)}else if("object"==s)throw n=" If you meant to render a collection of children, use an array instead."+R.getStackAddendum(),s=""+e,Error("Objects are not valid as a React child (found: "+("[object Object]"==s?"object with keys {"+Object.keys(e).join(", ")+"}":s)+")."+n);return u}(t,"",e,n)}function ct(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(t=t.key,n={"=":"=0",":":"=2"},"$"+(""+t).replace(/[=:]/g,function(t){return n[t]})):e.toString(36);var n}function ht(t,e,n){var r=t.func,i=t.context;r.call(i,e,t.count++)}function lt(t,e,n){var r=t.result,i=t.keyPrefix,o=t.func,s=t.context,t=o.call(s,e,t.count++);Array.isArray(t)?_t(t,r,n,function(t){return t}):null!=t&&(Q(t)&&(n=i+(!(i=t).key||e&&e.key===t.key?"":it(t.key)+"/")+n,t=$(i.type,n,i.ref,i._self,i._source,i._owner,i.props)),r.push(t))}function _t(t,e,n,r,i){var o="",i=at(e,o=null!=n?it(n)+"/":o,r,i);ft(t,lt,i),ut(i)}function dt(t){return"string"==typeof t||"function"==typeof t||t===a||t===e||t===o||t===r||t===c||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===_||t.$$typeof===l||t.$$typeof===s||t.$$typeof===u||t.$$typeof===f||t.$$typeof===n||t.$$typeof===O||t.$$typeof===S||t.$$typeof===E)}function pt(){var t=A.current;if(null===t)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return t}function mt(){if(T.current){var t=g(T.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}var Et=!1,Ot={};function St(t,e){var n;t._store&&!t._store.validated&&null==t.key&&(t._store.validated=!0,n=e,(e=mt())||(n="string"==typeof n?n:n.displayName||n.name)&&(e="\n\nCheck the top-level render call using <"+n+">."),Ot[n=e]||(Ot[n]=!0,e="",t&&t._owner&&t._owner!==T.current&&(e=" It was passed a child from "+g(t._owner.type)+"."),I(t),Y('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,e),I(null)))}function yt(t,e){if("object"==typeof t)if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];Q(r)&&St(r,e)}else if(Q(t))t._store&&(t._store.validated=!0);else if(t){var i=N(t);if("function"==typeof i&&i!==t.entries)for(var o,s=i.call(t);!(o=s.next()).done;)Q(o.value)&&St(o.value,e)}}function vt(t){var e=t.type;if(null!=e&&"string"!=typeof e){var n,r=g(e);if("function"==typeof e)n=e.propTypes;else{if("object"!=typeof e||e.$$typeof!==f&&e.$$typeof!==l)return;n=e.propTypes}n?(I(t),i(n,t.props,"prop",r,R.getStackAddendum),I(null)):void 0===e.PropTypes||Et||(Et=!0,Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",r||"Unknown")),"function"!=typeof e.getDefaultProps||e.getDefaultProps.isReactClassApproved||Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(t,e,n){var r,i=dt(t);i||(o="",(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),o+=(null==(e=e)||void 0===(e=e.__source)?"":"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".")||mt(),null===t?r="null":Array.isArray(t)?r="array":void 0!==t&&t.$$typeof===p?(r="<"+(g(t.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):r=typeof t,Y("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",r,o));var o=J.apply(this,arguments);if(null==o)return o;if(i)for(var s=2;s<arguments.length;s++)yt(arguments[s],t);return(t===a?function(t){I(t);for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r);break}}null!==t.ref&&Y("Invalid attribute `ref` supplied to `React.Fragment`."),I(null)}:vt)(o),o}var At=!1;try{var Tt=Object.freeze({}),Dt=new Map([[Tt,null]]),wt=new Set([Tt]);Dt.set(0,0),wt.add(0)}catch(t){}function gt(t,e,n){for(var r=function(t,e,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r,i,o=d({},t.props),s=t.key,a=t.ref,u=t._self,f=t._source,c=t._owner;if(null!=e)for(r in K(e)&&(a=e.ref,c=T.current),G(e)&&(s=""+e.key),t.type&&t.type.defaultProps&&(i=t.type.defaultProps),e)z.call(e,r)&&!Z.hasOwnProperty(r)&&(void 0===e[r]&&void 0!==i?o[r]=i[r]:o[r]=e[r]);var h=arguments.length-2;if(1==h)o.children=n;else if(1<h){for(var l=Array(h),_=0;_<h;_++)l[_]=arguments[_+2];o.children=l}return $(t.type,s,a,u,f,c,o)}.apply(this,arguments),i=2;i<arguments.length;i++)yt(arguments[i],r.type);return vt(r),r}function Rt(t){var e=Nt.bind(null,t);return e.type=t,At||(At=!0,F("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(e,"type",{enumerable:!1,get:function(){return F("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),e}wt=Nt;It.Children={map:function(t,e,n){if(null==t)return t;var r=[];return _t(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;n=at(null,null,e,n),ft(t,ht,n),ut(n)},count:function(t){return ft(t,function(){return null},null)},toArray:function(t){var e=[];return _t(t,e,null,function(t){return t}),e},only:function(t){if(!Q(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},It.Component=k,It.Fragment=a,It.Profiler=o,It.PureComponent=B,It.StrictMode=r,It.Suspense=c,It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,It.cloneElement=gt,It.createContext=function(t,e){void 0===e?e=null:null!==e&&"function"!=typeof e&&Y("createContext: Expected the optional second argument to be a function. Instead received: %s",e);var n={$$typeof:u,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},r=!(n.Provider={$$typeof:s,_context:n}),i=!1,t={$$typeof:u,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return i||(i=!0,Y("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(t){n.Provider=t}},_currentValue:{get:function(){return n._currentValue},set:function(t){n._currentValue=t}},_currentValue2:{get:function(){return n._currentValue2},set:function(t){n._currentValue2=t}},_threadCount:{get:function(){return n._threadCount},set:function(t){n._threadCount=t}},Consumer:{get:function(){return r||(r=!0,Y("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}}}),n.Consumer=t,n._currentRenderer=null,n._currentRenderer2=null,n},It.createElement=wt,It.createFactory=Rt,It.createRef=function(){var t={current:null};return Object.seal(t),t},It.forwardRef=function(t){return null!=t&&t.$$typeof===l?Y("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?Y("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&Y("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null==t.defaultProps&&null==t.propTypes||Y("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")),{$$typeof:f,render:t}},It.isValidElement=Q,It.lazy=function(t){var e,n,r={$$typeof:_,_ctor:t,_status:-1,_result:null};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return e},set:function(t){Y("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),e=t,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(t){Y("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=t,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},It.memo=function(t,e){return dt(t)||Y("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t),{$$typeof:l,type:t,compare:void 0===e?null:e}},It.useCallback=function(t,e){return pt().useCallback(t,e)},It.useContext=function(t,e){var n,r=pt();return void 0!==e&&Y("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",e,"number"==typeof e&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==t._context&&((n=t._context).Consumer===t?Y("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===t&&Y("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),r.useContext(t,e)},It.useDebugValue=function(t,e){return pt().useDebugValue(t,e)},It.useEffect=function(t,e){return pt().useEffect(t,e)},It.useImperativeHandle=function(t,e,n){return pt().useImperativeHandle(t,e,n)},It.useLayoutEffect=function(t,e){return pt().useLayoutEffect(t,e)},It.useMemo=function(t,e){return pt().useMemo(t,e)},It.useReducer=function(t,e,n){return pt().useReducer(t,e,n)},It.useRef=function(t){return pt().useRef(t)},It.useState=function(t){return pt().useState(t)},It.version="16.14.0"}(),"production"===production?h.exports=s:h.exports=It;var tt=h.exports,et=h.exports.createContext({hackle:void 0,user:void 0}),s=et.Consumer,nt=et.Provider;var rt={exports:{}};!function(t){function e(t,e,n){function r(t){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,e&&e.apply(this,arguments),this.toString=function(){return this.name+": "+this.message}}return void 0===n&&(n=Error),r.prototype=Object.create(n.prototype),r.prototype.name=t,r.prototype.constructor=r,r}var w=e("DateTimeException",function(t,e){void 0===e&&(e=null);var n=t||this.name;null!==e&&e instanceof Error&&(n+="\n-------\nCaused by: "+e.stack+"\n-------\n");this.message=n}),p=e("DateTimeParseException",function(t,e,n,r){void 0===e&&(e="");void 0===n&&(n=0);void 0===r&&(r=null);var i=t||this.name;i+=": "+e+", at index: "+n,null!==r&&r instanceof Error&&(i+="\n-------\nCaused by: "+r.stack+"\n-------\n");this.message=i,this.parsedString=function(){return e},this.errorIndex=function(){return n}}),l=e("UnsupportedTemporalTypeException",null,w),O=e("ArithmeticException"),h=e("IllegalArgumentException"),i=e("IllegalStateException"),o=e("NullPointerException");function _(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t,e,n){if(!t)throw n?new n(e):new Error(e)}function m(t,e){if(null==t)throw new o(e+" must not be null");return t}function s(t,e,n){if(!(t instanceof e))throw new h(n+" must be an instance of "+(e.name?e.name:e)+(t&&t.constructor&&t.constructor.name?", but is "+t.constructor.name:""));return t}function r(t){throw new TypeError('abstract method "'+t+'" is not implemented')}var n=Object.freeze({__proto__:null,assert:S,requireNonNull:m,requireInstance:s,abstractMethodFail:r}),u=9007199254740991,f=-9007199254740991,g=function(){function a(){}return a.intDiv=function(t,e){var n=t/e;return n=a.roundDown(n),a.safeZero(n)},a.intMod=function(t,e){var n=t-a.intDiv(t,e)*e;return n=a.roundDown(n),a.safeZero(n)},a.roundDown=function(t){return t<0?Math.ceil(t):Math.floor(t)},a.floorDiv=function(t,e){var n=Math.floor(t/e);return a.safeZero(n)},a.floorMod=function(t,e){var n=t-a.floorDiv(t,e)*e;return a.safeZero(n)},a.safeAdd=function(t,e){if(a.verifyInt(t),a.verifyInt(e),0===t)return a.safeZero(e);if(0===e)return a.safeZero(t);var n=a.safeToInt(t+e);if(n===t||n===e)throw new O("Invalid addition beyond MAX_SAFE_INTEGER!");return n},a.safeSubtract=function(t,e){return a.verifyInt(t),a.verifyInt(e),0===t&&0===e?0:0===t?a.safeZero(-1*e):0===e?a.safeZero(t):a.safeToInt(t-e)},a.safeMultiply=function(t,e){if(a.verifyInt(t),a.verifyInt(e),1===t)return a.safeZero(e);if(1===e)return a.safeZero(t);if(0===t||0===e)return 0;var n=a.safeToInt(t*e);if(n/e!==t||t===f&&-1===e||e===f&&-1===t)throw new O("Multiplication overflows: "+t+" * "+e);return n},a.parseInt=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(t){var e=parseInt(t);return a.safeToInt(e)}),a.safeToInt=function(t){return a.verifyInt(t),a.safeZero(t)},a.verifyInt=function(t){if(null==t)throw new O("Invalid value: '"+t+"', using null or undefined as argument");if(isNaN(t))throw new O("Invalid int value, using NaN as argument");if(t%1!=0)throw new O("Invalid value: '"+t+"' is a float");if(t>u||t<f)throw new O("Calculation overflows an int: "+t)},a.safeZero=function(t){return 0===t?0:+t},a.compareNumbers=function(t,e){return t<e?-1:t>e?1:0},a.smi=function(t){return t>>>1&1073741824|3221225471&t},a.hash=function(t){if(t!=t||t===1/0)return 0;for(var e=t;t>4294967295;)e^=t/=4294967295;return a.smi(e)},a.hashCode=function(){for(var t=17,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var s=o[i];t=(t<<5)-t+a.hash(s)}return a.hash(t)},a}();g.MAX_SAFE_INTEGER=u,g.MIN_SAFE_INTEGER=f;var a=function(){function t(t){this._name=t}var e=t.prototype;return e.equals=function(t){return this===t},e.toString=function(){return this._name},e.toJSON=function(){return this.toString()},t}(),c=function(){function t(){}var e=t.prototype;return e.get=function(t){r("get")},e.units=function(){r("units")},e.addTo=function(t){r("addTo")},e.subtractFrom=function(t){r("subtractFrom")},t}(),E=function(){function t(){}var e=t.prototype;return e.duration=function(){r("duration")},e.isDurationEstimated=function(){r("isDurationEstimated")},e.isDateBased=function(){r("isDateBased")},e.isTimeBased=function(){r("isTimeBased")},e.isSupportedBy=function(t){r("isSupportedBy")},e.addTo=function(t,e){r("addTo")},e.between=function(t,e){r("between")},t}(),y=function(r){function d(t,e){var n;return(n=r.call(this)||this)._seconds=g.safeToInt(t),n._nanos=g.safeToInt(e),n}_(d,r),d.ofDays=function(t){return d._create(g.safeMultiply(t,fe.SECONDS_PER_DAY),0)},d.ofHours=function(t){return d._create(g.safeMultiply(t,fe.SECONDS_PER_HOUR),0)},d.ofMinutes=function(t){return d._create(g.safeMultiply(t,fe.SECONDS_PER_MINUTE),0)},d.ofSeconds=function(t,e){void 0===e&&(e=0);var n=g.safeAdd(t,g.floorDiv(e,fe.NANOS_PER_SECOND)),r=g.floorMod(e,fe.NANOS_PER_SECOND);return d._create(n,r)},d.ofMillis=function(t){var e=g.intDiv(t,1e3),n=g.intMod(t,1e3);return n<0&&(n+=1e3,e--),d._create(e,1e6*n)},d.ofNanos=function(t){var e=g.intDiv(t,fe.NANOS_PER_SECOND),n=g.intMod(t,fe.NANOS_PER_SECOND);return n<0&&(n+=fe.NANOS_PER_SECOND,e--),this._create(e,n)},d.of=function(t,e){return d.ZERO.plus(t,e)},d.from=function(e){m(e,"amount"),s(e,c);var n=d.ZERO;return e.units().forEach(function(t){n=n.plus(e.get(t),t)}),n},d.between=function(t,e){m(t,"startInclusive"),m(e,"endExclusive");var n=t.until(e,N.SECONDS),r=0;if(t.isSupported(R.NANO_OF_SECOND)&&e.isSupported(R.NANO_OF_SECOND))try{var i=t.getLong(R.NANO_OF_SECOND);if(r=e.getLong(R.NANO_OF_SECOND)-i,n>0&&r<0)r+=fe.NANOS_PER_SECOND;else if(n<0&&r>0)r-=fe.NANOS_PER_SECOND;else if(0===n&&0!==r){var o=e.with(R.NANO_OF_SECOND,i);n=t.until(o,N.SECONDS)}}catch(t){}return this.ofSeconds(n,r)},d.parse=function(e){m(e,"text");var t=new RegExp("([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?","i").exec(e);if(null!==t&&"T"===t[3]==!1){var n="-"===t[1],r=t[2],i=t[4],o=t[5],s=t[6],a=t[7];if(null!=r||null!=i||null!=o||null!=s){var u=d._parseNumber(e,r,fe.SECONDS_PER_DAY,"days"),f=d._parseNumber(e,i,fe.SECONDS_PER_HOUR,"hours"),c=d._parseNumber(e,o,fe.SECONDS_PER_MINUTE,"minutes"),h=d._parseNumber(e,s,1,"seconds"),l=null!=s&&"-"===s.charAt(0),_=d._parseFraction(e,a,l?-1:1);try{return d._create(n,u,f,c,h,_)}catch(t){throw new p("Text cannot be parsed to a Duration: overflow",e,0,t)}}}throw new p("Text cannot be parsed to a Duration",e,0)},d._parseNumber=function(t,e,n,r){if(null==e)return 0;try{return"+"===e[0]&&(e=e.substring(1)),g.safeMultiply(parseFloat(e),n)}catch(e){throw new p("Text cannot be parsed to a Duration: "+r,t,0,e)}},d._parseFraction=function(t,e,n){return null==e||0===e.length?0:(e=(e+"000000000").substring(0,9),parseFloat(e)*n)},d._create=function(){return arguments.length<=2?d._createSecondsNanos(arguments[0],arguments[1]):d._createNegateDaysHoursMinutesSecondsNanos(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},d._createNegateDaysHoursMinutesSecondsNanos=function(t,e,n,r,i,o){var s=g.safeAdd(e,g.safeAdd(n,g.safeAdd(r,i)));return t?d.ofSeconds(s,o).negated():d.ofSeconds(s,o)},d._createSecondsNanos=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),0===t&&0===e?d.ZERO:new d(t,e)};var t=d.prototype;return t.get=function(t){if(t===N.SECONDS)return this._seconds;if(t===N.NANOS)return this._nanos;throw new l("Unsupported unit: "+t)},t.units=function(){return[N.SECONDS,N.NANOS]},t.isZero=function(){return 0===this._seconds&&0===this._nanos},t.isNegative=function(){return this._seconds<0},t.seconds=function(){return this._seconds},t.nano=function(){return this._nanos},t.withSeconds=function(t){return d._create(t,this._nanos)},t.withNanos=function(t){return R.NANO_OF_SECOND.checkValidIntValue(t),d._create(this._seconds,t)},t.plusDuration=function(t){return m(t,"duration"),this.plus(t.seconds(),t.nano())},t.plus=function(t,e){return 1===arguments.length?this.plusDuration(t):2===arguments.length&&e instanceof E?this.plusAmountUnit(t,e):this.plusSecondsNanos(t,e)},t.plusAmountUnit=function(t,e){if(m(t,"amountToAdd"),m(e,"unit"),e===N.DAYS)return this.plusSecondsNanos(g.safeMultiply(t,fe.SECONDS_PER_DAY),0);if(e.isDurationEstimated())throw new l("Unit must not have an estimated duration");if(0===t)return this;if(e instanceof N){switch(e){case N.NANOS:return this.plusNanos(t);case N.MICROS:return this.plusSecondsNanos(1e3*g.intDiv(t,1e9),1e3*g.intMod(t,1e9));case N.MILLIS:return this.plusMillis(t);case N.SECONDS:return this.plusSeconds(t)}return this.plusSecondsNanos(g.safeMultiply(e.duration().seconds(),t),0)}var n=e.duration().multipliedBy(t);return this.plusSecondsNanos(n.seconds(),n.nano())},t.plusDays=function(t){return this.plusSecondsNanos(g.safeMultiply(t,fe.SECONDS_PER_DAY),0)},t.plusHours=function(t){return this.plusSecondsNanos(g.safeMultiply(t,fe.SECONDS_PER_HOUR),0)},t.plusMinutes=function(t){return this.plusSecondsNanos(g.safeMultiply(t,fe.SECONDS_PER_MINUTE),0)},t.plusSeconds=function(t){return this.plusSecondsNanos(t,0)},t.plusMillis=function(t){return this.plusSecondsNanos(g.intDiv(t,1e3),1e6*g.intMod(t,1e3))},t.plusNanos=function(t){return this.plusSecondsNanos(0,t)},t.plusSecondsNanos=function(t,e){if(m(t,"secondsToAdd"),m(e,"nanosToAdd"),0===t&&0===e)return this;var n=g.safeAdd(this._seconds,t);n=g.safeAdd(n,g.intDiv(e,fe.NANOS_PER_SECOND)),e=g.intMod(e,fe.NANOS_PER_SECOND);var r=g.safeAdd(this._nanos,e);return d.ofSeconds(n,r)},t.minus=function(t,e){return 1===arguments.length?this.minusDuration(t):this.minusAmountUnit(t,e)},t.minusDuration=function(t){m(t,"duration");var e=t.seconds(),n=t.nano();return e===f?this.plus(u,-n):this.plus(-e,-n)},t.minusAmountUnit=function(t,e){return m(t,"amountToSubtract"),m(e,"unit"),t===f?this.plusAmountUnit(u,e):this.plusAmountUnit(-t,e)},t.minusDays=function(t){return t===f?this.plusDays(u):this.plusDays(-t)},t.minusHours=function(t){return t===f?this.plusHours(u):this.plusHours(-t)},t.minusMinutes=function(t){return t===f?this.plusMinutes(u):this.plusMinutes(-t)},t.minusSeconds=function(t){return t===f?this.plusSeconds(u):this.plusSeconds(-t)},t.minusMillis=function(t){return t===f?this.plusMillis(u):this.plusMillis(-t)},t.minusNanos=function(t){return t===f?this.plusNanos(u):this.plusNanos(-t)},t.multipliedBy=function(t){if(0===t)return d.ZERO;if(1===t)return this;var e=g.safeMultiply(this._seconds,t),n=g.safeMultiply(this._nanos,t);return e+=g.intDiv(n,fe.NANOS_PER_SECOND),n=g.intMod(n,fe.NANOS_PER_SECOND),d.ofSeconds(e,n)},t.dividedBy=function(t){if(0===t)throw new O("Cannot divide by zero");if(1===t)return this;var e=g.intDiv(this._seconds,t),n=g.roundDown((this._seconds/t-e)*fe.NANOS_PER_SECOND),r=g.intDiv(this._nanos,t);return r=n+r,d.ofSeconds(e,r)},t.negated=function(){return this.multipliedBy(-1)},t.abs=function(){return this.isNegative()?this.negated():this},t.addTo=function(t){return m(t,"temporal"),0!==this._seconds&&(t=t.plus(this._seconds,N.SECONDS)),0!==this._nanos&&(t=t.plus(this._nanos,N.NANOS)),t},t.subtractFrom=function(t){return m(t,"temporal"),0!==this._seconds&&(t=t.minus(this._seconds,N.SECONDS)),0!==this._nanos&&(t=t.minus(this._nanos,N.NANOS)),t},t.toDays=function(){return g.intDiv(this._seconds,fe.SECONDS_PER_DAY)},t.toHours=function(){return g.intDiv(this._seconds,fe.SECONDS_PER_HOUR)},t.toMinutes=function(){return g.intDiv(this._seconds,fe.SECONDS_PER_MINUTE)},t.toMillis=function(){var t=Math.round(g.safeMultiply(this._seconds,1e3));return t=g.safeAdd(t,g.intDiv(this._nanos,1e6))},t.toNanos=function(){var t=g.safeMultiply(this._seconds,fe.NANOS_PER_SECOND);return t=g.safeAdd(t,this._nanos)},t.compareTo=function(t){m(t,"otherDuration"),s(t,d,"otherDuration");var e=g.compareNumbers(this._seconds,t.seconds());return 0!==e?e:this._nanos-t.nano()},t.equals=function(t){return this===t||t instanceof d&&(this.seconds()===t.seconds()&&this.nano()===t.nano())},t.toString=function(){if(this===d.ZERO)return"PT0S";var t,e=g.intDiv(this._seconds,fe.SECONDS_PER_HOUR),n=g.intDiv(g.intMod(this._seconds,fe.SECONDS_PER_HOUR),fe.SECONDS_PER_MINUTE),r=g.intMod(this._seconds,fe.SECONDS_PER_MINUTE),i="PT";if(0!==e&&(i+=e+"H"),0!==n&&(i+=n+"M"),0===r&&0===this._nanos&&i.length>2)return i;if(r<0&&this._nanos>0?i+=-1===r?"-0":r+1:i+=r,this._nanos>0)for(i+=".",i+=t=(t=r<0?""+(2*fe.NANOS_PER_SECOND-this._nanos):""+(fe.NANOS_PER_SECOND+this._nanos)).slice(1,t.length);"0"===i.charAt(i.length-1);)i=i.slice(0,i.length-1);return i+="S"},t.toJSON=function(){return this.toString()},d}(c),v=function(){},N=function(r){function t(t,e){var n;return(n=r.call(this)||this)._name=t,n._duration=e,n}_(t,r);var e=t.prototype;return e.duration=function(){return this._duration},e.isDurationEstimated=function(){return this.isDateBased()||this===t.FOREVER},e.isDateBased=function(){return this.compareTo(t.DAYS)>=0&&this!==t.FOREVER},e.isTimeBased=function(){return this.compareTo(t.DAYS)<0},e.isSupportedBy=function(e){if(this===t.FOREVER)return!1;try{return e.plus(1,this),!0}catch(t){try{return e.plus(-1,this),!0}catch(e){return!1}}},e.addTo=function(t,e){return t.plus(e,this)},e.between=function(t,e){return t.until(e,this)},e.toString=function(){return this._name},e.compareTo=function(t){return this.duration().compareTo(t.duration())},t}(E),A=function(){function t(){}var e=t.prototype;return e.isDateBased=function(){r("isDateBased")},e.isTimeBased=function(){r("isTimeBased")},e.baseUnit=function(){r("baseUnit")},e.rangeUnit=function(){r("rangeUnit")},e.range=function(){r("range")},e.rangeRefinedBy=function(t){r("rangeRefinedBy")},e.getFrom=function(t){r("getFrom")},e.adjustInto=function(t,e){r("adjustInto")},e.isSupportedBy=function(t){r("isSupportedBy")},e.displayName=function(){r("displayName")},e.equals=function(t){r("equals")},e.name=function(){r("name")},t}(),T=function(){function e(t,e,n,r){S(!(t>e),"Smallest minimum value '"+t+"' must be less than largest minimum value '"+e+"'",h),S(!(n>r),"Smallest maximum value '"+n+"' must be less than largest maximum value '"+r+"'",h),S(!(e>r),"Minimum value '"+e+"' must be less than maximum value '"+r+"'",h),this._minSmallest=t,this._minLargest=e,this._maxLargest=r,this._maxSmallest=n}var t=e.prototype;return t.isFixed=function(){return this._minSmallest===this._minLargest&&this._maxSmallest===this._maxLargest},t.minimum=function(){return this._minSmallest},t.largestMinimum=function(){return this._minLargest},t.maximum=function(){return this._maxLargest},t.smallestMaximum=function(){return this._maxSmallest},t.isValidValue=function(t){return this.minimum()<=t&&t<=this.maximum()},t.checkValidValue=function(t,e){return this.isValidValue(t)?t:S(!1,null!=e?"Invalid value for "+e+" (valid values "+this.toString()+"): "+t:"Invalid value (valid values "+this.toString()+"): "+t,w)},t.checkValidIntValue=function(t,e){if(!1===this.isValidIntValue(t))throw new w("Invalid int value for "+e+": "+t);return t},t.isValidIntValue=function(t){return this.isIntValue()&&this.isValidValue(t)},t.isIntValue=function(){return this.minimum()>=g.MIN_SAFE_INTEGER&&this.maximum()<=g.MAX_SAFE_INTEGER},t.equals=function(t){return t===this||t instanceof e&&(this._minSmallest===t._minSmallest&&this._minLargest===t._minLargest&&this._maxSmallest===t._maxSmallest&&this._maxLargest===t._maxLargest)},t.hashCode=function(){return g.hashCode(this._minSmallest,this._minLargest,this._maxSmallest,this._maxLargest)},t.toString=function(){var t=this.minimum()+(this.minimum()!==this.largestMinimum()?"/"+this.largestMinimum():"");return t+=" - ",t+=this.smallestMaximum()+(this.smallestMaximum()!==this.maximum()?"/"+this.maximum():"")},e.of=function(){return 2===arguments.length?new e(arguments[0],arguments[0],arguments[1],arguments[1]):3===arguments.length?new e(arguments[0],arguments[0],arguments[1],arguments[2]):4===arguments.length?new e(arguments[0],arguments[1],arguments[2],arguments[3]):S(!1,"Invalid number of arguments "+arguments.length,h)},e}(),R=function(o){function n(t,e,n,r){var i;return(i=o.call(this)||this)._name=t,i._baseUnit=e,i._rangeUnit=n,i._range=r,i}_(n,o),n.byName=function(t){for(var e in n)if(n[e]&&n[e]instanceof n&&n[e].name()===t)return n[e]};var t=n.prototype;return t.name=function(){return this._name},t.baseUnit=function(){return this._baseUnit},t.rangeUnit=function(){return this._rangeUnit},t.range=function(){return this._range},t.displayName=function(){return this.toString()},t.checkValidValue=function(t){return this.range().checkValidValue(t,this)},t.checkValidIntValue=function(t){return this.range().checkValidIntValue(t,this)},t.isDateBased=function(){return this===n.DAY_OF_WEEK||this===n.ALIGNED_DAY_OF_WEEK_IN_MONTH||this===n.ALIGNED_DAY_OF_WEEK_IN_YEAR||this===n.DAY_OF_MONTH||this===n.DAY_OF_YEAR||this===n.EPOCH_DAY||this===n.ALIGNED_WEEK_OF_MONTH||this===n.ALIGNED_WEEK_OF_YEAR||this===n.MONTH_OF_YEAR||this===n.YEAR_OF_ERA||this===n.YEAR||this===n.ERA},t.isTimeBased=function(){return this===n.NANO_OF_SECOND||this===n.NANO_OF_DAY||this===n.MICRO_OF_SECOND||this===n.MICRO_OF_DAY||this===n.MILLI_OF_SECOND||this===n.MILLI_OF_DAY||this===n.SECOND_OF_MINUTE||this===n.SECOND_OF_DAY||this===n.MINUTE_OF_HOUR||this===n.MINUTE_OF_DAY||this===n.HOUR_OF_AMPM||this===n.CLOCK_HOUR_OF_AMPM||this===n.HOUR_OF_DAY||this===n.CLOCK_HOUR_OF_DAY||this===n.AMPM_OF_DAY},t.rangeRefinedBy=function(t){return t.range(this)},t.getFrom=function(t){return t.getLong(this)},t.toString=function(){return this.name()},t.equals=function(t){return this===t},t.adjustInto=function(t,e){return t.with(this,e)},t.isSupportedBy=function(t){return t.isSupported(this)},n}(A),D=function(){function t(){}return t.zoneId=function(){return t.ZONE_ID},t.chronology=function(){return t.CHRONO},t.precision=function(){return t.PRECISION},t.zone=function(){return t.ZONE},t.offset=function(){return t.OFFSET},t.localDate=function(){return t.LOCAL_DATE},t.localTime=function(){return t.LOCAL_TIME},t}(),M=function(){function t(){}var e=t.prototype;return e.query=function(t){return t===D.zoneId()||t===D.chronology()||t===D.precision()?null:t.queryFrom(this)},e.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},e.range=function(t){if(t instanceof R){if(this.isSupported(t))return t.range();throw new l("Unsupported field: "+t)}return t.rangeRefinedBy(this)},t}(),I=function(t){function e(){return t.apply(this,arguments)||this}return _(e,t),e.prototype.queryFrom=function(t){r("queryFrom")},e}(a);function C(t,e){var n=function(t){function e(){return t.apply(this,arguments)||this}return _(e,t),e}(I);return n.prototype.queryFrom=e,new n(t)}var F,Y=function(r){function n(t,e){var n;return(n=r.call(this)||this)._ordinal=t,n._name=e,n}_(n,r);var t=n.prototype;return t.ordinal=function(){return this._ordinal},t.name=function(){return this._name},n.values=function(){return F.slice()},n.valueOf=function(t){for(var e=0;e<F.length&&F[e].name()!==t;e++);return n.of(e+1)},n.of=function(t){if(t<1||t>7)throw new w("Invalid value for DayOfWeek: "+t);return F[t-1]},n.from=function(e){if(S(null!=e,"temporal",o),e instanceof n)return e;try{return n.of(e.get(R.DAY_OF_WEEK))}catch(t){throw t instanceof w?new w("Unable to obtain DayOfWeek from TemporalAccessor: "+e+", type "+(null!=e.constructor?e.constructor.name:""),t):t}},t.value=function(){return this._ordinal+1},t.displayName=function(t,e){throw new h("Pattern using (localized) text not implemented yet!")},t.isSupported=function(t){return t instanceof R?t===R.DAY_OF_WEEK:null!=t&&t.isSupportedBy(this)},t.range=function(t){if(t===R.DAY_OF_WEEK)return t.range();if(t instanceof R)throw new l("Unsupported field: "+t);return t.rangeRefinedBy(this)},t.get=function(t){return t===R.DAY_OF_WEEK?this.value():this.range(t).checkValidIntValue(this.getLong(t),t)},t.getLong=function(t){if(t===R.DAY_OF_WEEK)return this.value();if(t instanceof R)throw new l("Unsupported field: "+t);return t.getFrom(this)},t.plus=function(t){var e=g.floorMod(t,7);return F[g.floorMod(this._ordinal+(e+7),7)]},t.minus=function(t){return this.plus(-1*g.floorMod(t,7))},t.query=function(t){return t===D.precision()?N.DAYS:t===D.localDate()||t===D.localTime()||t===D.chronology()||t===D.zone()||t===D.zoneId()||t===D.offset()?null:(S(null!=t,"query",o),t.queryFrom(this))},t.adjustInto=function(t){return m(t,"temporal"),t.with(R.DAY_OF_WEEK,this.value())},t.equals=function(t){return this===t},t.toString=function(){return this._name},t.compareTo=function(t){return m(t,"other"),s(t,n,"other"),this._ordinal-t._ordinal},t.toJSON=function(){return this.toString()},n}(M),L,b=function(r){function i(t,e){var n;return(n=r.call(this)||this)._value=g.safeToInt(t),n._name=e,n}_(i,r);var t=i.prototype;return t.value=function(){return this._value},t.ordinal=function(){return this._value-1},t.name=function(){return this._name},t.displayName=function(t,e){throw new h("Pattern using (localized) text not implemented yet!")},t.isSupported=function(t){return null!==t&&(t instanceof R?t===R.MONTH_OF_YEAR:null!=t&&t.isSupportedBy(this))},t.get=function(t){return t===R.MONTH_OF_YEAR?this.value():this.range(t).checkValidIntValue(this.getLong(t),t)},t.getLong=function(t){if(t===R.MONTH_OF_YEAR)return this.value();if(t instanceof R)throw new l("Unsupported field: "+t);return t.getFrom(this)},t.plus=function(t){var e=g.intMod(t,12)+12,n=g.intMod(this.value()+e,12);return n=0===n?12:n,i.of(n)},t.minus=function(t){return this.plus(-1*g.intMod(t,12))},t.length=function(t){switch(this){case i.FEBRUARY:return t?29:28;case i.APRIL:case i.JUNE:case i.SEPTEMBER:case i.NOVEMBER:return 30;default:return 31}},t.minLength=function(){switch(this){case i.FEBRUARY:return 28;case i.APRIL:case i.JUNE:case i.SEPTEMBER:case i.NOVEMBER:return 30;default:return 31}},t.maxLength=function(){switch(this){case i.FEBRUARY:return 29;case i.APRIL:case i.JUNE:case i.SEPTEMBER:case i.NOVEMBER:return 30;default:return 31}},t.firstDayOfYear=function(t){var e=t?1:0;switch(this){case i.JANUARY:return 1;case i.FEBRUARY:return 32;case i.MARCH:return 60+e;case i.APRIL:return 91+e;case i.MAY:return 121+e;case i.JUNE:return 152+e;case i.JULY:return 182+e;case i.AUGUST:return 213+e;case i.SEPTEMBER:return 244+e;case i.OCTOBER:return 274+e;case i.NOVEMBER:return 305+e;case i.DECEMBER:default:return 335+e}},t.firstMonthOfQuarter=function(){switch(this){case i.JANUARY:case i.FEBRUARY:case i.MARCH:return i.JANUARY;case i.APRIL:case i.MAY:case i.JUNE:return i.APRIL;case i.JULY:case i.AUGUST:case i.SEPTEMBER:return i.JULY;case i.OCTOBER:case i.NOVEMBER:case i.DECEMBER:default:return i.OCTOBER}},t.query=function(t){return S(null!=t,"query() parameter must not be null",w),t===D.chronology()?Qt.INSTANCE:t===D.precision()?N.MONTHS:r.prototype.query.call(this,t)},t.toString=function(){switch(this){case i.JANUARY:return"JANUARY";case i.FEBRUARY:return"FEBRUARY";case i.MARCH:return"MARCH";case i.APRIL:return"APRIL";case i.MAY:return"MAY";case i.JUNE:return"JUNE";case i.JULY:return"JULY";case i.AUGUST:return"AUGUST";case i.SEPTEMBER:return"SEPTEMBER";case i.OCTOBER:return"OCTOBER";case i.NOVEMBER:return"NOVEMBER";case i.DECEMBER:return"DECEMBER";default:return"unknown Month, value: "+this.value()}},t.toJSON=function(){return this.toString()},t.adjustInto=function(t){return t.with(R.MONTH_OF_YEAR,this.value())},t.compareTo=function(t){return m(t,"other"),s(t,i,"other"),this._value-t._value},t.equals=function(t){return this===t},i.valueOf=function(t){for(var e=0;e<L.length&&L[e].name()!==t;e++);return i.of(e+1)},i.values=function(){return L.slice()},i.of=function(t){return(t<1||t>12)&&S(!1,"Invalid value for MonthOfYear: "+t,w),L[t-1]},i.from=function(e){if(e instanceof i)return e;try{return i.of(e.get(R.MONTH_OF_YEAR))}catch(t){throw new w("Unable to obtain Month from TemporalAccessor: "+e+" of type "+(e&&null!=e.constructor?e.constructor.name:""),t)}},i}(M),P=/([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/,U=function(a){function h(t,e,n){var r;r=a.call(this)||this;var i=g.safeToInt(t),o=g.safeToInt(e),s=g.safeToInt(n);return 0===i&&0===o&&0===s?(h.ZERO||(r._years=i,r._months=o,r._days=s,h.ZERO=d(r)),h.ZERO||d(r)):(r._years=i,r._months=o,r._days=s,r)}_(h,a),h.ofYears=function(t){return h.create(t,0,0)},h.ofMonths=function(t){return h.create(0,t,0)},h.ofWeeks=function(t){return h.create(0,0,g.safeMultiply(t,7))},h.ofDays=function(t){return h.create(0,0,t)},h.of=function(t,e,n){return h.create(t,e,n)},h.from=function(t){if(t instanceof h)return t;m(t,"amount");for(var e=0,n=0,r=0,i=t.units(),o=0;o<i.length;o++){var s=i[o],a=t.get(s);if(s===N.YEARS)e=g.safeToInt(a);else if(s===N.MONTHS)n=g.safeToInt(a);else{if(s!==N.DAYS)throw new w("Unit must be Years, Months or Days, but was "+s);r=g.safeToInt(a)}}return h.create(e,n,r)},h.between=function(t,e){return m(t,"startDate"),m(e,"endDate"),s(t,se,"startDate"),s(e,se,"endDate"),t.until(e)},h.parse=function(e){m(e,"text");try{return h._parse(e)}catch(t){throw t instanceof O?new p("Text cannot be parsed to a Period",e,0,t):t}},h._parse=function(t){var e=P.exec(t);if(null!=e){var n="-"===e[1]?-1:1,r=e[2],i=e[3],o=e[4],s=e[5];if(null!=r||null!=i||null!=o||null!=s){var a=h._parseNumber(t,r,n),u=h._parseNumber(t,i,n),f=h._parseNumber(t,o,n),c=h._parseNumber(t,s,n);return c=g.safeAdd(c,g.safeMultiply(f,7)),h.create(a,u,c)}}throw new p("Text cannot be parsed to a Period",t,0)},h._parseNumber=function(t,e,n){if(null==e)return 0;var r=g.parseInt(e);return g.safeMultiply(r,n)},h.create=function(t,e,n){return new h(t,e,n)};var t=h.prototype;return t.units=function(){return[N.YEARS,N.MONTHS,N.DAYS]},t.chronology=function(){return Qt.INSTANCE},t.get=function(t){if(t===N.YEARS)return this._years;if(t===N.MONTHS)return this._months;if(t===N.DAYS)return this._days;throw new l("Unsupported unit: "+t)},t.isZero=function(){return this===h.ZERO},t.isNegative=function(){return this._years<0||this._months<0||this._days<0},t.years=function(){return this._years},t.months=function(){return this._months},t.days=function(){return this._days},t.withYears=function(t){return t===this._years?this:h.create(t,this._months,this._days)},t.withMonths=function(t){return t===this._months?this:h.create(this._years,t,this._days)},t.withDays=function(t){return t===this._days?this:h.create(this._years,this._months,t)},t.plus=function(t){var e=h.from(t);return h.create(g.safeAdd(this._years,e._years),g.safeAdd(this._months,e._months),g.safeAdd(this._days,e._days))},t.plusYears=function(t){return 0===t?this:h.create(g.safeToInt(g.safeAdd(this._years,t)),this._months,this._days)},t.plusMonths=function(t){return 0===t?this:h.create(this._years,g.safeToInt(g.safeAdd(this._months,t)),this._days)},t.plusDays=function(t){return 0===t?this:h.create(this._years,this._months,g.safeToInt(g.safeAdd(this._days,t)))},t.minus=function(t){var e=h.from(t);return h.create(g.safeSubtract(this._years,e._years),g.safeSubtract(this._months,e._months),g.safeSubtract(this._days,e._days))},t.minusYears=function(t){return this.plusYears(-1*t)},t.minusMonths=function(t){return this.plusMonths(-1*t)},t.minusDays=function(t){return this.plusDays(-1*t)},t.multipliedBy=function(t){return this===h.ZERO||1===t?this:h.create(g.safeMultiply(this._years,t),g.safeMultiply(this._months,t),g.safeMultiply(this._days,t))},t.negated=function(){return this.multipliedBy(-1)},t.normalized=function(){var t=this.toTotalMonths(),e=g.intDiv(t,12),n=g.intMod(t,12);return e===this._years&&n===this._months?this:h.create(g.safeToInt(e),n,this._days)},t.toTotalMonths=function(){return 12*this._years+this._months},t.addTo=function(t){return m(t,"temporal"),0!==this._years?t=0!==this._months?t.plus(this.toTotalMonths(),N.MONTHS):t.plus(this._years,N.YEARS):0!==this._months&&(t=t.plus(this._months,N.MONTHS)),0!==this._days&&(t=t.plus(this._days,N.DAYS)),t},t.subtractFrom=function(t){return m(t,"temporal"),0!==this._years?t=0!==this._months?t.minus(this.toTotalMonths(),N.MONTHS):t.minus(this._years,N.YEARS):0!==this._months&&(t=t.minus(this._months,N.MONTHS)),0!==this._days&&(t=t.minus(this._days,N.DAYS)),t},t.equals=function(t){if(this===t)return!0;if(t instanceof h){var e=t;return this._years===e._years&&this._months===e._months&&this._days===e._days}return!1},t.hashCode=function(){return g.hashCode(this._years,this._months,this._days)},t.toString=function(){if(this===h.ZERO)return"P0D";var t="P";return 0!==this._years&&(t+=this._years+"Y"),0!==this._months&&(t+=this._months+"M"),0!==this._days&&(t+=this._days+"D"),t},t.toJSON=function(){return this.toString()},h}(c),V=function(){function t(t){this._index=t,this._errorIndex=-1}var e=t.prototype;return e.getIndex=function(){return this._index},e.setIndex=function(t){this._index=t},e.getErrorIndex=function(){return this._errorIndex},e.setErrorIndex=function(t){this._errorIndex=t},t}(),k=function(){function t(){this._map={}}var e=t.prototype;return e.putAll=function(t){for(var e in t._map)this._map[e]=t._map[e];return this},e.containsKey=function(t){return this._map.hasOwnProperty(t.name())&&void 0!==this.get(t)},e.get=function(t){return this._map[t.name()]},e.put=function(t,e){return this.set(t,e)},e.set=function(t,e){return this._map[t.name()]=e,this},e.retainAll=function(t){for(var e={},n=0;n<t.length;n++){var r=t[n].name();e[r]=this._map[r]}return this._map=e,this},e.remove=function(t){var e=t.name(),n=this._map[e];return this._map[e]=void 0,n},e.keySet=function(){return this._map},e.clear=function(){this._map={}},t}(),x=function(t){function e(){return t.apply(this,arguments)||this}return _(e,t),e}(a);x.STRICT=new x("STRICT"),x.SMART=new x("SMART"),x.LENIENT=new x("LENIENT");var H=function(){function t(){}return t.prototype.adjustInto=function(t){r("adjustInto")},t}(),W=function(t){function e(){return t.apply(this,arguments)||this}_(e,t);var n=e.prototype;return n.isSupported=function(t){r("isSupported")},n.minus=function(t,e){return arguments.length<2?this.minusAmount(t):this.minusAmountUnit(t,e)},n.minusAmount=function(t){r("minusAmount")},n.minusAmountUnit=function(t,e){r("minusAmountUnit")},n.plus=function(t,e){return arguments.length<2?this.plusAmount(t):this.plusAmountUnit(t,e)},n.plusAmount=function(t){r("plusAmount")},n.plusAmountUnit=function(t,e){r("plusAmountUnit")},n.until=function(t,e){r("until")},n.with=function(t,e){return arguments.length<2?this.withAdjuster(t):this.withFieldValue(t,e)},n.withAdjuster=function(t){r("withAdjuster")},n.withFieldValue=function(t,e){r("withFieldValue")},e}(M),B=function(t){function e(){return t.apply(this,arguments)||this}_(e,t);var n=e.prototype;return n.withAdjuster=function(t){return m(t,"adjuster"),s(t,H,"adjuster"),t.adjustInto(this)},n.plusAmount=function(t){return m(t,"amount"),s(t,c,"amount"),t.addTo(this)},n.minusAmount=function(t){return m(t,"amount"),s(t,c,"amount"),t.subtractFrom(this)},n.minusAmountUnit=function(t,e){return m(t,"amountToSubtract"),m(e,"unit"),s(e,E,"unit"),t===f?this.plusAmountUnit(u,e).plusAmountUnit(1,e):this.plusAmount(-t,e)},e}(W),q=function(e){function t(){return e.apply(this,arguments)||this}_(t,e);var n=t.prototype;return n.isSupported=function(t){return t instanceof R||t instanceof N?t.isDateBased():null!=t&&t.isSupportedBy(this)},n.query=function(t){return t===D.chronology()?this.chronology():t===D.precision()?N.DAYS:t===D.localDate()?se.ofEpochDay(this.toEpochDay()):t===D.localTime()||t===D.zone()||t===D.zoneId()||t===D.offset()?null:e.prototype.query.call(this,t)},n.adjustInto=function(t){return t.with(R.EPOCH_DAY,this.toEpochDay())},n.format=function(t){return m(t,"formatter"),s(t,Wt,"formatter"),t.format(this)},t}(B),j=function(){function t(){}return t.startsWith=function(t,e){return 0===t.indexOf(e)},t.hashCode=function(t){var e=t.length;if(0===e)return 0;for(var n=0,r=0;r<e;r++)n=(n<<5)-n+t.charCodeAt(r),n|=0;return g.smi(n)},t}(),z=function(){function e(){}e.systemDefault=function(){throw new w("not supported operation")},e.getAvailableZoneIds=function(){throw new w("not supported operation")},e.of=function(t){throw new w("not supported operation"+t)},e.ofOffset=function(t,e){throw new w("not supported operation"+t+e)},e.from=function(t){throw new w("not supported operation"+t)};var t=e.prototype;return t.id=function(){r("ZoneId.id")},t.rules=function(){r("ZoneId.rules")},t.normalized=function(){var t=this.rules();return t.isFixedOffset()?t.offset(he.EPOCH):this},t.equals=function(t){return this===t||t instanceof e&&this.id()===t.id()},t.hashCode=function(){return j.hashCode(this.id())},t.toString=function(){return this.id()},t.toJSON=function(){return this.toString()},e}(),Z=function(){function t(){}t.of=function(t){return m(t,"offset"),new K(t)};var e=t.prototype;return e.isFixedOffset=function(){r("ZoneRules.isFixedOffset")},e.offset=function(t){return t instanceof he?this.offsetOfInstant(t):this.offsetOfLocalDateTime(t)},e.offsetOfInstant=function(t){r("ZoneRules.offsetInstant")},e.offsetOfEpochMilli=function(t){r("ZoneRules.offsetOfEpochMilli")},e.offsetOfLocalDateTime=function(t){r("ZoneRules.offsetLocalDateTime")},e.validOffsets=function(t){r("ZoneRules.validOffsets")},e.transition=function(t){r("ZoneRules.transition")},e.standardOffset=function(t){r("ZoneRules.standardOffset")},e.daylightSavings=function(t){r("ZoneRules.daylightSavings")},e.isDaylightSavings=function(t){r("ZoneRules.isDaylightSavings")},e.isValidOffset=function(t,e){r("ZoneRules.isValidOffset")},e.nextTransition=function(t){r("ZoneRules.nextTransition")},e.previousTransition=function(t){r("ZoneRules.previousTransition")},e.transitions=function(){r("ZoneRules.transitions")},e.transitionRules=function(){r("ZoneRules.transitionRules")},e.toString=function(){r("ZoneRules.toString")},e.toJSON=function(){return this.toString()},t}(),K=function(n){function e(t){var e;return(e=n.call(this)||this)._offset=t,e}_(e,n);var t=e.prototype;return t.isFixedOffset=function(){return!0},t.offsetOfInstant=function(){return this._offset},t.offsetOfEpochMilli=function(){return this._offset},t.offsetOfLocalDateTime=function(){return this._offset},t.validOffsets=function(){return[this._offset]},t.transition=function(){return null},t.standardOffset=function(){return this._offset},t.daylightSavings=function(){return y.ZERO},t.isDaylightSavings=function(){return!1},t.isValidOffset=function(t,e){return this._offset.equals(e)},t.nextTransition=function(){return null},t.previousTransition=function(){return null},t.transitions=function(){return[]},t.transitionRules=function(){return[]},t.equals=function(t){return this===t||t instanceof e&&this._offset.equals(t._offset)},t.toString=function(){return"FixedRules:"+this._offset.toString()},e}(Z),G={},X={},$=function(n){function s(t){var e;return e=n.call(this)||this,s._validateTotalSeconds(t),e._totalSeconds=g.safeToInt(t),e._rules=Z.of(d(e)),e._id=s._buildId(t),e}_(s,n);var t=s.prototype;return t.totalSeconds=function(){return this._totalSeconds},t.id=function(){return this._id},s._buildId=function(t){if(0===t)return"Z";var e=Math.abs(t),n=g.intDiv(e,fe.SECONDS_PER_HOUR),r=g.intMod(g.intDiv(e,fe.SECONDS_PER_MINUTE),fe.MINUTES_PER_HOUR),i=(t<0?"-":"+")+(n<10?"0":"")+n+(r<10?":0":":")+r,o=g.intMod(e,fe.SECONDS_PER_MINUTE);return 0!==o&&(i+=(o<10?":0":":")+o),i},s._validateTotalSeconds=function(t){if(Math.abs(t)>s.MAX_SECONDS)throw new w("Zone offset not in valid range: -18:00 to +18:00")},s._validate=function(t,e,n){if(t<-18||t>18)throw new w("Zone offset hours not in valid range: value "+t+" is not in the range -18 to 18");if(t>0){if(e<0||n<0)throw new w("Zone offset minutes and seconds must be positive because hours is positive")}else if(t<0){if(e>0||n>0)throw new w("Zone offset minutes and seconds must be negative because hours is negative")}else if(e>0&&n<0||e<0&&n>0)throw new w("Zone offset minutes and seconds must have the same sign");if(Math.abs(e)>59)throw new w("Zone offset minutes not in valid range: abs(value) "+Math.abs(e)+" is not in the range 0 to 59");if(Math.abs(n)>59)throw new w("Zone offset seconds not in valid range: abs(value) "+Math.abs(n)+" is not in the range 0 to 59");if(18===Math.abs(t)&&(Math.abs(e)>0||Math.abs(n)>0))throw new w("Zone offset not in valid range: -18:00 to +18:00")},s.of=function(t){m(t,"offsetId");var e,n,r,i=X[t];if(null!=i)return i;switch(t.length){case 2:t=t[0]+"0"+t[1];case 3:e=s._parseNumber(t,1,!1),n=0,r=0;break;case 5:e=s._parseNumber(t,1,!1),n=s._parseNumber(t,3,!1),r=0;break;case 6:e=s._parseNumber(t,1,!1),n=s._parseNumber(t,4,!0),r=0;break;case 7:e=s._parseNumber(t,1,!1),n=s._parseNumber(t,3,!1),r=s._parseNumber(t,5,!1);break;case 9:e=s._parseNumber(t,1,!1),n=s._parseNumber(t,4,!0),r=s._parseNumber(t,7,!0);break;default:throw new w("Invalid ID for ZoneOffset, invalid format: "+t)}var o=t[0];if("+"!==o&&"-"!==o)throw new w("Invalid ID for ZoneOffset, plus/minus not found when expected: "+t);return"-"===o?s.ofHoursMinutesSeconds(-e,-n,-r):s.ofHoursMinutesSeconds(e,n,r)},s._parseNumber=function(t,e,n){if(n&&":"!==t[e-1])throw new w("Invalid ID for ZoneOffset, colon not found when expected: "+t);var r=t[e],i=t[e+1];if(r<"0"||r>"9"||i<"0"||i>"9")throw new w("Invalid ID for ZoneOffset, non numeric characters found: "+t);return 10*(r.charCodeAt(0)-48)+(i.charCodeAt(0)-48)},s.ofHours=function(t){return s.ofHoursMinutesSeconds(t,0,0)},s.ofHoursMinutes=function(t,e){return s.ofHoursMinutesSeconds(t,e,0)},s.ofHoursMinutesSeconds=function(t,e,n){s._validate(t,e,n);var r=t*fe.SECONDS_PER_HOUR+e*fe.SECONDS_PER_MINUTE+n;return s.ofTotalSeconds(r)},s.ofTotalMinutes=function(t){var e=t*fe.SECONDS_PER_MINUTE;return s.ofTotalSeconds(e)},s.ofTotalSeconds=function(t){if(t%(15*fe.SECONDS_PER_MINUTE)==0){var e=t,n=G[e];return null==n&&(n=new s(t),G[e]=n,X[n.id()]=n),n}return new s(t)},t.rules=function(){return this._rules},t.get=function(t){return this.getLong(t)},t.getLong=function(t){if(t===R.OFFSET_SECONDS)return this._totalSeconds;if(t instanceof R)throw new w("Unsupported field: "+t);return t.getFrom(this)},t.query=function(t){return m(t,"query"),t===D.offset()||t===D.zone()?this:t===D.localDate()||t===D.localTime()||t===D.precision()||t===D.chronology()||t===D.zoneId()?null:t.queryFrom(this)},t.adjustInto=function(t){return t.with(R.OFFSET_SECONDS,this._totalSeconds)},t.compareTo=function(t){return m(t,"other"),t._totalSeconds-this._totalSeconds},t.equals=function(t){return this===t||t instanceof s&&this._totalSeconds===t._totalSeconds},t.hashCode=function(){return this._totalSeconds},t.toString=function(){return this._id},s}(z),J=function(e){function r(){var t;return(t=e.call(this)||this).fieldValues=new k,t.chrono=null,t.zone=null,t.date=null,t.time=null,t.leapSecond=!1,t.excessDays=null,t}_(r,e),r.create=function(t,e){var n=new r;return n._addFieldValue(t,e),n};var t=r.prototype;return t.getFieldValue0=function(t){return this.fieldValues.get(t)},t._addFieldValue=function(t,e){m(t,"field");var n=this.getFieldValue0(t);if(null!=n&&n!==e)throw new w("Conflict found: "+t+" "+n+" differs from "+t+" "+e+": "+this);return this._putFieldValue0(t,e)},t._putFieldValue0=function(t,e){return this.fieldValues.put(t,e),this},t.resolve=function(t,e){return null!=e&&this.fieldValues.retainAll(e),this._mergeDate(t),this._mergeTime(t),this._resolveTimeInferZeroes(t),null!=this.excessDays&&!1===this.excessDays.isZero()&&null!=this.date&&null!=this.time&&(this.date=this.date.plus(this.excessDays),this.excessDays=U.ZERO),this._resolveInstant(),this},t._mergeDate=function(t){this._checkDate(Qt.INSTANCE.resolveDate(this.fieldValues,t))},t._checkDate=function(t){if(null!=t)for(var e in this._addObject(t),this.fieldValues.keySet()){var n=R.byName(e);if(n&&void 0!==this.fieldValues.get(n)&&n.isDateBased()){var r=void 0;try{r=t.getLong(n)}catch(t){if(t instanceof w)continue;throw t}var i=this.fieldValues.get(n);if(r!==i)throw new w("Conflict found: Field "+n+" "+r+" differs from "+n+" "+i+" derived from "+t)}}},t._mergeTime=function(t){if(this.fieldValues.containsKey(R.CLOCK_HOUR_OF_DAY)){var e=this.fieldValues.remove(R.CLOCK_HOUR_OF_DAY);t!==x.LENIENT&&(t===x.SMART&&0===e||R.CLOCK_HOUR_OF_DAY.checkValidValue(e)),this._addFieldValue(R.HOUR_OF_DAY,24===e?0:e)}if(this.fieldValues.containsKey(R.CLOCK_HOUR_OF_AMPM)){var n=this.fieldValues.remove(R.CLOCK_HOUR_OF_AMPM);t!==x.LENIENT&&(t===x.SMART&&0===n||R.CLOCK_HOUR_OF_AMPM.checkValidValue(n)),this._addFieldValue(R.HOUR_OF_AMPM,12===n?0:n)}if(t!==x.LENIENT&&(this.fieldValues.containsKey(R.AMPM_OF_DAY)&&R.AMPM_OF_DAY.checkValidValue(this.fieldValues.get(R.AMPM_OF_DAY)),this.fieldValues.containsKey(R.HOUR_OF_AMPM)&&R.HOUR_OF_AMPM.checkValidValue(this.fieldValues.get(R.HOUR_OF_AMPM))),this.fieldValues.containsKey(R.AMPM_OF_DAY)&&this.fieldValues.containsKey(R.HOUR_OF_AMPM)){var r=this.fieldValues.remove(R.AMPM_OF_DAY),i=this.fieldValues.remove(R.HOUR_OF_AMPM);this._addFieldValue(R.HOUR_OF_DAY,12*r+i)}if(this.fieldValues.containsKey(R.NANO_OF_DAY)){var o=this.fieldValues.remove(R.NANO_OF_DAY);t!==x.LENIENT&&R.NANO_OF_DAY.checkValidValue(o),this._addFieldValue(R.SECOND_OF_DAY,g.intDiv(o,1e9)),this._addFieldValue(R.NANO_OF_SECOND,g.intMod(o,1e9))}if(this.fieldValues.containsKey(R.MICRO_OF_DAY)){var s=this.fieldValues.remove(R.MICRO_OF_DAY);t!==x.LENIENT&&R.MICRO_OF_DAY.checkValidValue(s),this._addFieldValue(R.SECOND_OF_DAY,g.intDiv(s,1e6)),this._addFieldValue(R.MICRO_OF_SECOND,g.intMod(s,1e6))}if(this.fieldValues.containsKey(R.MILLI_OF_DAY)){var a=this.fieldValues.remove(R.MILLI_OF_DAY);t!==x.LENIENT&&R.MILLI_OF_DAY.checkValidValue(a),this._addFieldValue(R.SECOND_OF_DAY,g.intDiv(a,1e3)),this._addFieldValue(R.MILLI_OF_SECOND,g.intMod(a,1e3))}if(this.fieldValues.containsKey(R.SECOND_OF_DAY)){var u=this.fieldValues.remove(R.SECOND_OF_DAY);t!==x.LENIENT&&R.SECOND_OF_DAY.checkValidValue(u),this._addFieldValue(R.HOUR_OF_DAY,g.intDiv(u,3600)),this._addFieldValue(R.MINUTE_OF_HOUR,g.intMod(g.intDiv(u,60),60)),this._addFieldValue(R.SECOND_OF_MINUTE,g.intMod(u,60))}if(this.fieldValues.containsKey(R.MINUTE_OF_DAY)){var f=this.fieldValues.remove(R.MINUTE_OF_DAY);t!==x.LENIENT&&R.MINUTE_OF_DAY.checkValidValue(f),this._addFieldValue(R.HOUR_OF_DAY,g.intDiv(f,60)),this._addFieldValue(R.MINUTE_OF_HOUR,g.intMod(f,60))}if(t!==x.LENIENT&&(this.fieldValues.containsKey(R.MILLI_OF_SECOND)&&R.MILLI_OF_SECOND.checkValidValue(this.fieldValues.get(R.MILLI_OF_SECOND)),this.fieldValues.containsKey(R.MICRO_OF_SECOND)&&R.MICRO_OF_SECOND.checkValidValue(this.fieldValues.get(R.MICRO_OF_SECOND))),this.fieldValues.containsKey(R.MILLI_OF_SECOND)&&this.fieldValues.containsKey(R.MICRO_OF_SECOND)){var c=this.fieldValues.remove(R.MILLI_OF_SECOND),h=this.fieldValues.get(R.MICRO_OF_SECOND);this._putFieldValue0(R.MICRO_OF_SECOND,1e3*c+g.intMod(h,1e3))}if(this.fieldValues.containsKey(R.MICRO_OF_SECOND)&&this.fieldValues.containsKey(R.NANO_OF_SECOND)){var l=this.fieldValues.get(R.NANO_OF_SECOND);this._putFieldValue0(R.MICRO_OF_SECOND,g.intDiv(l,1e3)),this.fieldValues.remove(R.MICRO_OF_SECOND)}if(this.fieldValues.containsKey(R.MILLI_OF_SECOND)&&this.fieldValues.containsKey(R.NANO_OF_SECOND)){var _=this.fieldValues.get(R.NANO_OF_SECOND);this._putFieldValue0(R.MILLI_OF_SECOND,g.intDiv(_,1e6)),this.fieldValues.remove(R.MILLI_OF_SECOND)}if(this.fieldValues.containsKey(R.MICRO_OF_SECOND)){var d=this.fieldValues.remove(R.MICRO_OF_SECOND);this._putFieldValue0(R.NANO_OF_SECOND,1e3*d)}else if(this.fieldValues.containsKey(R.MILLI_OF_SECOND)){var p=this.fieldValues.remove(R.MILLI_OF_SECOND);this._putFieldValue0(R.NANO_OF_SECOND,1e6*p)}},t._resolveTimeInferZeroes=function(t){var e=this.fieldValues.get(R.HOUR_OF_DAY),n=this.fieldValues.get(R.MINUTE_OF_HOUR),r=this.fieldValues.get(R.SECOND_OF_MINUTE),i=this.fieldValues.get(R.NANO_OF_SECOND);if(null!=e&&(null!=n||null==r&&null==i)&&(null==n||null!=r||null==i)){if(t!==x.LENIENT){if(null!=e){t!==x.SMART||24!==e||null!=n&&0!==n||null!=r&&0!==r||null!=i&&0!==i||(e=0,this.excessDays=U.ofDays(1));var o=R.HOUR_OF_DAY.checkValidIntValue(e);if(null!=n){var s=R.MINUTE_OF_HOUR.checkValidIntValue(n);if(null!=r){var a=R.SECOND_OF_MINUTE.checkValidIntValue(r);if(null!=i){var u=R.NANO_OF_SECOND.checkValidIntValue(i);this._addObject(fe.of(o,s,a,u))}else this._addObject(fe.of(o,s,a))}else null==i&&this._addObject(fe.of(o,s))}else null==r&&null==i&&this._addObject(fe.of(o,0))}}else if(null!=e){var f=e;if(null!=n)if(null!=r){null==i&&(i=0);var c=g.safeMultiply(f,36e11);c=g.safeAdd(c,g.safeMultiply(n,6e10)),c=g.safeAdd(c,g.safeMultiply(r,1e9)),c=g.safeAdd(c,i);var h=g.floorDiv(c,864e11),l=g.floorMod(c,864e11);this._addObject(fe.ofNanoOfDay(l)),this.excessDays=U.ofDays(h)}else{var _=g.safeMultiply(f,3600);_=g.safeAdd(_,g.safeMultiply(n,60));var d=g.floorDiv(_,86400),p=g.floorMod(_,86400);this._addObject(fe.ofSecondOfDay(p)),this.excessDays=U.ofDays(d)}else{var m=g.safeToInt(g.floorDiv(f,24));f=g.floorMod(f,24),this._addObject(fe.of(f,0)),this.excessDays=U.ofDays(m)}}this.fieldValues.remove(R.HOUR_OF_DAY),this.fieldValues.remove(R.MINUTE_OF_HOUR),this.fieldValues.remove(R.SECOND_OF_MINUTE),this.fieldValues.remove(R.NANO_OF_SECOND)}},t._addObject=function(t){t instanceof q?this.date=t:t instanceof fe&&(this.time=t)},t._resolveInstant=function(){if(null!=this.date&&null!=this.time){var t=this.fieldValues.get(R.OFFSET_SECONDS);if(null!=t){var e=$.ofTotalSeconds(t),n=this.date.atTime(this.time).atZone(e).getLong(R.INSTANT_SECONDS);this.fieldValues.put(R.INSTANT_SECONDS,n)}else if(null!=this.zone){var r=this.date.atTime(this.time).atZone(this.zone).getLong(R.INSTANT_SECONDS);this.fieldValues.put(R.INSTANT_SECONDS,r)}}},t.build=function(t){return t.queryFrom(this)},t.isSupported=function(t){return null!=t&&(this.fieldValues.containsKey(t)&&void 0!==this.fieldValues.get(t)||null!=this.date&&this.date.isSupported(t)||null!=this.time&&this.time.isSupported(t))},t.getLong=function(t){m(t,"field");var e=this.getFieldValue0(t);if(null==e){if(null!=this.date&&this.date.isSupported(t))return this.date.getLong(t);if(null!=this.time&&this.time.isSupported(t))return this.time.getLong(t);throw new w("Field not found: "+t)}return e},t.query=function(t){return t===D.zoneId()?this.zone:t===D.chronology()?this.chrono:t===D.localDate()?null!=this.date?se.from(this.date):null:t===D.localTime()?this.time:t===D.zone()||t===D.offset()?t.queryFrom(this):t===D.precision()?null:t.queryFrom(this)},r}(M),Q=function(){function t(){if(1===arguments.length){if(arguments[0]instanceof t)return void this._constructorSelf.apply(this,arguments);this._constructorFormatter.apply(this,arguments)}else this._constructorParam.apply(this,arguments);this._caseSensitive=!0,this._strict=!0,this._parsed=[new tt(this)]}var e=t.prototype;return e._constructorParam=function(t,e,n){this._locale=t,this._symbols=e,this._overrideChronology=n},e._constructorFormatter=function(t){this._locale=t.locale(),this._symbols=t.decimalStyle(),this._overrideChronology=t.chronology()},e._constructorSelf=function(t){this._locale=t._locale,this._symbols=t._symbols,this._overrideChronology=t._overrideChronology,this._overrideZone=t._overrideZone,this._caseSensitive=t._caseSensitive,this._strict=t._strict,this._parsed=[new tt(this)]},e.copy=function(){return new t(this)},e.symbols=function(){return this._symbols},e.isStrict=function(){return this._strict},e.setStrict=function(t){this._strict=t},e.locale=function(){return this._locale},e.setLocale=function(t){this._locale=t},e.startOptional=function(){this._parsed.push(this.currentParsed().copy())},e.endOptional=function(t){t?this._parsed.splice(this._parsed.length-2,1):this._parsed.splice(this._parsed.length-1,1)},e.isCaseSensitive=function(){return this._caseSensitive},e.setCaseSensitive=function(t){this._caseSensitive=t},e.subSequenceEquals=function(t,e,n,r,i){if(e+i>t.length||r+i>n.length)return!1;this.isCaseSensitive()||(t=t.toLowerCase(),n=n.toLowerCase());for(var o=0;o<i;o++)if(t[e+o]!==n[r+o])return!1;return!0},e.charEquals=function(t,e){return this.isCaseSensitive()?t===e:this.charEqualsIgnoreCase(t,e)},e.charEqualsIgnoreCase=function(t,e){return t===e||t.toLowerCase()===e.toLowerCase()},e.setParsedField=function(t,e,n,r){var i=this.currentParsed().fieldValues,o=i.get(t);return i.set(t,e),null!=o&&o!==e?~n:r},e.setParsedZone=function(t){m(t,"zone"),this.currentParsed().zone=t},e.getParsed=function(t){return this.currentParsed().fieldValues.get(t)},e.toParsed=function(){return this.currentParsed()},e.currentParsed=function(){return this._parsed[this._parsed.length-1]},e.setParsedLeapSecond=function(){this.currentParsed().leapSecond=!0},e.getEffectiveChronology=function(){var t=this.currentParsed().chrono;return null==t&&null==(t=this._overrideChronology)&&(t=Qt.INSTANCE),t},t}(),tt=function(n){function e(t){var e;return(e=n.call(this)||this).chrono=null,e.zone=null,e.fieldValues=new k,e.leapSecond=!1,e.dateTimeParseContext=t,e}_(e,n);var t=e.prototype;return t.copy=function(){var t=new e;return t.chrono=this.chrono,t.zone=this.zone,t.fieldValues.putAll(this.fieldValues),t.leapSecond=this.leapSecond,t.dateTimeParseContext=this.dateTimeParseContext,t},t.toString=function(){return this.fieldValues+", "+this.chrono+", "+this.zone},t.isSupported=function(t){return this.fieldValues.containsKey(t)},t.get=function(t){var e=this.fieldValues.get(t);return S(null!=e),e},t.query=function(t){return t===D.chronology()?this.chrono:t===D.zoneId()||t===D.zone()?this.zone:n.prototype.query.call(this,t)},t.toBuilder=function(){var t=new J;return t.fieldValues.putAll(this.fieldValues),t.chrono=this.dateTimeParseContext.getEffectiveChronology(),null!=this.zone?t.zone=this.zone:t.zone=this.overrideZone,t.leapSecond=this.leapSecond,t.excessDays=this.excessDays,t},e}(W),et=function(){function r(t,e,n){2===arguments.length&&arguments[1]instanceof Wt?(this._temporal=r.adjust(t,e),this._locale=e.locale(),this._symbols=e.decimalStyle()):(this._temporal=t,this._locale=e,this._symbols=n),this._optional=0}r.adjust=function(t,e){return t};var t=r.prototype;return t.symbols=function(){return this._symbols},t.startOptional=function(){this._optional++},t.endOptional=function(){this._optional--},t.getValueQuery=function(t){var e=this._temporal.query(t);if(null==e&&0===this._optional)throw new w("Unable to extract value: "+this._temporal);return e},t.getValue=function(t){try{return this._temporal.getLong(t)}catch(t){if(t instanceof w&&this._optional>0)return null;throw t}},t.temporal=function(){return this._temporal},t.locale=function(){return this._locale},t.setDateTime=function(t){this._temporal=t},t.setLocale=function(t){this._locale=t},r}(),nt={},rt=[0,90,181,273,0,91,182,274],it=function(t){function s(){return t.apply(this,arguments)||this}_(s,t);var e=s.prototype;return e.isDateBased=function(){return!0},e.isTimeBased=function(){return!1},e._isIso=function(){return!0},s._getWeekRangeByLocalDate=function(t){var e=s._getWeekBasedYear(t);return T.of(1,s._getWeekRangeByYear(e))},s._getWeekRangeByYear=function(t){var e=se.of(t,1,1);return e.dayOfWeek()===Y.THURSDAY||e.dayOfWeek()===Y.WEDNESDAY&&e.isLeapYear()?53:52},s._getWeek=function(t){var e=t.dayOfWeek().ordinal(),n=t.dayOfYear()-1,r=n+(3-e),i=r-7*g.intDiv(r,7)-3;if(i<-3&&(i+=7),n<i)return s._getWeekRangeByLocalDate(t.withDayOfYear(180).minusYears(1)).maximum();var o=g.intDiv(n-i,7)+1;return 53===o&&!1===(-3===i||-2===i&&t.isLeapYear())&&(o=1),o},s._getWeekBasedYear=function(t){var e=t.year(),n=t.dayOfYear();if(n<=3)n-t.dayOfWeek().ordinal()<-2&&e--;else if(n>=363){var r=t.dayOfWeek().ordinal();(n=n-363-(t.isLeapYear()?1:0))-r>=0&&e++}return e},e.displayName=function(){return this.toString()},e.resolve=function(){return null},e.name=function(){return this.toString()},s}(A),ot=function(t){function e(){return t.apply(this,arguments)||this}_(e,t);var n=e.prototype;return n.toString=function(){return"DayOfQuarter"},n.baseUnit=function(){return N.DAYS},n.rangeUnit=function(){return pt},n.range=function(){return T.of(1,90,92)},n.isSupportedBy=function(t){return t.isSupported(R.DAY_OF_YEAR)&&t.isSupported(R.MONTH_OF_YEAR)&&t.isSupported(R.YEAR)&&this._isIso(t)},n.rangeRefinedBy=function(t){if(!1===t.isSupported(this))throw new l("Unsupported field: DayOfQuarter");var e=t.getLong(ht);if(1===e){var n=t.getLong(R.YEAR);return Qt.isLeapYear(n)?T.of(1,91):T.of(1,90)}return 2===e?T.of(1,91):3===e||4===e?T.of(1,92):this.range()},n.getFrom=function(t){if(!1===t.isSupported(this))throw new l("Unsupported field: DayOfQuarter");var e=t.get(R.DAY_OF_YEAR),n=t.get(R.MONTH_OF_YEAR),r=t.getLong(R.YEAR);return e-rt[g.intDiv(n-1,3)+(Qt.isLeapYear(r)?4:0)]},n.adjustInto=function(t,e){var n=this.getFrom(t);return this.range().checkValidValue(e,this),t.with(R.DAY_OF_YEAR,t.getLong(R.DAY_OF_YEAR)+(e-n))},n.resolve=function(t,e,n){var r=t.get(R.YEAR),i=t.get(ht);if(null==r||null==i)return null;var o,s=R.YEAR.checkValidIntValue(r),a=t.get(ct);if(n===x.LENIENT){var u=i;o=(o=(o=se.of(s,1,1)).plusMonths(g.safeMultiply(g.safeSubtract(u,1),3))).plusDays(g.safeSubtract(a,1))}else{var f=ht.range().checkValidIntValue(i,ht);if(n===x.STRICT){var c=92;1===f?c=Qt.isLeapYear(s)?91:90:2===f&&(c=91),T.of(1,c).checkValidValue(a,this)}else this.range().checkValidValue(a,this);o=se.of(s,3*(f-1)+1,1).plusDays(a-1)}return t.remove(this),t.remove(R.YEAR),t.remove(ht),o},e}(it),st=function(t){function e(){return t.apply(this,arguments)||this}_(e,t);var n=e.prototype;return n.toString=function(){return"QuarterOfYear"},n.baseUnit=function(){return pt},n.rangeUnit=function(){return N.YEARS},n.range=function(){return T.of(1,4)},n.isSupportedBy=function(t){return t.isSupported(R.MONTH_OF_YEAR)&&this._isIso(t)},n.rangeRefinedBy=function(t){return this.range()},n.getFrom=function(t){if(!1===t.isSupported(this))throw new l("Unsupported field: QuarterOfYear");var e=t.getLong(R.MONTH_OF_YEAR);return g.intDiv(e+2,3)},n.adjustInto=function(t,e){var n=this.getFrom(t);return this.range().checkValidValue(e,this),t.with(R.MONTH_OF_YEAR,t.getLong(R.MONTH_OF_YEAR)+3*(e-n))},e}(it),at=function(t){function e(){return t.apply(this,arguments)||this}_(e,t);var n=e.prototype;return n.toString=function(){return"WeekOfWeekBasedYear"},n.baseUnit=function(){return N.WEEKS},n.rangeUnit=function(){return dt},n.range=function(){return T.of(1,52,53)},n.isSupportedBy=function(t){return t.isSupported(R.EPOCH_DAY)&&this._isIso(t)},n.rangeRefinedBy=function(t){if(!1===t.isSupported(this))throw new l("Unsupported field: WeekOfWeekBasedYear");return it._getWeekRangeByLocalDate(se.from(t))},n.getFrom=function(t){if(!1===t.isSupported(this))throw new l("Unsupported field: WeekOfWeekBasedYear");return it._getWeek(se.from(t))},n.adjustInto=function(t,e){return this.range().checkValidValue(e,this),t.plus(g.safeSubtract(e,this.getFrom(t)),N.WEEKS)},n.resolve=function(t,e,n){var r=t.get(_t),i=t.get(R.DAY_OF_WEEK);if(null==r||null==i)return null;var o,s=_t.range().checkValidIntValue(r,_t),a=t.get(lt);if(n===x.LENIENT){var u=i,f=0;u>7?(f=g.intDiv(u-1,7),u=g.intMod(u-1,7)+1):u<1&&(f=g.intDiv(u,7)-1,u=g.intMod(u,7)+7),o=se.of(s,1,4).plusWeeks(a-1).plusWeeks(f).with(R.DAY_OF_WEEK,u)}else{var c=R.DAY_OF_WEEK.checkValidIntValue(i);if(n===x.STRICT){var h=se.of(s,1,4);it._getWeekRangeByLocalDate(h).checkValidValue(a,this)}else this.range().checkValidValue(a,this);o=se.of(s,1,4).plusWeeks(a-1).with(R.DAY_OF_WEEK,c)}return t.remove(this),t.remove(_t),t.remove(R.DAY_OF_WEEK),o},n.displayName=function(){return"Week"},e}(it),ut=function(t){function e(){return t.apply(this,arguments)||this}_(e,t);var n=e.prototype;return n.toString=function(){return"WeekBasedYear"},n.baseUnit=function(){return dt},n.rangeUnit=function(){return N.FOREVER},n.range=function(){return R.YEAR.range()},n.isSupportedBy=function(t){return t.isSupported(R.EPOCH_DAY)&&this._isIso(t)},n.rangeRefinedBy=function(t){return R.YEAR.range()},n.getFrom=function(t){if(!1===t.isSupported(this))throw new l("Unsupported field: WeekBasedYear");return it._getWeekBasedYear(se.from(t))},n.adjustInto=function(t,e){if(!1===this.isSupportedBy(t))throw new l("Unsupported field: WeekBasedYear");var n=this.range().checkValidIntValue(e,_t),r=se.from(t),i=r.get(R.DAY_OF_WEEK),o=it._getWeek(r);53===o&&52===it._getWeekRangeByYear(n)&&(o=52);var s=se.of(n,1,4),a=i-s.get(R.DAY_OF_WEEK)+7*(o-1);return s=s.plusDays(a),t.with(s)},e}(it),ft=function(r){function t(t,e){var n;return(n=r.call(this)||this)._name=t,n._duration=e,n}_(t,r);var e=t.prototype;return e.duration=function(){return this._duration},e.isDurationEstimated=function(){return!0},e.isDateBased=function(){return!0},e.isTimeBased=function(){return!1},e.isSupportedBy=function(t){return t.isSupported(R.EPOCH_DAY)},e.addTo=function(t,e){switch(this){case dt:var n=g.safeAdd(t.get(_t),e);return t.with(_t,n);case pt:return t.plus(g.intDiv(e,256),N.YEARS).plus(3*g.intMod(e,256),N.MONTHS);default:throw new i("Unreachable")}},e.between=function(t,e){switch(this){case dt:return g.safeSubtract(e.getLong(_t),t.getLong(_t));case pt:return g.intDiv(t.until(e,N.MONTHS),3);default:throw new i("Unreachable")}},e.toString=function(){return name},t}(E),ct=null,ht=null,lt=null,_t=null,dt=null,pt=null,mt=function(){function e(t,e,n,r){this._zeroDigit=t,this._zeroDigitCharCode=t.charCodeAt(0),this._positiveSign=e,this._negativeSign=n,this._decimalSeparator=r}var t=e.prototype;return t.positiveSign=function(){return this._positiveSign},t.withPositiveSign=function(t){return t===this._positiveSign?this:new e(this._zeroDigit,t,this._negativeSign,this._decimalSeparator)},t.negativeSign=function(){return this._negativeSign},t.withNegativeSign=function(t){return t===this._negativeSign?this:new e(this._zeroDigit,this._positiveSign,t,this._decimalSeparator)},t.zeroDigit=function(){return this._zeroDigit},t.withZeroDigit=function(t){return t===this._zeroDigit?this:new e(t,this._positiveSign,this._negativeSign,this._decimalSeparator)},t.decimalSeparator=function(){return this._decimalSeparator},t.withDecimalSeparator=function(t){return t===this._decimalSeparator?this:new e(this._zeroDigit,this._positiveSign,this._negativeSign,t)},t.convertToDigit=function(t){var e=t.charCodeAt(0)-this._zeroDigitCharCode;return e>=0&&e<=9?e:-1},t.convertNumberToI18N=function(t){if("0"===this._zeroDigit)return t;for(var e=this._zeroDigitCharCode-"0".charCodeAt(0),n="",r=0;r<t.length;r++)n+=String.fromCharCode(t.charCodeAt(r)+e);return n},t.equals=function(t){return this===t||t instanceof e&&(this._zeroDigit===t._zeroDigit&&this._positiveSign===t._positiveSign&&this._negativeSign===t._negativeSign&&this._decimalSeparator===t._decimalSeparator)},t.hashCode=function(){return this._zeroDigit+this._positiveSign+this._negativeSign+this._decimalSeparator},t.toString=function(){return"DecimalStyle["+this._zeroDigit+this._positiveSign+this._negativeSign+this._decimalSeparator+"]"},e.of=function(){throw new Error("not yet supported")},e.availableLocales=function(){throw new Error("not yet supported")},e}();mt.STANDARD=new mt("0","+","-",".");var Et=function(t){function r(){return t.apply(this,arguments)||this}return _(r,t),r.prototype.parse=function(t,e,n){switch(this){case r.NORMAL:return!t||!e;case r.ALWAYS:case r.EXCEEDS_PAD:return!0;default:return!e&&!n}},r}(a);Et.NORMAL=new Et("NORMAL"),Et.NEVER=new Et("NEVER"),Et.ALWAYS=new Et("ALWAYS"),Et.EXCEEDS_PAD=new Et("EXCEEDS_PAD"),Et.NOT_NEGATIVE=new Et("NOT_NEGATIVE");var Ot=function(t){function e(){return t.apply(this,arguments)||this}_(e,t);var n=e.prototype;return n.isStandalone=function(){switch(this){case e.FULL_STANDALONE:case e.SHORT_STANDALONE:case e.NARROW_STANDALONE:return!0;default:return!1}},n.asStandalone=function(){switch(this){case e.FULL:return e.FULL_STANDALONE;case e.SHORT:return e.SHORT_STANDALONE;case e.NARROW:return e.NARROW_STANDALONE;default:return this}},n.asNormal=function(){switch(this){case e.FULL_STANDALONE:return e.FULL;case e.SHORT_STANDALONE:return e.SHORT;case e.NARROW_STANDALONE:return e.NARROW;default:return this}},e}(a);Ot.FULL=new Ot("FULL"),Ot.FULL_STANDALONE=new Ot("FULL_STANDALONE"),Ot.SHORT=new Ot("SHORT"),Ot.SHORT_STANDALONE=new Ot("SHORT_STANDALONE"),Ot.NARROW=new Ot("NARROW"),Ot.NARROW_STANDALONE=new Ot("NARROW_STANDALONE");var St=function(){function t(t){if(t.length>1)throw new h('invalid literal, too long: "'+t+'"');this._literal=t}var e=t.prototype;return e.print=function(t,e){return e.append(this._literal),!0},e.parse=function(t,e,n){if(n===e.length)return~n;var r=e.charAt(n);return!1===t.charEquals(this._literal,r)?~n:n+this._literal.length},e.toString=function(){return"'"===this._literal?"''":"'"+this._literal+"'"},t}(),yt=function(){function e(t,e){this._printerParsers=t,this._optional=e}var t=e.prototype;return t.withOptional=function(t){return t===this._optional?this:new e(this._printerParsers,t)},t.print=function(t,e){var n=e.length();this._optional&&t.startOptional();try{for(var r=0;r<this._printerParsers.length;r++)if(!1===this._printerParsers[r].print(t,e))return e.setLength(n),!0}finally{this._optional&&t.endOptional()}return!0},t.parse=function(t,e,n){if(this._optional){t.startOptional();for(var r=n,i=0;i<this._printerParsers.length;i++)if((r=this._printerParsers[i].parse(t,e,r))<0)return t.endOptional(!1),n;return t.endOptional(!0),r}for(var o=0;o<this._printerParsers.length;o++)if((n=this._printerParsers[o].parse(t,e,n))<0)break;return n},t.toString=function(){var t="";if(null!=this._printerParsers){t+=this._optional?"[":"(";for(var e=0;e<this._printerParsers.length;e++)t+=this._printerParsers[e].toString();t+=this._optional?"]":")"}return t},e}(),vt=function(){function t(t,e,n,r){if(m(t,"field"),!1===t.range().isFixed())throw new h("Field must have a fixed set of values: "+t);if(e<0||e>9)throw new h("Minimum width must be from 0 to 9 inclusive but was "+e);if(n<1||n>9)throw new h("Maximum width must be from 1 to 9 inclusive but was "+n);if(n<e)throw new h("Maximum width must exceed or equal the minimum width but "+n+" < "+e);this.field=t,this.minWidth=e,this.maxWidth=n,this.decimalPoint=r}var e=t.prototype;return e.print=function(t,e){var n=t.getValue(this.field);if(null===n)return!1;var r=t.symbols();if(0===n){if(this.minWidth>0){this.decimalPoint&&e.append(r.decimalSeparator());for(var i=0;i<this.minWidth;i++)e.append(r.zeroDigit())}}else{var o=this.convertToFraction(n,r.zeroDigit()),s=Math.min(Math.max(o.length,this.minWidth),this.maxWidth);if(1*(o=o.substr(0,s))>0)for(;o.length>this.minWidth&&"0"===o[o.length-1];)o=o.substr(0,o.length-1);var a=o;a=r.convertNumberToI18N(a),this.decimalPoint&&e.append(r.decimalSeparator()),e.append(a)}return!0},e.parse=function(t,e,n){var r=t.isStrict()?this.minWidth:0,i=t.isStrict()?this.maxWidth:9,o=e.length;if(n===o)return r>0?~n:n;if(this.decimalPoint){if(e[n]!==t.symbols().decimalSeparator())return r>0?~n:n;n++}var s=n+r;if(s>o)return~n;for(var a=Math.min(n+i,o),u=0,f=n;f<a;){var c=e.charAt(f++),h=t.symbols().convertToDigit(c);if(h<0){if(f<s)return~n;f--;break}u=10*u+h}var l=f-n,_=Math.pow(10,l),d=this.convertFromFraction(u,_);return t.setParsedField(this.field,d,n,f)},e.convertToFraction=function(t,e){var n=this.field.range();n.checkValidValue(t,this.field);for(var r=n.minimum(),i=n.maximum()-r+1,o=t-r,s=""+g.intDiv(1e9*o,i);s.length<9;)s=e+s;return s},e.convertFromFraction=function(t,e){var n=this.field.range(),r=n.minimum(),i=n.maximum()-r+1;return g.intDiv(t*i,e)},e.toString=function(){var t=this.decimalPoint?",DecimalPoint":"";return"Fraction("+this.field+","+this.minWidth+","+this.maxWidth+t+")"},t}(),Nt=[0,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9],At=function(){function e(t,e,n,r,i){void 0===i&&(i=0),this._field=t,this._minWidth=e,this._maxWidth=n,this._signStyle=r,this._subsequentWidth=i}var t=e.prototype;return t.field=function(){return this._field},t.minWidth=function(){return this._minWidth},t.maxWidth=function(){return this._maxWidth},t.signStyle=function(){return this._signStyle},t.withFixedWidth=function(){return-1===this._subsequentWidth?this:new e(this._field,this._minWidth,this._maxWidth,this._signStyle,-1)},t.withSubsequentWidth=function(t){return new e(this._field,this._minWidth,this._maxWidth,this._signStyle,this._subsequentWidth+t)},t._isFixedWidth=function(){return-1===this._subsequentWidth||this._subsequentWidth>0&&this._minWidth===this._maxWidth&&this._signStyle===Et.NOT_NEGATIVE},t.print=function(t,e){var n=t.getValue(this._field);if(null==n)return!1;var r=this._getValue(t,n),i=t.symbols(),o=""+Math.abs(r);if(o.length>this._maxWidth)throw new w("Field "+this._field+" cannot be printed as the value "+r+" exceeds the maximum print width of "+this._maxWidth);if(o=i.convertNumberToI18N(o),r>=0)switch(this._signStyle){case Et.EXCEEDS_PAD:this._minWidth<15&&r>=Nt[this._minWidth]&&e.append(i.positiveSign());break;case Et.ALWAYS:e.append(i.positiveSign())}else switch(this._signStyle){case Et.NORMAL:case Et.EXCEEDS_PAD:case Et.ALWAYS:e.append(i.negativeSign());break;case Et.NOT_NEGATIVE:throw new w("Field "+this._field+" cannot be printed as the value "+r+" cannot be negative according to the SignStyle")}for(var s=0;s<this._minWidth-o.length;s++)e.append(i.zeroDigit());return e.append(o),!0},t.parse=function(t,e,n){var r=e.length;if(n===r)return~n;S(n>=0&&n<r);var i=e.charAt(n),o=!1,s=!1;if(i===t.symbols().positiveSign()){if(!1===this._signStyle.parse(!0,t.isStrict(),this._minWidth===this._maxWidth))return~n;s=!0,n++}else if(i===t.symbols().negativeSign()){if(!1===this._signStyle.parse(!1,t.isStrict(),this._minWidth===this._maxWidth))return~n;o=!0,n++}else if(this._signStyle===Et.ALWAYS&&t.isStrict())return~n;var a=t.isStrict()||this._isFixedWidth()?this._minWidth:1,u=n+a;if(u>r)return~n;for(var f=(t.isStrict()||this._isFixedWidth()?this._maxWidth:9)+Math.max(this._subsequentWidth,0),c=0,h=n,l=0;l<2;l++){for(var _=Math.min(h+f,r);h<_;){var d=e.charAt(h++),p=t.symbols().convertToDigit(d);if(p<0){if(--h<u)return~n;break}if(h-n>15)throw new O("number text exceeds length");c=10*c+p}if(!(this._subsequentWidth>0&&0===l))break;var m=h-n;f=Math.max(a,m-this._subsequentWidth),h=n,c=0}if(o){if(0===c&&t.isStrict())return~(n-1);0!==c&&(c=-c)}else if(this._signStyle===Et.EXCEEDS_PAD&&t.isStrict()){var E=h-n;if(s){if(E<=this._minWidth)return~(n-1)}else if(E>this._minWidth)return~n}return this._setValue(t,c,n,h)},t._getValue=function(t,e){return e},t._setValue=function(t,e,n,r){return t.setParsedField(this._field,e,n,r)},t.toString=function(){return 1===this._minWidth&&15===this._maxWidth&&this._signStyle===Et.NORMAL?"Value("+this._field+")":this._minWidth===this._maxWidth&&this._signStyle===Et.NOT_NEGATIVE?"Value("+this._field+","+this._minWidth+")":"Value("+this._field+","+this._minWidth+","+this._maxWidth+","+this._signStyle+")"},e}(),Tt=function(s){function e(t,e,n,r,i){var o;if(o=s.call(this,t,e,n,Et.NOT_NEGATIVE)||this,e<1||e>10)throw new h("The width must be from 1 to 10 inclusive but was "+e);if(n<1||n>10)throw new h("The maxWidth must be from 1 to 10 inclusive but was "+n);if(n<e)throw new h("The maxWidth must be greater than the width");if(null===i){if(!1===t.range().isValidValue(r))throw new h("The base value must be within the range of the field");if(r+Nt[e]>g.MAX_SAFE_INTEGER)throw new w("Unable to add printer-parser as the range exceeds the capacity of an int")}return o._baseValue=r,o._baseDate=i,o}_(e,s);var t=e.prototype;return t._getValue=function(t,e){var n=Math.abs(e),r=this._baseValue;null!==this._baseDate&&(t.temporal(),r=Qt.INSTANCE.date(this._baseDate).get(this._field));return e>=r&&e<r+Nt[this._minWidth]?n%Nt[this._minWidth]:n%Nt[this._maxWidth]},t._setValue=function(t,e,n,r){var i=this._baseValue;null!=this._baseDate&&(i=t.getEffectiveChronology().date(this._baseDate).get(this._field));if(r-n===this._minWidth&&e>=0){var o=Nt[this._minWidth],s=i-i%o;(e=i>0?s+e:s-e)<i&&(e+=o)}return t.setParsedField(this._field,e,n,r)},t.withFixedWidth=function(){return-1===this._subsequentWidth?this:new e(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate,-1)},t.withSubsequentWidth=function(t){return new e(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate,this._subsequentWidth+t)},t.isFixedWidth=function(t){return!1!==t.isStrict()&&s.prototype.isFixedWidth.call(this,t)},t.toString=function(){return"ReducedValue("+this._field+","+this._minWidth+","+this._maxWidth+","+(null!=this._baseDate?this._baseDate:this._baseValue)+")"},e}(At),Dt=["+HH","+HHmm","+HH:mm","+HHMM","+HH:MM","+HHMMss","+HH:MM:ss","+HHMMSS","+HH:MM:SS"],wt=function(){function t(t,e){m(t,"noOffsetText"),m(e,"pattern"),this.noOffsetText=t,this.type=this._checkPattern(e)}var e=t.prototype;return e._checkPattern=function(t){for(var e=0;e<Dt.length;e++)if(Dt[e]===t)return e;throw new h("Invalid zone offset pattern: "+t)},e.print=function(t,e){var n=t.getValue(R.OFFSET_SECONDS);if(null==n)return!1;var r=g.safeToInt(n);if(0===r)e.append(this.noOffsetText);else{var i=Math.abs(g.intMod(g.intDiv(r,3600),100)),o=Math.abs(g.intMod(g.intDiv(r,60),60)),s=Math.abs(g.intMod(r,60)),a=e.length(),u=i;e.append(r<0?"-":"+").appendChar(g.intDiv(i,10)+"0").appendChar(g.intMod(i,10)+"0"),(this.type>=3||this.type>=1&&o>0)&&(e.append(this.type%2==0?":":"").appendChar(g.intDiv(o,10)+"0").appendChar(o%10+"0"),u+=o,(this.type>=7||this.type>=5&&s>0)&&(e.append(this.type%2==0?":":"").appendChar(g.intDiv(s,10)+"0").appendChar(s%10+"0"),u+=s)),0===u&&(e.setLength(a),e.append(this.noOffsetText))}return!0},e.parse=function(t,e,n){var r=e.length,i=this.noOffsetText.length;if(0===i){if(n===r)return t.setParsedField(R.OFFSET_SECONDS,0,n,n)}else{if(n===r)return~n;if(t.subSequenceEquals(e,n,this.noOffsetText,0,i))return t.setParsedField(R.OFFSET_SECONDS,0,n,n+i)}var o=e[n];if("+"===o||"-"===o){var s="-"===o?-1:1,a=[0,0,0,0];if(a[0]=n+1,!1===(this._parseNumber(a,1,e,!0)||this._parseNumber(a,2,e,this.type>=3)||this._parseNumber(a,3,e,!1))){var u=g.safeZero(s*(3600*a[1]+60*a[2]+a[3]));return t.setParsedField(R.OFFSET_SECONDS,u,n,a[0])}}return 0===i?t.setParsedField(R.OFFSET_SECONDS,0,n,n+i):~n},e._parseNumber=function(t,e,n,r){if((this.type+3)/2<e)return!1;var i=t[0];if(this.type%2==0&&e>1){if(i+1>n.length||":"!==n[i])return r;i++}if(i+2>n.length)return r;var o=n[i++],s=n[i++];if(o<"0"||o>"9"||s<"0"||s>"9")return r;var a=10*(o.charCodeAt(0)-48)+(s.charCodeAt(0)-48);return a<0||a>59?r:(t[e]=a,t[0]=i,!1)},e.toString=function(){var t=this.noOffsetText.replace("'","''");return"Offset("+Dt[this.type]+",'"+t+"')"},t}();wt.INSTANCE_ID=new wt("Z","+HH:MM:ss"),wt.PATTERNS=Dt;var gt=function(){function t(t,e,n){this._printerParser=t,this._padWidth=e,this._padChar=n}var e=t.prototype;return e.print=function(t,e){var n=e.length();if(!1===this._printerParser.print(t,e))return!1;var r=e.length()-n;if(r>this._padWidth)throw new w("Cannot print as output of "+r+" characters exceeds pad width of "+this._padWidth);for(var i=0;i<this._padWidth-r;i++)e.insert(n,this._padChar);return!0},e.parse=function(t,e,n){var r=t.isStrict(),i=t.isCaseSensitive();if(S(!(n>e.length)),S(n>=0),n===e.length)return~n;var o=n+this._padWidth;if(o>e.length){if(r)return~n;o=e.length}for(var s=n;s<o&&(i?e[s]===this._padChar:t.charEquals(e[s],this._padChar));)s++;e=e.substring(0,o);var a=this._printerParser.parse(t,e,s);return a!==o&&r?~(n+s):a},e.toString=function(){return"Pad("+this._printerParser+","+this._padWidth+(" "===this._padChar?")":",'"+this._padChar+"')")},t}(),Rt=function(t){function r(){return t.apply(this,arguments)||this}_(r,t);var e=r.prototype;return e.print=function(){return!0},e.parse=function(t,e,n){switch(this){case r.SENSITIVE:t.setCaseSensitive(!0);break;case r.INSENSITIVE:t.setCaseSensitive(!1);break;case r.STRICT:t.setStrict(!0);break;case r.LENIENT:t.setStrict(!1)}return n},e.toString=function(){switch(this){case r.SENSITIVE:return"ParseCaseSensitive(true)";case r.INSENSITIVE:return"ParseCaseSensitive(false)";case r.STRICT:return"ParseStrict(true)";case r.LENIENT:return"ParseStrict(false)"}},r}(a);Rt.SENSITIVE=new Rt("SENSITIVE"),Rt.INSENSITIVE=new Rt("INSENSITIVE"),Rt.STRICT=new Rt("STRICT"),Rt.LENIENT=new Rt("LENIENT");var Mt=function(){function t(t){this._literal=t}var e=t.prototype;return e.print=function(t,e){return e.append(this._literal),!0},e.parse=function(t,e,n){return S(!(n>e.length||n<0)),!1===t.subSequenceEquals(e,n,this._literal,0,this._literal.length)?~n:n+this._literal.length},e.toString=function(){return"'"+this._literal.replace("'","''")+"'"},t}(),It=function(){function t(){}return t.getRules=function(t){throw new w("unsupported ZoneId:"+t)},t.getAvailableZoneIds=function(){return[]},t}(),Ct=function(r){function e(t,e){var n;return(n=r.call(this)||this)._id=t,n._rules=e,n}_(e,r),e.ofId=function(t){return new e(t,It.getRules(t))};var t=e.prototype;return t.id=function(){return this._id},t.rules=function(){return this._rules},e}(z),Ft=function(){function t(t,e){this.query=t,this.description=e}var e=t.prototype;return e.print=function(t,e){var n=t.getValueQuery(this.query);return null!=n&&(e.append(n.id()),!0)},e.parse=function(t,e,n){var r=e.length;if(n>r)return~n;if(n===r)return~n;var i=e.charAt(n);if("+"===i||"-"===i){var o=t.copy(),s=wt.INSTANCE_ID.parse(o,e,n);if(s<0)return s;var a=o.getParsed(R.OFFSET_SECONDS),u=$.ofTotalSeconds(a);return t.setParsedZone(u),s}if(r>=n+2){var f=e.charAt(n+1);if(t.charEquals(i,"U")&&t.charEquals(f,"T"))return r>=n+3&&t.charEquals(e.charAt(n+2),"C")?this._parsePrefixedOffset(t,e,n,n+3):this._parsePrefixedOffset(t,e,n,n+2);if(t.charEquals(i,"G")&&r>=n+3&&t.charEquals(f,"M")&&t.charEquals(e.charAt(n+2),"T"))return this._parsePrefixedOffset(t,e,n,n+3)}if("SYSTEM"===e.substr(n,6))return t.setParsedZone(z.systemDefault()),n+6;if(t.charEquals(i,"Z"))return t.setParsedZone($.UTC),n+1;var c=It.getAvailableZoneIds();bt.size!==c.length&&(bt=Yt.createTreeMap(c));for(var h=r-n,l=bt.treeMap,_=null,d=0;null!=l;){var p=e.substr(n,Math.min(l.length,h));null!=(l=l.get(p))&&l.isLeaf&&(_=p,d=l.length)}return null!=_?(t.setParsedZone(Ct.ofId(_)),n+d):~n},e._parsePrefixedOffset=function(t,e,n,r){var i=e.substring(n,r).toUpperCase(),o=t.copy();if(r<e.length&&t.charEquals(e.charAt(r),"Z"))return t.setParsedZone(z.ofOffset(i,$.UTC)),r;var s=wt.INSTANCE_ID.parse(o,e,r);if(s<0)return t.setParsedZone(z.ofOffset(i,$.UTC)),r;var a=o.getParsed(R.OFFSET_SECONDS),u=$.ofTotalSeconds(a);return t.setParsedZone(z.ofOffset(i,u)),s},e.toString=function(){return this.description},t}(),Yt=function(){function i(t,e){this.size=t,this.treeMap=e}return i.createTreeMap=function(t){for(var e=t.sort(function(t,e){return t.length-e.length}),n=new Lt(e[0].length,!1),r=0;r<e.length;r++)n.add(e[r]);return new i(e.length,n)},i}(),Lt=function(){function i(t,e){void 0===t&&(t=0),void 0===e&&(e=!1),this.length=t,this.isLeaf=e,this._treeMap={}}var t=i.prototype;return t.add=function(t){var e=t.length;if(e===this.length)this._treeMap[t]=new i(e,!0);else if(e>this.length){var n=t.substr(0,this.length),r=this._treeMap[n];null==r&&(r=new i(e,!1),this._treeMap[n]=r),r.add(t)}},t.get=function(t){return this._treeMap[t]},i}(),bt=new Yt([]),Pt=15,Ut=function(){function r(){this._active=this,this._parent=null,this._printerParsers=[],this._optional=!1,this._padNextWidth=0,this._padNextChar=null,this._valueParserIndex=-1}r._of=function(t,e){m(t,"parent"),m(e,"optional");var n=new r;return n._parent=t,n._optional=e,n};var t=r.prototype;return t.parseCaseSensitive=function(){return this._appendInternalPrinterParser(Rt.SENSITIVE),this},t.parseCaseInsensitive=function(){return this._appendInternalPrinterParser(Rt.INSENSITIVE),this},t.parseStrict=function(){return this._appendInternalPrinterParser(Rt.STRICT),this},t.parseLenient=function(){return this._appendInternalPrinterParser(Rt.LENIENT),this},t.appendValue=function(){return 1===arguments.length?this._appendValue1.apply(this,arguments):2===arguments.length?this._appendValue2.apply(this,arguments):this._appendValue4.apply(this,arguments)},t._appendValue1=function(t){return m(t),this._appendValuePrinterParser(new At(t,1,Pt,Et.NORMAL)),this},t._appendValue2=function(t,e){if(m(t),e<1||e>Pt)throw new h("The width must be from 1 to 15 inclusive but was "+e);var n=new At(t,e,e,Et.NOT_NEGATIVE);return this._appendValuePrinterParser(n),this},t._appendValue4=function(t,e,n,r){if(m(t),m(r),e===n&&r===Et.NOT_NEGATIVE)return this._appendValue2(t,n);if(e<1||e>Pt)throw new h("The minimum width must be from 1 to 15 inclusive but was "+e);if(n<1||n>Pt)throw new h("The minimum width must be from 1 to 15 inclusive but was "+n);if(n<e)throw new h("The maximum width must exceed or equal the minimum width but "+n+" < "+e);var i=new At(t,e,n,r);return this._appendValuePrinterParser(i),this},t.appendValueReduced=function(){return 4===arguments.length&&arguments[3]instanceof q?this._appendValueReducedFieldWidthMaxWidthBaseDate.apply(this,arguments):this._appendValueReducedFieldWidthMaxWidthBaseValue.apply(this,arguments)},t._appendValueReducedFieldWidthMaxWidthBaseValue=function(t,e,n,r){m(t,"field");var i=new Tt(t,e,n,r,null);return this._appendValuePrinterParser(i),this},t._appendValueReducedFieldWidthMaxWidthBaseDate=function(t,e,n,r){m(t,"field"),m(r,"baseDate"),s(r,q,"baseDate");var i=new Tt(t,e,n,0,r);return this._appendValuePrinterParser(i),this},t._appendValuePrinterParser=function(t){if(S(null!=t),this._active._valueParserIndex>=0&&this._active._printerParsers[this._active._valueParserIndex]instanceof At){var e=this._active._valueParserIndex,n=this._active._printerParsers[e];t.minWidth()===t.maxWidth()&&t.signStyle()===Et.NOT_NEGATIVE?(n=n.withSubsequentWidth(t.maxWidth()),this._appendInternal(t.withFixedWidth()),this._active._valueParserIndex=e):(n=n.withFixedWidth(),this._active._valueParserIndex=this._appendInternal(t)),this._active._printerParsers[e]=n}else this._active._valueParserIndex=this._appendInternal(t);return this},t.appendFraction=function(t,e,n,r){return this._appendInternal(new vt(t,e,n,r)),this},t.appendInstant=function(t){if(void 0===t&&(t=-2),t<-2||t>9)throw new h("Invalid fractional digits: "+t);return this._appendInternal(new xt(t)),this},t.appendOffsetId=function(){return this._appendInternal(wt.INSTANCE_ID),this},t.appendOffset=function(t,e){return this._appendInternalPrinterParser(new wt(e,t)),this},t.appendZoneId=function(){return this._appendInternal(new Ft(D.zoneId(),"ZoneId()")),this},t.appendPattern=function(t){return m(t,"pattern"),this._parsePattern(t),this},t.appendZoneText=function(){throw new h("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},t.appendText=function(){throw new h("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},t.appendLocalizedOffset=function(){throw new h("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},t.appendWeekField=function(){throw new h("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},t._parsePattern=function(t){for(var e={G:R.ERA,y:R.YEAR_OF_ERA,u:R.YEAR,Q:nt.QUARTER_OF_YEAR,q:nt.QUARTER_OF_YEAR,M:R.MONTH_OF_YEAR,L:R.MONTH_OF_YEAR,D:R.DAY_OF_YEAR,d:R.DAY_OF_MONTH,F:R.ALIGNED_DAY_OF_WEEK_IN_MONTH,E:R.DAY_OF_WEEK,c:R.DAY_OF_WEEK,e:R.DAY_OF_WEEK,a:R.AMPM_OF_DAY,H:R.HOUR_OF_DAY,k:R.CLOCK_HOUR_OF_DAY,K:R.HOUR_OF_AMPM,h:R.CLOCK_HOUR_OF_AMPM,m:R.MINUTE_OF_HOUR,s:R.SECOND_OF_MINUTE,S:R.NANO_OF_SECOND,A:R.MILLI_OF_DAY,n:R.NANO_OF_SECOND,N:R.NANO_OF_DAY},n=0;n<t.length;n++){var r=t.charAt(n);if(r>="A"&&r<="Z"||r>="a"&&r<="z"){for(var i=n++;n<t.length&&t.charAt(n)===r;n++);var o=n-i;if("p"===r){var s=0;if(n<t.length&&((r=t.charAt(n))>="A"&&r<="Z"||r>="a"&&r<="z")){for(s=o,i=n++;n<t.length&&t.charAt(n)===r;n++);o=n-i}if(0===s)throw new h("Pad letter 'p' must be followed by valid pad pattern: "+t);this.padNext(s)}var a=e[r];if(null!=a)this._parseField(r,o,a);else if("z"===r){if(o>4)throw new h("Too many pattern letters: "+r);4===o?this.appendZoneText(Ot.FULL):this.appendZoneText(Ot.SHORT)}else if("V"===r){if(2!==o)throw new h("Pattern letter count must be 2: "+r);this.appendZoneId()}else if("Z"===r)if(o<4)this.appendOffset("+HHMM","+0000");else if(4===o)this.appendLocalizedOffset(Ot.FULL);else{if(5!==o)throw new h("Too many pattern letters: "+r);this.appendOffset("+HH:MM:ss","Z")}else if("O"===r)if(1===o)this.appendLocalizedOffset(Ot.SHORT);else{if(4!==o)throw new h("Pattern letter count must be 1 or 4: "+r);this.appendLocalizedOffset(Ot.FULL)}else if("X"===r){if(o>5)throw new h("Too many pattern letters: "+r);this.appendOffset(wt.PATTERNS[o+(1===o?0:1)],"Z")}else if("x"===r){if(o>5)throw new h("Too many pattern letters: "+r);var u=1===o?"+00":o%2==0?"+0000":"+00:00";this.appendOffset(wt.PATTERNS[o+(1===o?0:1)],u)}else if("W"===r){if(o>1)throw new h("Too many pattern letters: "+r);this.appendWeekField("W",o)}else if("w"===r){if(o>2)throw new h("Too many pattern letters: "+r);this.appendWeekField("w",o)}else{if("Y"!==r)throw new h("Unknown pattern letter: "+r);this.appendWeekField("Y",o)}n--}else if("'"===r){for(var f=n++;n<t.length;n++)if("'"===t.charAt(n)){if(!(n+1<t.length&&"'"===t.charAt(n+1)))break;n++}if(n>=t.length)throw new h("Pattern ends with an incomplete string literal: "+t);var c=t.substring(f+1,n);0===c.length?this.appendLiteral("'"):this.appendLiteral(c.replace("''","'"))}else if("["===r)this.optionalStart();else if("]"===r){if(null===this._active._parent)throw new h("Pattern invalid as it contains ] without previous [");this.optionalEnd()}else{if("{"===r||"}"===r||"#"===r)throw new h("Pattern includes reserved character: '"+r+"'");this.appendLiteral(r)}}},t._parseField=function(t,e,n){switch(t){case"u":case"y":2===e?this.appendValueReduced(n,2,2,Tt.BASE_DATE):e<4?this.appendValue(n,e,Pt,Et.NORMAL):this.appendValue(n,e,Pt,Et.EXCEEDS_PAD);break;case"M":case"Q":switch(e){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,Ot.SHORT);break;case 4:this.appendText(n,Ot.FULL);break;case 5:this.appendText(n,Ot.NARROW);break;default:throw new h("Too many pattern letters: "+t)}break;case"L":case"q":switch(e){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,Ot.SHORT_STANDALONE);break;case 4:this.appendText(n,Ot.FULL_STANDALONE);break;case 5:this.appendText(n,Ot.NARROW_STANDALONE);break;default:throw new h("Too many pattern letters: "+t)}break;case"e":switch(e){case 1:case 2:this.appendWeekField("e",e);break;case 3:this.appendText(n,Ot.SHORT);break;case 4:this.appendText(n,Ot.FULL);break;case 5:this.appendText(n,Ot.NARROW);break;default:throw new h("Too many pattern letters: "+t)}break;case"c":switch(e){case 1:this.appendWeekField("c",e);break;case 2:throw new h("Invalid number of pattern letters: "+t);case 3:this.appendText(n,Ot.SHORT_STANDALONE);break;case 4:this.appendText(n,Ot.FULL_STANDALONE);break;case 5:this.appendText(n,Ot.NARROW_STANDALONE);break;default:throw new h("Too many pattern letters: "+t)}break;case"a":if(1!==e)throw new h("Too many pattern letters: "+t);this.appendText(n,Ot.SHORT);break;case"E":case"G":switch(e){case 1:case 2:case 3:this.appendText(n,Ot.SHORT);break;case 4:this.appendText(n,Ot.FULL);break;case 5:this.appendText(n,Ot.NARROW);break;default:throw new h("Too many pattern letters: "+t)}break;case"S":this.appendFraction(R.NANO_OF_SECOND,e,e,!1);break;case"F":if(1!==e)throw new h("Too many pattern letters: "+t);this.appendValue(n);break;case"d":case"h":case"H":case"k":case"K":case"m":case"s":if(1===e)this.appendValue(n);else{if(2!==e)throw new h("Too many pattern letters: "+t);this.appendValue(n,e)}break;case"D":if(1===e)this.appendValue(n);else{if(!(e<=3))throw new h("Too many pattern letters: "+t);this.appendValue(n,e)}break;default:1===e?this.appendValue(n):this.appendValue(n,e)}},t.padNext=function(){return 1===arguments.length?this._padNext1.apply(this,arguments):this._padNext2.apply(this,arguments)},t._padNext1=function(t){return this._padNext2(t," ")},t._padNext2=function(t,e){if(t<1)throw new h("The pad width must be at least one but was "+t);return this._active._padNextWidth=t,this._active._padNextChar=e,this._active._valueParserIndex=-1,this},t.optionalStart=function(){return this._active._valueParserIndex=-1,this._active=r._of(this._active,!0),this},t.optionalEnd=function(){if(null==this._active._parent)throw new i("Cannot call optionalEnd() as there was no previous call to optionalStart()");if(this._active._printerParsers.length>0){var t=new yt(this._active._printerParsers,this._active._optional);this._active=this._active._parent,this._appendInternal(t)}else this._active=this._active._parent;return this},t._appendInternal=function(t){return S(null!=t),this._active._padNextWidth>0&&(null!=t&&(t=new gt(t,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(t),this._active._valueParserIndex=-1,this._active._printerParsers.length-1},t.appendLiteral=function(t){return S(null!=t),t.length>0&&(1===t.length?this._appendInternalPrinterParser(new St(t.charAt(0))):this._appendInternalPrinterParser(new Mt(t))),this},t._appendInternalPrinterParser=function(t){return S(null!=t),this._active._padNextWidth>0&&(null!=t&&(t=new gt(t,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(t),this._active._valueParserIndex=-1,this._active._printerParsers.length-1},t.append=function(t){return m(t,"formatter"),this._appendInternal(t._toPrinterParser(!1)),this},t.toFormatter=function(t){for(void 0===t&&(t=x.SMART);null!=this._active._parent;)this.optionalEnd();var e=new yt(this._printerParsers,!1);return new Wt(e,null,mt.STANDARD,t,null,null,null)},r}(),Vt=31556952e4,kt=62167219200,xt=function(){function t(t){this.fractionalDigits=t}var e=t.prototype;return e.print=function(t,e){var n=t.getValue(R.INSTANT_SECONDS),r=0;if(t.temporal().isSupported(R.NANO_OF_SECOND)&&(r=t.temporal().getLong(R.NANO_OF_SECOND)),null==n)return!1;var i=n,o=R.NANO_OF_SECOND.checkValidIntValue(r);if(i>=-62167219200){var s=i-Vt+kt,a=g.floorDiv(s,Vt)+1,u=g.floorMod(s,Vt),f=ue.ofEpochSecond(u-kt,0,$.UTC);a>0&&e.append("+").append(a),e.append(f),0===f.second()&&e.append(":00")}else{var c=i+kt,h=g.intDiv(c,Vt),l=g.intMod(c,Vt),_=ue.ofEpochSecond(l-kt,0,$.UTC),d=e.length();e.append(_),0===_.second()&&e.append(":00"),h<0&&(-1e4===_.year()?e.replace(d,d+2,""+(h-1)):0===l?e.insert(d,h):e.insert(d+1,Math.abs(h)))}if(-2===this.fractionalDigits)0!==o&&(e.append("."),0===g.intMod(o,1e6)?e.append((""+(g.intDiv(o,1e6)+1e3)).substring(1)):0===g.intMod(o,1e3)?e.append((""+(g.intDiv(o,1e3)+1e6)).substring(1)):e.append((""+(o+1e9)).substring(1)));else if(this.fractionalDigits>0||-1===this.fractionalDigits&&o>0){e.append(".");for(var p=1e8,m=0;-1===this.fractionalDigits&&o>0||m<this.fractionalDigits;m++){var E=g.intDiv(o,p);e.append(E),o-=E*p,p=g.intDiv(p,10)}}return e.append("Z"),!0},e.parse=function(t,e,n){var r=t.copy(),i=this.fractionalDigits<0?0:this.fractionalDigits,o=this.fractionalDigits<0?9:this.fractionalDigits,s=(new Ut).append(Wt.ISO_LOCAL_DATE).appendLiteral("T").appendValue(R.HOUR_OF_DAY,2).appendLiteral(":").appendValue(R.MINUTE_OF_HOUR,2).appendLiteral(":").appendValue(R.SECOND_OF_MINUTE,2).appendFraction(R.NANO_OF_SECOND,i,o,!0).appendLiteral("Z").toFormatter()._toPrinterParser(!1).parse(r,e,n);if(s<0)return s;var a,u=r.getParsed(R.YEAR),f=r.getParsed(R.MONTH_OF_YEAR),c=r.getParsed(R.DAY_OF_MONTH),h=r.getParsed(R.HOUR_OF_DAY),l=r.getParsed(R.MINUTE_OF_HOUR),_=r.getParsed(R.SECOND_OF_MINUTE),d=r.getParsed(R.NANO_OF_SECOND),p=null!=_?_:0,m=null!=d?d:0,E=g.intMod(u,1e4),O=0;24===h&&0===l&&0===p&&0===m?(h=0,O=1):23===h&&59===l&&60===p&&(t.setParsedLeapSecond(),p=59);try{a=ue.of(E,f,c,h,l,p,0).plusDays(O).toEpochSecond($.UTC),a+=g.safeMultiply(g.intDiv(u,1e4),Vt)}catch(t){return~n}var S=s;return S=t.setParsedField(R.INSTANT_SECONDS,a,n,S),t.setParsedField(R.NANO_OF_SECOND,m,n,S)},e.toString=function(){return"Instant()"},t}(),Ht=function(){function t(){this._str=""}var e=t.prototype;return e.append=function(t){return this._str+=t,this},e.appendChar=function(t){return this._str+=t[0],this},e.insert=function(t,e){return this._str=this._str.slice(0,t)+e+this._str.slice(t),this},e.replace=function(t,e,n){return this._str=this._str.slice(0,t)+n+this._str.slice(e),this},e.length=function(){return this._str.length},e.setLength=function(t){return this._str=this._str.slice(0,t),this},e.toString=function(){return this._str},t}(),Wt=function(){function e(t,e,n,r,i,o,s){void 0===o&&(o=Qt.INSTANCE),S(null!=t),S(null!=n),S(null!=r),this._printerParser=t,this._locale=e,this._decimalStyle=n,this._resolverStyle=r,this._resolverFields=i,this._chrono=o,this._zone=s}e.parsedExcessDays=function(){return e.PARSED_EXCESS_DAYS},e.parsedLeapSecond=function(){return e.PARSED_LEAP_SECOND},e.ofPattern=function(t){return(new Ut).appendPattern(t).toFormatter()};var t=e.prototype;return t.locale=function(){return this._locale},t.decimalStyle=function(){return this._decimalStyle},t.chronology=function(){return this._chrono},t.withChronology=function(t){return null!=this._chrono&&this._chrono.equals(t)?this:new e(this._printerParser,this._locale,this._decimalStyle,this._resolverStyle,this._resolverFields,t,this._zone)},t.withLocale=function(){return this},t.withResolverStyle=function(t){return m(t,"resolverStyle"),t.equals(this._resolverStyle)?this:new e(this._printerParser,this._locale,this._decimalStyle,t,this._resolverFields,this._chrono,this._zone)},t.format=function(t){var e=new Ht(32);return this._formatTo(t,e),e.toString()},t._formatTo=function(t,e){m(t,"temporal"),m(e,"appendable");var n=new et(t,this);this._printerParser.print(n,e)},t.parse=function(t,e){return 1===arguments.length?this.parse1(t):this.parse2(t,e)},t.parse1=function(e){m(e,"text");try{return this._parseToBuilder(e,null).resolve(this._resolverStyle,this._resolverFields)}catch(t){throw t instanceof p?t:this._createError(e,t)}},t.parse2=function(t,e){m(t,"text"),m(e,"type");try{return this._parseToBuilder(t,null).resolve(this._resolverStyle,this._resolverFields).build(e)}catch(e){throw e instanceof p?e:this._createError(t,e)}},t._createError=function(t,e){var n="";return n=t.length>64?t.substring(0,64)+"...":t,new p("Text '"+n+"' could not be parsed: "+e.message,t,0,e)},t._parseToBuilder=function(t,e){var n=null!=e?e:new V(0),r=this._parseUnresolved0(t,n);if(null==r||n.getErrorIndex()>=0||null==e&&n.getIndex()<t.length){var i="";throw i=t.length>64?t.substr(0,64).toString()+"...":t,n.getErrorIndex()>=0?new p("Text '"+i+"' could not be parsed at index "+n.getErrorIndex(),t,n.getErrorIndex()):new p("Text '"+i+"' could not be parsed, unparsed text found at index "+n.getIndex(),t,n.getIndex())}return r.toBuilder()},t.parseUnresolved=function(t,e){return this._parseUnresolved0(t,e)},t._parseUnresolved0=function(t,e){S(null!=t,"text",o),S(null!=e,"position",o);var n=new Q(this),r=e.getIndex();return(r=this._printerParser.parse(n,t,r))<0?(e.setErrorIndex(~r),null):(e.setIndex(r),n.toParsed())},t._toPrinterParser=function(t){return this._printerParser.withOptional(t)},t.toString=function(){var t=this._printerParser.toString();return 0===t.indexOf("[")?t:t.substring(1,t.length-1)},e}(),Bt,qt=function(r){function n(t,e){var n;return(n=r.call(this)||this)._month=g.safeToInt(t),n._day=g.safeToInt(e),n}_(n,r),n.now=function(t){return 0===arguments.length?n.now0():1===arguments.length&&t instanceof z?n.nowZoneId(t):n.nowClock(t)},n.now0=function(){return this.nowClock(le.systemDefaultZone())},n.nowZoneId=function(t){return m(t,"zone"),this.nowClock(le.system(t))},n.nowClock=function(t){m(t,"clock");var e=se.now(t);return n.of(e.month(),e.dayOfMonth())},n.of=function(t,e){return 2===arguments.length&&t instanceof b?n.ofMonthNumber(t,e):n.ofNumberNumber(t,e)},n.ofMonthNumber=function(t,e){if(m(t,"month"),R.DAY_OF_MONTH.checkValidValue(e),e>t.maxLength())throw new w("Illegal value for DayOfMonth field, value "+e+" is not valid for month "+t.toString());return new n(t.value(),e)},n.ofNumberNumber=function(t,e){return m(t,"month"),m(e,"dayOfMonth"),n.of(b.of(t),e)},n.from=function(e){if(m(e,"temporal"),s(e,M,"temporal"),e instanceof n)return e;try{return n.of(e.get(R.MONTH_OF_YEAR),e.get(R.DAY_OF_MONTH))}catch(t){throw new w("Unable to obtain MonthDay from TemporalAccessor: "+e+", type "+(e&&null!=e.constructor?e.constructor.name:""))}},n.parse=function(t,e){return 1===arguments.length?n.parseString(t):n.parseStringFormatter(t,e)},n.parseString=function(t){return n.parseStringFormatter(t,Bt)},n.parseStringFormatter=function(t,e){return m(t,"text"),m(e,"formatter"),s(e,Wt,"formatter"),e.parse(t,n.FROM)};var t=n.prototype;return t.monthValue=function(){return this._month},t.month=function(){return b.of(this._month)},t.dayOfMonth=function(){return this._day},t.isSupported=function(t){return t instanceof R?t===R.MONTH_OF_YEAR||t===R.DAY_OF_MONTH:null!=t&&t.isSupportedBy(this)},t.range=function(t){return t===R.MONTH_OF_YEAR?t.range():t===R.DAY_OF_MONTH?T.of(1,this.month().minLength(),this.month().maxLength()):r.prototype.range.call(this,t)},t.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},t.getLong=function(t){if(m(t,"field"),t instanceof R){switch(t){case R.DAY_OF_MONTH:return this._day;case R.MONTH_OF_YEAR:return this._month}throw new l("Unsupported field: "+t)}return t.getFrom(this)},t.isValidYear=function(t){return!1==(29===this._day&&2===this._month&&!1===Kt.isLeap(t))},t.withMonth=function(t){return this.with(b.of(t))},t.with=function(t){if(m(t,"month"),t.value()===this._month)return this;var e=Math.min(this._day,t.maxLength());return new n(t.value(),e)},t.withDayOfMonth=function(t){return t===this._day?this:n.of(this._month,t)},t.query=function(t){return m(t,"query"),s(t,I,"query"),t===D.chronology()?Qt.INSTANCE:r.prototype.query.call(this,t)},t.adjustInto=function(t){return m(t,"temporal"),(t=t.with(R.MONTH_OF_YEAR,this._month)).with(R.DAY_OF_MONTH,Math.min(t.range(R.DAY_OF_MONTH).maximum(),this._day))},t.atYear=function(t){return se.of(t,this._month,this.isValidYear(t)?this._day:28)},t.compareTo=function(t){m(t,"other"),s(t,n,"other");var e=this._month-t.monthValue();return 0===e&&(e=this._day-t.dayOfMonth()),e},t.isAfter=function(t){return m(t,"other"),s(t,n,"other"),this.compareTo(t)>0},t.isBefore=function(t){return m(t,"other"),s(t,n,"other"),this.compareTo(t)<0},t.equals=function(t){if(this===t)return!0;if(t instanceof n){var e=t;return this.monthValue()===e.monthValue()&&this.dayOfMonth()===e.dayOfMonth()}return!1},t.toString=function(){return"--"+(this._month<10?"0":"")+this._month+(this._day<10?"-0":"-")+this._day},t.toJSON=function(){return this.toString()},t.format=function(t){return m(t,"formatter"),s(t,Wt,"formatter"),t.format(this)},n}(M),jt,zt=function(r){function i(t,e){var n;return(n=r.call(this)||this)._year=g.safeToInt(t),n._month=g.safeToInt(e),n}_(i,r),i.now=function(t){return 0===arguments.length?i.now0():1===arguments.length&&t instanceof z?i.nowZoneId(t):i.nowClock(t)},i.now0=function(){return i.nowClock(le.systemDefaultZone())},i.nowZoneId=function(t){return i.nowClock(le.system(t))},i.nowClock=function(t){var e=se.now(t);return i.of(e.year(),e.month())},i.of=function(t,e){return 2===arguments.length&&e instanceof b?i.ofNumberMonth(t,e):i.ofNumberNumber(t,e)},i.ofNumberMonth=function(t,e){return m(e,"month"),s(e,b,"month"),i.ofNumberNumber(t,e.value())},i.ofNumberNumber=function(t,e){return m(t,"year"),m(e,"month"),R.YEAR.checkValidValue(t),R.MONTH_OF_YEAR.checkValidValue(e),new i(t,e)},i.from=function(e){if(m(e,"temporal"),e instanceof i)return e;try{return i.of(e.get(R.YEAR),e.get(R.MONTH_OF_YEAR))}catch(t){throw new w("Unable to obtain YearMonth from TemporalAccessor: "+e+", type "+(e&&null!=e.constructor?e.constructor.name:""))}},i.parse=function(t,e){return 1===arguments.length?i.parseString(t):i.parseStringFormatter(t,e)},i.parseString=function(t){return i.parseStringFormatter(t,jt)},i.parseStringFormatter=function(t,e){return m(e,"formatter"),e.parse(t,i.FROM)};var t=i.prototype;return t.isSupported=function(t){return 1===arguments.length&&t instanceof A?this.isSupportedField(t):this.isSupportedUnit(t)},t.isSupportedField=function(t){return t instanceof R?t===R.YEAR||t===R.MONTH_OF_YEAR||t===R.PROLEPTIC_MONTH||t===R.YEAR_OF_ERA||t===R.ERA:null!=t&&t.isSupportedBy(this)},t.isSupportedUnit=function(t){return t instanceof N?t===N.MONTHS||t===N.YEARS||t===N.DECADES||t===N.CENTURIES||t===N.MILLENNIA||t===N.ERAS:null!=t&&t.isSupportedBy(this)},t.range=function(t){return t===R.YEAR_OF_ERA?this.year()<=0?T.of(1,Kt.MAX_VALUE+1):T.of(1,Kt.MAX_VALUE):r.prototype.range.call(this,t)},t.get=function(t){return m(t,"field"),s(t,A,"field"),this.range(t).checkValidIntValue(this.getLong(t),t)},t.getLong=function(t){if(m(t,"field"),s(t,A,"field"),t instanceof R){switch(t){case R.MONTH_OF_YEAR:return this._month;case R.PROLEPTIC_MONTH:return this._getProlepticMonth();case R.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case R.YEAR:return this._year;case R.ERA:return this._year<1?0:1}throw new l("Unsupported field: "+t)}return t.getFrom(this)},t._getProlepticMonth=function(){return g.safeAdd(g.safeMultiply(this._year,12),this._month-1)},t.year=function(){return this._year},t.monthValue=function(){return this._month},t.month=function(){return b.of(this._month)},t.isLeapYear=function(){return Qt.isLeapYear(this._year)},t.isValidDay=function(t){return t>=1&&t<=this.lengthOfMonth()},t.lengthOfMonth=function(){return this.month().length(this.isLeapYear())},t.lengthOfYear=function(){return this.isLeapYear()?366:365},t.with=function(t,e){return 1===arguments.length?this.withAdjuster(t):this.withFieldValue(t,e)},t.withAdjuster=function(t){return m(t,"adjuster"),t.adjustInto(this)},t.withFieldValue=function(t,e){if(m(t,"field"),s(t,A,"field"),t instanceof R){var n=t;switch(n.checkValidValue(e),n){case R.MONTH_OF_YEAR:return this.withMonth(e);case R.PROLEPTIC_MONTH:return this.plusMonths(e-this.getLong(R.PROLEPTIC_MONTH));case R.YEAR_OF_ERA:return this.withYear(this._year<1?1-e:e);case R.YEAR:return this.withYear(e);case R.ERA:return this.getLong(R.ERA)===e?this:this.withYear(1-this._year)}throw new l("Unsupported field: "+t)}return t.adjustInto(this,e)},t.withYear=function(t){return R.YEAR.checkValidValue(t),new i(t,this._month)},t.withMonth=function(t){return R.MONTH_OF_YEAR.checkValidValue(t),new i(this._year,t)},t.plusAmount=function(t){return m(t,"amount"),s(t,c,"amount"),t.addTo(this)},t.plusAmountUnit=function(t,e){if(m(e,"unit"),s(e,E,"unit"),e instanceof N){switch(e){case N.MONTHS:return this.plusMonths(t);case N.YEARS:return this.plusYears(t);case N.DECADES:return this.plusYears(g.safeMultiply(t,10));case N.CENTURIES:return this.plusYears(g.safeMultiply(t,100));case N.MILLENNIA:return this.plusYears(g.safeMultiply(t,1e3));case N.ERAS:return this.with(R.ERA,g.safeAdd(this.getLong(R.ERA),t))}throw new l("Unsupported unit: "+e)}return e.addTo(this,t)},t.plusYears=function(t){if(0===t)return this;var e=R.YEAR.checkValidIntValue(this._year+t);return this.withYear(e)},t.plusMonths=function(t){if(0===t)return this;var e=12*this._year+(this._month-1)+t;return new i(R.YEAR.checkValidIntValue(g.floorDiv(e,12)),g.floorMod(e,12)+1)},t.minusAmount=function(t){return m(t,"amount"),t.subtractFrom(this)},t.minusAmountUnit=function(t,e){return t===g.MIN_SAFE_INTEGER?this.plusAmountUnit(g.MAX_SAFE_INTEGER,e).plusAmountUnit(1,e):this.plusAmountUnit(-t,e)},t.minusYears=function(t){return t===g.MIN_SAFE_INTEGER?this.plusYears(g.MIN_SAFE_INTEGER).plusYears(1):this.plusYears(-t)},t.minusMonths=function(t){return t===g.MIN_SAFE_INTEGER?this.plusMonths(Math.MAX_SAFE_INTEGER).plusMonths(1):this.plusMonths(-t)},t.query=function(t){return m(t,"query"),s(t,I,"query"),t===D.chronology()?Qt.INSTANCE:t===D.precision()?N.MONTHS:t===D.localDate()||t===D.localTime()||t===D.zone()||t===D.zoneId()||t===D.offset()?null:r.prototype.query.call(this,t)},t.adjustInto=function(t){return m(t,"temporal"),s(t,W,"temporal"),t.with(R.PROLEPTIC_MONTH,this._getProlepticMonth())},t.until=function(t,e){m(t,"endExclusive"),m(e,"unit"),s(t,W,"endExclusive"),s(e,E,"unit");var n=i.from(t);if(e instanceof N){var r=n._getProlepticMonth()-this._getProlepticMonth();switch(e){case N.MONTHS:return r;case N.YEARS:return r/12;case N.DECADES:return r/120;case N.CENTURIES:return r/1200;case N.MILLENNIA:return r/12e3;case N.ERAS:return n.getLong(R.ERA)-this.getLong(R.ERA)}throw new l("Unsupported unit: "+e)}return e.between(this,n)},t.atDay=function(t){return se.of(this._year,this._month,t)},t.atEndOfMonth=function(){return se.of(this._year,this._month,this.lengthOfMonth())},t.compareTo=function(t){m(t,"other"),s(t,i,"other");var e=this._year-t.year();return 0===e&&(e=this._month-t.monthValue()),e},t.isAfter=function(t){return this.compareTo(t)>0},t.isBefore=function(t){return this.compareTo(t)<0},t.equals=function(t){if(this===t)return!0;if(t instanceof i){var e=t;return this.year()===e.year()&&this.monthValue()===e.monthValue()}return!1},t.toString=function(){return jt.format(this)},t.toJSON=function(){return this.toString()},t.format=function(t){return m(t,"formatter"),t.format(this)},i}(W),Zt,Kt=function(n){function i(t){var e;return(e=n.call(this)||this)._year=g.safeToInt(t),e}_(i,n);var t=i.prototype;return t.value=function(){return this._year},i.now=function(t){return void 0===t&&(t=void 0),void 0===t?i.now0():t instanceof z?i.nowZoneId(t):i.nowClock(t)},i.now0=function(){return i.nowClock(le.systemDefaultZone())},i.nowZoneId=function(t){return m(t,"zone"),s(t,z,"zone"),i.nowClock(le.system(t))},i.nowClock=function(t){m(t,"clock"),s(t,le,"clock");var e=se.now(t);return i.of(e.year())},i.of=function(t){return m(t,"isoYear"),R.YEAR.checkValidValue(t),new i(t)},i.from=function(e){if(m(e,"temporal"),s(e,M,"temporal"),e instanceof i)return e;try{return i.of(e.get(R.YEAR))}catch(t){throw new w("Unable to obtain Year from TemporalAccessor: "+e+", type "+(e&&null!=e.constructor?e.constructor.name:""))}},i.parse=function(t,e){return arguments.length<=1?i.parseText(t):i.parseTextFormatter(t,e)},i.parseText=function(t){return m(t,"text"),i.parse(t,Zt)},i.parseTextFormatter=function(t,e){return void 0===e&&(e=Zt),m(t,"text"),m(e,"formatter"),s(e,Wt,"formatter"),e.parse(t,i.FROM)},i.isLeap=function(t){return 0===g.intMod(t,4)&&(0!==g.intMod(t,100)||0===g.intMod(t,400))},t.isSupported=function(t){return 1===arguments.length&&t instanceof A?this.isSupportedField(t):this.isSupportedUnit(t)},t.isSupportedField=function(t){return t instanceof R?t===R.YEAR||t===R.YEAR_OF_ERA||t===R.ERA:null!=t&&t.isSupportedBy(this)},t.isSupportedUnit=function(t){return t instanceof N?t===N.YEARS||t===N.DECADES||t===N.CENTURIES||t===N.MILLENNIA||t===N.ERAS:null!=t&&t.isSupportedBy(this)},t.range=function(t){if(this.isSupported(t))return t.range();if(t instanceof R)throw new l("Unsupported field: "+t);return n.prototype.range.call(this,t)},t.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},t.getLong=function(t){if(m(t,"field"),t instanceof R){switch(t){case R.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case R.YEAR:return this._year;case R.ERA:return this._year<1?0:1}throw new l("Unsupported field: "+t)}return t.getFrom(this)},t.isLeap=function(){return i.isLeap(this._year)},t.withAdjuster=function(t){return m(t,"adjuster"),t.adjustInto(this)},t.withFieldValue=function(t,e){if(m(t,"field"),s(t,A,"field"),t instanceof R){switch(t.checkValidValue(e),t){case R.YEAR_OF_ERA:return i.of(this._year<1?1-e:e);case R.YEAR:return i.of(e);case R.ERA:return this.getLong(R.ERA)===e?this:i.of(1-this._year)}throw new l("Unsupported field: "+t)}return t.adjustInto(this,e)},t.plusAmount=function(t){return m(t,"amount"),s(t,c,"amount"),t.addTo(this)},t.plusAmountUnit=function(t,e){if(m(t,"amountToAdd"),m(e,"unit"),s(e,E,"unit"),e instanceof N){switch(e){case N.YEARS:return this.plusYears(t);case N.DECADES:return this.plusYears(g.safeMultiply(t,10));case N.CENTURIES:return this.plusYears(g.safeMultiply(t,100));case N.MILLENNIA:return this.plusYears(g.safeMultiply(t,1e3));case N.ERAS:return this.with(R.ERA,g.safeAdd(this.getLong(R.ERA),t))}throw new l("Unsupported unit: "+e)}return e.addTo(this,t)},t.plusYears=function(t){return 0===t?this:i.of(R.YEAR.checkValidIntValue(g.safeAdd(this._year,t)))},t.minusAmount=function(t){return m(t,"amount"),s(t,c,"amount"),t.subtractFrom(this)},t.minusAmountUnit=function(t,e){return m(t,"amountToSubtract"),m(e,"unit"),s(e,E,"unit"),t===g.MIN_SAFE_INTEGER?this.plus(g.MAX_SAFE_INTEGER,e).plus(1,e):this.plus(-t,e)},t.minusYears=function(t){return t===g.MIN_SAFE_INTEGER?this.plusYears(g.MAX_SAFE_INTEGER).plusYears(1):this.plusYears(-t)},t.adjustInto=function(t){return m(t,"temporal"),t.with(R.YEAR,this._year)},t.isValidMonthDay=function(t){return null!=t&&t.isValidYear(this._year)},t.length=function(){return this.isLeap()?366:365},t.atDay=function(t){return se.ofYearDay(this._year,t)},t.atMonth=function(t){return 1===arguments.length&&t instanceof b?this.atMonthMonth(t):this.atMonthNumber(t)},t.atMonthMonth=function(t){return m(t,"month"),s(t,b,"month"),zt.of(this._year,t)},t.atMonthNumber=function(t){return m(t,"month"),zt.of(this._year,t)},t.atMonthDay=function(t){return m(t,"monthDay"),s(t,qt,"monthDay"),t.atYear(this._year)},t.query=function(t){return m(t,"query()"),s(t,I,"query()"),t===D.chronology()?Qt.INSTANCE:t===D.precision()?N.YEARS:t===D.localDate()||t===D.localTime()||t===D.zone()||t===D.zoneId()||t===D.offset()?null:n.prototype.query.call(this,t)},t.compareTo=function(t){return m(t,"other"),s(t,i,"other"),this._year-t._year},t.isAfter=function(t){return m(t,"other"),s(t,i,"other"),this._year>t._year},t.isBefore=function(t){return m(t,"other"),s(t,i,"other"),this._year<t._year},t.format=function(t){return m(t,"formatter"),s(t,Wt,"formatter"),t.format(this)},t.equals=function(t){return this===t||t instanceof i&&this.value()===t.value()},t.toString=function(){return""+this._year},t.toJSON=function(){return this.toString()},t.until=function(t,e){var n=i.from(t);if(e instanceof N){var r=n.value()-this.value();switch(e){case N.YEARS:return r;case N.DECADES:return g.intDiv(r,10);case N.CENTURIES:return g.intDiv(r,100);case N.MILLENNIA:return g.intDiv(r,1e3);case N.ERAS:return n.getLong(R.ERA)-this.getLong(R.ERA)}throw new l("Unsupported unit: "+e)}return e.between(this,n)},i}(W),Gt=function(){function t(){}return t.firstDayOfMonth=function(){return Xt.FIRST_DAY_OF_MONTH},t.lastDayOfMonth=function(){return Xt.LAST_DAY_OF_MONTH},t.firstDayOfNextMonth=function(){return Xt.FIRST_DAY_OF_NEXT_MONTH},t.firstDayOfYear=function(){return Xt.FIRST_DAY_OF_YEAR},t.lastDayOfYear=function(){return Xt.LAST_DAY_OF_YEAR},t.firstDayOfNextYear=function(){return Xt.FIRST_DAY_OF_NEXT_YEAR},t.firstInMonth=function(t){return m(t,"dayOfWeek"),new $t(1,t)},t.lastInMonth=function(t){return m(t,"dayOfWeek"),new $t(-1,t)},t.dayOfWeekInMonth=function(t,e){return m(e,"dayOfWeek"),new $t(t,e)},t.next=function(t){return new Jt(2,t)},t.nextOrSame=function(t){return new Jt(0,t)},t.previous=function(t){return new Jt(3,t)},t.previousOrSame=function(t){return new Jt(1,t)},t}(),Xt=function(n){function t(t){var e;return(e=n.call(this)||this)._ordinal=t,e}return _(t,n),t.prototype.adjustInto=function(t){switch(this._ordinal){case 0:return t.with(R.DAY_OF_MONTH,1);case 1:return t.with(R.DAY_OF_MONTH,t.range(R.DAY_OF_MONTH).maximum());case 2:return t.with(R.DAY_OF_MONTH,1).plus(1,N.MONTHS);case 3:return t.with(R.DAY_OF_YEAR,1);case 4:return t.with(R.DAY_OF_YEAR,t.range(R.DAY_OF_YEAR).maximum());case 5:return t.with(R.DAY_OF_YEAR,1).plus(1,N.YEARS)}throw new i("Unreachable")},t}(H);Xt.FIRST_DAY_OF_MONTH=new Xt(0),Xt.LAST_DAY_OF_MONTH=new Xt(1),Xt.FIRST_DAY_OF_NEXT_MONTH=new Xt(2),Xt.FIRST_DAY_OF_YEAR=new Xt(3),Xt.LAST_DAY_OF_YEAR=new Xt(4),Xt.FIRST_DAY_OF_NEXT_YEAR=new Xt(5);var $t=function(r){function t(t,e){var n;return(n=r.call(this)||this)._ordinal=t,n._dowValue=e.value(),n}return _(t,r),t.prototype.adjustInto=function(t){if(this._ordinal>=0){var e=t.with(R.DAY_OF_MONTH,1),n=e.get(R.DAY_OF_WEEK),r=g.intMod(this._dowValue-n+7,7);return r+=7*(this._ordinal-1),e.plus(r,N.DAYS)}var i=t.with(R.DAY_OF_MONTH,t.range(R.DAY_OF_MONTH).maximum()),o=i.get(R.DAY_OF_WEEK),s=this._dowValue-o;return s=0===s?0:s>0?s-7:s,s-=7*(-this._ordinal-1),i.plus(s,N.DAYS)},t}(H),Jt=function(r){function t(t,e){var n;return n=r.call(this)||this,m(e,"dayOfWeek"),n._relative=t,n._dowValue=e.value(),n}return _(t,r),t.prototype.adjustInto=function(t){var e=t.get(R.DAY_OF_WEEK);if(this._relative<2&&e===this._dowValue)return t;if(0==(1&this._relative)){var n=e-this._dowValue;return t.plus(n>=0?7-n:-n,N.DAYS)}var r=this._dowValue-e;return t.minus(r>=0?7-r:-r,N.DAYS)},t}(H),Qt=function(t){function e(){return t.apply(this,arguments)||this}_(e,t),e.isLeapYear=function(t){return 0==(3&t)&&(t%100!=0||t%400==0)};var n=e.prototype;return n._updateResolveMap=function(t,e,n){m(t,"fieldValues"),m(e,"field");var r=t.get(e);if(null!=r&&r!==n)throw new w("Invalid state, field: "+e+" "+r+" conflicts with "+e+" "+n);t.put(e,n)},n.resolveDate=function(t,e){if(t.containsKey(R.EPOCH_DAY))return se.ofEpochDay(t.remove(R.EPOCH_DAY));var n=t.remove(R.PROLEPTIC_MONTH);null!=n&&(e!==x.LENIENT&&R.PROLEPTIC_MONTH.checkValidValue(n),this._updateResolveMap(t,R.MONTH_OF_YEAR,g.floorMod(n,12)+1),this._updateResolveMap(t,R.YEAR,g.floorDiv(n,12)));var r=t.remove(R.YEAR_OF_ERA);if(null!=r){e!==x.LENIENT&&R.YEAR_OF_ERA.checkValidValue(r);var i=t.remove(R.ERA);if(null==i){var o=t.get(R.YEAR);e===x.STRICT?null!=o?this._updateResolveMap(t,R.YEAR,o>0?r:g.safeSubtract(1,r)):t.put(R.YEAR_OF_ERA,r):this._updateResolveMap(t,R.YEAR,null==o||o>0?r:g.safeSubtract(1,r))}else if(1===i)this._updateResolveMap(t,R.YEAR,r);else{if(0!==i)throw new w("Invalid value for era: "+i);this._updateResolveMap(t,R.YEAR,g.safeSubtract(1,r))}}else t.containsKey(R.ERA)&&R.ERA.checkValidValue(t.get(R.ERA));if(t.containsKey(R.YEAR)){if(t.containsKey(R.MONTH_OF_YEAR)&&t.containsKey(R.DAY_OF_MONTH)){var s=R.YEAR.checkValidIntValue(t.remove(R.YEAR)),a=t.remove(R.MONTH_OF_YEAR),u=t.remove(R.DAY_OF_MONTH);if(e===x.LENIENT){var f=a-1,c=u-1;return se.of(s,1,1).plusMonths(f).plusDays(c)}return e===x.SMART?(R.DAY_OF_MONTH.checkValidValue(u),4===a||6===a||9===a||11===a?u=Math.min(u,30):2===a&&(u=Math.min(u,b.FEBRUARY.length(Kt.isLeap(s)))),se.of(s,a,u)):se.of(s,a,u)}if(t.containsKey(R.DAY_OF_YEAR)){var h=R.YEAR.checkValidIntValue(t.remove(R.YEAR));if(e===x.LENIENT){var l=g.safeSubtract(t.remove(R.DAY_OF_YEAR),1);return se.ofYearDay(h,1).plusDays(l)}var _=R.DAY_OF_YEAR.checkValidIntValue(t.remove(R.DAY_OF_YEAR));return se.ofYearDay(h,_)}if(t.containsKey(R.ALIGNED_WEEK_OF_YEAR)){if(t.containsKey(R.ALIGNED_DAY_OF_WEEK_IN_YEAR)){var d=R.YEAR.checkValidIntValue(t.remove(R.YEAR));if(e===x.LENIENT){var p=g.safeSubtract(t.remove(R.ALIGNED_WEEK_OF_YEAR),1),m=g.safeSubtract(t.remove(R.ALIGNED_DAY_OF_WEEK_IN_YEAR),1);return se.of(d,1,1).plusWeeks(p).plusDays(m)}var E=R.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(t.remove(R.ALIGNED_WEEK_OF_YEAR)),O=R.ALIGNED_DAY_OF_WEEK_IN_YEAR.checkValidIntValue(t.remove(R.ALIGNED_DAY_OF_WEEK_IN_YEAR)),S=se.of(d,1,1).plusDays(7*(E-1)+(O-1));if(e===x.STRICT&&S.get(R.YEAR)!==d)throw new w("Strict mode rejected date parsed to a different year");return S}if(t.containsKey(R.DAY_OF_WEEK)){var y=R.YEAR.checkValidIntValue(t.remove(R.YEAR));if(e===x.LENIENT){var v=g.safeSubtract(t.remove(R.ALIGNED_WEEK_OF_YEAR),1),N=g.safeSubtract(t.remove(R.DAY_OF_WEEK),1);return se.of(y,1,1).plusWeeks(v).plusDays(N)}var A=R.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(t.remove(R.ALIGNED_WEEK_OF_YEAR)),T=R.DAY_OF_WEEK.checkValidIntValue(t.remove(R.DAY_OF_WEEK)),D=se.of(y,1,1).plusWeeks(A-1).with(Gt.nextOrSame(Y.of(T)));if(e===x.STRICT&&D.get(R.YEAR)!==y)throw new w("Strict mode rejected date parsed to a different month");return D}}}return null},n.date=function(t){return se.from(t)},e}(a),te=function(r){function o(t,e){var n;return n=r.call(this)||this,m(t,"time"),s(t,fe,"time"),m(e,"offset"),s(e,$,"offset"),n._time=t,n._offset=e,n}_(o,r),o.from=function(e){if(m(e,"temporal"),e instanceof o)return e;if(e instanceof re)return e.toOffsetTime();try{return new o(fe.from(e),$.from(e))}catch(t){throw new w("Unable to obtain OffsetTime TemporalAccessor: "+e+", type "+(null!=e.constructor?e.constructor.name:""))}},o.now=function(t){return 0===arguments.length?o._now(le.systemDefaultZone()):t instanceof le?o._now(t):o._now(le.system(t))},o._now=function(t){m(t,"clock");var e=t.instant();return o.ofInstant(e,t.zone().rules().offset(e))},o.of=function(){return arguments.length<=2?o.ofTimeAndOffset.apply(this,arguments):o.ofNumbers.apply(this,arguments)},o.ofNumbers=function(t,e,n,r,i){return new o(fe.of(t,e,n,r),i)},o.ofTimeAndOffset=function(t,e){return new o(t,e)},o.ofInstant=function(t,e){m(t,"instant"),s(t,he,"instant"),m(e,"zone"),s(e,z,"zone");var n=e.rules().offset(t),r=t.epochSecond()%fe.SECONDS_PER_DAY;return(r=(r+n.totalSeconds())%fe.SECONDS_PER_DAY)<0&&(r+=fe.SECONDS_PER_DAY),new o(fe.ofSecondOfDay(r,t.nano()),n)},o.parse=function(t,e){return void 0===e&&(e=Wt.ISO_OFFSET_TIME),m(e,"formatter"),e.parse(t,o.FROM)};var t=o.prototype;return t.adjustInto=function(t){return t.with(R.NANO_OF_DAY,this._time.toNanoOfDay()).with(R.OFFSET_SECONDS,this.offset().totalSeconds())},t.atDate=function(t){return re.of(t,this._time,this._offset)},t.format=function(t){return m(t,"formatter"),t.format(this,o.FROM)},t.get=function(t){return r.prototype.get.call(this,t)},t.getLong=function(t){return t instanceof R?t===R.OFFSET_SECONDS?this._offset.totalSeconds():this._time.getLong(t):t.getFrom(this)},t.hour=function(){return this._time.hour()},t.minute=function(){return this._time.minute()},t.second=function(){return this._time.second()},t.nano=function(){return this._time.nano()},t.offset=function(){return this._offset},t.isAfter=function(t){return m(t,"other"),this._toEpochNano()>t._toEpochNano()},t.isBefore=function(t){return m(t,"other"),this._toEpochNano()<t._toEpochNano()},t.isEqual=function(t){return m(t,"other"),this._toEpochNano()===t._toEpochNano()},t.isSupported=function(t){return t instanceof R?t.isTimeBased()||t===R.OFFSET_SECONDS:t instanceof N?t.isTimeBased():null!=t&&t.isSupportedBy(this)},t.minusHours=function(t){return this._withLocalTimeOffset(this._time.minusHours(t),this._offset)},t.minusMinutes=function(t){return this._withLocalTimeOffset(this._time.minusMinutes(t),this._offset)},t.minusSeconds=function(t){return this._withLocalTimeOffset(this._time.minusSeconds(t),this._offset)},t.minusNanos=function(t){return this._withLocalTimeOffset(this._time.minusNanos(t),this._offset)},t.minusAmount=function(t){return m(t),t.subtractFrom(this)},t.minusAmountUnit=function(t,e){return this.plus(-1*t,e)},t.plusAmount=function(t){return m(t),t.addTo(this)},t.plusAmountUnit=function(t,e){return e instanceof N?this._withLocalTimeOffset(this._time.plus(t,e),this._offset):e.addTo(this,t)},t.plusHours=function(t){return this._withLocalTimeOffset(this._time.plusHours(t),this._offset)},t.plusMinutes=function(t){return this._withLocalTimeOffset(this._time.plusMinutes(t),this._offset)},t.plusSeconds=function(t){return this._withLocalTimeOffset(this._time.plusSeconds(t),this._offset)},t.plusNanos=function(t){return this._withLocalTimeOffset(this._time.plusNanos(t),this._offset)},t.query=function(t){return m(t,"query"),t===D.precision()?N.NANOS:t===D.offset()||t===D.zone()?this.offset():t===D.localTime()?this._time:t===D.chronology()||t===D.localDate()||t===D.zoneId()?null:r.prototype.query.call(this,t)},t.range=function(t){return t instanceof R?t===R.OFFSET_SECONDS?t.range():this._time.range(t):t.rangeRefinedBy(this)},t.toLocalTime=function(){return this._time},t.truncatedTo=function(t){return this._withLocalTimeOffset(this._time.truncatedTo(t),this._offset)},t.until=function(t,e){m(t,"endExclusive"),m(e,"unit");var n=o.from(t);if(e instanceof N){var r=n._toEpochNano()-this._toEpochNano();switch(e){case N.NANOS:return r;case N.MICROS:return Math.floor(r/1e3);case N.MILLIS:return Math.floor(r/1e6);case N.SECONDS:return Math.floor(r/fe.NANOS_PER_SECOND);case N.MINUTES:return Math.floor(r/fe.NANOS_PER_MINUTE);case N.HOURS:return Math.floor(r/fe.NANOS_PER_HOUR);case N.HALF_DAYS:return Math.floor(r/(12*fe.NANOS_PER_HOUR))}throw new l("Unsupported unit: "+e)}return e.between(this,n)},t.withHour=function(t){return this._withLocalTimeOffset(this._time.withHour(t),this._offset)},t.withMinute=function(t){return this._withLocalTimeOffset(this._time.withMinute(t),this._offset)},t.withSecond=function(t){return this._withLocalTimeOffset(this._time.withSecond(t),this._offset)},t.withNano=function(t){return this._withLocalTimeOffset(this._time.withNano(t),this._offset)},t.withOffsetSameInstant=function(t){if(m(t,"offset"),t.equals(this._offset))return this;var e=t.totalSeconds()-this._offset.totalSeconds();return new o(this._time.plusSeconds(e),t)},t.withOffsetSameLocal=function(t){return null!=t&&t.equals(this._offset)?this:new o(this._time,t)},t._toEpochNano=function(){return this._time.toNanoOfDay()-this._offset.totalSeconds()*fe.NANOS_PER_SECOND},t.withAdjuster=function(t){return m(t,"adjuster"),t instanceof fe?this._withLocalTimeOffset(t,this._offset):t instanceof $?this._withLocalTimeOffset(this._time,t):t instanceof o?t:t.adjustInto(this)},t.withFieldValue=function(t,e){return m(t,"field"),t instanceof R?t===R.OFFSET_SECONDS?this._withLocalTimeOffset(this._time,$.ofTotalSeconds(t.checkValidIntValue(e))):this._withLocalTimeOffset(this._time.with(t,e),this._offset):t.adjustInto(this,e)},t._withLocalTimeOffset=function(t,e){return this._time===t&&this._offset.equals(e)?this:new o(t,e)},t.compareTo=function(t){if(m(t,"other"),s(t,o,"other"),this._offset.equals(t._offset))return this._time.compareTo(t._time);var e=g.compareNumbers(this._toEpochNano(),t._toEpochNano());return 0===e?this._time.compareTo(t._time):e},t.equals=function(t){return this===t||t instanceof o&&(this._time.equals(t._time)&&this._offset.equals(t._offset))},t.hashCode=function(){return this._time.hashCode()^this._offset.hashCode()},t.toString=function(){return this._time.toString()+this._offset.toString()},t.toJSON=function(){return this.toString()},o}(B),ee=function(e){function n(){return e.apply(this,arguments)||this}_(n,e);var t=n.prototype;return t.query=function(t){return t===D.zoneId()||t===D.zone()?this.zone():t===D.chronology()?this.toLocalDate().chronology():t===D.precision()?N.NANOS:t===D.offset()?this.offset():t===D.localDate()?se.ofEpochDay(this.toLocalDate().toEpochDay()):t===D.localTime()?this.toLocalTime():e.prototype.query.call(this,t)},t.format=function(t){return m(t,"formatter"),t.format(this)},t.toInstant=function(){return he.ofEpochSecond(this.toEpochSecond(),this.toLocalTime().nano())},t.toEpochSecond=function(){var t=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return t-=this.offset().totalSeconds()},t.compareTo=function(t){m(t,"other");var e=g.compareNumbers(this.toEpochSecond(),t.toEpochSecond());return 0===e&&0===(e=this.toLocalTime().nano()-t.toLocalTime().nano())&&0===(e=this.toLocalDateTime().compareTo(t.toLocalDateTime()))&&(e=function(t,e){if(t<e)return-1;if(t>e)return 1;return 0}(this.zone().id(),t.zone().id())),e},t.isAfter=function(t){m(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e>n||e===n&&this.toLocalTime().nano()>t.toLocalTime().nano()},t.isBefore=function(t){m(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e<n||e===n&&this.toLocalTime().nano()<t.toLocalTime().nano()},t.isEqual=function(t){return m(t,"other"),this.toEpochSecond()===t.toEpochSecond()&&this.toLocalTime().nano()===t.toLocalTime().nano()},t.equals=function(t){return this===t||t instanceof n&&0===this.compareTo(t)},n}(B),ne=function(i){function f(t,e,n){var r;return m(t,"dateTime"),m(e,"offset"),m(n,"zone"),(r=i.call(this)||this)._dateTime=t,r._offset=e,r._zone=n,r}_(f,i),f.now=function(t){var e;return e=t instanceof z?le.system(t):null==t?le.systemDefaultZone():t,f.ofInstant(e.instant(),e.zone())},f.of=function(){return arguments.length<=2?f.of2.apply(this,arguments):3===arguments.length&&arguments[0]instanceof se?f.of3.apply(this,arguments):f.of8.apply(this,arguments)},f.of3=function(t,e,n){return f.of2(ue.of(t,e),n)},f.of2=function(t,e){return f.ofLocal(t,e,null)},f.of8=function(t,e,n,r,i,o,s,a){var u=ue.of(t,e,n,r,i,o,s);return f.ofLocal(u,a,null)},f.ofLocal=function(t,e,n){if(m(t,"localDateTime"),m(e,"zone"),e instanceof $)return new f(t,e,e);var r=null,i=e.rules(),o=i.validOffsets(t);if(1===o.length)r=o[0];else if(0===o.length){var s=i.transition(t);t=t.plusSeconds(s.duration().seconds()),r=s.offsetAfter()}else r=null!=n&&o.some(function(t){return t.equals(n)})?n:m(o[0],"offset");return new f(t,r,e)},f.ofInstant=function(){return 2===arguments.length?f.ofInstant2.apply(this,arguments):f.ofInstant3.apply(this,arguments)},f.ofInstant2=function(t,e){return m(t,"instant"),m(e,"zone"),f._create(t.epochSecond(),t.nano(),e)},f.ofInstant3=function(t,e,n){return m(t,"localDateTime"),m(e,"offset"),m(n,"zone"),f._create(t.toEpochSecond(e),t.nano(),n)},f._create=function(t,e,n){var r=n.rules(),i=he.ofEpochSecond(t,e),o=r.offset(i);return new f(ue.ofEpochSecond(t,e,o),o,n)},f.ofStrict=function(t,e,n){m(t,"localDateTime"),m(e,"offset"),m(n,"zone");var r=n.rules();if(!1===r.isValidOffset(t,e)){var i=r.transition(t);if(null!=i&&i.isGap())throw new w("LocalDateTime "+t+" does not exist in zone "+n+" due to a gap in the local time-line, typically caused by daylight savings");throw new w('ZoneOffset "'+e+'" is not valid for LocalDateTime "'+t+'" in zone "'+n+'"')}return new f(t,e,n)},f.ofLenient=function(t,e,n){if(m(t,"localDateTime"),m(e,"offset"),m(n,"zone"),n instanceof $&&!1===e.equals(n))throw new h("ZoneId must match ZoneOffset");return new f(t,e,n)},f.from=function(t){if(m(t,"temporal"),t instanceof f)return t;var e=z.from(t);if(t.isSupported(R.INSTANT_SECONDS)){var n=f._from(t,e);if(null!=n)return n}var r=ue.from(t);return f.of2(r,e)},f._from=function(t,e){try{return f.__from(t,e)}catch(t){if(!(t instanceof w))throw t}},f.__from=function(t,e){var n=t.getLong(R.INSTANT_SECONDS),r=t.get(R.NANO_OF_SECOND);return f._create(n,r,e)},f.parse=function(t,e){return void 0===e&&(e=Wt.ISO_ZONED_DATE_TIME),m(e,"formatter"),e.parse(t,f.FROM)};var t=f.prototype;return t._resolveLocal=function(t){return m(t,"newDateTime"),f.ofLocal(t,this._zone,this._offset)},t._resolveInstant=function(t){return f.ofInstant3(t,this._offset,this._zone)},t._resolveOffset=function(t){return!1===t.equals(this._offset)&&this._zone.rules().isValidOffset(this._dateTime,t)?new f(this._dateTime,t,this._zone):this},t.isSupported=function(t){return t instanceof R||(t instanceof N?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this))},t.range=function(t){return t instanceof R?t===R.INSTANT_SECONDS||t===R.OFFSET_SECONDS?t.range():this._dateTime.range(t):t.rangeRefinedBy(this)},t.get=function(t){return this.getLong(t)},t.getLong=function(t){if(t instanceof R){switch(t){case R.INSTANT_SECONDS:return this.toEpochSecond();case R.OFFSET_SECONDS:return this._offset.totalSeconds()}return this._dateTime.getLong(t)}return m(t,"field"),t.getFrom(this)},t.offset=function(){return this._offset},t.withEarlierOffsetAtOverlap=function(){var t=this._zone.rules().transition(this._dateTime);if(null!=t&&t.isOverlap()){var e=t.offsetBefore();if(!1===e.equals(this._offset))return new f(this._dateTime,e,this._zone)}return this},t.withLaterOffsetAtOverlap=function(){var t=this._zone.rules().transition(this.toLocalDateTime());if(null!=t){var e=t.offsetAfter();if(!1===e.equals(this._offset))return new f(this._dateTime,e,this._zone)}return this},t.zone=function(){return this._zone},t.withZoneSameLocal=function(t){return m(t,"zone"),this._zone.equals(t)?this:f.ofLocal(this._dateTime,t,this._offset)},t.withZoneSameInstant=function(t){return m(t,"zone"),this._zone.equals(t)?this:f._create(this._dateTime.toEpochSecond(this._offset),this._dateTime.nano(),t)},t.withFixedOffsetZone=function(){return this._zone.equals(this._offset)?this:new f(this._dateTime,this._offset,this._offset)},t.year=function(){return this._dateTime.year()},t.monthValue=function(){return this._dateTime.monthValue()},t.month=function(){return this._dateTime.month()},t.dayOfMonth=function(){return this._dateTime.dayOfMonth()},t.dayOfYear=function(){return this._dateTime.dayOfYear()},t.dayOfWeek=function(){return this._dateTime.dayOfWeek()},t.hour=function(){return this._dateTime.hour()},t.minute=function(){return this._dateTime.minute()},t.second=function(){return this._dateTime.second()},t.nano=function(){return this._dateTime.nano()},t.withAdjuster=function(t){if(t instanceof se)return this._resolveLocal(ue.of(t,this._dateTime.toLocalTime()));if(t instanceof fe)return this._resolveLocal(ue.of(this._dateTime.toLocalDate(),t));if(t instanceof ue)return this._resolveLocal(t);if(t instanceof he){var e=t;return f._create(e.epochSecond(),e.nano(),this._zone)}return t instanceof $?this._resolveOffset(t):(m(t,"adjuster"),t.adjustInto(this))},t.withFieldValue=function(t,e){if(t instanceof R){switch(t){case R.INSTANT_SECONDS:return f._create(e,this.nano(),this._zone);case R.OFFSET_SECONDS:var n=$.ofTotalSeconds(t.checkValidIntValue(e));return this._resolveOffset(n)}return this._resolveLocal(this._dateTime.with(t,e))}return t.adjustInto(this,e)},t.withYear=function(t){return this._resolveLocal(this._dateTime.withYear(t))},t.withMonth=function(t){return this._resolveLocal(this._dateTime.withMonth(t))},t.withDayOfMonth=function(t){return this._resolveLocal(this._dateTime.withDayOfMonth(t))},t.withDayOfYear=function(t){return this._resolveLocal(this._dateTime.withDayOfYear(t))},t.withHour=function(t){return this._resolveLocal(this._dateTime.withHour(t))},t.withMinute=function(t){return this._resolveLocal(this._dateTime.withMinute(t))},t.withSecond=function(t){return this._resolveLocal(this._dateTime.withSecond(t))},t.withNano=function(t){return this._resolveLocal(this._dateTime.withNano(t))},t.truncatedTo=function(t){return this._resolveLocal(this._dateTime.truncatedTo(t))},t.plusAmount=function(t){return m(t),t.addTo(this)},t.plusAmountUnit=function(t,e){return e instanceof N?e.isDateBased()?this._resolveLocal(this._dateTime.plus(t,e)):this._resolveInstant(this._dateTime.plus(t,e)):(m(e,"unit"),e.addTo(this,t))},t.plusYears=function(t){return this._resolveLocal(this._dateTime.plusYears(t))},t.plusMonths=function(t){return this._resolveLocal(this._dateTime.plusMonths(t))},t.plusWeeks=function(t){return this._resolveLocal(this._dateTime.plusWeeks(t))},t.plusDays=function(t){return this._resolveLocal(this._dateTime.plusDays(t))},t.plusHours=function(t){return this._resolveInstant(this._dateTime.plusHours(t))},t.plusMinutes=function(t){return this._resolveInstant(this._dateTime.plusMinutes(t))},t.plusSeconds=function(t){return this._resolveInstant(this._dateTime.plusSeconds(t))},t.plusNanos=function(t){return this._resolveInstant(this._dateTime.plusNanos(t))},t.minusAmount=function(t){return m(t,"amount"),t.subtractFrom(this)},t.minusAmountUnit=function(t,e){return this.plusAmountUnit(-1*t,e)},t.minusYears=function(t){return this.plusYears(-1*t)},t.minusMonths=function(t){return this.plusMonths(-1*t)},t.minusWeeks=function(t){return this.plusWeeks(-1*t)},t.minusDays=function(t){return this.plusDays(-1*t)},t.minusHours=function(t){return this.plusHours(-1*t)},t.minusMinutes=function(t){return this.plusMinutes(-1*t)},t.minusSeconds=function(t){return this.plusSeconds(-1*t)},t.minusNanos=function(t){return this.plusNanos(-1*t)},t.query=function(t){return t===D.localDate()?this.toLocalDate():(m(t,"query"),i.prototype.query.call(this,t))},t.until=function(t,e){var n=f.from(t);if(e instanceof N){if(n=n.withZoneSameInstant(this._zone),e.isDateBased())return this._dateTime.until(n._dateTime,e);var r=this._offset.totalSeconds()-n._offset.totalSeconds(),i=n._dateTime.plusSeconds(r);return this._dateTime.until(i,e)}return e.between(this,n)},t.toLocalDateTime=function(){return this._dateTime},t.toLocalDate=function(){return this._dateTime.toLocalDate()},t.toLocalTime=function(){return this._dateTime.toLocalTime()},t.toOffsetDateTime=function(){return re.of(this._dateTime,this._offset)},t.equals=function(t){return this===t||t instanceof f&&(this._dateTime.equals(t._dateTime)&&this._offset.equals(t._offset)&&this._zone.equals(t._zone))},t.hashCode=function(){return g.hashCode(this._dateTime.hashCode(),this._offset.hashCode(),this._zone.hashCode())},t.toString=function(){var t=this._dateTime.toString()+this._offset.toString();return this._offset!==this._zone&&(t+="["+this._zone.toString()+"]"),t},t.toJSON=function(){return this.toString()},t.format=function(t){return i.prototype.format.call(this,t)},f}(ee),re=function(r){function u(t,e){var n;return n=r.call(this)||this,m(t,"dateTime"),s(t,ue,"dateTime"),m(e,"offset"),s(e,$,"offset"),n._dateTime=t,n._offset=e,n}_(u,r),u.from=function(e){if(m(e,"temporal"),e instanceof u)return e;try{var n=$.from(e);try{var t=ue.from(e);return u.of(t,n)}catch(t){var r=he.from(e);return u.ofInstant(r,n)}}catch(t){throw new w("Unable to obtain OffsetDateTime TemporalAccessor: "+e+", type "+(null!=e.constructor?e.constructor.name:""))}},u.now=function(t){if(0===arguments.length)return u.now(le.systemDefaultZone());if(m(t,"clockOrZone"),t instanceof z)return u.now(le.system(t));if(t instanceof le){var e=t.instant();return u.ofInstant(e,t.zone().rules().offset(e))}throw new h("clockOrZone must be an instance of ZoneId or Clock")},u.of=function(){return arguments.length<=2?u.ofDateTime.apply(this,arguments):3===arguments.length?u.ofDateAndTime.apply(this,arguments):u.ofNumbers.apply(this,arguments)},u.ofDateTime=function(t,e){return new u(t,e)},u.ofDateAndTime=function(t,e,n){return new u(ue.of(t,e),n)},u.ofNumbers=function(t,e,n,r,i,o,s,a){return void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),new u(ue.of(t,e,n,r,i,o,s),a)},u.ofInstant=function(t,e){m(t,"instant"),m(e,"zone");var n=e.rules().offset(t);return new u(ue.ofEpochSecond(t.epochSecond(),t.nano(),n),n)},u.parse=function(t,e){return void 0===e&&(e=Wt.ISO_OFFSET_DATE_TIME),m(e,"formatter"),e.parse(t,u.FROM)};var t=u.prototype;return t.adjustInto=function(t){return t.with(R.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(R.NANO_OF_DAY,this.toLocalTime().toNanoOfDay()).with(R.OFFSET_SECONDS,this.offset().totalSeconds())},t.until=function(t,e){var n=u.from(t);return e instanceof N?(n=n.withOffsetSameInstant(this._offset),this._dateTime.until(n._dateTime,e)):e.between(this,n)},t.atZoneSameInstant=function(t){return ne.ofInstant(this._dateTime,this._offset,t)},t.atZoneSimilarLocal=function(t){return ne.ofLocal(this._dateTime,t,this._offset)},t.query=function(t){return m(t,"query"),t===D.chronology()?Qt.INSTANCE:t===D.precision()?N.NANOS:t===D.offset()||t===D.zone()?this.offset():t===D.localDate()?this.toLocalDate():t===D.localTime()?this.toLocalTime():t===D.zoneId()?null:r.prototype.query.call(this,t)},t.get=function(t){if(t instanceof R){switch(t){case R.INSTANT_SECONDS:throw new w("Field too large for an int: "+t);case R.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.get(t)}return r.prototype.get.call(this,t)},t.getLong=function(t){if(t instanceof R){switch(t){case R.INSTANT_SECONDS:return this.toEpochSecond();case R.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.getLong(t)}return t.getFrom(this)},t.offset=function(){return this._offset},t.year=function(){return this._dateTime.year()},t.monthValue=function(){return this._dateTime.monthValue()},t.month=function(){return this._dateTime.month()},t.dayOfMonth=function(){return this._dateTime.dayOfMonth()},t.dayOfYear=function(){return this._dateTime.dayOfYear()},t.dayOfWeek=function(){return this._dateTime.dayOfWeek()},t.hour=function(){return this._dateTime.hour()},t.minute=function(){return this._dateTime.minute()},t.second=function(){return this._dateTime.second()},t.nano=function(){return this._dateTime.nano()},t.toLocalDateTime=function(){return this._dateTime},t.toLocalDate=function(){return this._dateTime.toLocalDate()},t.toLocalTime=function(){return this._dateTime.toLocalTime()},t.toOffsetTime=function(){return te.of(this._dateTime.toLocalTime(),this._offset)},t.toZonedDateTime=function(){return ne.of(this._dateTime,this._offset)},t.toInstant=function(){return this._dateTime.toInstant(this._offset)},t.toEpochSecond=function(){return this._dateTime.toEpochSecond(this._offset)},t.isSupported=function(t){return t instanceof R||t instanceof N?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this)},t.range=function(t){return t instanceof R?t===R.INSTANT_SECONDS||t===R.OFFSET_SECONDS?t.range():this._dateTime.range(t):t.rangeRefinedBy(this)},t.withAdjuster=function(t){return m(t),t instanceof se||t instanceof fe||t instanceof ue?this._withDateTimeOffset(this._dateTime.with(t),this._offset):t instanceof he?u.ofInstant(t,this._offset):t instanceof $?this._withDateTimeOffset(this._dateTime,t):t instanceof u?t:t.adjustInto(this)},t.withFieldValue=function(t,e){if(m(t),t instanceof R){var n=t;switch(n){case R.INSTANT_SECONDS:return u.ofInstant(he.ofEpochSecond(e,this.nano()),this._offset);case R.OFFSET_SECONDS:return this._withDateTimeOffset(this._dateTime,$.ofTotalSeconds(n.checkValidIntValue(e)))}return this._withDateTimeOffset(this._dateTime.with(t,e),this._offset)}return t.adjustInto(this,e)},t._withDateTimeOffset=function(t,e){return this._dateTime===t&&this._offset.equals(e)?this:new u(t,e)},t.withYear=function(t){return this._withDateTimeOffset(this._dateTime.withYear(t),this._offset)},t.withMonth=function(t){return this._withDateTimeOffset(this._dateTime.withMonth(t),this._offset)},t.withDayOfMonth=function(t){return this._withDateTimeOffset(this._dateTime.withDayOfMonth(t),this._offset)},t.withDayOfYear=function(t){return this._withDateTimeOffset(this._dateTime.withDayOfYear(t),this._offset)},t.withHour=function(t){return this._withDateTimeOffset(this._dateTime.withHour(t),this._offset)},t.withMinute=function(t){return this._withDateTimeOffset(this._dateTime.withMinute(t),this._offset)},t.withSecond=function(t){return this._withDateTimeOffset(this._dateTime.withSecond(t),this._offset)},t.withNano=function(t){return this._withDateTimeOffset(this._dateTime.withNano(t),this._offset)},t.withOffsetSameLocal=function(t){return m(t,"offset"),this._withDateTimeOffset(this._dateTime,t)},t.withOffsetSameInstant=function(t){if(m(t,"offset"),t.equals(this._offset))return this;var e=t.totalSeconds()-this._offset.totalSeconds();return new u(this._dateTime.plusSeconds(e),t)},t.truncatedTo=function(t){return this._withDateTimeOffset(this._dateTime.truncatedTo(t),this._offset)},t.plusAmount=function(t){return m(t,"amount"),t.addTo(this)},t.plusAmountUnit=function(t,e){return e instanceof N?this._withDateTimeOffset(this._dateTime.plus(t,e),this._offset):e.addTo(this,t)},t.plusYears=function(t){return this._withDateTimeOffset(this._dateTime.plusYears(t),this._offset)},t.plusMonths=function(t){return this._withDateTimeOffset(this._dateTime.plusMonths(t),this._offset)},t.plusWeeks=function(t){return this._withDateTimeOffset(this._dateTime.plusWeeks(t),this._offset)},t.plusDays=function(t){return this._withDateTimeOffset(this._dateTime.plusDays(t),this._offset)},t.plusHours=function(t){return this._withDateTimeOffset(this._dateTime.plusHours(t),this._offset)},t.plusMinutes=function(t){return this._withDateTimeOffset(this._dateTime.plusMinutes(t),this._offset)},t.plusSeconds=function(t){return this._withDateTimeOffset(this._dateTime.plusSeconds(t),this._offset)},t.plusNanos=function(t){return this._withDateTimeOffset(this._dateTime.plusNanos(t),this._offset)},t.minusAmount=function(t){return m(t),t.subtractFrom(this)},t.minusAmountUnit=function(t,e){return this.plus(-1*t,e)},t.minusYears=function(t){return this._withDateTimeOffset(this._dateTime.minusYears(t),this._offset)},t.minusMonths=function(t){return this._withDateTimeOffset(this._dateTime.minusMonths(t),this._offset)},t.minusWeeks=function(t){return this._withDateTimeOffset(this._dateTime.minusWeeks(t),this._offset)},t.minusDays=function(t){return this._withDateTimeOffset(this._dateTime.minusDays(t),this._offset)},t.minusHours=function(t){return this._withDateTimeOffset(this._dateTime.minusHours(t),this._offset)},t.minusMinutes=function(t){return this._withDateTimeOffset(this._dateTime.minusMinutes(t),this._offset)},t.minusSeconds=function(t){return this._withDateTimeOffset(this._dateTime.minusSeconds(t),this._offset)},t.minusNanos=function(t){return this._withDateTimeOffset(this._dateTime.minusNanos(t),this._offset)},t.compareTo=function(t){if(m(t,"other"),s(t,u,"other"),this.offset().equals(t.offset()))return this.toLocalDateTime().compareTo(t.toLocalDateTime());var e=g.compareNumbers(this.toEpochSecond(),t.toEpochSecond());return 0===e&&0===(e=this.toLocalTime().nano()-t.toLocalTime().nano())&&(e=this.toLocalDateTime().compareTo(t.toLocalDateTime())),e},t.isAfter=function(t){m(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e>n||e===n&&this.toLocalTime().nano()>t.toLocalTime().nano()},t.isBefore=function(t){m(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e<n||e===n&&this.toLocalTime().nano()<t.toLocalTime().nano()},t.isEqual=function(t){return m(t,"other"),this.toEpochSecond()===t.toEpochSecond()&&this.toLocalTime().nano()===t.toLocalTime().nano()},t.equals=function(t){return this===t||t instanceof u&&(this._dateTime.equals(t._dateTime)&&this._offset.equals(t._offset))},t.hashCode=function(){return this._dateTime.hashCode()^this._offset.hashCode()},t.toString=function(){return this._dateTime.toString()+this._offset.toString()},t.toJSON=function(){return this.toString()},t.format=function(t){return m(t,"formatter"),t.format(this)},u}(B),ie=146097,oe=719528,se=function(i){function c(t,e,n){var r;return r=i.call(this)||this,m(t,"year"),m(e,"month"),m(n,"dayOfMonth"),e instanceof b&&(e=e.value()),r._year=g.safeToInt(t),r._month=g.safeToInt(e),r._day=g.safeToInt(n),c._validate(r._year,r._month,r._day),r}_(c,i),c.now=function(t){var e;return e=null==t?le.systemDefaultZone():t instanceof z?le.system(t):t,c.ofInstant(e.instant(),e.zone())},c.ofInstant=function(t,e){void 0===e&&(e=z.systemDefault()),m(t,"instant");var n=e.rules().offset(t),r=t.epochSecond()+n.totalSeconds(),i=g.floorDiv(r,fe.SECONDS_PER_DAY);return c.ofEpochDay(i)},c.of=function(t,e,n){return new c(t,e,n)},c.ofYearDay=function(t,e){R.YEAR.checkValidValue(t);var n=Qt.isLeapYear(t);366===e&&!1===n&&S(!1,"Invalid date 'DayOfYear 366' as '"+t+"' is not a leap year",w);var r=b.of(Math.floor((e-1)/31+1));e>r.firstDayOfYear(n)+r.length(n)-1&&(r=r.plus(1));var i=e-r.firstDayOfYear(n)+1;return new c(t,r.value(),i)},c.ofEpochDay=function(t){var e,n,r,i,o;void 0===t&&(t=0),o=t+oe,e=0,(o-=60)<0&&(e=400*(n=g.intDiv(o+1,ie)-1),o+=-n*ie),(r=o-(365*(i=g.intDiv(400*o+591,ie))+g.intDiv(i,4)-g.intDiv(i,100)+g.intDiv(i,400)))<0&&(r=o-(365*--i+g.intDiv(i,4)-g.intDiv(i,100)+g.intDiv(i,400))),i+=e;var s=r,a=g.intDiv(5*s+2,153),u=(a+2)%12+1,f=s-g.intDiv(306*a+5,10)+1;return new c(i+=g.intDiv(a,10),u,f)},c.from=function(t){m(t,"temporal");var e=t.query(D.localDate());if(null==e)throw new w("Unable to obtain LocalDate from TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},c.parse=function(t,e){return void 0===e&&(e=Wt.ISO_LOCAL_DATE),S(null!=e,"formatter",o),e.parse(t,c.FROM)},c._resolvePreviousValid=function(t,e,n){switch(e){case 2:n=Math.min(n,Qt.isLeapYear(t)?29:28);break;case 4:case 6:case 9:case 11:n=Math.min(n,30)}return c.of(t,e,n)},c._validate=function(t,e,n){var r;if(R.YEAR.checkValidValue(t),R.MONTH_OF_YEAR.checkValidValue(e),R.DAY_OF_MONTH.checkValidValue(n),n>28){switch(r=31,e){case 2:r=Qt.isLeapYear(t)?29:28;break;case 4:case 6:case 9:case 11:r=30}n>r&&S(!1,29===n?"Invalid date 'February 29' as '"+t+"' is not a leap year":"Invalid date '"+t+"' '"+e+"' '"+n+"'",w)}};var t=c.prototype;return t.isSupported=function(t){return i.prototype.isSupported.call(this,t)},t.range=function(t){if(t instanceof R){if(t.isDateBased()){switch(t){case R.DAY_OF_MONTH:return T.of(1,this.lengthOfMonth());case R.DAY_OF_YEAR:return T.of(1,this.lengthOfYear());case R.ALIGNED_WEEK_OF_MONTH:return T.of(1,this.month()===b.FEBRUARY&&!1===this.isLeapYear()?4:5);case R.YEAR_OF_ERA:return this._year<=0?T.of(1,Kt.MAX_VALUE+1):T.of(1,Kt.MAX_VALUE)}return t.range()}throw new l("Unsupported field: "+t)}return t.rangeRefinedBy(this)},t.get=function(t){return this.getLong(t)},t.getLong=function(t){return S(null!=t,"",o),t instanceof R?this._get0(t):t.getFrom(this)},t._get0=function(t){switch(t){case R.DAY_OF_WEEK:return this.dayOfWeek().value();case R.ALIGNED_DAY_OF_WEEK_IN_MONTH:return g.intMod(this._day-1,7)+1;case R.ALIGNED_DAY_OF_WEEK_IN_YEAR:return g.intMod(this.dayOfYear()-1,7)+1;case R.DAY_OF_MONTH:return this._day;case R.DAY_OF_YEAR:return this.dayOfYear();case R.EPOCH_DAY:return this.toEpochDay();case R.ALIGNED_WEEK_OF_MONTH:return g.intDiv(this._day-1,7)+1;case R.ALIGNED_WEEK_OF_YEAR:return g.intDiv(this.dayOfYear()-1,7)+1;case R.MONTH_OF_YEAR:return this._month;case R.PROLEPTIC_MONTH:return this._prolepticMonth();case R.YEAR_OF_ERA:return this._year>=1?this._year:1-this._year;case R.YEAR:return this._year;case R.ERA:return this._year>=1?1:0}throw new l("Unsupported field: "+t)},t._prolepticMonth=function(){return 12*this._year+(this._month-1)},t.chronology=function(){return Qt.INSTANCE},t.year=function(){return this._year},t.monthValue=function(){return this._month},t.month=function(){return b.of(this._month)},t.dayOfMonth=function(){return this._day},t.dayOfYear=function(){return this.month().firstDayOfYear(this.isLeapYear())+this._day-1},t.dayOfWeek=function(){var t=g.floorMod(this.toEpochDay()+3,7);return Y.of(t+1)},t.isLeapYear=function(){return Qt.isLeapYear(this._year)},t.lengthOfMonth=function(){switch(this._month){case 2:return this.isLeapYear()?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}},t.lengthOfYear=function(){return this.isLeapYear()?366:365},t.withAdjuster=function(t){return m(t,"adjuster"),t instanceof c?t:(S("function"==typeof t.adjustInto,"adjuster",h),t.adjustInto(this))},t.withFieldValue=function(t,e){if(S(null!=t,"field",o),t instanceof R){var n=t;switch(n.checkValidValue(e),n){case R.DAY_OF_WEEK:return this.plusDays(e-this.dayOfWeek().value());case R.ALIGNED_DAY_OF_WEEK_IN_MONTH:return this.plusDays(e-this.getLong(R.ALIGNED_DAY_OF_WEEK_IN_MONTH));case R.ALIGNED_DAY_OF_WEEK_IN_YEAR:return this.plusDays(e-this.getLong(R.ALIGNED_DAY_OF_WEEK_IN_YEAR));case R.DAY_OF_MONTH:return this.withDayOfMonth(e);case R.DAY_OF_YEAR:return this.withDayOfYear(e);case R.EPOCH_DAY:return c.ofEpochDay(e);case R.ALIGNED_WEEK_OF_MONTH:return this.plusWeeks(e-this.getLong(R.ALIGNED_WEEK_OF_MONTH));case R.ALIGNED_WEEK_OF_YEAR:return this.plusWeeks(e-this.getLong(R.ALIGNED_WEEK_OF_YEAR));case R.MONTH_OF_YEAR:return this.withMonth(e);case R.PROLEPTIC_MONTH:return this.plusMonths(e-this.getLong(R.PROLEPTIC_MONTH));case R.YEAR_OF_ERA:return this.withYear(this._year>=1?e:1-e);case R.YEAR:return this.withYear(e);case R.ERA:return this.getLong(R.ERA)===e?this:this.withYear(1-this._year)}throw new l("Unsupported field: "+t)}return t.adjustInto(this,e)},t.withYear=function(t){return this._year===t?this:(R.YEAR.checkValidValue(t),c._resolvePreviousValid(t,this._month,this._day))},t.withMonth=function(t){var e=t instanceof b?t.value():t;return this._month===e?this:(R.MONTH_OF_YEAR.checkValidValue(e),c._resolvePreviousValid(this._year,e,this._day))},t.withDayOfMonth=function(t){return this._day===t?this:c.of(this._year,this._month,t)},t.withDayOfYear=function(t){return this.dayOfYear()===t?this:c.ofYearDay(this._year,t)},t.plusAmount=function(t){return m(t,"amount"),t.addTo(this)},t.plusAmountUnit=function(t,e){if(m(t,"amountToAdd"),m(e,"unit"),e instanceof N){switch(e){case N.DAYS:return this.plusDays(t);case N.WEEKS:return this.plusWeeks(t);case N.MONTHS:return this.plusMonths(t);case N.YEARS:return this.plusYears(t);case N.DECADES:return this.plusYears(g.safeMultiply(t,10));case N.CENTURIES:return this.plusYears(g.safeMultiply(t,100));case N.MILLENNIA:return this.plusYears(g.safeMultiply(t,1e3));case N.ERAS:return this.with(R.ERA,g.safeAdd(this.getLong(R.ERA),t))}throw new l("Unsupported unit: "+e)}return e.addTo(this,t)},t.plusYears=function(t){if(0===t)return this;var e=R.YEAR.checkValidIntValue(this._year+t);return c._resolvePreviousValid(e,this._month,this._day)},t.plusMonths=function(t){if(0===t)return this;var e=12*this._year+(this._month-1)+t,n=R.YEAR.checkValidIntValue(g.floorDiv(e,12)),r=g.floorMod(e,12)+1;return c._resolvePreviousValid(n,r,this._day)},t.plusWeeks=function(t){return this.plusDays(g.safeMultiply(t,7))},t.plusDays=function(t){if(0===t)return this;var e=g.safeAdd(this.toEpochDay(),t);return c.ofEpochDay(e)},t.minusAmount=function(t){return m(t,"amount"),t.subtractFrom(this)},t.minusAmountUnit=function(t,e){return m(t,"amountToSubtract"),m(e,"unit"),this.plusAmountUnit(-1*t,e)},t.minusYears=function(t){return this.plusYears(-1*t)},t.minusMonths=function(t){return this.plusMonths(-1*t)},t.minusWeeks=function(t){return this.plusWeeks(-1*t)},t.minusDays=function(t){return this.plusDays(-1*t)},t.query=function(t){return m(t,"query"),t===D.localDate()?this:i.prototype.query.call(this,t)},t.adjustInto=function(t){return i.prototype.adjustInto.call(this,t)},t.until=function(t,e){return arguments.length<2?this.until1(t):this.until2(t,e)},t.until2=function(t,e){var n=c.from(t);if(e instanceof N){switch(e){case N.DAYS:return this.daysUntil(n);case N.WEEKS:return g.intDiv(this.daysUntil(n),7);case N.MONTHS:return this._monthsUntil(n);case N.YEARS:return g.intDiv(this._monthsUntil(n),12);case N.DECADES:return g.intDiv(this._monthsUntil(n),120);case N.CENTURIES:return g.intDiv(this._monthsUntil(n),1200);case N.MILLENNIA:return g.intDiv(this._monthsUntil(n),12e3);case N.ERAS:return n.getLong(R.ERA)-this.getLong(R.ERA)}throw new l("Unsupported unit: "+e)}return e.between(this,n)},t.daysUntil=function(t){return t.toEpochDay()-this.toEpochDay()},t._monthsUntil=function(t){var e=32*this._prolepticMonth()+this.dayOfMonth(),n=32*t._prolepticMonth()+t.dayOfMonth();return g.intDiv(n-e,32)},t.until1=function(t){var e=c.from(t),n=e._prolepticMonth()-this._prolepticMonth(),r=e._day-this._day;if(n>0&&r<0){n--;var i=this.plusMonths(n);r=e.toEpochDay()-i.toEpochDay()}else n<0&&r>0&&(n++,r-=e.lengthOfMonth());var o=g.intDiv(n,12),s=g.intMod(n,12);return U.of(o,s,r)},t.atTime=function(){return 1===arguments.length?this.atTime1.apply(this,arguments):this.atTime4.apply(this,arguments)},t.atTime1=function(t){if(m(t,"time"),t instanceof fe)return ue.of(this,t);if(t instanceof te)return this._atTimeOffsetTime(t);throw new h("time must be an instance of LocalTime or OffsetTime"+(t&&t.constructor&&t.constructor.name?", but is "+t.constructor.name:""))},t.atTime4=function(t,e,n,r){return void 0===n&&(n=0),void 0===r&&(r=0),this.atTime1(fe.of(t,e,n,r))},t._atTimeOffsetTime=function(t){return re.of(ue.of(this,t.toLocalTime()),t.offset())},t.atStartOfDay=function(t){return null!=t?this.atStartOfDayWithZone(t):ue.of(this,fe.MIDNIGHT)},t.atStartOfDayWithZone=function(t){m(t,"zone");var e=this.atTime(fe.MIDNIGHT);if(t instanceof $==!1){var n=t.rules().transition(e);null!=n&&n.isGap()&&(e=n.dateTimeAfter())}return ne.of(e,t)},t.toEpochDay=function(){var t=this._year,e=this._month,n=0;return n+=365*t,t>=0?n+=g.intDiv(t+3,4)-g.intDiv(t+99,100)+g.intDiv(t+399,400):n-=g.intDiv(t,-4)-g.intDiv(t,-100)+g.intDiv(t,-400),n+=g.intDiv(367*e-362,12),n+=this.dayOfMonth()-1,e>2&&(n--,Qt.isLeapYear(t)||n--),n-oe},t.compareTo=function(t){return m(t,"other"),s(t,c,"other"),this._compareTo0(t)},t._compareTo0=function(t){var e=this._year-t._year;return 0===e&&0===(e=this._month-t._month)&&(e=this._day-t._day),e},t.isAfter=function(t){return this.compareTo(t)>0},t.isBefore=function(t){return this.compareTo(t)<0},t.isEqual=function(t){return 0===this.compareTo(t)},t.equals=function(t){return this===t||t instanceof c&&0===this._compareTo0(t)},t.hashCode=function(){var t=this._year,e=this._month,n=this._day;return g.hash(4294965248&t^(t<<11)+(e<<6)+n)},t.toString=function(){var t=this._year,e=this._month,n=this._day;return(Math.abs(t)<1e3?t<0?"-"+(""+(t-1e4)).slice(-4):(""+(t+1e4)).slice(-4):t>9999?"+"+t:""+t)+(e<10?"-0"+e:"-"+e)+(n<10?"-0"+n:"-"+n)},t.toJSON=function(){return this.toString()},t.format=function(t){return m(t,"formatter"),s(t,Wt,"formatter"),i.prototype.format.call(this,t)},c}(q),ae=function(e){function t(){return e.apply(this,arguments)||this}_(t,e);var n=t.prototype;return n.chronology=function(){return this.toLocalDate().chronology()},n.query=function(t){return t===D.chronology()?this.chronology():t===D.precision()?N.NANOS:t===D.localDate()?se.ofEpochDay(this.toLocalDate().toEpochDay()):t===D.localTime()?this.toLocalTime():t===D.zone()||t===D.zoneId()||t===D.offset()?null:e.prototype.query.call(this,t)},n.adjustInto=function(t){return t.with(R.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(R.NANO_OF_DAY,this.toLocalTime().toNanoOfDay())},n.toInstant=function(t){return s(t,$,"zoneId"),he.ofEpochSecond(this.toEpochSecond(t),this.toLocalTime().nano())},n.toEpochSecond=function(t){m(t,"offset");var e=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return e-=t.totalSeconds(),g.safeToInt(e)},t}(B),ue=function(r){function u(t,e){var n;return n=r.call(this)||this,s(t,se,"date"),s(e,fe,"time"),n._date=t,n._time=e,n}_(u,r),u.now=function(t){return null==t?u._now(le.systemDefaultZone()):t instanceof le?u._now(t):u._now(le.system(t))},u._now=function(t){return m(t,"clock"),u.ofInstant(t.instant(),t.zone())},u._ofEpochMillis=function(t,e){var n=g.floorDiv(t,1e3)+e.totalSeconds(),r=g.floorDiv(n,fe.SECONDS_PER_DAY),i=g.floorMod(n,fe.SECONDS_PER_DAY),o=1e6*g.floorMod(t,1e3);return new u(se.ofEpochDay(r),fe.ofSecondOfDay(i,o))},u.of=function(){return arguments.length<=2?u.ofDateAndTime.apply(this,arguments):u.ofNumbers.apply(this,arguments)},u.ofNumbers=function(t,e,n,r,i,o,s){return void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),new u(se.of(t,e,n),fe.of(r,i,o,s))},u.ofDateAndTime=function(t,e){return m(t,"date"),m(e,"time"),new u(t,e)},u.ofInstant=function(t,e){void 0===e&&(e=z.systemDefault()),m(t,"instant"),s(t,he,"instant"),m(e,"zone");var n=e.rules().offset(t);return u.ofEpochSecond(t.epochSecond(),t.nano(),n)},u.ofEpochSecond=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),2===arguments.length&&e instanceof $&&(n=e,e=0),m(n,"offset");var r=t+n.totalSeconds(),i=g.floorDiv(r,fe.SECONDS_PER_DAY),o=g.floorMod(r,fe.SECONDS_PER_DAY),s=se.ofEpochDay(i),a=fe.ofSecondOfDay(o,e);return new u(s,a)},u.from=function(e){if(m(e,"temporal"),e instanceof u)return e;if(e instanceof ne)return e.toLocalDateTime();try{return new u(se.from(e),fe.from(e))}catch(t){throw new w("Unable to obtain LocalDateTime TemporalAccessor: "+e+", type "+(null!=e.constructor?e.constructor.name:""))}},u.parse=function(t,e){return void 0===e&&(e=Wt.ISO_LOCAL_DATE_TIME),m(e,"formatter"),e.parse(t,u.FROM)};var t=u.prototype;return t._withDateTime=function(t,e){return this._date.equals(t)&&this._time.equals(e)?this:new u(t,e)},t.isSupported=function(t){return t instanceof R||t instanceof N?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this)},t.range=function(t){return t instanceof R?t.isTimeBased()?this._time.range(t):this._date.range(t):t.rangeRefinedBy(this)},t.get=function(t){return t instanceof R?t.isTimeBased()?this._time.get(t):this._date.get(t):r.prototype.get.call(this,t)},t.getLong=function(t){return m(t,"field"),t instanceof R?t.isTimeBased()?this._time.getLong(t):this._date.getLong(t):t.getFrom(this)},t.year=function(){return this._date.year()},t.monthValue=function(){return this._date.monthValue()},t.month=function(){return this._date.month()},t.dayOfMonth=function(){return this._date.dayOfMonth()},t.dayOfYear=function(){return this._date.dayOfYear()},t.dayOfWeek=function(){return this._date.dayOfWeek()},t.hour=function(){return this._time.hour()},t.minute=function(){return this._time.minute()},t.second=function(){return this._time.second()},t.nano=function(){return this._time.nano()},t.withAdjuster=function(t){return m(t,"adjuster"),t instanceof se?this._withDateTime(t,this._time):t instanceof fe?this._withDateTime(this._date,t):t instanceof u?t:(S("function"==typeof t.adjustInto,"adjuster",h),t.adjustInto(this))},t.withFieldValue=function(t,e){return m(t,"field"),t instanceof R?t.isTimeBased()?this._withDateTime(this._date,this._time.with(t,e)):this._withDateTime(this._date.with(t,e),this._time):t.adjustInto(this,e)},t.withYear=function(t){return this._withDateTime(this._date.withYear(t),this._time)},t.withMonth=function(t){return this._withDateTime(this._date.withMonth(t),this._time)},t.withDayOfMonth=function(t){return this._withDateTime(this._date.withDayOfMonth(t),this._time)},t.withDayOfYear=function(t){return this._withDateTime(this._date.withDayOfYear(t),this._time)},t.withHour=function(t){var e=this._time.withHour(t);return this._withDateTime(this._date,e)},t.withMinute=function(t){var e=this._time.withMinute(t);return this._withDateTime(this._date,e)},t.withSecond=function(t){var e=this._time.withSecond(t);return this._withDateTime(this._date,e)},t.withNano=function(t){var e=this._time.withNano(t);return this._withDateTime(this._date,e)},t.truncatedTo=function(t){return this._withDateTime(this._date,this._time.truncatedTo(t))},t.plusAmount=function(t){return m(t,"amount"),t.addTo(this)},t.plusAmountUnit=function(t,e){if(m(e,"unit"),e instanceof N){switch(e){case N.NANOS:return this.plusNanos(t);case N.MICROS:return this.plusDays(g.intDiv(t,fe.MICROS_PER_DAY)).plusNanos(1e3*g.intMod(t,fe.MICROS_PER_DAY));case N.MILLIS:return this.plusDays(g.intDiv(t,fe.MILLIS_PER_DAY)).plusNanos(1e6*g.intMod(t,fe.MILLIS_PER_DAY));case N.SECONDS:return this.plusSeconds(t);case N.MINUTES:return this.plusMinutes(t);case N.HOURS:return this.plusHours(t);case N.HALF_DAYS:return this.plusDays(g.intDiv(t,256)).plusHours(12*g.intMod(t,256))}return this._withDateTime(this._date.plus(t,e),this._time)}return e.addTo(this,t)},t.plusYears=function(t){var e=this._date.plusYears(t);return this._withDateTime(e,this._time)},t.plusMonths=function(t){var e=this._date.plusMonths(t);return this._withDateTime(e,this._time)},t.plusWeeks=function(t){var e=this._date.plusWeeks(t);return this._withDateTime(e,this._time)},t.plusDays=function(t){var e=this._date.plusDays(t);return this._withDateTime(e,this._time)},t.plusHours=function(t){return this._plusWithOverflow(this._date,t,0,0,0,1)},t.plusMinutes=function(t){return this._plusWithOverflow(this._date,0,t,0,0,1)},t.plusSeconds=function(t){return this._plusWithOverflow(this._date,0,0,t,0,1)},t.plusNanos=function(t){return this._plusWithOverflow(this._date,0,0,0,t,1)},t.minusAmount=function(t){return m(t,"amount"),t.subtractFrom(this)},t.minusAmountUnit=function(t,e){return m(e,"unit"),this.plusAmountUnit(-1*t,e)},t.minusYears=function(t){return this.plusYears(-1*t)},t.minusMonths=function(t){return this.plusMonths(-1*t)},t.minusWeeks=function(t){return this.plusWeeks(-1*t)},t.minusDays=function(t){return this.plusDays(-1*t)},t.minusHours=function(t){return this._plusWithOverflow(this._date,t,0,0,0,-1)},t.minusMinutes=function(t){return this._plusWithOverflow(this._date,0,t,0,0,-1)},t.minusSeconds=function(t){return this._plusWithOverflow(this._date,0,0,t,0,-1)},t.minusNanos=function(t){return this._plusWithOverflow(this._date,0,0,0,t,-1)},t._plusWithOverflow=function(t,e,n,r,i,o){if(0===e&&0===n&&0===r&&0===i)return this._withDateTime(t,this._time);var s=g.intDiv(i,fe.NANOS_PER_DAY)+g.intDiv(r,fe.SECONDS_PER_DAY)+g.intDiv(n,fe.MINUTES_PER_DAY)+g.intDiv(e,fe.HOURS_PER_DAY);s*=o;var a=g.intMod(i,fe.NANOS_PER_DAY)+g.intMod(r,fe.SECONDS_PER_DAY)*fe.NANOS_PER_SECOND+g.intMod(n,fe.MINUTES_PER_DAY)*fe.NANOS_PER_MINUTE+g.intMod(e,fe.HOURS_PER_DAY)*fe.NANOS_PER_HOUR,u=this._time.toNanoOfDay();a=a*o+u,s+=g.floorDiv(a,fe.NANOS_PER_DAY);var f=g.floorMod(a,fe.NANOS_PER_DAY),c=f===u?this._time:fe.ofNanoOfDay(f);return this._withDateTime(t.plusDays(s),c)},t.query=function(t){return m(t,"query"),t===D.localDate()?this.toLocalDate():r.prototype.query.call(this,t)},t.adjustInto=function(t){return r.prototype.adjustInto.call(this,t)},t.until=function(t,e){m(t,"endExclusive"),m(e,"unit");var n=u.from(t);if(e instanceof N){if(e.isTimeBased()){var r=this._date.daysUntil(n._date),i=n._time.toNanoOfDay()-this._time.toNanoOfDay();r>0&&i<0?(r--,i+=fe.NANOS_PER_DAY):r<0&&i>0&&(r++,i-=fe.NANOS_PER_DAY);var o=r;switch(e){case N.NANOS:return o=g.safeMultiply(o,fe.NANOS_PER_DAY),g.safeAdd(o,i);case N.MICROS:return o=g.safeMultiply(o,fe.MICROS_PER_DAY),g.safeAdd(o,g.intDiv(i,1e3));case N.MILLIS:return o=g.safeMultiply(o,fe.MILLIS_PER_DAY),g.safeAdd(o,g.intDiv(i,1e6));case N.SECONDS:return o=g.safeMultiply(o,fe.SECONDS_PER_DAY),g.safeAdd(o,g.intDiv(i,fe.NANOS_PER_SECOND));case N.MINUTES:return o=g.safeMultiply(o,fe.MINUTES_PER_DAY),g.safeAdd(o,g.intDiv(i,fe.NANOS_PER_MINUTE));case N.HOURS:return o=g.safeMultiply(o,fe.HOURS_PER_DAY),g.safeAdd(o,g.intDiv(i,fe.NANOS_PER_HOUR));case N.HALF_DAYS:return o=g.safeMultiply(o,2),g.safeAdd(o,g.intDiv(i,12*fe.NANOS_PER_HOUR))}throw new l("Unsupported unit: "+e)}var s=n._date,a=n._time;return s.isAfter(this._date)&&a.isBefore(this._time)?s=s.minusDays(1):s.isBefore(this._date)&&a.isAfter(this._time)&&(s=s.plusDays(1)),this._date.until(s,e)}return e.between(this,n)},t.atOffset=function(t){return re.of(this,t)},t.atZone=function(t){return ne.of(this,t)},t.toLocalDate=function(){return this._date},t.toLocalTime=function(){return this._time},t.compareTo=function(t){return m(t,"other"),s(t,u,"other"),this._compareTo0(t)},t._compareTo0=function(t){var e=this._date.compareTo(t.toLocalDate());return 0===e&&(e=this._time.compareTo(t.toLocalTime())),e},t.isAfter=function(t){return this.compareTo(t)>0},t.isBefore=function(t){return this.compareTo(t)<0},t.isEqual=function(t){return 0===this.compareTo(t)},t.equals=function(t){return this===t||t instanceof u&&(this._date.equals(t._date)&&this._time.equals(t._time))},t.hashCode=function(){return this._date.hashCode()^this._time.hashCode()},t.toString=function(){return this._date.toString()+"T"+this._time.toString()},t.toJSON=function(){return this.toString()},t.format=function(t){return m(t,"formatter"),t.format(this)},u}(ae),fe=function(f){function c(t,e,n,r){var i;void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),i=f.call(this)||this;var o=g.safeToInt(t),s=g.safeToInt(e),a=g.safeToInt(n),u=g.safeToInt(r);return c._validate(o,s,a,u),0===s&&0===a&&0===u?(c.HOURS[o]||(i._hour=o,i._minute=s,i._second=a,i._nano=u,c.HOURS[o]=d(i)),c.HOURS[o]||d(i)):(i._hour=o,i._minute=s,i._second=a,i._nano=u,i)}_(c,f),c.now=function(t){return null==t?c._now(le.systemDefaultZone()):t instanceof le?c._now(t):c._now(le.system(t))},c._now=function(t){return void 0===t&&(t=le.systemDefaultZone()),m(t,"clock"),c.ofInstant(t.instant(),t.zone())},c.ofInstant=function(t,e){void 0===e&&(e=z.systemDefault());var n=e.rules().offset(t),r=g.intMod(t.epochSecond(),c.SECONDS_PER_DAY);return(r=g.intMod(r+n.totalSeconds(),c.SECONDS_PER_DAY))<0&&(r+=c.SECONDS_PER_DAY),c.ofSecondOfDay(r,t.nano())},c.of=function(t,e,n,r){return new c(t,e,n,r)},c.ofSecondOfDay=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),R.SECOND_OF_DAY.checkValidValue(t),R.NANO_OF_SECOND.checkValidValue(e);var n=g.intDiv(t,c.SECONDS_PER_HOUR);t-=n*c.SECONDS_PER_HOUR;var r=g.intDiv(t,c.SECONDS_PER_MINUTE);return new c(n,r,t-=r*c.SECONDS_PER_MINUTE,e)},c.ofNanoOfDay=function(t){void 0===t&&(t=0),R.NANO_OF_DAY.checkValidValue(t);var e=g.intDiv(t,c.NANOS_PER_HOUR);t-=e*c.NANOS_PER_HOUR;var n=g.intDiv(t,c.NANOS_PER_MINUTE);t-=n*c.NANOS_PER_MINUTE;var r=g.intDiv(t,c.NANOS_PER_SECOND);return new c(e,n,r,t-=r*c.NANOS_PER_SECOND)},c.from=function(t){m(t,"temporal");var e=t.query(D.localTime());if(null==e)throw new w("Unable to obtain LocalTime TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},c.parse=function(t,e){return void 0===e&&(e=Wt.ISO_LOCAL_TIME),m(e,"formatter"),e.parse(t,c.FROM)},c._validate=function(t,e,n,r){R.HOUR_OF_DAY.checkValidValue(t),R.MINUTE_OF_HOUR.checkValidValue(e),R.SECOND_OF_MINUTE.checkValidValue(n),R.NANO_OF_SECOND.checkValidValue(r)};var t=c.prototype;return t.isSupported=function(t){return t instanceof R||t instanceof N?t.isTimeBased():null!=t&&t.isSupportedBy(this)},t.range=function(t){return m(t),f.prototype.range.call(this,t)},t.get=function(t){return this.getLong(t)},t.getLong=function(t){return m(t,"field"),t instanceof R?this._get0(t):t.getFrom(this)},t._get0=function(t){switch(t){case R.NANO_OF_SECOND:return this._nano;case R.NANO_OF_DAY:return this.toNanoOfDay();case R.MICRO_OF_SECOND:return g.intDiv(this._nano,1e3);case R.MICRO_OF_DAY:return g.intDiv(this.toNanoOfDay(),1e3);case R.MILLI_OF_SECOND:return g.intDiv(this._nano,1e6);case R.MILLI_OF_DAY:return g.intDiv(this.toNanoOfDay(),1e6);case R.SECOND_OF_MINUTE:return this._second;case R.SECOND_OF_DAY:return this.toSecondOfDay();case R.MINUTE_OF_HOUR:return this._minute;case R.MINUTE_OF_DAY:return 60*this._hour+this._minute;case R.HOUR_OF_AMPM:return g.intMod(this._hour,12);case R.CLOCK_HOUR_OF_AMPM:var e=g.intMod(this._hour,12);return e%12==0?12:e;case R.HOUR_OF_DAY:return this._hour;case R.CLOCK_HOUR_OF_DAY:return 0===this._hour?24:this._hour;case R.AMPM_OF_DAY:return g.intDiv(this._hour,12)}throw new l("Unsupported field: "+t)},t.hour=function(){return this._hour},t.minute=function(){return this._minute},t.second=function(){return this._second},t.nano=function(){return this._nano},t.withAdjuster=function(t){return m(t,"adjuster"),t instanceof c?t:(S("function"==typeof t.adjustInto,"adjuster",h),t.adjustInto(this))},t.withFieldValue=function(t,e){if(m(t,"field"),s(t,A,"field"),t instanceof R){switch(t.checkValidValue(e),t){case R.NANO_OF_SECOND:return this.withNano(e);case R.NANO_OF_DAY:return c.ofNanoOfDay(e);case R.MICRO_OF_SECOND:return this.withNano(1e3*e);case R.MICRO_OF_DAY:return c.ofNanoOfDay(1e3*e);case R.MILLI_OF_SECOND:return this.withNano(1e6*e);case R.MILLI_OF_DAY:return c.ofNanoOfDay(1e6*e);case R.SECOND_OF_MINUTE:return this.withSecond(e);case R.SECOND_OF_DAY:return this.plusSeconds(e-this.toSecondOfDay());case R.MINUTE_OF_HOUR:return this.withMinute(e);case R.MINUTE_OF_DAY:return this.plusMinutes(e-(60*this._hour+this._minute));case R.HOUR_OF_AMPM:return this.plusHours(e-g.intMod(this._hour,12));case R.CLOCK_HOUR_OF_AMPM:return this.plusHours((12===e?0:e)-g.intMod(this._hour,12));case R.HOUR_OF_DAY:return this.withHour(e);case R.CLOCK_HOUR_OF_DAY:return this.withHour(24===e?0:e);case R.AMPM_OF_DAY:return this.plusHours(12*(e-g.intDiv(this._hour,12)))}throw new l("Unsupported field: "+t)}return t.adjustInto(this,e)},t.withHour=function(t){return void 0===t&&(t=0),this._hour===t?this:new c(t,this._minute,this._second,this._nano)},t.withMinute=function(t){return void 0===t&&(t=0),this._minute===t?this:new c(this._hour,t,this._second,this._nano)},t.withSecond=function(t){return void 0===t&&(t=0),this._second===t?this:new c(this._hour,this._minute,t,this._nano)},t.withNano=function(t){return void 0===t&&(t=0),this._nano===t?this:new c(this._hour,this._minute,this._second,t)},t.truncatedTo=function(t){if(m(t,"unit"),t===N.NANOS)return this;var e=t.duration();if(e.seconds()>c.SECONDS_PER_DAY)throw new w("Unit is too large to be used for truncation");var n=e.toNanos();if(0!==g.intMod(c.NANOS_PER_DAY,n))throw new w("Unit must divide into a standard day without remainder");var r=this.toNanoOfDay();return c.ofNanoOfDay(g.intDiv(r,n)*n)},t.plusAmount=function(t){return m(t,"amount"),t.addTo(this)},t.plusAmountUnit=function(t,e){if(m(e,"unit"),e instanceof N){switch(e){case N.NANOS:return this.plusNanos(t);case N.MICROS:return this.plusNanos(1e3*g.intMod(t,c.MICROS_PER_DAY));case N.MILLIS:return this.plusNanos(1e6*g.intMod(t,c.MILLIS_PER_DAY));case N.SECONDS:return this.plusSeconds(t);case N.MINUTES:return this.plusMinutes(t);case N.HOURS:return this.plusHours(t);case N.HALF_DAYS:return this.plusHours(12*g.intMod(t,2))}throw new l("Unsupported unit: "+e)}return e.addTo(this,t)},t.plusHours=function(t){return 0===t?this:new c(g.intMod(g.intMod(t,c.HOURS_PER_DAY)+this._hour+c.HOURS_PER_DAY,c.HOURS_PER_DAY),this._minute,this._second,this._nano)},t.plusMinutes=function(t){if(0===t)return this;var e=this._hour*c.MINUTES_PER_HOUR+this._minute,n=g.intMod(g.intMod(t,c.MINUTES_PER_DAY)+e+c.MINUTES_PER_DAY,c.MINUTES_PER_DAY);return e===n?this:new c(g.intDiv(n,c.MINUTES_PER_HOUR),g.intMod(n,c.MINUTES_PER_HOUR),this._second,this._nano)},t.plusSeconds=function(t){if(0===t)return this;var e=this._hour*c.SECONDS_PER_HOUR+this._minute*c.SECONDS_PER_MINUTE+this._second,n=g.intMod(g.intMod(t,c.SECONDS_PER_DAY)+e+c.SECONDS_PER_DAY,c.SECONDS_PER_DAY);return e===n?this:new c(g.intDiv(n,c.SECONDS_PER_HOUR),g.intMod(g.intDiv(n,c.SECONDS_PER_MINUTE),c.MINUTES_PER_HOUR),g.intMod(n,c.SECONDS_PER_MINUTE),this._nano)},t.plusNanos=function(t){if(0===t)return this;var e=this.toNanoOfDay(),n=g.intMod(g.intMod(t,c.NANOS_PER_DAY)+e+c.NANOS_PER_DAY,c.NANOS_PER_DAY);return e===n?this:new c(g.intDiv(n,c.NANOS_PER_HOUR),g.intMod(g.intDiv(n,c.NANOS_PER_MINUTE),c.MINUTES_PER_HOUR),g.intMod(g.intDiv(n,c.NANOS_PER_SECOND),c.SECONDS_PER_MINUTE),g.intMod(n,c.NANOS_PER_SECOND))},t.minusAmount=function(t){return m(t,"amount"),t.subtractFrom(this)},t.minusAmountUnit=function(t,e){return m(e,"unit"),this.plusAmountUnit(-1*t,e)},t.minusHours=function(t){return this.plusHours(-1*g.intMod(t,c.HOURS_PER_DAY))},t.minusMinutes=function(t){return this.plusMinutes(-1*g.intMod(t,c.MINUTES_PER_DAY))},t.minusSeconds=function(t){return this.plusSeconds(-1*g.intMod(t,c.SECONDS_PER_DAY))},t.minusNanos=function(t){return this.plusNanos(-1*g.intMod(t,c.NANOS_PER_DAY))},t.query=function(t){return m(t,"query"),t===D.precision()?N.NANOS:t===D.localTime()?this:t===D.chronology()||t===D.zoneId()||t===D.zone()||t===D.offset()||t===D.localDate()?null:t.queryFrom(this)},t.adjustInto=function(t){return t.with(c.NANO_OF_DAY,this.toNanoOfDay())},t.until=function(t,e){m(t,"endExclusive"),m(e,"unit");var n=c.from(t);if(e instanceof N){var r=n.toNanoOfDay()-this.toNanoOfDay();switch(e){case N.NANOS:return r;case N.MICROS:return g.intDiv(r,1e3);case N.MILLIS:return g.intDiv(r,1e6);case N.SECONDS:return g.intDiv(r,c.NANOS_PER_SECOND);case N.MINUTES:return g.intDiv(r,c.NANOS_PER_MINUTE);case N.HOURS:return g.intDiv(r,c.NANOS_PER_HOUR);case N.HALF_DAYS:return g.intDiv(r,12*c.NANOS_PER_HOUR)}throw new l("Unsupported unit: "+e)}return e.between(this,n)},t.atDate=function(t){return ue.of(t,this)},t.toSecondOfDay=function(){var t=this._hour*c.SECONDS_PER_HOUR;return t+=this._minute*c.SECONDS_PER_MINUTE,t+=this._second},t.toNanoOfDay=function(){var t=this._hour*c.NANOS_PER_HOUR;return t+=this._minute*c.NANOS_PER_MINUTE,t+=this._second*c.NANOS_PER_SECOND,t+=this._nano},t.compareTo=function(t){m(t,"other"),s(t,c,"other");var e=g.compareNumbers(this._hour,t._hour);return 0===e&&0===(e=g.compareNumbers(this._minute,t._minute))&&0===(e=g.compareNumbers(this._second,t._second))&&(e=g.compareNumbers(this._nano,t._nano)),e},t.isAfter=function(t){return this.compareTo(t)>0},t.isBefore=function(t){return this.compareTo(t)<0},t.equals=function(t){return this===t||t instanceof c&&(this._hour===t._hour&&this._minute===t._minute&&this._second===t._second&&this._nano===t._nano)},t.hashCode=function(){var t=this.toNanoOfDay();return g.hash(t)},t.toString=function(){var t="",e=this._hour,n=this._minute,r=this._second,i=this._nano;return t+=e<10?"0":"",t+=e,t+=n<10?":0":":",t+=n,(r>0||i>0)&&(t+=r<10?":0":":",t+=r,i>0&&(t+=".",0===g.intMod(i,1e6)?t+=(""+(g.intDiv(i,1e6)+1e3)).substring(1):0===g.intMod(i,1e3)?t+=(""+(g.intDiv(i,1e3)+1e6)).substring(1):t+=(""+(i+1e9)).substring(1))),t},t.toJSON=function(){return this.toString()},t.format=function(t){return m(t,"formatter"),t.format(this)},c}(W);fe.HOURS_PER_DAY=24,fe.MINUTES_PER_HOUR=60,fe.MINUTES_PER_DAY=fe.MINUTES_PER_HOUR*fe.HOURS_PER_DAY,fe.SECONDS_PER_MINUTE=60,fe.SECONDS_PER_HOUR=fe.SECONDS_PER_MINUTE*fe.MINUTES_PER_HOUR,fe.SECONDS_PER_DAY=fe.SECONDS_PER_HOUR*fe.HOURS_PER_DAY,fe.MILLIS_PER_DAY=1e3*fe.SECONDS_PER_DAY,fe.MICROS_PER_DAY=1e6*fe.SECONDS_PER_DAY,fe.NANOS_PER_SECOND=1e9,fe.NANOS_PER_MINUTE=fe.NANOS_PER_SECOND*fe.SECONDS_PER_MINUTE,fe.NANOS_PER_HOUR=fe.NANOS_PER_MINUTE*fe.MINUTES_PER_HOUR,fe.NANOS_PER_DAY=fe.NANOS_PER_HOUR*fe.HOURS_PER_DAY;var ce=1e6,he=function(r){function i(t,e){var n;return n=r.call(this)||this,i._validate(t,e),n._seconds=g.safeToInt(t),n._nanos=g.safeToInt(e),n}_(i,r),i.now=function(t){return void 0===t&&(t=le.systemUTC()),t.instant()},i.ofEpochSecond=function(t,e){void 0===e&&(e=0);var n=t+g.floorDiv(e,fe.NANOS_PER_SECOND),r=g.floorMod(e,fe.NANOS_PER_SECOND);return i._create(n,r)},i.ofEpochMilli=function(t){var e=g.floorDiv(t,1e3),n=g.floorMod(t,1e3);return i._create(e,1e6*n)},i.from=function(e){try{var t=e.getLong(R.INSTANT_SECONDS),n=e.get(R.NANO_OF_SECOND);return i.ofEpochSecond(t,n)}catch(t){throw new w("Unable to obtain Instant from TemporalAccessor: "+e+", type "+typeof e,t)}},i.parse=function(t){return Wt.ISO_INSTANT.parse(t,i.FROM)},i._create=function(t,e){return 0===t&&0===e?i.EPOCH:new i(t,e)},i._validate=function(t,e){if(t<i.MIN_SECONDS||t>i.MAX_SECONDS)throw new w("Instant exceeds minimum or maximum instant");if(e<0||e>fe.NANOS_PER_SECOND)throw new w("Instant exceeds minimum or maximum instant")};var t=i.prototype;return t.isSupported=function(t){return t instanceof R?t===R.INSTANT_SECONDS||t===R.NANO_OF_SECOND||t===R.MICRO_OF_SECOND||t===R.MILLI_OF_SECOND:t instanceof N?t.isTimeBased()||t===N.DAYS:null!=t&&t.isSupportedBy(this)},t.range=function(t){return r.prototype.range.call(this,t)},t.get=function(t){return this.getLong(t)},t.getLong=function(t){if(t instanceof R){switch(t){case R.NANO_OF_SECOND:return this._nanos;case R.MICRO_OF_SECOND:return g.intDiv(this._nanos,1e3);case R.MILLI_OF_SECOND:return g.intDiv(this._nanos,ce);case R.INSTANT_SECONDS:return this._seconds}throw new l("Unsupported field: "+t)}return t.getFrom(this)},t.epochSecond=function(){return this._seconds},t.nano=function(){return this._nanos},t.withAdjuster=function(t){return m(t,"adjuster"),t.adjustInto(this)},t.withFieldValue=function(t,e){if(m(t,"field"),t instanceof R){switch(t.checkValidValue(e),t){case R.MILLI_OF_SECOND:var n=e*ce;return n!==this._nanos?i._create(this._seconds,n):this;case R.MICRO_OF_SECOND:var r=1e3*e;return r!==this._nanos?i._create(this._seconds,r):this;case R.NANO_OF_SECOND:return e!==this._nanos?i._create(this._seconds,e):this;case R.INSTANT_SECONDS:return e!==this._seconds?i._create(e,this._nanos):this}throw new l("Unsupported field: "+t)}return t.adjustInto(this,e)},t.truncatedTo=function(t){if(m(t,"unit"),t===N.NANOS)return this;var e=t.duration();if(e.seconds()>fe.SECONDS_PER_DAY)throw new w("Unit is too large to be used for truncation");var n=e.toNanos();if(0!==g.intMod(fe.NANOS_PER_DAY,n))throw new w("Unit must divide into a standard day without remainder");var r=g.intMod(this._seconds,fe.SECONDS_PER_DAY)*fe.NANOS_PER_SECOND+this._nanos,i=g.intDiv(r,n)*n;return this.plusNanos(i-r)},t.plusAmount=function(t){return m(t,"amount"),t.addTo(this)},t.plusAmountUnit=function(t,e){if(m(t,"amountToAdd"),m(e,"unit"),s(e,E),e instanceof N){switch(e){case N.NANOS:return this.plusNanos(t);case N.MICROS:return this._plus(g.intDiv(t,1e6),1e3*g.intMod(t,1e6));case N.MILLIS:return this.plusMillis(t);case N.SECONDS:return this.plusSeconds(t);case N.MINUTES:return this.plusSeconds(g.safeMultiply(t,fe.SECONDS_PER_MINUTE));case N.HOURS:return this.plusSeconds(g.safeMultiply(t,fe.SECONDS_PER_HOUR));case N.HALF_DAYS:return this.plusSeconds(g.safeMultiply(t,fe.SECONDS_PER_DAY/2));case N.DAYS:return this.plusSeconds(g.safeMultiply(t,fe.SECONDS_PER_DAY))}throw new l("Unsupported unit: "+e)}return e.addTo(this,t)},t.plusSeconds=function(t){return this._plus(t,0)},t.plusMillis=function(t){return this._plus(g.intDiv(t,1e3),g.intMod(t,1e3)*ce)},t.plusNanos=function(t){return this._plus(0,t)},t._plus=function(t,e){if(0===t&&0===e)return this;var n=this._seconds+t;n+=g.intDiv(e,fe.NANOS_PER_SECOND);var r=this._nanos+e%fe.NANOS_PER_SECOND;return i.ofEpochSecond(n,r)},t.minusAmount=function(t){return m(t,"amount"),t.subtractFrom(this)},t.minusAmountUnit=function(t,e){return this.plusAmountUnit(-1*t,e)},t.minusSeconds=function(t){return this.plusSeconds(-1*t)},t.minusMillis=function(t){return this.plusMillis(-1*t)},t.minusNanos=function(t){return this.plusNanos(-1*t)},t.query=function(t){return m(t,"query"),t===D.precision()?N.NANOS:t===D.localDate()||t===D.localTime()||t===D.chronology()||t===D.zoneId()||t===D.zone()||t===D.offset()?null:t.queryFrom(this)},t.adjustInto=function(t){return m(t,"temporal"),t.with(R.INSTANT_SECONDS,this._seconds).with(R.NANO_OF_SECOND,this._nanos)},t.until=function(t,e){m(t,"endExclusive"),m(e,"unit");var n=i.from(t);if(e instanceof N){switch(e){case N.NANOS:return this._nanosUntil(n);case N.MICROS:return g.intDiv(this._nanosUntil(n),1e3);case N.MILLIS:return g.safeSubtract(n.toEpochMilli(),this.toEpochMilli());case N.SECONDS:return this._secondsUntil(n);case N.MINUTES:return g.intDiv(this._secondsUntil(n),fe.SECONDS_PER_MINUTE);case N.HOURS:return g.intDiv(this._secondsUntil(n),fe.SECONDS_PER_HOUR);case N.HALF_DAYS:return g.intDiv(this._secondsUntil(n),12*fe.SECONDS_PER_HOUR);case N.DAYS:return g.intDiv(this._secondsUntil(n),fe.SECONDS_PER_DAY)}throw new l("Unsupported unit: "+e)}return e.between(this,n)},t._nanosUntil=function(t){var e=g.safeSubtract(t.epochSecond(),this.epochSecond()),n=g.safeMultiply(e,fe.NANOS_PER_SECOND);return g.safeAdd(n,t.nano()-this.nano())},t._secondsUntil=function(t){var e=g.safeSubtract(t.epochSecond(),this.epochSecond()),n=t.nano()-this.nano();return e>0&&n<0?e--:e<0&&n>0&&e++,e},t.atOffset=function(t){return re.ofInstant(this,t)},t.atZone=function(t){return ne.ofInstant(this,t)},t.toEpochMilli=function(){return g.safeMultiply(this._seconds,1e3)+g.intDiv(this._nanos,ce)},t.compareTo=function(t){m(t,"otherInstant"),s(t,i,"otherInstant");var e=g.compareNumbers(this._seconds,t._seconds);return 0!==e?e:this._nanos-t._nanos},t.isAfter=function(t){return this.compareTo(t)>0},t.isBefore=function(t){return this.compareTo(t)<0},t.equals=function(t){return this===t||t instanceof i&&(this.epochSecond()===t.epochSecond()&&this.nano()===t.nano())},t.hashCode=function(){return g.hashCode(this._seconds,this._nanos)},t.toString=function(){return Wt.ISO_INSTANT.format(this)},t.toJSON=function(){return this.toString()},i}(W),le=function(){function t(){}t.systemUTC=function(){return new _e($.UTC)},t.systemDefaultZone=function(){return new _e(z.systemDefault())},t.system=function(t){return new _e(t)},t.fixed=function(t,e){return new de(t,e)},t.offset=function(t,e){return new pe(t,e)};var e=t.prototype;return e.millis=function(){r("Clock.millis")},e.instant=function(){r("Clock.instant")},e.zone=function(){r("Clock.zone")},e.withZone=function(){r("Clock.withZone")},t}(),_e=function(n){function e(t){var e;return m(t,"zone"),(e=n.call(this)||this)._zone=t,e}_(e,n);var t=e.prototype;return t.zone=function(){return this._zone},t.millis=function(){return(new Date).getTime()},t.instant=function(){return he.ofEpochMilli(this.millis())},t.equals=function(t){return t instanceof e&&this._zone.equals(t._zone)},t.withZone=function(t){return t.equals(this._zone)?this:new e(t)},t.toString=function(){return"SystemClock["+this._zone.toString()+"]"},e}(le),de=function(r){function e(t,e){var n;return(n=r.call(this)||this)._instant=t,n._zoneId=e,n}_(e,r);var t=e.prototype;return t.instant=function(){return this._instant},t.millis=function(){return this._instant.toEpochMilli()},t.zone=function(){return this._zoneId},t.toString=function(){return"FixedClock[]"},t.equals=function(t){return t instanceof e&&(this._instant.equals(t._instant)&&this._zoneId.equals(t._zoneId))},t.withZone=function(t){return t.equals(this._zoneId)?this:new e(this._instant,t)},e}(le),pe=function(r){function e(t,e){var n;return(n=r.call(this)||this)._baseClock=t,n._offset=e,n}_(e,r);var t=e.prototype;return t.zone=function(){return this._baseClock.zone()},t.withZone=function(t){return t.equals(this._baseClock.zone())?this:new e(this._baseClock.withZone(t),this._offset)},t.millis=function(){return this._baseClock.millis()+this._offset.toMillis()},t.instant=function(){return this._baseClock.instant().plus(this._offset)},t.equals=function(t){return t instanceof e&&(this._baseClock.equals(t._baseClock)&&this._offset.equals(t._offset))},t.toString=function(){return"OffsetClock["+this._baseClock+","+this._offset+"]"},e}(le),me=function(){function r(t,e,n){if(m(t,"transition"),m(e,"offsetBefore"),m(n,"offsetAfter"),e.equals(n))throw new h("Offsets must not be equal");if(0!==t.nano())throw new h("Nano-of-second must be zero");this._transition=t instanceof ue?t:ue.ofEpochSecond(t,0,e),this._offsetBefore=e,this._offsetAfter=n}r.of=function(t,e,n){return new r(t,e,n)};var t=r.prototype;return t.instant=function(){return this._transition.toInstant(this._offsetBefore)},t.toEpochSecond=function(){return this._transition.toEpochSecond(this._offsetBefore)},t.dateTimeBefore=function(){return this._transition},t.dateTimeAfter=function(){return this._transition.plusSeconds(this.durationSeconds())},t.offsetBefore=function(){return this._offsetBefore},t.offsetAfter=function(){return this._offsetAfter},t.duration=function(){return y.ofSeconds(this.durationSeconds())},t.durationSeconds=function(){return this._offsetAfter.totalSeconds()-this._offsetBefore.totalSeconds()},t.isGap=function(){return this._offsetAfter.totalSeconds()>this._offsetBefore.totalSeconds()},t.isOverlap=function(){return this._offsetAfter.totalSeconds()<this._offsetBefore.totalSeconds()},t.isValidOffset=function(t){return!this.isGap()&&(this._offsetBefore.equals(t)||this._offsetAfter.equals(t))},t.validOffsets=function(){return this.isGap()?[]:[this._offsetBefore,this._offsetAfter]},t.compareTo=function(t){return this.instant().compareTo(t.instant())},t.equals=function(t){if(t===this)return!0;if(t instanceof r){var e=t;return this._transition.equals(e._transition)&&this._offsetBefore.equals(e.offsetBefore())&&this._offsetAfter.equals(e.offsetAfter())}return!1},t.hashCode=function(){return this._transition.hashCode()^this._offsetBefore.hashCode()^this._offsetAfter.hashCode()>>>16},t.toString=function(){return"Transition["+(this.isGap()?"Gap":"Overlap")+" at "+this._transition.toString()+this._offsetBefore.toString()+" to "+this._offsetAfter+"]"},r}(),Ee=function(t){function e(){return t.apply(this,arguments)||this}_(e,t);var n=e.prototype;return n.isFixedOffset=function(){return!1},n.offsetOfInstant=function(t){var e=new Date(t.toEpochMilli()).getTimezoneOffset();return $.ofTotalMinutes(-1*e)},n.offsetOfEpochMilli=function(t){var e=new Date(t).getTimezoneOffset();return $.ofTotalMinutes(-1*e)},n.offsetOfLocalDateTime=function(t){var e=1e3*t.toEpochSecond($.UTC),n=new Date(e).getTimezoneOffset(),r=new Date(e+6e4*n).getTimezoneOffset();return $.ofTotalMinutes(-1*r)},n.validOffsets=function(t){return[this.offsetOfLocalDateTime(t)]},n.transition=function(){return null},n.standardOffset=function(t){return this.offsetOfInstant(t)},n.daylightSavings=function(){this._throwNotSupported()},n.isDaylightSavings=function(){this._throwNotSupported()},n.isValidOffset=function(t,e){return this.offsetOfLocalDateTime(t).equals(e)},n.nextTransition=function(){this._throwNotSupported()},n.previousTransition=function(){this._throwNotSupported()},n.transitions=function(){this._throwNotSupported()},n.transitionRules=function(){this._throwNotSupported()},n._throwNotSupported=function(){throw new w("not supported operation")},n.equals=function(t){return this===t||t instanceof e},n.toString=function(){return"SYSTEM"},e}(Z),Oe=function(e){function t(){var t;return(t=e.call(this)||this)._rules=new Ee,t}_(t,e);var n=t.prototype;return n.rules=function(){return this._rules},n.equals=function(t){return this===t},n.id=function(){return"SYSTEM"},t}(z),Se=function(){function t(){}return t.systemDefault=function(){return ye},t.getAvailableZoneIds=function(){return It.getAvailableZoneIds()},t.of=function(t){if(m(t,"zoneId"),"Z"===t)return $.UTC;if(1===t.length)throw new w("Invalid zone: "+t);if(j.startsWith(t,"+")||j.startsWith(t,"-"))return $.of(t);if("UTC"===t||"GMT"===t||"GMT0"===t||"UT"===t)return new Ct(t,$.UTC.rules());if(j.startsWith(t,"UTC+")||j.startsWith(t,"GMT+")||j.startsWith(t,"UTC-")||j.startsWith(t,"GMT-")){var e=$.of(t.substring(3));return 0===e.totalSeconds()?new Ct(t.substring(0,3),e.rules()):new Ct(t.substring(0,3)+e.id(),e.rules())}if(j.startsWith(t,"UT+")||j.startsWith(t,"UT-")){var n=$.of(t.substring(2));return 0===n.totalSeconds()?new Ct("UT",n.rules()):new Ct("UT"+n.id(),n.rules())}return"SYSTEM"===t?z.systemDefault():Ct.ofId(t)},t.ofOffset=function(t,e){if(m(t,"prefix"),m(e,"offset"),0===t.length)return e;if("GMT"===t||"UTC"===t||"UT"===t)return 0===e.totalSeconds()?new Ct(t,e.rules()):new Ct(t+e.id(),e.rules());throw new h("Invalid prefix, must be GMT, UTC or UT: "+t)},t.from=function(t){m(t,"temporal");var e=t.query(D.zone());if(null==e)throw new w("Unable to obtain ZoneId from TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},t}(),ye=null,ve;(ve=!1)||(ve=!0,v.MIN_VALUE=-999999,v.MAX_VALUE=999999,y.ZERO=new y(0,0),N.NANOS=new N("Nanos",y.ofNanos(1)),N.MICROS=new N("Micros",y.ofNanos(1e3)),N.MILLIS=new N("Millis",y.ofNanos(1e6)),N.SECONDS=new N("Seconds",y.ofSeconds(1)),N.MINUTES=new N("Minutes",y.ofSeconds(60)),N.HOURS=new N("Hours",y.ofSeconds(3600)),N.HALF_DAYS=new N("HalfDays",y.ofSeconds(43200)),N.DAYS=new N("Days",y.ofSeconds(86400)),N.WEEKS=new N("Weeks",y.ofSeconds(604800)),N.MONTHS=new N("Months",y.ofSeconds(2629746)),N.YEARS=new N("Years",y.ofSeconds(31556952)),N.DECADES=new N("Decades",y.ofSeconds(315569520)),N.CENTURIES=new N("Centuries",y.ofSeconds(3155695200)),N.MILLENNIA=new N("Millennia",y.ofSeconds(31556952e3)),N.ERAS=new N("Eras",y.ofSeconds(31556952*(v.MAX_VALUE+1))),N.FOREVER=new N("Forever",y.ofSeconds(g.MAX_SAFE_INTEGER,999999999)),R.NANO_OF_SECOND=new R("NanoOfSecond",N.NANOS,N.SECONDS,T.of(0,999999999)),R.NANO_OF_DAY=new R("NanoOfDay",N.NANOS,N.DAYS,T.of(0,86399999999999)),R.MICRO_OF_SECOND=new R("MicroOfSecond",N.MICROS,N.SECONDS,T.of(0,999999)),R.MICRO_OF_DAY=new R("MicroOfDay",N.MICROS,N.DAYS,T.of(0,86399999999)),R.MILLI_OF_SECOND=new R("MilliOfSecond",N.MILLIS,N.SECONDS,T.of(0,999)),R.MILLI_OF_DAY=new R("MilliOfDay",N.MILLIS,N.DAYS,T.of(0,86399999)),R.SECOND_OF_MINUTE=new R("SecondOfMinute",N.SECONDS,N.MINUTES,T.of(0,59)),R.SECOND_OF_DAY=new R("SecondOfDay",N.SECONDS,N.DAYS,T.of(0,86399)),R.MINUTE_OF_HOUR=new R("MinuteOfHour",N.MINUTES,N.HOURS,T.of(0,59)),R.MINUTE_OF_DAY=new R("MinuteOfDay",N.MINUTES,N.DAYS,T.of(0,1439)),R.HOUR_OF_AMPM=new R("HourOfAmPm",N.HOURS,N.HALF_DAYS,T.of(0,11)),R.CLOCK_HOUR_OF_AMPM=new R("ClockHourOfAmPm",N.HOURS,N.HALF_DAYS,T.of(1,12)),R.HOUR_OF_DAY=new R("HourOfDay",N.HOURS,N.DAYS,T.of(0,23)),R.CLOCK_HOUR_OF_DAY=new R("ClockHourOfDay",N.HOURS,N.DAYS,T.of(1,24)),R.AMPM_OF_DAY=new R("AmPmOfDay",N.HALF_DAYS,N.DAYS,T.of(0,1)),R.DAY_OF_WEEK=new R("DayOfWeek",N.DAYS,N.WEEKS,T.of(1,7)),R.ALIGNED_DAY_OF_WEEK_IN_MONTH=new R("AlignedDayOfWeekInMonth",N.DAYS,N.WEEKS,T.of(1,7)),R.ALIGNED_DAY_OF_WEEK_IN_YEAR=new R("AlignedDayOfWeekInYear",N.DAYS,N.WEEKS,T.of(1,7)),R.DAY_OF_MONTH=new R("DayOfMonth",N.DAYS,N.MONTHS,T.of(1,28,31),"day"),R.DAY_OF_YEAR=new R("DayOfYear",N.DAYS,N.YEARS,T.of(1,365,366)),R.EPOCH_DAY=new R("EpochDay",N.DAYS,N.FOREVER,T.of(Math.floor(365.25*v.MIN_VALUE),Math.floor(365.25*v.MAX_VALUE))),R.ALIGNED_WEEK_OF_MONTH=new R("AlignedWeekOfMonth",N.WEEKS,N.MONTHS,T.of(1,4,5)),R.ALIGNED_WEEK_OF_YEAR=new R("AlignedWeekOfYear",N.WEEKS,N.YEARS,T.of(1,53)),R.MONTH_OF_YEAR=new R("MonthOfYear",N.MONTHS,N.YEARS,T.of(1,12),"month"),R.PROLEPTIC_MONTH=new R("ProlepticMonth",N.MONTHS,N.FOREVER,T.of(12*v.MIN_VALUE,12*v.MAX_VALUE+11)),R.YEAR_OF_ERA=new R("YearOfEra",N.YEARS,N.FOREVER,T.of(1,v.MAX_VALUE,v.MAX_VALUE+1)),R.YEAR=new R("Year",N.YEARS,N.FOREVER,T.of(v.MIN_VALUE,v.MAX_VALUE),"year"),R.ERA=new R("Era",N.ERAS,N.FOREVER,T.of(0,1)),R.INSTANT_SECONDS=new R("InstantSeconds",N.SECONDS,N.FOREVER,T.of(f,u)),R.OFFSET_SECONDS=new R("OffsetSeconds",N.SECONDS,N.FOREVER,T.of(-64800,64800)),function(){fe.HOURS=[];for(var t=0;t<24;t++)fe.of(t,0,0,0);fe.MIN=fe.HOURS[0],fe.MAX=new fe(23,59,59,999999999),fe.MIDNIGHT=fe.HOURS[0],fe.NOON=fe.HOURS[12],fe.FROM=C("LocalTime.FROM",function(t){return fe.from(t)})}(),ct=new ot,ht=new st,lt=new at,_t=new ut,dt=new ft("WeekBasedYears",y.ofSeconds(31556952)),pt=new ft("QuarterYears",y.ofSeconds(7889238)),nt.DAY_OF_QUARTER=ct,nt.QUARTER_OF_YEAR=ht,nt.WEEK_OF_WEEK_BASED_YEAR=lt,nt.WEEK_BASED_YEAR=_t,nt.WEEK_BASED_YEARS=dt,nt.QUARTER_YEARS=pt,se.prototype.isoWeekOfWeekyear=function(){return this.get(nt.WEEK_OF_WEEK_BASED_YEAR)},se.prototype.isoWeekyear=function(){return this.get(nt.WEEK_BASED_YEAR)},D.ZONE_ID=C("ZONE_ID",function(t){return t.query(D.ZONE_ID)}),D.CHRONO=C("CHRONO",function(t){return t.query(D.CHRONO)}),D.PRECISION=C("PRECISION",function(t){return t.query(D.PRECISION)}),D.OFFSET=C("OFFSET",function(t){return t.isSupported(R.OFFSET_SECONDS)?$.ofTotalSeconds(t.get(R.OFFSET_SECONDS)):null}),D.ZONE=C("ZONE",function(t){var e=t.query(D.ZONE_ID);return null!=e?e:t.query(D.OFFSET)}),D.LOCAL_DATE=C("LOCAL_DATE",function(t){return t.isSupported(R.EPOCH_DAY)?se.ofEpochDay(t.getLong(R.EPOCH_DAY)):null}),D.LOCAL_TIME=C("LOCAL_TIME",function(t){return t.isSupported(R.NANO_OF_DAY)?fe.ofNanoOfDay(t.getLong(R.NANO_OF_DAY)):null}),Y.MONDAY=new Y(0,"MONDAY"),Y.TUESDAY=new Y(1,"TUESDAY"),Y.WEDNESDAY=new Y(2,"WEDNESDAY"),Y.THURSDAY=new Y(3,"THURSDAY"),Y.FRIDAY=new Y(4,"FRIDAY"),Y.SATURDAY=new Y(5,"SATURDAY"),Y.SUNDAY=new Y(6,"SUNDAY"),Y.FROM=C("DayOfWeek.FROM",function(t){return Y.from(t)}),F=[Y.MONDAY,Y.TUESDAY,Y.WEDNESDAY,Y.THURSDAY,Y.FRIDAY,Y.SATURDAY,Y.SUNDAY],he.MIN_SECONDS=-31619119219200,he.MAX_SECONDS=31494816403199,he.EPOCH=new he(0,0),he.MIN=he.ofEpochSecond(he.MIN_SECONDS,0),he.MAX=he.ofEpochSecond(he.MAX_SECONDS,999999999),he.FROM=C("Instant.FROM",function(t){return he.from(t)}),se.MIN=se.of(v.MIN_VALUE,1,1),se.MAX=se.of(v.MAX_VALUE,12,31),se.EPOCH_0=se.ofEpochDay(0),se.FROM=C("LocalDate.FROM",function(t){return se.from(t)}),ue.MIN=ue.of(se.MIN,fe.MIN),ue.MAX=ue.of(se.MAX,fe.MAX),ue.FROM=C("LocalDateTime.FROM",function(t){return ue.from(t)}),Kt.MIN_VALUE=v.MIN_VALUE,Kt.MAX_VALUE=v.MAX_VALUE,Zt=(new Ut).appendValue(R.YEAR,4,10,Et.EXCEEDS_PAD).toFormatter(),Kt.FROM=C("Year.FROM",function(t){return Kt.from(t)}),b.JANUARY=new b(1,"JANUARY"),b.FEBRUARY=new b(2,"FEBRUARY"),b.MARCH=new b(3,"MARCH"),b.APRIL=new b(4,"APRIL"),b.MAY=new b(5,"MAY"),b.JUNE=new b(6,"JUNE"),b.JULY=new b(7,"JULY"),b.AUGUST=new b(8,"AUGUST"),b.SEPTEMBER=new b(9,"SEPTEMBER"),b.OCTOBER=new b(10,"OCTOBER"),b.NOVEMBER=new b(11,"NOVEMBER"),b.DECEMBER=new b(12,"DECEMBER"),L=[b.JANUARY,b.FEBRUARY,b.MARCH,b.APRIL,b.MAY,b.JUNE,b.JULY,b.AUGUST,b.SEPTEMBER,b.OCTOBER,b.NOVEMBER,b.DECEMBER],jt=(new Ut).appendValue(R.YEAR,4,10,Et.EXCEEDS_PAD).appendLiteral("-").appendValue(R.MONTH_OF_YEAR,2).toFormatter(),zt.FROM=C("YearMonth.FROM",function(t){return zt.from(t)}),Bt=(new Ut).appendLiteral("--").appendValue(R.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(R.DAY_OF_MONTH,2).toFormatter(),qt.FROM=C("MonthDay.FROM",function(t){return qt.from(t)}),U.ofDays(0),$.MAX_SECONDS=18*fe.SECONDS_PER_HOUR,$.UTC=$.ofTotalSeconds(0),$.MIN=$.ofTotalSeconds(-$.MAX_SECONDS),$.MAX=$.ofTotalSeconds($.MAX_SECONDS),ne.FROM=C("ZonedDateTime.FROM",function(t){return ne.from(t)}),ye=new Oe,z.systemDefault=Se.systemDefault,z.getAvailableZoneIds=Se.getAvailableZoneIds,z.of=Se.of,z.ofOffset=Se.ofOffset,z.from=Se.from,$.from=Se.from,z.SYSTEM=ye,z.UTC=$.ofTotalSeconds(0),Qt.INSTANCE=new Qt("IsoChronology"),Wt.ISO_LOCAL_DATE=(new Ut).appendValue(R.YEAR,4,10,Et.EXCEEDS_PAD).appendLiteral("-").appendValue(R.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(R.DAY_OF_MONTH,2).toFormatter(x.STRICT).withChronology(Qt.INSTANCE),Wt.ISO_LOCAL_TIME=(new Ut).appendValue(R.HOUR_OF_DAY,2).appendLiteral(":").appendValue(R.MINUTE_OF_HOUR,2).optionalStart().appendLiteral(":").appendValue(R.SECOND_OF_MINUTE,2).optionalStart().appendFraction(R.NANO_OF_SECOND,0,9,!0).toFormatter(x.STRICT),Wt.ISO_LOCAL_DATE_TIME=(new Ut).parseCaseInsensitive().append(Wt.ISO_LOCAL_DATE).appendLiteral("T").append(Wt.ISO_LOCAL_TIME).toFormatter(x.STRICT).withChronology(Qt.INSTANCE),Wt.ISO_INSTANT=(new Ut).parseCaseInsensitive().appendInstant().toFormatter(x.STRICT),Wt.ISO_OFFSET_DATE_TIME=(new Ut).parseCaseInsensitive().append(Wt.ISO_LOCAL_DATE_TIME).appendOffsetId().toFormatter(x.STRICT).withChronology(Qt.INSTANCE),Wt.ISO_ZONED_DATE_TIME=(new Ut).append(Wt.ISO_OFFSET_DATE_TIME).optionalStart().appendLiteral("[").parseCaseSensitive().appendZoneId().appendLiteral("]").toFormatter(x.STRICT).withChronology(Qt.INSTANCE),Wt.BASIC_ISO_DATE=(new Ut).appendValue(R.YEAR,4,10,Et.EXCEEDS_PAD).appendValue(R.MONTH_OF_YEAR,2).appendValue(R.DAY_OF_MONTH,2).toFormatter(x.STRICT).withChronology(Qt.INSTANCE),Wt.ISO_OFFSET_DATE=(new Ut).parseCaseInsensitive().append(Wt.ISO_LOCAL_DATE).appendOffsetId().toFormatter(x.STRICT).withChronology(Qt.INSTANCE),Wt.ISO_OFFSET_TIME=(new Ut).parseCaseInsensitive().append(Wt.ISO_LOCAL_TIME).appendOffsetId().toFormatter(x.STRICT).withChronology(Qt.INSTANCE),Wt.ISO_ORDINAL_DATE=(new Ut).appendValue(R.YEAR,4,10,Et.EXCEEDS_PAD).appendLiteral("-").appendValue(R.DAY_OF_YEAR).toFormatter(x.STRICT),Wt.ISO_WEEK_DATE=(new Ut).appendValue(R.YEAR,4,10,Et.EXCEEDS_PAD).appendLiteral("-W").appendValue(R.ALIGNED_WEEK_OF_YEAR).appendLiteral("-").appendValue(R.DAY_OF_WEEK).toFormatter(x.STRICT),Wt.PARSED_EXCESS_DAYS=C("PARSED_EXCESS_DAYS",function(t){return t instanceof J?t.excessDays:U.ZERO}),Wt.PARSED_LEAP_SECOND=C("PARSED_LEAP_SECOND",function(t){return t instanceof J&&t.leapSecond}),Tt.BASE_DATE=se.of(2e3,1,1),Ut.CompositePrinterParser=yt,Ut.PadPrinterParserDecorator=gt,Ut.SettingsParser=Rt,Ut.CharLiteralPrinterParser=Mt,Ut.StringLiteralPrinterParser=Mt,Ut.CharLiteralPrinterParser=St,Ut.NumberPrinterParser=At,Ut.ReducedPrinterParser=Tt,Ut.FractionPrinterParser=vt,Ut.OffsetIdPrinterParser=wt,Ut.ZoneIdPrinterParser=Ft,re.MIN=ue.MIN.atOffset($.MAX),re.MAX=ue.MAX.atOffset($.MIN),re.FROM=C("OffsetDateTime.FROM",function(t){return re.from(t)}),te.MIN=te.ofNumbers(0,0,0,0,$.MAX),te.MAX=te.ofNumbers(23,59,59,999999999,$.MIN),te.FROM=C("OffsetTime.FROM",function(t){return te.from(t)}));var Ne=function(){function t(t,e){var n;if(t instanceof se)e=null==e?z.systemDefault():e,n=t.atStartOfDay(e);else if(t instanceof ue)e=null==e?z.systemDefault():e,n=t.atZone(e);else{if(!(t instanceof ne))throw new h("unsupported instance for convert operation:"+t);n=null==e?t:t.withZoneSameInstant(e)}this.instant=n.toInstant()}var e=t.prototype;return e.toDate=function(){return new Date(this.instant.toEpochMilli())},e.toEpochMilli=function(){return this.instant.toEpochMilli()},t}(),Ae=function(r){function t(t,e){var n;return void 0===e&&(e=z.systemDefault()),(n=r.call(this)||this)._zone=e,t instanceof Date?(n._epochMilli=t.getTime(),d(n)):"function"==typeof t.toDate&&t.toDate()instanceof Date?(n._epochMilli=t.toDate().getTime(),d(n)):(S(!1,"date must be either a javascript date or a moment"),n)}_(t,r);var e=t.prototype;return e.query=function(t){return m(t,"query"),t===D.localDate()?se.ofInstant(he.ofEpochMilli(this._epochMilli),this._zone):t===D.localTime()?fe.ofInstant(he.ofEpochMilli(this._epochMilli),this._zone):t===D.zone()?this._zone:r.prototype.query.call(this,t)},e.get=function(t){return this.getLong(t)},e.getLong=function(t){if(m(t,"field"),t instanceof R){switch(t){case R.NANO_OF_SECOND:return 1e6*g.floorMod(this._epochMilli,1e3);case R.INSTANT_SECONDS:return g.floorDiv(this._epochMilli,1e3)}throw new l("Unsupported field: "+t)}return t.getFrom(this)},e.isSupported=function(t){return t===R.INSTANT_SECONDS||t===R.NANO_OF_SECOND},t}(M),Te,De,we={_:{assert:n,DateTimeBuilder:J,DateTimeParseContext:Q,DateTimePrintContext:et,MathUtil:g,StringUtil:j,StringBuilder:Ht},convert:function(t,e){return new Ne(t,e)},nativeJs:function(t,e){return new Ae(t,e)},ArithmeticException:O,DateTimeException:w,DateTimeParseException:p,IllegalArgumentException:h,IllegalStateException:i,UnsupportedTemporalTypeException:l,NullPointerException:o,Clock:le,DayOfWeek:Y,Duration:y,Instant:he,LocalDate:se,LocalTime:fe,LocalDateTime:ue,OffsetTime:te,OffsetDateTime:re,Month:b,MonthDay:qt,Period:U,Year:Kt,YearConstants:v,YearMonth:zt,ZonedDateTime:ne,ZoneOffset:$,ZoneId:z,ZoneRegion:Ct,ZoneOffsetTransition:me,ZoneRules:Z,ZoneRulesProvider:It,ChronoLocalDate:q,ChronoLocalDateTime:ae,ChronoZonedDateTime:ee,IsoChronology:Qt,ChronoField:R,ChronoUnit:N,IsoFields:nt,Temporal:W,TemporalAccessor:M,TemporalAdjuster:H,TemporalAdjusters:Gt,TemporalAmount:c,TemporalField:A,TemporalQueries:D,TemporalQuery:I,TemporalUnit:E,ValueRange:T,DateTimeFormatter:Wt,DateTimeFormatterBuilder:Ut,DecimalStyle:mt,ResolverStyle:x,SignStyle:Et,TextStyle:Ot},ge=(De=[],function(t){return~De.indexOf(t)||(t(Te),De.push(t)),Te});(Te=we).use=ge;var Re={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},Me=function(){function e(){}return e.setLogLevel=function(t){void 0===t&&(t=Re.INFO),this.logLevel=t},e._log=function(t,e){var n;switch(t){case"WARN":n="orange";break;case"ERROR":n="red";break;default:n="#AAAAAA"}try{console.log("%c[".concat(t,"] Hackle: ").concat(e),"color: ".concat(n))}catch(t){}},e.logLevel=Re.INFO,e.log={error:function(t){e.logLevel>=Re.ERROR&&e._log("ERROR",t)},warn:function(t){e.logLevel>=Re.WARN&&e._log("WARN",t)},info:function(t){e.logLevel>=Re.INFO&&e._log("INFO",t)},debug:function(t){e.logLevel>=Re.DEBUG&&e._log("DEBUG",t)}},e}(),Ie=function(t,e){return Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Ie(t,e)};function Ce(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Ie(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Fe=function(){return Fe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Fe.apply(this,arguments)};function Ye(t,s,a,u){return new(a||(a=Promise))(function(n,e){function r(t){try{o(u.next(t))}catch(t){e(t)}}function i(t){try{o(u.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):(e=t.value,e instanceof a?e:new a(function(t){t(e)})).then(r,i)}o((u=u.apply(t,s||[])).next())})}function Le(n,r){var i,o,s,t,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&e[0]?o.return:e[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,o=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(!(s=a.trys,(s=s.length>0&&s[s.length-1])||6!==e[0]&&2!==e[0])){a=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){a.label=e[1];break}if(6===e[0]&&a.label<s[1]){a.label=s[1],s=e;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(e);break}s[2]&&a.ops.pop(),a.trys.pop();continue}e=r.call(n,a)}catch(t){e=[6,t],o=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}}function be(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var Pe=function(){function n(t,e){this.variation=t,this.reason=e}return n.of=function(t,e){return new n(t,e)},n}(),Ue=function(){function e(t,e){this.isOn=t,this.reason=e}return e.on=function(t){return new e(!0,t)},e.off=function(t){return new e(!1,t)},e}(),Ve=function(){function t(){}return t.SDK_NOT_READY="SDK_NOT_READY",t.EXCEPTION="EXCEPTION",t.INVALID_INPUT="INVALID_INPUT",t.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",t.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",t.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",t.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",t.OVERRIDDEN="OVERRIDDEN",t.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",t.VARIATION_DROPPED="VARIATION_DROPPED",t.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",t.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",t.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",t.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",t.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",t.TARGET_RULE_MATCH="TARGET_RULE_MATCH",t.DEFAULT_RULE="DEFAULT_RULE",t}(),ke=function(){function t(t,e,n,r,i){this.id=t,this.key=e,this.type=n,this.variations=r,this.overrides=i}return t.prototype._getVariationByIdOrNull=function(e){return this.variations.find(function(t){return t.id===e})},t.prototype._getVariationByKeyOrNull=function(e){return this.variations.find(function(t){return t.key===e})},t.prototype._getOverriddenVariation=function(t){var e=this.overrides.get(t.id);return e?this._getVariationByIdOrNull(e):void 0},t.Draft=function(o){function t(t,e,n,r,i){return o.call(this,t,e,n,r,i)||this}return Ce(t,o),t}(t),t.Running=function(f){function t(t,e,n,r,i,o,s,a){var u=f.call(this,t,e,n,r,i)||this;return u.targetAudiences=o,u.targetRules=s,u.defaultRule=a,u}return Ce(t,f),t}(t),t.Paused=function(o){function t(t,e,n,r,i){return o.call(this,t,e,n,r,i)||this}return Ce(t,o),t}(t),t.Completed=function(a){function t(t,e,n,r,i,o){var s=a.call(this,t,e,n,r,i)||this;return s._winnerVariationId=o,s}return Ce(t,a),t.prototype.winnerVariation=function(){var e=this;return this.variations.find(function(t){return t.id===e._winnerVariationId})},t}(t),t}(),xe=function(t,e,n){this.id=t,this.key=e,this.isDropped=n},He=function(t,e,n){this.seed=t,this.slotSize=e,this.slots=n},We=function(){function t(t,e,n){this.startInclusive=t,this.endExclusive=e,this.variationId=n}return t.prototype.contains=function(t){return this.startInclusive<=t&&t<this.endExclusive},t}(),Be=function(t,e){this.id=t,this.key=e},qe=function(t){this.conditions=t},je=function(t,e){this.key=t,this.match=e},ze=function(t,e){this.type=t,this.name=e},Ze=function(t,e,n,r){this.type=t,this.operator=e,this.valueType=n,this.values=r},Ke=function(t,e,n){this.type=t,this.variationId=e,this.bucketId=n},Ge=function(t,e){this.target=t,this.action=e};function Xe(t,e){return t-e}var $e=function(){function c(t,e,n){this.coreVersion=t,this.prerelease=e,this.build=n}return c.tryParse=function(t){var e=c.regExp.exec(t);if(e){var n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}(e,6);n[0];var r=n[1],i=n[2],o=void 0===i?"0":i,s=n[3],a=void 0===s?"0":s,u=n[4],f=n[5];return new c(new Je(parseInt(r,10),parseInt(o,10),parseInt(a,10)),Qe.parse(u),Qe.parse(f))}},c.prototype.compareTo=function(t){return this.coreVersion.compareTo(t.coreVersion)||this.prerelease.compareTo(t.prerelease)},c.prototype.isEqualTo=function(t){return 0===this.compareTo(t)},c.prototype.isGreaterThan=function(t){return this.compareTo(t)>0},c.prototype.isGreaterThanOrEqualTo=function(t){return this.compareTo(t)>=0},c.prototype.isLessThan=function(t){return this.compareTo(t)<0},c.prototype.isLessThanOrEqualTo=function(t){return this.compareTo(t)<=0},c.regExp=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,c}(),Je=function(){function t(t,e,n){this.major=t,this.minor=e,this.patch=n}return t.prototype.compareTo=function(t){return Xe(this.major,t.major)||Xe(this.minor,t.minor)||Xe(this.patch,t.patch)},t}(),Qe=function(){function i(t){this.identifiers=t}return i.parse=function(t){return t?new i(t.split(".")):i.EMPTY},i.prototype.isEmpty=function(){return 0===this.identifiers.length},i.prototype.isNotEmpty=function(){return!this.isEmpty()},i.prototype.compareTo=function(t){return this.isEmpty()&&t.isEmpty()?0:this.isEmpty()&&t.isNotEmpty()?1:this.isNotEmpty()&&t.isEmpty()?-1:this.compareIdentifiers(t)},i.prototype.compareIdentifiers=function(t){for(var e=Math.min(this.identifiers.length,t.identifiers.length),n=0;n<e;n++){var r=i.compareIdentifiers(this.identifiers[n],t.identifiers[n]);if(0!==r)return r}return Xe(this.identifiers.length,t.identifiers.length)},i.compareIdentifiers=function(t,e){return i.numericIdentifierRegExp.test(t)&&i.numericIdentifierRegExp.test(e)?Xe(+t,+e):t===e?0:t<e?-1:1},i.EMPTY=new i([]),i.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,i}(),tn=["MATCH","NOT_MATCH"],en=["STRING","NUMBER","BOOLEAN","VERSION"],nn=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],rn=["VARIATION","BUCKET"],on=["HACKLE_PROPERTY","USER_PROPERTY"],sn=function(){function t(){}return t.validate=function(t){if(t){if("object"!=typeof t)return!1;for(var e in t)if(!this.validProperty(e,t[e]))return!1}return!0},t.filteredProperties=function(r){var i=this;return Object.keys(r).filter(function(t){return i.validProperty(t,r[t])}).reduce(function(t,e){var n;return Fe(Fe({},t),((n={})[e]=i.filteredPropertiesValue(r[e]),n))},{})},t.filteredPropertiesValue=function(t){return"string"==typeof t&&t.length>1024?t.slice(0,1024):t},t.validProperty=function(t,e){return!!t&&("string"==typeof t&&(!(t.length>128)&&("string"==typeof e||("boolean"==typeof e||"number"==typeof e&&(!isNaN(e)&&isFinite(e))))))},t}(),an=function(){function t(t,e,n){this.timestamp=t,this.user=e,this.hackleProperties=n}return t.exposure=function(t,e,n,r){return void 0===r&&(r={}),new un((new Date).getTime(),e,t,n.variationId,n.variationKey,n.reason,r)},t.track=function(t,e,n,r){return void 0===r&&(r={}),new fn((new Date).getTime(),n,t,e,r)},t.isExposure=function(t){return void 0!==t.experiment},t.isTrack=function(t){return void 0!==t.eventType},t}(),un=function(u){function t(t,e,n,r,i,o,s){var a=u.call(this,t,e,s)||this;return a.experiment=n,a.variationId=r,a.variationKey=i,a.decisionReason=o,a}return Ce(t,u),t.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.id,userProperties:sn.filteredProperties(this.user.properties||{}),experimentId:this.experiment.id,experimentKey:this.experiment.key,experimentType:this.experiment.type,variationId:this.variationId,variationKey:this.variationKey,decisionReason:this.decisionReason.toString(),hackleProperties:sn.filteredProperties(this.hackleProperties||{})}},t}(an),fn=function(s){function t(t,e,n,r,i){var o=s.call(this,t,e,i)||this;return o.eventType=n,o.event=r,o}return Ce(t,s),t.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.id,userProperties:sn.filteredProperties(this.user.properties||{}),eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:sn.filteredProperties(this.event.properties||{}),hackleProperties:sn.filteredProperties(this.hackleProperties||{})}},t}(an),cn=function(){function i(t,e,n){this.variationId=t,this.variationKey=e,this.reason=n}return i.withVariation=function(t,e){return new i(t.id,t.key,e)},i.withKey=function(t,e){return new i(void 0,t,e)},i.of=function(t,e,n){var r=t._getVariationByKeyOrNull(e);return r?i.withVariation(r,n):i.withKey(e,n)},i}(),hn=function(){function t(t){this.evaluationFlowFactory=t}return t.prototype.evaluate=function(t,e,n,r,i){return this.evaluationFlowFactory.getFlow(e.type).evaluate(t,e,n,r,i)},t}(),ln=function(){function t(t){this.conditionMatcherFactory=t}return t.prototype.matches=function(t,e,n,r){var i=this;return t.conditions.every(function(t){return i._matches(t,e,n,r)})},t.prototype._matches=function(t,e,n,r){return this.conditionMatcherFactory.getMatcher(t.key.type).matches(t,e,n,r)},t}(),_n=function(){function t(t,e){this.valueMatcherFactory=t,this.operatorMatcherFactory=e}return t.prototype.matches=function(e,t){var n=this.valueMatcherFactory.getMatcher(t.valueType),r=this.operatorMatcherFactory.getMatcher(t.operator),i=t.values.some(function(t){return n.matches(r,e,t)});return this._matches(t.type,i)},t.prototype._matches=function(t,e){switch(t){case"MATCH":return e;case"NOT_MATCH":return!e}},t}(),dn=function(){function t(){}return t.prototype.booleanMatches=function(t,e){return t===e},t.prototype.numberMatches=function(t,e){return t===e},t.prototype.stringMatches=function(t,e){return t===e},t.prototype.versionMatches=function(t,e){return t.isEqualTo(e)},t}(),pn=function(){function t(){}return t.prototype.booleanMatches=function(t,e){return!1},t.prototype.numberMatches=function(t,e){return!1},t.prototype.stringMatches=function(t,e){return t.includes(e)},t.prototype.versionMatches=function(t,e){return!1},t}(),mn=function(){function t(){}return t.prototype.booleanMatches=function(t,e){return!1},t.prototype.numberMatches=function(t,e){return!1},t.prototype.stringMatches=function(t,e){return t.startsWith(e)},t.prototype.versionMatches=function(t,e){return!1},t}(),En=function(){function t(){}return t.prototype.booleanMatches=function(t,e){return!1},t.prototype.numberMatches=function(t,e){return!1},t.prototype.stringMatches=function(t,e){return t.endsWith(e)},t.prototype.versionMatches=function(t,e){return!1},t}(),On=function(){function t(){}return t.prototype.booleanMatches=function(t,e){return!1},t.prototype.numberMatches=function(t,e){return t>e},t.prototype.stringMatches=function(t,e){return!1},t.prototype.versionMatches=function(t,e){return t.isGreaterThan(e)},t}(),Sn=function(){function t(){}return t.prototype.booleanMatches=function(t,e){return!1},t.prototype.numberMatches=function(t,e){return t>=e},t.prototype.stringMatches=function(t,e){return!1},t.prototype.versionMatches=function(t,e){return t.isGreaterThanOrEqualTo(e)},t}(),yn=function(){function t(){}return t.prototype.booleanMatches=function(t,e){return!1},t.prototype.numberMatches=function(t,e){return t<e},t.prototype.stringMatches=function(t,e){return!1},t.prototype.versionMatches=function(t,e){return t.isLessThan(e)},t}(),vn=function(){function t(){}return t.prototype.booleanMatches=function(t,e){return!1},t.prototype.numberMatches=function(t,e){return t<=e},t.prototype.stringMatches=function(t,e){return!1},t.prototype.versionMatches=function(t,e){return t.isLessThanOrEqualTo(e)},t}(),Nn=function(){function e(){}return e.prototype.getMatcher=function(t){switch(t){case"IN":return e.IN_MATCHER;case"CONTAINS":return e.CONTAINS_MATCHER;case"STARTS_WITH":return e.STARTS_WITH_MATCHER;case"ENDS_WITH":return e.ENDS_WITH_MATCHER;case"GT":return e.GT_MATCHER;case"GTE":return e.GTE_MATCHER;case"LT":return e.LT_MATCHER;case"LTE":return e.LTE_MATCHER}},e.IN_MATCHER=new dn,e.CONTAINS_MATCHER=new pn,e.STARTS_WITH_MATCHER=new mn,e.ENDS_WITH_MATCHER=new En,e.GT_MATCHER=new On,e.GTE_MATCHER=new Sn,e.LT_MATCHER=new yn,e.LTE_MATCHER=new vn,e}(),An=function(){function t(){}return t.prototype.matches=function(t,e,n){return"string"==typeof e&&"string"==typeof n&&t.stringMatches(e,n)},t}(),Tn=function(){function t(){}return t.prototype.matches=function(t,e,n){return"number"==typeof e&&"number"==typeof n&&t.numberMatches(e,n)},t}(),Dn=function(){function t(){}return t.prototype.matches=function(t,e,n){return"boolean"==typeof e&&"boolean"==typeof n&&t.booleanMatches(e,n)},t}(),wn=function(){function t(){}return t.prototype.matches=function(t,e,n){var r=$e.tryParse(e),i=$e.tryParse(n);return!(!r||!i)&&t.versionMatches(r,i)},t}(),gn=function(){function e(){}return e.prototype.getMatcher=function(t){switch(t){case"STRING":return e.STRING_MATCHER;case"NUMBER":return e.NUMBER_MATCHER;case"BOOLEAN":return e.BOOLEAN_MATCHER;case"VERSION":return e.VERSION_MATCHER}},e.STRING_MATCHER=new An,e.NUMBER_MATCHER=new Tn,e.BOOLEAN_MATCHER=new Dn,e.VERSION_MATCHER=new wn,e}(),Rn=function(){function t(t){this.valueOperatorMatcher=t}return t.prototype.matches=function(t,e,n,r){var i=this._resolveProperty(n,r,t.key);return!!i&&this.valueOperatorMatcher.matches(i,t.match)},t.prototype._resolveProperty=function(t,e,n){switch(n.type){case"HACKLE_PROPERTY":return e[n.name];case"USER_PROPERTY":return t.properties&&t.properties[n.name]}},t}(),Mn=function(){function e(){}return e.prototype.getMatcher=function(t){switch(t){case"USER_PROPERTY":case"HACKLE_PROPERTY":return e.PROPERTY_CONDITION_MATCHER}},e.PROPERTY_CONDITION_MATCHER=new Rn(new _n(new gn,new Nn)),e}(),In=function(){function t(t){this.bucketer=t}return t.prototype.resolveOrNull=function(t,e,n,r){switch(t.type){case"VARIATION":return this._resolveVariation(t,n);case"BUCKET":return this._resolveBucket(t,e,n,r)}},t.prototype._resolveVariation=function(t,e){return e._getVariationByIdOrNull(t.variationId)},t.prototype._resolveBucket=function(t,e,n,r){var i=e.getBucketOrNull(t.bucketId),o=this.bucketer.bucketing(i,r);if(o)return n._getVariationByIdOrNull(o.variationId)},t}(),Cn={murmurhash3_x86_32:function(t,e,n,r){void 0===r&&(r=t.length);for(var i,o=3432918353,s=461845907,a=-4&r,u=e,f=0;f<a;f+=4)i=255&t.charCodeAt(f)|(255&t.charCodeAt(f+1))<<8|(255&t.charCodeAt(f+2))<<16|(255&t.charCodeAt(f+3))<<24,i=(131071&(i=this.mul32(i,o)))<<15|i>>>17,u=5*(u=(524287&(u^=i=this.mul32(i,s)))<<13|u>>>19)+3864292196|0;switch(i=0,r%4){case 3:i=(255&t.charCodeAt(a+2))<<16;case 2:i|=(255&t.charCodeAt(a+1))<<8;case 1:i|=255&t.charCodeAt(a),i=(131071&(i=this.mul32(i,o)))<<15|i>>>17,u^=i=this.mul32(i,s)}return u^=r,u^=u>>>16,u=this.mul32(u,2246822507),u^=u>>>13,u=this.mul32(u,3266489909),u^=u>>>16},mul32:function(t,e){var n=65535&e;return((e-n)*t|0)+(n*t|0)|0}},Fn=function(){function t(){}return t.prototype.bucketing=function(t,e){var n=this.calculateSlotNumber(t.seed,t.slotSize,e.id);return t.slots.find(function(t){return t.contains(n)})},t.prototype.calculateSlotNumber=function(t,e,n){var r=Cn.murmurhash3_x86_32(n,t);return Math.abs(r)%Math.abs(e)},t}(),Yn=function(){function u(t,e){void 0===t&&(t=void 0),void 0===e&&(e=void 0),this.flowEvaluator=t,this.nextFlow=e}return u.prototype.evaluate=function(t,e,n,r,i){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(t,e,n,r,i,this.nextFlow):cn.of(e,i,Ve.TRAFFIC_NOT_ALLOCATED)},u.of=function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=new u;try{for(var o=be(n.reverse()),s=o.next();!s.done;s=o.next()){var a=s.value;i=new u(a,i)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i},u}(),Ln=function(){function t(){}return t.prototype.evaluate=function(t,e,n,r,i,o){var s=e._getOverriddenVariation(n);if(!s)return o.evaluate(t,e,n,r,i);switch(e.type){case"AB_TEST":return cn.withVariation(s,Ve.OVERRIDDEN);case"FEATURE_FLAG":return cn.withVariation(s,Ve.INDIVIDUAL_TARGET_MATCH)}},t}(),bn=function(){function t(){}return t.prototype.evaluate=function(t,e,n,r,i,o){return e instanceof ke.Draft?cn.of(e,i,Ve.EXPERIMENT_DRAFT):o.evaluate(t,e,n,r,i)},t}(),Pn=function(){function t(){}return t.prototype.evaluate=function(t,e,n,r,i,o){if(!(e instanceof ke.Paused))return o.evaluate(t,e,n,r,i);switch(e.type){case"AB_TEST":return cn.of(e,i,Ve.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return cn.of(e,i,Ve.FEATURE_FLAG_INACTIVE)}},t}(),Un=function(){function t(){}return t.prototype.evaluate=function(t,e,n,r,i,o){return e instanceof ke.Completed?cn.withVariation(e.winnerVariation(),Ve.EXPERIMENT_COMPLETED):o.evaluate(t,e,n,r,i)},t}(),Vn=function(){function t(t){this.experimentTargetDeterminer=t}return t.prototype.evaluate=function(t,e,n,r,i,o){if(!(e instanceof ke.Running))throw new Error("experiment must be running [".concat(e.id,"]"));if("AB_TEST"!==e.type)throw new Error("experiment type bust be AB_TEST [".concat(e.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(t,e,n,r)?o.evaluate(t,e,n,r,i):cn.of(e,i,Ve.NOT_IN_EXPERIMENT_TARGET)},t}(),kn=function(){function t(t){this.actionResolver=t}return t.prototype.evaluate=function(t,e,n,r,i,o){if(!(e instanceof ke.Running))throw new Error("experiment must be running [".concat(e.id,"]"));if("AB_TEST"!==e.type)throw new Error("experiment type bust be AB_TEST [".concat(e.id,"]"));var s=this.actionResolver.resolveOrNull(e.defaultRule,t,e,n);return s?s.isDropped?cn.of(e,i,Ve.VARIATION_DROPPED):cn.withVariation(s,Ve.TRAFFIC_ALLOCATED):cn.of(e,i,Ve.TRAFFIC_NOT_ALLOCATED)},t}(),xn=function(){function t(t,e){this.targetRuleDeterminer=t,this.actionResolver=e}return t.prototype.evaluate=function(t,e,n,r,i,o){if(!(e instanceof ke.Running))throw new Error("experiment must be running [".concat(e.id,"]"));if("FEATURE_FLAG"!==e.type)throw new Error("experiment type bust be FEATURE_FLAG [".concat(e.id,"]"));var s=this.targetRuleDeterminer.determineTargetRuleOrNull(t,e,n,r);if(!s)return o.evaluate(t,e,n,r,i);var a=this.actionResolver.resolveOrNull(s.action,t,e,n);if(!a)throw new Error("FeatureFlag must decide the Variation [".concat(e.id,"]"));return cn.withVariation(a,Ve.TARGET_RULE_MATCH)},t}(),Hn=function(){function t(t){this.actionResolver=t}return t.prototype.evaluate=function(t,e,n,r,i,o){if(!(e instanceof ke.Running))throw new Error("experiment must be running [".concat(e.id,"]"));if("FEATURE_FLAG"!==e.type)throw new Error("experiment type bust be FEATURE_FLAG [".concat(e.id,"]"));var s=this.actionResolver.resolveOrNull(e.defaultRule,t,e,n);if(!s)throw new Error("FeatureFlag must decide the Variation [".concat(e.id,"]"));return cn.withVariation(s,Ve.DEFAULT_RULE)},t}(),Wn=function(){function t(t){this.targetMatcher=t}return t.prototype.isUserInExperimentTarget=function(e,t,n,r){var i=this;if(!(t instanceof ke.Running))throw new Error("experiment must be running [".concat(t.id,"]"));return 0===t.targetAudiences.length||t.targetAudiences.some(function(t){return i.targetMatcher.matches(t,e,n,r)})},t}(),Bn=function(){function t(t){this.targetMatcher=t}return t.prototype.determineTargetRuleOrNull=function(e,t,n,r){var i=this;if(!(t instanceof ke.Running))throw new Error("experiment must be running [".concat(t.id,"]"));return t.targetRules.find(function(t){return i.targetMatcher.matches(t.target,e,n,r)})},t}(),qn=function(){function t(){var t=new ln(new Mn),e=new In(new Fn);this.abTestFlow=Yn.of(new Ln,new bn,new Pn,new Un,new Vn(new Wn(t)),new kn(e)),this.featureFlagFlow=Yn.of(new bn,new Pn,new Un,new Ln,new xn(new Bn(t),e),new Hn(e))}return t.prototype.getFlow=function(t){switch(t){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},t}(),jn=Me.log,zn=function(){function t(t,e,n){this.evaluator=new hn(new qn),this.workspaceFetcher=t,this.eventProcessor=e,this.eventEmitter=n,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(){return{success:!1}})}return t.prototype._experiment=function(t,e,n,r){if(!t)return jn.error("experimentKey must not be empty"),Pe.of(r,Ve.INVALID_INPUT);if(!e)return jn.error("user must not be null."),Pe.of(r,Ve.INVALID_INPUT);if(!e.id||"string"!=typeof e.id)return jn.error("user.id must not be null and must be string type"),Pe.of(r,Ve.INVALID_INPUT);var i=this.workspaceFetcher.get();if(!i)return jn.warn("SDK not ready."),Pe.of(r,Ve.SDK_NOT_READY);var o=i.getExperimentOrNull(t);if(!o)return jn.warn("Experiment does not exist."),Pe.of(r,Ve.EXPERIMENT_NOT_FOUND);var s=this.evaluator.evaluate(i,o,e,n,r);return this.eventProcessor.process(an.exposure(o,e,s,n)),Pe.of(s.variationKey,s.reason)},t.prototype._featureFlag=function(t,e,n){if(!t)return jn.error("featureKey must not be empty"),Ue.off(Ve.INVALID_INPUT);if(!e)return jn.error("user must not be null."),Ue.off(Ve.INVALID_INPUT);if(!e.id||"string"!=typeof e.id)return jn.error("user.id must not be null and must be string type"),Ue.off(Ve.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return jn.warn("SDK not ready."),Ue.off(Ve.SDK_NOT_READY);var i=r.getFeatureFlagOrNull(t);if(!i)return jn.warn("FeatureFlag does not exist."),Ue.off(Ve.FEATURE_FLAG_NOT_FOUND);var o=this.evaluator.evaluate(r,i,e,n,"A");return this.eventProcessor.process(an.exposure(i,e,o,n)),"A"===o.variationKey?Ue.off(o.reason):Ue.on(o.reason)},t.prototype._track=function(t,e,n){if(t)if("object"==typeof t)if("object"!=typeof t||t.key&&"string"==typeof t.key)if(e)if(e.id&&"string"==typeof e.id){var r=this.workspaceFetcher.get();if(r){var i=r.getEventTypeOrNull(t.key);this.eventProcessor.process(an.track(i,t,e,n))}else jn.warn("SDK not ready")}else jn.error("Id must not be null. or Id must be string type");else jn.error("User must not be null.");else jn.warn("Event key must be not null. or event key must be string type.");else jn.warn("Event must be event type.");else jn.warn("event must not be null.")},t.prototype._onReady=function(e,t){var n;void 0===t&&(t=3e3),jn.debug("Start HackleClient onReady");var r=new Promise(function(t){n=t}),i=setTimeout(function(){n({success:!1})},t);this.readyPromise.then(function(){clearTimeout(i),n({success:!0})}),Promise.race([this.readyPromise,r]).then(function(t){jn.debug("HackleClient onReady"),e()})},t.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},t}(),Zn=function(){function t(t){var e=t.timeout,n=t.callback;this.timeout=Math.max(e,0),this.callback=n}return t.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},t.prototype.refresh=function(){this.stop(),this.start()},t.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t}(),Kn=function(){function t(t,e,n,r){void 0===n&&(n=1e3),void 0===r&&(r=1e4),this.buffer=[],this.sink=t,this.maxQueueSize=n,this.batchComparator=e,this.timer=new Zn({callback:this.flush.bind(this),timeout:r}),this.started=!1}return t.prototype.start=function(){this.started=!0},t.prototype.stop=function(){this.started=!1;var t=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),t},t.prototype.enqueue=function(t){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(t),this.buffer.length>=this.maxQueueSize&&this.flush())},t.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},t.prototype.close=function(){this.stop()},t}(),Gn=function(){function r(t,e,n){void 0===e&&(e=1e3),void 0===n&&(n=r.DEFAULT_FLUSH_INTERVAL),this.flushInterval=r.DEFAULT_FLUSH_INTERVAL,this.eventDispatcher=t,this.flushInterval=n,this.queue=new Kn(this.drainQueue.bind(this),Xn,e,n.toMillis())}return r.prototype.drainQueue=function(e,n){var r=this;return new Promise(function(t){0!==e.length?n?r.eventDispatcher.dispatchXhrOrBeacon(e,function(){t()}):r.eventDispatcher.dispatch(e,function(){t()}):t()})},r.prototype.process=function(t){this.queue.enqueue(t)},r.prototype.start=function(){return Ye(this,void 0,void 0,function(){return Le(this,function(t){return this.queue.start(),[2]})})},r.prototype.stop=function(){try{this.queue.close()}catch(t){}return Promise.resolve()},r.prototype.close=function(){this.stop()},r.DEFAULT_FLUSH_INTERVAL=y.ofSeconds(10),r}();function Xn(t,e){return t.timestamp==e.timestamp&&t.user.id==e.user.id&&t.user.properties==e.user.properties}var $n=Me.log,Jn=function(){function u(t,e,n,r){this.experiments=t,this.featureFlags=e,this.buckets=n,this.eventTypes=r}return u.prototype.getExperimentOrNull=function(t){return this.experiments.get(t)},u.prototype.getFeatureFlagOrNull=function(t){return this.featureFlags.get(t)},u.prototype.getBucketOrNull=function(t){return this.buckets.get(t)},u.prototype.getEventTypeOrNull=function(t){var e=this.eventTypes.get(t);return e||new Be(0,t)},u.from=function(t){var e=this,n=u.associate(t.buckets,function(t){return[t.id,e.toBucket(t)]}),r=u.associateBy(u.mapNotUndefined(t.experiments,function(t){return e.toExperimentOrNull("AB_TEST",t)}),function(t){return t.key}),i=u.associateBy(u.mapNotUndefined(t.featureFlags,function(t){return e.toExperimentOrNull("FEATURE_FLAG",t)}),function(t){return t.key}),o=u.associate(t.events,function(t){return[t.key,new Be(t.id,t.key)]});return new u(r,i,n,o)},u.toBucket=function(t){return new He(t.seed,t.slotSize,t.slots.map(function(t){var e=t.startInclusive,n=t.endExclusive,r=t.variationId;return new We(e,n,r)}))},u.toExperimentOrNull=function(t,e){var n=this,r=e.variations.map(function(t){return new xe(t.id,t.key,"DROPPED"===t.status)}),i=u.associate(e.execution.userOverrides,function(t){return[t.userId,t.variationId]});switch(e.execution.status){case"READY":return new ke.Draft(e.id,e.key,t,r,i);case"RUNNING":var o=u.mapNotUndefined(e.execution.targetAudiences,function(t){return n.toTargetOrNull(t)}),s=u.mapNotUndefined(e.execution.targetRules,function(t){return n.toTargetRuleOrNull(t)}),a=this.toTargetActionOrNull(e.execution.defaultRule);return a&&new ke.Running(e.id,e.key,t,r,i,o,s,a);case"PAUSED":return new ke.Paused(e.id,e.key,t,r,i);case"STOPPED":return new ke.Completed(e.id,e.key,t,r,i,e.winnerVariationId);default:return}},u.toTargetRuleOrNull=function(t){var e=this.toTargetOrNull(t.target),n=this.toTargetActionOrNull(t.action);return e&&n&&new Ge(e,n)},u.toTargetActionOrNull=function(t){var e=this.parseOrNull(rn,t.type);return e&&new Ke(e,t.variationId,t.bucketId)},u.toTargetOrNull=function(t){var e=this,n=u.mapNotUndefined(t.conditions,function(t){return e.toConditionOrNull(t)});return new qe(n)},u.toConditionOrNull=function(t){var e=this.toTargetKeyOrNull(t.key),n=this.toTargetMatchOrNull(t.match);return e&&n&&new je(e,n)},u.toTargetKeyOrNull=function(t){var e=this.parseOrNull(on,t.type);return e&&new ze(e,t.name)},u.toTargetMatchOrNull=function(t){var e=this.parseOrNull(tn,t.type),n=this.parseOrNull(nn,t.operator),r=this.parseOrNull(en,t.valueType);return e&&n&&r&&new Ze(e,n,r,t.values)},u.parseOrNull=function(t,e){var n=t.find(function(t){return t===e});return n||$n.debug("Unsupported type [".concat(e,"]. Please use the latest version of sdk.")),n},u.mapNotUndefined=function(t,r){return t.reduce(function(t,e){var n=r(e);return n&&t.push(n),t},Array())},u.associateTo=function(t,e,r){return t.reduce(function(t,e){var n=r(e);return t.set(n[0],n[1]),t},e)},u.associate=function(t,e){return u.associateTo(t,new Map,e)},u.associateBy=function(t,e){return this.associateTo(t,new Map,function(t){return[e(t),t]})},u}();t.Bucket=He,t.CoreVersion=Je,t.DEFAULT_ON_READY_TIMEOUT=3e3,t.Decision=Pe,t.DecisionReason=Ve,t.DefaultEventQueue=Kn,t.Duration=y,t.Event=an,t.EventProcessor=Gn,t.EventType=Be,t.Experiment=ke,t.Exposure=un,t.FeatureFlagDecision=Ue,t.HackleInternalClient=zn,t.Logger=Me,t.MATCH_OPERATORS=nn,t.MATCH_TYPES=tn,t.MATCH_VALUE_TYPES=en,t.MetaVersion=Qe,t.Slot=We,t.TARGET_ACTION_TYPES=rn,t.TARGET_KEY_TYPES=on,t.Target=qe,t.TargetAction=Ke,t.TargetCondition=je,t.TargetKey=ze,t.TargetMatch=Ze,t.TargetRule=Ge,t.Track=fn,t.Variation=xe,t.Version=$e,t.Workspace=Jn,t.logLevels=Re,t.toPayload=function(t){var e=new Array,n=new Array;return t.forEach(function(t){an.isExposure(t)?e.push(t.toDto()):an.isTrack(t)&&n.push(t.toDto())}),{exposureEvents:e,trackEvents:n}},Object.defineProperty(t,"__esModule",{value:!0})}(rt.exports);var it=rt.exports.Logger.log;function ot(t,e){void 0===e&&(e="A");var n=h.exports.useContext(et),r=n.hackle,i=n.user,o=h.exports.useCallback(function(){return(null==r?void 0:r.variation(t,i))||e},[e,t,i,r]),s=c(h.exports.useState(function(){return r?o():("undefined"!=typeof window&&it.error("HackleClient is not existed"),e)}),2),a=s[0],u=s[1],f={key:t,user:i},n=c(h.exports.useState(f),2),s=n[0],n=n[1];return st(s,f)||(n(f),u(o())),a}function st(t,e){var n,r,i;return t.key===e.key&&(null===(n=t.user)||void 0===n?void 0:n.id)===(null===(n=e.user)||void 0===n?void 0:n.id)&&(t=null===(t=t.user)||void 0===t?void 0:t.properties,e=null===(e=e.user)||void 0===e?void 0:e.properties,r=at(t),i=at(e),t=Object.keys(r),e=Object.keys(i),t.length===e.length&&t.every(function(t){return t in i&&r[t]===i[t]}))}function at(t){return"object"==typeof t&&null!==t?t:{}}function ut(t){var e,n=t.experimentKey,t=t.children,r=ot(n);return t&&"function"==typeof t?t(r):(h.exports.Children.forEach(t,function(t){h.exports.isValidElement(t)&&(t.props.variation?r===t.props.variation&&(e=t):t.props.default&&(e=t))}),e?h.exports.cloneElement(e,{variation:r}):null)}function ft(t){return t.variation,t=t.children,h.exports.createElement(h.exports.Fragment,null,t)}e.HackleContext=et,e.HackleContextConsumer=s,e.HackleContextProvider=nt,e.HackleExperiment=ut,e.HackleProvider=function(t){var e=t.hackleClient,n=t.user,r=t.timeout,i=void 0===r?3e3:r,o=t.children,s={hackle:e,user:n},t=(r=c(h.exports.useState(!1),2))[0],a=r[1],s=(r=c(h.exports.useState(s),2))[0],u=r[1];return h.exports.useEffect(function(){u(function(t){return f(f({},t),{user:n})})},[n]),e.onReady(function(){return a(!0)},i),t?tt.createElement(nt,{value:s},o):null},e.HackleVariation=ft,e.createInstance=function(t,e){return new i(t,e)},e.useFeature=function(t){var e=(u=h.exports.useContext(et)).hackle,n=u.user,r=h.exports.useCallback(function(){return(null==e?void 0:e.isFeatureOn(t,n))||!1},[t,n,e]),i=(a=c(h.exports.useState(function(){return e?r():("undefined"!=typeof window&&it.error("HackleClient is not existed"),!1)}),2))[0],o=a[1],s={key:t,user:n},a=(u=c(h.exports.useState(s),2))[0],u=u[1];return st(a,s)||(u(s),o(r())),i},e.useFeatureFlagDetail=function(t){var e=(u=h.exports.useContext(et)).hackle,n=u.user,r=h.exports.useCallback(function(){return(null==e?void 0:e.featureFlagDetail(t,n))||rt.exports.FeatureFlagDecision.off(rt.exports.DecisionReason.EXCEPTION)},[t,n,e]),i=(a=c(h.exports.useState(function(){return e?r():("undefined"!=typeof window&&it.error("HackleClient is not existed"),rt.exports.FeatureFlagDecision.off(rt.exports.DecisionReason.EXCEPTION))}),2))[0],o=a[1],s={key:t,user:n},a=(u=c(h.exports.useState(s),2))[0],u=u[1];return st(a,s)||(u(s),o(r())),i},e.useTrack=function(){var t=h.exports.useContext(et),e=t.hackle,n=t.user;return e?function(t){return null==e?void 0:e.track(t,n)}:("undefined"!=typeof window&&it.error("HackleClient is not existed"),function(){})},e.useVariation=ot,e.useVariationDetail=function(t,e){void 0===e&&(e="A");var n=(f=h.exports.useContext(et)).hackle,r=f.user,i=h.exports.useCallback(function(){return(null==n?void 0:n.variationDetail(t,r))||rt.exports.Decision.of(e,rt.exports.DecisionReason.EXCEPTION)},[e,t,r,n]),o=(u=c(h.exports.useState(function(){return n?i():("undefined"!=typeof window&&it.error("HackleClient is not existed"),rt.exports.Decision.of(e,rt.exports.DecisionReason.EXCEPTION))}),2))[0],s=u[1],a={key:t,user:r},u=(f=c(h.exports.useState(a),2))[0],f=f[1];return st(u,a)||(f(a),s(i())),o},Object.keys(n).forEach(function(t){"default"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@hackler/js-client-sdk")):"function"==typeof define&&define.amd?define(["exports","@hackler/js-client-sdk"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={},e.Hackle)}(this,function(t,r){"use strict";function e(r){if(r&&r.__esModule)return r;var n=Object.create(null);return r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),n.default=r,Object.freeze(n)}var n=e(r),c=function(){return(c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function f(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}var o=(i.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},i.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},i.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},i.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},i.prototype.track=function(e,t){this.client.track(e,t)},i.prototype.trackPageView=function(e){this.client.trackPageView(e)},i.prototype.onReady=function(e,t){this.client.onReady(e,t)},i);function i(e,t){this.client=n.createInstance(e,c(c({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"3.0.2"}))}var l={exports:{}},u={},s=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var Ne=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},n)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var r,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in r=Object(arguments[o]))p.call(r,i)&&(n[i]=r[i]);if(s)for(var u=s(r),a=0;a<u.length;a++)y.call(r,u[a])&&(n[u[a]]=r[u[a]])}return n},h=Ne,a="function"==typeof Symbol&&Symbol.for,d=a?Symbol.for("react.element"):60103,m=a?Symbol.for("react.portal"):60106,v=a?Symbol.for("react.fragment"):60107,E=a?Symbol.for("react.strict_mode"):60108,g=a?Symbol.for("react.profiler"):60114,T=a?Symbol.for("react.provider"):60109,b=a?Symbol.for("react.context"):60110,_=a?Symbol.for("react.forward_ref"):60112,R=a?Symbol.for("react.suspense"):60113,w=a?Symbol.for("react.memo"):60115,O=a?Symbol.for("react.lazy"):60116,A="function"==typeof Symbol&&Symbol.iterator;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N={};function I(e,t,r){this.props=e,this.context=t,this.refs=N,this.updater=r||C}function x(){}function P(e,t,r){this.props=e,this.context=t,this.refs=N,this.updater=r||C}I.prototype.isReactComponent={},I.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(k(85));this.updater.enqueueSetState(this,e,t,"setState")},I.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=I.prototype;a=P.prototype=new x;a.constructor=P,h(a,I.prototype),a.isPureReactComponent=!0;var S={current:null},D=Object.prototype.hasOwnProperty,F={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,r){var n,o={},i=null,u=null;if(null!=t)for(n in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)D.call(t,n)&&!F.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(1===a)o.children=r;else if(1<a){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===o[n]&&(o[n]=a[n]);return{$$typeof:d,type:e,key:i,ref:u,props:o,_owner:S.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var L=/\/+/g,U=[];function V(e,t,r,n){if(U.length){var o=U.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function H(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,U.length<10&&U.push(e)}function $(e,t,r){return null==e?0:function e(t,r,n,o){var i=!1;if(null===(t="undefined"==(a=typeof t)||"boolean"===a?null:t))i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case d:case m:i=!0}}if(i)return n(o,t,""===r?"."+B(t,0):r),1;if(i=0,r=""===r?".":r+":",Array.isArray(t))for(var u=0;u<t.length;u++){var a,s=r+B(a=t[u],u);i+=e(a,s,n,o)}else if("function"==typeof(s=null!==t&&"object"==typeof t&&"function"==typeof(s=A&&t[A]||t["@@iterator"])?s:null))for(t=s.call(t),u=0;!(a=t.next()).done;)i+=e(a=a.value,s=r+B(a,u++),n,o);else if("object"===a)throw n=""+t,Error(k(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function B(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function G(e,t){e.func.call(e.context,t,e.count++)}function K(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?q(e,n,r,function(e){return e}):null!=e&&(j(e)&&(r=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(L,"$&/")+"/")+r,e={$$typeof:d,type:o.type,key:r,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function q(e,t,r,n,o){var i="";$(e,K,t=V(t,i=null!=r?(""+r).replace(L,"$&/")+"/":i,n,o)),H(t)}var Y={current:null};function W(){var e=Y.current;if(null===e)throw Error(k(321));return e}a={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:h};u.Children={map:function(e,t,r){if(null==e)return e;var n=[];return q(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;$(e,G,t=V(null,null,t,r)),H(t)},count:function(e){return $(e,function(){return null},null)},toArray:function(e){var t=[];return q(e,t,null,function(e){return e}),t},only:function(e){if(!j(e))throw Error(k(143));return e}},u.Component=I,u.Fragment=v,u.Profiler=g,u.PureComponent=P,u.StrictMode=E,u.Suspense=R,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=a,u.cloneElement=function(e,t,r){if(null==e)throw Error(k(267,e));var n=h({},e.props),o=e.key,i=e.ref,u=e._owner;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref,u=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)D.call(t,a)&&!F.hasOwnProperty(a)&&(n[a]=(void 0===t[a]&&void 0!==s?s:t)[a]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:d,type:e.type,key:o,ref:i,props:n,_owner:u}},u.createContext=function(e,t){return(e={$$typeof:b,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:T,_context:e},e.Consumer=e},u.createElement=M,u.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:_,render:e}},u.isValidElement=j,u.lazy=function(e){return{$$typeof:O,_ctor:e,_status:-1,_result:null}},u.memo=function(e,t){return{$$typeof:w,type:e,compare:void 0===t?null:t}},u.useCallback=function(e,t){return W().useCallback(e,t)},u.useContext=function(e,t){return W().useContext(e,t)},u.useDebugValue=function(){},u.useEffect=function(e,t){return W().useEffect(e,t)},u.useImperativeHandle=function(e,t,r){return W().useImperativeHandle(e,t,r)},u.useLayoutEffect=function(e,t){return W().useLayoutEffect(e,t)},u.useMemo=function(e,t){return W().useMemo(e,t)},u.useReducer=function(e,t,r){return W().useReducer(e,t,r)},u.useRef=function(e){return W().useRef(e)},u.useState=function(e){return W().useState(e)},u.version="16.14.0";var z,X,Z,Ie={},Q=function(){};function J(e,t,r,n,o){if("production"!==production)for(var i in e)if(Z(e,i)){var u;try{if("function"!=typeof e[i]){var a=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.");throw a.name="Invariant Violation",a}u=e[i](t,i,n,r,null,z)}catch(e){u=e}!u||u instanceof Error||Q((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in X)&&(X[u.message]=!0,i=o?o():"",Q("Failed "+r+" type: "+u.message+(null!=i?i:"")))}}"production"!==production&&(z="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",X={},Z=Function.call.bind(Object.prototype.hasOwnProperty),Q=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),J.resetWarningCache=function(){"production"!==production&&(X={})};var xe=J;"production"!==production&&function(){var h=Ne,o=xe,e="function"==typeof Symbol&&Symbol.for,d=e?Symbol.for("react.element"):60103,m=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,t=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,l=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,r=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119,T="function"==typeof Symbol&&Symbol.iterator,b="@@iterator";function _(e){if(null===e||"object"!=typeof e)return null;e=T&&e[T]||e[b];return"function"==typeof e?e:null}var R={current:null},w={current:null},O=/^(.*)[\\\/]/;var A=1;function k(e){if(null==e)return null;if("number"==typeof e.tag&&S("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case m:return"Portal";case i:return"Profiler";case n:return"StrictMode";case f:return"Suspense";case l:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return"Context.Consumer";case u:return"Context.Provider";case c:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case p:return k(e.type);case v:return k(e.render);case y:r=(r=e)._status===A?r._result:null;if(r)return k(r)}var t,r;return null}var C={},N=null;function I(e){N=e}C.getCurrentStack=null,C.getStackAddendum=function(){var e,t,r,n,o,i="";N&&(n=k(N.type),o=N._owner,i+=(e=n,t=N._source,r=o&&k(o.type),u="",t?(o=(n=t.fileName).replace(O,""),/^index\./.test(o)&&(!(n=n.match(O))||(n=n[1])&&(o=n.replace(O,"")+"/"+o)),u=" (at "+o+":"+t.lineNumber+")"):r&&(u=" (created by "+r+")"),"\n in "+(e||"Unknown")+u));var u=C.getCurrentStack;return u&&(i+=u()||""),i};var x={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:h};function P(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];D("warn",e,r)}function S(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];D("error",e,r)}function D(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=x.ReactDebugCurrentFrame.getStackAddendum())&&(t+="%s",r=r.concat([n]));var n=r.map(function(e){return""+e});n.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,n);try{var o=0,i="Warning: "+t.replace(/%s/g,function(){return r[o++]});throw new Error(i)}catch(e){}}h(x,{ReactDebugCurrentFrame:C,ReactComponentTreeHook:{}});var F={};function M(e,t){var r=e.constructor,e=r&&(r.displayName||r.name)||"ReactClass",r=e+"."+t;F[r]||(S("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),F[r]=!0)}var j={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){M(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){M(e,"replaceState")},enqueueSetState:function(e,t,r,n){M(e,"setState")}},L={};function U(e,t,r){this.props=e,this.context=t,this.refs=L,this.updater=r||j}Object.freeze(L),U.prototype.isReactComponent={},U.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},U.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var V,H={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(V in H)H.hasOwnProperty(V)&&function(e,t){Object.defineProperty(U.prototype,e,{get:function(){P("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(V,H[V]);function $(){}function B(e,t,r){this.props=e,this.context=t,this.refs=L,this.updater=r||j}$.prototype=U.prototype;e=B.prototype=new $;e.constructor=B,h(e,U.prototype),e.isPureReactComponent=!0;var G,K,q=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0};function W(e){if(q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function z(e){if(q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var X={},Z=function(e,t,r,n,o,i,u){i={$$typeof:d,type:e,key:t,ref:r,props:u,_owner:i,_store:{}};return Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function Q(e,t,r){var n,o,i,u={},a=null,s=null,c=null,f=null;if(null!=t)for(n in W(t)&&(s=t.ref,"string"==typeof(o=t).ref&&w.current&&o.__self&&w.current.stateNode!==o.__self&&(i=k(w.current.type),X[i]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',k(w.current.type),o.ref),X[i]=!0))),z(t)&&(a=""+t.key),c=void 0===t.__self?null:t.__self,f=void 0===t.__source?null:t.__source,t)q.call(t,n)&&!Y.hasOwnProperty(n)&&(u[n]=t[n]);var l,p,y,h=arguments.length-2;if(1==h)u.children=r;else if(1<h){for(var d=Array(h),m=0;m<h;m++)d[m]=arguments[m+2];Object.freeze&&Object.freeze(d),u.children=d}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===u[n]&&(u[n]=v[n])}function E(){K||(K=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function g(){G||(G=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",y))}return(a||s)&&(r="function"==typeof e?e.displayName||e.name||"Unknown":e,a&&(p=u,y=r,g.isReactWarning=!0,Object.defineProperty(p,"key",{get:g,configurable:!0})),s&&(p=u,l=r,E.isReactWarning=!0,Object.defineProperty(p,"ref",{get:E,configurable:!0}))),Z(e,a,s,c,f,w.current,u)}function J(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var ee=".",te=":";var re=!1,ne=/\/+/g;function oe(e){return(""+e).replace(ne,"$&/")}var ie=10,ue=[];function ae(e,t,r,n){if(ue.length){var o=ue.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function se(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,ue.length<ie&&ue.push(e)}function ce(e,t,r){return null==e?0:function e(t,r,n,o){var i,u=typeof t,a=!1;if(null===(t="undefined"==u||"boolean"==u?null:t))a=!0;else switch(u){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case d:case m:a=!0}}if(a)return n(o,t,""===r?ee+fe(t,0):r),1;var s=0,c=""===r?ee:r+te;if(Array.isArray(t))for(var f=0;f<t.length;f++)s+=e(i=t[f],c+fe(i,f),n,o);else if("function"==typeof(r=_(t))){r===t.entries&&(re||P("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),re=!0);for(var l,p=r.call(t),y=0;!(l=p.next()).done;)s+=e(i=l.value,c+fe(i,y++),n,o)}else if("object"==u)throw r=" If you meant to render a collection of children, use an array instead."+C.getStackAddendum(),u=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==u?"object with keys {"+Object.keys(t).join(", ")+"}":u)+")."+r);return s}(e,"",t,r)}function fe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function le(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function pe(e,t,r){var n=e.result,o=e.keyPrefix,i=e.func,u=e.context,e=i.call(u,t,e.count++);Array.isArray(e)?ye(e,n,r,function(e){return e}):null!=e&&(J(e)&&(r=o+(!(o=e).key||t&&t.key===e.key?"":oe(e.key)+"/")+r,e=Z(o.type,r,o.ref,o._self,o._source,o._owner,o.props)),n.push(e))}function ye(e,t,r,n,o){var i="",o=ae(t,i=null!=r?oe(r)+"/":i,n,o);ce(e,pe,o),se(o)}function he(e){return"string"==typeof e||"function"==typeof e||e===a||e===t||e===i||e===n||e===f||e===l||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===p||e.$$typeof===u||e.$$typeof===s||e.$$typeof===c||e.$$typeof===r||e.$$typeof===E||e.$$typeof===g||e.$$typeof===v)}function de(){var e=R.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function me(){if(w.current){var e=k(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var ve=!1,Ee={};function ge(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,r=t,(t=me())||(r="string"==typeof r?r:r.displayName||r.name)&&(t="\n\nCheck the top-level render call using <"+r+">."),Ee[r=t]||(Ee[r]=!0,t="",e&&e._owner&&e._owner!==w.current&&(t=" It was passed a child from "+k(e._owner.type)+"."),I(e),S('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',r,t),I(null)))}function Te(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];J(n)&&ge(n,t)}else if(J(e))e._store&&(e._store.validated=!0);else if(e){var o=_(e);if("function"==typeof o&&o!==e.entries)for(var i,u=o.call(e);!(i=u.next()).done;)J(i.value)&&ge(i.value,t)}}function be(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=k(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==c&&t.$$typeof!==p)return;r=t.propTypes}r?(I(e),o(r,e.props,"prop",n,C.getStackAddendum),I(null)):void 0===t.PropTypes||ve||(ve=!0,S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _e(e,t,r){var n,o=he(e);o||(i="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),i+=(null==(t=t)||void 0===(t=t.__source)?"":"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".")||me(),null===e?n="null":Array.isArray(e)?n="array":void 0!==e&&e.$$typeof===d?(n="<"+(k(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,S("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",n,i));var i=Q.apply(this,arguments);if(null==i)return i;if(o)for(var u=2;u<arguments.length;u++)Te(arguments[u],e);return(e===a?function(e){I(e);for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n);break}}null!==e.ref&&S("Invalid attribute `ref` supplied to `React.Fragment`."),I(null)}:be)(i),i}var Re=!1;try{var we=Object.freeze({}),Oe=new Map([[we,null]]),Ae=new Set([we]);Oe.set(0,0),Ae.add(0)}catch(e){}function ke(e,t,r){for(var n=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,o,i=h({},e.props),u=e.key,a=e.ref,s=e._self,c=e._source,f=e._owner;if(null!=t)for(n in W(t)&&(a=t.ref,f=w.current),z(t)&&(u=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)q.call(t,n)&&!Y.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var l=arguments.length-2;if(1==l)i.children=r;else if(1<l){for(var p=Array(l),y=0;y<l;y++)p[y]=arguments[y+2];i.children=p}return Z(e.type,u,a,s,c,f,i)}.apply(this,arguments),o=2;o<arguments.length;o++)Te(arguments[o],n.type);return be(n),n}function Ce(e){var t=_e.bind(null,e);return t.type=e,Re||(Re=!0,P("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return P("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}Ae=_e;Ie.Children={map:function(e,t,r){if(null==e)return e;var n=[];return ye(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;r=ae(null,null,t,r),ce(e,le,r),se(r)},count:function(e){return ce(e,function(){return null},null)},toArray:function(e){var t=[];return ye(e,t,null,function(e){return e}),t},only:function(e){if(!J(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ie.Component=U,Ie.Fragment=a,Ie.Profiler=i,Ie.PureComponent=B,Ie.StrictMode=n,Ie.Suspense=f,Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,Ie.cloneElement=ke,Ie.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&S("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:u,_context:r}),o=!1,e={$$typeof:s,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(e,{Provider:{get:function(){return o||(o=!0,S("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,S("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=e,r._currentRenderer=null,r._currentRenderer2=null,r},Ie.createElement=Ae,Ie.createFactory=Ce,Ie.createRef=function(){var e={current:null};return Object.seal(e),e},Ie.forwardRef=function(e){return null!=e&&e.$$typeof===p?S("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?S("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&S("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||S("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")),{$$typeof:c,render:e}},Ie.isValidElement=J,Ie.lazy=function(e){var t,r,n={$$typeof:y,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){S("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){S("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},Ie.memo=function(e,t){return he(e)||S("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:p,type:e,compare:void 0===t?null:t}},Ie.useCallback=function(e,t){return de().useCallback(e,t)},Ie.useContext=function(e,t){var r,n=de();return void 0!==t&&S("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?S("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&S("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},Ie.useDebugValue=function(e,t){return de().useDebugValue(e,t)},Ie.useEffect=function(e,t){return de().useEffect(e,t)},Ie.useImperativeHandle=function(e,t,r){return de().useImperativeHandle(e,t,r)},Ie.useLayoutEffect=function(e,t){return de().useLayoutEffect(e,t)},Ie.useMemo=function(e,t){return de().useMemo(e,t)},Ie.useReducer=function(e,t,r){return de().useReducer(e,t,r)},Ie.useRef=function(e){return de().useRef(e)},Ie.useState=function(e){return de().useState(e)},Ie.version="16.14.0"}(),"production"===production?l.exports=u:l.exports=Ie;var ee=l.exports,te=l.exports.createContext({hackle:void 0,user:void 0}),v=te.Consumer,re=te.Provider;var ne,oe,ie,ue,ae,se,ce,fe,le,pe,ye,he,de,me,ve,Ee,ge,Te,be,_e,Re,we,Oe,Ae,ke,Ce,Pe,Se,De,Fe,Me,je,Le,Ue,Ve,He,$e,Be,Ge,Ke,qe,Ye,We,ze,Xe,Ze,Qe,Je,et,tt,rt,nt,ot,it,ut,at,st,ct,ft,lt,pt,yt,ht,dt,mt,vt,Et,gt,Tt={exports:{}};function bt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}oe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function _t(e,t){return e.timestamp==t.timestamp&&e.user.id==t.user.id&&e.user.properties==t.user.properties}g=Tt.exports,E=g,ne={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},R=function(){function t(){}return t.setLogLevel=function(e){this.logLevel=e=void 0===e?ne.INFO:e},t._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}try{console.log("%c[".concat(e,"] Hackle: ").concat(t),"color: ".concat(r))}catch(e){}},t.logLevel=ne.INFO,t.log={error:function(e){ne.ERROR<=t.logLevel&&t._log("ERROR",e)},warn:function(e){ne.WARN<=t.logLevel&&t._log("WARN",e)},info:function(e){ne.INFO<=t.logLevel&&t._log("INFO",e)},debug:function(e){ne.DEBUG<=t.logLevel&&t._log("DEBUG",e)}},t}(),oe=function(e,t){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},ie=function(){return(ie=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ue=function(){function r(e,t){this.variation=e,this.reason=t}return r.of=function(e,t){return new r(e,t)},r}(),ae=function(){function t(e,t){this.isOn=e,this.reason=t}return t.on=function(e){return new t(!0,e)},t.off=function(e){return new t(!1,e)},t}(),se=function(){function e(){}return e.SDK_NOT_READY="SDK_NOT_READY",e.EXCEPTION="EXCEPTION",e.INVALID_INPUT="INVALID_INPUT",e.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",e.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",e.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",e.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",e.OVERRIDDEN="OVERRIDDEN",e.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",e.VARIATION_DROPPED="VARIATION_DROPPED",e.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",e.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",e.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",e.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",e.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",e.TARGET_RULE_MATCH="TARGET_RULE_MATCH",e.DEFAULT_RULE="DEFAULT_RULE",e}(),ce=function(){function e(e,t,r,n,o){this.id=e,this.key=t,this.type=r,this.variations=n,this.overrides=o}return e.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},e.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},e.prototype._getOverriddenVariation=function(e){e=this.overrides.get(e.id);return e?this._getVariationByIdOrNull(e):void 0},e.Draft=(bt(o,a=e),o),e.Running=(bt(n,s=e),n),e.Paused=(bt(r,i=e),r),e.Completed=(bt(t,u=e),t.prototype.winnerVariation=function(){var t=this;return this.variations.find(function(e){return e.id===t._winnerVariationId})},t),e;function t(e,t,r,n,o,i){o=u.call(this,e,t,r,n,o)||this;return o._winnerVariationId=i,o}var u,i,s,a;function r(e,t,r,n,o){return i.call(this,e,t,r,n,o)||this}function n(e,t,r,n,o,i,u,a){o=s.call(this,e,t,r,n,o)||this;return o.targetAudiences=i,o.targetRules=u,o.defaultRule=a,o}function o(e,t,r,n,o){return a.call(this,e,t,r,n,o)||this}}(),fe=function(e,t,r){this.id=e,this.key=t,this.isDropped=r},le=function(e,t,r){this.seed=e,this.slotSize=t,this.slots=r},pe=function(){function e(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}return e.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},e}(),ye=function(e,t){this.id=e,this.key=t},he=function(e){this.conditions=e},de=function(e,t){this.key=e,this.match=t},me=function(e,t){this.type=e,this.name=t},ve=function(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n},Ee=function(e,t,r){this.type=e,this.variationId=t,this.bucketId=r},ge=function(e,t){this.target=e,this.action=t},Te=function(){function i(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}return i.tryParse=function(e){var u=i.regExp.exec(e);if(u){var t=function(e){var t="function"==typeof Symbol&&u[Symbol.iterator];if(!t)return u;var r,n,o=t.call(u),i=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(n)throw n.error}}return i}(6);t[0];var r=t[1],n=t[2],o=void 0===n?"0":n,e=t[3],n=void 0===e?"0":e,e=t[4],t=t[5];return new i(new be(parseInt(r,10),parseInt(o,10),parseInt(n,10)),_e.parse(e),_e.parse(t))}},i.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},i.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},i.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},i.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},i.prototype.isLessThan=function(e){return this.compareTo(e)<0},i.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},i.regExp=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,i}(),be=function(){function e(e,t,r){this.major=e,this.minor=t,this.patch=r}return e.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},e}(),_e=function(){function o(e){this.identifiers=e}return o.parse=function(e){return e?new o(e.split(".")):o.EMPTY},o.prototype.isEmpty=function(){return 0===this.identifiers.length},o.prototype.isNotEmpty=function(){return!this.isEmpty()},o.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},o.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=o.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},o.compareIdentifiers=function(e,t){return o.numericIdentifierRegExp.test(e)&&o.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},o.EMPTY=new o([]),o.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,o}(),Re=["MATCH","NOT_MATCH"],we=["STRING","NUMBER","BOOLEAN","VERSION"],Oe=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Ae=["VARIATION","BUCKET"],ke=["HACKLE_PROPERTY","USER_PROPERTY"],Ce=function(){function e(){}return e.validate=function(e){if(e){if("object"!=typeof e)return!1;for(var t in e)if(!this.validProperty(t,e[t]))return!1}return!0},e.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return ie(ie({},e),((e={})[t]=n.filteredPropertiesValue(r[t]),e))},{})},e.filteredPropertiesValue=function(e){return"string"==typeof e&&1024<e.length?e.slice(0,1024):e},e.validProperty=function(e,t){return!!e&&"string"==typeof e&&!(128<e.length)&&("string"==typeof t||"boolean"==typeof t||"number"==typeof t&&!isNaN(t)&&isFinite(t))},e}(),Pe=function(){function e(e,t,r){this.timestamp=e,this.user=t,this.hackleProperties=r}return e.exposure=function(e,t,r,n){return void 0===n&&(n={}),new Se((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,n)},e.track=function(e,t,r,n){return void 0===n&&(n={}),new De((new Date).getTime(),r,e,t,n)},e.isExposure=function(e){return void 0!==e.experiment},e.isTrack=function(e){return void 0!==e.eventType},e}(),Se=function(a){function e(e,t,r,n,o,i,u){u=a.call(this,e,t,u)||this;return u.experiment=r,u.variationId=n,u.variationKey=o,u.decisionReason=i,u}return bt(e,a),e.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.id,userProperties:Ce.filteredProperties(this.user.properties||{}),experimentId:this.experiment.id,experimentKey:this.experiment.key,experimentType:this.experiment.type,variationId:this.variationId,variationKey:this.variationKey,decisionReason:this.decisionReason.toString(),hackleProperties:Ce.filteredProperties(this.hackleProperties||{})}},e}(Pe),De=function(i){function e(e,t,r,n,o){o=i.call(this,e,t,o)||this;return o.eventType=r,o.event=n,o}return bt(e,i),e.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.id,userProperties:Ce.filteredProperties(this.user.properties||{}),eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Ce.filteredProperties(this.event.properties||{}),hackleProperties:Ce.filteredProperties(this.hackleProperties||{})}},e}(Pe),Fe=function(){function n(e,t,r){this.variationId=e,this.variationKey=t,this.reason=r}return n.withVariation=function(e,t){return new n(e.id,e.key,t)},n.withKey=function(e,t){return new n(void 0,e,t)},n.of=function(e,t,r){e=e._getVariationByKeyOrNull(t);return e?n.withVariation(e,r):n.withKey(t,r)},n}(),Me=function(){function e(e){this.evaluationFlowFactory=e}return e.prototype.evaluate=function(e,t,r,n,o){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n,o)},e}(),je=function(){function e(e){this.conditionMatcherFactory=e}return e.prototype.matches=function(e,t,r,n){var o=this;return e.conditions.every(function(e){return o._matches(e,t,r,n)})},e.prototype._matches=function(e,t,r,n){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r,n)},e}(),Le=function(){function e(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}return e.prototype.matches=function(t,e){var r=this.valueMatcherFactory.getMatcher(e.valueType),n=this.operatorMatcherFactory.getMatcher(e.operator),o=e.values.some(function(e){return r.matches(n,t,e)});return this._matches(e.type,o)},e.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},e}(),Ue=function(){function e(){}return e.prototype.booleanMatches=function(e,t){return e===t},e.prototype.numberMatches=function(e,t){return e===t},e.prototype.stringMatches=function(e,t){return e===t},e.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},e}(),Ve=function(){function e(){}return e.prototype.booleanMatches=function(e,t){return!1},e.prototype.numberMatches=function(e,t){return!1},e.prototype.stringMatches=function(e,t){return e.includes(t)},e.prototype.versionMatches=function(e,t){return!1},e}(),He=function(){function e(){}return e.prototype.booleanMatches=function(e,t){return!1},e.prototype.numberMatches=function(e,t){return!1},e.prototype.stringMatches=function(e,t){return e.startsWith(t)},e.prototype.versionMatches=function(e,t){return!1},e}(),$e=function(){function e(){}return e.prototype.booleanMatches=function(e,t){return!1},e.prototype.numberMatches=function(e,t){return!1},e.prototype.stringMatches=function(e,t){return e.endsWith(t)},e.prototype.versionMatches=function(e,t){return!1},e}(),Be=function(){function e(){}return e.prototype.booleanMatches=function(e,t){return!1},e.prototype.numberMatches=function(e,t){return t<e},e.prototype.stringMatches=function(e,t){return!1},e.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},e}(),Ge=function(){function e(){}return e.prototype.booleanMatches=function(e,t){return!1},e.prototype.numberMatches=function(e,t){return t<=e},e.prototype.stringMatches=function(e,t){return!1},e.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},e}(),Ke=function(){function e(){}return e.prototype.booleanMatches=function(e,t){return!1},e.prototype.numberMatches=function(e,t){return e<t},e.prototype.stringMatches=function(e,t){return!1},e.prototype.versionMatches=function(e,t){return e.isLessThan(t)},e}(),qe=function(){function e(){}return e.prototype.booleanMatches=function(e,t){return!1},e.prototype.numberMatches=function(e,t){return e<=t},e.prototype.stringMatches=function(e,t){return!1},e.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},e}(),Ye=function(){function t(){}return t.prototype.getMatcher=function(e){switch(e){case"IN":return t.IN_MATCHER;case"CONTAINS":return t.CONTAINS_MATCHER;case"STARTS_WITH":return t.STARTS_WITH_MATCHER;case"ENDS_WITH":return t.ENDS_WITH_MATCHER;case"GT":return t.GT_MATCHER;case"GTE":return t.GTE_MATCHER;case"LT":return t.LT_MATCHER;case"LTE":return t.LTE_MATCHER}},t.IN_MATCHER=new Ue,t.CONTAINS_MATCHER=new Ve,t.STARTS_WITH_MATCHER=new He,t.ENDS_WITH_MATCHER=new $e,t.GT_MATCHER=new Be,t.GTE_MATCHER=new Ge,t.LT_MATCHER=new Ke,t.LTE_MATCHER=new qe,t}(),We=function(){function e(){}return e.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},e}(),ze=function(){function e(){}return e.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},e}(),Xe=function(){function e(){}return e.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},e}(),Ze=function(){function e(){}return e.prototype.matches=function(e,t,r){t=Te.tryParse(t),r=Te.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},e}(),Qe=function(){function t(){}return t.prototype.getMatcher=function(e){switch(e){case"STRING":return t.STRING_MATCHER;case"NUMBER":return t.NUMBER_MATCHER;case"BOOLEAN":return t.BOOLEAN_MATCHER;case"VERSION":return t.VERSION_MATCHER}},t.STRING_MATCHER=new We,t.NUMBER_MATCHER=new ze,t.BOOLEAN_MATCHER=new Xe,t.VERSION_MATCHER=new Ze,t}(),Je=function(){function e(e){this.valueOperatorMatcher=e}return e.prototype.matches=function(e,t,r,n){n=this._resolveProperty(r,n,e.key);return!!n&&this.valueOperatorMatcher.matches(n,e.match)},e.prototype._resolveProperty=function(e,t,r){switch(r.type){case"HACKLE_PROPERTY":return t[r.name];case"USER_PROPERTY":return e.properties&&e.properties[r.name]}},e}(),et=function(){function t(){}return t.prototype.getMatcher=function(e){switch(e){case"USER_PROPERTY":case"HACKLE_PROPERTY":return t.PROPERTY_CONDITION_MATCHER}},t.PROPERTY_CONDITION_MATCHER=new Je(new Le(new Qe,new Ye)),t}(),tt=function(){function e(e){this.bucketer=e}return e.prototype.resolveOrNull=function(e,t,r,n){switch(e.type){case"VARIATION":return this._resolveVariation(e,r);case"BUCKET":return this._resolveBucket(e,t,r,n)}},e.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},e.prototype._resolveBucket=function(e,t,r,n){e=t.getBucketOrNull(e.bucketId),n=this.bucketer.bucketing(e,n);if(n)return r._getVariationByIdOrNull(n.variationId)},e}(),rt={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=3432918353,u=461845907,a=-4&(n=void 0===n?e.length:n),s=t,c=0;c<a;c+=4)o=255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24,o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,s=5*((524287&(s^=o=this.mul32(o,u)))<<13|s>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+a))<<16;case 2:o|=(255&e.charCodeAt(1+a))<<8;case 1:o|=255&e.charCodeAt(a),o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,s^=o=this.mul32(o,u)}return s^=n,s=this.mul32(s^=s>>>16,2246822507),(s=this.mul32(s^=s>>>13,3266489909))^s>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},nt=function(){function e(){}return e.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t.id);return e.slots.find(function(e){return e.contains(r)})},e.prototype.calculateSlotNumber=function(e,t,r){e=rt.murmurhash3_x86_32(r,e);return Math.abs(e)%Math.abs(t)},e}(),ot=function(){function a(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}return a.prototype.evaluate=function(e,t,r,n,o){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,o,this.nextFlow):Fe.of(t,o,se.TRAFFIC_NOT_ALLOCATED)},a.of=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=new a;try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r.reverse()),u=i.next();!u.done;u=i.next())o=new a(u.value,o)}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return o},a}(),it=function(){function e(){}return e.prototype.evaluate=function(e,t,r,n,o,i){var u=t._getOverriddenVariation(r);if(!u)return i.evaluate(e,t,r,n,o);switch(t.type){case"AB_TEST":return Fe.withVariation(u,se.OVERRIDDEN);case"FEATURE_FLAG":return Fe.withVariation(u,se.INDIVIDUAL_TARGET_MATCH)}},e}(),ut=function(){function e(){}return e.prototype.evaluate=function(e,t,r,n,o,i){return t instanceof ce.Draft?Fe.of(t,o,se.EXPERIMENT_DRAFT):i.evaluate(e,t,r,n,o)},e}(),at=function(){function e(){}return e.prototype.evaluate=function(e,t,r,n,o,i){if(!(t instanceof ce.Paused))return i.evaluate(e,t,r,n,o);switch(t.type){case"AB_TEST":return Fe.of(t,o,se.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return Fe.of(t,o,se.FEATURE_FLAG_INACTIVE)}},e}(),st=function(){function e(){}return e.prototype.evaluate=function(e,t,r,n,o,i){return t instanceof ce.Completed?Fe.withVariation(t.winnerVariation(),se.EXPERIMENT_COMPLETED):i.evaluate(e,t,r,n,o)},e}(),ct=function(){function e(e){this.experimentTargetDeterminer=e}return e.prototype.evaluate=function(e,t,r,n,o,i){if(!(t instanceof ce.Running))throw new Error("experiment must be running [".concat(t.id,"]"));if("AB_TEST"!==t.type)throw new Error("experiment type bust be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r,n)?i.evaluate(e,t,r,n,o):Fe.of(t,o,se.NOT_IN_EXPERIMENT_TARGET)},e}(),ft=function(){function e(e){this.actionResolver=e}return e.prototype.evaluate=function(e,t,r,n,o,i){if(!(t instanceof ce.Running))throw new Error("experiment must be running [".concat(t.id,"]"));if("AB_TEST"!==t.type)throw new Error("experiment type bust be AB_TEST [".concat(t.id,"]"));r=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);return r?r.isDropped?Fe.of(t,o,se.VARIATION_DROPPED):Fe.withVariation(r,se.TRAFFIC_ALLOCATED):Fe.of(t,o,se.TRAFFIC_NOT_ALLOCATED)},e}(),lt=function(){function e(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}return e.prototype.evaluate=function(e,t,r,n,o,i){if(!(t instanceof ce.Running))throw new Error("experiment must be running [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type bust be FEATURE_FLAG [".concat(t.id,"]"));var u=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t,r,n);if(!u)return i.evaluate(e,t,r,n,o);r=this.actionResolver.resolveOrNull(u.action,e,t,r);if(!r)throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"));return Fe.withVariation(r,se.TARGET_RULE_MATCH)},e}(),pt=function(){function e(e){this.actionResolver=e}return e.prototype.evaluate=function(e,t,r,n,o,i){if(!(t instanceof ce.Running))throw new Error("experiment must be running [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type bust be FEATURE_FLAG [".concat(t.id,"]"));r=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(!r)throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"));return Fe.withVariation(r,se.DEFAULT_RULE)},e}(),yt=function(){function e(e){this.targetMatcher=e}return e.prototype.isUserInExperimentTarget=function(t,e,r,n){var o=this;if(!(e instanceof ce.Running))throw new Error("experiment must be running [".concat(e.id,"]"));return 0===e.targetAudiences.length||e.targetAudiences.some(function(e){return o.targetMatcher.matches(e,t,r,n)})},e}(),ht=function(){function e(e){this.targetMatcher=e}return e.prototype.determineTargetRuleOrNull=function(t,e,r,n){var o=this;if(!(e instanceof ce.Running))throw new Error("experiment must be running [".concat(e.id,"]"));return e.targetRules.find(function(e){return o.targetMatcher.matches(e.target,t,r,n)})},e}(),dt=function(){function e(){var e=new je(new et),t=new tt(new nt);this.abTestFlow=ot.of(new it,new ut,new at,new st,new ct(new yt(e)),new ft(t)),this.featureFlagFlow=ot.of(new ut,new at,new st,new it,new lt(new ht(e),t),new pt(t))}return e.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},e}(),mt=R.log,a=function(){function e(e,t,r){this.evaluator=new Me(new dt),this.workspaceFetcher=e,this.eventProcessor=t,this.eventEmitter=r,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(){return{success:!1}})}return e.prototype._experiment=function(e,t,r,n){if(!e)return mt.error("experimentKey must not be empty"),ue.of(n,se.INVALID_INPUT);if(!t)return mt.error("user must not be null."),ue.of(n,se.INVALID_INPUT);if(!t.id||"string"!=typeof t.id)return mt.error("user.id must not be null and must be string type"),ue.of(n,se.INVALID_INPUT);var o=this.workspaceFetcher.get();if(!o)return mt.warn("SDK not ready."),ue.of(n,se.SDK_NOT_READY);e=o.getExperimentOrNull(e);if(!e)return mt.warn("Experiment does not exist."),ue.of(n,se.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(o,e,t,r,n);return this.eventProcessor.process(Pe.exposure(e,t,n,r)),ue.of(n.variationKey,n.reason)},e.prototype._featureFlag=function(e,t,r){if(!e)return mt.error("featureKey must not be empty"),ae.off(se.INVALID_INPUT);if(!t)return mt.error("user must not be null."),ae.off(se.INVALID_INPUT);if(!t.id||"string"!=typeof t.id)return mt.error("user.id must not be null and must be string type"),ae.off(se.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return mt.warn("SDK not ready."),ae.off(se.SDK_NOT_READY);e=n.getFeatureFlagOrNull(e);if(!e)return mt.warn("FeatureFlag does not exist."),ae.off(se.FEATURE_FLAG_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r,"A");return this.eventProcessor.process(Pe.exposure(e,t,n,r)),"A"===n.variationKey?ae.off(n.reason):ae.on(n.reason)},e.prototype._track=function(e,t,r){var n;e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?t?t.id&&"string"==typeof t.id?(n=this.workspaceFetcher.get())?(n=n.getEventTypeOrNull(e.key),this.eventProcessor.process(Pe.track(n,e,t,r))):mt.warn("SDK not ready"):mt.error("Id must not be null. or Id must be string type"):mt.error("User must not be null."):mt.warn("Event key must be not null. or event key must be string type."):mt.warn("Event must be event type."):mt.warn("event must not be null.")},e.prototype._onReady=function(t,e){var r;void 0===e&&(e=3e3),mt.debug("Start HackleClient onReady");var n=new Promise(function(e){r=e}),o=setTimeout(function(){r({success:!1})},e);this.readyPromise.then(function(){clearTimeout(o),r({success:!0})}),Promise.race([this.readyPromise,n]).then(function(e){mt.debug("HackleClient onReady"),t()})},e.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},e}(),vt=function(){function e(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}return e.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},e.prototype.refresh=function(){this.stop(),this.start()},e.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)},e}(),Et=function(){function e(e,t,r,n){void 0===r&&(r=1e3),void 0===n&&(n=1e4),this.buffer=[],this.sink=e,this.maxQueueSize=r,this.batchComparator=t,this.timer=new vt({callback:this.flush.bind(this),timeout:n}),this.started=!1}return e.prototype.start=function(){this.started=!0},e.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},e.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},e.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},e.prototype.close=function(){this.stop()},e}(),u=function(){function n(e,t,r){void 0===t&&(t=1e3),void 0===r&&(r=n.DEFAULT_FLUSH_INTERVAL),this.flushInterval=n.DEFAULT_FLUSH_INTERVAL,this.eventDispatcher=e,this.flushInterval=r,this.queue=new Et(this.drainQueue.bind(this),_t,t,r)}return n.prototype.drainQueue=function(t,r){var n=this;return new Promise(function(e){0!==t.length?r?n.eventDispatcher.dispatchXhrOrBeacon(t,function(){e()}):n.eventDispatcher.dispatch(t,function(){e()}):e()})},n.prototype.process=function(e){this.queue.enqueue(e)},n.prototype.start=function(){return e=this,s=function(){return r=this,n=function(e){return this.queue.start(),[2]},a={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(t){return function(e){return function(t){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(u=2&t[0]?i.return:t[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,t[1])).done)return u;switch(i=0,(t=u?[2&t[0],u.value]:t)[0]){case 0:case 1:u=t;break;case 4:return a.label++,{value:t[1],done:!1};case 5:a.label++,i=t[1],t=[0];continue;case 7:t=a.ops.pop(),a.trys.pop();continue;default:if(!((u=0<(u=a.trys).length&&u[u.length-1])||6!==t[0]&&2!==t[0])){a=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3])){a.label=t[1];break}if(6===t[0]&&a.label<u[1]){a.label=u[1],u=t;break}if(u&&a.label<u[2]){a.label=u[2],a.ops.push(t);break}u[2]&&a.ops.pop(),a.trys.pop();continue}t=n.call(r,a)}catch(e){t=[6,e],i=0}finally{o=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}var r,n,o,i,u,t,a},new(a=(a=u=void 0)||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())});var e,u,a,s},n.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},n.prototype.close=function(){this.stop()},n.DEFAULT_FLUSH_INTERVAL=1e4,n}(),gt=R.log,g=function(){function s(e,t,r,n){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n}return s.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},s.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},s.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},s.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)||new ye(0,e)},s.from=function(e){var t=this,r=s.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]}),n=s.associateBy(s.mapNotUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),o=s.associateBy(s.mapNotUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),e=s.associate(e.events,function(e){return[e.key,new ye(e.id,e.key)]});return new s(n,o,r,e)},s.toBucket=function(e){return new le(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new pe(t,r,e)}))},s.toExperimentOrNull=function(e,t){var r=this,n=t.variations.map(function(e){return new fe(e.id,e.key,"DROPPED"===e.status)}),o=s.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]});switch(t.execution.status){case"READY":return new ce.Draft(t.id,t.key,e,n,o);case"RUNNING":var i=s.mapNotUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e)}),u=s.mapNotUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e)}),a=this.toTargetActionOrNull(t.execution.defaultRule);return a&&new ce.Running(t.id,t.key,e,n,o,i,u,a);case"PAUSED":return new ce.Paused(t.id,t.key,e,n,o);case"STOPPED":return new ce.Completed(t.id,t.key,e,n,o,t.winnerVariationId);default:return}},s.toTargetRuleOrNull=function(e){var t=this.toTargetOrNull(e.target),e=this.toTargetActionOrNull(e.action);return t&&e&&new ge(t,e)},s.toTargetActionOrNull=function(e){var t=this.parseOrNull(Ae,e.type);return t&&new Ee(t,e.variationId,e.bucketId)},s.toTargetOrNull=function(e){var t=this,e=s.mapNotUndefined(e.conditions,function(e){return t.toConditionOrNull(e)});return new he(e)},s.toConditionOrNull=function(e){var t=this.toTargetKeyOrNull(e.key),e=this.toTargetMatchOrNull(e.match);return t&&e&&new de(t,e)},s.toTargetKeyOrNull=function(e){var t=this.parseOrNull(ke,e.type);return t&&new me(t,e.name)},s.toTargetMatchOrNull=function(e){var t=this.parseOrNull(Re,e.type),r=this.parseOrNull(Oe,e.operator),n=this.parseOrNull(we,e.valueType);return t&&r&&n&&new ve(t,r,n,e.values)},s.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||gt.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},s.mapNotUndefined=function(e,r){return e.reduce(function(e,t){t=r(t);return t&&e.push(t),e},Array())},s.associateTo=function(e,t,r){return e.reduce(function(e,t){t=r(t);return e.set(t[0],t[1]),e},t)},s.associate=function(e,t){return s.associateTo(e,new Map,t)},s.associateBy=function(e,t){return this.associateTo(e,new Map,function(e){return[t(e),e]})},s}(),E.Bucket=le,E.CoreVersion=be,E.DEFAULT_ON_READY_TIMEOUT=3e3,E.Decision=ue,E.DecisionReason=se,E.DefaultEventQueue=Et,E.Event=Pe,E.EventProcessor=u,E.EventType=ye,E.Experiment=ce,E.Exposure=Se,E.FeatureFlagDecision=ae,E.HackleInternalClient=a,E.Logger=R,E.MATCH_OPERATORS=Oe,E.MATCH_TYPES=Re,E.MATCH_VALUE_TYPES=we,E.MetaVersion=_e,E.Slot=pe,E.TARGET_ACTION_TYPES=Ae,E.TARGET_KEY_TYPES=ke,E.Target=he,E.TargetAction=Ee,E.TargetCondition=de,E.TargetKey=me,E.TargetMatch=ve,E.TargetRule=ge,E.Track=De,E.Variation=fe,E.Version=Te,E.Workspace=g,E.logLevels=ne,E.toPayload=function(e){var t=new Array,r=new Array;return e.forEach(function(e){Pe.isExposure(e)?t.push(e.toDto()):Pe.isTrack(e)&&r.push(e.toDto())}),{exposureEvents:t,trackEvents:r}},Object.defineProperty(E,"__esModule",{value:!0});var Rt=Tt.exports.Logger.log;function wt(e,t){void 0===t&&(t="A");var r=l.exports.useContext(te),n=r.hackle,o=r.user,i=l.exports.useCallback(function(){return(null==n?void 0:n.variation(e,o))||t},[t,e,o,n]),u=f(l.exports.useState(function(){return n?i():("undefined"!=typeof window&&Rt.error("HackleClient is not existed"),t)}),2),a=u[0],s=u[1],c={key:e,user:o},r=f(l.exports.useState(c),2),u=r[0],r=r[1];return Ot(u,c)||(r(c),s(i())),a}function Ot(e,t){var r,n,o;return e.key===t.key&&(null===(r=e.user)||void 0===r?void 0:r.id)===(null===(r=t.user)||void 0===r?void 0:r.id)&&(e=null===(e=e.user)||void 0===e?void 0:e.properties,t=null===(t=t.user)||void 0===t?void 0:t.properties,n=At(e),o=At(t),e=Object.keys(n),t=Object.keys(o),e.length===t.length&&e.every(function(e){return e in o&&n[e]===o[e]}))}function At(e){return"object"==typeof e&&null!==e?e:{}}function kt(e){var t,r=e.experimentKey,e=e.children,n=wt(r);return e&&"function"==typeof e?e(n):(l.exports.Children.forEach(e,function(e){l.exports.isValidElement(e)&&(e.props.variation?n===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?l.exports.cloneElement(t,{variation:n}):null)}function Ct(e){return e.variation,e=e.children,l.exports.createElement(l.exports.Fragment,null,e)}t.HackleContext=te,t.HackleContextConsumer=v,t.HackleContextProvider=re,t.HackleExperiment=kt,t.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=e.timeout,o=void 0===n?3e3:n,i=e.children,u={hackle:t,user:r},e=(n=f(l.exports.useState(!1),2))[0],a=n[1],u=(n=f(l.exports.useState(u),2))[0],s=n[1];return l.exports.useEffect(function(){s(function(e){return c(c({},e),{user:r})})},[r]),t.onReady(function(){return a(!0)},o),e?ee.createElement(re,{value:u},i):null},t.HackleVariation=Ct,t.createInstance=function(e,t){return new o(e,t)},t.useFeature=function(e){var t=(s=l.exports.useContext(te)).hackle,r=s.user,n=l.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e,r))||!1},[e,r,t]),o=(a=f(l.exports.useState(function(){return t?n():("undefined"!=typeof window&&Rt.error("HackleClient is not existed"),!1)}),2))[0],i=a[1],u={key:e,user:r},a=(s=f(l.exports.useState(u),2))[0],s=s[1];return Ot(a,u)||(s(u),i(n())),o},t.useFeatureFlagDetail=function(e){var t=(s=l.exports.useContext(te)).hackle,r=s.user,n=l.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||Tt.exports.FeatureFlagDecision.off(Tt.exports.DecisionReason.EXCEPTION)},[e,r,t]),o=(a=f(l.exports.useState(function(){return t?n():("undefined"!=typeof window&&Rt.error("HackleClient is not existed"),Tt.exports.FeatureFlagDecision.off(Tt.exports.DecisionReason.EXCEPTION))}),2))[0],i=a[1],u={key:e,user:r},a=(s=f(l.exports.useState(u),2))[0],s=s[1];return Ot(a,u)||(s(u),i(n())),o},t.useTrack=function(){var e=l.exports.useContext(te),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:("undefined"!=typeof window&&Rt.error("HackleClient is not existed"),function(){})},t.useVariation=wt,t.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(c=l.exports.useContext(te)).hackle,n=c.user,o=l.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||Tt.exports.Decision.of(t,Tt.exports.DecisionReason.EXCEPTION)},[t,e,n,r]),i=(s=f(l.exports.useState(function(){return r?o():("undefined"!=typeof window&&Rt.error("HackleClient is not existed"),Tt.exports.Decision.of(t,Tt.exports.DecisionReason.EXCEPTION))}),2))[0],u=s[1],a={key:e,user:n},s=(c=f(l.exports.useState(a),2))[0],c=c[1];return Ot(s,a)||(c(a),u(o())),i},Object.keys(r).forEach(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}),Object.defineProperty(t,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackler/react-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "React SDK for Hackle",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Hackle",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"url": "https://github.com/hackle-io/hackle-javascript-sdk/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@hackler/sdk-core": "3.0.
|
|
43
|
-
"@hackler/js-client-sdk": "3.0.
|
|
42
|
+
"@hackler/sdk-core": "3.0.2",
|
|
43
|
+
"@hackler/js-client-sdk": "3.0.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=16.8.0"
|