@ucb-cspace/cspace-ui
Version:
CollectionSpace user interface for browsers
2 lines • 342 kB
JavaScript
/*! For license information please see cspaceUI-service.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.cspaceUI=t():e.cspaceUI=t()}(self,(()=>(()=>{var e={93595:(e,t)=>{"use strict"},74104:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,"\n",""]),a.locals={textDark:"rgb(70, 70, 70)",textMedium:"rgb(160, 160, 160)",textLight:"rgb(220, 220, 220)",textLabel:"rgb(80, 80, 80)",inputBg:"rgb(255, 255, 255)",buttonBg:"#73AA4F",buttonOutlinedBg:"rgb(255, 255, 255)",buttonOutlinedBgActive:"rgb(220, 220, 220)"};const u=a},3084:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600);"]),a.push([e.id,"@import url(https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@40,400,0,0&icon_names=close,format_list_bulleted,grid_view,sort_by_alpha,vertical_split);"]),a.push([e.id,"body {\n margin: 0;\n padding: 10px 10px 110px 10px;\n\n font-family: 'Open Sans', Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n\n background-color: white;\n color: #4D4D4D;\n}\n\nbody .material-icons {\n font-family: 'Material Symbols Outlined';\n font-weight: normal;\n font-style: normal;\n display: inline-block;\n line-height: 1;\n text-transform: none;\n letter-spacing: normal;\n word-wrap: normal;\n white-space: nowrap;\n direction: ltr;\n}\n\na {\n color: #4D4D4D;\n}\n\na:focus {\n outline: 1px dotted black;\n}\n\na:disabled {\n color: rgba(77, 77, 77, .4);\n}\n\na:visited * {\n border-color: currentColor;\n}\n\nh1, h2 {\nfont-size: 24px;\nfont-weight: 400;\nmargin: 16px 0;\n}\n\nh2 {\n font-size: 20px;\n}\n\np {\n margin: 16px 0;\n}\n\ninput[type=\"checkbox\"] {\n margin-left: 0;\n margin-right: 0;\n}\n\n.cspace-ui-RootPage--common {\n}\n",""]),a.locals={common:"cspace-ui-RootPage--common"};const u=a},8009:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i),u=n(74104),l=n(4417),s=n.n(l),c=new URL(n(51918),n.b),f=new URL(n(71527),n.b),p=new URL(n(69127),n.b),d=new URL(n(76993),n.b),h=new URL(n(45010),n.b),g=new URL(n(81937),n.b),m=a()(o());m.i(u.A,"",!0);var v=s()(c),y=s()(f),A=s()(p),C=s()(d),I=s()(h),b=s()(g);m.push([e.id,`body {\n background-color: #F0F5FB;\n}\n\n.cspace-ui-ServicePage--common {\n margin: 50px auto;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n padding: 50px 0;\n width: 420px;\n background-color: white;\n}\n\n.cspace-ui-ServicePage--common > header {\n text-align: center;\n}\n\n.cspace-ui-ServicePage--common > main {\n margin-top: 30px;\n padding: 0 50px;\n}\n\n.cspace-ui-ServicePage--common a {\n color: inherit;\n}\n\n.cspace-ui-ServicePage--common a + a {\n margin-top: 8px;\n}\n\n.cspace-ui-ServicePage--common .sso a, .cspace-ui-ServicePage--common button {\n display: block;\n box-sizing: border-box;\n outline-offset: -1px;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 8px 10px 8px 34px;\n width: 100%;\n text-align: left;\n background-color: #fafafa;\n background-position: 10px center;\n background-repeat: no-repeat;\n background-size: 18px;\n text-decoration: none;\n font: inherit;\n}\n\n.cspace-ui-ServicePage--common .sso a:focus, .cspace-ui-ServicePage--common button:focus {\n outline: 2px solid ${u.A.locals.textDark};\n}\n\n.cspace-ui-ServicePage--common .sso a:hover, .cspace-ui-ServicePage--common button:enabled:hover {\n background-color: #fff;\n}\n\n.cspace-ui-ServicePage--common a.login, .cspace-ui-ServicePage--common button.login:enabled {\n background-image: url(${v});\n}\n\n.cspace-ui-ServicePage--common button.logout:enabled {\n background-image: url(${y});\n}\n\n.cspace-ui-ServicePage--common button.send:enabled {\n background-image: url(${A});\n}\n\n.cspace-ui-ServicePage--common button.reset:enabled {\n background-image: url(${C});\n}\n\n.cspace-ui-ServicePage--common .sso + form {\n margin-top: 36px;\n}\n\n.cspace-ui-ServicePage--common form {\n box-sizing: border-box;\n margin-top: 16px;\n width: 100%;\n}\n\n.cspace-ui-ServicePage--common form input {\n display: block;\n padding: 6px;\n width: 100%;\n height: 32px;\n outline-offset: -1px;\n border: 1px solid rgb(220, 220, 220);\n font: inherit;\n}\n\n.cspace-ui-ServicePage--common form input:focus {\n outline: 2px solid ${u.A.locals.textDark};\n}\n\n.cspace-ui-ServicePage--common form div + div {\n margin-top: 8px;\n}\n\n.cspace-ui-ServicePage--common form label > span {\n display: block;\n margin: 3px 0;\n font-size: 12px;\n line-height: 14px;\n color: rgb(80, 80, 80);\n}\n\n.cspace-ui-ServicePage--common .status {\n border-top: 1px solid #ddd;\n border-bottom: 1px solid #ddd;\n padding: 30px 20px 14px 20px;\n background-repeat: no-repeat;\n background-position: center 10px;\n background-size: 16px;\n text-align: center;\n}\n\n.cspace-ui-ServicePage--common .status.success {\n background-image: url(${I});\n}\n\n.cspace-ui-ServicePage--common .status.error {\n background-image: url(${b});\n border-color: #e6b3b3;\n color: rgb(220, 0, 0);\n}\n`,""]),m.locals={textLight:`${u.A.locals.textLight}`,textDark:`${u.A.locals.textDark}`,common:"cspace-ui-ServicePage--common"};const w=m},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var u=0;u<this.length;u++){var l=this[u][0];null!=l&&(a[l]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},4417:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},4146:(e,t,n)=>{"use strict";var r=n(44363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function l(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||g&&g[v]||u&&u[v])){var y=p(n,v);try{s(t,v,y)}catch(e){}}}}return t}},9404:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:G(e)}function r(e){return u(e)?e:W(e)}function o(e){return l(e)?e:V(e)}function i(e){return a(e)&&!s(e)?e:B(e)}function a(e){return!(!e||!e[f])}function u(e){return!(!e||!e[p])}function l(e){return!(!e||!e[d])}function s(e){return u(e)||l(e)}function c(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=u,n.isIndexed=l,n.isAssociative=s,n.isOrdered=c,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=32,v=31,y={},A={value:!1},C={value:!1};function I(e){return e.value=!1,e}function b(e){e&&(e.value=!0)}function w(){}function _(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function x(e){return void 0===e.size&&(e.size=e.__iterate(M)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?x(e)+t:t}function M(){return!0}function T(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function S(e,t){return N(e,t,0)}function k(e,t){return N(e,t,t)}function N(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D="function"==typeof Symbol&&Symbol.iterator,j="@@iterator",P=D||j;function L(e){this.next=e}function O(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function z(){return{value:void 0,done:!0}}function R(e){return!!F(e)}function U(e){return e&&"function"==typeof e.next}function Z(e){var t=F(e);return t&&t.call(e)}function F(e){var t=e&&(D&&e[D]||e[j]);if("function"==typeof t)return t}function Y(e){return e&&"number"==typeof e.length}function G(e){return null==e?ne():a(e)?e.toSeq():function(e){var t=ie(e)||"object"==typeof e&&new q(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function W(e){return null==e?ne().toKeyedSeq():a(e)?u(e)?e.toSeq():e.fromEntrySeq():re(e)}function V(e){return null==e?ne():a(e)?u(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function B(e){return(null==e?ne():a(e)?u(e)?e.entrySeq():e:oe(e)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=0,L.VALUES=1,L.ENTRIES=2,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[P]=function(){return this},t(G,n),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(e,t){return ae(this,e,t,!0)},G.prototype.__iterator=function(e,t){return ue(this,e,t,!0)},t(W,G),W.prototype.toKeyedSeq=function(){return this},t(V,G),V.of=function(){return V(arguments)},V.prototype.toIndexedSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq [","]")},V.prototype.__iterate=function(e,t){return ae(this,e,t,!1)},V.prototype.__iterator=function(e,t){return ue(this,e,t,!1)},t(B,G),B.of=function(){return B(arguments)},B.prototype.toSetSeq=function(){return this},G.isSeq=te,G.Keyed=W,G.Set=B,G.Indexed=V;var H,Q,X,J="@@__IMMUTABLE_SEQ__@@";function K(e){this._array=e,this.size=e.length}function q(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function $(e){this._iterable=e,this.size=e.length||e.size}function ee(e){this._iterator=e,this._iteratorCache=[]}function te(e){return!(!e||!e[J])}function ne(){return H||(H=new K([]))}function re(e){var t=Array.isArray(e)?new K(e).fromEntrySeq():U(e)?new ee(e).fromEntrySeq():R(e)?new $(e).fromEntrySeq():"object"==typeof e?new q(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=ie(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ie(e){return Y(e)?new K(e):U(e)?new ee(e):R(e)?new $(e):void 0}function ae(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var u=o[n?i-a:a];if(!1===t(u[1],r?u[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ue(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new L((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:O(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function le(e,t){return t?se(t,e,"",{"":e}):ce(e)}function se(e,t,n,r){return Array.isArray(t)?e.call(r,n,V(t).map((function(n,r){return se(e,n,r,t)}))):fe(t)?e.call(r,n,W(t).map((function(n,r){return se(e,n,r,t)}))):t}function ce(e){return Array.isArray(e)?V(e).map(ce).toList():fe(e)?W(e).map(ce).toMap():e}function fe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function pe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function de(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||u(e)!==u(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!s(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&pe(o[1],e)&&(n||pe(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!pe(t,e.get(r,y)):!pe(e.get(r,y),t))return f=!1,!1}));return f&&e.size===p}function he(e,t){if(!(this instanceof he))return new he(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function ge(e,t){if(!e)throw new Error(t)}function me(e,t,n){if(!(this instanceof me))return new me(e,t,n);if(ge(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(X)return X;X=this}}function ve(){throw TypeError("Abstract")}function ye(){}function Ae(){}function Ce(){}G.prototype[J]=!0,t(K,V),K.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},K.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},K.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new L((function(){return o>r?{value:void 0,done:!0}:O(e,o,n[t?r-o++:o++])}))},t(q,W),q.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},q.prototype.has=function(e){return this._object.hasOwnProperty(e)},q.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},q.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new L((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:O(e,a,n[a])}))},q.prototype[h]=!0,t($,V),$.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=Z(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},$.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=Z(this._iterable);if(!U(n))return new L(z);var r=0;return new L((function(){var t=n.next();return t.done?t:O(e,r++,t.value)}))},t(ee,V),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},ee.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new L((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return O(e,o,r[o++])}))},t(he,V),he.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},he.prototype.get=function(e,t){return this.has(e)?this._value:t},he.prototype.includes=function(e){return pe(this._value,e)},he.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:new he(this._value,k(t,n)-S(e,n))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return pe(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return pe(this._value,e)?this.size:-1},he.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},he.prototype.__iterator=function(e,t){var n=this,r=0;return new L((function(){return r<n.size?O(e,r++,n._value):{value:void 0,done:!0}}))},he.prototype.equals=function(e){return e instanceof he?pe(this._value,e._value):de(e)},t(me,V),me.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},me.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},me.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},me.prototype.slice=function(e,t){return T(e,t,this.size)?this:(e=S(e,this.size),(t=k(t,this.size))<=e?new me(0,0):new me(this.get(e,this._end),this.get(t,this._end),this._step))},me.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},me.prototype.lastIndexOf=function(e){return this.indexOf(e)},me.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},me.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new L((function(){var a=o;return o+=t?-r:r,i>n?{value:void 0,done:!0}:O(e,i++,a)}))},me.prototype.equals=function(e){return e instanceof me?this._start===e._start&&this._end===e._end&&this._step===e._step:de(this,e)},t(ve,n),t(ye,ve),t(Ae,ve),t(Ce,ve),ve.Keyed=ye,ve.Indexed=Ae,ve.Set=Ce;var Ie="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function be(e){return e>>>1&1073741824|3221225471&e}function we(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return be(n)}if("string"===t)return e.length>Ne?function(e){var t=Pe[e];return void 0===t&&(t=_e(e),je===De&&(je=0,Pe={}),je++,Pe[e]=t),t}(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Te&&void 0!==(t=Me.get(e)))return t;if(void 0!==(t=e[ke]))return t;if(!Ee){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ke]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Se,1073741824&Se&&(Se=0),Te)Me.set(e,t);else{if(void 0!==xe&&!1===xe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ee)Object.defineProperty(e,ke,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ke]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ke]=t}}return t}(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function _e(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return be(t)}var xe=Object.isExtensible,Ee=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Me,Te="function"==typeof WeakMap;Te&&(Me=new WeakMap);var Se=0,ke="__immutablehash__";"function"==typeof Symbol&&(ke=Symbol(ke));var Ne=16,De=255,je=0,Pe={};function Le(e){ge(e!==1/0,"Cannot perform this action with an infinite size.")}function Oe(e){return null==e?Je():ze(e)&&!c(e)?e:Je().withMutations((function(t){var n=r(e);Le(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function ze(e){return!(!e||!e[Ue])}t(Oe,ye),Oe.of=function(){var t=e.call(arguments,0);return Je().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},Oe.prototype.toString=function(){return this.__toString("Map {","}")},Oe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Oe.prototype.set=function(e,t){return Ke(this,e,t)},Oe.prototype.setIn=function(e,t){return this.updateIn(e,y,(function(){return t}))},Oe.prototype.remove=function(e){return Ke(this,e,y)},Oe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return y}))},Oe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Oe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=it(this,tn(e),t,n);return r===y?void 0:r},Oe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Je()},Oe.prototype.merge=function(){return tt(this,void 0,arguments)},Oe.prototype.mergeWith=function(t){return tt(this,t,e.call(arguments,1))},Oe.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Je(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Oe.prototype.mergeDeep=function(){return tt(this,nt,arguments)},Oe.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return tt(this,rt(t),n)},Oe.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Je(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Oe.prototype.sort=function(e){return Tt(Wt(this,e))},Oe.prototype.sortBy=function(e,t){return Tt(Wt(this,t,e))},Oe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Oe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},Oe.prototype.asImmutable=function(){return this.__ensureOwner()},Oe.prototype.wasAltered=function(){return this.__altered},Oe.prototype.__iterator=function(e,t){return new Be(this,e,t)},Oe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Oe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Xe(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Oe.isMap=ze;var Re,Ue="@@__IMMUTABLE_MAP__@@",Ze=Oe.prototype;function Fe(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ge(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function We(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Be(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Qe(e._root)}function He(e,t){return O(e,t[0],t[1])}function Qe(e,t){return{node:e,index:0,__prev:t}}function Xe(e,t,n,r){var o=Object.create(Ze);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Je(){return Re||(Re=Xe(0))}function Ke(e,t,n){var r,o;if(e._root){var i=I(A),a=I(C);if(r=qe(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===y?-1:1:0)}else{if(n===y)return e;o=1,r=new Fe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Xe(o,r):Je()}function qe(e,t,n,r,o,i,a,u){return e?e.update(t,n,r,o,i,a,u):i===y?e:(b(u),b(a),new Ve(t,r,[o,i]))}function $e(e){return e.constructor===Ve||e.constructor===We}function et(e,t,n,r,o){if(e.keyHash===r)return new We(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&v,u=(0===n?r:r>>>n)&v;return new Ye(t,1<<a|1<<u,a===u?[et(e,t,n+5,r,o)]:(i=new Ve(t,r,o),a<u?[e,i]:[i,e]))}function tt(e,t,n){for(var o=[],i=0;i<n.length;i++){var u=n[i],l=r(u);a(u)||(l=l.map((function(e){return le(e)}))),o.push(l)}return ot(e,t,o)}function nt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):pe(e,t)?e:t}function rt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return pe(t,o)?t:o}}function ot(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,y,(function(e){return e===y?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function it(e,t,n,r){var o=e===y,i=t.next();if(i.done){var a=o?n:e,u=r(a);return u===a?e:u}ge(o||e&&e.set,"invalid keyPath");var l=i.value,s=o?y:e.get(l,y),c=it(s,t,n,r);return c===s?e:c===y?e.remove(l):(o?Je():e).set(l,c)}function at(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function ut(e,t,n,r){var o=r?e:_(e);return o[t]=n,o}Ze[Ue]=!0,Ze[g]=Ze.remove,Ze.removeIn=Ze.deleteIn,Fe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(pe(n,o[i][0]))return o[i][1];return r},Fe.prototype.update=function(e,t,n,r,o,i,a){for(var u=o===y,l=this.entries,s=0,c=l.length;s<c&&!pe(r,l[s][0]);s++);var f=s<c;if(f?l[s][1]===o:u)return this;if(b(a),(u||!f)&&b(i),!u||1!==l.length){if(!f&&!u&&l.length>=lt)return function(e,t,n,r){e||(e=new w);for(var o=new Ve(e,we(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,l,r,o);var p=e&&e===this.ownerID,d=p?l:_(l);return f?u?s===c-1?d.pop():d[s]=d.pop():d[s]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Fe(e,d)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=we(n));var o=1<<((0===e?t:t>>>e)&v),i=this.bitmap;return i&o?this.nodes[at(i&o-1)].get(e+5,t,n,r):r},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=we(r));var u=(0===t?n:n>>>t)&v,l=1<<u,s=this.bitmap,c=!!(s&l);if(!c&&o===y)return this;var f=at(s&l-1),p=this.nodes,d=c?p[f]:void 0,h=qe(d,e,t+5,n,r,o,i,a);if(h===d)return this;if(!c&&h&&p.length>=st)return function(e,t,n,r,o){for(var i=0,a=new Array(m),u=0;0!==n;u++,n>>>=1)a[u]=1&n?t[i++]:void 0;return a[r]=o,new Ge(e,i+1,a)}(e,p,s,u,h);if(c&&!h&&2===p.length&&$e(p[1^f]))return p[1^f];if(c&&h&&1===p.length&&$e(h))return h;var g=e&&e===this.ownerID,A=c?h?s:s^l:s|l,C=c?h?ut(p,f,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(p,f,g):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,u=0;u<o;u++)u===t?(i[u]=n,a=-1):i[u]=e[u+a];return i}(p,f,h,g);return g?(this.bitmap=A,this.nodes=C,this):new Ye(e,A,C)},Ge.prototype.get=function(e,t,n,r){void 0===t&&(t=we(n));var o=(0===e?t:t>>>e)&v,i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Ge.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=we(r));var u=(0===t?n:n>>>t)&v,l=o===y,s=this.nodes,c=s[u];if(l&&!c)return this;var f=qe(c,e,t+5,n,r,o,i,a);if(f===c)return this;var p=this.count;if(c){if(!f&&--p<ct)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),u=0,l=1,s=t.length;u<s;u++,l<<=1){var c=t[u];void 0!==c&&u!==r&&(o|=l,a[i++]=c)}return new Ye(e,o,a)}(e,s,p,u)}else p++;var d=e&&e===this.ownerID,h=ut(s,u,f,d);return d?(this.count=p,this.nodes=h,this):new Ge(e,p,h)},We.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(pe(n,o[i][0]))return o[i][1];return r},We.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=we(r));var u=o===y;if(n!==this.keyHash)return u?this:(b(a),b(i),et(this,e,t,n,[r,o]));for(var l=this.entries,s=0,c=l.length;s<c&&!pe(r,l[s][0]);s++);var f=s<c;if(f?l[s][1]===o:u)return this;if(b(a),(u||!f)&&b(i),u&&2===c)return new Ve(e,this.keyHash,l[1^s]);var p=e&&e===this.ownerID,d=p?l:_(l);return f?u?s===c-1?d.pop():d[s]=d.pop():d[s]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new We(e,this.keyHash,d)},Ve.prototype.get=function(e,t,n,r){return pe(n,this.entry[0])?this.entry[1]:r},Ve.prototype.update=function(e,t,n,r,o,i,a){var u=o===y,l=pe(r,this.entry[0]);return(l?o===this.entry[1]:u)?this:(b(a),u?void b(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new Ve(e,this.keyHash,[r,o]):(b(i),et(this,e,t,we(r),[r,o])))},Fe.prototype.iterate=We.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Ge.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Ve.prototype.iterate=function(e,t){return e(this.entry)},t(Be,L),Be.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return He(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return He(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return He(e,i.entry);t=this._stack=Qe(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var lt=8,st=16,ct=8;function ft(e){var t=It();if(null==e)return t;if(pt(e))return e;var n=o(e),r=n.size;return 0===r?t:(Le(r),r>0&&r<m?Ct(0,r,5,null,new gt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function pt(e){return!(!e||!e[dt])}t(ft,Ae),ft.of=function(){return this(arguments)},ft.prototype.toString=function(){return this.__toString("List [","]")},ft.prototype.get=function(e,t){if((e=E(this,e))>=0&&e<this.size){var n=_t(this,e+=this._origin);return n&&n.array[e&v]}return t},ft.prototype.set=function(e,t){return function(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?xt(e,t).set(0,n):xt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=I(C);return t>=Mt(e._capacity)?r=bt(r,e.__ownerID,0,t,n,i):o=bt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ct(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},ft.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ft.prototype.insert=function(e,t){return this.splice(e,0,t)},ft.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):It()},ft.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){xt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},ft.prototype.pop=function(){return xt(this,0,-1)},ft.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){xt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},ft.prototype.shift=function(){return xt(this,1)},ft.prototype.merge=function(){return Et(this,void 0,arguments)},ft.prototype.mergeWith=function(t){return Et(this,t,e.call(arguments,1))},ft.prototype.mergeDeep=function(){return Et(this,nt,arguments)},ft.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Et(this,rt(t),n)},ft.prototype.setSize=function(e){return xt(this,0,e)},ft.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:xt(this,S(e,n),k(t,n))},ft.prototype.__iterator=function(e,t){var n=0,r=At(this,t);return new L((function(){var t=r();return t===yt?{value:void 0,done:!0}:O(e,n++,t)}))},ft.prototype.__iterate=function(e,t){for(var n,r=0,o=At(this,t);(n=o())!==yt&&!1!==e(n,r++,this););return r},ft.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},ft.isList=pt;var dt="@@__IMMUTABLE_LIST__@@",ht=ft.prototype;function gt(e,t){this.array=e,this.ownerID=t}ht[dt]=!0,ht[g]=ht.remove,ht.setIn=Ze.setIn,ht.deleteIn=ht.removeIn=Ze.removeIn,ht.update=Ze.update,ht.updateIn=Ze.updateIn,ht.mergeIn=Ze.mergeIn,ht.mergeDeepIn=Ze.mergeDeepIn,ht.withMutations=Ze.withMutations,ht.asMutable=Ze.asMutable,ht.asImmutable=Ze.asImmutable,ht.wasAltered=Ze.wasAltered,gt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&v;if(r>=this.array.length)return new gt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var u=wt(this,e);if(!i)for(var l=0;l<r;l++)u.array[l]=void 0;return o&&(u.array[r]=o),u},gt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&v;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=wt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var mt,vt,yt={};function At(e,t){var n=e._origin,r=e._capacity,o=Mt(r),i=e._tail;return a(e._root,e._level,0);function a(e,u,l){return 0===u?function(e,a){var u=a===o?i&&i.array:e&&e.array,l=a>n?0:n-a,s=r-a;return s>m&&(s=m),function(){if(l===s)return yt;var e=t?--s:l++;return u&&u[e]}}(e,l):function(e,o,i){var u,l=e&&e.array,s=i>n?0:n-i>>o,c=1+(r-i>>o);return c>m&&(c=m),function(){for(;;){if(u){var e=u();if(e!==yt)return e;u=null}if(s===c)return yt;var n=t?--c:s++;u=a(l&&l[n],o-5,i+(n<<o))}}}(e,u,l)}}function Ct(e,t,n,r,o,i,a){var u=Object.create(ht);return u.size=t-e,u._origin=e,u._capacity=t,u._level=n,u._root=r,u._tail=o,u.__ownerID=i,u.__hash=a,u.__altered=!1,u}function It(){return mt||(mt=Ct(0,0,5))}function bt(e,t,n,r,o,i){var a,u=r>>>n&v,l=e&&u<e.array.length;if(!l&&void 0===o)return e;if(n>0){var s=e&&e.array[u],c=bt(s,t,n-5,r,o,i);return c===s?e:((a=wt(e,t)).array[u]=c,a)}return l&&e.array[u]===o?e:(b(i),a=wt(e,t),void 0===o&&u===a.array.length-1?a.array.pop():a.array[u]=o,a)}function wt(e,t){return t&&e&&t===e.ownerID?e:new gt(e?e.array.slice():[],t)}function _t(e,t){if(t>=Mt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=5;return n}}function xt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new w,o=e._origin,i=e._capacity,a=o+t,u=void 0===n?i:n<0?i+n:o+n;if(a===o&&u===i)return e;if(a>=u)return e.clear();for(var l=e._level,s=e._root,c=0;a+c<0;)s=new gt(s&&s.array.length?[void 0,s]:[],r),c+=1<<(l+=5);c&&(a+=c,o+=c,u+=c,i+=c);for(var f=Mt(i),p=Mt(u);p>=1<<l+5;)s=new gt(s&&s.array.length?[s]:[],r),l+=5;var d=e._tail,h=p<f?_t(e,u-1):p>f?new gt([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=s=wt(s,r),m=l;m>5;m-=5){var y=f>>>m&v;g=g.array[y]=wt(g.array[y],r)}g.array[f>>>5&v]=d}if(u<i&&(h=h&&h.removeAfter(r,0,u)),a>=p)a-=p,u-=p,l=5,s=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(c=0;s;){var A=a>>>l&v;if(A!==p>>>l&v)break;A&&(c+=(1<<l)*A),l-=5,s=s.array[A]}s&&a>o&&(s=s.removeBefore(r,l,a-c)),s&&p<f&&(s=s.removeAfter(r,l,p-c)),c&&(a-=c,u-=c)}return e.__ownerID?(e.size=u-a,e._origin=a,e._capacity=u,e._level=l,e._root=s,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Ct(a,u,l,s,h)}function Et(e,t,n){for(var r=[],i=0,u=0;u<n.length;u++){var l=n[u],s=o(l);s.size>i&&(i=s.size),a(l)||(s=s.map((function(e){return le(e)}))),r.push(s)}return i>e.size&&(e=e.setSize(i)),ot(e,t,r)}function Mt(e){return e<m?0:e-1>>>5<<5}function Tt(e){return null==e?Nt():St(e)?e:Nt().withMutations((function(t){var n=r(e);Le(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function St(e){return ze(e)&&c(e)}function kt(e,t,n,r){var o=Object.create(Tt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Nt(){return vt||(vt=kt(Je(),It()))}function Dt(e,t,n){var r,o,i=e._map,a=e._list,u=i.get(t),l=void 0!==u;if(n===y){if(!l)return e;a.size>=m&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&u!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=u===a.size-1?a.pop():a.set(u,void 0))}else if(l){if(n===a.get(u)[1])return e;r=i,o=a.set(u,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):kt(r,o)}function jt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Pt(e){this._iter=e,this.size=e.size}function Lt(e){this._iter=e,this.size=e.size}function Ot(e){this._iter=e,this.size=e.size}function zt(e){var t=qt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=$t,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new L((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Rt(e,t,n){var r=qt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,y);return i===y?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new L((function(){var o=i.next();if(o.done)return o;var a=o.value,u=a[0];return O(r,u,t.call(n,a[1],u,e),o)}))},r}function Ut(e,t){var n=qt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=zt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=$t,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Zt(e,t,n,r){var o=qt(e);return r&&(o.has=function(r){var o=e.get(r,y);return o!==y&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,y);return i!==y&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,u=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return u++,o(e,r?i:u-1,a)}),i),u},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),u=0;return new L((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,s=l[0],c=l[1];if(t.call(n,c,s,e))return O(o,r?s:u++,c,i)}}))},o}function Ft(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),T(t,n,o))return e;var i=S(t,o),a=k(n,o);if(i!=i||a!=a)return Ft(e.toSeq().cacheResult(),t,n,r);var u,l=a-i;l==l&&(u=l<0?0:l);var s=qt(e);return s.size=0===u?u:e.size&&u||void 0,!r&&te(e)&&u>=0&&(s.get=function(t,n){return(t=E(this,t))>=0&&t<u?e.get(t+i,n):n}),s.__iterateUncached=function(t,n){var o=this;if(0===u)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,s=0;return e.__iterate((function(e,n){if(!l||!(l=a++<i))return s++,!1!==t(e,r?n:s-1,o)&&s!==u})),s},s.__iteratorUncached=function(t,n){if(0!==u&&n)return this.cacheResult().__iterator(t,n);var o=0!==u&&e.__iterator(t,n),a=0,l=0;return new L((function(){for(;a++<i;)o.next();if(++l>u)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:O(t,l-1,0===t?void 0:e.value[1],e)}))},s}function Yt(e,t,n,r){var o=qt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var u=!0,l=0;return e.__iterate((function(e,i,s){if(!u||!(u=t.call(n,e,i,s)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var u=e.__iterator(2,i),l=!0,s=0;return new L((function(){var e,i,c;do{if((e=u.next()).done)return r||1===o?e:O(o,s++,0===o?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],l&&(l=t.call(n,c,i,a))}while(l);return 2===o?e:O(o,i,c,e)}))},o}function Gt(e,t,n){var r=qt(e);return r.__iterateUncached=function(r,o){var i=0,u=!1;return function e(l,s){var c=this;l.__iterate((function(o,l){return(!t||s<t)&&a(o)?e(o,s+1):!1===r(o,n?l:i++,c)&&(u=!0),!u}),o)}(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),u=[],l=0;return new L((function(){for(;i;){var e=i.next();if(!1===e.done){var s=e.value;if(2===r&&(s=s[1]),t&&!(u.length<t)||!a(s))return n?e:O(r,l++,s,e);u.push(i),i=s.__iterator(r,o)}else i=u.pop()}return{value:void 0,done:!0}}))},r}function Wt(e,t,n){t||(t=en);var r=u(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?W(i):l(e)?V(i):B(i)}function Vt(e,t,n){if(t||(t=en),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Bt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Bt(t,e,n)?n:e}))}function Bt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Ht(e,t,r){var o=qt(e);return o.size=new K(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),Z(o?e.reverse():e)})),a=0,u=!1;return new L((function(){var n;return u||(n=i.map((function(e){return e.next()})),u=n.some((function(e){return e.done}))),u?{value:void 0,done:!0}:O(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Qt(e,t){return te(e)?t:e.constructor(t)}function Xt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Jt(e){return Le(e.size),x(e)}function Kt(e){return u(e)?r:l(e)?o:i}function qt(e){return Object.create((u(e)?W:l(e)?V:B).prototype)}function $t(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function en(e,t){return e>t?1:e<t?-1:0}function tn(e){var t=Z(e);if(!t){if(!Y(e))throw new TypeError("Expected iterable or array-like: "+e);t=Z(n(e))}return t}function nn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);(function(e,t){try{t.forEach(un.bind(void 0,e))}catch(e){}})(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Oe(i)},o=r.prototype=Object.create(rn);return o.constructor=r,r}t(Tt,Oe),Tt.of=function(){return this(arguments)},Tt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Tt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Tt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Nt()},Tt.prototype.set=function(e,t){return Dt(this,e,t)},Tt.prototype.remove=function(e){return Dt(this,e,y)},Tt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Tt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Tt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Tt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Tt.isOrderedMap=St,Tt.prototype[h]=!0,Tt.prototype[g]=Tt.prototype.remove,t(jt,W),jt.prototype.get=function(e,t){return this._iter.get(e,t)},jt.prototype.has=function(e){return this._iter.has(e)},jt.prototype.valueSeq=function(){return this._iter.valueSeq()},jt.prototype.reverse=function(){var e=this,t=Ut(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},jt.prototype.map=function(e,t){var n=this,r=Rt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},jt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Jt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},jt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),r=t?Jt(this):0;return new L((function(){var o=n.next();return o.done?o:O(e,t?--r:r++,o.value,o)}))},jt.prototype[h]=!0,t(Pt,V),Pt.prototype.includes=function(e){return this._iter.includes(e)},Pt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Pt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t),r=0;return new L((function(){var t=n.next();return t.done?t:O(e,r++,t.value,t)}))},t(Lt,B),Lt.prototype.has=function(e){return this._iter.includes(e)},Lt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Lt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new L((function(){var t=n.next();return t.done?t:O(e,t.value,t.value,t)}))},t(Ot,W),Ot.prototype.entrySeq=function(){return this._iter.toSeq()},Ot.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Xt(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new L((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Xt(r);var o=a(r);return O(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Pt.prototype.cacheResult=jt.prototype.cacheResult=Lt.prototype.cacheResult=Ot.prototype.cacheResult=$t,t(nn,ye),nn.prototype.toString=function(){return this.__toString(an(this)+" {","}")},nn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},nn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},nn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=on(this,Je()))},nn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+an(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:on(this,n)},nn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:on(this,t)},nn.prototype.wasAltered=function(){return this._map.wasAltered()},nn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},nn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},nn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?on(this,t,e):(this.__ownerID=e,this._map=t,this)};var rn=nn.prototype;function on(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function an(e){return e._name||e.constructor.name||"Record"}function un(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ge(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function ln(e){return null==e?gn():sn(e)&&!c(e)?e:gn().withMutations((function(t){var n=i(e);Le(n.size),n.forEach((function(e){return t.add(e)}))}))}function sn(e){return!(!e||!e[fn])}rn[g]=rn.remove,rn.deleteIn=rn.removeIn=Ze.removeIn,rn.merge=Ze.merge,rn.mergeWith=Ze.mergeWith,rn.mergeIn=Ze.mergeIn,rn.mergeDeep=Ze.mergeDeep,rn.mergeDeepWith=Ze.mergeDeepWith,rn.mergeDeepIn=Ze.mergeDeepIn,rn.setIn=Ze.setIn,rn.update=Ze.update,rn.updateIn=Ze.updateIn,rn.withMutations=Ze.withMutations,rn.asMutable=Ze.asMutable,rn.asImmutable=Ze.asImmutable,t(ln,Ce),ln.of=function(){return this(arguments)},ln.fromKeys=function(e){return this(r(e).keySeq())},ln.prototype.toString=function(){return this.__toString("Set {","}")},ln.prototype.has=function(e){return this._map.has(e)},ln.prototype.add=function(e){return dn(this,this._map.set(e,!0))},ln.prototype.remove=function(e){return dn(this,this._map.remove(e))},ln.prototype.clear=function(){return dn(this,this._map.clear())},ln.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},ln.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},ln.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},ln.prototype.merge=function(){return this.union.apply(this,arguments)},ln.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},ln.prototype.sort=function(e){return mn(Wt(this,e))},ln.prototype.sortBy=function(e,t){return mn(Wt(this,t,e))},ln.prototype.wasAltered=function(){return this._map.wasAltered()},ln.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},ln.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},ln.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):