You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
19 KiB

4 years ago
/*! For license information please see demo-386.js.LICENSE.txt */
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function r(t){return t.replace(/-(\w)/g,(t,e)=>e.toUpperCase())}function o(t){Array.from(t).forEach(s)}function s(t){const{parentNode:e}=t;t.remove?t.remove():e&&e.removeChild(t)}n.r(e);var i={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4};var u={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3};const{indexOf:a,slice:c}=[],l=(t,e,n,r,o,s)=>{const i="selectedIndex"in e;let u=i;for(;r<o;){const o=t(n[r],1);if(e.insertBefore(o,s),i&&u&&o.selected){u=!u;let{selectedIndex:t}=e;e.selectedIndex=t<0?r:a.call(e.querySelectorAll("option"),o)}r++}},h=(t,e)=>t==e,d=t=>t,p=(t,e,n,r,o,s,i)=>{const u=s-o;if(u<1)return-1;for(;n-e>=u;){let u=e,a=o;for(;u<n&&a<s&&i(t[u],r[a]);)u++,a++;if(a===s)return e;e=u+1}return-1},f=(t,e,n,r,o)=>n<r?t(e[n],0):0<n?t(e[n-1],-0).nextSibling:o,m=(t,e,n,r)=>{for(;n<r;)g(t(e[n++],-1))},b=(t,e,n)=>{let r=1,o=e;for(;r<o;){const e=(r+o)/2>>>0;n<t[e]?o=e:r=e+1}return r},O=(t,e,n,r,o,s,i,u,a,c,h,d,p)=>{((t,e,n,r,o,s,i,u,a)=>{const c=[],h=t.length;let d=i,p=0;for(;p<h;)switch(t[p++]){case 0:o++,d++;break;case 1:c.push(r[o]),l(e,n,r,o++,o,d<u?e(s[d],0):a);break;case-1:d++}for(p=0;p<h;)switch(t[p++]){case 0:i++;break;case-1:-1<c.indexOf(s[i])?i++:m(e,s,i++,i)}})(((t,e,n,r,o,s,i)=>{const u=n+s,a=[];let c,l,h,d,p,f,m;t:for(c=0;c<=u;c++){if(c>50)return null;for(m=c-1,p=c?a[c-1]:[0,0],f=a[c]=[],l=-c;l<=c;l+=2){for(d=l===-c||l!==c&&p[m+l-1]<p[m+l+1]?p[m+l+1]:p[m+l-1]+1,h=d-l;d<s&&h<n&&i(r[o+d],t[e+h]);)d++,h++;if(d===s&&h===n)break t;f[c+l]=d}}const b=Array(c/2+u/2);let O=b.length-1;for(c=a.length-1;c>=0;c--){for(;d>0&&h>0&&i(r[o+d-1],t[e+h-1]);)b[O--]=0,d--,h--;if(!c)break;m=c-1,p=c?a[c-1]:[0,0],l=d-h,l===-c||l!==c&&p[m+l-1]<p[m+l+1]?(h--,b[O--]=1):(d--,b[O--]=-1)}return b})(n,r,s,i,u,c,d)||((t,e,n,r,o,s,i,u)=>{let a=0,c=r<u?r:u;const l=Array(c++),h=Array(c);h[0]=-1;for(let t=1;t<c;t++)h[t]=i;const d=o.slice(s,i);for(let r=e;r<n;r++){const e=d.indexOf(t[r]);if(-1<e){const t=e+s;a=b(h,c,t),-1<a&&(h[a]=t,l[a]={newi:r,oldi:t,prev:l[a-1]})}}for(a=--c,--i;h[a]>i;)--a;c=u+r-a;const p=Array(c);let f=l[a];for(--n;f;){const{newi:t,oldi:e}=f;for(;n>t;)p[--c]=1,--n;for(;i>e;)p[--c]=-1,--i;p[--c]=0,--n,--i,f=f.prev}for(;n>=e;)p[--c]=1,--n;for(;i>=s;)p[--c]=-1,--i;return p})(n,r,o,s,i,u,a,c),t,e,n,r,i,u,h,p)},g=t=>(t.remove||v).call(t);function v(){const{parentNode:t}=this;t&&t.removeChild(this)}function y(t,e){return typeof t===e}function E(t){const e=t.ownerSVGElement;return!!e||null===e}function N(t){return!j(t.content)}function T(t){return y(t,"function")}function M(t){return!j(t)&&y(t,"object")}function j(t){return null==t}const _=Symbol("unmount"),A=Object.seal({nodes:[],mount(t,e){return this.update(t,e)},update(t,e){const{placeholder:n,nodes:r,childrenMap:o}=this,s=t===_?null:this.evaluate(t),i=s?Array.from(s):[],u=n.parentNode,{newChildrenMap:a,batches:c,futureNodes:b}=function(t,e,n,r){const{condition:o,template:s,childrenMap:i,itemName:u,getKey:a,indexName:c,root:l,isTemplateTag:h}=r,d=new Map,p=[],f=[];return t.forEach((t,r)=>{const m=function(t,e){let{itemName:n,indexName:r,index:o,item:s}=e;t[n]=s,r&&(t[r]=o);return t}(Object.create(e),{itemName:u,indexName:c,index:r,item:t}),b=a?a(m):r,