text: !function(e){var t={};function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}__webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,r){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(__webpack_require__.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)__webpack_require__.d(r,n,function(t){return e[t]}.bind(null,n));return r},__webpack_require__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=5)}([function(e,t){e.exports=Framer},function(e,t){e.exports=React},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8);const i=new class Bridge extends n.EventEmitter{constructor(){super(...arguments),this.responders={}}send(e,...t){window._bridge&&window._bridge(e,...t)}respond(e,t){const r=this.responders[e];if(r)return r(t)}receive(e,t){this.emit(e,t)}};window._ipc=i;const o=i;function onBridge(e,...t){if(!t)return;const r=t[0],n=t.slice(1);o.emit(r,...n)}function onBridgeRaw(e,...t){if(!t)return;const r=t[0],n=t.slice(1),i=null!=n?JSON.parse("["+n+"]"):n;o.emit(r,...i)}!function main(){if(window._bridge)return window._onBridge=onBridge,void(window._onBridgeRaw=onBridgeRaw)}(),t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(0),o=r(15),a=r(16),s=r(17),u=r(4);function framerLibraryNeedsCompatibility(){return!i.version||i.version.startsWith("0.")}t.framerLibraryNeedsCompatibility=framerLibraryNeedsCompatibility;class PreviewRenderer extends n.Component{constructor(){super(...arguments),this.eventSession=a.constructFramerEventSession(),this.componentHash=null,this.onRequirePackage=((e,t)=>{const{onRequirePackage:r}=this.props;r&&r(e,t)})}containerStyle(){const{width:e,height:t}=this.props;return{position:"absolute",display:"block",top:0,left:0,width:e,height:t,overflow:"hidden",transformOrigin:"top left",background:"transparent",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"}}render(){const{presentationNode:e,metadata:t,navigation:r}=this.props;if(!e)return null;const a=this.containerStyle(),c=e.props,{width:f,height:h}=c,p=i.Size(this.props.width,this.props.height);c.top=0,c.left=0,c.right=null,c.bottom=null;let l,d=!1,_=i.Device;if(t){const{settings:e}=t,{deviceType:r,skin:n,hand:o,zoom:a,responsive:s,rotate:u,bezel:v}=e;d=e.touch,_=function resolveDeviceType(e){if(e&&"Canvas"!==e){const t=i.Device.registry.resolve(e);if(t)return t;console.warn(`Failed to resolve device named "${e}"`)}return i.Device}(r),l=Object.assign({},_.defaultProps,{deviceSize:i.Size(p.width,p.height),contentSize:i.Size(f,h),skin:n,hand:o,rotate:u,zoom:a,responsive:s,onRequirePackage:this.onRequirePackage});const y=!!t.settings.deviceDescriptor;if(s||y){let e=i.Size.defaultIfZero(p.width,p.height,_.descriptor.screen);_.descriptor.canRotate&&u&&(e=i.Size(e.height,e.width));const t=_.descriptor.pixelRatio||1;c.width=e.width/t,c.height=e.height/t}}else l=Object.assign({},_.defaultProps,{deviceSize:i.Size(p.width,p.height),contentSize:i.Size(c.width,c.height),rotate:!1,zoom:1,responsive:!0,background:"transparent"});if(l.autoScale=s.PersistedData.autoScale,framerLibraryNeedsCompatibility()){const t=u.downgradeProps(e.props);t.top=null,t.left=null,t.bottom=null,t.right=null,e.props=t}let v=!0;return this.componentHash!==this.props.componentHash&&(v=!1,this.componentHash=this.props.componentHash),[n.createElement("style",{key:"touchCursorStyle"},'\n                .__framer-touch-cursor-area, .__framer-touch-cursor-area [data-framer-component-type="Text"] {\n                    cursor: url("images/cursors/touch.png") 32 32, auto;\n                    cursor: -webkit-image-set(url("images/cursors/touch.png") 1x, url("images/cursors/touch@2x.png") 2x) 32 32, auto;\n                }\n\n                .__framer-touch-cursor-area:active, .__framer-touch-cursor-area [data-framer-component-type="Text"]:active {\n                    cursor: url("images/cursors/touch-active.png") 32 32, auto;\n                    cursor: -webkit-image-set(url("images/cursors/touch-active.png") 1x, url("images/cursors/touch-active@2x.png") 2x) 32 32, auto;\n                }\n            '),n.createElement("div",{key:"container",className:d?"__framer-touch-cursor-area":"",style:a},n.createElement(_,l,n.createElement(i.DataObserver,null,n.createElement(i.Navigation,Object.assign({},e.props),o.renderPresentation(e,r,v)))))]}componentDidCatch(e,t){console.warn(e),console.warn(t)}}t.PreviewRenderer=PreviewRenderer;t.WindowSizedPreviewRenderer=class WindowSizedPreviewRenderer extends n.Component{constructor(){super(...arguments),this.state={width:window.innerWidth,height:window.innerHeight},this.onWindowResize=(()=>{this.setState({width:window.innerWidth,height:window.innerHeight})})}componentDidMount(){window.addEventListener("resize",this.onWindowResize)}componentWillUnmount(){window.removeEventListener("resize",this.onWindowResize)}shouldComponentUpdate(e,t){const r=!e.updateCounter||e.updateCounter!==this.props.updateCounter,n=t!==this.state;return r||n}render(){return n.createElement(PreviewRenderer,Object.assign({},this.props,this.state))}}},function(e,t,r){"use strict";function downgradeProps(e){if(!e)return e;const t=e._constraints||{},r=e._border||{};let n=e.style||{},i=void 0;return n&&n.rotate&&(i=parseFloat(n.rotate),n=Object.assign({},n,{rotate:void 0})),e=Object.assign({},e,r,{style:n,rotation:i,_constraints:void 0,_border:void 0}),void 0!==t.autoSize&&(e.autoSize=t.autoSize),void 0!==t.aspectRatio&&(e.aspectRatio=t.aspectRatio),e}Object.defineProperty(t,"__esModule",{value:!0}),t.downgradeProps=downgradeProps,t.downgradePropertyTree=function downgradePropertyTree(e){const t=downgradeProps(e.props);let r=e.children;return r?(r=r.map(downgradePropertyTree),Object.assign({},e,{children:r,props:t})):Object.assign({},e,{props:t})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(6),o=r(0),a=r(7),s=r(10);window.__checkBudget__||(window.__checkBudget__=function __checkBudget__(){}),o.MainLoop.start();const u=document.querySelector("main"),c=n.createElement(s.StandaloneRoot,null);o.setGlobalRenderEnvironment({target:o.RenderTarget.preview,zoom:1,imageBaseURL:"./"}),a.installErrorHandler(),i.render(c,u)},function(e,t){e.exports=ReactDOM},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2),i=r(9);function errorHandler(e){const t=[],r=i.translateErrorEvent(e);t.push(r),n.default.send("runtime.error",t)}t.errorHandler=errorHandler,t.installErrorHandler=function installErrorHandler(){window.addEventListener("error",errorHandler)}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function Events(){}function EE(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function addListener(e,t,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new EE(r,n||e,o),s=i?i+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}function clearEvent(e,t){0==--e._eventsCount?e._events=new Events:delete e._events[t]}function EventEmitter(){this._events=new Events,this._eventsCount=0}Object.create&&(Events.prototype=Object.create(null),(new Events).__proto__||(i=!1)),EventEmitter.prototype.eventNames=function eventNames(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},EventEmitter.prototype.listeners=function listeners(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n<o;n++)a[n]=r[n].fn;return a},EventEmitter.prototype.listenerCount=function listenerCount(e){var t=i?i+e:e,r=this._events[t];return r?r.fn?1:r.length:0},EventEmitter.prototype.emit=function emit(e,t,r,n,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var u,c,f=this._events[s],h=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),h){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,t),!0;case 3:return f.fn.call(f.context,t,r),!0;case 4:return f.fn.call(f.context,t,r,n),!0;case 5:return f.fn.call(f.context,t,r,n,o),!0;case 6:return f.fn.call(f.context,t,r,n,o,a),!0}for(c=1,u=new Array(h-1);c<h;c++)u[c-1]=arguments[c];f.fn.apply(f.context,u)}else{var p,l=f.length;for(c=0;c<l;c++)switch(f[c].once&&this.removeListener(e,f[c].fn,void 0,!0),h){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,t);break;case 3:f[c].fn.call(f[c].context,t,r);break;case 4:f[c].fn.call(f[c].context,t,r,n);break;default:if(!u)for(p=1,u=new Array(h-1);p<h;p++)u[p-1]=arguments[p];f[c].fn.apply(f[c].context,u)}}return!0},EventEmitter.prototype.on=function on(e,t,r){return addListener(this,e,t,r,!1)},EventEmitter.prototype.once=function once(e,t,r){return addListener(this,e,t,r,!0)},EventEmitter.prototype.removeListener=function removeListener(e,t,r,n){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return clearEvent(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||n&&!a.once||r&&a.context!==r||clearEvent(this,o);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==t||n&&!a[s].once||r&&a[s].context!==r)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:clearEvent(this,o)}return this},EventEmitter.prototype.removeAllListeners=function removeAllListeners(e){var t;return e?(t=i?i+e:e,this._events[t]&&clearEvent(this,t)):(this._events=new Events,this._eventsCount=0),this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.addListener=EventEmitter.prototype.on,EventEmitter.prefixed=i,EventEmitter.EventEmitter=EventEmitter,e.exports=EventEmitter},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=null,i=null,o=null,a=null;const s="//# framerSourceMap=",u={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(let f=0;f<c.length;f++)u[c.charCodeAt(f)]=f;function errorFromFramerComponentScript(e,t,r,n,i){const o=function getComponentMappings(e){if(a&&a.script===e)return a;a={script:e,maps:[]};let t=0,r=1;for(;;){const n=e.indexOf("\n",t);if(n<0)return a;if("#"===e[t+2]&&"f"===e[t+4]){const i=e.slice(t,n);if(i.startsWith(s)){const e=i.slice(s.length);a.maps.push({encoded:e,line:r+1,map:void 0})}}r+=1,t=n+1}}(e);let c;for(const a of o.maps){if(a.line>t)break;c=a}if(!c)return{functionName:n,lineNumber:t,colNumber:r,fileName:i,userCode:!1};c.map||(c.map=JSON.parse(atob(c.encoded)));const f=c.map;if(!f)throw Error("assert");i=f.sources[0]||f.file||i;const h=t-c.line,[p,l]=function translateUsingMappings(e,t,r){let n=0,i=0,o=0,a=0,s=0,c=0,f=0;for(let h=0,p=e.length;h<p;h++){const p=e.charCodeAt(h);if(44===p)s=0;else if(59===p){if(n>=t)return[o+1,a+1];n+=1,i=0,s=0}else{const e=u[p];if(void 0===e)continue;if(f|=(31&e)<<c,32&e){c+=5;continue}const h=1&f;f>>=1;const l=h?-f:f;if(0===s){if(i+=l,n>=t&&i>r)return[o+1,a+1]}else 1===s||(2===s?o+=l:3===s&&(a+=l));s++,f=0,c=0}}return[-1,0]}(f.mappings,h,r);return p>=0&&(t=p,r=l),{functionName:n,lineNumber:t,colNumber:r,fileName:i,userCode:!0}}function parseStackElement(e){let t="",r="",n=0,a=0;do{let i=/^\s*([^@]+)@(.*):(\d+):(\d+)$/.exec(e);if(i){t=i[1].trim(),r=i[2].trim(),n=parseInt(i[3]),a=parseInt(i[4]);break}if(i=/^\s*at ([^(]+)\((.*):(\d+):(\d+)\)$/.exec(e)){t=i[1].trim(),r=i[2].trim(),n=parseInt(i[3]),a=parseInt(i[4]);break}if(i=/^\s*at (.*):(\d+):(\d+)$/.exec(e)){r=i[1].trim(),n=parseInt(i[2]),a=parseInt(i[3]);break}if(i=/^\sat (.*)$/.exec(e)){t=i[1].trim();break}t=e.trim()}while(0);if(function isComponentBuildFile(e){return e===o||"index/build.js"===e||"undefined"===e}(r)){const e=i;if("string"==typeof e){const i=errorFromFramerComponentScript(e,n,a,t,r);if(i)return(r=i.fileName).startsWith("../code/")?r=r.slice("../code/".length):r.startsWith("./code")?r=r.slice("./code".length):r.startsWith("./")&&(r=r.slice("./".length)),Object.assign({},i,{fileName:r})}}return{functionName:t,fileName:r,lineNumber:n,colNumber:a,userCode:!1}}function parseStack(e){return e?(function updateErrorGlobals(){const e=window;n=String(e.componentHash||""),i=e.componentScript||null,o=e.componentSrc||null}(),e.split("\n").map(parseStackElement).filter(e=>e)):null}function parseError(e,t){let r=e.name?e.name+": "+e.message:e.message;r=r.split("\n")[0].trim();const n=parseStack(e.stack);if(n&&n.length>0){const e=n.find(e=>e.userCode)||n[0];return{message:r,fileName:e.fileName,lineNumber:e.lineNumber,colNumber:e.colNumber,stack:n}}if(t){return{message:r,fileName:t.filename,lineNumber:t.lineno,colNumber:t.colno}}return{message:r,fileName:"",lineNumber:-1,colNumber:-1}}t.errorFromFramerComponentScript=errorFromFramerComponentScript,t.parseStackElement=parseStackElement,t.parseStack=parseStack,t.parseError=parseError,t.translateErrorEvent=function translateErrorEvent(e){return parseError(e.error,e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(11),o=r(3),a=r(0),s=r(0),u=r(18);t.StandaloneRoot=class StandaloneRoot extends n.Component{constructor(){super(...arguments),this.state={previewData:null,packages:[]},this.setPreviewData=((e,t)=>{a.updateComponentLoader(e,s),this.setState({previewData:t})}),this.onRequirePackage=((e,t)=>{this.setState(r=>r.packages.find(t=>t.package===e)?null:{packages:r.packages.concat([{package:e,displayName:t}])})}),this.onPackagesResolved=(()=>{this.forceUpdate()})}componentDidMount(){window.setPreviewData=this.setPreviewData}render(){const{packages:e,previewData:t}=this.state;if(!t||!t.presentationNode||!t.navigation)return null;const{presentationNode:r,navigation:s,customProperties:c}=t,f=n.createElement(n.Fragment,null,n.createElement(o.WindowSizedPreviewRenderer,Object.assign({},t,{presentationNode:r,navigation:s,componentHash:null,onRequirePackage:this.onRequirePackage,updateCounter:null})),n.createElement(i.PackageManager,{requiredPackages:e,installedPackages:a.componentLoader.packageIdentifiers(),onPackagesResolved:this.onPackagesResolved}));return u.wrapInCustomProperties(f,c)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(2),o=r(12),a=r(13),s=r(14);t.PackageManager=class PackageManager extends n.Component{constructor(){super(...arguments),this.state={serverStoreData:null,triggeredPackages:o.List(),downloadingPackages:o.List(),failedPackages:o.List()},this.pendingRequestServerStoreData=null,this.requestServerStoreData=(()=>{i.default.send("ServerStoreData")}),this.handleServerStoreData=(e=>{null!==this.pendingRequestServerStoreData&&(window.clearTimeout(this.pendingRequestServerStoreData),this.pendingRequestServerStoreData=null),!s.isEqual(this.state.serverStoreData,e,!0)&&this.setState({serverStoreData:e})})}componentDidMount(){this.props.requiredPackages.length&&this.requestServerStoreData(),i.default.on("serverStoreData",this.handleServerStoreData)}componentWillUnmount(){i.default.off("serverStoreData",this.handleServerStoreData)}componentDidUpdate(){this.computePackageListings()}computePackageListings(){const{requiredPackages:e,installedPackages:t}=this.props,{serverStoreData:r}=this.state;if(!e.length)return;if(!r)return void(null===this.pendingRequestServerStoreData&&(this.pendingRequestServerStoreData=window.setTimeout(this.requestServerStoreData,200)));const n=this.state.triggeredPackages.toJS(),a=[],s=[],u=e.filter(e=>-1===t.indexOf(e.package));for(;u.length;){const e=u.pop();if(!e)continue;let t;const r=n.findIndex(t=>!(!t||t.descriptor.package!==e.package));if(-1!==r){if(!(t=n[r]))continue;if(t.retries>3&&s.push(e),t.timestamp>Date.now()-6e4){a.push(e);continue}}const o=!0,c=Date.now();if(t)t.retries++,t.timestamp=c,i.default.send("addPackage",t.descriptor.package,o);else{const t={timestamp:c,descriptor:e,retries:0};n.push(t),i.default.send("addPackage",t.descriptor.package,o)}a.push(e)}const c=o.List(n),f=o.List(s),h=o.List(a);f.equals(this.state.failedPackages)&&h.equals(this.state.downloadingPackages)||(this.setState({failedPackages:f,triggeredPackages:c,downloadingPackages:h}),0===h.size&&0===f.size&&this.props.onPackagesResolved&&this.props.onPackagesResolved()),(f.size||h.size||r.tasks.size)&&setTimeout(this.requestServerStoreData,500)}render(){const{serverStoreData:e,failedPackages:t,downloadingPackages:r}=this.state;if(!e)return null;const i=e.tasks.size>0,o=t.isEmpty(),a=r.isEmpty(),s=r.size>0||i&&o&&a;return n.createElement("div",{style:Object.assign({},u,{opacity:s?1:0})},s&&n.createElement("div",{className:"spinner",style:c}))}};const u={position:"absolute",display:"block",color:"white",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.9)",transition:"opacity 0.2s",opacity:0,fontSize:"11px",lineHeight:"12px",WebkitFontSmoothing:"subpixel-antialiased",textAlign:"center",pointerEvents:"none"},c={position:"absolute",left:"calc(50% - 6px)",top:"calc(50% - 6px)",width:12,height:12,backgroundColor:"white",WebkitMask:`url(${a.SpinnerIconDataUrl})`,WebkitMaskSize:12}},function(e,t,r){e.exports=function(){"use strict";var e=Array.prototype.slice;function createClass(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function Iterable(e){return isIterable(e)?e:Seq(e)}function KeyedIterable(e){return isKeyed(e)?e:KeyedSeq(e)}function IndexedIterable(e){return isIndexed(e)?e:IndexedSeq(e)}function SetIterable(e){return isIterable(e)&&!isAssociative(e)?e:SetSeq(e)}function isIterable(e){return!(!e||!e[t])}function isKeyed(e){return!(!e||!e[r])}function isIndexed(e){return!(!e||!e[n])}function isAssociative(e){return isKeyed(e)||isIndexed(e)}function isOrdered(e){return!(!e||!e[i])}createClass(KeyedIterable,Iterable),createClass(IndexedIterable,Iterable),createClass(SetIterable,Iterable),Iterable.isIterable=isIterable,Iterable.isKeyed=isKeyed,Iterable.isIndexed=isIndexed,Iterable.isAssociative=isAssociative,Iterable.isOrdered=isOrdered,Iterable.Keyed=KeyedIterable,Iterable.Indexed=IndexedIterable,Iterable.Set=SetIterable;var t="@@__IMMUTABLE_ITERABLE__@@",r="@@__IMMUTABLE_KEYED__@@",n="@@__IMMUTABLE_INDEXED__@@",i="@@__IMMUTABLE_ORDERED__@@",o=5,a=1<<o,s=a-1,u={},c={value:!1},f={value:!1};function MakeRef(e){return e.value=!1,e}function SetRef(e){e&&(e.value=!0)}function OwnerID(){}function arrCopy(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),i=0;i<r;i++)n[i]=e[i+t];return n}function ensureSize(e){return void 0===e.size&&(e.size=e.__iterate(returnTrue)),e.size}function wrapIndex(e,t){if("number"!=typeof t){var r=t>>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?ensureSize(e)+t:t}function returnTrue(){return!0}function wholeSlice(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function resolveBegin(e,t){return resolveIndex(e,t,0)}function resolveEnd(e,t){return resolveIndex(e,t,t)}function resolveIndex(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var h=0,p=1,l=2,d="function"==typeof Symbol&&Symbol.iterator,_="@@iterator",v=d||_;function Iterator(e){this.next=e}function iteratorValue(e,t,r,n){var i=0===e?t:1===e?r:[t,r];return n?n.value=i:n={value:i,done:!1},n}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(e){return!!getIteratorFn(e)}function isIterator(e){return e&&"function"==typeof e.next}function getIterator(e){var t=getIteratorFn(e);return t&&t.call(e)}function getIteratorFn(e){var t=e&&(d&&e[d]||e[_]);if("function"==typeof t)return t}function isArrayLike(e){return e&&"number"==typeof e.length}function Seq(e){return null==e?emptySequence():isIterable(e)?e.toSeq():function seqFromValue(e){var t=maybeIndexedSeqFromValue(e)||"object"==typeof e&&new ObjectSeq(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function KeyedSeq(e){return null==e?emptySequence().toKeyedSeq():isIterable(e)?isKeyed(e)?e.toSeq():e.fromEntrySeq():keyedSeqFromValue(e)}function IndexedSeq(e){return null==e?emptySequence():isIterable(e)?isKeyed(e)?e.entrySeq():e.toIndexedSeq():indexedSeqFromValue(e)}function SetSeq(e){return(null==e?emptySequence():isIterable(e)?isKeyed(e)?e.entrySeq():e:indexedSeqFromValue(e)).toSetSeq()}Iterator.prototype.toString=function(){return"[Iterator]"},Iterator.KEYS=h,Iterator.VALUES=p,Iterator.ENTRIES=l,Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()},Iterator.prototype[v]=function(){return this},createClass(Seq,Iterable),Seq.of=function(){return Seq(arguments)},Seq.prototype.toSeq=function(){return this},Seq.prototype.toString=function(){return this.__toString("Seq {","}")},Seq.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Seq.prototype.__iterate=function(e,t){return seqIterate(this,e,t,!0)},Seq.prototype.__iterator=function(e,t){return seqIterator(this,e,t,!0)},createClass(KeyedSeq,Seq),KeyedSeq.prototype.toKeyedSeq=function(){return this},createClass(IndexedSeq,Seq),IndexedSeq.of=function(){return IndexedSeq(arguments)},IndexedSeq.prototype.toIndexedSeq=function(){return this},IndexedSeq.prototype.toString=function(){return this.__toString("Seq [","]")},IndexedSeq.prototype.__iterate=function(e,t){return seqIterate(this,e,t,!1)},IndexedSeq.prototype.__iterator=function(e,t){return seqIterator(this,e,t,!1)},createClass(SetSeq,Seq),SetSeq.of=function(){return SetSeq(arguments)},SetSeq.prototype.toSetSeq=function(){return this},Seq.isSeq=isSeq,Seq.Keyed=KeyedSeq,Seq.Set=SetSeq,Seq.Indexed=IndexedSeq;var y,m,S,g="@@__IMMUTABLE_SEQ__@@";function ArraySeq(e){this._array=e,this.size=e.length}function ObjectSeq(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function IterableSeq(e){this._iterable=e,this.size=e.length||e.size}function IteratorSeq(e){this._iterator=e,this._iteratorCache=[]}function isSeq(e){return!(!e||!e[g])}function emptySequence(){return y||(y=new ArraySeq([]))}function keyedSeqFromValue(e){var t=Array.isArray(e)?new ArraySeq(e).fromEntrySeq():isIterator(e)?new IteratorSeq(e).fromEntrySeq():hasIterator(e)?new IterableSeq(e).fromEntrySeq():"object"==typeof e?new ObjectSeq(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function indexedSeqFromValue(e){var t=maybeIndexedSeqFromValue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function maybeIndexedSeqFromValue(e){return isArrayLike(e)?new ArraySeq(e):isIterator(e)?new IteratorSeq(e):hasIterator(e)?new IterableSeq(e):void 0}function seqIterate(e,t,r,n){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[r?o-a:a];if(!1===t(s[1],n?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,r)}function seqIterator(e,t,r,n){var i=e._cache;if(i){var o=i.length-1,a=0;return new Iterator(function(){var e=i[r?o-a:a];return a++>o?{value:void 0,done:!0}:iteratorValue(t,n?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,r)}function fromJS(e,t){return t?function fromJSWith(e,t,r,n){return Array.isArray(t)?e.call(n,r,IndexedSeq(t).map(function(r,n){return fromJSWith(e,r,n,t)})):isPlainObj(t)?e.call(n,r,KeyedSeq(t).map(function(r,n){return fromJSWith(e,r,n,t)})):t}(t,e,"",{"":e}):fromJSDefault(e)}function fromJSDefault(e){return Array.isArray(e)?IndexedSeq(e).map(fromJSDefault).toList():isPlainObj(e)?KeyedSeq(e).map(fromJSDefault).toMap():e}function isPlainObj(e){return e&&(e.constructor===Object||void 0===e.constructor)}function is(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===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function deepEqual(e,t){if(e===t)return!0;if(!isIterable(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||isKeyed(e)!==isKeyed(t)||isIndexed(e)!==isIndexed(t)||isOrdered(e)!==isOrdered(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!isAssociative(e);if(isOrdered(e)){var n=e.entries();return t.every(function(e,t){var i=n.next().value;return i&&is(i[1],e)&&(r||is(i[0],t))})&&n.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var a=!0,s=t.__iterate(function(t,n){if(r?!e.has(t):i?!is(t,e.get(n,u)):!is(e.get(n,u),t))return a=!1,!1});return a&&e.size===s}function Repeat(e,t){if(!(this instanceof Repeat))return new Repeat(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(m)return m;m=this}}function invariant(e,t){if(!e)throw new Error(t)}function Range(e,t,r){if(!(this instanceof Range))return new Range(e,t,r);if(invariant(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),t<e&&(r=-r),this._start=e,this._end=t,this._step=r,this.size=Math.max(0,Math.ceil((t-e)/r-1)+1),0===this.size){if(S)return S;S=this}}function Collection(){throw TypeError("Abstract")}function KeyedCollection(){}function IndexedCollection(){}function SetCollection(){}Seq.prototype[g]=!0,createClass(ArraySeq,IndexedSeq),ArraySeq.prototype.get=function(e,t){return this.has(e)?this._array[wrapIndex(this,e)]:t},ArraySeq.prototype.__iterate=function(e,t){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===e(r[t?n-i:i],i,this))return i+1;return i},ArraySeq.prototype.__iterator=function(e,t){var r=this._array,n=r.length-1,i=0;return new Iterator(function(){return i>n?{value:void 0,done:!0}:iteratorValue(e,i,r[t?n-i++:i++])})},createClass(ObjectSeq,KeyedSeq),ObjectSeq.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ObjectSeq.prototype.has=function(e){return this._object.hasOwnProperty(e)},ObjectSeq.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var a=n[t?i-o:o];if(!1===e(r[a],a,this))return o+1}return o},ObjectSeq.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,i=n.length-1,o=0;return new Iterator(function(){var a=n[t?i-o:o];return o++>i?{value:void 0,done:!0}:iteratorValue(e,a,r[a])})},ObjectSeq.prototype[i]=!0,createClass(IterableSeq,IndexedSeq),IterableSeq.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=this._iterable,n=getIterator(r),i=0;if(isIterator(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,i++,this););return i},IterableSeq.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterable,n=getIterator(r);if(!isIterator(n))return new Iterator(iteratorDone);var i=0;return new Iterator(function(){var t=n.next();return t.done?t:iteratorValue(e,i++,t.value)})},createClass(IteratorSeq,IndexedSeq),IteratorSeq.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===e(i[o],o++,this))return o;for(;!(r=n.next()).done;){var a=r.value;if(i[o]=a,!1===e(a,o++,this))break}return o},IteratorSeq.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,i=0;return new Iterator(function(){if(i>=n.length){var t=r.next();if(t.done)return t;n[i]=t.value}return iteratorValue(e,i,n[i++])})},createClass(Repeat,IndexedSeq),Repeat.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Repeat.prototype.get=function(e,t){return this.has(e)?this._value:t},Repeat.prototype.includes=function(e){return is(this._value,e)},Repeat.prototype.slice=function(e,t){var r=this.size;return wholeSlice(e,t,r)?this:new Repeat(this._value,resolveEnd(t,r)-resolveBegin(e,r))},Repeat.prototype.reverse=function(){return this},Repeat.prototype.indexOf=function(e){return is(this._value,e)?0:-1},Repeat.prototype.lastIndexOf=function(e){return is(this._value,e)?this.size:-1},Repeat.prototype.__iterate=function(e,t){for(var r=0;r<this.size;r++)if(!1===e(this._value,r,this))return r+1;return r},Repeat.prototype.__iterator=function(e,t){var r=this,n=0;return new Iterator(function(){return n<r.size?iteratorValue(e,n++,r._value):{value:void 0,done:!0}})},Repeat.prototype.equals=function(e){return e instanceof Repeat?is(this._value,e._value):deepEqual(e)},createClass(Range,IndexedSeq),Range.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Range.prototype.get=function(e,t){return this.has(e)?this._start+wrapIndex(this,e)*this._step:t},Range.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Range.prototype.slice=function(e,t){return wholeSlice(e,t,this.size)?this:(e=resolveBegin(e,this.size),(t=resolveEnd(t,this.size))<=e?new Range(0,0):new Range(this.get(e,this._end),this.get(t,this._end),this._step))},Range.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var r=t/this._step;if(r>=0&&r<this.size)return r}return-1},Range.prototype.lastIndexOf=function(e){return this.indexOf(e)},Range.prototype.__iterate=function(e,t){for(var r=this.size-1,n=this._step,i=t?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===e(i,o,this))return o+1;i+=t?-n:n}return o},Range.prototype.__iterator=function(e,t){var r=this.size-1,n=this._step,i=t?this._start+r*n:this._start,o=0;return new Iterator(function(){var a=i;return i+=t?-n:n,o>r?{value:void 0,done:!0}:iteratorValue(e,o++,a)})},Range.prototype.equals=function(e){return e instanceof Range?this._start===e._start&&this._end===e._end&&this._step===e._step:deepEqual(this,e)},createClass(Collection,Iterable),createClass(KeyedCollection,Collection),createClass(IndexedCollection,Collection),createClass(SetCollection,Collection),Collection.Keyed=KeyedCollection,Collection.Indexed=IndexedCollection,Collection.Set=SetCollection;var I="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function imul(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function smi(e){return e>>>1&1073741824|3221225471&e}function hash(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 r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)r^=e/=4294967295;return smi(r)}if("string"===t)return e.length>O?function cachedHashString(e){var t=R[e];return void 0===t&&(t=hashString(e),z===E&&(z=0,R={}),z++,R[e]=t),t}(e):hashString(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function hashJSObj(e){var t;if(k&&void 0!==(t=w.get(e)))return t;if(void 0!==(t=e[x]))return t;if(!q){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[x]))return t;if(void 0!==(t=function getIENodeHash(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=++M,1073741824&M&&(M=0),k)w.set(e,t);else{if(void 0!==b&&!1===b(e))throw new Error("Non-extensible objects are not allowed as keys.");if(q)Object.defineProperty(e,x,{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[x]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[x]=t}}return t}(e);if("function"==typeof e.toString)return hashString(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function hashString(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return smi(t)}var w,b=Object.isExtensible,q=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),k="function"==typeof WeakMap;k&&(w=new WeakMap);var M=0,x="__immutablehash__";"function"==typeof Symbol&&(x=Symbol(x));var O=16,E=255,z=0,R={};function assertNotInfinite(e){invariant(e!==1/0,"Cannot perform this action with an infinite size.")}function Map(e){return null==e?emptyMap():isMap(e)&&!isOrdered(e)?e:emptyMap().withMutations(function(t){var r=KeyedIterable(e);assertNotInfinite(r.size),r.forEach(function(e,r){return t.set(r,e)})})}function isMap(e){return!(!e||!e[N])}createClass(Map,KeyedCollection),Map.of=function(){var t=e.call(arguments,0);return emptyMap().withMutations(function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw new Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}})},Map.prototype.toString=function(){return this.__toString("Map {","}")},Map.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Map.prototype.set=function(e,t){return updateMap(this,e,t)},Map.prototype.setIn=function(e,t){return this.updateIn(e,u,function(){return t})},Map.prototype.remove=function(e){return updateMap(this,e,u)},Map.prototype.deleteIn=function(e){return this.updateIn(e,function(){return u})},Map.prototype.update=function(e,t,r){return 1===arguments.length?e(this):this.updateIn([e],t,r)},Map.prototype.updateIn=function(e,t,r){r||(r=t,t=void 0);var n=function updateInDeepMap(e,t,r,n){var i=e===u,o=t.next();if(o.done){var a=i?r:e,s=n(a);return s===a?e:s}invariant(i||e&&e.set,"invalid keyPath");var c=o.value,f=i?u:e.get(c,u),h=updateInDeepMap(f,t,r,n);return h===f?e:h===u?e.remove(c):(i?emptyMap():e).set(c,h)}(this,forceIterator(e),t,r);return n===u?void 0:n},Map.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},Map.prototype.merge=function(){return mergeIntoMapWith(this,void 0,arguments)},Map.prototype.mergeWith=function(t){var r=e.call(arguments,1);return mergeIntoMapWith(this,t,r)},Map.prototype.mergeIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,emptyMap(),function(e){return"function"==typeof e.merge?e.merge.apply(e,r):r[r.length-1]})},Map.prototype.mergeDeep=function(){return mergeIntoMapWith(this,deepMerger,arguments)},Map.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return mergeIntoMapWith(this,deepMergerWith(t),r)},Map.prototype.mergeDeepIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,emptyMap(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,r):r[r.length-1]})},Map.prototype.sort=function(e){return OrderedMap(sortFactory(this,e))},Map.prototype.sortBy=function(e,t){return OrderedMap(sortFactory(this,t,e))},Map.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Map.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)},Map.prototype.asImmutable=function(){return this.__ensureOwner()},Map.prototype.wasAltered=function(){return this.__altered},Map.prototype.__iterator=function(e,t){return new MapIterator(this,e,t)},Map.prototype.__iterate=function(e,t){var r=this,n=0;return this._root&&this._root.iterate(function(t){return n++,e(t[1],t[0],r)},t),n},Map.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?makeMap(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Map.isMap=isMap;var C,N="@@__IMMUTABLE_MAP__@@",D=Map.prototype;function ArrayMapNode(e,t){this.ownerID=e,this.entries=t}function BitmapIndexedNode(e,t,r){this.ownerID=e,this.bitmap=t,this.nodes=r}function HashArrayMapNode(e,t,r){this.ownerID=e,this.count=t,this.nodes=r}function HashCollisionNode(e,t,r){this.ownerID=e,this.keyHash=t,this.entries=r}function ValueNode(e,t,r){this.ownerID=e,this.keyHash=t,this.entry=r}function MapIterator(e,t,r){this._type=t,this._reverse=r,this._stack=e._root&&mapIteratorFrame(e._root)}function mapIteratorValue(e,t){return iteratorValue(e,t[0],t[1])}function mapIteratorFrame(e,t){return{node:e,index:0,__prev:t}}function makeMap(e,t,r,n){var i=Object.create(D);return i.size=e,i._root=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function emptyMap(){return C||(C=makeMap(0))}function updateMap(e,t,r){var n,i;if(e._root){var o=MakeRef(c),a=MakeRef(f);if(n=updateNode(e._root,e.__ownerID,0,void 0,t,r,o,a),!a.value)return e;i=e.size+(o.value?r===u?-1:1:0)}else{if(r===u)return e;i=1,n=new ArrayMapNode(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=i,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?makeMap(i,n):emptyMap()}function updateNode(e,t,r,n,i,o,a,s){return e?e.update(t,r,n,i,o,a,s):o===u?e:(SetRef(s),SetRef(a),new ValueNode(t,n,[i,o]))}function isLeafNode(e){return e.constructor===ValueNode||e.constructor===HashCollisionNode}function mergeIntoNode(e,t,r,n,i){if(e.keyHash===n)return new HashCollisionNode(t,n,[e.entry,i]);var a,u=(0===r?e.keyHash:e.keyHash>>>r)&s,c=(0===r?n:n>>>r)&s,f=u===c?[mergeIntoNode(e,t,r+o,n,i)]:(a=new ValueNode(t,n,i),u<c?[e,a]:[a,e]);return new BitmapIndexedNode(t,1<<u|1<<c,f)}function mergeIntoMapWith(e,t,r){for(var n=[],i=0;i<r.length;i++){var o=r[i],a=KeyedIterable(o);isIterable(o)||(a=a.map(function(e){return fromJS(e)})),n.push(a)}return mergeIntoCollectionWith(e,t,n)}function deepMerger(e,t,r){return e&&e.mergeDeep&&isIterable(t)?e.mergeDeep(t):is(e,t)?e:t}function deepMergerWith(e){return function(t,r,n){if(t&&t.mergeDeepWith&&isIterable(r))return t.mergeDeepWith(e,r);var i=e(t,r,n);return is(t,i)?t:i}}function mergeIntoCollectionWith(e,t,r){return 0===(r=r.filter(function(e){return 0!==e.size})).length?e:0!==e.size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var n=t?function(r,n){e.update(n,u,function(e){return e===u?r:t(e,r,n)})}:function(t,r){e.set(r,t)},i=0;i<r.length;i++)r[i].forEach(n)}):e.constructor(r[0])}function popCount(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function setIn(e,t,r,n){var i=n?e:arrCopy(e);return i[t]=r,i}D[N]=!0,D.delete=D.remove,D.removeIn=D.deleteIn,ArrayMapNode.prototype.get=function(e,t,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(is(r,i[o][0]))return i[o][1];return n},ArrayMapNode.prototype.update=function(e,t,r,n,i,o,a){for(var s=i===u,c=this.entries,f=0,h=c.length;f<h&&!is(n,c[f][0]);f++);var p=f<h;if(p?c[f][1]===i:s)return this;if(SetRef(a),(s||!p)&&SetRef(o),!s||1!==c.length){if(!p&&!s&&c.length>=A)return function createNodes(e,t,r,n){e||(e=new OwnerID);for(var i=new ValueNode(e,hash(r),[r,n]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,c,n,i);var l=e&&e===this.ownerID,d=l?c:arrCopy(c);return p?s?f===h-1?d.pop():d[f]=d.pop():d[f]=[n,i]:d.push([n,i]),l?(this.entries=d,this):new ArrayMapNode(e,d)}},BitmapIndexedNode.prototype.get=function(e,t,r,n){void 0===t&&(t=hash(r));var i=1<<((0===e?t:t>>>e)&s),a=this.bitmap;return 0==(a&i)?n:this.nodes[popCount(a&i-1)].get(e+o,t,r,n)},BitmapIndexedNode.prototype.update=function(e,t,r,n,i,c,f){void 0===r&&(r=hash(n));var h=(0===t?r:r>>>t)&s,p=1<<h,l=this.bitmap,d=0!=(l&p);if(!d&&i===u)return this;var _=popCount(l&p-1),v=this.nodes,y=d?v[_]:void 0,m=updateNode(y,e,t+o,r,n,i,c,f);if(m===y)return this;if(!d&&m&&v.length>=L)return function expandNodes(e,t,r,n,i){for(var o=0,s=new Array(a),u=0;0!==r;u++,r>>>=1)s[u]=1&r?t[o++]:void 0;return s[n]=i,new HashArrayMapNode(e,o+1,s)}(e,v,l,h,m);if(d&&!m&&2===v.length&&isLeafNode(v[1^_]))return v[1^_];if(d&&m&&1===v.length&&isLeafNode(m))return m;var S=e&&e===this.ownerID,g=d?m?l:l^p:l|p,I=d?m?setIn(v,_,m,S):function spliceOut(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var i=new Array(n),o=0,a=0;a<n;a++)a===t&&(o=1),i[a]=e[a+o];return i}(v,_,S):function spliceIn(e,t,r,n){var i=e.length+1;if(n&&t+1===i)return e[t]=r,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=r,a=-1):o[s]=e[s+a];return o}(v,_,m,S);return S?(this.bitmap=g,this.nodes=I,this):new BitmapIndexedNode(e,g,I)},HashArrayMapNode.prototype.get=function(e,t,r,n){void 0===t&&(t=hash(r));var i=(0===e?t:t>>>e)&s,a=this.nodes[i];return a?a.get(e+o,t,r,n):n},HashArrayMapNode.prototype.update=function(e,t,r,n,i,a,c){void 0===r&&(r=hash(n));var f=(0===t?r:r>>>t)&s,h=i===u,p=this.nodes,l=p[f];if(h&&!l)return this;var d=updateNode(l,e,t+o,r,n,i,a,c);if(d===l)return this;var _=this.count;if(l){if(!d&&--_<P)return function packNodes(e,t,r,n){for(var i=0,o=0,a=new Array(r),s=0,u=1,c=t.length;s<c;s++,u<<=1){var f=t[s];void 0!==f&&s!==n&&(i|=u,a[o++]=f)}return new BitmapIndexedNode(e,i,a)}(e,p,_,f)}else _++;var v=e&&e===this.ownerID,y=setIn(p,f,d,v);return v?(this.count=_,this.nodes=y,this):new HashArrayMapNode(e,_,y)},HashCollisionNode.prototype.get=function(e,t,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(is(r,i[o][0]))return i[o][1];return n},HashCollisionNode.prototype.update=function(e,t,r,n,i,o,a){void 0===r&&(r=hash(n));var s=i===u;if(r!==this.keyHash)return s?this:(SetRef(a),SetRef(o),mergeIntoNode(this,e,t,r,[n,i]));for(var c=this.entries,f=0,h=c.length;f<h&&!is(n,c[f][0]);f++);var p=f<h;if(p?c[f][1]===i:s)return this;if(SetRef(a),(s||!p)&&SetRef(o),s&&2===h)return new ValueNode(e,this.keyHash,c[1^f]);var l=e&&e===this.ownerID,d=l?c:arrCopy(c);return p?s?f===h-1?d.pop():d[f]=d.pop():d[f]=[n,i]:d.push([n,i]),l?(this.entries=d,this):new HashCollisionNode(e,this.keyHash,d)},ValueNode.prototype.get=function(e,t,r,n){return is(r,this.entry[0])?this.entry[1]:n},ValueNode.prototype.update=function(e,t,r,n,i,o,a){var s=i===u,c=is(n,this.entry[0]);return(c?i===this.entry[1]:s)?this:(SetRef(a),s?void SetRef(o):c?e&&e===this.ownerID?(this.entry[1]=i,this):new ValueNode(e,this.keyHash,[n,i]):(SetRef(o),mergeIntoNode(this,e,t,hash(n),[n,i])))},ArrayMapNode.prototype.iterate=HashCollisionNode.prototype.iterate=function(e,t){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===e(r[t?i-n:n]))return!1},BitmapIndexedNode.prototype.iterate=HashArrayMapNode.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[t?i-n:n];if(o&&!1===o.iterate(e,t))return!1}},ValueNode.prototype.iterate=function(e,t){return e(this.entry)},createClass(MapIterator,Iterator),MapIterator.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var r,n=t.node,i=t.index++;if(n.entry){if(0===i)return mapIteratorValue(e,n.entry)}else if(n.entries){if(r=n.entries.length-1,i<=r)return mapIteratorValue(e,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,i<=r){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return mapIteratorValue(e,o.entry);t=this._stack=mapIteratorFrame(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var A=a/4,L=a/2,P=a/4;function List(e){var t=emptyList();if(null==e)return t;if(isList(e))return e;var r=IndexedIterable(e),n=r.size;return 0===n?t:(assertNotInfinite(n),n>0&&n<a?makeList(0,n,o,null,new VNode(r.toArray())):t.withMutations(function(e){e.setSize(n),r.forEach(function(t,r){return e.set(r,t)})}))}function isList(e){return!(!e||!e[F])}createClass(List,IndexedCollection),List.of=function(){return this(arguments)},List.prototype.toString=function(){return this.__toString("List [","]")},List.prototype.get=function(e,t){if((e=wrapIndex(this,e))>=0&&e<this.size){var r=listNodeFor(this,e+=this._origin);return r&&r.array[e&s]}return t},List.prototype.set=function(e,t){return function updateList(e,t,r){if((t=wrapIndex(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?setListBounds(e,t).set(0,r):setListBounds(e,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,i=e._root,o=MakeRef(f);return t>=getTailOffset(e._capacity)?n=updateVNode(n,e.__ownerID,0,t,r,o):i=updateVNode(i,e.__ownerID,e._level,t,r,o),o.value?e.__ownerID?(e._root=i,e._tail=n,e.__hash=void 0,e.__altered=!0,e):makeList(e._origin,e._capacity,e._level,i,n):e}(this,e,t)},List.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},List.prototype.insert=function(e,t){return this.splice(e,0,t)},List.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=o,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):emptyList()},List.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(r){setListBounds(r,0,t+e.length);for(var n=0;n<e.length;n++)r.set(t+n,e[n])})},List.prototype.pop=function(){return setListBounds(this,0,-1)},List.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){setListBounds(t,-e.length);for(var r=0;r<e.length;r++)t.set(r,e[r])})},List.prototype.shift=function(){return setListBounds(this,1)},List.prototype.merge=function(){return mergeIntoListWith(this,void 0,arguments)},List.prototype.mergeWith=function(t){var r=e.call(arguments,1);return mergeIntoListWith(this,t,r)},List.prototype.mergeDeep=function(){return mergeIntoListWith(this,deepMerger,arguments)},List.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return mergeIntoListWith(this,deepMergerWith(t),r)},List.prototype.setSize=function(e){return setListBounds(this,0,e)},List.prototype.slice=function(e,t){var r=this.size;return wholeSlice(e,t,r)?this:setListBounds(this,resolveBegin(e,r),resolveEnd(t,r))},List.prototype.__iterator=function(e,t){var r=0,n=iterateList(this,t);return new Iterator(function(){var t=n();return t===V?{value:void 0,done:!0}:iteratorValue(e,r++,t)})},List.prototype.__iterate=function(e,t){for(var r,n=0,i=iterateList(this,t);(r=i())!==V&&!1!==e(r,n++,this););return n},List.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?makeList(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},List.isList=isList;var F="@@__IMMUTABLE_LIST__@@",K=List.prototype;function VNode(e,t){this.array=e,this.ownerID=t}K[F]=!0,K.delete=K.remove,K.setIn=D.setIn,K.deleteIn=K.removeIn=D.removeIn,K.update=D.update,K.updateIn=D.updateIn,K.mergeIn=D.mergeIn,K.mergeDeepIn=D.mergeDeepIn,K.withMutations=D.withMutations,K.asMutable=D.asMutable,K.asImmutable=D.asImmutable,K.wasAltered=D.wasAltered,VNode.prototype.removeBefore=function(e,t,r){if(r===t?1<<t:0===this.array.length)return this;var n=r>>>t&s;if(n>=this.array.length)return new VNode([],e);var i,a=0===n;if(t>0){var u=this.array[n];if((i=u&&u.removeBefore(e,t-o,r))===u&&a)return this}if(a&&!i)return this;var c=editableVNode(this,e);if(!a)for(var f=0;f<n;f++)c.array[f]=void 0;return i&&(c.array[n]=i),c},VNode.prototype.removeAfter=function(e,t,r){if(r===(t?1<<t:0)||0===this.array.length)return this;var n,i=r-1>>>t&s;if(i>=this.array.length)return this;if(t>0){var a=this.array[i];if((n=a&&a.removeAfter(e,t-o,r))===a&&i===this.array.length-1)return this}var u=editableVNode(this,e);return u.array.splice(i+1),n&&(u.array[i]=n),u};var j,T,V={};function iterateList(e,t){var r=e._origin,n=e._capacity,i=getTailOffset(n),s=e._tail;return iterateNodeOrLeaf(e._root,e._level,0);function iterateNodeOrLeaf(e,u,c){return 0===u?function iterateLeaf(e,o){var u=o===i?s&&s.array:e&&e.array,c=o>r?0:r-o,f=n-o;return f>a&&(f=a),function(){if(c===f)return V;var e=t?--f:c++;return u&&u[e]}}(e,c):function iterateNode(e,i,s){var u,c=e&&e.array,f=s>r?0:r-s>>i,h=1+(n-s>>i);return h>a&&(h=a),function(){for(;;){if(u){var e=u();if(e!==V)return e;u=null}if(f===h)return V;var r=t?--h:f++;u=iterateNodeOrLeaf(c&&c[r],i-o,s+(r<<i))}}}(e,u,c)}}function makeList(e,t,r,n,i,o,a){var s=Object.create(K);return s.size=t-e,s._origin=e,s._capacity=t,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function emptyList(){return j||(j=makeList(0,0,o))}function updateVNode(e,t,r,n,i,a){var u,c=n>>>r&s,f=e&&c<e.array.length;if(!f&&void 0===i)return e;if(r>0){var h=e&&e.array[c],p=updateVNode(h,t,r-o,n,i,a);return p===h?e:((u=editableVNode(e,t)).array[c]=p,u)}return f&&e.array[c]===i?e:(SetRef(a),u=editableVNode(e,t),void 0===i&&c===u.array.length-1?u.array.pop():u.array[c]=i,u)}function editableVNode(e,t){return t&&e&&t===e.ownerID?e:new VNode(e?e.array.slice():[],t)}function listNodeFor(e,t){if(t>=getTailOffset(e._capacity))return e._tail;if(t<1<<e._level+o){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&s],n-=o;return r}}function setListBounds(e,t,r){void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new OwnerID,i=e._origin,a=e._capacity,u=i+t,c=void 0===r?a:r<0?a+r:i+r;if(u===i&&c===a)return e;if(u>=c)return e.clear();for(var f=e._level,h=e._root,p=0;u+p<0;)h=new VNode(h&&h.array.length?[void 0,h]:[],n),p+=1<<(f+=o);p&&(u+=p,i+=p,c+=p,a+=p);for(var l=getTailOffset(a),d=getTailOffset(c);d>=1<<f+o;)h=new VNode(h&&h.array.length?[h]:[],n),f+=o;var _=e._tail,v=d<l?listNodeFor(e,c-1):d>l?new VNode([],n):_;if(_&&d>l&&u<a&&_.array.length){for(var y=h=editableVNode(h,n),m=f;m>o;m-=o){var S=l>>>m&s;y=y.array[S]=editableVNode(y.array[S],n)}y.array[l>>>o&s]=_}if(c<a&&(v=v&&v.removeAfter(n,0,c)),u>=d)u-=d,c-=d,f=o,h=null,v=v&&v.removeBefore(n,0,u);else if(u>i||d<l){for(p=0;h;){var g=u>>>f&s;if(g!==d>>>f&s)break;g&&(p+=(1<<f)*g),f-=o,h=h.array[g]}h&&u>i&&(h=h.removeBefore(n,f,u-p)),h&&d<l&&(h=h.removeAfter(n,f,d-p)),p&&(u-=p,c-=p)}return e.__ownerID?(e.size=c-u,e._origin=u,e._capacity=c,e._level=f,e._root=h,e._tail=v,e.__hash=void 0,e.__altered=!0,e):makeList(u,c,f,h,v)}function mergeIntoListWith(e,t,r){for(var n=[],i=0,o=0;o<r.length;o++){var a=r[o],s=IndexedIterable(a);s.size>i&&(i=s.size),isIterable(a)||(s=s.map(function(e){return fromJS(e)})),n.push(s)}return i>e.size&&(e=e.setSize(i)),mergeIntoCollectionWith(e,t,n)}function getTailOffset(e){return e<a?0:e-1>>>o<<o}function OrderedMap(e){return null==e?emptyOrderedMap():isOrderedMap(e)?e:emptyOrderedMap().withMutations(function(t){var r=KeyedIterable(e);assertNotInfinite(r.size),r.forEach(function(e,r){return t.set(r,e)})})}function isOrderedMap(e){return isMap(e)&&isOrdered(e)}function makeOrderedMap(e,t,r,n){var i=Object.create(OrderedMap.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=r,i.__hash=n,i}function emptyOrderedMap(){return T||(T=makeOrderedMap(emptyMap(),emptyList()))}function updateOrderedMap(e,t,r){var n,i,o=e._map,s=e._list,c=o.get(t),f=void 0!==c;if(r===u){if(!f)return e;s.size>=a&&s.size>=2*o.size?(i=s.filter(function(e,t){return void 0!==e&&c!==t}),n=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(n.__ownerID=i.__ownerID=e.__ownerID)):(n=o.remove(t),i=c===s.size-1?s.pop():s.set(c,void 0))}else if(f){if(r===s.get(c)[1])return e;n=o,i=s.set(c,[t,r])}else n=o.set(t,s.size),i=s.set(s.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=i,e.__hash=void 0,e):makeOrderedMap(n,i)}function ToKeyedSequence(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ToIndexedSequence(e){this._iter=e,this.size=e.size}function ToSetSequence(e){this._iter=e,this.size=e.size}function FromEntriesSequence(e){this._iter=e,this.size=e.size}function flipFactory(e){var t=makeSequence(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=cacheResultThrough,t.__iterateUncached=function(t,r){var n=this;return e.__iterate(function(e,r){return!1!==t(r,e,n)},r)},t.__iteratorUncached=function(t,r){if(t===l){var n=e.__iterator(t,r);return new Iterator(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===p?h:p,r)},t}function mapFactory(e,t,r){var n=makeSequence(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,i){var o=e.get(n,u);return o===u?i:t.call(r,o,n,e)},n.__iterateUncached=function(n,i){var o=this;return e.__iterate(function(e,i,a){return!1!==n(t.call(r,e,i,a),i,o)},i)},n.__iteratorUncached=function(n,i){var o=e.__iterator(l,i);return new Iterator(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return iteratorValue(n,s,t.call(r,a[1],s,e),i)})},n}function reverseFactory(e,t){var r=makeSequence(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=flipFactory(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=cacheResultThrough,r.__iterate=function(t,r){var n=this;return e.__iterate(function(e,r){return t(e,r,n)},!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function filterFactory(e,t,r,n){var i=makeSequence(e);return n&&(i.has=function(n){var i=e.get(n,u);return i!==u&&!!t.call(r,i,n,e)},i.get=function(n,i){var o=e.get(n,u);return o!==u&&t.call(r,o,n,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,u){if(t.call(r,e,o,u))return s++,i(e,n?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(l,o),s=0;return new Iterator(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],f=u[1];if(t.call(r,f,c,e))return iteratorValue(i,n?c:s++,f,o)}})},i}function sliceFactory(e,t,r,n){var i=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r===1/0?r=i:r|=0),wholeSlice(t,r,i))return e;var o=resolveBegin(t,i),a=resolveEnd(r,i);if(o!=o||a!=a)return sliceFactory(e.toSeq().cacheResult(),t,r,n);var s,u=a-o;u==u&&(s=u<0?0:u);var c=makeSequence(e);return c.size=0===s?s:e.size&&s||void 0,!n&&isSeq(e)&&s>=0&&(c.get=function(t,r){return(t=wrapIndex(this,t))>=0&&t<s?e.get(t+o,r):r}),c.__iterateUncached=function(t,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(t,r);var a=0,u=!0,c=0;return e.__iterate(function(e,r){if(!u||!(u=a++<o))return c++,!1!==t(e,n?r:c-1,i)&&c!==s}),c},c.__iteratorUncached=function(t,r){if(0!==s&&r)return this.cacheResult().__iterator(t,r);var i=0!==s&&e.__iterator(t,r),a=0,u=0;return new Iterator(function(){for(;a++<o;)i.next();if(++u>s)return{value:void 0,done:!0};var e=i.next();return n||t===p?e:iteratorValue(t,u-1,t===h?void 0:e.value[1],e)})},c}function skipWhileFactory(e,t,r,n){var i=makeSequence(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(r,e,o,c)))return u++,i(e,n?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(l,o),u=!0,c=0;return new Iterator(function(){var e,o,f;do{if((e=s.next()).done)return n||i===p?e:iteratorValue(i,c++,i===h?void 0:e.value[1],e);var d=e.value;o=d[0],f=d[1],u&&(u=t.call(r,f,o,a))}while(u);return i===l?e:iteratorValue(i,o,f,e)})},i}function flattenFactory(e,t,r){var n=makeSequence(e);return n.__iterateUncached=function(n,i){var o=0,a=!1;return function flatDeep(e,s){var u=this;e.__iterate(function(e,i){return(!t||s<t)&&isIterable(e)?flatDeep(e,s+1):!1===n(e,r?i:o++,u)&&(a=!0),!a},i)}(e,0),o},n.__iteratorUncached=function(n,i){var o=e.__iterator(n,i),a=[],s=0;return new Iterator(function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(n===l&&(u=u[1]),t&&!(a.length<t)||!isIterable(u))return r?e:iteratorValue(n,s++,u,e);a.push(o),o=u.__iterator(n,i)}else o=a.pop()}return{value:void 0,done:!0}})},n}function sortFactory(e,t,r){t||(t=defaultComparator);var n=isKeyed(e),i=0,o=e.toSeq().map(function(t,n){return[n,t,i++,r?r(t,n,e):t]}).toArray();return o.sort(function(e,r){return t(e[3],r[3])||e[2]-r[2]}).forEach(n?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),n?KeyedSeq(o):isIndexed(e)?IndexedSeq(o):SetSeq(o)}function maxFactory(e,t,r){if(t||(t=defaultComparator),r){var n=e.toSeq().map(function(t,n){return[t,r(t,n,e)]}).reduce(function(e,r){return maxCompare(t,e[1],r[1])?r:e});return n&&n[0]}return e.reduce(function(e,r){return maxCompare(t,e,r)?r:e})}function maxCompare(e,t,r){var n=e(r,t);return 0===n&&r!==t&&(null==r||r!=r)||n>0}function zipWithFactory(e,t,r){var n=makeSequence(e);return n.size=new ArraySeq(r).map(function(e){return e.size}).min(),n.__iterate=function(e,t){for(var r,n=this.__iterator(p,t),i=0;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},n.__iteratorUncached=function(e,n){var i=r.map(function(e){return e=Iterable(e),getIterator(n?e.reverse():e)}),o=0,a=!1;return new Iterator(function(){var r;return a||(r=i.map(function(e){return e.next()}),a=r.some(function(e){return e.done})),a?{value:void 0,done:!0}:iteratorValue(e,o++,t.apply(null,r.map(function(e){return e.value})))})},n}function reify(e,t){return isSeq(e)?t:e.constructor(t)}function validateEntry(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function resolveSize(e){return assertNotInfinite(e.size),ensureSize(e)}function iterableClass(e){return isKeyed(e)?KeyedIterable:isIndexed(e)?IndexedIterable:SetIterable}function makeSequence(e){return Object.create((isKeyed(e)?KeyedSeq:isIndexed(e)?IndexedSeq:SetSeq).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function defaultComparator(e,t){return e>t?1:e<t?-1:0}function forceIterator(e){var t=getIterator(e);if(!t){if(!isArrayLike(e))throw new TypeError("Expected iterable or array-like: "+e);t=getIterator(Iterable(e))}return t}function Record(e,t){var r,n=function Record(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var a=Object.keys(e);!function setProps(e,t){try{t.forEach(function setProp(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){invariant(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}.bind(void 0,e))}catch(r){}}(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=Map(o)},i=n.prototype=Object.create(B);return i.constructor=n,n}createClass(OrderedMap,Map),OrderedMap.of=function(){return this(arguments)},OrderedMap.prototype.toString=function(){return this.__toString("OrderedMap {","}")},OrderedMap.prototype.get=function(e,t){var r=this._map.get(e);return void 0!==r?this._list.get(r)[1]:t},OrderedMap.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):emptyOrderedMap()},OrderedMap.prototype.set=function(e,t){return updateOrderedMap(this,e,t)},OrderedMap.prototype.remove=function(e){return updateOrderedMap(this,e,u)},OrderedMap.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},OrderedMap.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],r)},t)},OrderedMap.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},OrderedMap.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),r=this._list.__ensureOwner(e);return e?makeOrderedMap(t,r,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=r,this)},OrderedMap.isOrderedMap=isOrderedMap,OrderedMap.prototype[i]=!0,OrderedMap.prototype.delete=OrderedMap.prototype.remove,createClass(ToKeyedSequence,KeyedSeq),ToKeyedSequence.prototype.get=function(e,t){return this._iter.get(e,t)},ToKeyedSequence.prototype.has=function(e){return this._iter.has(e)},ToKeyedSequence.prototype.valueSeq=function(){return this._iter.valueSeq()},ToKeyedSequence.prototype.reverse=function(){var e=this,t=reverseFactory(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},ToKeyedSequence.prototype.map=function(e,t){var r=this,n=mapFactory(this,e,t);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(e,t)}),n},ToKeyedSequence.prototype.__iterate=function(e,t){var r,n=this;return this._iter.__iterate(this._useKeys?function(t,r){return e(t,r,n)}:(r=t?resolveSize(this):0,function(i){return e(i,t?--r:r++,n)}),t)},ToKeyedSequence.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var r=this._iter.__iterator(p,t),n=t?resolveSize(this):0;return new Iterator(function(){var i=r.next();return i.done?i:iteratorValue(e,t?--n:n++,i.value,i)})},ToKeyedSequence.prototype[i]=!0,createClass(ToIndexedSequence,IndexedSeq),ToIndexedSequence.prototype.includes=function(e){return this._iter.includes(e)},ToIndexedSequence.prototype.__iterate=function(e,t){var r=this,n=0;return this._iter.__iterate(function(t){return e(t,n++,r)},t)},ToIndexedSequence.prototype.__iterator=function(e,t){var r=this._iter.__iterator(p,t),n=0;return new Iterator(function(){var t=r.next();return t.done?t:iteratorValue(e,n++,t.value,t)})},createClass(ToSetSequence,SetSeq),ToSetSequence.prototype.has=function(e){return this._iter.includes(e)},ToSetSequence.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){return e(t,t,r)},t)},ToSetSequence.prototype.__iterator=function(e,t){var r=this._iter.__iterator(p,t);return new Iterator(function(){var t=r.next();return t.done?t:iteratorValue(e,t.value,t.value,t)})},createClass(FromEntriesSequence,KeyedSeq),FromEntriesSequence.prototype.entrySeq=function(){return this._iter.toSeq()},FromEntriesSequence.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){if(t){validateEntry(t);var n=isIterable(t);return e(n?t.get(1):t[1],n?t.get(0):t[0],r)}},t)},FromEntriesSequence.prototype.__iterator=function(e,t){var r=this._iter.__iterator(p,t);return new Iterator(function(){for(;;){var t=r.next();if(t.done)return t;var n=t.value;if(n){validateEntry(n);var i=isIterable(n);return iteratorValue(e,i?n.get(0):n[0],i?n.get(1):n[1],t)}}})},ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=cacheResultThrough,createClass(Record,KeyedCollection),Record.prototype.toString=function(){return this.__toString(recordName(this)+" {","}")},Record.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Record.prototype.get=function(e,t){if(!this.has(e))return t;var r=this._defaultValues[e];return this._map?this._map.get(e,r):r},Record.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=makeRecord(this,emptyMap()))},Record.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+recordName(this));if(this._map&&!this._map.has(e)){var r=this._defaultValues[e];if(t===r)return this}var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:makeRecord(this,n)},Record.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:makeRecord(this,t)},Record.prototype.wasAltered=function(){return this._map.wasAltered()},Record.prototype.__iterator=function(e,t){var r=this;return KeyedIterable(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Record.prototype.__iterate=function(e,t){var r=this;return KeyedIterable(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Record.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?makeRecord(this,t,e):(this.__ownerID=e,this._map=t,this)};var B=Record.prototype;function makeRecord(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._map=t,n.__ownerID=r,n}function recordName(e){return e._name||e.constructor.name||"Record"}function Set(e){return null==e?emptySet():isSet(e)&&!isOrdered(e)?e:emptySet().withMutations(function(t){var r=SetIterable(e);assertNotInfinite(r.size),r.forEach(function(e){return t.add(e)})})}function isSet(e){return!(!e||!e[U])}B.delete=B.remove,B.deleteIn=B.removeIn=D.removeIn,B.merge=D.merge,B.mergeWith=D.mergeWith,B.mergeIn=D.mergeIn,B.mergeDeep=D.mergeDeep,B.mergeDeepWith=D.mergeDeepWith,B.mergeDeepIn=D.mergeDeepIn,B.setIn=D.setIn,B.update=D.update,B.updateIn=D.updateIn,B.withMutations=D.withMutations,B.asMutable=D.asMutable,B.asImmutable=D.asImmutable,createClass(Set,SetCollection),Set.of=function(){return this(arguments)},Set.fromKeys=function(e){return this(KeyedIterable(e).keySeq())},Set.prototype.toString=function(){return this.__toString("Set {","}")},Set.prototype.has=function(e){return this._map.has(e)},Set.prototype.add=function(e){return updateSet(this,this._map.set(e,!0))},Set.prototype.remove=function(e){return updateSet(this,this._map.remove(e))},Set.prototype.clear=function(){return updateSet(this,this._map.clear())},Set.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 r=0;r<t.length;r++)SetIterable(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Set.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return SetIterable(e)});var r=this;return this.withMutations(function(e){r.forEach(function(r){t.every(function(e){return e.includes(r)})||e.remove(r)})})},Set.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return SetIterable(e)});var r=this;return this.withMutations(function(e){r.forEach(function(r){t.some(function(e){return e.includes(r)})&&e.remove(r)})})},Set.prototype.merge=function(){return this.union.apply(this,arguments)},Set.prototype.mergeWith=function(t){var r=e.call(arguments,1);return this.union.apply(this,r)},Set.prototype.sort=function(e){return OrderedSet(sortFactory(this,e))},Set.prototype.sortBy=function(e,t){return OrderedSet(sortFactory(this,t,e))},Set.prototype.wasAltered=function(){return this._map.wasAltered()},Set.prototype.__iterate=function(e,t){var r=this;return this._map.__iterate(function(t,n){return e(n,n,r)},t)},Set.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},Set.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Set.isSet=isSet;var W,U="@@__IMMUTABLE_SET__@@",H=Set.prototype;function updateSet(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function makeSet(e,t){var r=Object.create(H);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function emptySet(){return W||(W=makeSet(emptyMap()))}function OrderedSet(e){return null==e?emptyOrderedSet():isOrderedSet(e)?e:emptyOrderedSet().withMutations(function(t){var r=SetIterable(e);assertNotInfinite(r.size),r.forEach(function(e){return t.add(e)})})}function isOrderedSet(e){return isSet(e)&&isOrdered(e)}H[U]=!0,H.delete=H.remove,H.mergeDeep=H.merge,H.mergeDeepWith=H.mergeWith,H.withMutations=D.withMutations,H.asMutable=D.asMutable,H.asImmutable=D.asImmutable,H.__empty=emptySet,H.__make=makeSet,createClass(OrderedSet,Set),OrderedSet.of=function(){return this(arguments)},OrderedSet.fromKeys=function(e){return this(KeyedIterable(e).keySeq())},OrderedSet.prototype.toString=function(){return this.__toString("OrderedSet {","}")},OrderedSet.isOrderedSet=isOrderedSet;var J,Z=OrderedSet.prototype;function makeOrderedSet(e,t){var r=Object.create(Z);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function emptyOrderedSet(){return J||(J=makeOrderedSet(emptyOrderedMap()))}function Stack(e){return null==e?emptyStack():isStack(e)?e:emptyStack().unshiftAll(e)}function isStack(e){return!(!e||!e[G])}Z[i]=!0,Z.__empty=emptyOrderedSet,Z.__make=makeOrderedSet,createClass(Stack,IndexedCollection),Stack.of=function(){return this(arguments)},Stack.prototype.toString=function(){return this.__toString("Stack [","]")},Stack.prototype.get=function(e,t){var r=this._head;for(e=wrapIndex(this,e);r&&e--;)r=r.next;return r?r.value:t},Stack.prototype.peek=function(){return this._head&&this._head.value},Stack.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,r=arguments.length-1;r>=0;r--)t={value:arguments[r],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):makeStack(e,t)},Stack.prototype.pushAll=function(e){if(0===(e=IndexedIterable(e)).size)return this;assertNotInfinite(e.size);var t=this.size,r=this._head;return e.reverse().forEach(function(e){t++,r={value:e,next:r}}),this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):makeStack(t,r)},Stack.prototype.pop=function(){return this.slice(1)},Stack.prototype.unshift=function(){return this.push.apply(this,arguments)},Stack.prototype.unshiftAll=function(e){return this.pushAll(e)},Stack.prototype.shift=function(){return this.pop.apply(this,arguments)},Stack.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):emptyStack()},Stack.prototype.slice=function(e,t){if(wholeSlice(e,t,this.size))return this;var r=resolveBegin(e,this.size),n=resolveEnd(t,this.size);if(n!==this.size)return IndexedCollection.prototype.slice.call(this,e,t);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):makeStack(i,o)},Stack.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?makeStack(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Stack.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var r=0,n=this._head;n&&!1!==e(n.value,r++,this);)n=n.next;return r},Stack.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var r=0,n=this._head;return new Iterator(function(){if(n){var t=n.value;return n=n.next,iteratorValue(e,r++,t)}return{value:void 0,done:!0}})},Stack.isStack=isStack;var Y,G="@@__IMMUTABLE_STACK__@@",X=Stack.prototype;function makeStack(e,t,r,n){var i=Object.create(X);return i.size=e,i._head=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function emptyStack(){return Y||(Y=makeStack(0))}function mixin(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}X[G]=!0,X.withMutations=D.withMutations,X.asMutable=D.asMutable,X.asImmutable=D.asImmutable,X.wasAltered=D.wasAltered,Iterable.Iterator=Iterator,mixin(Iterable,{toArray:function(){assertNotInfinite(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,r){e[r]=t}),e},toIndexedSeq:function(){return new ToIndexedSequence(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new ToKeyedSequence(this,!0)},toMap:function(){return Map(this.toKeyedSeq())},toObject:function(){assertNotInfinite(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e},toOrderedMap:function(){return OrderedMap(this.toKeyedSeq())},toOrderedSet:function(){return OrderedSet(isKeyed(this)?this.valueSeq():this)},toSet:function(){return Set(isKeyed(this)?this.valueSeq():this)},toSetSeq:function(){return new ToSetSequence(this)},toSeq:function(){return isIndexed(this)?this.toIndexedSeq():isKeyed(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Stack(isKeyed(this)?this.valueSeq():this)},toList:function(){return List(isKeyed(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return reify(this,function concatFactory(e,t){var r=isKeyed(e),n=[e].concat(t).map(function(e){return isIterable(e)?r&&(e=KeyedIterable(e)):e=r?keyedSeqFromValue(e):indexedSeqFromValue(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===n.length)return e;if(1===n.length){var i=n[0];if(i===e||r&&isKeyed(i)||isIndexed(e)&&isIndexed(i))return i}var o=new ArraySeq(n);return r?o=o.toKeyedSeq():isIndexed(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce(function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}},0),o}(this,t))},includes:function(e){return this.some(function(t){return is(t,e)})},entries:function(){return this.__iterator(l)},every:function(e,t){assertNotInfinite(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!e.call(t,n,i,o))return r=!1,!1}),r},filter:function(e,t){return reify(this,filterFactory(this,e,t,!0))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},forEach:function(e,t){return assertNotInfinite(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){assertNotInfinite(this.size),e=void 0!==e?""+e:",";var t="",r=!0;return this.__iterate(function(n){r?r=!1:t+=e,t+=null!=n?n.toString():""}),t},keys:function(){return this.__iterator(h)},map:function(e,t){return reify(this,mapFactory(this,e,t))},reduce:function(e,t,r){var n,i;return assertNotInfinite(this.size),arguments.length<2?i=!0:n=t,this.__iterate(function(t,o,a){i?(i=!1,n=t):n=e.call(r,n,t,o,a)}),n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return reify(this,reverseFactory(this,!0))},slice:function(e,t){return reify(this,sliceFactory(this,e,t,!0))},some:function(e,t){return!this.every(not(e),t)},sort:function(e){return reify(this,sortFactory(this,e))},values:function(){return this.__iterator(p)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return ensureSize(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function countByFactory(e,t,r){var n=Map().asMutable();return e.__iterate(function(i,o){n.update(t.call(r,i,o,e),0,function(e){return e+1})}),n.asImmutable()}(this,e,t)},equals:function(e){return deepEqual(this,e)},entrySeq:function(){var e=this;if(e._cache)return new ArraySeq(e._cache);var t=e.toSeq().map(entryMapper).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(not(e),t)},findEntry:function(e,t,r){var n=r;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},findLastEntry:function(e,t,r){return this.toKeyedSeq().reverse().findEntry(e,t,r)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(returnTrue)},flatMap:function(e,t){return reify(this,function flatMapFactory(e,t,r){var n=iterableClass(e);return e.toSeq().map(function(i,o){return n(t.call(r,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return reify(this,flattenFactory(this,e,!0))},fromEntrySeq:function(){return new FromEntriesSequence(this)},get:function(e,t){return this.find(function(t,r){return is(r,e)},void 0,t)},getIn:function(e,t){for(var r,n=this,i=forceIterator(e);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,u):u)===u)return t}return n},groupBy:function(e,t){return function groupByFactory(e,t,r){var n=isKeyed(e),i=(isOrdered(e)?OrderedMap():Map()).asMutable();e.__iterate(function(o,a){i.update(t.call(r,o,a,e),function(e){return(e=e||[]).push(n?[a,o]:o),e})});var o=iterableClass(e);return i.map(function(t){return reify(e,o(t))})}(this,e,t)},has:function(e){return this.get(e,u)!==u},hasIn:function(e){return this.getIn(e,u)!==u},isSubset:function(e){return e="function"==typeof e.includes?e:Iterable(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:Iterable(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return is(t,e)})},keySeq:function(){return this.toSeq().map(keyMapper).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return maxFactory(this,e)},maxBy:function(e,t){return maxFactory(this,t,e)},min:function(e){return maxFactory(this,e?neg(e):defaultNegComparator)},minBy:function(e,t){return maxFactory(this,t?neg(t):defaultNegComparator,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return reify(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return reify(this,skipWhileFactory(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(not(e),t)},sortBy:function(e,t){return reify(this,sortFactory(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return reify(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return reify(this,function takeWhileFactory(e,t,r){var n=makeSequence(e);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var a=0;return e.__iterate(function(e,i,s){return t.call(r,e,i,s)&&++a&&n(e,i,o)}),a},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var a=e.__iterator(l,i),s=!0;return new Iterator(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],c=i[1];return t.call(r,c,u,o)?n===l?e:iteratorValue(n,u,c,e):(s=!1,{value:void 0,done:!0})})},n}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(not(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function hashIterable(e){if(e.size===1/0)return 0;var t=isOrdered(e),r=isKeyed(e),n=t?1:0;return function murmurHashOfSize(e,t){return t=I(t,3432918353),t=I(t<<15|t>>>-15,461845907),t=I(t<<13|t>>>-13,5),t=I((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=smi((t=I(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(r?t?function(e,t){n=31*n+hashMerge(hash(e),hash(t))|0}:function(e,t){n=n+hashMerge(hash(e),hash(t))|0}:t?function(e){n=31*n+hash(e)|0}:function(e){n=n+hash(e)|0}),n)}(this))}});var Q=Iterable.prototype;Q[t]=!0,Q[v]=Q.values,Q.__toJS=Q.toArray,Q.__toStringMapper=quoteString,Q.inspect=Q.toSource=function(){return this.toString()},Q.chain=Q.flatMap,Q.contains=Q.includes,mixin(KeyedIterable,{flip:function(){return reify(this,flipFactory(this))},mapEntries:function(e,t){var r=this,n=0;return reify(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(e,t){var r=this;return reify(this,this.toSeq().flip().map(function(n,i){return e.call(t,n,i,r)}).flip())}});var $=KeyedIterable.prototype;function keyMapper(e,t){return t}function entryMapper(e,t){return[t,e]}function not(e){return function(){return!e.apply(this,arguments)}}function neg(e){return function(){return-e.apply(this,arguments)}}function quoteString(e){return"string"==typeof e?JSON.stringify(e):String(e)}function defaultZipper(){return arrCopy(arguments)}function defaultNegComparator(e,t){return e<t?1:e>t?-1:0}function hashMerge(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return $[r]=!0,$[v]=Q.entries,$.__toJS=Q.toObject,$.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+quoteString(e)},mixin(IndexedIterable,{toKeyedSeq:function(){return new ToKeyedSequence(this,!1)},filter:function(e,t){return reify(this,filterFactory(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return reify(this,reverseFactory(this,!1))},slice:function(e,t){return reify(this,sliceFactory(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(0|t,0),0===r||2===r&&!t)return this;e=resolveBegin(e,e<0?this.count():this.size);var n=this.slice(0,e);return reify(this,1===r?n:n.concat(arrCopy(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.findLastEntry(e,t);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(e){return reify(this,flattenFactory(this,e,!1))},get:function(e,t){return(e=wrapIndex(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,r){return r===e},void 0,t)},has:function(e){return(e=wrapIndex(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return reify(this,function interposeFactory(e,t){var r=makeSequence(e);return r.size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return e.__iterate(function(e,n){return(!o||!1!==r(t,o++,i))&&!1!==r(e,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=e.__iterator(p,n),a=0;return new Iterator(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?iteratorValue(r,a++,t):iteratorValue(r,a++,i.value,i)})},r}(this,e))},interleave:function(){var e=[this].concat(arrCopy(arguments)),t=zipWithFactory(this.toSeq(),IndexedSeq.of,e),r=t.flatten(!0);return t.size&&(r.size=t.size*e.length),reify(this,r)},keySeq:function(){return Range(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return reify(this,skipWhileFactory(this,e,t,!1))},zip:function(){return reify(this,zipWithFactory(this,defaultZipper,[this].concat(arrCopy(arguments))))},zipWith:function(e){var t=arrCopy(arguments);return t[0]=this,reify(this,zipWithFactory(this,e,t))}}),IndexedIterable.prototype[n]=!0,IndexedIterable.prototype[i]=!0,mixin(SetIterable,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),SetIterable.prototype.has=Q.includes,SetIterable.prototype.contains=SetIterable.prototype.includes,mixin(KeyedSeq,KeyedIterable.prototype),mixin(IndexedSeq,IndexedIterable.prototype),mixin(SetSeq,SetIterable.prototype),mixin(KeyedCollection,KeyedIterable.prototype),mixin(IndexedCollection,IndexedIterable.prototype),mixin(SetCollection,SetIterable.prototype),{Iterable,Seq,Collection,Map,OrderedMap,List,Stack,Set,OrderedSet,Record,Range,Repeat,is,fromJS}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpinnerIconDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAApNJREFUSA2tlUtLlFEYgEe7mtFFQ8NLFBG1SJAwahtiLVy5ceVSEPQH1LZf0Lp9FO1bdYNyI7gyBFcS2kAzilYq3sfxeYZ55Zv6FGfohWfOd97vnPd23u9MXeZoaeb1Q7gPHXAFzsAS5GACxiEPqVKXqs1kmtAPQi+cAtedToz1PJ8ExxPwDl7CAlRImoN7rBiF86ABHTiGAzMIh8n3O+ifwWc4EL0n5TGTYQijvjNSxbUadozInUeGZ3nuh1WYgpIkM+hGMwYajAgdrfUn+AaLoLTCAxiAOxCZxL4RdB+gZMjxEjwHo4hS8Jh5DR9hz0mKaNizegoNEI7Wee6FXJTISG6AUgDr+QImoAiHie+mwZJow/PRps4uwnsnRj8Epqc4voVJJ8eULOtW4BFYYjPpgjc+3IWI2sh/wFeoVl6xYQ48dDGLfjOwc/ygQqz595hUMVouS9QHBm4l6k3HWpnBLqicgVrlCxujSbR1Swd+UDpQYRS/oVaZZ2MWwlZBB9Zdxf+QTYw8SRgq6sAvz7vH6JULEB9USVHFjzZskgPRQR4ayxoXXIdaHdg9HrB2rErByWxZERnYtrWUzD0esDbtTmXPhzXwHrKLxEUbYGbVyDkWWwkdadfqbPmwDXZSCyh2VAf8BM/nOOJH5Y0QopMt2I5U/KO4DZZJB47XwEX+ex0mGroMV8sLwp56gyuGwiyW4SZ4c8bt2cZzO7jBNeqtsRHbeZ1g9krsMbhfYPv/c5gecA+4yAVuitFszE5Hjva872OMdXagF19JIoOYWyozMTI3J0tmA6gLvXPfO1cc/XOqOLe/HbjwD8yCXRD3VNJROEgatiRZMJsKsbZHia3nAdphtq8fkiWyXJbBe8uM1aXKPouNnz2Bm1kwAAAAAElFTkSuQmCC"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=Array.isArray,i=Object.keys,o=Object.prototype.hasOwnProperty;t.isEqual=function isEqual(e,t,r=!0){try{return function equal(e,t,r){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const a=n(e),s=n(t);let u,c,f;if(a&&s){if((c=e.length)!==t.length)return!1;for(u=c;0!=u--;){if(!r&&e[u]!==t[u])return!1;if(r&&!equal(e[u],t[u],!0))return!1}return!0}if(a!==s)return!1;const h=e instanceof Date,p=t instanceof Date;if(h!==p)return!1;if(h&&p)return e.getTime()===t.getTime();const l=e instanceof RegExp,d=t instanceof RegExp;if(l!==d)return!1;if(l&&d)return e.toString()===t.toString();if("function"==typeof e.equals&&"function"==typeof t.equals)return e.equals(t);const _=i(e);if((c=_.length)!==i(t).length)return!1;for(u=c;0!=u--;)if(!o.call(t,_[u]))return!1;for(u=c;0!=u--;)if("_owner"!==(f=_[u])||!e.$$typeof){if(!r&&e[f]!==t[f])return!1;if(r&&!equal(e[f],t[f],!0))return!1}return!0}return e!=e&&t!=t}(e,t,r)}catch(a){if(a.message&&a.message.match(/stack|recursion/i)||-2146828260===a.number)return console.warn("Warning: isEqual does not handle circular references.",a.name,a.message),!1;throw a}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(0),o=r(3),a=r(4),s={Frame:i.Frame,Vector:i.Vector,VectorGroup:i.VectorGroup,SVG:i.SVG,Text:i.Text,ComponentContainer:i.ComponentContainer};t.renderPresentation=function renderPresentation(e,t,r){const u=e.children?e.children.map(e=>renderPresentation(e,t,r)):[],{componentClass:c,codeOverrideIdentifier:f,navigationLink:h}=e;let{props:p}=e;o.framerLibraryNeedsCompatibility()&&(p=a.downgradeProps(p));const l=p.__slotKeys;if(l&&Array.isArray(l)){p=Object.assign({},p);for(const e of l){const n=p[e];Array.isArray(n)&&(p[e]=n.map(e=>renderPresentation(e,t,r)))}}i.addServerUrlToResourceProps&&(p=i.addServerUrlToResourceProps(p));let d=r?e._type:null;if(d)return n.createElement(d,p,u);if(!(d=function constructorForComponent(e){const t=s[e];if(t)return t;const r=i.componentLoader.componentForIdentifier(e);return r&&i.isReactDefinition(r)?r.class:i.componentLoader.errorForIdentifier&&i.componentLoader.errorForIdentifier(e)?null:i.Frame}(c)))return null;if(h){let e,n;if("@Previous"===h.navigationTarget)e="goBack";else{e=h.navigationTransition;const i=t[h.navigationTarget];i?n=(()=>renderPresentation(i,t,r)):console.warn(`Could not find navigation node for ${h.navigationTarget}`)}d=i.WithNavigator(d,e,h.navigationTransitionDirection,n,h.navigationTransitionOverrides)}if(f){const e=i.componentLoader.componentForIdentifier(f);e&&i.isOverride(e)&&(d=i.WithOverride(d,e.class))}return i.constraintsEnabled&&i.constraintsEnabled(p)&&(p._constraints.enabled=!1),e._type=d,n.createElement(d,p,u)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);t.constructFramerEventSession=function constructFramerEventSession(){return new n.FramerEventSession((e,t,r)=>{r.dispatchEvent(new CustomEvent("FramerEvent",{bubbles:!0,detail:{type:e,event:t}}))})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="_framerPreviewConsoleEnabled",i="_framerPreviewConsoleExpanded",o="_framerPreviewConsoleHeight",a="_framerPreviewAutoScale";function getBool(e,t,r=!1){const n=e.getItem(t);return n?"true"===n:r}function setBool(e,t,r){e.setItem(t,`${r}`)}t.PersistedData=class PersistedData{static get consoleEnabled(){return getBool(sessionStorage,n)}static set consoleEnabled(e){setBool(sessionStorage,n,e)}static get consoleExpanded(){return getBool(sessionStorage,i,!0)}static set consoleExpanded(e){setBool(sessionStorage,i,e)}static get consoleHeight(){return function getNumber(e,t,r){const n=e.getItem(t);return n?Number.parseFloat(n):"function"==typeof r?r():r}(localStorage,o,()=>window.innerHeight/2)}static set consoleHeight(e){!function setNumber(e,t,r){e.setItem(t,`${r}`)}(localStorage,o,e)}static get autoScale(){return function getString(e,t,r){const n=e.getItem(t);return null!==n?n:r}(localStorage,a,"both")}static set autoScale(e){!function setString(e,t,r){e.setItem(t,String(r))}(localStorage,a,e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(0);t.wrapInCustomProperties=function wrapInCustomProperties(e,t){return void 0===i.CustomProperties?e:n.createElement(i.CustomProperties,{customProperties:t},e)}}]);
  