From 04b2c1c4000f5cfc2b9931b7c2943ff4b3fad9fa Mon Sep 17 00:00:00 2001 From: danielweck Date: Thu, 12 Feb 2015 14:41:37 +0000 Subject: [PATCH] fixed library book detail in Internet Explorer (XPath lib) --- lib/PackageParser.js | 118 ++++++++++++++++++----------- lib/Readium.js | 2 +- lib/thirdparty/jath.min.js | 3 - lib/thirdparty/jquery.xpath.min.js | 13 ++++ require_config.js | 6 +- 5 files changed, 90 insertions(+), 52 deletions(-) delete mode 100644 lib/thirdparty/jath.min.js create mode 100644 lib/thirdparty/jquery.xpath.min.js diff --git a/lib/PackageParser.js b/lib/PackageParser.js index bfbc93b3a..92a7e4f17 100644 --- a/lib/PackageParser.js +++ b/lib/PackageParser.js @@ -1,54 +1,82 @@ -define(['jath'], function(Jath){ - Jath.resolver = function( prefix ) { +define(['jquery', 'jxpath'], function($, JXPath){ + var resolver = function( prefix ) { var mappings = { def: "http://www.idpf.org/2007/opf", dc: "http://purl.org/dc/elements/1.1/" }; return mappings[ prefix ]; - } - - var jathTemplate = { - - metadata: { - id: "//def:metadata/dc:identifier", - epub_version: "//def:package/@version", - title: "//def:metadata/dc:title", - author: "//def:metadata/dc:creator", - publisher: "//def:metadata/dc:publisher", - description: "//def:metadata/dc:description", - rights: "//def:metadata/dc:rights", - language: "//def:metadata/dc:language", - pubdate: "//def:metadata/dc:date", - modified_date: "//def:metadata/def:meta[@property='dcterms:modified']", - layout: "//def:metadata/def:meta[@property='rendition:layout']", - spread: "//def:metadata/def:meta[@property='rendition:spread']", - orientation: "//def:metadata/def:meta[@property='rendition:orientation']", - ncx: "//def:spine/@toc", - page_prog_dir: "//def:spine/@page-progression-direction", - active_class: "//def:metadata/def:meta[@property='media:active-class']" - }, - - manifest: [ "//def:item", { - id: "@id", - href: "@href", - media_type: "@media-type", - properties: "@properties", - media_overlay: "@media-overlay" - } ], - - spine: [ "//def:itemref", { idref: "@idref", properties: "@properties", linear: "@linear" } ], + }; - bindings: ["//def:bindings/def:mediaType", { - handler: "@handler", - media_type: "@media-type" - } ] - - }; + PackageParser = { + parsePackageDom : function(data){ + + var jsonObj = { - PackageParser = { - parsePackageDom : function(data){ - var jsonObj = Jath.parse(jathTemplate, data); + metadata: { + id: $.xpath(data, "//def:metadata/dc:identifier", resolver).text(), + epub_version: $.xpath(data, "//def:package/@version", resolver).val(), + title: $.xpath(data, "//def:metadata/dc:title", resolver).text(), + author: $.xpath(data, "//def:metadata/dc:creator", resolver).text(), + publisher: $.xpath(data, "//def:metadata/dc:publisher", resolver).text(), + description: $.xpath(data, "//def:metadata/dc:description", resolver).text(), + rights: $.xpath(data, "//def:metadata/dc:rights", resolver).text(), + language: $.xpath(data, "//def:metadata/dc:language", resolver).text(), + pubdate: $.xpath(data, "//def:metadata/dc:date", resolver).text(), + modified_date: $.xpath(data, "//def:metadata/def:meta[@property='dcterms:modified']", resolver).text(), + layout: $.xpath(data, "//def:metadata/def:meta[@property='rendition:layout']", resolver).text(), + spread: $.xpath(data, "//def:metadata/def:meta[@property='rendition:spread']", resolver).text(), + orientation: $.xpath(data, "//def:metadata/def:meta[@property='rendition:orientation']", resolver).text(), + ncx: $.xpath(data, "//def:spine/@toc", resolver).val(), + page_prog_dir: $.xpath(data, "//def:spine/@page-progression-direction", resolver).val(), + active_class: $.xpath(data, "//def:metadata/def:meta[@property='media:active-class']", resolver).text() + } +/* UNUSED + manifest: + (function() { + var array = []; + $.xpath(data, "//def:item", resolver).each(function(item) { + array.push({ + id: $.xpath(item, "@id", resolver).val(), + href: $.xpath(item, "@href", resolver).val(), + media_type: $.xpath(item, "@media-type", resolver).val(), + properties: $.xpath(item, "@properties", resolver).val(), + media_overlay: $.xpath(item, "@media-overlay", resolver).val() + }); + }); + return array; + })(), + + spine: + (function() { + var array = []; + $.xpath(data, "//def:itemref", resolver).each(function(item) { + array.push({ + idref: $.xpath(item, "@idref", resolver).val(), + properties: $.xpath(item, "@properties", resolver).val(), + linear: $.xpath(item, "@linear", resolver).val() + }); + }); + return array; + })(), + + bindings: + (function() { + var array = []; + $.xpath(data, "//def:bindings/def:mediaType", resolver).each(function(item) { + array.push({ + handler: $.xpath(item, "@handler", resolver).val(), + media_type: $.xpath(item, "@media-type", resolver).val() + }); + }); + return array; + })() +*/ + }; + jsonObj = jsonObj.metadata; + +//console.debug(JSON.stringify(jsonObj)); + jsonObj.coverHref = PackageParser.getCoverHref(data); return jsonObj; }, @@ -86,6 +114,6 @@ define(['jath'], function(Jath){ // seems like there isn't one, thats ok... return null; }, - } - return PackageParser; + } + return PackageParser; }) \ No newline at end of file diff --git a/lib/Readium.js b/lib/Readium.js index 8c97e089b..7636a6901 100644 --- a/lib/Readium.js +++ b/lib/Readium.js @@ -367,7 +367,7 @@ define('text',['module'], function (module) { }); -define('text!version.json',[],function () { return '{"readiumJs":{"sha":"4242280394c045dd5d460a36041022b985c897b0","tag":"Release-0.10-397-g4242280","clean":false},"readiumSharedJs":{"sha":"94a0dc7d5bae04540b715ce17a68f419394f5e03","tag":"Release-0.10-477-g94a0dc7","clean":true}}';}); +define('text!version.json',[],function () { return '{"readiumJs":{"sha":"4242280394c045dd5d460a36041022b985c897b0","tag":"Release-0.10-397-g4242280","clean":true},"readiumSharedJs":{"sha":"94a0dc7d5bae04540b715ce17a68f419394f5e03","tag":"Release-0.10-477-g94a0dc7","clean":true}}';}); /* This code is required to IE for console shim diff --git a/lib/thirdparty/jath.min.js b/lib/thirdparty/jath.min.js deleted file mode 100644 index c6d2a4d7a..000000000 --- a/lib/thirdparty/jath.min.js +++ /dev/null @@ -1,3 +0,0 @@ -(function(){function f(a,b,c){c===void 0&&(c=b);if(h(a)==="array"){var e=[];if(a[0]!=null)if(g=="msie"){b.setProperty("SelectionLanguage","XPath");for(var c=c.selectNodes(a[0]),d;d=c.nextNode();)e.push(f(a[1],b,d))}else if(g=="node"){c=c.find(a[0]);for(d=0;d-1?"msie":"standards"})(); diff --git a/lib/thirdparty/jquery.xpath.min.js b/lib/thirdparty/jquery.xpath.min.js new file mode 100644 index 000000000..f473116fd --- /dev/null +++ b/lib/thirdparty/jquery.xpath.min.js @@ -0,0 +1,13 @@ +/* + * jQuery XPath plugin v0.2.5 + * https://github.com/ilinsky/jquery-xpath + * Copyright 2013, Sergey Ilinsky + * Dual licensed under the MIT and GPL licenses. + * + * Includes xpath.js - XPath 2.0 implementation in JavaScript + * https://github.com/ilinsky/xpath.js + * Copyright 2013, Sergey Ilinsky + * Dual licensed under the MIT and GPL licenses. + * + */ +(function(p,a,c,k,e,d){for(k=a[d[1]]-1;k>=0;k--)c+=e[d[430]][d[441]](a[d[229]](k)-1);a=c[d[51]](' ');for(k=a[d[1]]-1;k>=0;k--)p=p[d[38]](e[d[416]](k%10+(e[d[430]][d[441]](122-e[d[404]][d[233]](k/10))),'g'),a[k]);e[d[406]]('_','$',p)(d,d[0])})("8y bz=6x7x4308x,O=6x7x4278x,bi=6x7x4288x,bk=6x7x4298x,K=6x7x4178x,bs=6x7x4168x,U=6x7x4058x,b3=6x7x4068x,be=6x7x4048x,W=6x7x4038x,bC=6x7x4008x,bF=6x7x4018x,dd=6x7x4028x,dc=6x7x4078x,fM=6x7x4088x,fA=6x7x1648x,eP=(9z2w{3y bz9x7x3298x?9z(jK){3y bz(jK)7x3298x2w}:9z(jK){3y bz(jK)7x388x(/^\\s+|\\s+$/g,'')}})2w,cF=(9z2w{3y K9x7x458x?9z(r,jU){3y r7x458x(jU)}:9z(r,jU){8z(8y fz=0,fG=r7x18x;fz>|[!<>]=|(?![0-9-])[\\w-]+:\\*|\\s+|./g);0y(j){8y f3=0;8z(8y fz=0,fG=j7x18x;fz0};bc9x7x138x=9z2w{3y 5x7x808x5v5x7x18x};9z T2w1w;T9x7x358x=9z(gX){3y gX3w7wgX7x278x};T9x7x288x=9z(gX,iv){3y gX[iv]};T9x7x1268x=9z(gX,gZ){3y gX6wgZ};T9x7x658x=9z(gX,gZ){3y gX7x658x(gZ)};T9x7x568x=9z(gX,iA){3y gX7x568x(iA)};T9x7x1178x=9z(gX,_d){3y gX7x1178x(_d)};T9x7x908x=9z(gX,iw,iq){3y gX7x908x(iw,iq)};9z V(ht,jU,hk,gs){5x7x508x=ht;5x7x268x=jU;5x7x538x=hk4w1w;5x7x498x=1w;5x7x248x=gs4w2y T;8y gt=2y U,fP=gt7x4128x2w;5x7x698x=2y cT(gt7x4098x2w,gt7x4108x2w+1,gt7x4118x2w,gt7x4348x2w,gt7x4358x2w,gt7x4598x2w+gt7x4608x2w/1000,-fP);5x7x48x=2y cU(0,be7x408x(~~(fP/60)),be7x408x(fP%60),0,fP>0)};V9x7x268x=2x;V9x7x768x=0;V9x7x888x=0;V9x7x538x=2x;V9x7x498x=2x;V9x7x698x=2x;V9x7x48x=2x;V9x7x508x=2x;V9x7x1338x=9z(iv,jY){0y(!5x7x498x7x1288x(iv))5x7x498x[iv]=0w;5x7x498x[iv]7x118x(5x7x538x[iv]);5x7x538x[iv]=jY};V9x7x1428x=9z(iv){0y(5x7x498x7x1288x(iv)){5x7x538x[iv]=5x7x498x[iv]7x1828x2w;0y(!5x7x498x[iv]7x18x){6z 5x7x498x[iv];0y(5y 5x7x538x[iv]6w_[173])6z 5x7x538x[iv]}}};9z bx2w{5x7x1028x=1w;5x7x1768x=1w;5x7x1098x=1w;5x7x1118x=1w;5x7x1438x=1w};bx9x7x828x=2x;bx9x7x1028x=2x;bx9x7x1768x=2x;bx9x7x1098x=2x;bx9x7x928x=2x;bx9x7x1118x=2x;bx9x7x1838x=it+_[188];bx9x7x1438x=2x;bx9x7x1138x=2x;bx9x7x1758x=2x;8y hM=/^(?:\\{([^\\}]+)\\})?(.+)$/;bx9x7x4588x=9z(jJ,dV){8y j=jJ7x258x(hM);0y(j)0y(j[1]9wiu)5x7x1028x[jJ]=dV};bx9x7x1198x=9z(jJ){8y j=jJ7x258x(hM);0y(j)3y j[1]6wiu?ei[bs.$2]:5x7x1028x[jJ]};bx9x7x4578x=9z(jJ,dV){5x7x1768x[jJ]=dV};bx9x7x4548x=9z(jJ,dV){8y j=jJ7x258x(hM);0y(j)0y(j[1]9wit)5x7x1098x[jJ]=dV};bx9x7x1798x=9z(jJ){8y j=jJ7x258x(hM);0y(j)3y j[1]6wit?ej[bs.$2]:5x7x1098x[jJ]};bx9x7x4558x=9z(jJ,dV){5x7x1118x[jJ]=dV};bx9x7x2358x=9z(jJ){3y 5x7x1118x[jJ]};bx9x7x4568x=9z(jJ,dV){5x7x1438x[jJ]=dV};bx9x7x688x=9z(iA){8y hg=5x7x1138x,eF=hg3whg7x568x?hg7x568x:hg,iw;0y(eF 1y b33w(iw=eF7x168x(hg,iA)))3y iw;0y(iA6w'fn')3y it;0y(iA6w'xs')3y iu;0y(iA6w_[341])3y ir;0y(iA6w_[77])3y _e;4y 2y X(_[301])};bx7x4618x=9z(jU){0y(5y jU6w_[118])jU=2y bP(jU);7z 0y(5y jU6w_[234])jU=(dd(jU)4w!dc(jU))?2y cW(jU):dm(bz(jU));7z jU=2y cm(bz(jU));3y jU};bx7x1908x=9z(jU){0y(jU 1y bP)jU=jU7x28x2w;7z 0y(eW(jU))jU=jU7x28x2w;7z jU=jU7x328x2w;3y jU};8y ej=1w,el=1w,ei=1w,ek=1w;9z eL(iv,k,dV){ej[iv]=dV;el[iv]=k};9z eK(iv,dV){ei[iv]=dV};9z b0(ik,ht){8y gS=2y bc(ik),gB=dS(gS,ht);0y(!gS7x138x2w)4y 2y X(_[12]);0y(!gB)4y 2y X(_[12]);5x7x1408x=gB};b09x7x1408x=2x;b09x7x88x=9z(gr){3y 5x7x1408x7x88x(gr)};9z bA2w1w;bA9x7x2568x=9z(jL,jM){4y \"Not implemented\"};bA9x7x488x=9z(jL,jM){4y \"Not implemented\"};9z cR2w1w;cR7x2938x=1;cR7x3398x=2;cR7x2898x=3;cR7x2718x=4;cR7x2668x=5;cR7x2738x=6;cR7x2698x=7;cR7x2988x=8;cR7x3468x=9;cR7x2978x=10;cR7x3078x=11;cR7x2798x=12;cR7x2778x=13;cR7x2688x=14;cR7x2808x=15;cR7x3378x=16;cR7x2878x=17;cR7x2958x=18;cR7x3328x=19;cR7x3358x=20;cR7x2528x=21;cR7x2218x=22;cR7x1898x=23;cR7x1968x=24;cR7x2228x=25;cR7x2198x=26;cR7x2008x=27;cR7x4628x=28;cR7x2238x=29;cR7x3168x=30;cR7x3138x=31;cR7x3128x=32;cR7x3088x=33;cR7x3108x=34;cR7x3178x=35;cR7x3188x=36;cR7x3258x=37;cR7x3278x=38;cR7x3208x=39;cR7x3218x=40;cR7x3228x=41;cR7x3268x=42;cR7x4688x=43;cR7x4698x=44;cR7x4678x=45;cR7x4668x=46;cR7x4638x=47;cR7x3288x=48;cR7x4648x=49;cR7x2948x=50;cR7x3498x=51;cR7x3448x=-1;cR7x3458x=-2;9z Y2w{5x7x178x=0w};Y9x7x178x=2x;9z dS(gS,ht){8y gK;0y(gS7x138x2w4w!(gK=dR(gS,ht)))3y;8y gB=2y Y;gB7x178x7x118x(gK);9y(gS7x58x2w6w','){gS7x148x2w;0y(gS7x138x2w4w!(gK=dR(gS,ht)))4y 2y X(_[12]);gB7x178x7x118x(gK)}3y gB};Y9x7x88x=9z(gr){8y hn=0w;8z(8y fz=0,fG=5x7x178x7x18x;fz':'gt','<':'lt','5v':'ge','4v':'le'};9z dO(gB,gr){8y gQ=d4(gB7x318x7x88x(gr),gr);0y(!gQ7x18x)3y 2x;dW(gr,gQ,'?');8y hi=d4(gB7x648x7x88x(gr),gr);0y(!hi7x18x)3y 2x;dW(gr,hi,'?');8y jV=gQ[0],jX=hi[0];0y(jV 1y ct)jV=cm7x38x(jV);0y(jX 1y ct)jX=cm7x38x(jX);0y(jV 1y bN)jV=cm7x38x(jV);0y(jX 1y bN)jX=cm7x38x(jX);3y ee[gB7x478x](jV,jX,gr)};8y ee=1w;ee['eq']=9z(gQ,hi,gr){8y iy='';0y(eW(gQ)){0y(eW(hi))iy=_[91]}7z 0y(gQ 1y bP){0y(hi 1y bP)iy=_[226]}7z 0y(gQ 1y cm){0y(hi 1y cm)3y ek7x918x7x168x(gr,ej7x488x7x168x(gr,gQ,hi),2y c8(0))}7z 0y(gQ 1y cS){0y(hi 1y cS)iy=_[237]}7z 0y(gQ 1y cn){0y(hi 1y cn)iy=_[257]}7z 0y(gQ 1y cT){0y(hi 1y cT)iy=_[238]}7z 0y(gQ 1y cX){0y(hi 1y cX)iy=_[239]}7z 0y(gQ 1y c4){0y(hi 1y c4)iy=_[258]}7z 0y(gQ 1y c3){0y(hi 1y c3)iy=_[262]}7z 0y(gQ 1y c2){0y(hi 1y c2)iy=_[261]}7z 0y(gQ 1y c1){0y(hi 1y c1)iy=_[260]}7z 0y(gQ 1y c0){0y(hi 1y c0)iy=_[254]}7z 0y(gQ 1y ck){0y(hi 1y ck)iy=_[314]}7z 0y(gQ 1y c5){0y(hi 1y c5)iy=_[231]}7z 0y(gQ 1y bO){0y(hi 1y bO)iy=_[225]}0y(iy)3y ek[iy]7x168x(gr,gQ,hi);4y 2y X(_[9])};ee['ne']=9z(gQ,hi,gr){3y 2y bP(!ee['eq'](gQ,hi,gr)7x28x2w)};ee['gt']=9z(gQ,hi,gr){8y iy='';0y(eW(gQ)){0y(eW(hi))iy=_[86]}7z 0y(gQ 1y bP){0y(hi 1y bP)iy=_[152]}7z 0y(gQ 1y cm){0y(hi 1y cm)3y ek7x868x7x168x(gr,ej7x488x7x168x(gr,gQ,hi),2y c8(0))}7z 0y(gQ 1y cS){0y(hi 1y cS)iy=_[141]}7z 0y(gQ 1y cn){0y(hi 1y cn)iy=_[148]}7z 0y(gQ 1y cT){0y(hi 1y cT)iy=_[154]}7z 0y(gQ 1y cu){0y(hi 1y cu)iy=_[158]}7z 0y(gQ 1y cU){0y(hi 1y cU)iy=_[157]}0y(iy)3y ek[iy]7x168x(gr,gQ,hi);4y 2y X(_[9])};ee['lt']=9z(gQ,hi,gr){8y iy='';0y(eW(gQ)){0y(eW(hi))iy=_[97]}7z 0y(gQ 1y bP){0y(hi 1y bP)iy=_[147]}7z 0y(gQ 1y cm){0y(hi 1y cm)3y ek7x978x7x168x(gr,ej7x488x7x168x(gr,gQ,hi),2y c8(0))}7z 0y(gQ 1y cS){0y(hi 1y cS)iy=_[155]}7z 0y(gQ 1y cn){0y(hi 1y cn)iy=_[145]}7z 0y(gQ 1y cT){0y(hi 1y cT)iy=_[156]}7z 0y(gQ 1y cu){0y(hi 1y cu)iy=_[153]}7z 0y(gQ 1y cU){0y(hi 1y cU)iy=_[159]}0y(iy)3y ek[iy]7x168x(gr,gQ,hi);4y 2y X(_[9])};ee['ge']=9z(gQ,hi,gr){8y iy='';0y(eW(gQ)){0y(eW(hi))3y ek7x868x7x168x(gr,gQ,hi)4wek7x918x7x168x(gr,gQ,hi)}7z 0y(gQ 1y bP){0y(hi 1y bP)iy=_[147]}7z 0y(gQ 1y cm){0y(hi 1y cm)3y ek7x868x7x168x(gr,ej7x488x7x168x(gr,gQ,hi),2y c8(-1))}7z 0y(gQ 1y cS){0y(hi 1y cS)iy=_[155]}7z 0y(gQ 1y cn){0y(hi 1y cn)iy=_[145]}7z 0y(gQ 1y cT){0y(hi 1y cT)iy=_[156]}7z 0y(gQ 1y cu){0y(hi 1y cu)iy=_[153]}7z 0y(gQ 1y cU){0y(hi 1y cU)iy=_[159]}0y(iy)3y 2y bP(!ek[iy]7x168x(gr,gQ,hi)7x28x2w);4y 2y X(_[9])};ee['le']=9z(gQ,hi,gr){8y iy='';0y(eW(gQ)){0y(eW(hi))3y ek7x978x7x168x(gr,gQ,hi)4wek7x918x7x168x(gr,gQ,hi)}7z 0y(gQ 1y bP){0y(hi 1y bP)iy=_[152]}7z 0y(gQ 1y cm){0y(hi 1y cm)3y ek7x978x7x168x(gr,ej7x488x7x168x(gr,gQ,hi),2y c8(1))}7z 0y(gQ 1y cS){0y(hi 1y cS)iy=_[141]}7z 0y(gQ 1y cn){0y(hi 1y cn)iy=_[148]}7z 0y(gQ 1y cT){0y(hi 1y cT)iy=_[154]}7z 0y(gQ 1y cu){0y(hi 1y cu)iy=_[158]}7z 0y(gQ 1y cU){0y(hi 1y cU)iy=_[157]}0y(iy)3y 2y bP(!ek[iy]7x168x(gr,gQ,hi)7x28x2w);4y 2y X(_[9])};9z dN(gB,gr){8y gQ=gB7x318x7x88x(gr);0y(!gQ7x18x)3y 2x;dW(gr,gQ,'?');dX(gr,gQ,cA);8y hi=gB7x648x7x88x(gr);0y(!hi7x18x)3y 2x;dW(gr,hi,'?');dX(gr,hi,cA);3y ed[gB7x478x](gQ[0],hi[0],gr)};8y ed=1w;ed['is']=9z(gQ,hi,gr){3y ek7x2438x7x168x(gr,gQ,hi)};ed['>>']=9z(gQ,hi,gr){3y ek7x2918x7x168x(gr,gQ,hi)};ed['<<']=9z(gQ,hi,gr){3y ek7x2168x7x168x(gr,gQ,hi)};8y ef={'=':dM,'9w':dM,'<':dM,'4v':dM,'>':dM,'5v':dM,'eq':dO,'ne':dO,'lt':dO,'le':dO,'gt':dO,'ge':dO,'is':dN,'>>':dN,'<<':dN};9z I(gB){5x7x318x=gB;5x7x178x=0w};I9x7x318x=2x;I9x7x178x=2x;8y ea=1w;ea['+']=9z(gQ,hi,gr){8y iy='',F=1x;0y(eW(gQ)){0y(eW(hi))iy=_[114]}7z 0y(gQ 1y cS){0y(hi 1y cu)iy=_[174];7z 0y(hi 1y cU)iy=_[168]}7z 0y(gQ 1y cu){0y(hi 1y cS){iy=_[174];F=3x}7z 0y(hi 1y cT){iy=_[171];F=3x}7z 0y(hi 1y cu)iy=_[253]}7z 0y(gQ 1y cU){0y(hi 1y cS){iy=_[168];F=3x}7z 0y(hi 1y cn){iy=_[178];F=3x}7z 0y(hi 1y cT){iy=_[170];F=3x}7z 0y(hi 1y cU)iy=_[249]}7z 0y(gQ 1y cn){0y(hi 1y cU)iy=_[178]}7z 0y(gQ 1y cT){0y(hi 1y cu)iy=_[171];7z 0y(hi 1y cU)iy=_[170]}0y(iy)3y ek[iy]7x168x(gr,F?hi:gQ,F?gQ:hi);4y 2y X(_[9])};ea['-']=9z(gQ,hi,gr){8y iy='';0y(eW(gQ)){0y(eW(hi))iy=_[120]}7z 0y(gQ 1y cS){0y(hi 1y cS)iy=_[161];7z 0y(hi 1y cu)iy=_[311];7z 0y(hi 1y cU)iy=_[285]}7z 0y(gQ 1y cn){0y(hi 1y cn)iy=_[185];7z 0y(hi 1y cU)iy=_[228]}7z 0y(gQ 1y cT){0y(hi 1y cT)iy=_[150];7z 0y(hi 1y cu)iy=_[217];7z 0y(hi 1y cU)iy=_[205]}7z 0y(gQ 1y cu){0y(hi 1y cu)iy=_[247]}7z 0y(gQ 1y cU){0y(hi 1y cU)iy=_[251]}0y(iy)3y ek[iy]7x168x(gr,gQ,hi);4y 2y X(_[9])};9z cD(gS,ht){8y gB;0y(gS7x138x2w4w!(gB=dh(gS,ht)))3y;0y(!(gS7x58x2w0z ea))3y gB;8y gc=2y I(gB),iy;9y((iy=gS7x58x2w)0z ea){gS7x148x2w;0y(gS7x138x2w4w!(gB=dh(gS,ht)))4y 2y X(_[12]);gc7x178x7x118x([iy,gB])}3y gc};I9x7x88x=9z(gr){8y gQ=d4(5x7x318x7x88x(gr),gr);0y(!gQ7x18x)3y 0w;dW(gr,gQ,'?');8y jV=gQ[0];0y(jV 1y ct)jV=cW7x38x(jV);8z(8y fz=0,fG=5x7x178x7x18x,hi,jX;fzfQ)4y 2y X(_[46]);7z 0y(fn1)4y 2y X(_[9])}7z 0y(id6w'+'){0y(fG<1)4y 2y X(_[9])}7z 0y(id9w'*'){0y(fG9w1)4y 2y X(_[9])}};9z b8(gB){5x7x318x=gB;5x7x178x=0w};b89x7x318x=2x;b89x7x178x=2x;9z db(gS,ht){8y gB,iy;0y(gS7x138x2w4w!(gB=da(gS,ht)))3y;0y(!((iy=gS7x58x2w)6w_[162]4wiy6w_[144]))3y gB;8y gJ=2y b8(gB);9y((iy=gS7x58x2w)6w_[162]4wiy6w_[144]){gS7x148x2w;0y(gS7x138x2w4w!(gB=da(gS,ht)))4y 2y X(_[12]);gJ7x178x7x118x([iy,gB])}3y gJ};b89x7x88x=9z(gr){8y hn=5x7x318x7x88x(gr);8z(8y fz=0,fG=5x7x178x7x18x,gK;fz1)3y [2y bP(1x)];7z 0y(!ho7x18x)3y [2y bP(ix6w'?')];7y{gL7x38x(d4(ho,gr)[0])}3z(e){0y(e7x678x6w_[107])4y e;0y(e7x678x6w_[46])4y 2y X(_[360]);3y [2y bP(1x)]}3y [2y bP(3x)]};9z P(gB,hA){5x7x368x=gB;5x7x398x=hA};P9x7x368x=2x;P9x7x398x=2x;9z dK(gS,ht){8y gB,hA;0y(gS7x138x2w4w!(gB=eR(gS,ht)))3y;0y(!(gS7x58x2w6w_[3]3wgS7x58x(1)6w_[169]))3y gB;gS7x148x(2);0y(gS7x138x2w4w!(hA=eJ(gS,ht)))4y 2y X(_[12]);3y 2y P(gB,hA)};P9x7x88x=9z(gr){8y ho=5x7x368x7x88x(gr);dW(gr,ho,5x7x398x7x628x);0y(!ho7x18x)3y 0w;3y [5x7x398x7x598x7x38x(d4(ho,gr)[0],gr)]};9z cAtomibE(iA,iq,iw){5x7x298x=iA;5x7x198x=iq;5x7x188x=iw};cAtomibE9x7x298x=2x;cAtomibE9x7x198x=2x;cAtomibE9x7x188x=2x;9z dG(gS,ht){8y j=gS7x58x2w7x258x(hJ);0y(j){0y(j[1]6w'*'4wj[2]6w'*')4y 2y X(_[12]);gS7x148x2w;3y 2y cAtomibE(j[1]4w2x,j[2],j[1]?ht7x688x(j[1]):2x)}};cAtomibE9x7x378x=9z(jU,gr){8y jJ=(5x7x188x?'{'+5x7x188x+'}':'')+5x7x198x,bE=5x7x188x6wiu?ei[5x7x198x]:gr7x508x7x1198x(jJ);0y(bE)3y jU 1y bE;4y 2y X(_[107])};cAtomibE9x7x38x=9z(jU,gr){8y jJ=(5x7x188x?'{'+5x7x188x+'}':'')+5x7x198x,bE=5x7x188x6wiu?ei[5x7x198x]:gr7x508x7x1198x(jJ);0y(bE)3y bE7x38x(jU);4y 2y X(_[107])};9z b9(hv){5x7x378x=hv};b99x7x378x=2x;9z de(gS,ht){0y(gS7x138x2w)3y;8y gB;0y(gS7x58x2w6w_[26]3wgS7x58x(1)6w'('){gS7x148x(2);0y(gS7x58x2w9w')')4y 2y X(_[12]);gS7x148x2w;3y 2y b9}0y(gB=df(gS,ht))3y 2y b9(gB);0y(gB=dG(gS,ht))3y 2y b9(gB)};9z bt(gL,ix){5x7x598x=gL4w2x;5x7x628x=ix4w2x};bt9x7x598x=2x;bt9x7x628x=2x;9z eG(gS,ht){0y(gS7x138x2w)3y;0y(gS7x58x2w6w_[359]3wgS7x58x(1)6w'('){gS7x148x(2);0y(gS7x58x2w9w')')4y 2y X(_[12]);gS7x148x2w;3y 2y bt}8y gB,ix;0y(!gS7x138x2w3w(gB=de(gS,ht))){ix=gS7x58x2w;0y(ix6w'?'4wix6w'*'4wix6w'+')gS7x148x2w;7z ix=2x;3y 2y bt(gB,ix)}};9z bw(gL,ix){5x7x598x=gL4w2x;5x7x628x=ix4w2x};bw9x7x598x=2x;bw9x7x628x=2x;9z eJ(gS,ht){8y gB,ix;0y(!gS7x138x2w3w(gB=dG(gS,ht))){ix=gS7x58x2w;0y(ix6w'?')gS7x148x2w;7z ix=2x;3y 2y bw(gB,ix)}};9z bM2w1w;bL9x7x228x=cR7x3498x;9z bL2w1w;bL9x=2y bM;bL9x7x228x=cR7x2938x;bL9x7x338x=2x;bL7x2928x=_[323];bL7x2888x=_[104];bL7x2908x=_[118];bL7x3028x=_[319];bL7x3008x=_[69];bL7x2728x=_[264];bL7x2708x=_[211];bL7x2658x=_[212];bL7x2678x=_[204];bL7x2758x=_[206];bL7x2768x=_[207];bL7x2788x=_[213];bL7x3068x=_[214];bL7x3368x=_[220];bL7x3388x=_[101];bL7x3348x=_[172];bL7x3338x=_[146];bL7x3408x=_[105];bL7x3488x=_[218];9z bK2w1w;bK9x=2y bL;bK9x7x228x=cR7x2948x;bK7x38x=9z(jY){4y 2y X(_[46])};9z eW(jU){3y jU 1y cZ4wjU 1y cW4wjU 1y cV};eK(_[324],bK);9z bN(iF,i9,iz,iD,im){5x7x738x=iF;5x7x748x=i9;5x7x638x=iz;5x7x1228x=iD;5x7x1248x=im};bN9x=2y bK;bN9x7x228x=cR7x2958x;bN9x7x338x=bL7x2928x;bN9x7x738x=2x;bN9x7x748x=2x;bN9x7x638x=2x;bN9x7x1228x=2x;bN9x7x1248x=2x;bN9x7x328x=9z2w{3y(5x7x738x?5x7x738x+':':'')+(5x7x748x?'/'+'/'+5x7x748x:'')+(5x7x638x?5x7x638x:'')+(5x7x1228x?'?'+5x7x1228x:'')+(5x7x1248x?'#'+5x7x1248x:'')};8y hP=/^(([^:\\/?#]+):)?(\\/\\/([^\\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;bN7x38x=9z(jY){0y(jY 1y bN)3y jY;0y(jY 1y cm4wjY 1y ct){8y j;0y(j=eP(jY)7x258x(hP))3y 2y bN(j[2],j[4],j[5],j[7],j[9]);4y 2y X(_[34])}4y 2y X(_[9])};eK(_[323],bN);9z bO(jK){5x7x78x=jK};bO9x=2y bK;bO9x7x228x=cR7x2878x;bO9x7x338x=bL7x2888x;bO9x7x78x=2x;bO9x7x28x=9z2w{3y 5x7x78x};bO9x7x328x=9z2w{3y 5x7x78x};8y hQ=/^((([A-Za-z0-9+\\/]\\s*){4})*(([A-Za-z0-9+\\/]\\s*){3}[A-Za-z0-9+\\/]|([A-Za-z0-9+\\/]\\s*){2}[AEIMQUYcgkosw048]\\s*=|[A-Za-z0-9+\\/]\\s*[AQgw]\\s*=\\s*=))?$/;bO7x38x=9z(jY){0y(jY 1y bO)3y jY;0y(jY 1y cm4wjY 1y ct){8y j=eP(jY)7x258x(hQ);0y(j)3y 2y bO(j[0]);4y 2y X(_[34])}0y(jY 1y c5)4y \"Cast0zg from 'xs:\"+_[101]+\"' to 'xs:\"+_[104]+\"' not implemented\";4y 2y X(_[9])};eK(_[104],bO);9z bP(H){5x7x78x=H};bP9x=2y bK;bP9x7x228x=cR7x2898x;bP9x7x338x=bL7x2908x;bP9x7x78x=2x;bP9x7x28x=9z2w{3y 5x7x78x};bP9x7x328x=9z2w{3y bz(5x7x78x)};8y hR=/^(0|1|3x|1x)$/;bP7x38x=9z(jY){0y(jY 1y bP)3y jY;0y(jY 1y cm4wjY 1y ct){8y j;0y(j=eP(jY)7x258x(hR))3y 2y bP(j[1]6w'1'4wj[1]6w_[203]);4y 2y X(_[34])}0y(eW(jY))3y 2y bP(jY9w0);4y 2y X(_[9])};eK(_[118],bP);9z cS(f9,fK,ft,f5,B){5x7x108x=f9;5x7x68x=fK;5x7x158x=ft;5x7x48x=f5;5x7x308x=B};cS9x=2y bK;cS9x7x228x=cR7x2978x;cS9x7x338x=bL7x3028x;cS9x7x108x=2x;cS9x7x68x=2x;cS9x7x158x=2x;cS9x7x48x=2x;cS9x7x308x=2x;cS9x7x328x=9z2w{3y eX(5x)+eY(5x)};8y iS=/^(-?)([1-9]\\d\\d\\d+|0\\d\\d\\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(Z|([+\\-])(0\\d|1[0-4]):([0-5]\\d))?$/;cS7x38x=9z(jY){0y(jY 1y cS)3y jY;0y(jY 1y cm4wjY 1y ct){8y j=eP(jY)7x258x(iS);0y(j){8y f9=+j[2],fK=+j[3],ft=+j[4];0y(ft-1ft){9y(hD7x158x>ft){hD7x68x0v1;0y(hD7x68x>12){hD7x108x0v1;0y(hD7x108x6w0)hD7x108x=1;hD7x68x=1}hD7x158x1vft;ft=e2(hD7x108x,hD7x68x)}}7z 0y(hD7x158x<1){9y(hD7x158x<1){hD7x68x1v1;0y(hD7x68x<1){hD7x108x1v1;0y(hD7x108x6w0)hD7x108x=-1;hD7x68x=12}ft=e2(hD7x108x,hD7x68x);hD7x158x0vft}}}0y(hD7x68x>12){hD7x108x0v~~(hD7x68x/12);0y(hD7x108x6w0)hD7x108x=1;hD7x68x=hD7x68x%12}7z 0y(hD7x68x<1){hD7x108x0v~~(hD7x68x/12)-1;0y(hD7x108x6w0)hD7x108x=-1;hD7x68x=hD7x68x%12+12}3y hD};eK(_[319],cS);9z cT(f9,fK,ft,fy,fJ,f2,f5,B){5x7x108x=f9;5x7x68x=fK;5x7x158x=ft;5x7x208x=fy;5x7x218x=fJ;5x7x238x=f2;5x7x48x=f5;5x7x308x=B};cT9x=2y bK;cT9x7x228x=cR7x2988x;cT9x7x338x=bL7x3008x;cT9x7x108x=2x;cT9x7x68x=2x;cT9x7x158x=2x;cT9x7x208x=2x;cT9x7x218x=2x;cT9x7x238x=2x;cT9x7x48x=2x;cT9x7x308x=2x;cT9x7x328x=9z2w{3y eX(5x)+'T'+eZ(5x)+eY(5x)};8y iT=/^(-?)([1-9]\\d\\d\\d+|0\\d\\d\\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T(([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)(?:\\.(\\d+))?|(24:00:00)(?:\\.(0+))?)(Z|([+\\-])(0\\d|1[0-4]):([0-5]\\d))?$/;cT7x38x=9z(jY){0y(jY 1y cT)3y jY;0y(jY 1y cm4wjY 1y ct){8y j=eP(jY)7x258x(iT);0y(j){8y f9=+j[2],fK=+j[3],ft=+j[4],H=7wj[10];0y(ft-10?'+':'-')+e1(be7x408x(~~(f5/60)))+':'+e1(be7x408x(f5%60)):'Z'};9z eX(gu){3y(gu7x308x?'-':'')+e1(gu7x108x,4)+'-'+e1(gu7x68x)+'-'+e1(gu7x158x)};9z eZ(gu){8y r=bz(gu7x238x)7x518x('.');3y e1(gu7x208x)+':'+e1(gu7x218x)+':'+e1(r[0])+(r7x18x>1?'.'+r[1]:'')};9z e0(hD){3y e3(e8(hD))};eK(_[69],cT);9z cV(f8){5x7x78x=f8};cV9x=2y bK;cV9x7x228x=cR7x2718x;cV9x7x338x=bL7x2728x;cV9x7x78x=2x;cV9x7x28x=9z2w{3y 5x7x78x};cV9x7x328x=9z2w{3y bz(5x7x78x)};8y iV=/^[+\\-]?((\\d+(\\.\\d*)?)|(\\.\\d+))$/;cV7x38x=9z(jY){0y(jY 1y cV)3y jY;0y(jY 1y cm4wjY 1y ct){8y j=eP(jY)7x258x(iV);0y(j)3y 2y cV(+jY);4y 2y X(_[34])}0y(jY 1y bP)3y 2y cV(jY*1);0y(eW(jY)){0y(dd(jY)4w!dc(jY))4y 2y X(_[89]);3y 2y cV(+jY)}4y 2y X(_[9])};eK(_[264],cV);9z cW(f8){5x7x78x=f8};cW9x=2y bK;cW9x7x228x=cR7x2738x;cW9x7x338x=bL7x2708x;cW9x7x78x=2x;cW9x7x28x=9z2w{3y 5x7x78x};cW9x7x328x=9z2w{3y bz(5x7x78x)};8y iW=/^([+\\-]?((\\d+(\\.\\d*)?)|(\\.\\d+))([eE][+\\-]?\\d+)?|(-?INF)|NaN)$/;cW7x38x=9z(jY){0y(jY 1y cW)3y jY;0y(jY 1y cm4wjY 1y ct){8y j=eP(jY)7x258x(iW);0y(j)3y 2y cW(j[7]?+j[7]7x388x(_[209],_[164]):+jY);4y 2y X(_[34])}0y(jY 1y bP)3y 2y cW(jY*1);0y(eW(jY))3y 2y cW(jY7x78x);4y 2y X(_[9])};eK(_[211],cW);9z cX(f9,fK,ft,fy,fJ,f2,B){5x7x108x=f9;5x7x68x=fK;5x7x158x=ft;5x7x208x=fy;5x7x218x=fJ;5x7x238x=f2;5x7x308x=B};cX9x=2y bK;cX9x7x228x=cR7x2698x;cX9x7x338x=bL7x2658x;cX9x7x108x=2x;cX9x7x68x=2x;cX9x7x158x=2x;cX9x7x208x=2x;cX9x7x218x=2x;cX9x7x238x=2x;cX9x7x308x=2x;cX9x7x328x=9z2w{3y(5x7x308x?'-':'')+'P'+((e6(5x)+e5(5x))4w'T0S')};8y iX=/^(-)?P(?:([0-9]+)Y)?(?:([0-9]+)M)?(?:([0-9]+)D)?(?:T(?:([0-9]+)H)?(?:([0-9]+)M)?(?:((?:(?:[0-9]+(?:.[0-9]*)?)|(?:.[0-9]+)))S)?)?$/;cX7x38x=9z(jY){0y(jY 1y cu)3y 2y cX(jY7x108x,jY7x68x,0,0,0,0,jY7x308x);0y(jY 1y cU)3y 2y cX(0,0,jY7x158x,jY7x208x,jY7x218x,jY7x238x,jY7x308x);0y(jY 1y cX)3y jY;0y(jY 1y cm4wjY 1y ct){8y j=eP(jY)7x258x(iX);0y(j)3y e7(2y cX(+j[2]4w0,+j[3]4w0,+j[4]4w0,+j[5]4w0,+j[6]4w0,+j[7]4w0,j[1]6w'-'));4y 2y X(_[34])}4y 2y X(_[9])};9z e6(gx){3y(gx7x108x?gx7x108x+'Y':'')+(gx7x68x?gx7x68x+'M':'')};9z e5(gx){3y(gx7x158x?gx7x158x+'D':'')+(gx7x208x4wgx7x218x4wgx7x238x?'T'+(gx7x208x?gx7x208x+'H':'')+(gx7x218x?gx7x218x+'M':'')+(gx7x238x?gx7x238x+'S':''):'')};9z e7(gx){3y e9(e4(gx))};eK(_[212],cX);9z cZ(f8){5x7x78x=f8};cZ9x=2y bK;cZ9x7x228x=cR7x2668x;cZ9x7x338x=bL7x2678x;cZ9x7x78x=2x;cZ9x7x28x=9z2w{3y 5x7x78x};cZ9x7x328x=9z2w{3y bz(5x7x78x)};8y iY=/^([+\\-]?((\\d+(\\.\\d*)?)|(\\.\\d+))([eE][+\\-]?\\d+)?|(-?INF)|NaN)$/;cZ7x38x=9z(jY){0y(jY 1y cZ)3y jY;0y(jY 1y cm4wjY 1y ct){8y j=eP(jY)7x258x(iY);0y(j)3y 2y cZ(j[7]?+j[7]7x388x(_[209],_[164]):+jY);4y 2y X(_[34])}0y(jY 1y bP)3y 2y cZ(jY*1);0y(eW(jY))3y 2y cZ(jY7x78x);4y 2y X(_[9])};eK(_[204],cZ);9z c0(ft,f5){5x7x158x=ft;5x7x48x=f5};c09x=2y bK;c09x7x228x=cR7x2688x;c09x7x338x=bL7x2758x;c09x7x158x=2x;c09x7x48x=2x;c09x7x328x=9z2w{3y '-'+'-'+'-'+e1(5x7x158x)+eY(5x)};8y iZ=/^3v-(0[1-9]|[12]\\d|3[01])(Z|([+\\-])(0\\d|1[0-4]):([0-5]\\d))?$/;c07x38x=9z(jY){0y(jY 1y c0)3y jY;0y(jY 1y cm4wjY 1y ct){8y j=eP(jY)7x258x(iZ);0y(j){8y ft=+j[1];3y 2y c0(ft,j[2]?j[2]6w'Z'?0:(j[3]6w'-'?-1:1)*(j[4]*60+j[5]*1):2x)}4y 2y X(_[34])}0y(jY 1y cS4wjY 1y cT)3y 2y c0(jY7x158x,jY7x48x);4y 2y X(_[9])};eK(_[206],c0);9z c1(fK,f5){5x7x68x=fK;5x7x48x=f5};c19x=2y bK;c19x7x228x=cR7x2808x;c19x7x338x=bL7x2768x;c19x7x68x=2x;c19x7x48x=2x;c19x7x328x=9z2w{3y '-'+'-'+e1(5x7x68x)+eY(5x)};8y i0=/^3v(0[1-9]|1[0-2])(Z|([+\\-])(0\\d|1[0-4]):([0-5]\\d))?$/;c17x38x=9z(jY){0y(jY 1y c1)3y jY;0y(jY 1y cm4wjY 1y ct){8y j=eP(jY)7x258x(i0);0y(j){8y fK=+j[1];3y 2y c1(fK,j[2]?j[2]6w'Z'?0:(j[3]6w'-'?-1:1)*(j[4]*60+j[5]*1):2x)}4y 2y X(_[34])}0y(jY 1y cS4wjY 1y cT)3y 2y c1(jY7x68x,jY7x48x);4y 2y X(_[9])};eK(_[207],c1);9z c2(fK,ft,f5){5x7x68x=fK;5x7x158x=ft;5x7x48x=f5};c29x=2y bK;c29x7x228x=cR7x2778x;c29x7x338x=bL7x2788x;c29x7x68x=2x;c29x7x158x=2x;c29x7x48x=2x;c29x7x328x=9z2w{3y '-'+'-'+e1(5x7x68x)+'-'+e1(5x7x158x)+eY(5x)};8y i1=/^3v(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(Z|([+\\-])(0\\d|1[0-4]):([0-5]\\d))?$/;c27x38x=9z(jY){0y(jY 1y c2)3y jY;0y(jY 1y cm4wjY 1y ct){8y j=eP(jY)7x258x(i1);0y(j){8y fK=+j[1],ft=+j[2];0y(ft-1hi7x28x2w)};ek7x1538x=9z(gQ,hi){3y 2y bP(ex(gQ)ex(hi))};ek7x1598x=9z(gQ,hi){3y 2y bP(dt(gQ)dt(hi))};ek7x2398x=9z(gQ,hi){3y 2y bP(gQ7x308x6whi7x308x3wex(gQ)6wex(hi)3wdt(gQ)6wdt(hi))};ek7x2388x=9z(gQ,hi){3y dp(gQ,hi,'eq')};ek7x1568x=9z(gQ,hi){3y dp(gQ,hi,'lt')};ek7x1548x=9z(gQ,hi){3y dp(gQ,hi,'gt')};ek7x2378x=9z(gQ,hi){3y dq(gQ,hi,'eq')};ek7x1558x=9z(gQ,hi){3y dq(gQ,hi,'lt')};ek7x1418x=9z(gQ,hi){3y dq(gQ,hi,'gt')};ek7x2578x=9z(gQ,hi){3y dr(gQ,hi,'eq')};ek7x1458x=9z(gQ,hi){3y dr(gQ,hi,'lt')};ek7x1488x=9z(gQ,hi){3y dr(gQ,hi,'gt')};ek7x2588x=9z(gQ,hi){3y dp(2y cT(gQ7x108x,gQ7x68x,e2(gQ7x108x,gQ7x68x),0,0,0,gQ7x48x6w2x?5x7x48x:gQ7x48x),2y cT(hi7x108x,hi7x68x,e2(hi7x108x,hi7x68x),0,0,0,hi7x48x6w2x?5x7x48x:hi7x48x),'eq')};ek7x2628x=9z(gQ,hi){3y dp(2y cT(gQ7x108x,1,1,0,0,0,gQ7x48x6w2x?5x7x48x:gQ7x48x),2y cT(hi7x108x,1,1,0,0,0,hi7x48x6w2x?5x7x48x:hi7x48x),'eq')};ek7x2618x=9z(gQ,hi){3y dp(2y cT(1972,gQ7x68x,gQ7x158x,0,0,0,gQ7x48x6w2x?5x7x48x:gQ7x48x),2y cT(1972,hi7x68x,hi7x158x,0,0,0,hi7x48x6w2x?5x7x48x:hi7x48x),'eq')};ek7x2608x=9z(gQ,hi){3y dp(2y cT(1972,gQ7x68x,e2(1972,hi7x68x),0,0,0,gQ7x48x6w2x?5x7x48x:gQ7x48x),2y cT(1972,hi7x68x,e2(1972,hi7x68x),0,0,0,hi7x48x6w2x?5x7x48x:hi7x48x),'eq')};ek7x2548x=9z(gQ,hi){3y dp(2y cT(1972,12,gQ7x158x,0,0,0,gQ7x48x6w2x?5x7x48x:gQ7x48x),2y cT(1972,12,hi7x158x,0,0,0,hi7x48x6w2x?5x7x48x:hi7x48x),'eq')};ek7x2538x=9z(gQ,hi){3y ew(ex(gQ)+ex(hi))};ek7x2478x=9z(gQ,hi){3y ew(ex(gQ)-ex(hi))};ek7x1498x=9z(gQ,hi){3y ew(ex(gQ)*hi)};ek7x2468x=9z(gQ,hi){3y ew(ex(gQ)/hi)};ek7x2458x=9z(gQ,hi){3y 2y cV(ex(gQ)/ex(hi))};ek7x2498x=9z(gQ,hi){3y ds(dt(gQ)+dt(hi))};ek7x2518x=9z(gQ,hi){3y ds(dt(gQ)-dt(hi))};ek7x1518x=9z(gQ,hi){3y ds(dt(gQ)*hi)};ek7x1848x=9z(gQ,hi){3y ds(dt(gQ)/hi)};ek7x2018x=9z(gQ,hi){3y 2y cV(dt(gQ)/dt(hi))};ek7x1508x=9z(gQ,hi){4y \"Operator 9z '\"+_[150]+\"' not implemented\"};ek7x1618x=9z(gQ,hi){4y \"Operator 9z '\"+_[161]+\"' not implemented\"};ek7x1858x=9z(gQ,hi){3y ds(dv(gQ)-dv(hi))};ek7x1718x=9z(gQ,hi){3y _b(gQ,hi,'+')};ek7x1708x=9z(gQ,hi){3y dn(gQ,hi,'+')};ek7x2178x=9z(gQ,hi){3y _b(gQ,hi,'-')};ek7x2058x=9z(gQ,hi){3y dn(gQ,hi,'-')};ek7x1748x=9z(gQ,hi){3y _b(gQ,hi,'+')};ek7x1688x=9z(gQ,hi){3y dn(gQ,hi,'+')};ek7x3118x=9z(gQ,hi){3y _b(gQ,hi,'-')};ek7x2858x=9z(gQ,hi){3y dn(gQ,hi,'-')};ek7x1788x=9z(gQ,hi){8y hD=2y cn(gQ7x208x,gQ7x218x,gQ7x238x,gQ7x48x);hD7x208x0vhi7x208x;hD7x218x0vhi7x218x;hD7x238x0vhi7x238x;3y e8(hD)};ek7x2288x=9z(gQ,hi){8y hD=2y cn(gQ7x208x,gQ7x218x,gQ7x238x,gQ7x48x);hD7x208x1vhi7x208x;hD7x218x1vhi7x218x;hD7x238x1vhi7x238x;3y e8(hD)};9z dr(gQ,hi,ii){8y fD=dv(gQ),fY=dv(hi);3y 2y bP(ii6w'lt'?fDfY:fD6wfY)};9z dq(gQ,hi,ii){3y dp(cT7x38x(gQ),cT7x38x(hi),ii)};9z dp(gQ,hi,ii){8y hy=2y cU(0,0,0,0),ip=d1(gQ,hy)7x328x2w,iE=d1(hi,hy)7x328x2w;3y 2y bP(ii6w'lt'?ipiE:ip6wiE)};9z _b(gQ,hi,iy){8y hD;0y(gQ 1y cS)hD=2y cS(gQ7x108x,gQ7x68x,gQ7x158x,gQ7x48x,gQ7x308x);7z 0y(gQ 1y cT)hD=2y cT(gQ7x108x,gQ7x68x,gQ7x158x,gQ7x208x,gQ7x218x,gQ7x238x,gQ7x48x,gQ7x308x);hD7x108x=hD7x108x+hi7x108x*(iy6w'-'?-1:1);hD7x68x=hD7x68x+hi7x68x*(iy6w'-'?-1:1);e3(hD,3x);8y ft=e2(hD7x108x,hD7x68x);0y(hD7x158x>ft)hD7x158x=ft;3y hD};9z dn(gQ,hi,iy){8y hD;0y(gQ 1y cS){hD=2y cS(gQ7x108x,gQ7x68x,gQ7x158x,gQ7x48x,gQ7x308x);hD7x158x=hD7x158x+hi7x158x*(iy6w'-'?-1:1);e3(hD)}7z 0y(gQ 1y cT){hD=2y cT(gQ7x108x,gQ7x68x,gQ7x158x,gQ7x208x,gQ7x218x,gQ7x238x,gQ7x48x,gQ7x308x);hD7x238x=hD7x238x+hi7x238x*(iy6w'-'?-1:1);hD7x218x=hD7x218x+hi7x218x*(iy6w'-'?-1:1);hD7x208x=hD7x208x+hi7x208x*(iy6w'-'?-1:1);hD7x158x=hD7x158x+hi7x158x*(iy6w'-'?-1:1);e0(hD)}3y hD};9z dt(gx){3y(((gx7x158x*24+gx7x208x)*60+gx7x218x)*60+gx7x238x)*(gx7x308x?-1:1)};9z ds(f8){8y B=(f8=be7x428x(f8))<0,fu=~~((f8=be7x408x(f8))/86400),fy=~~((f81vfu*3600*24)/3600),fJ=~~((f81vfy*3600)/60),f2=f81vfJ*60;3y 2y cU(fu,fy,fJ,f2,B)};9z ex(gx){3y(gx7x108x*12+gx7x68x)*(gx7x308x?-1:1)};9z ew(f8){8y fN=(f8=be7x428x(f8))<0,fa=~~((f8=be7x408x(f8))/12),fL=f81vfa*12;3y 2y cu(fa,fL,fN)};9z dv(hx){3y hx7x238x+(hx7x218x-(hx7x48x9w2x?hx7x48x%60:0)+(hx7x208x-(hx7x48x9w2x?~~(hx7x48x/60):0))*60)*60};ek7x2438x=9z(gQ,hi){3y 2y bP(5x7x248x7x1268x(gQ,hi))};ek7x2168x=9z(gQ,hi){3y 2y bP(7w(5x7x248x7x658x(gQ,hi)&4))};ek7x2918x=9z(gQ,hi){3y 2y bP(7w(5x7x248x7x658x(gQ,hi)&2))};9z dY(gQ,hi){0y(dd(gQ)4w(be7x408x(gQ)6wfA)4wdd(hi)4w(be7x408x(hi)6wfA))3y 0;8y h=bz(gQ)7x258x(hK),m=bz(hi)7x258x(hK),fT=be7x1948x(1,(h[2]4wh[3]4w'')7x18x+(h[5]4w0)*(h[4]6w'+'?-1:1),(m[2]4wm[3]4w'')7x18x+(m[5]4w0)*(m[4]6w'+'?-1:1));3y fT+(fT%2?0:1)};ek7x1148x=9z(gQ,hi){8y fD=gQ7x28x2w,fY=hi7x28x2w,fT=be7x668x(10,dY(fD,fY));3y du(gQ,hi,((fD*fT)+(fY*fT))/fT)};ek7x1208x=9z(gQ,hi){8y fD=gQ7x28x2w,fY=hi7x28x2w,fT=be7x668x(10,dY(fD,fY));3y du(gQ,hi,((fD*fT)-(fY*fT))/fT)};ek7x968x=9z(gQ,hi){8y fD=gQ7x28x2w,fY=hi7x28x2w,fT=be7x668x(10,dY(fD,fY));3y du(gQ,hi,((fD*fT)*(fY*fT))/(fT*fT))};ek7x948x=9z(gQ,hi){8y fD=gQ7x28x2w,fY=hi7x28x2w,fT=be7x668x(10,dY(fD,fY));3y du(gQ,hi,(gQ*fT)/(hi*fT))};ek7x3048x=9z(gQ,hi){3y 2y c8(~~(gQ/hi))};ek7x3058x=9z(gQ,hi){8y fD=gQ7x28x2w,fY=hi7x28x2w,fT=be7x668x(10,dY(fD,fY));3y du(gQ,hi,((fD*fT)%(fY*fT))/fT)};ek7x2998x=9z(hi){3y hi};ek7x2868x=9z(hi){hi7x78x*=-1;3y hi};ek7x918x=9z(gQ,hi){3y 2y bP(gQ7x28x2w6whi7x28x2w)};ek7x978x=9z(gQ,hi){3y 2y bP(gQ7x28x2whi7x28x2w)};9z du(gQ,hi,fX){3y 2y(gQ 1y c83whi 1y c83wfX6wbe7x428x(fX)?c8:cV)(fX)};ek7x3148x=9z(gQ,hi){3y 2y bP(gQ7x198x6whi7x198x3wgQ7x188x6whi7x188x)};ek7x3158x=9z(ho,hp){3y ho7x998x(hp)};ek7x1108x=9z(ho,hp){8y hn=0w;8z(8y fz=0,fG=ho7x18x,gK;fzfo)c7x1828x2w;7z{c7x118x(q[fz]);fo2v}}7z 0y(q[fz]9w'.')c7x118x(q[fz])}0y(q[3vfz]6w'..'4wq[fz]6w'.')c7x118x('');hC7x638x=c7x548x('/')}}3y hC});eL(_[203],0w,9z2w{3y 2y bP(3x)});eL(_[493],0w,9z2w{3y 2y bP(1x)});eL(_[490],[[cz,'*'8x,9z(ho){3y 2y bP(!d6(ho,5x))});eL(_[76],0w,9z2w{3y 2y c8(5x7x768x)});eL(_[491],0w,9z2w{3y 2y c8(5x7x888x)});eL(_[492],0w,9z2w{3y 5x7x698x});eL(_[497],0w,9z2w{3y cS7x38x(5x7x698x)});eL(_[498],0w,9z2w{3y cn7x38x(5x7x698x)});eL(_[504],0w,9z2w{3y 5x7x48x});eL(_[505],0w,9z2w{3y 2y cm(5x7x508x7x1838x)});eL(_[503],0w,9z2w{3y bN7x38x(2y cm(5x7x508x7x828x4w''))});eL(_[502],[[cX,'?'8x,9z(gx){3y d3(gx,_[10])});eL(_[499],[[cX,'?'8x,9z(gx){3y d3(gx,_[6])});eL(_[500],[[cX,'?'8x,9z(gx){3y d3(gx,_[15])});eL(_[501],[[cX,'?'8x,9z(gx){3y d3(gx,_[20])});eL(_[489],[[cX,'?'8x,9z(gx){3y d3(gx,_[21])});eL(_[488],[[cX,'?'8x,9z(gx){3y d3(gx,_[23])});eL(_[477],[[cT,'?'8x,9z(gu){3y d2(gu,_[10])});eL(_[478],[[cT,'?'8x,9z(gu){3y d2(gu,_[6])});eL(_[476],[[cT,'?'8x,9z(gu){3y d2(gu,_[15])});eL(_[475],[[cT,'?'8x,9z(gu){3y d2(gu,_[20])});eL(_[472],[[cT,'?'8x,9z(gu){3y d2(gu,_[21])});eL(_[473],[[cT,'?'8x,9z(gu){3y d2(gu,_[23])});eL(_[474],[[cT,'?'8x,9z(gu){3y d2(gu,_[4])});eL(_[479],[[cS,'?'8x,9z(gt){3y d2(gt,_[10])});eL(_[480],[[cS,'?'8x,9z(gt){3y d2(gt,_[6])});eL(_[486],[[cS,'?'8x,9z(gt){3y d2(gt,_[15])});eL(_[487],[[cS,'?'8x,9z(gt){3y d2(gt,_[4])});eL(_[485],[[cn,'?'8x,9z(hx){3y d2(hx,_[20])});eL(_[484],[[cn,'?'8x,9z(hx){3y d2(hx,_[21])});eL(_[481],[[cn,'?'8x,9z(hx){3y d2(hx,_[23])});eL(_[482],[[cn,'?'8x,9z(hx){3y d2(hx,_[4])});eL(_[483],[[cT,'?'],[cU,'?',3x8x,9z(gu,gv){3y d1(gu,4x7x18x>13wgv9w2x?4x7x18x>1?gv:5x7x48x:2x)});eL(_[506],[[cS,'?'],[cU,'?',3x8x,9z(gt,gv){3y d1(gt,4x7x18x>13wgv9w2x?4x7x18x>1?gv:5x7x48x:2x)});eL(_[507],[[cn,'?'],[cU,'?',3x8x,9z(hx,gv){3y d1(hx,4x7x18x>13wgv9w2x?4x7x18x>1?gv:5x7x48x:2x)});9z d3(gx,iv){0y(gx6w2x)3y 2x;8y f8=gx[iv]*(gx7x308x?-1:1);3y iv6w_[23]?2y cV(f8):2y c8(f8)};9z d2(gu,iv){0y(gu6w2x)3y 2x;0y(iv6w_[4]){8y f5=gu7x48x;0y(f56w2x)3y 2x;3y 2y cU(0,be7x408x(~~(f5/60)),be7x408x(f5%60),0,f5<0)}7z{8y f8=gu[iv];0y(!(gu 1y cS)){0y(iv6w_[20])0y(f86w24)f8=0}0y(!(gu 1y cn))f8*=gu7x308x?-1:1;3y iv6w_[23]?2y cV(f8):2y c8(f8)}};9z d1(gu,hy){0y(gu6w2x)3y 2x;8y hD;0y(gu 1y cS)hD=2y cS(gu7x108x,gu7x68x,gu7x158x,gu7x48x,gu7x308x);7z 0y(gu 1y cn)hD=2y cn(gu7x208x,gu7x218x,gu7x238x,gu7x48x,gu7x308x);7z hD=2y cT(gu7x108x,gu7x68x,gu7x158x,gu7x208x,gu7x218x,gu7x238x,gu7x48x,gu7x308x);0y(hy6w2x)hD7x48x=2x;7z{8y f5=dt(hy)/60;0y(gu7x48x9w2x){8y fw=f5-gu7x48x;0y(gu 1y cS){0y(fw<0)hD7x158x3v}7z{hD7x218x0vfw%60;hD7x208x0v~~(fw/60)}e0(hD)}hD7x48x=f5}3y hD};eL(_[43],[[cA,'?',3x8x,9z(gX){0y(!4x7x18x){0y(!5x7x248x7x358x(5x7x268x))4y 2y X(_[9]);gX=5x7x268x}7z 0y(gX6w2x)3y 2y cm('');8y jY=ej7x2418x7x168x(5x,gX);3y 2y cm(jY6w2x?'':jY7x328x2w)});eL(_[531],[[cA,'?',3x8x,9z(gX){0y(!4x7x18x){0y(!5x7x248x7x358x(5x7x268x))4y 2y X(_[9]);gX=5x7x268x}7z 0y(gX6w2x)3y 2y cm('');3y 2y cm(5x7x248x7x288x(gX,_[19])4w'')});eL(_[532],[[cA,'?',3x8x,9z(gX){0y(!4x7x18x){0y(!5x7x248x7x358x(5x7x268x))4y 2y X(_[9]);gX=5x7x268x}7z 0y(gX6w2x)3y bN7x38x(2y cm(''));3y bN7x38x(2y cm(5x7x248x7x288x(gX,_[18])4w''))});eL(_[234],[[bK,'?',3x8x,9z(gK){0y(!4x7x18x){0y(!5x7x268x)4y 2y X(_[75]);gK=d4([5x7x268x],5x)[0]}8y jY=2y cW(fM);0y(gK9w2x){7y{jY=cW7x38x(gK)}3z(e)1w}3y jY});eL(_[530],[[cm,'?'],[cA,'',3x8x,9z(io,gX){0y(4x7x18x<2){0y(!5x7x248x7x358x(5x7x268x))4y 2y X(_[9]);gX=5x7x268x}8y d8=5x7x248x7x288x;0y(d8(gX,_[27])6w2)gX=d8(gX,_[55]);8z(8y b;gX;gX=d8(gX,_[41]))0y(b=d8(gX,_[57]))8z(8y fz=0,fG=b7x18x;fz1?h97x28x2w:0;0y(fU<0){8y h8=2y c8(be7x668x(10,-fU)),f1=be7x428x(ek7x948x7x168x(5x,hD,h8)),hj=2y c8(f1);fv=be7x408x(ek7x1208x7x168x(5x,hj,ek7x948x7x168x(5x,hD,h8)));3y ek7x968x7x168x(5x,ek7x1148x7x168x(5x,hj,2y cV(fv6w0.53wf1%2?-1:0)),h8)}7z{8y h8=2y c8(be7x668x(10,fU)),f1=be7x428x(ek7x968x7x168x(5x,hD,h8)),hj=2y c8(f1);fv=be7x408x(ek7x1208x7x168x(5x,hj,ek7x968x7x168x(5x,hD,h8)));3y ek7x948x7x168x(5x,ek7x1148x7x168x(5x,hj,2y cV(fv6w0.53wf1%2?-1:0)),h8)}});eL(_[528],[[cm,'?'],[cy8x,9z(hc,gy){0y(hc6w2x)3y 2x;8y iB=hc7x28x2w,j=iB7x258x(i6);0y(!j)4y 2y X(_[89]);8y iA=j[1]4w2x,iq=j[2],iw=5x7x248x7x568x(gy,iA);0y(iA9w2x3w!iw)4y 2y X(_[230]);3y 2y ck(iA,iq,iw4w2x)});eL(_[146],[[cm,'?'],[cm8x,9z(hC,hc){8y iB=hc7x28x2w,j=iB7x258x(i6);0y(!j)4y 2y X(_[89]);3y 2y ck(j[1]4w2x,j[2]4w2x,hC6w2x?'':hC7x28x2w)});eL(_[533],[[ck,'?'8x,9z(hc){0y(hc9w2x){0y(hc7x298x)3y 2y cb(hc7x298x)}3y 2x});eL(_[534],[[ck,'?'8x,9z(hc){0y(hc6w2x)3y 2x;3y 2y cb(hc7x198x)});eL(_[540],[[ck,'?'8x,9z(hc){0y(hc6w2x)3y 2x;3y bN7x38x(2y cm(hc7x188x4w''))});eL(_[541],[[cm,'?'],[cy8x,9z(ha,gy){8y iA=ha6w2x?'':ha7x28x2w,iw=5x7x248x7x568x(gy,iA4w2x);3y iw6w2x?2x:bN7x38x(2y cm(iw))});eL(_[259],[[cy8x,9z(gy){4y \"Function '\"+_[259]+\"' not implemented\"});eL(_[118],[[cz,'*'8x,9z(ho){3y 2y bP(d6(ho,5x))});eL(_[539],[[bK,'*'],[bK],[cm,'',3x8x,9z(ho,hl,go){0y(!ho7x18x4whl6w2x)3y 0w;8y jV=hl;0y(jV 1y ct)jV=cm7x38x(jV);8y hn=0w;8z(8y fz=0,fG=ho7x18x,jX;fzfG)fS=fG+1;8y hn=0w;8z(8y fz=0;fzfG)3y ho;8y hn=0w;8z(8y fz=0;fz2?be7x428x(gR):ho7x18x-fS+1;3y ho7x4538x(fS-1,fS-1+fG)});eL(_[513],[[cz,'*'8x,9z(ho){3y ho});eL(_[514],[[cz,'*'8x,9z(ho){0y(ho7x18x>1)4y 2y X(_[248]);3y ho});eL(_[512],[[cz,'*'8x,9z(ho){0y(!ho7x18x)4y 2y X(_[224]);3y ho});eL(_[511],[[cz,'*'8x,9z(ho){0y(ho7x18x9w1)4y 2y X(_[250]);3y ho});eL(_[263],[[cz,'*'],[cz,'*'],[cm,'',3x8x,9z(ho,hp,go){4y \"Function '\"+_[263]+\"' not implemented\"});eL(_[508],[[cz,'*'8x,9z(ho){3y 2y c8(ho7x18x)});eL(_[509],[[bK,'*'8x,9z(ho){0y(!ho7x18x)3y 2x;7y{8y jY=ho[0];0y(jY 1y ct)jY=cW7x38x(jY);8z(8y fz=1,fG=ho7x18x,jX;fz1)3y hI;7z 3y 2y cW(0);3y 2x}7y{8y jY=ho[0];0y(jY 1y ct)jY=cW7x38x(jY);8z(8y fz=1,fG=ho7x18x,jX;fz2)ih=go7x28x2w;jS=ih6wit+_[188]?gn:5x7x508x7x2358x(ih);0y(!jS)4y 2y X(_[191]);3y 2y c8(jS7x488x(hE7x28x2w,hF7x28x2w))});eL(_[523],[[cm,'?'],[cm,'?'8x,9z(hE,hF){0y(hE6w2x4whF6w2x)3y 2x;3y 2y bP(hE7x28x2w6whF7x28x2w)});eL(_[99],2x,9z2w{0y(4x7x18x<2)4y 2y X(_[46]);8y r=0w;8z(8y fz=0,fG=4x7x18x,hn;fz2?f4+be7x428x(gR):jK7x18x;3y 2y cm(fx>f4?jK7x1158x(f4,fx):'')});eL(_[520],[[cm,'?',3x8x,9z(hD){0y(!4x7x18x){0y(!5x7x268x)4y 2y X(_[75]);hD=cm7x38x(d4([5x7x268x],5x)[0])}3y 2y c8(hD6w2x?0:hD7x28x2w7x18x)});eL(_[517],[[cm,'?',3x8x,9z(hD){0y(!4x7x18x){0y(!5x7x268x)4y 2y X(_[75]);hD=cm7x38x(d4([5x7x268x],5x)[0])}3y 2y cm(hD6w2x?'':eP(hD)7x388x(/\\s\\s+/g,' '))});eL(_[215],[[cm,'?'],[cm,'',3x8x,9z(hD,g0){4y \"Function '\"+_[215]+\"' not implemented\"});eL(_[518],[[cm,'?'8x,9z(hD){3y 2y cm(hD6w2x?'':hD7x28x2w7x2408x2w)});eL(_[519],[[cm,'?'8x,9z(hD){3y 2y cm(hD6w2x?'':hD7x28x2w7x838x2w)});eL(_[471],[[cm,'?'],[cm],[cm8x,9z(hD,gV,hz){0y(hD6w2x)3y 2y cm('');8y r=hD7x28x2w7x518x(''),i=gV7x28x2w7x518x(''),p=hz7x28x2w7x518x(''),f6=p7x18x,l=0w;8z(8y fz=0,fG=r7x18x,fS;fz126)r[fz]=6x7x2328x(r[fz]);3y 2y cm(r7x548x(''))});eL(_[422],[[cm,'?'],[cm,'?'],[cm,'',3x8x,9z(hD,hl,go){3y 2y bP((hD6w2x?'':hD7x28x2w)7x458x(hl6w2x?'':hl7x28x2w)5v0)});eL(_[421],[[cm,'?'],[cm,'?'],[cm,'',3x8x,9z(hD,hl,go){3y 2y bP((hD6w2x?'':hD7x28x2w)7x458x(hl6w2x?'':hl7x28x2w)6w0)});eL(_[418],[[cm,'?'],[cm,'?'],[cm,'',3x8x,9z(hD,hl,go){8y jK=hD6w2x?'':hD7x28x2w,iG=hl6w2x?'':hl7x28x2w;3y 2y bP(jK7x458x(iG)6wjK7x18x-iG7x18x)});eL(_[399],[[cm,'?'],[cm,'?'],[cm,'',3x8x,9z(hD,hl,go){8y jK=hD6w2x?'':hD7x28x2w,iG=hl6w2x?'':hl7x28x2w,fS;3y 2y cm((fS=jK7x458x(iG))5v0?jK7x1158x(0,fS):'')});eL(_[419],[[cm,'?'],[cm,'?'],[cm,'',3x8x,9z(hD,hl,go){8y jK=hD6w2x?'':hD7x28x2w,iG=hl6w2x?'':hl7x28x2w,fS;3y 2y cm((fS=jK7x458x(iG))5v0?jK7x1158x(fS+iG7x18x):'')});9z d7(jK,il){8y d1='\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF',d2='\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D',d3='\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\jN\\jO-\\jP\\jQ-\\jR',c='A-Z_a-z\\\\-.0-9\\u00B7'+d1+'\\u0300-\\u036F'+d2+'\\u203F-\\u2040'+d3,i='A-Z_a-z'+d1+d2+d3;jK=jK 7x388x(/\\[\\\\i-\\[:\\]\\]/g,'['+i+']')7x388x(/\\[\\\\c-\\[:\\]\\]/g,'['+c+']')7x388x(/\\\\i/g,'[:'+i+']')7x388x(/\\\\I/g,'[^:'+i+']')7x388x(/\\\\c/g,'[:'+c+']')7x388x(/\\\\C/g,'[^:'+c+']');0y(il3w!il7x258x(/^[smix]+$/))4y 2y X(_[208]);8y v=il7x458x('s')5v0,w=il7x458x('x')5v0;0y(v4ww){il=il7x388x(/[sx]/g,'');8y r=0w,hO=/\\s/;8z(8y fz=0,fG=jK7x18x,H=1x,ie,_c='';fz2?gE7x28x2w:'');3y 2y bP(hL7x378x(jK))});eL(_[38],[[cm,'?'],[cm],[cm],[cm,'',3x8x,9z(hD,h6,hf,gE){8y jK=hD6w2x?'':hD7x28x2w,hL=d7(h67x28x2w,4x7x18x>3?gE7x28x2w:'');3y 2y bP(jK7x388x(hL,hf7x28x2w))});eL(_[425],[[cm,'?'],[cm],[cm,'',3x8x,9z(hD,h6,gE){8y jK=hD6w2x?'':hD7x28x2w,hL=d7(h67x28x2w,4x7x18x>2?gE7x28x2w:'');8y hn=0w;8z(8y fz=0,r=jK7x518x(hL),fG=r7x18x;fzjM?1:-1};8y M=9z2w1w;M9x7x278x=2;M9x7x618x=M9x7x1008x=M9x7x608x=M9x7x198x=M9x7x188x=M9x7x298x=M9x7x578x=M9x7x1278x=M9x7x848x=M9x7x2558x=M9x7x858x=M9x7x718x=M9x7x418x=M9x7x438x=M9x7x988x=M9x7x78x=M9x7x558x=2x;9z bb2w1w;bb9x=2y T;8y gO=2y bx;bb9x7x288x=9z(gX,iv){0y(iv 0z gX)3y gX[iv];0y(iv6w_[82]){8y ib='',eE=gO7x1798x('{'+_[362]+'}'+_[210]),cm=gO7x1198x('{'+_[358]+'}'+_[105]);8z(8y h4=gX,jJ;h4;h4=h47x418x)0y(h47x278x6w13w(jJ=h47x4368x(_[432])))ib=eE(2y cm(jJ),2y cm(ib))7x328x2w;3y ib}7z 0y(iv6w_[93]){8y o=0w;(9z(gX){8z(8y fz=0,gm;gm=gX7x1278x[fz];fz2v)0y(gm7x278x6w34wgm7x278x6w4)o7x118x(gm7x1218x);7z 0y(gm7x278x6w13wgm7x848x)4x7x1238x(gm)})(gX);3y o7x548x('')}};bb9x7x658x=9z(gX,gm){0y(_[65] 0z gX)3y gX7x658x(gm);0y(gm6wgX)3y 0;8y gg=2x,gh=2x,b,gf,gy,fz,fG;0y(gX7x278x6w2){gg=gX;gX=5x7x288x(gg,_[55])}0y(gm7x278x6w2){gh=gm;gm=5x7x288x(gh,_[55])}0y(gg3wgh3wgX3wgX6wgm){8z(fz=0,b=5x7x288x(gX,_[57]),fG=b7x18x;fz?!>=!..!,,!>.!>,!>\"!>>\"!\"\"!>>!>>>!}}!\'\'!*)!~|!^\\!^%\\!^^!\\`\\!xpeojx!tjiu!tuofnvhsb!fvsu!mmvo!ftmbg!iujx!fmjix!sbw!zsu!idujxt!gpfqzu!xpsiu!osvufs!xfo!gpfdobutoj!gj!opjudovg!spg!ftmf!fufmfe!umvbgfe!fvojuopd!idubd!ftbd!lbfsc!oj",'',0,this,'prototype length valueOf cast timezone peek month value evaluate XPTY0004 year push XPST0003 eof next day call items namespaceURI localName hours minutes builtInKind seconds DOMAdapter match item nodeType getProperty prefix negative left toString primitiveKind FORG0001 isNode expression test replace type abs parentNode round name bindings indexOf XPST0017 operator compare stack staticContext split predicates scope join ownerElement lookupNamespaceURI attributes attribute itemType ownerDocument nodeName occurence path right compareDocumentPosition pow code getURIForPrefix dateTime FORG0006 nextSibling args scheme authority XPDY0002 position xmlns node substr index inExpr baseURI toLowerCase firstChild previousSibling numeric-greater-than schema-element size FOCA0002 getElementsByTagNameNS numeric-equal defaultFunctionNamespace textContent numeric-divide schema-attribute numeric-multiply numeric-less-than specified concat nodeValue hexBinary dataTypes descendant-or-self base64Binary string returnExpr XPST0051 parent functions union collations XPDY0050 namespaceResolver numeric-add substring axis getElementById boolean getDataType numeric-subtract data query callee fragment satisfiesExpr isSameNode childNodes hasOwnProperty text applyPredicates preceding ancestor-or-self pushVariable preceding-sibling quantifier elseExpr thenExpr child condExpr internalExpression date-greater-than popVariable collections except time-less-than QName boolean-less-than time-greater-than multiply-yearMonthDuration subtract-dateTimes multiply-dayTimeDuration boolean-greater-than yearMonthDuration-less-than dateTime-greater-than date-less-than dateTime-less-than dayTimeDuration-greater-than yearMonthDuration-greater-than dayTimeDuration-less-than root subtract-dates intersect to Infinity processing-instruction document-node element add-dayTimeDuration-to-date as add-dayTimeDuration-to-dateTime add-yearMonthDuration-to-dateTime NOTATION undefined add-yearMonthDuration-to-date defaultElementNamespace documents ancestor add-dayTimeDuration-to-time getFunction charAt reverse pop defaultCollationName divide-dayTimeDuration subtract-times min xpath /collation/codepoint LANGUAGE_DT xs2js FOCH0002 element-with-id collection max FODC0001 NMTOKEN_DT idref doc doc-available ID_DT divide-dayTimeDuration-by-dayTimeDuration extend true float subtract-dayTimeDuration-from-dateTime gDay gMonth FORX0001 INF resolve-uri double duration gMonthDay gYear normalize-unicode node-before subtract-yearMonthDuration-from-dateTime time NCNAME_DT gYearMonth TOKEN_DT NAME_DT ENTITY_DT FORG0004 base64Binary-equal boolean-equal and subtract-dayTimeDuration-from-time charCodeAt FONS0004 hexBinary-equal encodeURIComponent floor number getCollation in date-equal dateTime-equal duration-equal toUpperCase node-name or is-same-node log divide-yearMonthDuration-by-yearMonthDuration divide-yearMonthDuration subtract-yearMonthDurations FORG0003 add-dayTimeDurations FORG0005 subtract-dayTimeDurations NORMALIZEDSTRING_DT add-yearMonthDurations gDay-equal lastChild equals time-equal gYearMonth-equal in-scope-prefixes gMonth-equal gMonthDay-equal gYear-equal deep-equal decimal PRIMITIVE_DURATION FLOAT_DT PRIMITIVE_FLOAT GDAY_DT DURATION_DT PRIMITIVE_DOUBLE DECIMAL_DT PRIMITIVE_DECIMAL DOUBLE_DT XPTY0020 PRIMITIVE_GDAY PRIMITIVE_GMONTH GMONTHDAY_DT PRIMITIVE_GMONTHDAY GYEAR_DT GMONTH_DT self descendant following following-sibling subtract-dayTimeDuration-from-date numeric-unary-minus BASE64BINARY_DT PRIMITIVE_BASE64BINARY BOOLEAN_DT PRIMITIVE_BOOLEAN node-after PRIMITIVE_ANYURI ANYSIMPLETYPE_DT ANYATOMICTYPE_DT ANYURI_DT baseName DATE_DT DATETIME_DT numeric-unary-plus PRIMITIVE_DATETIME XPST0081 PRIMITIVE_DATE apply numeric-integer-divide numeric-mod PRIMITIVE_GYEAR GYEARMONTH_DT LONG_DT target INT_DT subtract-yearMonthDuration-from-date NEGATIVEINTEGER_DT NONPOSITIVEINTEGER_DT QName-equal concatenate INTEGER_DT SHORT_DT BYTE_DT date UNSIGNEDINT_DT UNSIGNEDSHORT_DT UNSIGNEDBYTE_DT anyURI anyAtomicType NONNEGATIVEINTEGER_DT POSITIVEINTEGER_DT UNSIGNEDLONG_DT DAYTIMEDURATION_DT trim XPTY0019 documentElement QNAME_DT PRIMITIVE_QNAME PRIMITIVE_NOTATION NOTATION_DT PRIMITIVE_GYEARMONTH HEXBINARY_DT PRIMITIVE_HEXBINARY STRING_DT PRIMITIVE_STRING xml XPST0008 every XT_YEARMONTHDURATION_DT XT_UNTYPEDATOMIC_DT TIME_DT comment PRIMITIVE_TIME ANYTYPE_DT first fifth instance fourth third second of treat http://www.w3.org/2001/XMLSchema empty-sequence XPST0080 castable http://www.w3.org/2005/xpath-functions http://www.w3.org/2000/xmlns/ then else some satisfies if return http://www.w3.org/XML/1998/namespace XPST0010 XPTY0018 for http://www.w3.org/1999/xhtml untypedAtomic normalizedString unsignedByte unsignedShort unsignedInt token Name language ID ENTITY NCName unsignedLong positiveInteger nonPositiveInteger integer dayTimeDuration yearMonthDuration negativeInteger long nonNegativeInteger byte short int NMTOKEN substring-before SyntaxError TypeError isNaN Error Math Date Function isFinite NaN getFullYear getMonth getDate getTimezoneOffset back message reset RegExp Array ends-with substring-after matches starts-with contains iri-to-uri escape-html-uri tokenize trace Boolean Number Object String DIV xml:base div getHours getMinutes getAttribute innerText nodeFromID console decodeURI fromCharCode encodeURI HTMLDocument jQuery href createElement tagName location createElementNS document namespaces sort slice setFunction setCollation setCollection setDocument setDataType getSeconds getMilliseconds js2xs IDREF_DT DAYMONTHDURATION_DT PRECISIONDECIMAL_DT ceil DATETIMESTAMP_DT UNAVAILABLE_DT LISTOFUNION_DT LIST_DT encode-for-uri translate minutes-from-dateTime seconds-from-dateTime timezone-from-dateTime hours-from-dateTime day-from-dateTime year-from-dateTime month-from-dateTime year-from-date month-from-date seconds-from-time timezone-from-time adjust-dateTime-to-timezone minutes-from-time hours-from-time day-from-date timezone-from-date seconds-from-duration minutes-from-duration not last current-dateTime false documentURI base-uri document-uri current-date current-time months-from-duration days-from-duration hours-from-duration years-from-duration static-base-uri implicit-timezone default-collation adjust-date-to-timezone adjust-time-to-timezone count avg sum exactly-one one-or-more unordered zero-or-one id codepoints-to-string normalize-space upper-case lower-case string-length string-join string-to-codepoints codepoint-equal subsequence remove ceiling round-half-to-even resolve-QName xml:lang lang local-name namespace-uri prefix-from-QName local-name-from-QName exists distinct-values insert-before empty index-of namespace-uri-from-QName namespace-uri-for-prefix nilled'.split(' ')) diff --git a/require_config.js b/require_config.js index 9f9051ef0..dd02191a6 100644 --- a/require_config.js +++ b/require_config.js @@ -28,7 +28,7 @@ require.config({ 'text': 'thirdparty/text/text', 'hgn': 'thirdparty/hgn', 'hogan': 'thirdparty/hogan', - 'jath' : 'thirdparty/jath.min', + 'jxpath' : 'thirdparty/jquery.xpath.min', 'jquery': 'thirdparty/jquery', 'spin' : 'thirdparty/spin.min', 'underscore': 'thirdparty/underscore-1.4.4', @@ -82,8 +82,8 @@ require.config({ underscore: { exports: '_' }, - jath : { - exports: 'Jath' + jxpath : { + exports: 'JXPath' }, spin : { exports: 'Spinner'